仅对英特尔可见 — GUID: oxl1503507129218
Ixiasoft
1.7. 运行设计实例应用程序
- 浏览设计实例目录下的./software/user/example。
- 编译设计实例应用程序:
$ make
- 运行测试:
$ ./intel_fpga_pcie_link_test
手动或自动模式下均可运行 Intel® FPGA IP PCIe* 链路测试。
- 自动模式下,应用程序自动选择器件。通过与Vendor ID的匹配,该测试选择具有最低BDF的 Intel® Stratix® 10 PCIe* 器件。该测试也选择最低可用BAR。
- 手动模式下,该测试会询问您关于总线,器件和功能数以及BAR的信息。
对于 Intel® Stratix® 10-GX开发套件,要确认BDF,可通过键入以下命令:$ lspci -d 1172
- 以下是自动和手动模式的脚本样本:
Intel FPGA PCIe Link Test - Automatic Mode Version 1.0 0: Automatically select a device 1: Manually select a device *************************************************** >0 Opened a handle to BAR 0 of a device with BDF 0x100 *************************************************** 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 6. Change device 7. Enable SR-IOV 8. 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 - Manual Mode Version 1.0 0: Automatically select a device 1: Manually select a device *************************************************** > 1 Enter bus number: > 1 Enter device number: > 0 Enter function number: > 0 BDF is 0x100 Enter BAR number (-1 for none): > 4 Opened a handle to BAR 4 of a device with BDF 0x100