Visible to Intel only — GUID: yjl1646756377128
Ixiasoft
Visible to Intel only — GUID: yjl1646756377128
Ixiasoft
5.3. Programmable LMFC Offset
The TX LMFC offset can align the TX LMFC counter to the LMFC counter in DAC; the RX LMFC offset can align the RX LMFC counter to the LMFC counter in ADC. Phase offset between the TX and RX LMFC counters in the both ends of the F-Tile JESD204B link contributes to deterministic latency uncertainty. The phase offset is caused by:
- SYSREF trace length mismatch in the PCB between the TX and RX devices (FPGA and converters).
- delay differences in resetting the LMFC counter when SYSREF pulses are detected by the FPGA and converter devices.
The RX device in the F-Tile JESD204B link is responsible for deterministic latency adjustments. The following figure illustrates the adjustments that you can make to the RX LMFC offset using the csr_lmfc_offset field in the syncn_sysref_ctrl register. This is an alternative to using csr_rbd_offset to achieve deterministic latency.
Sequence of events in the diagram:
- Due to trace length mismatch, SYSREF pulse arrives at the ADC first.
- Some deterministic delay occurs in between the time when the SYSREF pulse is sampled high to the reset of the ADC internal LMFC counter.
- The SYSREF pulse arrives at the FPGA IP core port, rx_sysref, after the pulse's arrival at the ADC.
- The FPGA IP core's internal LMFC counter resets two link clock cycles after SYSREF is sampled.
- The LMFC phase offset between the LMFC counter at ADC and FPGA is ~3.5 link clock cycles.
- The FPGA deasserts SYNC_N at the LMFC boundary.
- The ADC JESD204B core detects the SYNC_N deassertion.
- Because SYNC_N deassertion is detected after the second LMFC boundary at ADC, ILAS transmission begins at the third LMFC boundary.
- In this example, the ILAS arrives at the IP core's RBD elastic buffer within one local multiframe. In other system, the arrival at the RBD elastic buffer can span more than one local multiframe. Assuming csr_rbd_offset = 0, RBD elastic buffer may be released at the third or fourth LMFC boundary due to power cycle variation.
- Setting csr_lmfc_offset = 5 resets the LMFC counter to the value of 5.
- The first LMFC boundary is delayed by three link clock cycles.
- The third LMFC boundary has been delayed past the latest arrival lane power cycle variation. The RBD elastic buffer is always released at the third LMFC boundary.
You should set a safe LMFC offset value to ensure deterministic latency from one power cycle to another power cycle. In the Selecting Illegal LMFC Offset Value for RX, Causing Lane Deskew Error figure, the illegal csr_lmfc_offset values of 1, 2, and 3 causes lane de-skew error because the RBD buffer size has exceeded.
You can use the TX LMFC offset to align the LMFC counter in IP core to the LMFC counter in DAC.
Sequence of events in the diagram:
- SYSREF pulse arrives at the FPGA IP core port, tx_sysref.
- The IP core's internal LMFC counter resets after two link clock cycles.
- SYSREF pulse is sampled by the DAC.
- The DAC's internal LMFC counter resets after a deterministic delay.
- The LMFC phase offset is ~3.5 link clock cycles.
- The DAC deasserts SYNC_N at the LMFC boundary.
- SYNC_N deassertion is detected by the F-Tile JESD204B IP core.
- Because SYNC_N deassertion is detected after the second LMFC boundary at the FPGA, ILAS transmission begins at the third LMFC boundary.
- The csr_lmfc_offset is set to 4. This delays the TX LMFC boundary by 4 link clock cycles. If csr_lmfc_offset is set to 5, the TX LMFC boundary is delayed by 3 link clock cycles.
- The LMFC phase offset between the TX and RX LMFC reduces to 0.5 link clock cycle.
Alternative to tuning RBD offset at the DAC, adjusting TX LMFC offset in the FPGA helps you to achieve deterministic latency. You should perform multiple power cycles and read the RBD counts at the DAC to determine whether deterministic latency is achieved and RBD elastic buffer size has not exceeded.
The SYSREF pipeline registers in the FPGA introduce additional latency to SYSREF when detected by the IP core. Therefore, you can use TX LMFC offset to reduce or eliminate this additional latency. The next figure illustrates the technique of optimizing latency using TX LMFC offset.
Sequence of events in the diagram:
- The DAC samples the SYSREF pulse.
- The DAC's internal LMFC counter resets after a deterministic delay.
- The SYSREF pipeline registers introduces an additional 2 link clock latency.
- The csr_lmfc_offset field is set to 4. The IP core internal LMFC counter resets after 2 link clock cycles.
- The LMFC boundary is delayed by 4 link clock.
- The DAC deasserts SYNC_N at the LMFC boundary.
- SYNC_N deassertion is detected by the F-Tile JESD204B IP core.
- Because LMFC boundary is delayed by 4 link clock, the IP core detects the SYNC_N deassertion before the second LMFC boundary. ILAS transmission begins at the second LMFC boundary instead of the third LMFC boundary (as shown in the Example of Reducing LMFC Phase Offset between TX and RX LMFC Counter figure). The latency is shortened by 4 LMFC counts or link clock cycles.
The csr_lmfc_offset field provides a convenient way to achieve deterministic latency and potentially optimizing the IP core latency. There are other ways that you can achieve deterministic latency by using the features available at the converters. Consult the converter manufacturer for details of these features.