Merge pull request #42 from enjoy-digital/HalfRateSequentialFix
We wait an extra cycle for no reason
This commit is contained in:
commit
1777720a0c
|
@ -136,10 +136,10 @@ class tXXDController(Module):
|
||||||
# # #
|
# # #
|
||||||
|
|
||||||
if txxd is not None:
|
if txxd is not None:
|
||||||
count = Signal(max=max(txxd+1, 2))
|
count = Signal(max=max(txxd, 2))
|
||||||
self.sync += \
|
self.sync += \
|
||||||
If(valid,
|
If(valid,
|
||||||
count.eq(txxd),
|
count.eq(txxd-1),
|
||||||
If((txxd - 1) == 0,
|
If((txxd - 1) == 0,
|
||||||
ready.eq(1)
|
ready.eq(1)
|
||||||
).Else(
|
).Else(
|
||||||
|
|
Loading…
Reference in New Issue