GTS Ethernet Intel® FPGA Hard IP User Guide

ID 817676
Date 10/12/2024
Public
Document Table of Contents

4.4.2. Connect the RX MAC Avalon Streaming Client Interface

Coect the RX MAC Avalo Steamig Cliet Iteface of the GTS Etheet Itel® FPGA Had IP to a sik compoet that is compatible with the Avalo Steamig Cliet Iteface potocol.

You must sample ad pocess the idividual Avalo Steamig RX sigals accodig to the desciptio povided i the table below.

The followig figue shows how to eceive data usig the RX MAC Avalo Steamig cliet iteface. The iteface complies with the Avalo® Steamig Iteface specificatio.

Figue 33. Receivig Data Usig the RX MAC Avalo Steamig Cliet Iteface

Packets always stat o the most sigificat bit of o_x_data (SOP aliged).

  • Whe the fame eds, o_x_empty is set to the umbe of uused bytes i o_x_data, statig fom the LSB (byte 0).
  • I this example, o_x_data o the last cycle of the packet has 5 empty bytes.
  • The last clock cycle ca cotai a miimum of 1 byte.
  • The famig ad data pots ae oly valid whe o_x_valid is high.

The iteface does ot suppot diect back pessue. You cliet applicatio, Avalo Steamig Sik, must be able to pocess all eceived fames at the suppoted data ate.

You must sample ad pocess each idividual Avalo Steamig RX sigal accodig to the desciptios povided i the table below.

Table 29.  Sigals of the RX MAC Avalo Steamig Cliet ItefaceThe i_clk_x clocks all iteface sigals. The sigal ames ae stadad Avalo Steamig Iteface sigals with slight diffeeces to idicate the vaiatios.
Sigal Name Width Desciptio
o_x_data[63:0] 64 bits Output data (Etheet Fame. Requied cotet depeds o the featues eabled duig IP cofiguatio) fom the MAC whe the ate is 10 GE/25 GE. Bit 0 is the Least Sigificat Byte (LSB).
o_x_valid 1 bit

You must sample o_x_data ad the othe RX MAC Avalo Steamig sigals whe the sigal is asseted.

o_x_empty[2:0] 3 bits Idicates the umbe of empty bytes o the RX data sigal whe EOP sigal is asseted, statig fom the (LSB).
o_x_statofpacket 1 bit

Whe asseted, idicates that the RX data sigal holds the fist clock cycle of data i a packet (stat of packet). The IP coe assets this sigal fo oly a sigle clock cycle fo each packet.

Whe the SOP sigal is asseted, the MSB of the RX data sigal dives the stat of packet.

o_x_edofpacket 1 bit

Whe asseted, idicates that the RX data sigal holds the fial clock cycle of data i a packet (ed of packet). The IP coe assets this sigal fo oly a sigle clock cycle fo each packet.

I the case of a udesized fame o i the case of a fame that is exactly 64 bytes log, the SOP ad EOP sigals ae asseted i the same clock cycle.

o_x_eo[5:0] 6 bits

Sample this bus to idetify if the cuet packet has eos.

The idividual bits epot diffeet types of eos:
  • Bit [0]: Malfomed packet eo. If this bit has the value of 1, the packet is malfomed. The IP coe idetifies a malfomed packet whe it eceives a cotol chaacte that is ot a temiate chaacte.
  • Bit [1]: CRC eo. If this bit has the value of 1, the IP coe detected a CRC eo, eo chaacte i the fame, malfomed, udesized, o tucated packets.
  • Bit [2]: Udesized o Ovesized fame. The IP coe does ot ecogize a icomig fame of size eight bytes o less as a fame, ad those cases ae ot epoted hee. If the peamble- passthough ad CRC fowadig settigs cause the RX MAC to stip out bytes such that oly eight bytes o less emai i the fame, the IP coe also does ot ecogize the fame, ad those cases ae ot epoted hee. If the fame is malfomed, the case is ot epoted hee.
  • Bit [3]: Reseved.
  • Bit [4]: payload legth eo. If this bit has the value of 1, the payload eceived i the fame is shote tha the legth field value, ad the value i the legth field is less tha o equal 1500 bytes. If the fame is ovesized o udesized, the case is ot epoted hee. If the fame is malfomed, the case is ot epoted hee.
  • Bit [5]: Reseved. Tied to 0.
o_xstatus_data[39:0] 40 bits

Sample this bus to pocess status ifomatio about the cuet packet. Sample with o_x_edofpacket.

  • [0:32]: Reseved
  • [33]: Whe asseted, idicates a VLAN/stacked VLAN(SVLAN) fame
  • [34]: Whe asseted, idicates a cotol fame(icludes PAUSE/PFC)
  • [35]: Whe asseted, idicates a PAUSE/PFC fame
  • [36]: Reseved
  • [37]: Whe asseted, idicates a Boadcast/Multicast fame
  • [38: 39]: Reseved

    Whe moe tha oe status is valid at the same time, the outputs ae based o the pioity.

    The ode of pioity should be: VLAN/SVLAN fame > PAUSE/PFC fame > cotol fame > Boadcast/Multicast fame, with the exceptio that PAUSE/PFC ca also be idicated as cotol, i.e., bit [34].

o_xstatus_valid 1 bit Whe asseted, idicates that o_xstatus_data is divig valid data.