Visible to Intel only — GUID: dfz1557328270000
Ixiasoft
Visible to Intel only — GUID: dfz1557328270000
Ixiasoft
5.1.7.1.2. RMII and RGMII PHY Interfaces
Determine whether to use RMII or RGMII PHY Interfaces.
RMII
RMII uses a single centralized system-synchronous 50 MHz clock source (REF_CLK) for both transmit and receive paths across all ports. This simplifies system clocking and lowers pin counts in high port density systems, because your design can use a single board oscillator as opposed to per port TX_CLK/RX_CLK source synchronous clock pairs.
RMII uses two-bit wide transmit and receive data paths. All data and control signals are synchronous to the REF_CLK rising edge. The RX_ER control signal is not used. In 10Mbps mode, all data and control signals are held valid for 10 REF_CLK clock cycles.
Interface Clocking Scheme
EMACs and RMII PHYs can provide the 50 MHz REF_CLK source. Using clock resources already present such as HPS_OSC_CLK input, internal PLLs further simplifies system clocking design and eliminates the need for an additional clock source.
This section discusses system design scenarios for both HPS EMAC-sourced and PHY-sourced REF_CLK.
GUIDELINE: Consult the Intel Agilex® 7 FPGA Data Sheet for specifics on the choice of REF_CLK source in your application.
- HPS-Sourced REF_CLK
- PHY-Sourced REF_CLK
If RX_CLK is routed daisy-chain from source to MAC to PHY or source to PHY, you must account for the flight time difference as both REF_CLK loads observes the clock at different times.
GUIDELINE: Take into account routing delays and skews on the data and control signals to ensure meeting setup and hold as specified in the HPS SoC Device data sheet and PHY data sheet.
Signal length matching is not necessary unless you have signal lengths in excess of 24 inches, in which case you must perform some basic timing analysis with clock delays versus data delays.
The period is 20 ns with the 50 MHz REF_CLK and remains at this frequency regardless of whether the PHY is set to 10Mbps or 100Mbps mode.
All clocking in the HPS EMAC is based on the RX_CLK, so the Tco and PCB flight time of REF_CLK from either the EMAC or PHY can be ignored. Typical board traces up to 12 inches yield only 2 ns of flight time and Tsu of RXD to RX_CLK is 4 ns minimum, well under the 20 ns period.
There is a 2 ns hold requirement of RXD versus RX_CLK which is easily satisfied as well because the Tco of TXD with respect to RX_CLK for either the MAC or the PHY is typically over 2 ns. For the Intel Agilex® 7 SoC device, the Tco of TXD with respect to RX_CLK is 2 ns to 10 ns.
GUIDELINE: Ensure the REF_CLK source meets the duty cycle requirement.
There is no jitter specification for the REF_CLK, but there is a duty cycle requirement of 35 to 65 percent. This requirement is met by the Intel Agilex® 7 SoC device PLLs and clock outputs for GPIO or for the TX_CLK signal coming from the HPS IP specifically.
RGMII
RGMII is the most common interface because it supports 10 Mbps, 100 Mbps, and 1000 Mbps connection speeds at the PHY layer.
RGMII uses four-bit wide transmit and receive data paths, each with its own source-synchronous clock. All transmit data and control signals are source synchronous to TX_CLK, and all receive data and control signals are source synchronous to RX_CLK.
For all speed modes, TX_CLK is sourced by the MAC, and RX_CLK is sourced by the PHY. In 1000 Mbps mode, TX_CLK and RX_CLK are 125 MHz, and Dual Data Rate (DDR) signaling is used. In 10 Mbps and 100 Mbps modes, TX_CLK and RX_CLK are 2.5 MHz and 25 MHz, respectively, and rising edge Single Data Rate (SDR) signaling is used.
I/O Pin Timing
This section addresses RGMII interface timing from the perspective of meeting requirements in the 1000 Mbps mode. The interface timing margins are most demanding in 1000 Mbps mode, thus it is the only scenario you consider here.
At 125 MHz, the period is 8 ns, but because both edges are used, the effective period is only 4 ns. The TX and RX busses are separate and source synchronous, simplifying timing. The RGMII specification calls for CLK to be delayed from DATA at the receiver in either direction by a minimum 1.0 ns and a maximum 2.6 ns.
In other words, the TX_CLK must be delayed from the MAC output to the PHY input and the RX_CLK from the PHY output to the MAC input. The signals are transmitted source synchronously within the +/- 500 ps RGMII skew specification in each direction as measured at the output pins. The minimum delay needed in each direction is 1 ns but Intel® recommends to target a delay of 1.5 ns to 2.0 ns to ensure significant timing margin.
Transmit path setup/hold
Only setup and hold for TX_CLK to TX_CTL and TXD[3:0] matter for transmit. The Intel Agilex® 7 HPS I/O can provide up to ~3 ns additional delay on outputs in ~100 ps increments. For specific values, refer to the Intel Agilex® 7 FPGA Data Sheet. The delay added to the EMAC's TX_CLK output when using HPS dedicated I/O can be configured in the HPS Platform Designer IP component I/O Delays parameter.
GUIDELINE: For TX_CLK from the Intel Agilex® 7 device, you must introduce 1.8 ns I/O delay to meet the 1.0 ns PHY minimum input setup/hold time in the RGMII spec.
Receive path setup/hold
Only setup and hold for RX_CLK to RX_CTL and RXD[3:0] are necessary to consider for receive timings. The Intel Agilex® 7 HPS I/O can provide up to ~3 ns additional delay on inputs. For specific values, refer to the Intel Agilex® 7 FPGA Data Sheet. For Intel Agilex® 7 device inputs, the up to 2.25 ns I/O delay can achieve this timing for RX_CLK without any other considerations on the PHY side or board trace delay side. The delay added to the EMAC's RX_CLK output when using HPS dedicated I/O can be configured in the HPS Platform Designer IP component I/O Delays parameter.