Transaction-Level Modeling Framework for Space Applications
This class is a base class for memory models. It implements the device plug and play informations. More...
#include <memdevice.h>
Public Types | |
enum | device_type { ROM = 0, IO = 1, SRAM = 2, SDRAM = 3 } |
Device type. More... | |
typedef device_type | type |
Public Member Functions | |
MEMDevice (sc_module_name name, device_type type, uint32_t banks=0, uint32_t bsize=0, uint32_t bits=32, uint32_t cols=0) | |
virtual | ~MEMDevice () |
Empty destructor. More... | |
virtual void | init_mem_generics () |
Initialize MEMDevice generics. More... | |
virtual const char * | get_device_info () const |
Returns the memory configuration. More... | |
virtual const device_type | get_type () const |
Returns the device type. More... | |
virtual const std::string | get_type_name () const |
Return the device type name. More... | |
virtual const uint32_t | get_banks () const |
Returns the number of banks of the memory (sram or sdram bank if needed) More... | |
virtual const uint32_t | get_bsize () const |
virtual const uint32_t | get_bits () const |
virtual const uint32_t | get_cols () const |
Returns the column size of the memory (sdram) More... | |
virtual const uint32_t | get_size () const |
Returns the size of the whole memory. More... | |
Public Member Functions inherited from BaseModule< DefaultBase > | |
BaseModule (ModuleName mn) | |
virtual | ~BaseModule () |
virtual void | init_generics () |
virtual void | init_registers () |
virtual void | init_counters () |
virtual void | init_power () |
Additional Inherited Members | |
Protected Attributes inherited from BaseModule< DefaultBase > | |
ParameterAPI * | m_api |
Internal module gs param api instance. More... | |
ParameterArray | m_generics |
Configuration generic container. More... | |
ParameterArray | m_counters |
Performance counter container. More... | |
ParameterArray | m_power |
Power counters container. More... | |
This class is a base class for memory models. It implements the device plug and play informations.
The class MEMDevice is the base class of all memories to be connected to the MCTRL. The library provides a Generic Memory, which implements the given interface. The included functions are required to determine the features of the attached component for correct access and delay calculation.
typedef device_type MEMDevice::type |