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-618 G - Logic Modeling SmartModels<br />

VHDL SmartModel interface<br />

Enabling the interface<br />

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

<strong>ModelSim</strong> VHDL interfaces to a SmartModel through a foreign architecture. The foreign<br />

architecture contains a foreign attribute string that associates a specific SmartModel with<br />

the architecture. On elaboration of the foreign architecture, the simulator automatically<br />

loads the SmartModel library software <strong>and</strong> establishes communication with the specific<br />

SmartModel.<br />

To enable the SmartModel interface you must do the following:<br />

Set the LMC_HOME environment variable to the root of the SmartModel library<br />

installation directory. Consult Logic Modeling's documentation for details.<br />

Uncomment the appropriate libswift entry in the modelsim.ini file for your operating<br />

system.<br />

If you are running the Windows operating system, you must also comment out the default<br />

libsm entry (precede the line with the ";" character) <strong>and</strong> uncomment the libsm entry for<br />

the Windows operating system.<br />

The libswift <strong>and</strong> libsm entries are found under the [lmc] section of the default modelsim.ini<br />

file located in the <strong>ModelSim</strong> installation directory. The default settings are as follows:<br />

[lmc]<br />

; <strong>ModelSim</strong>'s interface to Logic Modeling's SmartModel SWIFT software<br />

libsm = $MODEL_TECH/libsm.sl<br />

; <strong>ModelSim</strong>'s interface to Logic Modeling's SmartModel SWIFT software (Windows<br />

NT)<br />

; libsm = $MODEL_TECH/libsm.dll<br />

; Logic Modeling's SmartModel SWIFT software (HP 9000 Series 700)<br />

; libswift = $LMC_HOME/lib/hp700.lib/libswift.sl<br />

; Logic Modeling's SmartModel SWIFT software (IBM RISC System/6000)<br />

; libswift = $LMC_HOME/lib/ibmrs.lib/swift.o<br />

; Logic Modeling's SmartModel SWIFT software (Sun4 Solaris)<br />

; libswift = $LMC_HOME/lib/sun4Solaris.lib/libswift.so<br />

; Logic Modeling's SmartModel SWIFT software (Windows NT)<br />

; libswift = $LMC_HOME/lib/pcnt.lib/libswift.dll<br />

; Logic Modeling's SmartModel SWIFT software (Linux)<br />

; libswift = $LMC_HOME/lib/x86_linux.lib/libswift.so<br />

The libsm entry points to the <strong>ModelSim</strong> dynamic link library that interfaces the foreign<br />

architecture to the SmartModel software. The libswift entry points to the Logic Modeling<br />

dynamic link library software that accesses the SmartModels. The simulator automatically<br />

loads both the libsm <strong>and</strong> libswift libraries when it elaborates a SmartModel foreign<br />

architecture.<br />

By default, the libsm entry points to the libsm.sl supplied in the <strong>ModelSim</strong> installation<br />

directory indicated by the MODEL_TECH environment variable. <strong>ModelSim</strong><br />

automatically sets the MODEL_TECH environment variable to the appropriate directory<br />

containing the executables <strong>and</strong> binaries for the current operating system.

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

Saved successfully!

Ooh no, something went wrong!