Skip to content

Commit

Permalink
liteeth/mac: fix padding limit (+1), netboot OK with sim platform
Browse files Browse the repository at this point in the history
enjoy-digital committed Mar 9, 2015
1 parent 47cceea commit 6cbf130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misoclib/com/liteeth/mac/core/padding.py
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ def __init__(self, dw, packet_min_length):
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 @@ def __init__(self, dw, packet_min_length):
)
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),

0 comments on commit 6cbf130

Please sign in to comment.