Go to the documentation of this file.
35 #ifndef TTA_MEMORY_MODEL_HH
36 #define TTA_MEMORY_MODEL_HH
113 virtual void reset();
152 #define MAX_ACCESS_SIZE 64
virtual void writeDirectlyLE(ULongWord address, int size, ULongWord data)
virtual void writeDirectlyBE(ULongWord address, int size, ULongWord data)
void unpackLE(const ULongWord &value, int size, Memory::MAUTable data)
Memory & operator=(const Memory &)
Assignment not allowed.
virtual ULongWord MAUSize()
virtual void fillWithZeros()
virtual void readBE(ULongWord address, int size, ULongWord &data)
ULongWord MAUSize_
Size of the minimum adressable unit.
ULongWord start_
Starting point of the address space.
virtual void readLE(ULongWord address, int size, ULongWord &data)
Word MinimumAddressableUnit
Type for storing a MAU (must be unsigned type!). This limits the maximum size of the simulated minimu...
int mask_
Mask bit pattern for unpacking IntULongWord to MAUs.
virtual Memory::MAU read(ULongWord address)=0
MinimumAddressableUnit MAU
void checkRange(ULongWord startAddress, int numberOfMAUs)
ULongWord end_
End point of the address space.
void unpackBE(const ULongWord &value, int size, Memory::MAUTable data)
virtual void advanceClock()
virtual void write(ULongWord address, MAU data)=0
virtual void writeBE(ULongWord address, int size, ULongWord data)
virtual void writeLE(ULongWord address, int size, ULongWord data)
RequestQueue * writeRequests_
The uncommited write requests.
void packBE(const Memory::MAUTable data, int size, ULongWord &value)
void packLE(const Memory::MAUTable data, int size, ULongWord &value)
Memory(ULongWord start, ULongWord end, ULongWord MAUSize, bool littleEndian_)
virtual ULongWord start()