How do I simulate a Qsys based PCI-Express Endpoint Avalon-ST design for Arria 10 devices?
Arria
Platform Designer
PCI Express
Simulation
Category: PCI-Express® (PCIe)
Tools: Quartus® II, ModelSim®
Device: Arria® 10
A sample Qsys design and simulation model are provided in the Quartus II installation directory.
By using this, you can simulate PCI-Express with Endpoint.
The procedure is as follows.
[procedure]
- Select the a10 directory located in the Quartus II installation directory.
(example)
<install directory>/ip/altera/altera_pcie/altera_pcie_a10_ed/example_designs/ - Copy one of the following .qsys files to your working directory.
ep_g1x1.qsys / ep_g1x2.qsys / ep_g1x4.qsys / ep_g1x8.qsys /ep_g2x1.qsys / ep_g2x2.qsys / ep_g2x4.qsys / ep_g2x8.qsys / ep_g3x1.qsys / ep_g3x2.qsys / ep_g3x4.qsys / ep_g3x8.qsys - After starting Qsys, select File menu ⇒ Open ⇒ .qsys, then select Generate menu ⇒ Generate Testbench System, then set the following and select Generate.
Create testbench Qsys system ⇒ Standard,BFMs for standard Qsys interfaces
Create testbench simulation model ⇒ Verilog
Allow mixed-language simulation ⇒ Turn this option off - Start ModelSim and move to the following directory with File menu ⇒ Change Directory.
<working directory>/ep_g*/testbench/mentor - Select msim_setup.tcl from ModelSim's Tools menu ⇒ Tcl ⇒ Execute Macro.. and type ld_debug in the Transcript window to run it.
- Right-click ep_g * _tb from the Sim window (Sim tab) and select Add_Wave to set the waveform to observe.
- Type run -all to start the simulation.
* You can also perform simulations with ModelSim-Altera Edition and ModelSim-Altera Starter Edition.
* This method is for Quartus II v14.1. Other versions may differ slightly.
Experienced FAE
Free consultation is available.
From specific product specifications to parts selection, the Company FAE will answer your technical concerns free of charge. Please feel free to contact us.