We wait an extra cycle for no reason

This commit is contained in:
John Sully 2018-09-23 01:29:19 +02:00
parent c12404e00c
commit 8447d69326

View file

@ -136,11 +136,11 @@ class tXXDController(Module):
# # #
if txxd is not None:
count = Signal(max=max(txxd+1, 2))
count = Signal(max=max(txxd, 2))
self.sync += \
If(valid,
count.eq(txxd),
If((txxd - 1) == 0,
If((txxd) == 0,
ready.eq(1)
).Else(
ready.eq(0)