Fix failing timing
This commit is contained in:
parent
849b1f6c35
commit
efd7a47890
|
@ -125,10 +125,10 @@ class tXXDController(Module):
|
|||
# # #
|
||||
|
||||
if txxd is not None:
|
||||
count = Signal(max=max(txxd, 2))
|
||||
count = Signal(max=max(txxd+1, 2))
|
||||
self.sync += \
|
||||
If(valid,
|
||||
count.eq(txxd - 1),
|
||||
count.eq(txxd),
|
||||
If((txxd - 1) == 0,
|
||||
ready.eq(1)
|
||||
).Else(
|
||||
|
|
Loading…
Reference in New Issue