Technical data

Tcl variables
252
-
Simulator Command Reference ModelSim EE/PLUS Reference Manual
Tcl variables
Tcl variables can be referenced in simulator commands by preceding the name of
the variable with the dollar sign ($) character. The simulator uses global Tcl
variables for simulator state variables, simulator control variables, simulator
preference variables and user-defined variables. Note that case is significant in
variable names.
Variable settin
g
s report
The
report
command (p354) returns a list of current settings for either the
simulator state, or simulator control variables listed below.
Simulator state variables
Variable Result
argc returns the total number of parameters passed to the current macro
architecture returns the name of the top-level architecture currently being simulated; for a
configuration or Verilog module, this variable returns an empty string
configuration returns the name of the top-level configuration currently being simulated; returns
an empty string if no configuration
delta returns the number of the current simulator iteration
entity returns the name of the top-level VHDL entity or Verilog module currently being
simulated
library returns the library name for the current region
MacroNestingLevel returns the current depth of macro call nesting
n represents a macro parameter, where n can be an integer in the range 1-9
now returns the current simulation time, which is a number expressed in the current
simulation time resolution
resolution returns the current simulation time resolution