12.07.2015 Views

Simulator Configuration Guide for Synopsys Models

Simulator Configuration Guide for Synopsys Models

Simulator Configuration Guide for Synopsys Models

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>Chapter 3: Using ModelSim Verilog with <strong>Synopsys</strong> <strong>Models</strong>Linux% vsim -pli $LMC_HOME/lib/x86_linux.lib/swiftpli_mti.so designNoteFor in<strong>for</strong>mation on LMTV commands that you can use with Smart<strong>Models</strong>on ModelSim Verilog, refer to “LMTV Commands” on page 271.Using Flex<strong>Models</strong> with ModelSim VerilogFlex<strong>Models</strong> work with ModelSim-Verilog using a PLI application called LMTV that isdelivered in the <strong>for</strong>m of a swiftpli_mti shared library in $LMC_HOME/lib/plat<strong>for</strong>m.lib.For in<strong>for</strong>mation on static linking LMTV, see “Static Linking with LMTV” on page 268.To use the prebuilt swiftpli_mti, follow this procedure:1. Make sure ModelSim Verilog is set up properly and all required environmentvariables are set, as explained in “Setting Environment Variables” on page 59.2. Map your work library as shown in the following example:% vlib work% vmap work workThis step produces a modelsim.ini file.3. Edit the modelsim.ini file to uncomment the Resolution statement, and set theresolution value to 100ps, as shown in the following example.Resolution = 100psNoteIf you are using VHDL Smart<strong>Models</strong> in your Verilog simulation, you mustalso edit the modelsim.ini file to uncomment the libsm and libswift lines <strong>for</strong>your plat<strong>for</strong>m (see “Using ModelSim VHDL with <strong>Synopsys</strong> <strong>Models</strong>” onpage 73).4. Create a working directory and run flexm_setup to make copies of the model'sinterface and example files there, as shown in the following example:% $LMC_HOME/bin/flexm_setup -dir workdir model_fxYou must run flexm_setup every time you update your FlexModel installation witha new model version. Table 9 lists the files that flexm_setup copies to your workingdirectory.October 6, 2003 <strong>Synopsys</strong>, Inc. 63

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

Saved successfully!

Ooh no, something went wrong!