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 6: Using NC-VHDL with <strong>Synopsys</strong> <strong>Models</strong><strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>4. Generate a VHDL wrapper file <strong>for</strong> the model by invoking ncshell, as shown in thefollowing example:% ncshell -import swift -into vhdl model_fx -nocompile -work slm_lib5. 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 12 describes the FlexModel NC-VHDL interface andexample files that the flexm_setup tool copies.Table 12: FlexModel NC-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_comp.vhdmodel.vhdmodel_tst.vhdComponent definition <strong>for</strong> use with the modelentity defined in the SWIFT wrapper file. Thisis 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/examples/vhdl/workdir/examples/vhdl/workdir/examples/vhdl/6. Update the clock frequency supplied in the model_user_pkg.vhd file in yourworking directory to correspond to the desired clock period <strong>for</strong> the model. After yourun flexm_setup this file is located in:workdir/src/vhdl/model_user_pkg.vhdwhere workdir is your working directory.7. Create a logical library named slm_lib. The default physical library mapping <strong>for</strong> thisis $LMC_HOME/sim/simulator/lib; however, you can put the physical libraryanywhere you want.112 <strong>Synopsys</strong>, Inc. October 6, 2003

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

Saved successfully!

Ooh no, something went wrong!