Fix failing timing

This commit is contained in:
2018-09-07 22:12:24 -04:00
parent 849b1f6c35
commit efd7a47890
1 changed files with 2 additions and 2 deletions

View File

@ -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(