|ARM Technical Support Knowledge Articles|
Applies to: Fast Models
In the Fast Models, you can use an MTI plugin to get information about events occurring in your model.
You can use the pre-built Tarmac plug-in to get some information about the core events.
If you need to have access to more MTI events than the one displayed by Tarmac (for example a non core component), you can use an example provided in the FastModelsPortolio called GenericTrace.
For a cadi library, you would use:
model_shell -m cadi_system_<Configuration>.so --plugin
For a SystemC EVS, assuming it is calling scx_parse_and_configure, you can use this command line:
You can also hard-code the path to the plugin in your SystemC code (before calling sc_start) with:
First you need to know which Trace Source you want to trace. You can use the ListTraceSources plugin to see them and choose the one you are interested in.
Then specify the Trace source as a parameter to the plugin:
model_shell -m cadi_system_<Configuration>.so --plugin $PVLIB_HOME/plugins/<OS/Compiler>/GenericTrace.so -C TRACE.GenericTrace.trace-sources=EXCEPTION,EXCEPTION_RETURN
You can specify the path to a specific component to trace only from it (for example only from one CPU in your system):
You can also use wildcards to add all the trace sources matching a pattern:
You can see all the parameters the plugin define by launching the model with the plugin and the --list-params option.
- Specify a file as output with
- Start/stop tracing after a number of instructions* with
Did you find this article helpful? Yes No
How can we improve this article?