Skip to content

Commit 1dd3a43

Browse files
committedAug 20, 2017
liteeth: clean up rgmii clocking
1 parent 3ada03f commit 1dd3a43

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

Diff for: ‎misoc/cores/liteeth_mini/phy/rgmii.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ def __init__(self, pads):
3636
ClockSignal("eth_rx"))
3737

3838
rx_ctl_d = Signal()
39-
self.sync += rx_ctl_d.eq(rx_ctl)
39+
self.sync.eth_rx += rx_ctl_d.eq(rx_ctl)
4040
eop = Signal()
4141
self.comb += eop.eq(~rx_ctl & rx_ctl_d)
4242

43-
self.sync += [
43+
self.sync.eth_rx += [
4444
source.stb.eq(rx_ctl),
4545
source.data.eq(rx_data)
4646
]
@@ -75,6 +75,6 @@ class LiteEthPHYRGMII(Module, AutoCSR):
7575
def __init__(self, clock_pads, pads):
7676
self.dw = 8
7777
self.submodules.crg = LiteEthPHYRGMIICRG(clock_pads, pads)
78-
self.submodules.tx = ClockDomainsRenamer("eth_tx")(LiteEthPHYRGMIITX(pads))
79-
self.submodules.rx = ClockDomainsRenamer("eth_rx")(LiteEthPHYRGMIIRX(pads))
78+
self.submodules.tx = LiteEthPHYRGMIITX(pads)
79+
self.submodules.rx = LiteEthPHYRGMIIRX(pads)
8080
self.sink, self.source = self.tx.sink, self.rx.source

0 commit comments

Comments
 (0)
Please sign in to comment.