From 40d91f09c4b40c699f681d07e04a228d38f67ed8 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 5 Jul 2018 10:48:17 +0200 Subject: [PATCH] phy: use rx_dv instead of dv --- liteeth/phy/gmii.py | 6 +++--- liteeth/phy/gmii_mii.py | 6 +++--- liteeth/phy/mii.py | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/liteeth/phy/gmii.py b/liteeth/phy/gmii.py index 9f3180d..649e785 100644 --- a/liteeth/phy/gmii.py +++ b/liteeth/phy/gmii.py @@ -32,11 +32,11 @@ class LiteEthPHYGMIIRX(Module): dv_d = Signal() self.sync += [ - dv_d.eq(pads.dv), - source.valid.eq(pads.dv), + dv_d.eq(pads.rx_dv), + source.valid.eq(pads.rx_dv), source.data.eq(pads.rx_data) ] - self.comb += source.last.eq(~pads.dv & dv_d) + self.comb += source.last.eq(~pads.rx_dv & dv_d) class LiteEthPHYGMIICRG(Module, AutoCSR): diff --git a/liteeth/phy/gmii_mii.py b/liteeth/phy/gmii_mii.py index cce200b..e48ac0c 100644 --- a/liteeth/phy/gmii_mii.py +++ b/liteeth/phy/gmii_mii.py @@ -17,7 +17,7 @@ modes = { } tx_pads_layout = [("tx_er", 1), ("tx_en", 1), ("tx_data", 8)] -rx_pads_layout = [("rx_er", 1), ("dv", 1), ("rx_data", 8)] +rx_pads_layout = [("rx_er", 1), ("rx_dv", 1), ("rx_data", 8)] class LiteEthPHYGMIIMIITX(Module): @@ -67,10 +67,10 @@ class LiteEthPHYGMIIMIIRX(Module): # # # pads_d = Record(rx_pads_layout) - pads_d.dv.reset_less = True + pads_d.rx_dv.reset_less = True pads_d.rx_data.reset_less = True self.sync += [ - pads_d.dv.eq(pads.dv), + pads_d.rx_dv.eq(pads.rx_dv), pads_d.rx_data.eq(pads.rx_data) ] diff --git a/liteeth/phy/mii.py b/liteeth/phy/mii.py index d4c73d6..74e079f 100644 --- a/liteeth/phy/mii.py +++ b/liteeth/phy/mii.py @@ -48,12 +48,12 @@ class LiteEthPHYMIIRX(Module): self.submodules += converter self.sync += [ - converter.reset.eq(~pads.dv), + converter.reset.eq(~pads.rx_dv), converter.sink.valid.eq(1), converter.sink.data.eq(pads.rx_data) ] self.comb += [ - converter.sink.last.eq(~pads.dv), + converter.sink.last.eq(~pads.rx_dv), converter.source.connect(source) ]