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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>Chapter 6: Using NC-VHDL with <strong>Synopsys</strong> <strong>Models</strong>AttentionFor best per<strong>for</strong>mance, use version 4.0 or later of NC-VHDL. NC-VHDLversion 4 and higher allow you to load multiple dynamic libraries containingC code. To use this means of loading the DWMM routines, include thefollowing option in the line invoking ncsim:ncsim -loadfmi libfmi_ml.so:slm_boot libfmi_ml.so (or .sl on HP-UX 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.awith your other external C (<strong>for</strong>eign language) modules to produce a singlelibfmi.so that incorporates all <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.Using VERA and DesignWare Memory <strong>Models</strong> withNC-VHDLIf your NC-VHDL simulation includes DWMM models and VERA, you'll need tocreate a custom libfmi.so file.NoteNC-VHDL allows the bodies of VHDL entities and functions to be writtenin C and dynamically linked with the simulation executable at run time. AllC code must be in a single dynamic library named libfmi.so (solaris) orlibfmi.sl (HP-UX), and there must be a single fmiLibraryTable array in thelibfmi dynamic library file. The fmiLibraryTable contains the mapping ofVHDL element names to C code names, and must contain one entry <strong>for</strong> eachVHDL element to C code mapping.When combining C code <strong>for</strong> multiple products such as VERA, DWMMmodels, other vendor’s products, or your own C code, you must create a Csource file containing a fmiLibraryTable with mapping entries <strong>for</strong> eachproduct. The <strong>for</strong>mat of this array is discussed in your Cadence NC-VHDL Cuser document.If you use NC-VHDL version 4.0 or later, we recommend using its multiplefile loading mechanism.October 6, 2003 <strong>Synopsys</strong>, Inc. 117

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

Saved successfully!

Ooh no, something went wrong!