litedram/common/tXXDController: only set reset to 1 when txxd is None.

This avoids triggering a warning/error with Yosys.
This commit is contained in:
Florent Kermarrec 2020-05-19 13:10:32 +02:00
parent e95af3f15b
commit 3c1ab76bbc
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ class LiteDRAMNativeReadPort(LiteDRAMNativePort):
class tXXDController(Module): class tXXDController(Module):
def __init__(self, txxd): def __init__(self, txxd):
self.valid = valid = Signal() self.valid = valid = Signal()
self.ready = ready = Signal(reset=1) self.ready = ready = Signal(reset=txxd is None)
ready.attr.add("no_retiming") ready.attr.add("no_retiming")
# # # # # #