mac/crc: Only output crc error on last word

Currently doesn't break anything, but it's a bit confusing while debugging
This commit is contained in:
David Sawatzke 2021-11-05 16:43:57 +01:00
parent 6b81121824
commit f520751a69
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ class LiteEthMACCRCChecker(Module):
# applies to the whole ethernet packet, all the bytes are marked as # applies to the whole ethernet packet, all the bytes are marked as
# containing an error. This way later reducing the data width # containing an error. This way later reducing the data width
# doesn't run into issues with missing the error # doesn't run into issues with missing the error
source.error.eq(sink.error | Replicate(crc.error, dw//8)), source.error.eq(sink.error | Replicate(crc.error & sink.last, dw//8)),
self.error.eq(sink.valid & sink.last & crc.error), self.error.eq(sink.valid & sink.last & crc.error),
If(sink.valid & sink.ready, If(sink.valid & sink.ready,