User`s manual
Using the Verilog PLI
ModelSim Xilinx User’s Manual Verilog Simulation 5-93
This routine gets the current simulation time as a 64-bit integer. The low-order bits
are returned by the routine, while the high-order bits are stored in the aof_hightime
argument.
PLI tracing
The foreign interface tracing feature is available for tracing user foreign language
calls made to the MTI Verilog PLI. 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 PLI code. The primary
purpose of the replay facility is to send the replay file to MTI support for
debugging co-simulation problems, or debugging PLI problems for which it is
impractical to send thePLI code. MTI still would need the customer to send 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
(CR-148) with the -trace_foreign option:
Syntax
vsim
-trace_foreign <action> [-tag <name>]