ParaNut SystemC Model
A SystemC Model of the ParaNut architecture
Public Member Functions | Public Attributes | Protected Attributes | List of all members
CMemory Class Reference

#include <memory.h>

Inheritance diagram for CMemory:
Inheritance graph
[legend]

Public Member Functions

 CMemory ()
 
 CMemory (TWord base, TWord size)
 
 ~CMemory ()
 
void Init (TWord base, TWord size)
 
bool IsAdressed (TWord adr)
 
TByte ReadByte (TWord adr)
 
THalfWord ReadHalfWord (TWord adr)
 
TWord ReadWord (TWord adr)
 
TDWord ReadDWord (TWord adr)
 
void WriteByte (TWord adr, TByte val)
 
void WriteHalfWord (TWord adr, THalfWord val)
 
void WriteWord (TWord adr, TWord val)
 
void WriteDWord (TWord adr, TDWord val)
 
bool ReadFile (const char *filename, const bool dumpVHDL)
 
int FindLabel (TWord adr)
 
char * GetDumpStr (TWord adr)
 
char * GetDumpStrVHDL (TWord adr)
 
void Dump (TWord adr0=0, TWord adr1=0xffffffff)
 
void DumpVHDL (const char *filename, unsigned size)
 
void DumpSignature (const char *filename)
 

Public Attributes

TWord tdata_adr
 
TWord tohost_adr
 

Protected Attributes

TBytedata_
 
TWord base_
 
TWord size_
 
std::vector< CLabellabel_list_
 
bool sig_found_
 
TWord sig_adr_
 
TWord sig_adr_end_
 

Constructor & Destructor Documentation

◆ CMemory() [1/2]

CMemory::CMemory ( )
inline

◆ CMemory() [2/2]

CMemory::CMemory ( TWord  base,
TWord  size 
)
inline

◆ ~CMemory()

CMemory::~CMemory ( )

Member Function Documentation

◆ Dump()

void CMemory::Dump ( TWord  adr0 = 0,
TWord  adr1 = 0xffffffff 
)

◆ DumpSignature()

void CMemory::DumpSignature ( const char *  filename)

◆ DumpVHDL()

void CMemory::DumpVHDL ( const char *  filename,
unsigned  size 
)

◆ FindLabel()

int CMemory::FindLabel ( TWord  adr)

◆ GetDumpStr()

char * CMemory::GetDumpStr ( TWord  adr)

◆ GetDumpStrVHDL()

char * CMemory::GetDumpStrVHDL ( TWord  adr)

◆ Init()

void CMemory::Init ( TWord  base,
TWord  size 
)

◆ IsAdressed()

bool CMemory::IsAdressed ( TWord  adr)
inline

◆ ReadByte()

TByte CMemory::ReadByte ( TWord  adr)
inline

◆ ReadDWord()

TDWord CMemory::ReadDWord ( TWord  adr)
inline

◆ ReadFile()

bool CMemory::ReadFile ( const char *  filename,
const bool  dumpVHDL 
)

◆ ReadHalfWord()

THalfWord CMemory::ReadHalfWord ( TWord  adr)
inline

◆ ReadWord()

TWord CMemory::ReadWord ( TWord  adr)
inline

◆ WriteByte()

void CMemory::WriteByte ( TWord  adr,
TByte  val 
)
inline

◆ WriteDWord()

void CMemory::WriteDWord ( TWord  adr,
TDWord  val 
)
inline

◆ WriteHalfWord()

void CMemory::WriteHalfWord ( TWord  adr,
THalfWord  val 
)
inline

◆ WriteWord()

void CMemory::WriteWord ( TWord  adr,
TWord  val 
)
inline

Member Data Documentation

◆ base_

TWord CMemory::base_
protected

◆ data_

TByte* CMemory::data_
protected

◆ label_list_

std::vector<CLabel> CMemory::label_list_
protected

◆ sig_adr_

TWord CMemory::sig_adr_
protected

◆ sig_adr_end_

TWord CMemory::sig_adr_end_
protected

◆ sig_found_

bool CMemory::sig_found_
protected

◆ size_

TWord CMemory::size_
protected

◆ tdata_adr

TWord CMemory::tdata_adr

◆ tohost_adr

TWord CMemory::tohost_adr

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