Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

Public Member Functions | List of all members
Storage Class Referenceabstract

#include <storage.h>

Inheritance diagram for Storage:
Collaboration diagram for Storage:

Public Member Functions

 Storage (sc_core::sc_module_name mn)
 
virtual ~Storage ()
 
virtual void set_size (const uint32_t &size)=0
 
virtual void write (const uint32_t &addr, const uint8_t &byte)=0
 
virtual uint8_t read (const uint32_t &addr) const =0
 
virtual void write_block (const uint32_t &addr, const uint8_t *data, const uint32_t &len)=0
 
virtual void read_block (const uint32_t &addr, uint8_t *data, const uint32_t &len) const =0
 
virtual void erase (const uint32_t &start, const uint32_t &end)=0
 
virtual uint8_tget_dmi_ptr ()
 
virtual bool allow_dmi_rw ()
 

Constructor & Destructor Documentation

Storage::Storage ( sc_core::sc_module_name  mn)
inline
virtual Storage::~Storage ( )
inlinevirtual

Member Function Documentation

virtual bool Storage::allow_dmi_rw ( )
inlinevirtual

Reimplemented in ArrayStorage.

Referenced by AHBMem::exec_func(), and AHBMem::get_direct_mem_ptr().

virtual void Storage::erase ( const uint32_t start,
const uint32_t end 
)
pure virtual

Implemented in MapStorage, and ArrayStorage.

Referenced by BaseMemory::erase_dbg().

virtual uint8_t* Storage::get_dmi_ptr ( )
inlinevirtual

Reimplemented in ArrayStorage.

Referenced by AHBMem::get_direct_mem_ptr().

virtual uint8_t Storage::read ( const uint32_t addr) const
pure virtual

Implemented in MapStorage, and ArrayStorage.

Referenced by BaseMemory::read_dbg().

virtual void Storage::read_block ( const uint32_t addr,
uint8_t data,
const uint32_t len 
) const
pure virtual

Implemented in MapStorage, and ArrayStorage.

Referenced by BaseMemory::read_block_dbg().

virtual void Storage::set_size ( const uint32_t size)
pure virtual

Implemented in MapStorage, and ArrayStorage.

Referenced by BaseMemory::set_storage().

virtual void Storage::write ( const uint32_t addr,
const uint8_t byte 
)
pure virtual
virtual void Storage::write_block ( const uint32_t addr,
const uint8_t data,
const uint32_t len 
)
pure virtual

Implemented in MapStorage, and ArrayStorage.

Referenced by BaseMemory::write_block_dbg().


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