liteeth/mac: fix padding limit (+1), netboot OK with sim platform

This commit is contained in:
Florent Kermarrec 2015-03-09 20:59:34 +01:00
parent 47cceea222
commit 6cbf13036b
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ class LiteEthMACPaddingInserter(Module):
If(sink.stb & sink.ack, If(sink.stb & sink.ack,
counter.ce.eq(1), counter.ce.eq(1),
If(sink.eop, If(sink.eop,
If(counter.value < (packet_min_data-1), If(counter.value < packet_min_data,
source.eop.eq(0), source.eop.eq(0),
NextState("PADDING") NextState("PADDING")
) )
@ -26,7 +26,7 @@ class LiteEthMACPaddingInserter(Module):
) )
fsm.act("PADDING", fsm.act("PADDING",
source.stb.eq(1), 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), source.data.eq(0),
If(source.ack, If(source.ack,
counter.ce.eq(1), counter.ce.eq(1),