Technical data
Environment variables
54
-
Compilation and Simulation ModelSim EE/PLUS Reference Manual
The additional benefit of this option is that it also allows symbolic library names
to be referenced and configured via Model
Sim
's
vmap
command (p89). Since this
option is unlikely to be supported by other environments, it might be best to
protect it with an
‘ifdef
:
‘ifdef MODEL_TECH
‘uselib lib=vendorA_lib
‘else
‘uselib dir=/h/vendorA/FPGAlib libext=.v
‘endif
where
MODEL_TECH
is predefined by the VLOG compiler and
vendorA_lib
is a reference to a symbolic library name that is mapped to the appropriate area by
the command:
vmap vendorA_lib /h/vendorA/FPGAlib/work
Environment variables
Before compiling or simulating, several environment variables may be set to
provide the following functions. The variables are in the
autoexec.bat
file on
Windows 95/98 machines, and set through the System control panel on NT
machines. The LM_LICENSE_FILE variable is required, all others are optional.
Variable Description
DOPATH used by VSIM to search for simulator command files (do files); consists of
a colon-separated (semi-colon for Windows) list of paths to directories;
optional; this variable can be overridden by the DOPATH (p253) simulator
control variable
EDITOR specifies the editor to invoke with the
edit
command (p308)
HOME used by VSIM to look for an optional graphical preference file and
optional location map file; see: "Simulator preference variables" (p210)
and "Using location mapping" (p539)
LM_LICENSE_FILE used by the Model
Sim
license file manager to find the location of the
license file; may be a colon-separated (semi-colon for Windows) set of
paths, including paths to other vendor license files; REQUIRED; see:
"Using the FLEXlm License Manager" (p547)
MODEL_TECH set by all Model
Sim
tools to the directory in which the binary executables
reside;
YOU SHOULD NOT SET THIS VARIABLE