24.03.2013 Views

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Environment variables<br />

Environment variables UM-521<br />

Before compiling or simulating, several environment variables may be set to provide the<br />

functions described in the table below. The variables are in the autoexec.bat file on<br />

Windows 98/Me machines, <strong>and</strong> set through the System control panel on NT/2000/XP<br />

machines. For UNIX, the variables are typically found in the .login script. The<br />

LM_LICEN<strong>SE</strong>_FILE variable is required; all others are optional.<br />

Variable Description<br />

DOPATH used by <strong>ModelSim</strong> to search for DO files (macros); consists of a colon-separated<br />

(semi-colon for Windows) list of paths to directories; this environment variable<br />

can be overridden by the DOPATH Tcl preference variable<br />

The DOPATH environment variable isn’t accessible when you invoke vsim from<br />

a Unix shell or from a Windows comm<strong>and</strong> prompt. It is accessible once <strong>ModelSim</strong><br />

or vsim is invoked. If you need to invoke from a shell or comm<strong>and</strong> line <strong>and</strong> use<br />

the DOPATH environment variable, use the following syntax:<br />

vsim -do "do " <br />

EDITOR specifies the editor to invoke with the edit comm<strong>and</strong> (CR-157)<br />

HOME used by <strong>ModelSim</strong> to look for an optional graphical preference file <strong>and</strong> optional<br />

location map file; see: "Preference variables located in INI files" (UM-524)<br />

LM_LICEN<strong>SE</strong>_FILE used by the <strong>ModelSim</strong> license file manager to find the location of the license file;<br />

may be a colon-separated (semi-colon for Windows) set of paths, including paths<br />

to other vendor license files; REQUIRED<br />

MODEL_TECH set by all <strong>ModelSim</strong> tools to the directory in which the binary executable resides;<br />

DO NOT <strong>SE</strong>T THIS VARIABLE!<br />

MODEL_TECH_TCL used by <strong>ModelSim</strong> to find Tcl libraries for Tcl/Tk 8.3 <strong>and</strong> vsim; may also be used<br />

to specify a startup DO file; defaults to /modeltech/../tcl; may be set to an alternate<br />

path<br />

MGC_LOCATION_MAP used by <strong>ModelSim</strong> tools to find source files based on easily reallocated "soft"<br />

paths; optional; see the Tcl variables: SourceDir <strong>and</strong> SourceMap<br />

MODELSIM used by all <strong>ModelSim</strong> tools to find the modelsim.ini file; consists of a path<br />

including the file name. An alternative use of this variable is to set it to the path of<br />

a project file (/.mpf). This allows you to<br />

use project settings with comm<strong>and</strong> line tools. However, if you do this, the .mpf<br />

file will replace modelsim.ini as the initialization file for all <strong>ModelSim</strong> tools.<br />

MODELSIM_TCL used by <strong>ModelSim</strong> to look for an optional graphical preference file; can be a<br />

colon-separated (UNIX) or semi-colon separated (Windows) list of file paths<br />

MTI_COSIM_TRACE creates an mti_trace_cosim file containing debugging information about FLI/PLI/<br />

VPI function calls; set to any value before invoking the simulator.<br />

<strong>ModelSim</strong> <strong>SE</strong> User’s <strong>Manual</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!