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>You must create a new archive that includes the FlexModel 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>.As shown in the following example, you must combine the contents of theFlexModel library table file with your own FMI application library table. If you donot have a table, create a new C file that contains the in<strong>for</strong>mation shown below.#include extern fmiModelTableT CpipeModelTable;fmiLibraryTableT fmiLibraryTable = {{"Cpipe", CpipeModelTable},{0, 0}};For our example we will call this C file, new_FMI_table.c.If you already have a file defining fmiLibraryTable, include these two lines at theappropriate locations in the C file:extern fmiModelTableT CpipeModelTable;{"Cpipe", CpipeModelTable},Link the FlexModel archive library with the new library table object file and anyother FMI application object files you wish to include, following the instructions inthe Cadence C Interface User <strong>Guide</strong>.The following examples show compiling the library table object files and linkingFlexModel 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 (32 bit example)% /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% /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. Add the following lines to your cds.lib file:define slm_lib slm_lib_pathdefine work work_lib_pathOctober 6, 2003 <strong>Synopsys</strong>, Inc. 111

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

Saved successfully!

Ooh no, something went wrong!