Skip to content

Commit

Permalink
liteeth: only raise CRC errors on CRC mismatch at end of packet.
Browse files Browse the repository at this point in the history
Otherwise every packet implies a CRC error.
whitequark committed Oct 30, 2017
1 parent 9d3697c commit 72faa2c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions misoc/cores/liteeth_mini/mac/crc.py
Original file line number Diff line number Diff line change
@@ -257,13 +257,9 @@ def __init__(self, crc_class, layout):
source.payload.eq(fifo.source.payload),

source.error.eq(sink.error | crc.error),
self.crc_error.eq(sink.eop & crc.error),
]

crc_error_r = Signal()

self.comb += self.crc_error.eq(crc.error & ~crc_error_r)
self.sync += crc_error_r.eq(crc.error)

fsm.act("RESET",
crc.reset.eq(1),
fifo.reset.eq(1),

0 comments on commit 72faa2c

Please sign in to comment.