Xilinx PCI-X v5.1 manual Mentor Graphics ModelSim, Timing Simulation

Page 46

R

Chapter 7: Timing Simulation

The SimVision browser may be used to view simulation results. SimVision is started with the following command:

simvision

Mentor Graphics ModelSim

Before attempting functional simulation, ensure that the ModelSim environment is properly configured for use.

Verilog

1.Navigate to the timing simulation directory and copy the back annotated timing models from the implementation directory:

cd <Install Path>/verilog/example/post_sim cp ../xilinx/*.v ./

cp ../xilinx/*.sdf ./

2.Edit the test_tb.f file. This file lists command line arguments for ModelSim, and is shown below:

../source/stimulus.v

../source/test_tb.v

../source/busrec.v

./pcix_top_s_routed.v +libext+.vmd+.v

-y <Xilinx Install Path>/verilog/src/simprims

Modify the library search path by changing <Xilinx Install Path> to match the Xilinx installation directory. Save the file.

3.Invoke ModelSim, and ensure that the current directory is set to:

<Install Path>/verilog/example/post_sim

4.To run the simulation: do modelsim.do

This compiles all modules, loads them into the simulator, displays the waveform viewer, and runs the simulation.

VHDL

1.Navigate to the timing simulation directory and copy the back annotated timing models from the implementation directory:

cd <Install Path>/vhdl/example/post_sim cp ../xilinx/*.vhd ./

cp ../xilinx/*.sdf ./

2.View the test.files file. This file lists the individual source files required, and is shown below:

./pcix_top_s_routed.vhd

../source/busrec.vhd

../source/stimulus.vhd

../source/test_tb.vhd

46

www.xilinx.com

PCI-X v5.1 165 Getting Started Guide

 

 

UG158 March 24, 2008

Image 46
Contents LogiCORE IP Initiator/Target v5.1 for PCI-X UG158 March 24PCI-X v5.1 165 Getting Started Guide UG158 March 24 Version RevisionUg000preface.fm to Guide Version Revision Table of Contents Implementing a Design Schedule of Figures 8Options for Implementation Options/ConstraintsPCI-X v5.1 165 Getting Started Guide Guide Contents About This GuidePreface About This Guide ConventionsTypographical Convention Meaning or Use ExampleOnline Document ConventionsPreface About This Guide System Requirements Getting StartedAbout the Example Design Feedback Additional DocumentationTechnical Support Core Interface for PCI-XLicensing Options Licensing the CoreBefore you Begin Full System Hardware EvaluationDirect Download Installing Your License FileFull License Licensing the CoreFamily Specific Considerations Design SupportSimulation Virtex-4 Devices Wrapper Files Device Initialization Configuration PinsBus Mode Detection Bus Width DetectionBus Clock Usage Family Specific ConsiderationsElectrical Compliance Electrical ComplianceInput Delay Buffers Generating Bitstreams Generating BitstreamsFamily Specific Considerations Functional Simulation Cadence IUSVerilog Mentor Graphics ModelSimFunctional Simulation Install Path/verilog/example/funcsim Mentor Graphics ModelSimTo run the simulation, type the following do modelsim.do Synthesizing a Design Synplicity SynplifySynthesizing a Design 2Main Project WindowSynplicity Synplify 3Files to Add Virtex Library5Files to Add User Application 7Options for Implementation Device 9Create a New Project 10Main Project Window 12Files to Add LogiCORE Files 14Main Project Window Exemplar LeonardoSpectrum 15Options for Implementation DeviceXilinx XST Xilinx XSTSynthesizing a Design Implementing a Design ISE FoundationImplementing a Design Timing Simulation Timing Simulation Install Path/vhdl/example/postsim