Merge pull request #42 from shuffle2/padding

mac padding: fix counter reset value
This commit is contained in:
enjoy-digital 2020-06-26 15:43:07 +02:00 committed by GitHub
commit dbe15f17fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
counter = Signal(16, reset=1)
counter = Signal(16)
counter_done = Signal()
self.comb += counter_done.eq(counter >= padding_limit)