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>11. Edit the model_mx_bw.vhd file to add Library and Use statements, as shown in thefollowing example:LIBRARY SLM_LIB;USE SLM_LIB.comp.all;12. Compile the model’s bused wrapper, as shown in the following example:% vcom -93 model_mx_bw.vhdAttentionTo use the bused model wrapper, you must add appropriate componentdeclarations to your testbench or edit a component file already included inyour testbench <strong>for</strong> multiple SWIFT models, specifying ports and generics asrequired.13. Instantiate the model in your design using either the bit-blasted wrapper(model_mx) or the bused wrapper (model_mx_bw). Define the ports and SWIFTparameters as needed. The wrapper files include default values <strong>for</strong> the requiredSWIFT parameters. You can override these values as needed in your testbench. Fordetails on the required SWIFT parameters and DWMM instantiation examples, see“DesignWare Memory Model SWIFT Parameters” on page 29.14. Compile the VERA shell file created during the VERA compilation of your VERAtestbench, as follows:% vcom -93 _shell.vhdHintFor model-specific instantiation examples, see the individual modeldatasheets. You can copy the model instantiation directly from the modeldatasheet and paste it into your testbench. Be sure to map signal names in yourdesign to the model’s ports. You can access the model datasheet <strong>for</strong> yourmodel version using the sl_browser tool ($LMC_HOME/bin/sl_browser).15. Compile your testbench:% vcom -93 testbench.vhd16. Invoke MTI VHDL and simulate your design:% vsim testbench_configuration<strong>Simulator</strong>: MTI Verilog1. Make sure MTI Verilog is set up properly and all required environment variables areset, as explained in “Setting Environment Variables” on page 59.2. Build a local veriuser library as follows:October 6, 2003 <strong>Synopsys</strong>, Inc. 247

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

Saved successfully!

Ooh no, something went wrong!