From: Florent Kermarrec Date: Fri, 23 Oct 2015 18:09:54 +0000 (+0200) Subject: cores: fix liteeth X-Git-Tag: 24jan2021_ls180~2106^2~17 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=197e5cf31cf0d5246feea13d742db0a25ec34790;p=litex.git cores: fix liteeth --- 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) ]