Technical data
Tcl variables
ModelSim EE/PLUS Reference Manual Simulator Command Reference
-
253
Examples
echo "The time is $now $resolution."
will result in:
The time is 12390 10ps.
If you do not want the dollar sign to denote a simulator variable, precede it with a
"\" character. For example, \$now will not be interpreted as the current simulator
time.
Simulator control variables
The following predefined Tcl variables control various aspects of VSIM
simulation. Case is significant in variable names. Most simulator control variables
can be initialized in the
modelsim.ini
file. See "Project file variables" (p415).
Variable name Value ran
g
ePurpose
BreakOnAssertion 0-4 defines severity of assertion that causes a simulation
break (0 = note, 1 = warning, 2 = error, 3 = failure, 4
= fatal), default is 3
CheckpointCompressMode 0,1 if 1, checkpoint files are written in compressed
format, default is 1
DefaultForceKind freeze, drive, or
deposit
defines the kind of force used when not otherwise
specified
DefaultRadix symbolic, binary,
octal, decimal,
unsigned,
hexadecimal,
ascii
default is symbolic; any radix may be specified as a
number or name, i.e., binary can be specified as
binary or 2
DelayFileOpen 0, 1 if 1, open VHDL87 files on first read or write, else
open files when elaborated
DOPATH a colon-separated
list of paths to
directories
used by VSIM to search for simulator command files
(DO files); overrides the DOPATH (p54)
environment variable
IgnoreError 0,1 if 1, ignore assertion errors