Low Latency 40G for ASIC Proto Ethernet Intel® FPGA IP User Guide

ID 683221
Date 11/10/2022
Public
Document Table of Contents

6.3. TX PCS Interface to User Logic

The Low Latency 40G for ASIC Proto Ethernet IP core TX client interface in PCS Only variations employs the Media Independent Interface (MII) protocol.

The client acts as a source and the TX PCS acts as a sink in the transmit direction.

Table 15.  Signals of the MII TX Client Interface

Signal Name

Description

clk_txmac The TX clock for the IP core is clk_txmac. The frequency of this clock is 312.5 MHz.

If you turn on Use external TX MAC PLL parameter, the clk_txmac_in input clock drives clk_txmac.

tx_mii_d[127:0]

TX MII input data from MAC to PCS. Data must be in MII encoding.

The IP core handles two data blocks per clock cycle.

tx_mii_c[15:0]

TX MII control bits. Each bit corresponds to a byte of i_tx_mii_d. i_tx_mii_c[0] corresponds to i_tx_mii_d[7:0], i_tx_mii_c[1] corresponds to i_tx_mii_d[15:8], and so on.

The IP core handles two data blocks per clock cycle.

tx_mii_valid Indicates that tx_mii_d is valid.

You must assert this signal a fixed number of clock cycles after the IP core raises tx_mii_ready, and must deassert this signal the same number of clock cycles after the IP core deasserts tx_mii_ready. The number must be in the range of 1–10 clock cycles.

While you hold the value of this signal at 0, you must freeze the values of both tx_mii_d and tx_mii_c stable.

tx_mii_ready Indicates the PCS is ready to receive new data.
tx_pcs_am Alignment marker insertion bit. You must hold this signal asserted for 2 clk_txmac consecutive clock cycles, counting only the valid cycles, to drive the insertion of an alignment marker. A valid cycle is one in which tx_mii_valid has the value of 1.

The number of valid clock cycles from deassertion of tx_pcs_am (alignment marker insertion bit signal) to reassertion of tx_pcs_am is the am_period.

  • For normal operation of the Ethernet link, you must ensure that the value of am_period is 32766 clock cycles. .
  • In simulation you can reduce this value to 510. This change decreases the simulation time to RX PCS alignment. You can set the IP core to expect this interval by setting the sim_mode RTL parameter to Enable.
    Note: The value for the MAC+PCS variations is different, to ensure the value on the internal signal has the appropriate am_period.

For an example that handles this setting for simulation and drives the tx_pcs_am signal appropriately for simulation, refer to the IP core design example for PCS Only variations. For information about how to generate the IP core design example, refer to the Low Latency 40G for ASIC Proto Ethernet Intel® FPGA IP Design Example User Guide. For information about the sim_mode RTL parameter, refer to the RTL Parameters section of this user guide.

While you hold the value of this signal at 1, you must freeze the values of both tx_mii_d and tx_mii_c.

Figure 17. TX MII Client Interface for Low Latency 40G for ASIC Proto Ethernet IP Core
Figure 18. Alignment Marker Insertion on the TX MII Client Interface