mirror of
https://github.com/enjoy-digital/litedram.git
synced 2025-01-04 09:52:25 -05:00
The actual fix
This commit is contained in:
parent
e22580f9bd
commit
06c8c2afcf
1 changed files with 3 additions and 3 deletions
|
@ -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) == 0,
|
||||
count.eq(txxd-1),
|
||||
If((txxd - 1) == 0,
|
||||
ready.eq(1)
|
||||
).Else(
|
||||
ready.eq(0)
|
||||
|
|
Loading…
Reference in a new issue