Download AMBA Bus Library
Transcript
AMBA Bus Library
GrantTrf (Initiator)
Attributes
General Usage
Static Sensitivity
Dynamic Sensitivity
Attributes
There are no attributes.
General Usage
if (port.getGrantTrf()){
//execute code
}
Static Sensitivity
class my_module: public sc_module
{
public:
...
// Constructor
SC_CTOR(my_module){
...
SC_METHOD(port_doWhenGranted);
sensitive << port.getReceiveGrantTrfEventFinder();
dont_initialize();
...
}
...
void port_doWhenGranted();
...
}//end of my_module
void my_module::port_doWhenGranted(void){
//execute code
}
Dynamic Sensitivity
wait(port.getReceiveGrantTrfEvent);
AddrTrf (Initiator and Target)
Attributes
General Usage in Initiator
Static Sensitivity in Initiator
Appendix A
Product Version V2004.2.2
AMBA TLM API Quick Reference
January 2005
149