fdhwlib  2.0.25
hw4::BaseMemory Class Reference

#include <basememory.h>

Inheritance diagram for hw4::BaseMemory:
hw4::BaseRegister Pbus

List of all members.

Public Member Functions


Detailed Description

The class contains the register address modell of the SLT board.

The individual register address is calculated from the slot ID and the register ID.

The register implementation contains a cache function to avoid unneccessary access to the hardware. To decode the status bits the cache content can be used without storing any additional intermediate data.

Definition at line 32 of file basememory.h.


Constructor & Destructor Documentation

hw4::BaseMemory::BaseMemory ( const char *  name,
int  slotID,
unsigned int  regID,
int  r,
int  w,
int  len = 1,
int  addrShift = 0,
int  blockLen = 1,
bool  useCache = false 
)

A register (slt object) is defined by it's name and the combination of slot ID and register ID.

Every register also posses the properties readable and writeable. The register object can also be used to access register vectors and memories. For a register vector the number of elements and the address shift needs to be specified. A memory also needs both parameters. Memories span a contiouous space so that block access can be used to get the data for all elements.


Member Function Documentation

void hw4::BaseMemory::readBlockAutoIncr ( int  elem,
unsigned long *  data,
unsigned long  start,
unsigned long  blockLen 
)

Read all elements of the memory using the DataBlock register in the Pbus-layer.


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