cores: fix liteeth

This commit is contained in:
Florent Kermarrec 2015-10-23 20:09:54 +02:00
parent 766b0bee65
commit 197e5cf31c
1 changed files with 4 additions and 2 deletions

View 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)
]