Intel® Cyclone® 10 GX Transceiver PHY User Guide

ID 683054
Date 4/14/2023
Public
Document Table of Contents

6.12.3. Enabling and Disabling Loopback Modes Using Direct Reconfiguration Flow

Cyclone® 10 GX devices have three loopback modes:

  • Serial Loopback
  • Reverse Serial Loopback (Pre-CDR)
  • Reverse Serial Loopback (Post-CDR)

The loopback mode can be dynamically reconfigured by accessing the register space.

Serial Loopback Mode

In serial loopback mode, a path exists between the serializer of the transmitter and the CDR of the receiver, so that the data from the CDR is recovered from the serializer while the data from the receiver serial input pin is ignored. You can enable or disable this mode.

Figure 213. Serial Loopback Mode

To enable serial loopback mode:

  1. Perform the necessary steps from steps 1 to 7 in Steps to Perform Dynamic Reconfiguration.
  2. Perform a read-modify-write to address 0x2E1 to set bit 0 to 1’b1
  3. Perform the necessary steps from steps 9 to 12 in Steps to Perform Dynamic Reconfiguration.

To disable serial loopback mode:

  1. Perform the necessary steps from steps 1 to 7 in Steps to Perform Dynamic Reconfiguration.
  2. Perform a read-modify-write to address 0x2E1 to set bit 0 to 1’b0
  3. Perform the necessary steps from steps 9 to 12 in Steps to Perform Dynamic Reconfiguration.

You can also enable the serial loopback mode by turning on Enable rx_seriallpbken port in the Native PHY IP Parameter Editor and driving the port to 1’b1.

Reverse Serial Loopback Mode (Pre-CDR)

In the pre-CDR mode, data received through the RX input buffer is looped back to the TX output buffer. You can enable the reverse serial loopback mode by performing read-modify-write to the following registers.

Figure 214. Reverse Serial Loopback Mode (Pre-CDR)
Table 201.  Bit Values to Be Set
Address Bit Values
0x137[7] 1’b1
0x13C[7] 1’b0
0x132[5:4] 2’b00
0x142[4] 1’b1
0x11D[0] 1’b1
Note: No specific order to access these registers.

Reverse Serial Loopback Mode (Post-CDR)

In the post-CDR mode, received data passes through the RX CDR and then loops back to the TX output buffer. Perform read-modify-write to the following registers to enable this mode.

Figure 215. Reverse Serial Loopback Mode (Post-CDR)
Table 202.  Bit Values to Be Set
Address Bit Values
0x137[7] 1’b0
0x13C[7] 1’b1
0x132[5:4] 2’b01
0x142[4] 1’b0
0x11D[0] 1’b0
Note: No specific order to access these registers.

Disabling Reverse Serial Loopback Mode (Pre-CDR and Post-CDR)

To disable reverse-serial loopback mode, set the address bits to the following values, by performing read-modify-write.

Table 203.  Bit Values to Be Set
Address Bit Values
0x137[7] 1’b0
0x13C[7] 1’b0
0x132[5:4] 2’b00
0x142[4] 1’b0
0x11D[0] 1’b0
Note: No specific order to access these registers.