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.

Initialization sequence<br />

Initialization sequence UM-615<br />

The following list describes in detail <strong>ModelSim</strong>’s initialization sequence. The sequence<br />

includes a number of conditional structures, the results of which are determined by the<br />

existence of certain files <strong>and</strong> the current settings of environment variables.<br />

In the steps below, names in uppercase denote environment variables (except<br />

MTI_LIB_DIR which is a Tcl variable). Instances of $(NAME) denote paths that are<br />

determined by an environment variable (except $(MTI_LIB_DIR) which is determined by<br />

a Tcl variable).<br />

1 Determines the path to the executable directory (../modeltech//). Sets<br />

MODEL_TECH to this path, unless MODEL_TECH_OVERRIDE exists, in which case<br />

MODEL_TECH is set to the same value as MODEL_TECH_OVERRIDE.<br />

2 Finds the modelsim.ini file by evaluating the following conditions:<br />

use MODELSIM if it exists; else<br />

use $(MGC_WD)/modelsim.ini; else<br />

use ./modelsim.ini; else<br />

use $(MODEL_TECH)/modelsim.ini; else<br />

use $(MODEL_TECH)/../modelsim.ini; else<br />

use $(MGC_HOME)/lib/modelsim.ini; else<br />

set path to ./modelsim.ini even though the file doesn’t exist<br />

3 Finds the location map file by evaluating the following conditions:<br />

use MGC_LOCATION_MAP if it exists (if this variable is set to "no_map", <strong>ModelSim</strong><br />

skips initialization of the location map); else<br />

use mgc_location_map if it exists; else<br />

use $(HOME)/mgc/mgc_location_map; else<br />

use $(HOME)/mgc_location_map; else<br />

use $(MGC_HOME)/etc/mgc_location_map; else<br />

use $(MGC_HOME)/shared/etc/mgc_location_map; else<br />

use $(MODEL_TECH)/mgc_location_map; else<br />

use $(MODEL_TECH)/../mgc_location_map; else<br />

use no map<br />

4 Reads various variables from the [vsim] section of the modelsim.ini file. See "[vsim]<br />

simulator control variables" (UM-529) for more details.<br />

5 Parses any comm<strong>and</strong> line arguments that were included when you started <strong>ModelSim</strong> <strong>and</strong><br />

reports any problems.<br />

6 Defines the following environment variables:<br />

use MODEL_TECH_TCL if it exists; else<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!