H-Tile Hard IP Ethernet Intel® FPGA IP User Guide: Stratix® 10 Devices

ID 683430
Date 5/03/2024
Public
Document Table of Contents

4.2.1.5. Inter-Packet Gap Generation and Insertion

If you set Average Inter-packet Gap to 12 in the H-Tile Hard IP for Ethernet IP parameter editor, the TX MAC maintains the minimum inter-packet gap (IPG) between transmitted frames required by the IEEE 802.3 Ethernet standard. The standard requires an average minimum IPG of 96 bit times (or 12 byte times). The MAC uses a deficit idle counter to allow the actual gap between frames to vary as needed to meet the maximum throughput requirements of the link.

If you set Average Inter-packet Gap to 10 or 8, the TX MAC maintains a minimum average IPG of 10 or 8 bytes accordingly. This option is provided as an intermediate option to allow you to enforce an IPG that does not conform to the Ethernet standard, but which increases the throughput of your IP core.

If you set Average Inter-packet Gap to 1, the IP core transmits Ethernet packets as soon as the data is available, with the minimum possible gap. The IPG depends on the space you leave between frame data as you write it to the core. If you select this parameter value, the core will no longer comply with the Ethernet standard, but your application will have control over the average gap and throughput can be maximized. For a packet of size (P) bytes, the number of idles bytes (G) inserted after is specified by the following formula G=8-(P%8). A few examples are depicted below:
Packet Size (P) Gap Idle Bytes (G)
64 8
65 7
66 6
67 5
68 4
69 3
70 2
71 1
72 8

The TX MAC also supports inter-packet gap reduction in increments of 3 ppm, using the Additional IPG removed per AM period parameter or dynamically set through the ipg_col_rem register.

Note: The inter-packet gap generation and insertion feature is only available for MAC + PCS IP core variation.