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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

UM-616 F - System initialization<br />

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

set MODEL_TECH_TCL= $(MODEL_TECH)/../tcl<br />

set TCL_LIBRARY= $(MODEL_TECH_TCL)/tcl8.3<br />

set TK_LIBRARY= $(MODEL_TECH_TCL)/tk8.3<br />

set ITCL_LIBRARY= $(MODEL_TECH_TCL)/itcl3.0<br />

set ITK_LIBRARY= $(MODEL_TECH_TCL)/itk3.0<br />

set VSIM_LIBRARY= $(MODEL_TECH_TCL)/vsim<br />

7 Initializes the simulator’s Tcl interpreter.<br />

8 Checks for a valid license (a license is not checked out unless specified by a modelsim.ini<br />

setting or comm<strong>and</strong> line option).<br />

The next four steps relate to initializing the graphical user interface.<br />

9 Sets Tcl variable MTI_LIB_DIR=$(MODEL_TECH_TCL)<br />

10 Loads $(MTI_LIB_DIR)/vsim/pref.tcl.<br />

11 Finds the modelsim.tcl file by evaluating the following conditions:<br />

use MODELSIM_TCL environment variable if it exists (if MODELSIM_TCL is a list of<br />

files, each file is loaded in the order that it appears in the list); else<br />

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

use $(HOME)/modelsim.tcl if it exists<br />

12 Loads last working directory, project file, printer defaults, <strong>and</strong> window <strong>and</strong> toolbar<br />

configurations from the registry (Windows) or $(HOME)/.modelsim (UNIX).<br />

That completes the initialization sequence. Also note the following about the modelsim.ini<br />

file:<br />

When you change the working directory with in <strong>ModelSim</strong>, the tool reads the [library],<br />

[vcom], <strong>and</strong> [vlog] sections of the local modelsim.ini file. When you make changes in the<br />

compiler or simulator options dialog or use the vmap comm<strong>and</strong>, the tool updates the<br />

appropriate sections of the file.<br />

The pref.tcl file references the default .ini file via the [GetPrivateProfileString] Tcl<br />

comm<strong>and</strong>. The .ini file that is read will be the default file defined at the time pref.tcl is<br />

loaded.

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

Saved successfully!

Ooh no, something went wrong!