Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

Public Member Functions | List of all members
leon3_funclt_trap::LocalMemory Class Reference

#include <memory.hpp>

Inheritance diagram for leon3_funclt_trap::LocalMemory:
Collaboration diagram for leon3_funclt_trap::LocalMemory:

Public Member Functions

 LocalMemory (unsigned int size)
 
void setDebugger (MemoryToolsIf< unsigned int > *debugger)
 
sc_dt::uint64 read_dword (const unsigned int &address, const unsigned int asi, const unsigned int flush, const unsigned int lock) throw ()
 
unsigned int read_word (const unsigned int &address, const unsigned int asi, const unsigned int flush, const unsigned int lock) throw ()
 
unsigned short int read_half (const unsigned int &address, const unsigned int asi, const unsigned int flush, const unsigned int lock) throw ()
 
unsigned char read_byte (const unsigned int &address, const unsigned int asi, const unsigned int flush, const unsigned int lock) throw ()
 
sc_dt::uint64 read_dword_dbg (const unsigned int &address) throw ()
 
unsigned int read_word_dbg (const unsigned int &address) throw ()
 
unsigned short int read_half_dbg (const unsigned int &address) throw ()
 
unsigned char read_byte_dbg (const unsigned int &address) throw ()
 
void write_dword (const unsigned int &address, sc_dt::uint64 datum, const unsigned int asi, const unsigned int flush, const unsigned int lock) throw ()
 
void write_word (const unsigned int &address, unsigned int datum, const unsigned int asi, const unsigned int flush, const unsigned int lock) throw ()
 
void write_half (const unsigned int &address, unsigned short int datum, const unsigned int asi, const unsigned int flush, const unsigned int lock) throw ()
 
void write_byte (const unsigned int &address, unsigned char datum, const unsigned int asi, const unsigned int flush, const unsigned int lock) throw ()
 
void write_dword_dbg (const unsigned int &address, sc_dt::uint64 datum) throw ()
 
void write_word_dbg (const unsigned int &address, unsigned int datum) throw ()
 
void write_half_dbg (const unsigned int &address, unsigned short int datum) throw ()
 
void write_byte_dbg (const unsigned int &address, unsigned char datum) throw ()
 
void lock ()
 
void unlock ()
 
virtual ~LocalMemory ()
 
- Public Member Functions inherited from leon3_funclt_trap::MemoryInterface
virtual unsigned int read_instr (const unsigned int &address, const unsigned int asi, const unsigned int flush)=0 throw ()
 
void swapEndianess (unsigned int &datum) const throw ()
 
void swapEndianess (unsigned short int &datum) const throw ()
 
virtual ~MemoryInterface ()
 

Constructor & Destructor Documentation

leon3_funclt_trap::LocalMemory::LocalMemory ( unsigned int  size)
leon3_funclt_trap::LocalMemory::~LocalMemory ( )
virtual

Member Function Documentation

void leon3_funclt_trap::LocalMemory::lock ( )
virtual
unsigned char leon3_funclt_trap::LocalMemory::read_byte ( const unsigned int address,
const unsigned int  asi,
const unsigned int  flush,
const unsigned int  lock 
)
throw (
)
virtual
unsigned char leon3_funclt_trap::LocalMemory::read_byte_dbg ( const unsigned int address)
throw (
)
virtual

Reimplemented from leon3_funclt_trap::MemoryInterface.

References THROW_ERROR.

sc_dt::uint64 leon3_funclt_trap::LocalMemory::read_dword ( const unsigned int address,
const unsigned int  asi,
const unsigned int  flush,
const unsigned int  lock 
)
throw (
)
virtual
sc_dt::uint64 leon3_funclt_trap::LocalMemory::read_dword_dbg ( const unsigned int address)
throw (
)
virtual

Reimplemented from leon3_funclt_trap::MemoryInterface.

References THROW_ERROR.

unsigned short int leon3_funclt_trap::LocalMemory::read_half ( const unsigned int address,
const unsigned int  asi,
const unsigned int  flush,
const unsigned int  lock 
)
throw (
)
virtual
unsigned short int leon3_funclt_trap::LocalMemory::read_half_dbg ( const unsigned int address)
throw (
)
virtual

Reimplemented from leon3_funclt_trap::MemoryInterface.

References THROW_ERROR.

unsigned int leon3_funclt_trap::LocalMemory::read_word ( const unsigned int address,
const unsigned int  asi,
const unsigned int  flush,
const unsigned int  lock 
)
throw (
)
inlinevirtual
unsigned int leon3_funclt_trap::LocalMemory::read_word_dbg ( const unsigned int address)
throw (
)
virtual

Reimplemented from leon3_funclt_trap::MemoryInterface.

References THROW_ERROR.

void leon3_funclt_trap::LocalMemory::setDebugger ( MemoryToolsIf< unsigned int > *  debugger)
void leon3_funclt_trap::LocalMemory::unlock ( )
virtual
void leon3_funclt_trap::LocalMemory::write_byte ( const unsigned int address,
unsigned char  datum,
const unsigned int  asi,
const unsigned int  flush,
const unsigned int  lock 
)
throw (
)
virtual
void leon3_funclt_trap::LocalMemory::write_byte_dbg ( const unsigned int address,
unsigned char  datum 
)
throw (
)
virtual

Reimplemented from leon3_funclt_trap::MemoryInterface.

References THROW_ERROR.

void leon3_funclt_trap::LocalMemory::write_dword ( const unsigned int address,
sc_dt::uint64  datum,
const unsigned int  asi,
const unsigned int  flush,
const unsigned int  lock 
)
throw (
)
virtual
void leon3_funclt_trap::LocalMemory::write_dword_dbg ( const unsigned int address,
sc_dt::uint64  datum 
)
throw (
)
virtual

Reimplemented from leon3_funclt_trap::MemoryInterface.

References THROW_ERROR.

void leon3_funclt_trap::LocalMemory::write_half ( const unsigned int address,
unsigned short int  datum,
const unsigned int  asi,
const unsigned int  flush,
const unsigned int  lock 
)
throw (
)
virtual
void leon3_funclt_trap::LocalMemory::write_half_dbg ( const unsigned int address,
unsigned short int  datum 
)
throw (
)
virtual

Reimplemented from leon3_funclt_trap::MemoryInterface.

References THROW_ERROR.

void leon3_funclt_trap::LocalMemory::write_word ( const unsigned int address,
unsigned int  datum,
const unsigned int  asi,
const unsigned int  flush,
const unsigned int  lock 
)
throw (
)
inlinevirtual

Implements leon3_funclt_trap::MemoryInterface.

References trap::MemoryToolsIf< addressType >::notifyAddress(), and THROW_ERROR.

Here is the call graph for this function:

void leon3_funclt_trap::LocalMemory::write_word_dbg ( const unsigned int address,
unsigned int  datum 
)
throw (
)
virtual

Reimplemented from leon3_funclt_trap::MemoryInterface.

References THROW_ERROR.


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