Technical data

GUI_expression_format
ModelSim EE/PLUS Reference Manual ModelSim EE Graphic Interface
-
237
The enumeration types supported are any VHDL enumerated type. Enumeration
literals may be used in the expression as long as some variable of that enumeration
type is referenced in the expression. This is useful for subexpressions of the form:
(/memory/state == reading)
Groupin
g
and precedence
Operator precedence generally follows that of the C language, but we recommend
liberal use of parentheses.
Savin
g
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>.