mac padding: fix counter reset value

This commit is contained in:
Shawn Hoffman 2020-06-25 03:25:55 -07:00
parent b1bcfb2073
commit d66d302567
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class LiteEthMACPaddingInserter(Module):
padding_limit = math.ceil(padding/(dw/8))-1 padding_limit = math.ceil(padding/(dw/8))-1
counter = Signal(16, reset=1) counter = Signal(16)
counter_done = Signal() counter_done = Signal()
self.comb += counter_done.eq(counter >= padding_limit) self.comb += counter_done.eq(counter >= padding_limit)