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.

Chapter 6: Using NC-VHDL with <strong>Synopsys</strong> <strong>Models</strong><strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>12. Set the LMC_TIMEUNIT environment variable to -12 <strong>for</strong> 1 ps resolution, as shownin the following example:% setenv LMC_TIMEUNIT -12This sets a global timing resolution <strong>for</strong> all SWIFT models in your simulation. Formore in<strong>for</strong>mation on the LMC_TIMEUNIT environment variable, refer to theCadence documentation <strong>for</strong> NC-VHDL.13. Invoke the NC-VHDL simulator as shown in the following example:% ncsim designUsing DesignWare Memory <strong>Models</strong> withNC-VHDLDesignWare Memory <strong>Models</strong> (DWMM) are SWIFT-compatible binary simulationmodels that have an _mx extension (<strong>for</strong> example, model_mx).To use DWMM models with NC-VHDL, follow these steps:1. Make sure NC-VHDL is set up properly and all required environment variables areset, as explained in “Setting Environment Variables” on page 107.2. Edit your cds.lib file to specify the logical library slm_lib <strong>for</strong> DWMM models:DEFINE slm_lib ./slm_libNoteAlso, make sure your cds.lib and hdl.var files contain the correctSOFTINCLUDE statements <strong>for</strong> running NC-VHDL.3. Create a directory named slm_lib:mkdir slm_lib4. Compile the required <strong>Synopsys</strong> libraries into the slm_lib library:% ncvhdl -w slm_lib $LMC_HOME/sim/ncvhdl/src/slm_hdlc.vhdNoteIgnore the warning: ncvhdl_p: *W,FATSPB (slm_hdlc.vhd,72).% ncvhdl -w slm_lib $LMC_HOME/sim/ncvhdl/src/mempro_pkg.vhd114 <strong>Synopsys</strong>, Inc. October 6, 2003

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

Saved successfully!

Ooh no, something went wrong!