Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

Files | Classes | Functions
AHB Profiler

Files

file  ahbprof.cpp
 
file  ahbprof.h
 

Classes

struct  prof_info
 
class  AHBProf
 

Functions

 AHBProf::AHBProf (const ModuleName nm, uint32_t index=0, uint16_t addr=0, uint16_t mask=0, AbstractionLayer ambaLayer=amba::amba_LT)
 Constructor for the test bench memory class. More...
 
 AHBProf::~AHBProf ()
 Destructor. More...
 
uint32_t AHBProf::exec_func (tlm::tlm_generic_payload &gp, sc_time &delay, bool debug=false)
 Interface to functional part of the model. More...
 
sc_core::sc_time AHBProf::get_clock ()
 Returns clock cycle time from child. More...
 

Detailed Description

Function Documentation

AHBProf::AHBProf ( const ModuleName  nm,
uint32_t  index = 0,
uint16_t  addr = 0,
uint16_t  mask = 0,
AbstractionLayer  ambaLayer = amba::amba_LT 
)

Constructor for the test bench memory class.

Constructor

Parameters
haddrAHB address of the AHB slave socket (12 bit)
hmaskAHB address mask (12 bit)
ambaLayerAbstraction layer used (AT/LT)
slave_idAHB Slave id
outfileFile name of a text file to initialize the memory from

References AHBDevice< BaseModule< DefaultBase > >::get_ahb_base_addr(), AHBDevice< BaseModule< DefaultBase > >::get_ahb_size(), v::info, setup::name, and v::uint32.

Here is the call graph for this function:

uint32_t AHBProf::exec_func ( tlm::tlm_generic_payload &  gp,
sc_time &  delay,
bool  debug = false 
)
virtual

Interface to functional part of the model.

Implements AHBSlave<>.

References CLKDevice::clock_cycle, v::error, i, AHBProf::info, setup::name, v::report, swap_Endianess(), and v::warn.

Here is the call graph for this function:

sc_core::sc_time AHBProf::get_clock ( )
virtual

Returns clock cycle time from child.

Implements AHBSlave<>.

References CLKDevice::clock_cycle.

AHBProf::~AHBProf ( )

Destructor.