Merge pull request #51 from gregdavill/ecp5rgmii_delay_fix

phy/ecp5rgmii: Fix io delay blocks
This commit is contained in:
enjoy-digital 2020-10-12 09:17:02 +02:00 committed by GitHub
commit 0c287d07f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 25 deletions

View File

@ -31,12 +31,9 @@ class LiteEthPHYRGMIITX(Module):
i1 = sink.valid,
i2 = sink.valid,
o = tx_ctl_oddrx1f),
Instance("DELAYF",
Instance("DELAYG",
p_DEL_MODE = "SCLK_ALIGNED",
p_DEL_VALUE = "DELAY0",
i_LOADN = 1,
i_MOVE = 0,
i_DIRECTION = 0,
p_DEL_VALUE = 0,
i_A = tx_ctl_oddrx1f,
o_Z = pads.tx_ctl)
]
@ -47,12 +44,9 @@ class LiteEthPHYRGMIITX(Module):
i1 = sink.data[i],
i2 = sink.data[4+i],
o = tx_data_oddrx1f[i]),
Instance("DELAYF",
Instance("DELAYG",
p_DEL_MODE = "SCLK_ALIGNED",
p_DEL_VALUE = "DELAY0",
i_LOADN = 1,
i_MOVE = 0,
i_DIRECTION = 0,
p_DEL_VALUE = 0,
i_A = tx_data_oddrx1f[i],
o_Z = pads.tx_data[i]
)
@ -94,12 +88,9 @@ class LiteEthPHYRGMIIRX(Module, AutoCSR):
rx_data_reg = Signal(8)
self.specials += [
Instance("DELAYF",
Instance("DELAYG",
p_DEL_MODE = "SCLK_ALIGNED",
p_DEL_VALUE = "DELAY{}".format(rx_delay_taps),
i_LOADN = 1,
i_MOVE = 0,
i_DIRECTION = 0,
p_DEL_VALUE = rx_delay_taps,
i_A = pads.rx_ctl,
o_Z = rx_ctl_delayf),
DDRInput(
@ -112,12 +103,9 @@ class LiteEthPHYRGMIIRX(Module, AutoCSR):
self.sync += rx_ctl_reg.eq(rx_ctl)
for i in range(4):
self.specials += [
Instance("DELAYF",
Instance("DELAYG",
p_DEL_MODE = "SCLK_ALIGNED",
p_DEL_VALUE = "DELAY{}".format(rx_delay_taps),
i_LOADN = 1,
i_MOVE = 0,
i_DIRECTION = 0,
p_DEL_VALUE = rx_delay_taps,
i_A = pads.rx_data[i],
o_Z = rx_data_delayf[i]),
DDRInput(
@ -175,12 +163,9 @@ class LiteEthPHYRGMIICRG(Module, AutoCSR):
i1 = 1,
i2 = 0,
o = eth_tx_clk_o),
Instance("DELAYF",
Instance("DELAYG",
p_DEL_MODE = "SCLK_ALIGNED",
p_DEL_VALUE = "DELAY{}".format(tx_delay_taps),
i_LOADN = 1,
i_MOVE = 0,
i_DIRECTION = 0,
p_DEL_VALUE = tx_delay_taps,
i_A = eth_tx_clk_o,
o_Z = clock_pads.tx)
]