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 9: Using VERA with <strong>Synopsys</strong> <strong>Models</strong>AttentionFor best per<strong>for</strong>mance, use version 4.0 or later of NC-VHDL. NC-VHDLversion 4 and higher allow you to load multiple dynamic libraries containingC code. To use this means of loading the DWMM routines, include thefollowing option in the line invoking ncsim:ncsim -loadfmi libfmi_ml.so:slm_boot libfmi_ml.so (or .sl on HP-UX plat<strong>for</strong>ms) contains the library table andbootstrap function needed by the dynamic loader included in NC-VHDLversion 4.0 and above. This method eliminates the need to link libfmi_ar.awith your other external C (<strong>for</strong>eign language) modules to produce a singlelibfmi.so that incorporates all <strong>for</strong>eign language modules in a single library.For more in<strong>for</strong>mation about using the NC-VHDL with multiple dynamiclibraries, see your Cadence simulator documentation.<strong>Simulator</strong>: NC-Verilog1. Make sure NC-Verilog is set up properly and all required environment variables areset, as explained in “Setting Environment Variables” on page 89.2. Copy the VERA specific veriuser.c file:% cp $VERA_HOME/lib/veriuser.c .3. Edit the local copy of the veriuser.c file to add the lines required <strong>for</strong> DWMM.a. Add the required DWMM include header and extern function declarations justbelow the VERA include header vmc_veri_funext.h:#include "ccl_lmtv_include.h"extern int pli_slm_post();extern int slm_mempro_handle();extern int slm_mempro_width_info();b. Add the DWMM s_tfcell entries to the global veriusertfs table:{ usertask, 0, 0, 0, pli_slm_post, 0, "$slm_post", true },{ usertask, 0, 0, 0, pli_slm_post, 0, "$slm_post_hdl", true },{ usertask, 0, 0, 0, slm_mempro_handle, 0, "$slm_mempro_handle", true },{ usertask, 0, 0, 0, slm_mempro_width_info, 0, "$slm_mempro_width_info", true },c. Add the required DWMM include code just below the VERA include codeentry vmc_veri_fundef.c:#include "ccl_lmtv_include_code.h"October 6, 2003 <strong>Synopsys</strong>, Inc. 253

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

Saved successfully!

Ooh no, something went wrong!