User`s manual
Using the Verilog PLI
5-94 Verilog Simulation ModelSim Xilinx User’s Manual
Arguments
<action>
Specifies one of the following actions:
-tag <name>
Used to give distinct file names for multiple traces. Optional.
Examples
vsim -trace_foreign 1 mydesign
Creates a logfile.
vsim -trace_foreign 3 mydesign
Creates both a logfile and a set of replay files.
vsim -trace_foreign 1 -tag 2 mydesign
Creates a logfile with a tag of "2".
The tracing operations will provide tracing during all user foreign code-calls,
includingPLI user tasks and functions (calltf, checktf, sizetf and misctf routines),
and Verilog VCL call-backs.
Value Action Result
1 create log only writes a local file called
"mti_trace_<tag>"
2 create replay only writes local files called
"mti_data_<tag>.c",
"mti_init_<tag>.c",
"mti_replay_<tag>.c" and
"mti_top_<tag>.c"
3 create both log and replay