Download AMBA Bus Library
Transcript
AMBA Bus Library
Static Sensitivity in Target
class my_module: public sc_module
{
public:
...
// Constructor
SC_CTOR(my_module){
...
SC_METHOD(port_receiveAddr);
sensitive << port.getReceiveAddrTrfEventFinder();
dont_initialize();
...
}
...
void port_receiveAddr();
...
}//end of my_module
void my_module::port_receiveAddr(void){
//get attributes
unsigned int v_address = port.getAddrTrf()->getAddress();
tlmTTransactionType v_type = port.AddrTrf->getType();
unsigned int accessSize v_size = port.AddrTrf->getAccessSize();
...
}
Dynamic Sensitivity in Target
wait( port.getReceiveAddrTrfEvent() );
//get attributes
unsigned int v_address = port.AddrTrf->getAddress();
tlmTTransactionType v_type = port.AddrTrf->getType();
...
Cross-Referencing Transfers in Target
port.getAddrTrf();
value = port.AddrTrf->getLockTrf()->getLock();
LockTrf (Target)
Attributes
General Usage in Target
Static Sensitivity in Target
Dynamic Sensitivity in Target
Cross-Referencing Transfers in Target
Appendix A
Product Version V2004.2.2
AMBA TLM API Quick Reference
January 2005
153