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 4: Using ModelSim VHDL with <strong>Synopsys</strong> <strong>Models</strong><strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>4. 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_fxNote, depending on what model you use, the model name may have a “_fz”extension. You must run flexm_setup every time you update your FlexModelinstallation with a new model version. Table 10 describes the FlexModel interfaceand example files that the flexm_setup tool copies.Table 10: FlexModel MTI VHDL FilesFile Name Description Locationmodel_pkg.vhdmodel_user_pkg.vhdmodel_fx_mti.vhdmodel_fz_mti.vhdmodel_fx_comp.vhdmodel_fz_comp.vhdmodel.vhdmodel_tst.vhdModel command procedure calls <strong>for</strong> HDLCommand Mode.Clock frequency setup and usercustomizations.A SWIFT wrapper <strong>for</strong> the UNIX model.Component definition <strong>for</strong> use with the modelentity defined in the above SWIFT wrapperfile. This is put in a package named“COMPONENTS” when compiled.A bus-level wrapper around the SWIFT model.This allows you to use vectored ports <strong>for</strong> themodel in your testbench. This file assumes thatthe “COMPONENTS” package has beeninstalled in the logical library “slm_lib”.A testbench that instantiates the model andshows how to use basic model commands.workdir/src/vhdl/workdir/src/vhdl/workdir/examples/vhdl/workdir/examples/vhdl/workdir/examples/vhdl/workdir/examples/vhdl/5. Update the clock frequency supplied in the model_user_pkg.vhd file to correspondto the desired clock period <strong>for</strong> the model. After running flexm_setup, this file islocated in:workdir/src/vhdl/model_user_pkg.vhdwhere workdir is your working directory.6. Add or uncomment the following to your vsystem.ini or modelsim.ini file. Note,keep the positions the same.slm_lib=$LMC_HOME/sim/mti/libVHDL93 = 180 <strong>Synopsys</strong>, Inc. October 6, 2003

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

Saved successfully!

Ooh no, something went wrong!