Download Notes - Read

Transcript
FLI and C Models
Debugging/Tracing
Debugging/Tracing
♦ FLI Tracing - Creates a logfile to aid the debugging of FLI
code.
●
●
●
Captures FLI calling sequence in an ASCII file
FLI can be replayed (at MTI) without user’s compiled code to
debug problems
If design is crashing, this feature can be used to find out which
call is crashing the simulator. Most probable cause is bad
pointer provided by the user code
♦ Invoke the trace: vsim -trace_foreign <action> [-tag <name>]
7-28 • ModelSim® Advanced Debugging: FLI and C Models
Copyright © 2002 Mentor Graphics Corporation
Notes:
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.
7-44
ModelSim Advanced Debugging
December 2002