Modelling and Simulation in Engineering / 2014 / Article / Alg 4

Research Article

Runtime Instrumentation of SystemC/TLM2 Interfaces for Fault Tolerance Requirements Verification in Software Cosimulation

Algorithm 4

tlm2_wrapper *p_wrapper = new tlm2_wrapper( "top.Initiator.socket_0" );
::::
p_wrapper->add_tlm2_wrapper( B_TRANSPORT );   // Wrapper inlining for
                        // B_TRANSPORT interface
::::
top.p_initiator->socket->b_transport( *trans, delay ); // Call doesnt change
::::
p_wrapper->remove_tlm2_wrapper( B_TRANSPORT ); // Wrapper removing