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.

Chapter 2: Using VCS with <strong>Synopsys</strong> <strong>Models</strong><strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>HP-UX% setenv VCS_LMC_HM_ARCH pa_hp1026. Create a Verilog HDL template <strong>for</strong> the hardware model using the lmvc_templatescript provided by VCS, as shown in the following example:% lmvc_template model_filewhere model_file is the name of the hardware model's .MDL file.For example, if your model is the TILS299, enter:% lmvc_template TILS299.MDLThis step produces a TILS299.lmvc.v file that contains the module definition withall the calls, declarations, and assignments necessary to make the file a valid VCSmodule.NoteThe lmvc_template program looks <strong>for</strong> Shell Software files in the directoriesindicated by the LM_LIB environment variable. You can modify the port listgenerated by the lmvc_template to match the existing model instantiationsby editing the .NAM file.7. Compile your description. Make sure to include the hardware model template andsupporting PLI and library files. To interface the hardware modeler to VCS, add the-lmc-hm switch to the VCS command line, as shown in the following example:% vcs +plusarg_save -RI test.v TILS299.lmvc.v -lmc-hm -o simv \+override_model_delays +maxdelays -l vcs.log &You can optionally invoke VCS without the -lmc-hm switch by using the -P switchto point to the $VCS_LMC/lmvc.tab file and including the $VCS_LMC/lmvc.oobject file and $LM_SFI/lm_sfi.a library, as shown in the following example:% vcs +plusarg_save -RI test.v TILS299.lmvc.v -P $VCS_LMC/lmvc.tab \$VCS_LMC/lmvc.o $LM_SFI/lm_sfi.a -o simv \+override_model_delays +maxdelays -l vcs.log &where:• vcs is the compiler• test.v is the file that is part of the top level system source files• TILS299.lmvc.v is the vcs template <strong>for</strong> the HW model• lmvc.tab is the VCS file <strong>for</strong> lmvc calls <strong>for</strong> vector logging, and timingmeasurement• lmvc.o is the object code <strong>for</strong> LMC C file (lmvc.c), which contains thedefinitions <strong>for</strong> all the lmvc tasks/functions.56 <strong>Synopsys</strong>, Inc. October 6, 2003

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

Saved successfully!

Ooh no, something went wrong!