Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

Public Member Functions | Public Attributes | List of all members
tlb_adaptor Class Reference

#include <tlb_adaptor.h>

Inheritance diagram for tlb_adaptor:
Collaboration diagram for tlb_adaptor:

Public Member Functions

 tlb_adaptor (ModuleName name, mmu_cache_if *top, mmu_if *_mmu, std::map< t_VAT, t_PTE_context > *tlb, unsigned int tlbnum)
 constructor More...
 
 ~tlb_adaptor ()
 destructor More...
 
virtual bool mem_read (unsigned int addr, unsigned int asi, unsigned char *data, unsigned int len, sc_core::sc_time *t, unsigned int *debug, bool is_dbg, bool &cacheable, bool is_lock)
 implementation of mem_read function from mem_if.h More...
 
virtual void mem_write (unsigned int addr, unsigned int asi, unsigned char *data, unsigned int len, sc_core::sc_time *t, unsigned int *debug, bool is_dbg, bool &cacheable, bool is_lock)
 implementation of mem_write function from mem_if.h More...
 
- Public Member Functions inherited from mem_if
virtual ~mem_if ()
 

Public Attributes

mmu_cache_ifm_mmu_cache
 
mmu_ifm_mmu
 
std::map< t_VAT, t_PTE_context > * m_tlb
 
unsigned int m_tlbnum
 

Constructor & Destructor Documentation

tlb_adaptor::tlb_adaptor ( ModuleName  name,
mmu_cache_if top,
mmu_if _mmu,
std::map< t_VAT, t_PTE_context > *  tlb,
unsigned int  tlbnum 
)
inline

constructor

tlb_adaptor::~tlb_adaptor ( )
inline

destructor

Member Function Documentation

virtual bool tlb_adaptor::mem_read ( unsigned int  addr,
unsigned int  asi,
unsigned char data,
unsigned int  len,
sc_core::sc_time *  t,
unsigned int debug,
bool  is_dbg,
bool cacheable,
bool  is_lock 
)
inlinevirtual

implementation of mem_read function from mem_if.h

Reimplemented from mem_if.

References m_mmu, m_mmu_cache, m_tlb, m_tlbnum, mem_if::mem_read(), mmu_if::read_mcr(), swap_Endianess(), and mmu_if::tlb_lookup().

Here is the call graph for this function:

virtual void tlb_adaptor::mem_write ( unsigned int  addr,
unsigned int  asi,
unsigned char data,
unsigned int  len,
sc_core::sc_time *  t,
unsigned int debug,
bool  is_dbg,
bool cacheable,
bool  is_lock 
)
inlinevirtual

implementation of mem_write function from mem_if.h

Reimplemented from mem_if.

References m_mmu, m_mmu_cache, m_tlb, m_tlbnum, mem_if::mem_write(), mmu_if::read_mcr(), swap_Endianess(), and mmu_if::tlb_lookup().

Here is the call graph for this function:

Member Data Documentation

mmu_if* tlb_adaptor::m_mmu

Referenced by mem_read(), and mem_write().

mmu_cache_if* tlb_adaptor::m_mmu_cache

Referenced by mem_read(), and mem_write().

std::map<t_VAT, t_PTE_context>* tlb_adaptor::m_tlb

Referenced by mem_read(), and mem_write().

unsigned int tlb_adaptor::m_tlbnum

Referenced by mem_read(), and mem_write().


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