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>Incorporating Flex<strong>Models</strong> in a VERA TestbenchTo incorporate Flex<strong>Models</strong> in your VERA testbench, use the following procedure. Formore in<strong>for</strong>mation on creating VERA interface files and using models in VERA, refer tothe VERA User <strong>Guide</strong>.1. Create a working directory and run flexm_setup to make copies of the model'sinterface and example files there, as shown in the following example:% $LMC_HOME/bin/flexm_setup -dir workdir model_fxYou must run flexm_setup every time you update your FlexModel installation witha new model version. Table 32 lists the files that flexm_setup copies to yourworking directory.Table 32: FlexModel VERA FilesFile Name Description Locationmodel_pkg.vrmodel_pkg.vrhContains FlexModel VERA class andmethod definitions.Contains model definitions <strong>for</strong> use inVERA testbenches.workdir/src/veraworkdir/src/vera2. Set the VERA_HOME variable to point to the location of your VERAinstallation directory:% setenv VERA_HOME path_to_VERA_installation3. Compile the VERA source files in the LMC_HOME tree.You need to compile three files: lstmodel.vr, swiftmodel.vr, and flexmodel_pkg.vr.The following is a sample compile script:% vera -cmp -I$LMC_HOME/sim/vera/src/lstmodel.vr% vera -cmp -I$LMC_HOME/sim/vera/src/swiftmodel.vr% vera -cmp -I$LMC_HOME/sim/vera/src/flexmodel_pkg.vrIf you are using VERA version 4.0 or earlier, you must compile theflexmodel_pkg.vr object with a “VERA_4” preprocessor flag. Your compile linewould there<strong>for</strong>e look like the following example:% vera -cmp -I$LMC_HOME/sim/vera/src/flexmodel_pkg.vr -DVERA_44. Compile the model’s VERA source file, model_pkg.vrThis file includes the flexmodel_pkg.vrh file, but the VERA compiler needs to findthe other header files too; there<strong>for</strong>e, you must include the path to the other headerfiles. The following is a sample compile script:% vera -cmp -I$LMC_HOME/sim/vera/src -Iworkdir/src/vera \workdir/src/vera/model_pkg.vrOctober 6, 2003 <strong>Synopsys</strong>, Inc. 213

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

Saved successfully!

Ooh no, something went wrong!