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 4: Using ModelSim VHDL with <strong>Synopsys</strong> <strong>Models</strong>5. Edit the generated model_mx.vhd file as follows. In the architecture section, add the“library ieee” line highlighted in the following example:architecture SmartModel of model_mx isattribute FOREIGN : STRING;attribute FOREIGN of SmartModel : architecture is "sm_init$MODEL_TECH/libsm.sl ; model_mx;beginend SmartModel;Also, at the end of the model_mx.vhd file, right after the “end component”statement, add the following highlighted line:end component;end comp;6. Compile the required <strong>Synopsys</strong> libraries into the slm_lib library, as shown in thefollowing examples:% vcom -93 -work slm_lib $LMC_HOME/sim/mti/src/slm_hdlc.vhd% vcom -93 -work slm_lib $LMC_HOME/sim/mti/src/mempro_pkg.vhd7. Add slm_lib LIBRARY and USE statements to your testbench:LIBRARY SLM_LIB;USE SLM_LIB.mempro_pkg.all;USE SLM_LIB.comp.all;8. Compile the model’s bit-blasted wrapper file (model_mx.vhd) into the slm_liblibrary, as shown in the following example:% vcom -93 -work slm_lib model_mx.vhd9. Create a bused wrapper <strong>for</strong> the model, as shown in the following example:% $LMC_HOME/bin/vsg -bit2bus vhdl model_mxThis step produces an output file named model_mx_bw.vhd.10. 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;11. Compile the model’s bused wrapper, as shown in the following example:% vlib work% vcom -93 model_mx_bw.vhdOctober 6, 2003 <strong>Synopsys</strong>, Inc. 83

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

Saved successfully!

Ooh no, something went wrong!