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