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:
parent
6b81121824
commit
f520751a69
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue