Visible to Intel only — GUID: nxm1566592092906
Ixiasoft
Visible to Intel only — GUID: nxm1566592092906
Ixiasoft
6.1.1.3. Additional Debug Tools
Use the Hard IP reconfiguration interface and PHY reconfiguration interface on the P-Tile Avalon® -MM IP for PCI Express to access additional registers (for example, receiver detection, lane reversal etc.).
Using the Hard IP Reconfiguration Interface
Refer to the section Hard IP Reconfiguration Interface for details on this interface and the associated address map.
The following table lists the address offsets and bit settings for the PHY status registers. Use the Hard IP Reconfiguration Interface to access these read-only registers.
Offset | Bit Position | Register |
---|---|---|
0x0003E9 | [0] | RX polarity |
[1] | RX detection | |
[2] | RX Valid | |
[3] | RX Electrical Idle | |
[4] | TX Electrical Idle | |
0x0003EC | [7] | Framing error |
0x0003ED | [7] | Lane reversal |
- Enable the Hard IP reconfiguration interface (User Avalon® -MM interface) using the IP Parameter Editor.
- Set the lane number for which you want to read the status by performing a read-modify-write to the address hip_reconfig_addr_i[20:0] with write data of lane number on hip_reconfig_writedata_i[7:0] using the Hard IP reconfiguration interface signals.
- hip_reconfig_write_i = 1’b1
- hip_reconfig_addr_i[20:0] = 0x0003E8
- hip_reconfig_writedata_i[3:0] = <Lane number>, where Lane number = 4’h0 for lane 0, 4’h1 for lane 1, 4’h2 for lane 2, …
- Read the status of the register you want by performing a read operation from the address hip_reconfig_addr_i[20:0] using the Hard IP reconfiguration interface signals.
- Enable the Hard IP reconfiguration interface using the IP Parameter Editor.
- Perform read-modify-write to address 0x0003E8 to set the lane number to 0 using the Hard IP reconfiguration interface signals.
- hip_reconfig_write_i = 1’b1
- hip_reconfig_addr_i[20:0] = 0x0003E8
- hip_reconfig_writedata_i[3:0] = 4'h0
- Read the status of the RX detection register by performing a read operation from the address 0x0003E9[1] using the Hard IP reconfiguration interface signals.
- hip_reconfig_read_i = 1’b1
- hip_reconfig_addr_i[20:0] = 0x0003E9
- hip_reconfig_readdata_o[1] = 1'b1 (Far end receiver detected)
Using the PHY Reconfiguration Interface
Refer to the section PHY Reconfiguration Interface for details on how to use this interface.
Follow the steps below to access registers in Table 63 using the PHY reconfiguration interface.
- Enable the PHY reconfiguration interface using the IP Parameter Editor.
- Set the Quad and address offset from which you want to read the status by performing a read operation from the address xcvr_reconfig_addr_i[25:0] using the PHY reconfiguration interface signals.
PHY Offset | Bit Position | Register |
---|---|---|
0x000006 | [7] | PLLA state output status signal. 1'b1 indicates that PLLA is locked. |
0x00000a | [7] | PLLB state output status signal. 1'b1 indicates that PLLB is locked. |
- Enable the PHY reconfiguration interface using the IP Parameter Editor.
- Perform a read from address 0x000006 to read the PLLA status output of Quad0 using the PHY reconfiguration interface signals.
- xcvr_reconfig_read_i = 1'b1
- xcvr_reconfig_addr_i[25:0] = 0x000006
- xcvr_reconfig_readdata_o[7:0] = 8'h80
- xcvr_reconfig_readdata_i = 1'b1 (PLLA state output high indicating PLL lock)