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.

<strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>vChapter 5: Using NC-Verilog with <strong>Synopsys</strong> <strong>Models</strong>2. 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 11 lists the files that flexm_setup copies to yourworking directory.Table 11: FlexModel NC-Verilog FilesFile Name Description Locationmodel_pkg.incVerilog task definitions <strong>for</strong> FlexModelinterface commands. This file also referencesthe flexmodel_pkg.inc andmodel_user_pkg.inc files.workdir/src/verilog/model_user_pkg.inc Clock frequency setup and user customizations. workdir/src/verilog/model_fx_vxl.vmodel.vmodel_tst.vA SWIFT wrapper that you can use to instantiatethe model.A bus-level wrapper around the SWIFT model.This allows you to use vectored ports <strong>for</strong> themodel in your testbench.A testbench that instantiates the model and showshow to use basic model commands.workdir/examples/verilog/workdir/examples/verilog/workdir/examples/verilog/3. Update the clock frequency supplied in the model_user_pkg.inc file to correspondto the CLK period you want <strong>for</strong> the model. This file is located in:workdir/src/verilog/model_user_pkg.incwhere workdir is your working directory.4. Add the following line to your Verilog testbench to include FlexModel testbenchinterface commands in your design:`include "model_pkg.inc"NoteBe sure to add model_pkg.inc within the module from which you will beissuing FlexModel commands.Because the model_pkg.inc file includes references to flexmodel_pkg.inc andmodel_user_pkg.inc, you don’t need to add flexmodel_pkg.inc ormodel_user_pkg.inc to your testbench.October 6, 2003 <strong>Synopsys</strong>, Inc. 93

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

Saved successfully!

Ooh no, something went wrong!