From: Florent Kermarrec Date: Mon, 9 Mar 2015 19:59:34 +0000 (+0100) Subject: liteeth/mac: fix padding limit (+1), netboot OK with sim platform X-Git-Tag: 24jan2021_ls180~2497 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6cbf13036b57805673e76c89f7dcca127a39ad38;p=litex.git liteeth/mac: fix padding limit (+1), netboot OK with sim platform --- diff --git a/misoclib/com/liteeth/mac/core/padding.py b/misoclib/com/liteeth/mac/core/padding.py index b30fc44e..f9ea898e 100644 --- a/misoclib/com/liteeth/mac/core/padding.py +++ b/misoclib/com/liteeth/mac/core/padding.py @@ -17,7 +17,7 @@ class LiteEthMACPaddingInserter(Module): If(sink.stb & sink.ack, counter.ce.eq(1), If(sink.eop, - If(counter.value < (packet_min_data-1), + If(counter.value < packet_min_data, source.eop.eq(0), NextState("PADDING") ) @@ -26,7 +26,7 @@ class LiteEthMACPaddingInserter(Module): ) fsm.act("PADDING", source.stb.eq(1), - source.eop.eq(counter.value == (packet_min_data-1)), + source.eop.eq(counter.value == packet_min_data), source.data.eq(0), If(source.ack, counter.ce.eq(1),