24.03.2013 Views

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PLI/VPI tracing<br />

The purpose of tracing files<br />

Invoking a trace<br />

Syntax<br />

Arguments<br />

The foreign interface tracing feature is available for tracing PLI <strong>and</strong> VPI function calls.<br />

Foreign interface tracing creates two kinds of traces: a human-readable log of what<br />

functions were called, the value of the arguments, <strong>and</strong> the results returned; <strong>and</strong> a set of<br />

C-language files that can be used to replay what the foreign interface code did.<br />

PLI/VPI tracing UM-599<br />

The purpose of the logfile is to aid you in debugging PLI or VPI code. The primary purpose<br />

of the replay facility is to send the replay files to MTI support for debugging co-simulation<br />

problems, or debugging PLI/VPI problems for which it is impractical to send the PLI/VPI<br />

code. We still need you to send the VHDL/Verilog part of the design to actually execute a<br />

replay, but many problems can be resolved with the trace only.<br />

To invoke the trace, call vsim (CR-373) with the -trace_foreign argument:<br />

vsim<br />

-trace_foreign [-tag ]<br />

<br />

Specifies one of the following actions:<br />

Value Action Result<br />

1 create log only writes a local file called<br />

"mti_trace_"<br />

2 create replay only writes local files called<br />

"mti_data_.c",<br />

"mti_init_.c",<br />

"mti_replay_.c" <strong>and</strong><br />

"mti_top_.c"<br />

3 create both log <strong>and</strong> replay<br />

-tag <br />

Used to give distinct file names for multiple traces. Optional.<br />

<strong>ModelSim</strong> <strong>SE</strong> User’s <strong>Manual</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!