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.

Commonly used INI variables<br />

Preference variables located in INI files UM-537<br />

Several of the more commonly used modelsim.ini variables are further explained below.<br />

Environment variables<br />

You can use environment variables in your initialization files. Use a dollar sign ($) before<br />

the environment variable name. For example:<br />

[Library]<br />

work = $HOME/work_lib<br />

test_lib = ./$TESTNUM/work<br />

...<br />

[vsim]<br />

IgnoreNote = $IGNORE_AS<strong>SE</strong>RTS<br />

IgnoreWarning = $IGNORE_AS<strong>SE</strong>RTS<br />

IgnoreError = 0<br />

IgnoreFailure = 0<br />

There is one environment variable, MODEL_TECH, that you cannot — <strong>and</strong> should not —<br />

set. MODEL_TECH is a special variable set by Model Technology software. Its value is<br />

the name of the directory from which the VCOM or VLOG compilers or VSIM simulator<br />

was invoked. MODEL_TECH is used by the other Model Technology tools to find the<br />

libraries.<br />

Hierarchical library mapping<br />

By adding an "others" clause to your modelsim.ini file, you can have a hierarchy of library<br />

mappings. If the <strong>ModelSim</strong> tools don’t find a mapping in the modelsim.ini file, then they<br />

will search only the library section of the initialization file specified by the "others" clause.<br />

For example:<br />

[Library]<br />

asic_lib = /cae/asic_lib<br />

work = my_work<br />

others = /install_dir/modeltech/modelsim.ini<br />

Since the file referred to by the "others" clause may itself contain an "others" clause, you<br />

can use this feature to chain a set of hierarchical INI files for library mappings.<br />

Creating a transcript file<br />

A feature in the system initialization file allows you to keep a record of everything that<br />

occurs in the transcript: error messages, assertions, comm<strong>and</strong>s, comm<strong>and</strong> outputs, etc. To<br />

do this, set the value for the TranscriptFile line in the modelsim.ini file to the name of the<br />

file in which you would like to record the <strong>ModelSim</strong> history.<br />

; Save the comm<strong>and</strong> window contents to this file<br />

TranscriptFile = trnscrpt<br />

You can disable the creation of the transcript file by using the following <strong>ModelSim</strong><br />

comm<strong>and</strong> immediately after <strong>ModelSim</strong> starts:<br />

transcript file ""<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!