5.2.1. CompBus::CompBus()

The class implementation for an example bus component initializes the CASIMMI interface.

An example of a constructor for the component is shown in Example 5.4.

Example 5.4. Constructor

CompBus::CompBus(CASIModuleIF* c, const std::string &s) : CASIModule(c, s)
{
    bm1_BMaster = new sc_port< CASITransactionIF, 0 >(this, "bm1", 0x1000, 0x10000 );
    initTransactionPort((CASIPortIF*)bm1_BMaster);
    registerPort( bm1_BMaster, "bm1" );
}
Copyright © 2007 ARM Limited. All rights reserved.ARM DUI 0359B
Non-Confidential