Technical data

Simulator preference variables
210
-
ModelSim EE Graphic Interface ModelSim EE/PLUS Reference Manual
Simulator preference variables
Simulator preference variables give you control over fonts, colors, prompts,
window positions and other simulator window characteristics. Preference files,
which contain Tcl commands that set preference variables, are loaded before any
windows are created, and so will affect all windows. Additional preferences may
be set in the
modelsim.ini
file (see "System Initialization/Project File" (p413)).
The modelsim.tcl file
If preferences are saved to a file named
modelsim.tcl
in the local directory, or in
your home directory, the file will be automatically read on future invocations of
VSIM.
The environment variable MODELSIM_TCL (p55) can be used to specify the
location of preference files. The variable consists of a colon-separated list of paths
to tcl files containing preference settings (all files in the list are loaded). If your
preference file is not named
modelsim.tcl
, you must refer to it with the
MODELSIM_TCL environment variable.
Preference file loadin
g
order
Preference files are searched for and loaded in the following order:
<install_dir>/tcl/vsim/pref.tcl
is always loaded
• $MODELSIM_TCL if it exists
./modelsim.tcl
, only if $MODELSIM_TCL does not exist
$HOME/modelsim.tcl
, only if $MODELSIM_TCL and .
/modelsim.tcl
do not
exist
After the design is loaded the
modelsim.ini
file is evaluated. Any window
user_hook variables (p226) are evaluated after the associated window type is
created.
See also, the MODELSIM_TCL (p55) and HOME (p54) environment variables.
Returnin
g
to the ori
g
inal Model
Sim
defaults
If you would like to return Model
Sim
’s interface to its original state, simply
rename or delete the existing
modelsim.tcl
and
modelsim.ini
files. Model
Sim
will
use
pref.tcl
for GUI preferences and make a copy of
<install_dir>/modeltech/
modelsim.ini
to use the next time VSIM is invoked. See also, "System
Initialization/Project File" (p413).