phy/ecp5rgmii.py: Missed moving dw as class variable here

This commit is contained in:
Vamsi K Vytla 2020-01-17 12:45:37 -08:00
parent 0a922bb2ad
commit c16e6b2d86
1 changed files with 2 additions and 1 deletions

View File

@ -175,8 +175,9 @@ class LiteEthPHYRGMIICRG(Module, AutoCSR):
class LiteEthPHYRGMII(Module, AutoCSR):
dw = 8
def __init__(self, clock_pads, pads, with_hw_init_reset=True, tx_delay=2e-9, rx_delay=2e-9):
self.dw = 8
self.submodules.crg = LiteEthPHYRGMIICRG(clock_pads, pads, with_hw_init_reset, tx_delay)
self.submodules.tx = ClockDomainsRenamer("eth_tx")(LiteEthPHYRGMIITX(pads))
self.submodules.rx = ClockDomainsRenamer("eth_rx")(LiteEthPHYRGMIIRX(pads, tx_delay))