Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

Files | Classes | Functions
AHB Demonstration Output Device

Files

file  ahbout.cpp
 
file  ahbout.h
 

Classes

class  AHBOut
 

Functions

 AHBOut::AHBOut (const ModuleName nm, uint16_t haddr_, uint16_t hmask_=0, AbstractionLayer ambaLayer=amba::amba_LT, uint32_t slave_id=0, char *outfile=NULL)
 Constructor for the test bench memory class. More...
 
 AHBOut::~AHBOut ()
 Destructor. More...
 
uint32_t AHBOut::exec_func (tlm::tlm_generic_payload &gp, sc_time &delay, bool debug=false)
 Encapsulated functionality. More...
 
sc_core::sc_time AHBOut::get_clock ()
 Returns clock cycle time from child. More...
 

Detailed Description

Function Documentation

AHBOut::AHBOut ( const ModuleName  nm,
uint16_t  haddr_,
uint16_t  hmask_ = 0,
AbstractionLayer  ambaLayer = amba::amba_LT,
uint32_t  slave_id = 0,
char outfile = NULL 
)

Constructor for the test bench memory class.

Constructor.

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, v::outfile, and v::uint32.

Here is the call graph for this function:

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

Encapsulated functionality.

Implements AHBSlave<>.

References CLKDevice::clock_cycle, v::error, i, setup::name, v::outfile, and v::warn.

sc_core::sc_time AHBOut::get_clock ( )
virtual

Returns clock cycle time from child.

Implements AHBSlave<>.

References CLKDevice::clock_cycle.

AHBOut::~AHBOut ( )

Destructor.

References v::outfile.