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.

Appendix B: Using Custom Memory <strong>Models</strong><strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>Using Custom Memory <strong>Models</strong> withNC-VHDLAttentionFor best per<strong>for</strong>mance, use version 4.0 or later of NC-VHDL: this allows youto load multiple dynamic libraries containing C code. To use this means ofloading the DWMM routines, include the following option in the lineinvoking ncsim:ncsim -loadfmi libfmi_ml.so:slm_boot libfmi_ml.so (or .sl on hpux plat<strong>for</strong>ms) contains the library table andbootstrap function needed by the dynamic loader included in NC-VHDLversion 4.0 and above.This method eliminates the need to link libfmi_ar.a with your other externalC (<strong>for</strong>eign language) module to produce a single libfmi.so that incorporatesall <strong>for</strong>eign language modules in a single library.For more in<strong>for</strong>mation about using the NC-VHDL with multiple dynamiclibraries, see your Cadence simulator documentation.To use custom memory models with NC-VHDL, follow this procedure: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. If you have built your own Foreign Model Interface (FMI) shared library (<strong>for</strong>example, if you’re using VERA or <strong>Synopsys</strong> VMT models, or your own FMI code),per<strong>for</strong>m this step. Otherwise, skip to step 3.NC-VHDL binds in only one shared FMI library at runtime. If your design usesFMI, you need to build a new FMI shared library that contains your library and theDWMM library. You can find a DWMM archive library here:❍❍HP-UX:$LMC_HOME/lib/hp700.lib/libfmi_ar.aSolaris:$LMC_HOME/lib/sun4Solaris.lib/libfmi_ar.aYou must create a new archive that includes the DWMM archive, library table filedeclaration object file, and your archive. Detailed instructions <strong>for</strong> this process canbe found in the “Foreign Model Integration” chapter of the Affirma NC VHDL<strong>Simulator</strong> C Interface User <strong>Guide</strong>.296 <strong>Synopsys</strong>, Inc. October 6, 2003

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

Saved successfully!

Ooh no, something went wrong!