F-Tile Architecture and PMA and FEC Direct PHY IP User Guide
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: pgt1628275887956
Ixiasoft
Visible to Intel only — GUID: pgt1628275887956
Ixiasoft
3.14.2.2.2. FGT Attribute Access Method Example 2
- Assert RX reset.
- Wait for RX reset ACK.
- Enable serial loopback:
- Write 0x6A040 to address 0x9003C.
- Poll address 0x90040 until bit 14 = 0 and bit 15 = 1.
- Write 0x62040 to address 0x9003C.
- Poll address 0x90040 until bit 14 = 0 and bit 15 = 0.
- Deassert RX reset.
- Wait for RX reset ACK deassert.
- Confirm the channel is in serial loopback:
- Poll register 0x4781C; bit 1 should be high if serial loopback is enabled.
- Check the FGT PMA’s status:
- Write 0x800D to address 0x9003C.
- Poll address 0x90040 until bit 15 = 1; bit 16 should also be high if the channel is located in physical local 0.
Note:
bit 16, rx_ready is for physical local lane 0
bit 17, rx_ready is for physical local lane 1
bit 18, rx_ready is for physical local lane 2
bit 19, rx_ready is for physical local lane 3
- Write 0x000D to address 0x9003C.
- Poll address 0x90040 until bit 15 = 0.
- Set the PRBS31 pattern for both the TX and RX PMAs:
- Write 0x30CA041 to address 0x9003C.
- Poll address 0x90040 until bit 15 = 1.
- Write 0x30C2041 to address 0x9003C.
- Poll address 0x90040 until bit 15 = 0.
- Set up the PMA to count the number of bit errors:
- Write 0x14A045 to address 0x9003C.
- Poll address 0x90040 until bit 15 = 1.
- Write 0x142045 to address 0x9003C.
- Poll address 0x90040 until bit 15 = 0.
- Start the test:
- Write 0x20A00F to address 0x9003C.
- Poll address 0x90040 until bit 15 = 1.
- Write 0x20200F to address 0x9003C.
- Poll address 0x90040 until bit 15 = 0.
- Check that the test is running:
- Write 0x8049 to address 0x9003C.
- Poll address 0x90040 until bit 15 = 1; bits 25:24 should be 0x1 to indicate the test is running. 42
- Write 0x0049 to address 0x9003C.
- Poll address 0x90040 until bit 15 = 0.
- Set up the PRBS generator to inject errors:
- Write 0x123A042 to address 0x9003C to inject 0x123 errors.
- Poll address 0x90040 until bit 15 = 1.
- Write 0x1232042 to address 0x9003C.
- Poll address 0x90040 until bit 15 = 0.
- Tell the PRBS generator to inject errors:
- Write 0x23A00F to address 0x9003C.
- Poll address 0x90040 until bit 15 = 1.
- Write 0x23200F to address 0x9003C.
- Poll address 0x90040 until bit 15 = 0.
- Stop the BER test:
- Write 0x21A00F to address 0x9003C.
- Poll address 0x90040 until bit 15 = 1.
- Write 0x21200F to address 0x9003C.
- Poll address 0x90040 until bit 15 = 0.
- Check the test completed successfully:
- Write 0x8049 to address 0x9003C.
- Poll address 0x90040 until bit 15 = 1; bits 25:24 should be 0x3.42
- Write 0x0049 to address 0x9003C.
- Poll address 0x90040 until bit 15 = 0.
- Read out the 12 LSB of the error count:
- Write 0x804A to address 0x9003C.
- Poll address 0x90040 until bit 15 = 1; bits 27:16 represent the 12 LSBs of the error count.
- Write 0x004A to address 0x9003C.
- Poll address 0x90040 until bit 15 = 0.
- Read out bits 27:12 of the error count:
- Write 0x804B to address 0x9003C.
- Poll address 0x90040 until bit 15 = 1; bits 31:16 represent bits 27:12 of the error count.
- Write 0x004B to address 0x9003C.
- Poll address 0x90040 until bit 15 = 0.
- Read out bits 31:28 of the error count:
- Write 0x804C to address 0x9003C.
- Poll address 0x90040 until bit 15 = 1; bits 19:16 represent bits 31:28 of the error count.
- Write 0x004C to address 0x9003C.
- Poll address 0x90040 until bit 15 = 0.
- Finish checking the PRBS and BER test:
- Write 0xA041 to address 0x9003C.
- Poll address 0x90040 until bit 15 = 1.
- Write 0x2041 to address 0x9003C.
- Poll address 0x90040 until bit 15 = 0.
- 0x0: Idle
- 0x1: Test running
- 0x2: Test stopped-execution failure
- 0x3: Test stopped-execution completed successfully