Technical data

Location of the modelsim.ini file
414
-
System Initialization/Project File ModelSim EE/PLUS Reference Manual
Location of the modelsim.ini file
The Model
Sim
tools look for a
modelsim.ini
file in these locations:
• at the location specified by the MODELSIM (p55) environment variable,
• in the current directory if no environment variable exists.
• then in the directory where the executable exists (
/install_dir/modeltech/
<platform>
)
• then in the parent of the directory where the executable is (
/install_dir/
modeltech
)
Note:
You can modify the
modelsim.ini
file in any directory to customize Model
Sim
. However, you
shouldn’t casually modify the
modelsim.ini
in the
/install_dir/modeltech
directory. After installation, you
may want to designate
/install_dir/modeltech/modelsim.ini
as read-only.
If the
modelsim.ini
file in the current directory is corrupt or has been deleted, you
can restore it by copying from
/install_dir/modeltech/modelsim.ini
.
To view a typical project file, open
modelsim.ini
in the Model
Sim
install directory
with a text editor, or use the Model
Sim
notepad
command (p335):
notepad modelsim.ini
Initialization with the modelsim.tcl file
Window sizes, positions, colors, and waveform line styles are not stored in the
modelsim.ini
file, but rather in the Tcl preferences file,
modelsim.tcl
. See:
"Simulator preference variables" (p210).
Choosing project files
You can use the MODELSIM (p55) environment variable to specify an
initialization file. This allows you to have a "global" library map that is used even
when you are in a different directory. You should specify a full path including the
file name:
setenv MODELSIM /home/shark/my_modelsim.ini
Reading variable values from the .ini file
These Tcl functions allow you to read values from the
modelsim.ini
file.