Technical data
vsim
ModelSim EE/PLUS Reference Manual ModelSim Command Reference
-
95
-trace_foreign <int>
Creates two kinds of foreign interface traces: a log of what functions were called, with 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 the log file is to aid the debugging of your FLI and/or 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 problems for which it is impractical to send the FLI/
PLI code.
See "FLI and PLI tracing" (p486) for more information.
-view <filename>
Specifies the event log file for VSIM to read. Allows you to use VSIM to view the results
from an earlier simulation. The Structure, Signals, Waveform, and List windows can be
opened to look at the results stored in the log file (other Model
Sim
windows will not open
when you are viewing a log file). See additional discussion in "Examples" (p100).
-wav <filename>
Specifies the name of the VSIM event log file to create. The default is
vsim.wav
. Optional.
Arguments, VHDL
-foreign <attribute>
Specifies the foreign module to load. Optional. A particular C function from a shared
library may be specified with:
vsim -foreign <name of C function> <path to shared library>
Syntax for the attribute is further described in "Declaring the FOREIGN attribute"
(p456).
-g<Name=Value> ...
Note there is no space between
-g
and
<Name=Value>
. Specifies a value for all generics
in the design with the given name that have not received explicit values in generic maps
(such as top-level generics and generics that would otherwise receive their default value).
Optional.
Name
is the name of the generic parameter, exactly as it appears in the VHDL
source (case is ignored).
Value
is an appropriate value for the declared data type
of the generic parameter.