GTS CPRI PHY IP User Guide

ID 814577
Date 4/07/2025
Public

Visible to Intel only — GUID: pop1707851240849

Ixiasoft

Document Table of Contents

4.2.1. Deterministic Latency

Deterministic latency precisely determines the delay between the FPGA and the PMA pins. Such delay varies from reset to reset and device to device. In most applications, the variation is acceptable to determine the actual delay within a given reset session. This topic shows the calculation delay between pins and FPGA for the GTS CPRI PHY Altera® FPGA IP.
The deterministic latency measurement methodology for Agilex™ 5 GTS devices derives from measuring the time when a given word is present the interface to the PMA, and when that same word arrives at the FPGA. The difference in time between these two events, when added to the PMA propagation delay, determines the total latency between the FPGA and the serial pins. Such a calculation intrinsically includes all delays because of intermediate logic, FIFOs, and all other effects.
Table 11.  Deterministic Latency Factors
Factor Description
TxDL Transmitter delay in sampling clock cycle.

To calculate the TxDL value, read the CPRI PHY register 0xC bit[20:0]. The register provides the value in fixed point format. Bit[20:8] represents an unsigned integer, and bit[7:0] represents a fractional number.

For example:
  • Bit[20:8] = 0x27, the integer value is 39.
  • Bit[7:0] = 0xF4, the fractional value is 0.953125.
Therefore, the total delay is 39.953125 clock cycles.
Note: These values are available in simulation output.
RxDL Receiver delay in sampling clock cycle.

To calculate the RxDL value, read the CPRI PHY register 0x10 bit [20:0]. The register provides a value in fixed point format. Bit[20:8] represents an unsigned integer, and bit[7:0] represents a fractional number.

For example:
  • Bit[20:8] = 0x27, the integer value is 39.
  • Bit[7:0] = 0xF4, the fractional value is 0.953125.
Therefore, the total delay is 39.953125 clock cycles.
Note: These values are available in simulation output.
sampling_clock_period For GTS CPRI PHY Intel FPGA IP:
  • Sampling clock is 250 MHz.
  • Period is 4 ns.
wa Word aligner bit slip value (5 bit) obtained from GTS CPRI PHY register 0x4[9:5].
eth_wa Word aligner bit slip value (7 bit) obtained from the Datapath and PMA Avalon Memory-Mapped Interface register 0x60110[6:0].
dlpulse Obtained from the datapath and PMA Avalon Memory-Mapped Interface register (pcs_bitslip_cnt) at 0x60110 [7].
Table 12.  System Clock Frequency and Period
System Clock Frequency (MHz) system_clk_div2 period (ns)
491.52 4.06901
Table 13.  Delay Equations
Speeds RS-FEC Simulation Direction Delay (ns) Equation
1.2G, 2.4G, 4.9G -- Regular TX tx_delay*4ns + 6*system_clk_div2 period +229*UI
RX rx_delay*4ns - 6*system_clk_div2 period + (347.5 + wa)*UI
Fast TX tx_delay*4ns + 6*system_clk_div2 period + 199.5*UI
RX rx_delay*4ns - 6*system_clk_div2 period + (339.5 + wa )*UI

6G, 9.8G

- Regular TX tx_delay*4ns + 6*system_clk_div2 period + 409*UI
RX rx_delay*4ns - 6*system_clk_div2 period + (607.5 + wa)*UI
Fast TX tx_delay*4ns + 6*system_clk_div2 period + 379.5*UI
RX rx_delay*4ns - 6*system_clk_div2 period + (599.5 + wa)*UI
10G, 12G, 24G Without Regular TX tx_delay*4ns + 6*system_clk_div2 period + 211*UI
RX rx_delay*4ns - 6*system_clk_div2 period + (53.5 - ethlphy_wa - 33*dlpulse)*UI
Fast TX tx_delay*4ns + 6*system_clk_div2 period + 162.5*UI
RX rx_delay*4ns - 6*system_clk_div2 period + (61.5 - ethlphy_wa - 33*dlpulse)*UI
With Regular TX tx_delay*4ns + 6*system_clk_div2 period + 211*UI
RX rx_delay*4ns - 6*system_clk_div2 period + (53.5 - ethlphy_wa)*UI
Fast TX tx_delay*4ns + 6*system_clk_div2 period + 162.5*UI
RX rx_delay*4ns - 6*system_clk_div2 period + (61.5 - ethlphy_wa)*UI