Technical data

GUI_expression_format
ModelSim EE/SE Command Reference Command Syntax and Conventions CR-253
Saving expressions
Expressions created in the expression builder dialog box can be saved for future
use by pressing the SAVE button. You will be prompted for the name of a global-
level Tcl variable, to be assigned the expression string. After entering the variable
name, the expression will be saved. Regardless of whether you enter a Tcl variable
name or not, the expression will also be saved in the entry box drop-down cache.
A previous entry in the cache can be selected by simply clicking with the mouse.
Expression syntax
GUI expressions generally follow C-language syntax, with both VHDL-specific
and Verilog-specific conventions supported. These expressions are not parsed by
the Tcl parser, and so do not support general Tcl; parentheses should be used
rather than curly braces. Procedure calls are not supported.
A GUI expression can include the following elements:
Tcl macros
Macros are useful for pre-defined constants or for entire expressions that have
been previously saved. The substitution is done only once, when the expression is
first parsed. Macro syntax is:
$<name>
Substitutes the string value of the Tcl global variable <name>.
Constants
Type Values
boolean value 0 1 true false TRUE FALSE
integer [0-9]+
real number <int>|([<int>].<int>[exp] where the optional [exp] is: (e|E)[+|-][0-9]+
time integer or real optionally followed by time unit
enumeration VHDL user-defined enumeration literal
single bit constants expressed as any of the following:
0 1 x X z Z U H L W U X 0 1 Z H L W - 1b0 1b1