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.

Appendix A: Using LMTV with <strong>Synopsys</strong> <strong>Models</strong><strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>Static Linking with LMTV<strong>Synopsys</strong> provides LMTV in the <strong>for</strong>m of dynamically loadable libraries <strong>for</strong> NC-Verilogand MTI-Verilog. This is generally the preferred method <strong>for</strong> using LMTV. If you areusing NC-Verilog and cannot use the <strong>Synopsys</strong>-supplied swiftpli shared library, refer tothe Cadence documentation <strong>for</strong> in<strong>for</strong>mation on using the PLIWizard to build your ownPLI library. If you are using MTI Verilog, and cannot use the <strong>Synopsys</strong>-suppliedswiftpli_mti shared library, refer to the MTI documentation <strong>for</strong> in<strong>for</strong>mation on buildingyour own PLI and locating it <strong>for</strong> the simulator. <strong>Synopsys</strong> still ships the files needed tobuild your own PLI. These include:●●●Edited copy of veriuser.c in the $LMC_HOME/sim/pli/src directory (see Editedveriuser.c File)LMTV object file (lmtv.o) in the $LMC_HOME/lib/plat<strong>for</strong>m.lib directoryC-Pipe object file (slm_pli.o), in the $LMC_HOME/lib/plat<strong>for</strong>m.lib directoryNoteThe C-Pipe is required <strong>for</strong> Flex<strong>Models</strong> and DesignWare Memory <strong>Models</strong>,but is not needed <strong>for</strong> regular Smart<strong>Models</strong>.Edited veriuser.c FileHere is an example of the edited veriuser.c file that is shipped in the$LMC_HOME/sim/pli/src directory. The edits that are required <strong>for</strong> <strong>Synopsys</strong> modelsare highlighted. If you build your own PLI and want to use <strong>Synopsys</strong> models, be sure toadd these highlighted lines to your veriuser.c file.#include "veriuser.h"#include "vxl_veriuser.h"#include "ccl_lmtv_include.h"/************************************//* extern PLI function declarations *//************************************//* ------------- cut here - section 1 -------------- *//* C-pipe interface */extern int pli_slm_post();extern int slm_mempro_handle();extern int slm_mempro_width_info();extern int slm_transport();extern int slm_transport_checktf();extern int slm_inertial();extern int slm_inertial_checktf();/* ------------- end section 1 -------------- */268 <strong>Synopsys</strong>, Inc. October 6, 2003

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

Saved successfully!

Ooh no, something went wrong!