Merge pull request #42 from shuffle2/padding
mac padding: fix counter reset value
This commit is contained in:
commit
dbe15f17fc
|
@ -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