Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase

Model Technology Inc.


Initialization sequence

The following list describes in detail ModelSim's initialization sequence. The sequence includes a number of conditional structures, the results of which are determined by the existence of certain files and the current settings of environment variables.

In the steps below, names in uppercase denote environment variables (except MTI_LIB_DIR which is a Tcl variable). Instances of $(NAME) denote paths that are determined by an environment variable (except $(MTI_LIB_DIR) which is determined by a Tcl variable).

  1. Determines the path to the executable directory (../modeltech/<platform>/). Sets MODEL_TECH to this path, unless MODEL_TECH_OVERRIDE exists, in which case MODEL_TECH is set to the same value as MODEL_TECH_OVERRIDE.
  2. Finds the modelsim.ini file by evaluating the following conditions:
  3. Finds the location map file by evaluating the following conditions:
  4. Reads various variables from the [vsim] section of the modelsim.ini file. See "[vsim] simulator control variables" for more details.
  5. Parses any command line arguments that were included when you started ModelSim and reports any problems.
  6. Defines the following environment variables:
  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).
  9. The next four steps relate to initializing the graphical user interface.

  10. Sets Tcl variable "MTI_LIB_DIR"=MODEL_TECH_TCL
  11. Loads $(MTI_LIB_DIR)/pref.tcl.
  12. Loads last working directory, project init, project history, and printer defaults from the registry (Windows) or $(HOME)/.modelsim (UNIX).
  13. Finds the modelsim.tcl file by evaluating the following conditions:

That completes the initialization sequence. Also note the following about the modelsim.ini file:


Model Technology Inc.
Model Technology Incorporated
Voice: (503) 641-1340
Fax: (503)526-5410
www.model.com
sales@model.com
Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase