Technical data
Environment variables
56
-
Compilation and Simulation ModelSim EE/PLUS Reference Manual
Once the variable is set, you can use it for library mappings in the following
manner.
If using the
vmap
command (p89) command from DOS prompt:
vmap MY_VITAL %MY_PATH%
If using
vmap
from ModelSim/VSIM prompt:
vmap MY_VITAL \$MY_PATH
(The "\" followed by a "$" will substitute the variable using Tcl syntax.)
If you used DOS
vmap
, the
modelsim.ini
will appear as below.
MY_VITAL = c:\temp\work
If you used
vmap
from ModelSim/VSIM prompt, the
modelsim.ini
will appear
as below.
MY_VITAL = $MY_PATH
You can also use the following to map to libraries with additional hierarchy:
vmap MORE_VITAL %MY_PATH%\more_path\and_more_path
vmap MORE_VITAL \$MY_PATH\more_path\and_more_path