This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

TLM Component Constructor

The generated TLM component has the following constructor function prototype:

model_name_usertag_tlm(sc_core::sc_module_name module_name, ...
     eTimingType DefaultTiming = TIMED, 
   eModeType InputDefaultMode = AUTO, eModeType OutputDefaultMode = AUTO);

Where:

  • module_name is a sc_core::sc_module_name type. It is a character vector that contains the instance name.

  • DefaultTiming is an eTimingType {TIMED, UNTIMED}. It determines whether the TLM component is timed or untimed at the beginning of the SystemC simulation. By default, the component initializes DefaultTiming to TIMED, but you can change it to UNTIMED. Also during the simulation, you can change the TLM component timing by calling the function SetTimingParam (eTimingType Type).

  • InputDefaultMode is an eModeType { MANUAL,AUTO}. It determines whether the TLM component input mode is manual or auto at the beginning of the SystemC simulation (and also after SystemC resets the component). By default, the TLM component initializes InputDefaultMode to AUTO, but you can change it to MANUAL.

  • OutputDefaultMode is an eModeType { MANUAL,AUTO}. It determines whether the TLM component output mode is manual or auto at the beginning of the SystemC simulation (and also after SystemC resets the component). By default, the TLM component initializes OutputDefaultMode to AUTO, but you can change it to MANUAL.