Visible to Intel only — GUID: fzg1697543969248
Ixiasoft
Visible to Intel only — GUID: fzg1697543969248
Ixiasoft
4.3.2. RX MAC Avalon Streaming Client Interface
The GTS Ethernet Intel® FPGA Hard IP RX client interface in MAC+PCS variations is an Avalon® Streaming Interface. The Avalon® streaming interface protocol is a synchronous point-to-point, unidirectional interface that connects the source of a data stream to sink. The key properties of this interface include:
- Start of packet (SOP) and end of packet (EOP) signals to delimit frame transfers.
- The SOP must always be in the MSB, simplifying the interpretation and processing of data you received on this interface.
- A valid signal qualifies the signals from source to sink.
The RX MAC acts as a source and the client acts as a sink in the receive direction.
Signal Name | Width | Description |
---|---|---|
o_rx_data[63:0] | 64 bits | Output data to the MAC when the rate is 10 GE/25 GE. Bits 0 is the LSB. |
o_rx_valid | 1 bit | When asserted, indicates that RX data is valid. Only valid between the SOP and EOP signals. This signal might be deasserted between the assertion of the SOP and EOP signals. |
o_rx_empty[2:0] | 3 bits | Indicates the number of empty bytes on the RX data signal when EOP signal is asserted, starting from the least significant byte (LSB). |
o_rx_startofpacket | 1 bit | When asserted, indicates that the RX data signal holds the first clock cycle of data in a packet (start of packet). The IP core asserts this signal for only a single clock cycle for each packet. When the SOP signal is asserted, the MSB of the RX data signal drives the start of packet. |
o_rx_endofpacket | 1 bit | When asserted, indicates that the RX data signal holds the final clock cycle of data in a packet (end of packet). The IP core asserts this signal for only a single clock cycle for each packet. In the case of an undersized frame or in the case of a frame that is exactly 64 bytes long, the SOP and EOP signals might be asserted in the same clock cycle. |
o_rx_error[5:0] | 6 bits | Reports certain types of errors in the Ethernet frame whose contents are currently being transmitted on the client interface. This signal is valid in EOP cycles only. The individual bits report different types of errors: Bit [0]: Malformed packet error. If this bit has the value of 1, the packet is malformed. The IP core identifies a malformed packet when it receives a control character that is not a terminate character. Bit [1]: CRC error. If this bit has the value of 1, the IP core detected a CRC error, error character in the frame, malformed, undersized, or truncated packets. Bit [2]: Undersized or Oversized frame. The IP core does not recognize an incoming frame of size eight bytes or less as a frame, and those cases are not reported here. If the preamble- passthrough and CRC forwarding settings cause the RX MAC to strip out bytes such that only eight bytes or less remain in the frame, the IP core also does not recognize the frame, and those cases are not reported here. If the frame is malformed, the case is not reported here. Bit [3]: Reserved. Bit [4]: payload length error. If this bit has the value of 1, the payload received in the frame is shorter than the length field value, and the value in the length field is less than or equal 1500 bytes. If the frame is oversized or undersized, the case is not reported here. If the frame is malformed, the case is not reported here. Bit [5]: Reserved. Tied to 0 |
o_rxstatus_data[39:0] | 40 bits | RX frame status information. Valid on EOP cycle for the selected channel.
|
o_rxstatus_valid | 1 bit | When asserted, indicates that o_rxstatus_data is driving valid data. |
The following figure shows how to receive data using the RX MAC Avalon Streaming client interface. The interface complies with the Avalon® Streaming Interface specification.
Packets always start on the most significant bit of o_rx_data (SOP aligned).
- When the frame ends, o_rx_empty is set to the number of unused bytes in o_rx_data, starting from the least significant bit (byte 0).
- In this example, o_rx_data on the last cycle of the packet has 5 empty bytes.
- The minimum number of bytes on the last cycle is 1.
- The framing and data ports are only valid when o_rx_data is high.
The interface does not support direct back pressure.