From a74d5c9d9e3182f2389a832298de39e54cd07428 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 4 Mar 2019 09:21:53 +0100 Subject: [PATCH] common/TXXDcontroller: set ready default value to 1 with self.comb instead of reset value Fix SDRAM build with Yosys --- litedram/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litedram/common.py b/litedram/common.py index f74ecec..cd8c330 100644 --- a/litedram/common.py +++ b/litedram/common.py @@ -165,11 +165,12 @@ def cmd_request_rw_layout(a, ba): class tXXDController(Module): def __init__(self, txxd): self.valid = valid = Signal() - self.ready = ready = Signal(reset=1) + self.ready = ready = Signal() ready.attr.add("no_retiming") # # # + self.comb += self.ready.eq(1) if txxd is not None: count = Signal(max=max(txxd, 2)) self.sync += \