Technical data

Simulation time units
256
-
Simulator Command Reference ModelSim EE/PLUS Reference Manual
User-defined variables
User-defined variables are available with the Tcl
set
command. See the Tcl man
pages (Main window:
Help > Tcl Man Pages
) for information on the
set
command. Like simulator variables, user-defined variables are preceded by a
dollar sign when referenced. To create a variable with the
set
command:
set user1 7
You can use the variable in a command like:
echo "user1 = $user1"
Simulation time units
You can specify the time unit for delays in all simulator commands that have time
arguments:
force clk 1 50 ns, 1 100 ns -repeat 1 us
run 2 ms
Note that all the time units in a VSIM command need not be the same.
Unless you specify otherwise as in the examples above, simulation time is always
expressed using the resolution units that are specified by the UserTimeUnit
variable. See the UserTimeUnit variable (p255).
By default, the specified time units are assumed to be relative to the current time
unless the value is preceded by the character @, which signifies an absolute time
specification.