User`s manual
Environment variables
A-256  ModelSim Variables ModelSim Xilinx User’s Manual
Setting environment variables in Windows
In addition to the predefined variables shown above, you can define your own 
environment variables. This example shows a user-defined library path variable 
that can be referenced by the vmap command to add library mapping to the 
modelsim.ini file.
Using Windows 95/98
Open and edit the autoexec.bat file by adding this line:
set MY_PATH=\temp\work
Restart Windows to initialize the new variable.
Using Windows NT
Right-click the My Computer icon and select Properties, then select the 
Environment tab of the System Properties control panel. Add the new variable to 
these fields: Variable:MY_PATH and Value:\temp\work.
Click Set and Apply to initialize the variable (you don’t need to restart NT).
STDOUT the VSOUT temp file (generated by the simulator kernel) is deleted when 
the simulator exits; the file is not deleted if you specify a filename for 
VSOUT with STDOUT; specifying a name and location (use TMPDIR) 
for the VSOUT file will also help you locate and delete the file in event of 
a crash (an unnamed VSOUT file is not deleted after a crash either)
TMP specifies the path to a tempnam() generated file (VSOUT) containing all 
stdout from the simulation kernel; optional
MODELSIM used by all ModelSim tools to find the modelsim.ini file; consists of a path 
including the file name; optional. An alternative use of this variable is to 
set it to the path of a project file (<Project_Root_Dir>/
<Project_Name>.mpf). This allows you to use project settings with 
command line tools. However, if you do this, the .mpf file will replace 
modelsim.ini as the initialization file for all ModelSim tools.
MODELSIM_TCL used by VSIM to look for an optional graphical preference file
Variable Description










