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.

Chapter 9: Using VERA with <strong>Synopsys</strong> <strong>Models</strong><strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>Building the VERA UDF Dynamic Library <strong>for</strong> NC-VHDLTo use DWMM and VERA with NC-VHDL, you need to make a local copy of theVERA-specific sim_user.c, modify it to include the required DWMM FMI entries, thencompile and bind it into the your local libfmi library.NoteWhile DWMM does support NC-VHDL 4.0 (or greater), the VERAversions supported by DWMM do not support NC-VHDL 4.0 (or greater).All Plat<strong>for</strong>msPer<strong>for</strong>m these steps first <strong>for</strong> all plat<strong>for</strong>ms.1. Make a local copy of the VERA-specific sim_user.c file:% cp $VERA_HOME/lib/nc_vhdl/sim_user.c .2. Edit the local copy of sim_user.c to add required DWMM FMI entries:a. Add the extern declaration <strong>for</strong> the required DWMM fmiModelTableT:extern fmiModelTableT CpipeModelTable;b. Add the DWMM fmiModelTableT entries into the global library table,fmiLibraryTable:{"Cpipe", CpipeModelTable}Your final file should resemble this typical VERA/DWMM-compatible sim_user.c file:#include extern fmiModelTableT vera_mtbl;extern fmiModelTableT CpipeModelTable;fmiLibraryTableT fmiLibraryTable = {{ "vera", vera_mtbl },{ "Cpipe", CpipeModelTable },{ 0, 0 },};From here, proceed to the next page to find instructions <strong>for</strong> you plat<strong>for</strong>m.238 <strong>Synopsys</strong>, Inc. October 6, 2003

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

Saved successfully!

Ooh no, something went wrong!