User`s manual
Preference variables located in INI and MPF files
ModelSim Xilinx User’s Manual ModelSim Variables A-267
Spaces in path names
For the Src_Files and Work_Libs variables, each element in the list is enclosed
within curly braces ({}). This allows spaces inside elements (since Windows
allows spaces inside path names). For example a source file list might look like:
Src_Files = {$MODELSIM_PROJECT/counter.v} {$MODELSIM_PROJECT/tb counter.v}
Where the file tb counter.v contains a space character between the "b" and "c".
Setting variables in INI / MPF files
Edit the initialization or project file directly with any text editor to change or add
a variable. The syntax for variables in the file is:
<variable> = <value>
Comments within the file are preceded with a semicolon ( ; ).
Note: The vmap command (CR-147) automatically modifies library mapping in the current INI / MPF file.
Variable functions
Several, though not all, of the modelsim.ini variables are further explained below.
Environment variables
You can use environment variables in your initialization files. Use a dollar sign
($) before the environment variable name.
Examples
[Library]
work = $HOME/work_lib
test_lib = ./$TESTNUM/work
...
[vsim]
IgnoreNote = $IGNORE_ASSERTS
IgnoreWarning = $IGNORE_ASSERTS
IgnoreError = 0
IgnoreFailure = 0
Tip:
There is one environment variable, MODEL_TECH, that you cannot — and should not —
set. MODEL_TECH is a special variable set by Model Technology software. Its value is