Technical data

Simulator preference variables
ModelSim EE/PLUS Reference Manual ModelSim EE Graphic Interface
-
215
Settin
g
preferences from the Model
Sim
command line
In addition to the GUI, all preferences can be set from the Model
Sim
command
line in the Main window (p116). Note that if you save to a preference file other
than
modelsim.tcl
you must refer to it with the MODELSIM_TCL (p55)
environment variable.
Set variables temporarily in the current environment with the
set
command:.
set <variable name> <variable value>
User_hook variables can include multiple procedures; you can append additional
procedures to a user_hook with the
lappend
command:
lappend <variable name>(user_hook) <Tcl procedure> ...
Note:
Since the user_hook variable is a list of Tcl procedure names, it is important to use the
lappend
command instead of the
set
command so that one does not inadvertently overwrite other preferences.
Save all current preference settings as permanent defaults with the
write
preferences
command:
write preferences <preference file name>
You can also modify variables by editing the preference file with the Model
Sim
notepad
(p335):
notepad <preference file name>
See also
See the Tcl man pages (Main window: Help > Tcl Man Pages) for more
information on using the
set
command,
lappend
command and Tcl variables. For
a complete list of preference variables see: "Preference variable arrays" (p216).
And for more information on user_hook variables see: "user_hook variables"
(p226).