From 3c1ab76bbce212cc5b59d560cf60b1decbb64edd Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 19 May 2020 13:10:32 +0200 Subject: [PATCH] litedram/common/tXXDController: only set reset to 1 when txxd is None. This avoids triggering a warning/error with Yosys. --- litedram/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litedram/common.py b/litedram/common.py index dcfadb6..5965d95 100644 --- a/litedram/common.py +++ b/litedram/common.py @@ -315,7 +315,7 @@ class LiteDRAMNativeReadPort(LiteDRAMNativePort): class tXXDController(Module): def __init__(self, txxd): self.valid = valid = Signal() - self.ready = ready = Signal(reset=1) + self.ready = ready = Signal(reset=txxd is None) ready.attr.add("no_retiming") # # #