cores: fix liteeth
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 23 Oct 2015 18:09:54 +0000 (20:09 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 23 Oct 2015 18:09:54 +0000 (20:09 +0200)
misoc/cores/liteeth_mini/phy/mii.py

index de54a0340242fde959159fdef439cd0ee94e2363..6ac19553a7c0de3be26930ccc6e9917fe5ae1216 100644 (file)
@@ -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)
         ]