From 6cbf13036b57805673e76c89f7dcca127a39ad38 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 9 Mar 2015 20:59:34 +0100 Subject: [PATCH] liteeth/mac: fix padding limit (+1), netboot OK with sim platform --- misoclib/com/liteeth/mac/core/padding.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misoclib/com/liteeth/mac/core/padding.py b/misoclib/com/liteeth/mac/core/padding.py index b30fc44ed..f9ea898e2 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),