Xilinx PCI-X v5.1 manual Mentor Graphics ModelSim, Install Path/verilog/example/funcsim

Page 29

Mentor Graphics ModelSim

R

Most of the files listed are related to the example design and its test bench. For other test benches, the following subset must be used for proper simulation of the core interface:

../source/glbl.v

../../src/xpci/pcix_lc.v

../../src/xpci/pcix_core.v

+libext+.vmd+.v

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

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

This list does not include any configuration file, user application, top level wrapper, or test bench. These additional files are required for a meaningful simulation.

5.Invoke ModelSim and ensure that the current directory is set to the following:

<Install Path>/verilog/example/func_sim

6.To run the simulation, type the following: 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 functional simulation directory:

cd <Install Path>/vhdl/example/func_sim

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

../../src/xpci/pcix_lc.vhd

../../src/xpci/pcix_core.vhd

../source/cfg_test_s.vhd

../source/userapp.vhd

../source/pcix_top.vhd

../source/busrec.vhd

../source/stimulus.vhd

../source/test_tb.vhd

If you have changed the wrapper file make sure you are using the correct simulation model. Most of the files listed are related to the example design and its test bench. For other test benches, the following subset must be used for proper simulation of the core interface:

../../src/xpci/pcix_lc.vhd

../../src/xpci/pcix_core.vhd

This subset list does not include any configuration file, user application, top level wrapper, or test bench. These additional files are required for a meaningful simulation.

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

<Install Path>/vhdl/example/func_sim

4.Create the SimPrim and UniSim libraries. This step only needs to be done once, the first time you perform a simulation:

PCI-X v5.1 165 Getting Started Guide

www.xilinx.com

29

UG158 March 24, 2008

Image 29
Contents UG158 March 24 LogiCORE IP Initiator/Target v5.1 for PCI-XVersion Revision PCI-X v5.1 165 Getting Started Guide UG158 March 24Ug000preface.fm to Guide Version Revision Table of Contents Implementing a Design 8Options for Implementation Options/Constraints Schedule of FiguresPCI-X v5.1 165 Getting Started Guide About This Guide Guide ContentsTypographical ConventionsPreface About This Guide Convention Meaning or Use ExampleConventions Online DocumentPreface About This Guide About the Example Design Getting StartedSystem Requirements Technical Support Additional DocumentationFeedback Core Interface for PCI-XBefore you Begin Licensing the CoreLicensing Options Full System Hardware EvaluationFull License Installing Your License FileDirect Download Licensing the CoreDesign Support Family Specific ConsiderationsSimulation Virtex-4 Devices Wrapper Files Bus Mode Detection Configuration PinsDevice Initialization Bus Width DetectionFamily Specific Considerations Bus Clock UsageElectrical Compliance Electrical ComplianceInput Delay Buffers Generating Bitstreams Generating BitstreamsFamily Specific Considerations Cadence IUS Functional SimulationFunctional Simulation Mentor Graphics ModelSimVerilog Mentor Graphics ModelSim Install Path/verilog/example/funcsimTo run the simulation, type the following do modelsim.do Synplicity Synplify Synthesizing a Design2Main Project Window Synthesizing a Design3Files to Add Virtex Library Synplicity Synplify5Files to Add User Application 7Options for Implementation Device 9Create a New Project 10Main Project Window 12Files to Add LogiCORE Files 14Main Project Window 15Options for Implementation Device Exemplar LeonardoSpectrumXilinx XST Xilinx XSTSynthesizing a Design ISE Foundation Implementing a DesignImplementing a Design Timing Simulation Timing Simulation Install Path/vhdl/example/postsim