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 1: Using <strong>Synopsys</strong> <strong>Models</strong> with <strong>Simulator</strong>s<strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>Instantiating Flex<strong>Models</strong> with C-only Command ModeC-only Command Mode is how you use Flex<strong>Models</strong> on SWIFT simulators withstandard FlexModel integrations. With C-only Command Mode, all model commandscome from an external compiled C program that you point to using the FlexCFileSWIFT parameter. For users familiar with <strong>Synopsys</strong> Hardware Verification models, thisis similar to setting the PCLFile parameter to point to the location of a compiled PCLprogram. In addition, you must also set the FlexModelId parameter, which does not havea default value. To generate model wrappers and instantiate models, you use the samesimulator-specific procedures as you would <strong>for</strong> traditional Smart<strong>Models</strong>. Note thatFlex<strong>Models</strong> are shipped with generated wrapper files <strong>for</strong> Verilog and VHDLtestbenches. These wrapper files are one of the file sets copied into your workingdirectory using the flexm_setup utiltiy.The individual FlexModel datasheets document the command syntax and examples <strong>for</strong>issuing model commands from Verilog, VHDL, VERA, or C. However, only simulatorswith custom integrations allow you to issue FlexModel commands from Verilog,VHDL, VERA, C, or some combination of these. SWIFT simulators with standardintegrations must stick to C-only Command Mode <strong>for</strong> issuing commands toFlex<strong>Models</strong>.To use C-only Command Mode, follow these steps:1. If you are using an HDL-based simulator, generate a model wrapper file(model_fx.v or model_fx.vhd) using your simulator vendor’s procedure. Use themodel wrapper to instantiate the model in your design. Add the FlexCFile parameter(<strong>for</strong> _fx models) or FlexModelSrc_cmd_stream parameter (<strong>for</strong> _fz models) to themodel instantiation and point it to the location of your_compiled_C_file that youcreate to drive commands into the model. Modify other SWIFT parameters in themodel wrapper as needed. Here are some examples <strong>for</strong> how to instantiate an _fxmodel <strong>for</strong> use with C-only Command Mode:VHDL:U1: pcimasterGENERIC MAP(FlexModelId => "modelId_1",FlexCFile => "./tb.o",FlexTimingMode => "1",TimingVersion => "pcimaster",DelayRange => "MAX"Verilog:defparamu1.FlexModelId = "modelId_1",u1.FlexCFile = "./tb.o",u1.FlexTimingMode = "1",26 <strong>Synopsys</strong>, Inc. October 6, 2003

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

Saved successfully!

Ooh no, something went wrong!