phy/Ultrascale/1000BaseX: Configure PROGDIV_CFG from linerate.

This commit is contained in:
Florent Kermarrec 2024-02-07 11:34:01 +01:00
parent 80ba793bcf
commit b4e2850623
3 changed files with 6 additions and 6 deletions

View File

@ -357,7 +357,7 @@ class KU_1000BASEX(LiteXModule):
p_RX_FABINT_USRCLK_FLOP = 0b0,
p_RX_INT_DATAWIDTH = 0,
p_RX_PMA_POWER_SAVE = 0b0,
p_RX_PROGDIV_CFG = 20.0,
p_RX_PROGDIV_CFG = {1.25e9 : 20.0, 3.125e9 : 10.0}[self.linerate],
p_RX_SAMPLE_PERIOD = 0b111,
p_RX_SIG_VALID_DLY = 11,
p_RX_SUM_DFETAPREP_EN = 0b0,
@ -456,7 +456,7 @@ class KU_1000BASEX(LiteXModule):
p_TX_PMADATA_OPT = 0b0,
p_TX_PMA_POWER_SAVE = 0b0,
p_TX_PROGCLK_SEL = "CPLL",
p_TX_PROGDIV_CFG = 20.0,
p_TX_PROGDIV_CFG = {1.25e9 : 20.0, 3.125e9 : 10.0}[self.linerate],
p_TX_QPI_STATUS_EN = 0b0,
p_TX_RXDETECT_CFG = 0b00000000110010,
p_TX_RXDETECT_REF = 0b100,

View File

@ -401,7 +401,7 @@ class USP_GTH_1000BASEX(LiteXModule):
p_RX_INT_DATAWIDTH = 0,
p_RX_PMA_POWER_SAVE = 0b0,
p_RX_PMA_RSV0 = 0b0000000000000000,
p_RX_PROGDIV_CFG = 20.0,
p_RX_PROGDIV_CFG = {1.25e9 : 20.0, 3.125e9 : 10.0}[self.linerate],
p_RX_PROGDIV_RATE = 0b0000000000000001,
p_RX_RESLOAD_CTRL = 0b0000,
p_RX_RESLOAD_OVRD = 0b0,
@ -514,7 +514,7 @@ class USP_GTH_1000BASEX(LiteXModule):
p_TX_PMA_RSV0 = 0b0000000000001000,
p_TX_PREDRV_CTRL = 2,
p_TX_PROGCLK_SEL = "PREPI",
p_TX_PROGDIV_CFG = 20.0,
p_TX_PROGDIV_CFG = {1.25e9 : 20.0, 3.125e9 : 10.0}[self.linerate],
p_TX_PROGDIV_RATE = 0b0000000000000001,
p_TX_QPI_STATUS_EN = 0b0,
p_TX_RXDETECT_CFG = 0b00000000110010,

View File

@ -419,7 +419,7 @@ class USP_GTY_1000BASEX(LiteXModule):
p_RX_INT_DATAWIDTH = 0,
p_RX_PMA_POWER_SAVE = 0b0,
p_RX_PMA_RSV0 = 0b0000000000101111,
p_RX_PROGDIV_CFG = 20.0,
p_RX_PROGDIV_CFG = {1.25e9 : 20.0, 3.125e9 : 10.0}[self.linerate],
p_RX_PROGDIV_RATE = 0b0000000000000001,
p_RX_RESLOAD_CTRL = 0b0000,
p_RX_RESLOAD_OVRD = 0b0,
@ -531,7 +531,7 @@ class USP_GTY_1000BASEX(LiteXModule):
p_TX_PMA_RSV0 = 0b0000000000000000,
p_TX_PMA_RSV1 = 0b0000000000000000,
p_TX_PROGCLK_SEL = "CPLL",
p_TX_PROGDIV_CFG = 20.0,
p_TX_PROGDIV_CFG = {1.25e9 : 20.0, 3.125e9 : 10.0}[self.linerate],
p_TX_PROGDIV_RATE = 0b0000000000000001,
p_TX_RXDETECT_CFG = 0b00000000110010,
p_TX_RXDETECT_REF = 5,