Visible to Intel only — GUID: vbc1526065651791
Ixiasoft
1. About this Document
2. Streaming DMA AFU Description
3. Memory Map and Address Spaces
4. Software Programming Model
5. Running the AFU Example
6. Compiling the Accelerator Function (AF)
7. Simulating the AFU Example
8. Streaming DMA Accelerator Functional Unit User Guide Archive
9. Document Revision History for Streaming DMA Accelerator Functional Unit User Guide
Visible to Intel only — GUID: vbc1526065651791
Ixiasoft
5. Running the AFU Example
Before you begin:
- Intel recommends you refer to the Quick Start Guide for your Intel® FPGA PAC D5005 to be familiar with running similar examples. Before you proceed through the following steps, verify that the OPAE_PLATFORM_ROOT environment variable is set to the OPAE SDK installation directory.
- You must also set up two 1 GB hugepages to run the sample application using the instruction below:
sudo sh -c "echo 2 > /sys/kernel/mm/hugepages/hugepages-1048576kB\nr_hugepages"
Perform the following steps to download the Streaming DMA Accelerator Function (AF) bitstream, to build the application and driver, and to run the design example:
- Change to the Streaming DMA application and driver directory:
cd $OPAE_PLATFORM_ROOT/hw/samples/streaming_dma_afu/sw
- Build the driver and application:
make
- Download the streaming DMA AFU bitstream:
sudo fpgasupdate ../bin/streaming_dma_afu_unsigned.gbs
- Execute the host application to transfer 100 MB in 1 MB portions from host memory to the FPGA pattern checker:
./fpga_dma_st_test -l off -s 104857600 -p 1048576 -r mtos -t fixed
- Execute the host application to transfer 100 MB in 1 MB portions from the FPGA pattern generator to host memory:
./fpga_dma_st_test -l off -s 104857600 -p 1048576 -r stom -t fixed
- Execute the host application to transfer 100 MB in 1 MB portions from host memory back to host memory in loopback mode:
./fpga_dma_st_test -l on -s 104857600 -p 1048576 -t fixed -f 0