Skip to content

Commit 6cbf130

Browse files
committedMar 9, 2015
liteeth/mac: fix padding limit (+1), netboot OK with sim platform
1 parent 47cceea commit 6cbf130

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎misoclib/com/liteeth/mac/core/padding.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self, dw, packet_min_length):
1717
If(sink.stb & sink.ack,
1818
counter.ce.eq(1),
1919
If(sink.eop,
20-
If(counter.value < (packet_min_data-1),
20+
If(counter.value < packet_min_data,
2121
source.eop.eq(0),
2222
NextState("PADDING")
2323
)
@@ -26,7 +26,7 @@ def __init__(self, dw, packet_min_length):
2626
)
2727
fsm.act("PADDING",
2828
source.stb.eq(1),
29-
source.eop.eq(counter.value == (packet_min_data-1)),
29+
source.eop.eq(counter.value == packet_min_data),
3030
source.data.eq(0),
3131
If(source.ack,
3232
counter.ce.eq(1),

0 commit comments

Comments
 (0)
Please sign in to comment.