HALDLS
haldls::vx::PPUMemory Class Reference

#include <ppu.h>

Public Types

typedef halco::hicann_dls::vx::PPUMemoryOnDLS coordinate_type
 
typedef std::false_type has_local_data
 
typedef halco::common::typed_heap_array< PPUMemoryWord, halco::hicann_dls::vx::PPUMemoryWordOnPPU > words_type
 

Public Member Functions

 PPUMemory (words_type const &words=words_type()) SYMBOL_VISIBLE
 
PPUMemoryBlock get_block (halco::hicann_dls::vx::PPUMemoryBlockOnPPU const &block_coord) const SYMBOL_VISIBLE
 
PPUMemoryWord::Value get_word (halco::hicann_dls::vx::PPUMemoryWordOnPPU const &pos) const SYMBOL_VISIBLE
 
words_type get_words () const SYMBOL_VISIBLE
 
void load_from_file (std::string const &filename) SYMBOL_VISIBLE
 Load a (stripped) PPU program from a file. More...
 
bool operator!= (PPUMemory const &other) const SYMBOL_VISIBLE
 
bool operator== (PPUMemory const &other) const SYMBOL_VISIBLE
 
void set_block (halco::hicann_dls::vx::PPUMemoryBlockOnPPU const &block_coord, PPUMemoryBlock const &block) SYMBOL_VISIBLE
 
void set_word (halco::hicann_dls::vx::PPUMemoryWordOnPPU const &pos, PPUMemoryWord::Value const &word) SYMBOL_VISIBLE
 
void set_words (words_type const &words) SYMBOL_VISIBLE
 

Friends

class cereal::access
 
std::ostream & operator<< (std::ostream &os, PPUMemory const &pm) SYMBOL_VISIBLE
 

Detailed Description

Definition at line 124 of file ppu.h.

Member Typedef Documentation

◆ coordinate_type

typedef halco::hicann_dls::vx::PPUMemoryOnDLS haldls::vx::PPUMemory::coordinate_type

Definition at line 127 of file ppu.h.

◆ has_local_data

typedef std::false_type haldls::vx::PPUMemory::has_local_data

Definition at line 128 of file ppu.h.

◆ words_type

typedef halco::common:: typed_heap_array<PPUMemoryWord, halco::hicann_dls::vx::PPUMemoryWordOnPPU> haldls::vx::PPUMemory::words_type

Definition at line 132 of file ppu.h.

Constructor & Destructor Documentation

◆ PPUMemory()

haldls::vx::PPUMemory::PPUMemory ( words_type const &  words = words_type())
explicit

Member Function Documentation

◆ get_block()

PPUMemoryBlock haldls::vx::PPUMemory::get_block ( halco::hicann_dls::vx::PPUMemoryBlockOnPPU const &  block_coord) const

◆ get_word()

PPUMemoryWord::Value haldls::vx::PPUMemory::get_word ( halco::hicann_dls::vx::PPUMemoryWordOnPPU const &  pos) const

◆ get_words()

words_type haldls::vx::PPUMemory::get_words ( ) const

◆ load_from_file()

void haldls::vx::PPUMemory::load_from_file ( std::string const &  filename)

Load a (stripped) PPU program from a file.

The program is located at the beginning of the memory with words above the program's size set to zero.

Parameters
filenameName of file to load

◆ operator!=()

bool haldls::vx::PPUMemory::operator!= ( PPUMemory const &  other) const

◆ operator==()

bool haldls::vx::PPUMemory::operator== ( PPUMemory const &  other) const

◆ set_block()

void haldls::vx::PPUMemory::set_block ( halco::hicann_dls::vx::PPUMemoryBlockOnPPU const &  block_coord,
PPUMemoryBlock const &  block 
)

◆ set_word()

void haldls::vx::PPUMemory::set_word ( halco::hicann_dls::vx::PPUMemoryWordOnPPU const &  pos,
PPUMemoryWord::Value const &  word 
)

◆ set_words()

void haldls::vx::PPUMemory::set_words ( words_type const &  words)

Friends And Related Function Documentation

◆ cereal::access

friend class cereal::access
friend

Definition at line 169 of file ppu.h.

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
PPUMemory const &  pm 
)
friend

The documentation for this class was generated from the following file: