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-522 B - <strong>ModelSim</strong> variables<br />

Variable Description<br />

MTI_TF_LIMIT limits the size of the VSOUT temp file (generated by the <strong>ModelSim</strong> kernel); the<br />

value of the variable is the size of k-bytes; TMPDIR (below) controls the location<br />

of this file, STDOUT controls the name; default = 10, 0 = no limit; does not<br />

control the size of the transcript file<br />

MTI_U<strong>SE</strong>LIB_DIR specifies the directory into which object libraries are compiled when using the<br />

-compile_uselibs argument to the vlog comm<strong>and</strong> (CR-358)<br />

MTI_VCO_MODE determines which version of <strong>ModelSim</strong> to use on platforms that support both 32-<br />

<strong>and</strong> 64-bit versions when <strong>ModelSim</strong> executables are invoked from the modeltech/<br />

bin directory by a Unix shell comm<strong>and</strong> (using full path specification or PATH<br />

search); if MTI_VCO_MODE is not set, the preference is given to the highest<br />

performance installed version<br />

NOMMAP if set to 1, disables memory mapping in <strong>ModelSim</strong>; this should be used only when<br />

running on Linux 7.1; it will decrease the speed with which <strong>ModelSim</strong> reads files<br />

PLIOBJS used by <strong>ModelSim</strong> to search for PLI object files for loading; consists of a<br />

space-separated list of file or path names<br />

STDOUT the VSOUT temp file (generated by the simulator kernel) is deleted when the<br />

simulator exits; the file is not deleted if you specify a filename for VSOUT with<br />

STDOUT; specifying a name <strong>and</strong> location (use TMPDIR) for the VSOUT file will<br />

also help you locate <strong>and</strong> delete the file in event of a crash (an unnamed VSOUT<br />

file is not deleted after a crash either)<br />

TMPDIR (Unix)<br />

TMP (Windows)<br />

Creating environment variables in Windows<br />

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

specifies the path to a tempnam() generated file (VSOUT) containing all stdout<br />

from the simulation kernel<br />

In addition to the predefined variables shown above, you can define your own environment<br />

variables. This example shows a user-defined library path variable that can be referenced<br />

by the vmap comm<strong>and</strong> to add library mapping to the modelsim.ini file.<br />

Using Windows 98/Me<br />

Open <strong>and</strong> edit the autoexec.bat file by adding this line:<br />

set MY_PATH=\temp\work<br />

Restart Windows to initialize the new variable.<br />

Using Windows NT/2000/XP<br />

Right-click the My <strong>Computer</strong> icon <strong>and</strong> select Properties, then select the Environment<br />

tab (in Windows 2000/XP select the Advanced tab <strong>and</strong> then Environment Variables). Add<br />

the new variable with this data—Variable:MY_PATH <strong>and</strong> Value:\temp\work.<br />

Click Set <strong>and</strong> Apply to initialize the variable.

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

Saved successfully!

Ooh no, something went wrong!