Merge pull request #42 from enjoy-digital/HalfRateSequentialFix

We wait an extra cycle for no reason
This commit is contained in:
enjoy-digital 2018-09-23 15:04:42 +02:00 committed by GitHub
commit 1777720a0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -136,10 +136,10 @@ 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),
count.eq(txxd-1),
If((txxd - 1) == 0,
ready.eq(1)
).Else(