Main Content

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_nameis a sc_core::sc_module_name type. It is a character vector that contains the instance name.

  • DefaultTimingis 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 initializesDefaultTimingto 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).

  • InputDefaultModeis 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 initializesInputDefaultModeto AUTO, but you can change it to MANUAL.

  • OutputDefaultModeis 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 initializesOutputDefaultModeto AUTO, but you can change it to MANUAL.