Site Search

How do I simulate Qsys based PCI-Express Endpoint Avalon-MM designs on Stratix IV devices?

PCI Express Platform Designer Simulation

Category: PCI-Express®
Tools: ModelSim®
Device: Stratix® IV


A sample Qsys design and simulation model are provided in the Quartus II installation directory.
You can use this to simulate PCI-Express with End Point.

The procedure is as follows.

[procedure]

  1. Select the s4gx_gen1x8 directory located in your Quartus II installation directory.

    (example)

    <install_dir>/ip/altera/altera_pcie/altera_pcie_avmm/example_designs

  2. Copy the hip_s4gx_gen1x8_qsys.qsys file to your working directory.

  3. 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

  4. Start ModelSim and move to the following directory with File menu ⇒ Change Directory.

    <working directory>/hip_s4gx_gen1x8_qsys/testbench/mentor
      
  5. Select msim_setup.tcl from ModelSim's Tools menu ⇒ Tcl ⇒ Execute Macro.. and type ld_debug in the Transcript window to run it.

  6. Right-click pcie_de_rp_gen1_x4_ast64_tb from the Sim window (Sim tab) and select Add_Wave to set the waveform to observe.

  7. 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 v14.0. 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.