Low Latency 100G Ethernet Intel® Stratix® 10 FPGA IP Design Example User Guide

ID 683505
Date 1/27/2021
Public

A newer version of this document is available. Customers should click here to go to the newest version.

2.4.1. Packet Generator Programming Sequence

You can initiate the packet transmission from the packet generator to the IP core by programming Packet Size Configure, Packet Number Control, and PKT_GEN_TX_CTRL registers.

The programming sequence varies based on a selected mode PKT_GEN_TX_CTRL[5:4]:

In Random Mode:

  1. Set Packet Number Control[31] to 0.
  2. Set PKT_GEN_TX_CTRL[1] to 0 to start the packet transmission through the packet generator.
  3. Set PKT_GEN_TX_CTRL[1] to 1 to stop the packet generator.

In Fixed/Incremental Mode—with fixed number of packets:

  1. Configure Packet Size Configure.
  2. Configure the number of packets: Bit [31] must be set to specify Packet Number Control[30:0]
  3. Set PKT_GEN_TX_CTRL[1] to 0 to start the packet transmission through the packet generator.
  4. The packet generator stops when the number of packets reaches 0.

In Fixed/Incremental Mode— without fixed number of packets:

  1. Configure Packet Size Configure.
  2. Set Packet Number Control[31] to 0.
  3. Set PKT_GEN_TX_CTRL[1] to 0 to start the packet transmission through the packet generator.
  4. Set PKT_GEN_TX_CTRL[1] to 1 to stop the packet generator.