mirror of
https://github.com/enjoy-digital/litedram.git
synced 2025-01-04 09:52:25 -05:00
Fix overflow bug from code review
This commit is contained in:
parent
8447d69326
commit
c028786702
2 changed files with 1 additions and 1 deletions
BIN
litedram/core/.multiplexer.py.swp
Normal file
BIN
litedram/core/.multiplexer.py.swp
Normal file
Binary file not shown.
|
@ -136,7 +136,7 @@ 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),
|
||||
|
|
Loading…
Reference in a new issue