diff --git a/litedram/core/multiplexer.py b/litedram/core/multiplexer.py index 2e8eb68..66a60fe 100644 --- a/litedram/core/multiplexer.py +++ b/litedram/core/multiplexer.py @@ -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 - 1) == 0, + If((txxd) == 0, ready.eq(1) ).Else( ready.eq(0)