From 6d96bcc1e76154848e1ef6e59632dfd1e6d0eea1 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 17 Jul 2018 17:41:10 +0200 Subject: [PATCH] core/bankmachine: fix cas_count size when tccd == 1 --- litedram/core/bankmachine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litedram/core/bankmachine.py b/litedram/core/bankmachine.py index 10651cf..28e5904 100644 --- a/litedram/core/bankmachine.py +++ b/litedram/core/bankmachine.py @@ -99,7 +99,7 @@ class BankMachine(Module): cas_allowed = Signal(reset=1) tccd = settings.timing.tCCD if tccd is not None: - cas_count = Signal(max=tccd) + cas_count = Signal(max=tccd+1) self.sync += \ If(cas, cas_count.eq(tccd-1)