F-Tile Architecture and PMA and FEC Direct PHY IP User Guide

ID 683872
Date 11/04/2024
Public
Document Table of Contents

3.14.2.1.1. Direct Register Method Examples

The followig examples demostate the diect egiste method to cofigue the FGT PMA.

TX Equalize Co-efficiets

To set the TX equalize co-efficiets:
  • Wite the TX equalize pe_tap_2 egiste (0x47830[18:16]) with valid value.
  • Wite the TX equalize pe_tap_1 egiste (0x47830[9:5]) with valid value.
  • Wite the TX equalize mai_tap egiste (0x47830[15:10]) with valid value.
  • Wite the TX equalize post_tap_1 egiste (0x47830[4:0]) with valid value.

Mute TX Output

To mute TX output (make TX output 0v):
  • Wite 2’b11 to 0x41750[25:24]
To umute TX output:
  • Wite 2’b00 to 0x41750[25:24]

Iteal Seial Loopback

Cache calibatio egistes listed i Appedix A.3. 40

To eable iteal seial loopback:
  • Wite calibatio egistes with values listed i Appedix A.3. 40
  • Wite 0x0 to 0x41418[31]
  • Wite 0x1 to 0x41420[25]
  • Wite 0x1 to 0x41418[29]
  • Wite 0x1 to 0x41418[31]
To disable iteal seial loopback:
  • Wite calibatio egistes with cached values.40
  • Wite 0x0 to 0x41418[31]
  • Wite 0x0 to 0x41418[29]
  • Wite 0x0 to 0x41420[25]

Revese Paallel Loopback

To eable the Revese Paallel Loopback:
  • Wait fo x_eady asset
  • Asset TX eset
  • Wait fo TX eset Ack
  • Wite 0x0 to 0x41830[31:0]
  • Wite 0x0 to 0x41768[24]
  • Wite 0x1 to 0x41414[29]
  • Wite 0x1 to 0x4141C[30]
  • Wite 0x1 to 0x41418[31]
  • Deasset TX eset
  • Wait fo TX eset ACK deasset
  • If FEC is eabled, you must espod to the tx_am_ge_stat sigal ad geeate the tx_am_ge_2x_ack pulse to get tx_eady to asset. This step is also eeded whe you use the F-Tile Tasceive Toolkit to eable the RX to TX evese paallel loopback.
To disable the Revese Paallel Loopback:
  • Asset TX eset
  • Wite 0x3 to 0x41830[31:0]
  • Wite 0x1 to 0x41768[24]
  • Wite 0x0 to 0x41414[29]
  • Wite 0x0 to 0x4141C[30]
  • Wite 0x0 to 0x41418[31]
  • Deasset TX eset
  • Wait fo TX eset ACK deasset
  • If FEC is eabled, you must espod to the tx_am_ge_stat sigal ad geeate the tx_am_ge_2x_ack pulse to get tx_eady to asset. This step is also eeded whe you use the F-Tile Tasceive Toolkit to disable the RX to TX evese paallel loopback.

TX to RX Paallel Loopback

To eable the TX to RX Paallel Loopback:
  • Wite 0x1 to 0x416A4[8]
  • Wite 0x1 to 0x41418[31]
To disable the TX to RX Paallel Loopback:
  • Wite 0x0 to 0x416A4[8]
  • Wite 0x0 to 0x41418[31]

Polaity Ivesio

TX polaity ivesio:
  • Wite 0x1 to 0x41428[7]
TX polaity ivesio evet back:
  • Wite 0x0 to 0x41428[7]
RX polaity ivesio:
  • Wite 0x1 to 0x41428[6]
RX polaity ivesio evet back:
  • Wite 0x0 to 0x41428[6]

Measuig the Bit Eo Rate (BER) with FGT PMAs

  1. Check that the RX lik is eady fo the desied lae:
    1. Read 0x814[31:16] 41 to cofim that the coespodig lae's x_cd_locked2data = 1
  2. Assig the PRBS patte value:
    1. Fo TX:
      1. Set valid values to 0x416AC[31:28]
    2. Fo RX:
      1. Set valid values to 0x41428[3:0]
    3. Valid values fo PRBS patte:
      • UDP : 0x0
      • PRBS7 : 0x1
      • PRBS9 : 0x2
      • PRBS11 : 0x3
      • PRBS13 : 0x4
      • PRBS15 : 0x5
      • PRBS23 : 0x6
      • PRBS28 : 0x7
      • PRBS31 : 0x8
      • QPRBS13 : 0x9
      • PRBS13Q : 0xa
      • PRBS31Q : 0xb
      • SSPR : 0xc
      • SSPR1 : 0xd
      • SSPRQ : 0xe
  3. BER Stat:
    1. Wite 0x1 to 0x416AC[23]
    2. Wite 0x1 to 0x41424[26]
    3. Wite 0x3 to 0x4176C[28:27]
    4. Wite 0x3 to 0x415B4[19:18]
  4. Iject oe bit of eo (epeat the followig two steps multiple times to iject multiple bits of eo):
    1. Wite 0x1 to 0x416AC[22]
    2. Wite 0x0 to 0x416AC[22]
  5. Eo Cout:
    1. Read fom 0x41444[31:0]
  6. To check oveflow, ead 0x4143C[21], 1 = oveflow, 0 = o oveflow
  7. To clea the coute, toggle 0x415B4[19:18]:
    1. Wite 0x0 to 0x415B4[19:18]
    2. Wite 0x3 to 0x415B4[19:18]
  8. BER Stop:
    1. Wite 0x0 to 0x416AC[23]
    2. Wite 0x0 to 0x41424[26]
    3. Wite 0x0 to 0x4176C[28:27]
    4. Wite 0x0 to 0x415B4[19:18]
The sequece is valid oly whe RX maual tuig is used (RX auto adaptatio is bypassed). If RX auto adaptatio is used, use the FGT attibute access method.
40 This step is optioal ad you oly eed it whe a exteal sigal is peset o the eceive's iput.
41 Addess 0x814 is pat of the PMA ad FEC soft CSR egiste.