mirror of
https://github.com/enjoy-digital/litedram.git
synced 2025-01-04 09:52:25 -05:00
commit
d9c243037a
1 changed files with 2 additions and 2 deletions
|
@ -125,10 +125,10 @@ class tXXDController(Module):
|
|||
# # #
|
||||
|
||||
if txxd is not None:
|
||||
count = Signal(max=max(txxd, 2))
|
||||
count = Signal(max=max(txxd+1, 2))
|
||||
self.sync += \
|
||||
If(valid,
|
||||
count.eq(txxd - 1),
|
||||
count.eq(txxd),
|
||||
If((txxd - 1) == 0,
|
||||
ready.eq(1)
|
||||
).Else(
|
||||
|
|
Loading…
Reference in a new issue