![]() |
![]() |
![]() |
![]() |
FLI tracing
The foreign interface tracing feature is available for tracing user foreign language calls made to the MTI VHDL FLI. Foreign interface tracing creates two kinds of traces: a human-readable log of what functions were called, the value of the arguments, and the results returned; and a set of C-language files to replay what the foreign interface side did.
The purpose of tracing files
The purpose of the logfile is to aid you in debugging FLI code. The primary purpose of the replay facility is to send the replay file to MTI support for debugging co-simulation problems, or debugging FLI problems for which it is impractical to send the FLI code. MTI would still require a copy of the VHDL/Verilog part of the design to actually execute a replay, but many problems can be resolved with the trace only.
Invoking a trace
To invoke the trace, call vsim (see ModelSim Command Reference) with the
-trace_foreign option:Syntax
vsimArguments
<action>-tag <name>Specifies one of the following actions:
Used to give distinct file names for multiple traces. Optional.
Examples
vsim -trace_foreign 1 mydesign vsim -trace_foreign 3 mydesignCreates both a logfile and a set of replay files.
vsim -trace_foreign 1 -tag 2 mydesignThe tracing operations will provide tracing during all user foreign code-calls, including VHDL foreign process callbacks and Verilog VCL callbacks. The miscellaneous VHDL callbacks (LoadComplete, Restart, Quit, EnvChanged, SimStatus, Save and Restore) are traced during execution but not explicitly identified as being from a callback function.
Note: Tracing does not work across checkpoint/restore operations.
![]() Model Technology Inc. Voice: (503) 641-1340 Fax: (503)526-5410 http://www.model.com sales@model.com |
![]() |
![]() |
![]() |
![]() |