Technical data

Project file variables
ModelSim EE/PLUS Reference Manual System Initialization/Project File
-
415
GetIniInt <var_name> <default_value>
Reads the integer value for the specified variable.
GetIniReal <var_name> <default_value>
Reads the real value for the specified variable.
GetProfileString <section> <var_name> [<default>]
Reads the string value for the specified variable in the specified section. Optionally
provides a default value if no value is present.
Examples
Setting Tcl variables with values from the
modelsim.ini
file is one use of these Tcl
functions.
set MyCheckpointCompressMode [GetIniInt "CheckpointCompressMode"
1]
set PrefMain(file) [GetProfileString vsim TranscriptFile ""]
Project file variables
The following tables list most
modelsim.ini
variables by section. Many variables
in the
[vsim]
section may be reset during simulation with Tcl "Simulator control
variables" (p253).
Comments in the
modelsim.ini
are preceded with a semicolon ( ; ).
The syntax for variables in the
modelsim.ini
file is:
<variable> = <value>
[Library] section
Variable name Value ran
g
ePurpose
std any valid path; may include
environment variables
sets path to the VHDL STD library;
default is <install_dir>/../std
ieee any valid path; may include
environment variables
sets path to the library containing IEEE
and Synopsys arithmetic packages;
default is <install_dir>/../ieee