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>Running 32-bit <strong>Models</strong> on 64-bit Plat<strong>for</strong>msIf you want to run 32-bit <strong>Synopsys</strong> models or tools on a 64-bit HP-UX or Solarisplat<strong>for</strong>m, set the LMC_USE_32BIT environment variable to any value be<strong>for</strong>e invokingthe tool, as shown in the following example:% setenv LMC_USE_32BIT 1The LMC_USE_32BIT environmental variable is a “set/no-set” variable. That is, youcan set it to any value (even zero) to turn on 32-bit support on a 64-bit plat<strong>for</strong>m. If youdo not set it at all, the default condition is 32-bit models on 32-bit plat<strong>for</strong>ms, or 64-bitmodels on 64-bit plat<strong>for</strong>ms. You only set this environmental variable (to any value)when you are on a 64-bit plat<strong>for</strong>m using 32-bit models and simulators.Using Smart<strong>Models</strong> with ModelSim VerilogSmart<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 Smart<strong>Models</strong> with the prebuilt swiftpli_mti, follow this procedure:1. Make sure MTI Verilog is set up properly and all required environment variables areset, as explained in “Setting Environment Variables” on page 59.2. Instantiate Smart<strong>Models</strong> in your design, defining the ports and defparams asrequired. For details on the required SWIFT parameters and SmartModelinstantiation examples, refer to “Using Smart<strong>Models</strong> with SWIFT <strong>Simulator</strong>s” onpage 18.3. Map your work library as shown in the following example:% vlib work% vmap work workThis step produces a modelsim.ini file.4. Edit the modelsim.ini file to uncomment the Resolution statement, and set theresolution value to 100ps, as shown in the following example.Resolution = 100psOctober 6, 2003 <strong>Synopsys</strong>, Inc. 61

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

Saved successfully!

Ooh no, something went wrong!