PCI Express* 用のインテル® Stratix® 10 HタイルおよびLタイル Avalon® メモリー・マップド・ハードIPユーザーガイド

ID 683667
日付 6/03/2020
Public
ドキュメント目次

2.7. デザイン例アプリケーションの実行

  1. デザイン例ディレクトリーの下の ./software/user/example に移動します。
  2. デザイン例のアプリケーションをコンパイルします。
    $ make
  3. テストを実行します。

    $ sudo ./intel_fpga_pcie_link_test

    手動または自動モードでインテルFPGA IP PCIe* のリンクテストを実行することができます。

    • 自動モードでは、アプリケーションが自動的にデバイスを選択します。テストでは、Vendor IDを照合して、BDFが最も低いインテルStratix 10 PCIe* デバイスを選択します。テストでは、使用可能な最も低いBARも選択されます。
    • 手動モードでのテストは、バス、デバイス、ファンクション番号およびBARを問い合わせます。
    インテルStratix 10 GX 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 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: Do a link test for every enabled virtual function
       belonging to the current device
    9: Perform DMA
    10: 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