GTS AXI Streaming Intel® FPGA IP for PCI Express* Design Example User Guide

ID 817713
Date 5/09/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

2.4.2. PIO Design Example Testbench

The figure below shows the PIO design example simulation design hierarchy.

Figure 9. PIO Design Example Simulation Design Hierarchy

The tests for the PIO design example are defined with the apps_type_hwtcl parameter set to 3.

The tests run under this parameter value are defined in the following tasks:
  • ebfm_cfg_rp_ep_rootport
  • find_mem_bar
  • downstream_loop

The testbench starts with link training and then accesses the configuration space of the IP for enumeration. A task called downstream_loop (defined in the Root Port PCIe* BFM (altpcietb_bfm_rp_gen4_x16.sv)) then performs the PCIe* link test.

This test consists of the following steps:
  1. Issue a memory write command to write a single dword of data into the on-chip memory behind the Endpoint.
  2. Issue a memory read command to read back data from the on-chip memory.
  3. Compare the read data with the write data. If they match, the test counts this as a Pass.
Figure 10. PIO Design Example—Memory Write Followed by Memory Read Simulation Waveforms
Figure 11. PIO Design Example—Completion TLP Simulation Waveforms