L-Tile and H-Tile Avalon® Memory-mapped+ Intel® FPGA IP for PCI Express* User Guide

ID 683527
Date 9/13/2024
Public
Document Table of Contents

7.1.3.4. Using the Traffic Checker (BAS Example Design Only)

To use the Traffic Checker, the host software must follow the following steps:

  1. Allocate a block of memory in PCIe space and initialize the memory with sequential dwords.
  2. Program one of the windows in the Address Mapper to point to the block of memory allocated in step 1.
    Steps 1 and 2 can be done by running the Traffic Generator as described in the topic "Using the Traffic Generator".
  3. Set the Traffic Checker’s Read Address register to point to the base of window selected in step 2.
  4. Set the Traffic Checker’s Read Count to the size of the block of memory allocated and initialized in step 1 (or 1MB if that area is larger than 1MB).
  5. Write to the Traffic Checker’s Read Control register to:
    1. Set the target_size to the size of the block of memory.
    2. Set the transfer size to the desired size, e.g. 512 bytes.
    3. Set the write_enable bit to start traffic generation.
  6. Read the Traffic Checker’s Read Count register to check that the desired number of transfers have occurred.
  7. Read the Traffic Checker’s Error register to check that no error occurred.