From d66d30256746987e6fdea6e14f00da4b094a9696 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Thu, 25 Jun 2020 03:25:55 -0700 Subject: [PATCH] mac padding: fix counter reset value --- liteeth/mac/padding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liteeth/mac/padding.py b/liteeth/mac/padding.py index 4f6ee33..cb72018 100644 --- a/liteeth/mac/padding.py +++ b/liteeth/mac/padding.py @@ -18,7 +18,7 @@ class LiteEthMACPaddingInserter(Module): padding_limit = math.ceil(padding/(dw/8))-1 - counter = Signal(16, reset=1) + counter = Signal(16) counter_done = Signal() self.comb += counter_done.eq(counter >= padding_limit)