From 197e5cf31cf0d5246feea13d742db0a25ec34790 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 23 Oct 2015 20:09:54 +0200 Subject: [PATCH] cores: fix liteeth --- misoc/cores/liteeth_mini/phy/mii.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/misoc/cores/liteeth_mini/phy/mii.py b/misoc/cores/liteeth_mini/phy/mii.py index de54a034..6ac19553 100644 --- a/misoc/cores/liteeth_mini/phy/mii.py +++ b/misoc/cores/liteeth_mini/phy/mii.py @@ -58,9 +58,11 @@ class LiteEthPHYMIIRX(Module): converter.sink.stb.eq(1), converter.sink.data.eq(pads.rx_data) ] - self.comb += [ + self.sync += [ sop_set.eq(~pads.dv), - sop_clr.eq(pads.dv), + sop_clr.eq(pads.dv) + ] + self.comb += [ converter.sink.sop.eq(sop), converter.sink.eop.eq(~pads.dv) ] -- 2.30.2