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.

Chapter 6: Using NC-VHDL with <strong>Synopsys</strong> <strong>Models</strong><strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>3. Run your simulation:% ncsim -loadfmi libfmi_ml.so:slm_boot NoteIf you include your own or other vendors’ C code in your simulation, youmay need to build a custom libfmi.so as shown above. In this case, do notinclude this line in the libFmiLibrary table:{"Cpipe", CpipeModelTable}The Cpipe (DWMM) code is present in the libfmi_ml.so library loaded fromthe command line. Refer to your Cadence NC-VHDL C user documentation<strong>for</strong> details of the -loadfmi ncsim command line switch <strong>for</strong> loading multipledynamic libraries.Using Hardware <strong>Models</strong> with NC-VHDLTo use hardware models with NC-VHDL, follow this procedure. For the latestin<strong>for</strong>mation on supported features, refer to the Cadence documentation.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. Add the hardware model install tree to your path variable, as shown in the followingexample:% set path=(/install/sms/bin/plat<strong>for</strong>m/ $path)3. Create your own library directory <strong>for</strong> files that will be generated <strong>for</strong> the hardwaremodel.4. Run the ncshell command to generate .vhd wrapper files, as shown in the followingexample:% ncshell -import lmsfi -into vhdl models/TILS299/TILS299.MDLYou can also use the -all switch to create .vhd files <strong>for</strong> multiple hardware models.NC-VHDL Example with TILS299 Hardware ModelThe following example uses the TILS299 hardware model to show how to set uphardware models <strong>for</strong> use with NC-VHDL:1. Create a testbench to instantiate the hardware model (<strong>for</strong> exampleTB_TILS299.vhd).120 <strong>Synopsys</strong>, Inc. October 6, 2003

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

Saved successfully!

Ooh no, something went wrong!