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>Appendix B: Using Custom Memory <strong>Models</strong>You must combine the contents of the DWMM library table file with your own FMIapplication library table, as shown in the following example:#include extern fmiModelTableT CpipeModelTable;extern fmiModelTableT myFMITable;fmiLibraryTableT fmiLibraryTable = {{"Cpipe", CpipeModelTable},{"myFMIlib", myFMITable},{0, 0}};Link the DWMM archive library with the new library table object file and any otherFMI application object files you wish to include, following the instructions in theCadence C Interface User <strong>Guide</strong>.The following examples show compiling the library table object files and linkingDWMM libfm_ar.a with the library table object file and the FMI application youdeveloped, shown in the examples as new_FMI_table.o and your_archive.a:❍❍HP-UX% /bin/cc -D_NO_PROTO -c +Z -I$CDS_VHDL/include new_FMI_table.c% /bin/ld -b -o libfmi.sl new_FMI_table.o your_archive.a \$LMC_HOME/lib/hp700.lib/libfmi_ar.aSolaris• For NC-VHDL version 4.0 and above:ncsim -loadfmi libfmi_ml.so:slm_boot Notelibfmi_ml.so is not compatible with versions of NC-VHDL earlier than 4.0.• For NC-VHDL versions be<strong>for</strong>e 4.0:% /opt/SUNWspro/bin/cc -c -KPIC -I$CDS_VHDL/include new_FMI_table.c% /opt/SUNWspro/bin/cc -G -o libfmi.so new_FMI_table.o \your_archive.a $LMC_HOME/lib/sun4Solaris.lib/libfmi_ar.a3. Create slm_lib and work directories:% mkdir ./slm_lib% mkdir ./workOctober 6, 2003 <strong>Synopsys</strong>, Inc. 297

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

Saved successfully!

Ooh no, something went wrong!