Download ModelSim SE User`s Manual

Transcript
System initialization
5
Parses any command line arguments that were included when you started ModelSim and
reports any problems.
6
Defines the following environment variables:
• use MODEL_TECH_TCL if it exists; else
• set MODEL_TECH_TCL=$(MODEL_TECH)/../tcl
• set TCL_LIBRARY=$(MODEL_TECH_TCL)/tcl8.0
• set TK_LIBRARY=$(MODEL_TECH_TCL)/tk8.0
• set TIX_LIBRARY=$(MODEL_TECH_TCL)/tix4.1
• set ITCL_LIBRARY=$(MODEL_TECH_TCL)/itcl3.0
• set ITK_LIBRARY=$(MODEL_TECH_TCL)/itk3.0
• set VSIM_LIBRARY=$(MODEL_TECH_TCL)/vsim
7
Initializes the simulator’s Tcl interpreter.
8
Checks for a valid license (a license is not checked out unless specified by a modelsim.ini
setting or command line option).
The next four steps relate to initializing the graphical user interface.
9
Sets Tcl variable "MTI_LIB_DIR"=MODEL_TECH_TCL
10 Loads $(MTI_LIB_DIR)/pref.tcl.
11 Loads last working directory, project init, project history, and printer defaults from the
registry (Windows) or $(HOME)/.modelsim (UNIX).
12 Finds the modelsim.tcl file by evaluating the following conditions:
• use MODELSIM_TCL if it exists (if MODELSIM_TCL is a list of files, each file is
loaded in the order that it appears in the list); else
• use ./modelsim.tcl; else
• use $(HOME)/modelsim.tcl if it exists
That completes the initialization sequence. Also note the following about the modelsim.ini
file:
• When you change the working directory within ModelSim, the tool reads the [library],
[vcom], and [vlog] sections of the local modelsim.ini file. When you make changes in the
compiler options dialog or use the vmap command, the tool updates the appropriate
sections of the file.
• The pref.tcl file references the default .ini file via the [GetPrivateProfileString] Tcl
command. The .ini file that is read will be the default file defined at the time pref.tcl is
loaded.
2-40 Projects and system initialization
ModelSim SE User’s Manual