AN 829: PCI Express* Avalon® -MM DMA Reference Design

ID 683554
Date 6/11/2018
Public

1.2.7. Installing the DMA Test Driver and Running the Linux DMA Software

  1. In a terminal window on computer 1, change to the DMA driver directory and extract AN829_driver.tar by typing the following commands:
    cd % <install_dir>/<device>/_PCIe<GenxN>DMA_<QuartusVer>_project/driver
    % tar -xvf AN829_driver.tar
  2. To install the Linux driver for the appropriate device family, type the command:
    % sudo./install <device_family>
    Valid values for <device_family> are arria10, cyclone10, and stratix10.
  3. To run the DMA application, type the following command:
    % ./run

    The application prints the commands available to specify the DMA traffic. By default, the software enables DMA reads, DMA writes, and Simultaneous DMA reads and writes. The following table lists the available commands:

    Table 11.  DMA Test Commands
    Command Number Function
    1 Start the DMA.
    2 Enable or disable read DMA.
    3 Enable or disable write DMA.
    4 Enable or disable simultaneous read and write DMA.
    5 Set the number of dwords per descriptor. The legal range is 256-4096 dwords.
    6 Set the number of descriptors. The legal range is 1-127 descriptors.
    7 By default, the reference design selects on-chip memory. If select this command consecutive runs switch between on-chip and external memory.
    8 Run a the DMA in a continuous loop.
    10 Exit

    For example, type the following commands to specify 4096 dwords per descriptor and 127 descriptors:

    % 5 4096
    % 6 127
    % 8
    The following figures show the throughput for DMA reads, DMA writes, and simultaneous DMA reads and writes:
    Figure 8.  Intel® Arria® 10 DMA Throughput
    Figure 9.  Intel® Cyclone® 10 GX DMA Throughput
    Figure 10.  Intel® Stratix® 10 DMA Throughput