Technical data
Tcl variables
ModelSim EE/PLUS Reference Manual Simulator Command Reference
-
255
See also "Simulator preference variables" (p210). Preference variables give you
control over fonts, colors, prompts, window positions and other simulator window
characteristics. Also see "Project file variables" (p415) for information about
variables within the
modelsim.ini
file.
Environment variables
There are two ways to reference environment variables within Model
Sim
.
Environment variables are allowed in a FILE variable being opened in VHDL. For
example,
entity test is end;
use std.textio.all;
architecture only of test is
begin
process
FILE in_file : text is in "$ENV_VAR_NAME";
begin
wait;
end process;
end;
Environment variables may also be referenced from the Model
Sim
command line
or in macros using the Tcl env array mechanism:
echo "$env(ENV_VAR_NAME)"
Several environment variables can be set before you compile or simulate, see:
"Environment variables" (p54).
UserTimeUnit fs, ps, ns, us, ms,
sec, min, hr
specifies the default units to use for the "<timesteps>
[<time_units>]" argument to the
run
command
(p361), default is "ns"; NOTE - the value of this
variable must be set equal to, or larger than, the
current simulator resolution - to determine the
current time unit, invoke the
report
command
(p354) with the "simulator control" option
WaveSignalNameWidth 0, positive or
negative integer
when 0, VSIM displays the full signal name in the
Wave window (p168) and the Postscript plot; a
positive integer specifies the number of signal name
characters to be shown; a negative integer displays x
levels of hierarchy up from the signal
Variable name Value ran
g
ePurpose