Technical data

vsim
ModelSim EE/SE Command Reference ModelSim Commands CR-213
-wavslim <size>
Specifies a size restriction in megabytes for the event portion of the WLF logfile.
Optional. The default is infinite size (0). The <size> must be an integer.
Note that a logfile contains an event, header, and symbol portion. The size
restriction is placed on the event portion only. When ModelSim exits, the entire
header and symbol portion of the WLF file is written. Consequently, the resulting
file will be larger than the size specified with -wavslim.
If used in conjunction with -wavtlim, the -wavslim or -wavtlim value that limits
the file the most will take effect.
-wavtlim <duration>
Specifies the duration of simulation time for WLF logfile recording. Optional. The
default is infinite time (0). The <duration> is an integer of simulation time at the
current resolution; you can optionally specify the resolution if you place curly
braces around the specification. For example,
{5000 ns}
sets the duration at nanoseconds regardless of the current simulator resolution.
The time range begins at current simulation time and moves back in simulation
time for the specified duration. For exmaple,
vsim -wavtlim 5000
writes at least the last 5000ns of the current simulation to the logfile (the current
simulation resolution in this case is ns).
If used in conjunction with -wavslim, the -wavslim or -wavtlim value that limits
the file the most will take effect.
Note: The -wavslim and -wavtlim switches were designed to help users limit simulation runs for very
large files. When small values are used for these switches, the values may be overridden by the internal
granularity limits of the WLF logfile format.
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"
(12-298).