Scalable Scatter-Gather DMA Intel® FPGA IP Design Example User Guide

ID 823179
Date 4/30/2025
Public
Document Table of Contents

2.7.2.2.1. Testing H2D ST to D2H ST Loopback

  1. Navigate to <design_example>/PCIE_MODE/software under the design example generation directory.
  2. Run the test:
    $ echo "run_H2DST_to_D2HST_loopback <port number> <total number of H2D ST ports> 
    <number of bytes>"> /dev/edmadbg0;cat /dev/edmadbg0
    Table 4.  Parameter and Definition
    Parameter Definition
    Port Number H2D ST port number. Port number 0 is reserved for H2D MM port. E.g. Port number 1 = H2D ST Port 0, Port number 2 = H2D ST Port 1.
    Total number of H2D ST ports Number of H2D ST device ports enabled in SSGDMA IP settings.
    Number of bytes Size of data transfer length in bytes.
    The following command is an example of how to loop back 32kB of data on H2D ST port 1.
    $ echo "run_H2DST_to_D2HST_loopback 2 3 32768"> /dev/edmadbg0;cat /dev/edmadbg0
  3. Run the command $ sudo dmesg -w to see the printout.
    Figure 19. Printout