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.

Chapter 8: Using Scirocco with <strong>Synopsys</strong> <strong>Models</strong><strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>Using Flex<strong>Models</strong> with SciroccoTo use Flex<strong>Models</strong> with Scirocco, follow this procedure:1. Make sure Scirocco is set up properly and all required environment variables areset, as explained in “Setting Environment Variables” on page 191.2. If you want the improved per<strong>for</strong>mance that comes with bused wrappers, generate aVHDL model wrapper file by invoking create_smartmodel_lib with any optionalarguments. For more in<strong>for</strong>mation on the syntax <strong>for</strong> this command, refer to“create_smartmodel_lib Command Reference” on page 194.% $SYNOPSYS_SIM/sim/bin/create_smartmodel_lib argumentsNoteThe bused wrappers enable improved per<strong>for</strong>mance but do not work with theexamples testbench shipped with the model. To exercise the examplestestbench, use the wrappers shipped with the model (see Table 28), asexplained in the rest of this procedure. If you are using the bused wrappers,adjust accordingly.3. 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 28 describes the FlexModel Scirocco interface andexample files that the flexm_setup tool copies.Table 28: FlexModel Scirocco VHDL FilesFile Name Description Locationmodel_pkg.vhdModel command procedure calls <strong>for</strong> HDLCommand Mode.workdir/src/vhdl/model_user_pkg.vhd Clock frequency setup and usercustomizations.workdir/src/vhdl/model_fx_vss.vhd A SWIFT wrapper <strong>for</strong> the model. workdir/examples/vhdl/model_fx_comp.vhdComponent definition <strong>for</strong> use with the modelentity defined in the SWIFT wrapper file. Thisis put in a package named “COMPONENTS”when compiled.workdir/examples/vhdl/196 <strong>Synopsys</strong>, Inc. October 6, 2003

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

Saved successfully!

Ooh no, something went wrong!