User`s manual

A-258 ModelSim Variables ModelSim Xilinx Users Manual
Environment variables may also be referenced from the ModelSim command line
or in macros using the Tcl env array mechanism:
echo "$env(ENV_VAR_NAME)"
Removing temp files (VSOUT)
The VSOUT temp file is the communication mechanism between the simulator
kernel and the ModelSim GUI. In normal circumstances the file is deleted when
the simulator exits. If ModelSim crashes, however, the temp file must be deleted
manually. Specifying the location of the temp file with TMPDIR (above) will
help you locate and remove the file.
Note: 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 the name of the
directory from which the vcom compiler or vsim simulator was invoked. MODEL_TECH is used by the
other Model Technology tools to find the libraries.