mac padding: fix counter reset value
This commit is contained in:
parent
b1bcfb2073
commit
d66d302567
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue