| |||
| Home > SystemC Export > SystemC component API > Accessing the CADI interface directly | |||
There are two ways to access the CADI interface of the EVS.
Connect with the CADI Client Integration Kit (CCIK). This method uses TCP/IP as transport layer.
Connect directly to the CADI Interface.
The direct connection to the CADI Interface of the EVS is provided through a global symbol of the exported platform:
extern "C"{ CADI_WEXP eslapi::CADIBroker * CreateCADIBroker(); }
This enables getting the CADIBroker. The CADIBroker enables querying all CADIInterfaces that are maintained by the simulation.
The following header files must be included to access the CADIBroker:
"#include "eslapi/CADIFactory.h"
"#include "eslapi/CADI.h"
"#include "sc_sg_wrapper_<platform_name>.h"
For the include sc_sg_wrapper_<,
the term platform_name><platform_name> must be changed to
the name of the EVS. This include file is generated into a subdirectory
of the actual build path.