用于 PCI Express* 的 英特尔® FPGA R-tile Avalon® Streaming IP设计实例用户指南

ID 683544
日期 4/10/2023
Public
文档目录

2.7.1. 运行PIO设计实例

  1. 浏览设计实例目录下的./software/user/example
  2. 编译设计实例应用程序:

    $ make

  3. 运行测试:

    $ sudo ./intel_fpga_pcie_link_test

    可在手动模式或者自动模式下运行 Intel® FPGA IP PCIe* 链路测试。选择:
    • 自动模式下,应用程序自动选择器件。该测试通过匹配的Vendor ID选择具有最低BDF的英特尔 PCIe* 器件。该测试还选择最低的可用BAR。
    • 在手动模式下,该测试会向您问询总线、器件和功能编号以及BAR。

    对于英特尔Agilex® 7 Development Kit,您可以通过键入以下命令确定BDF:

    $ lspci -d 1172:

  4. 以下是自动和手动模式的转录文件实例:

    自动模式:

    Intel FPGA PCIe Link Test - Automatic Mode
    Version 2.0
    0: Automatically select a device
    1: Manually select a device
    ***************************************************
    >0
    Opened a handle to BAR 0 of a device with BDF 0x3800
    ***************************************************
    0: Link test - 100 writes and reads
    1: Write memory space
    2: Read memory space
    3: Write configuration space
    4: Read configuration space
    5: Change BAR for PIO
    6: Change device
    7: Quit program
    ***************************************************
    > 0
    Doing 100 writes and 100 reads . . 
    Number of write errors:     0
    Number of read errors:      0
    Number of DWORD mismatches: 0

    手动模式:

    Intel FPGA PCIe Link Test
    Version 2.0
    0: Automatically select a device
    1: Manually select a device
    ****************************************************
    > 1
    Enter bus number, in hex:
    > 4b
    Enter device number, in hex:
    > 0
    BDF is 0x4b00
    B:D.F, in hex, is 4b:0.0
    Enter BAR number (-1 for none):
    > 0
    Opened a handle to BAR 0 of a device with BDF 0x4b00