From efd7a4789021c020cf0ca0534f90364ee4b7d867 Mon Sep 17 00:00:00 2001 From: Date: Fri, 7 Sep 2018 22:12:24 -0400 Subject: [PATCH] Fix failing timing --- litedram/core/multiplexer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litedram/core/multiplexer.py b/litedram/core/multiplexer.py index ba643a7..3a59395 100644 --- a/litedram/core/multiplexer.py +++ b/litedram/core/multiplexer.py @@ -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(