common/tXXDController: revert Yosys workarounds

Now fixed with https://github.com/YosysHQ/yosys/pull/850
This commit is contained in:
Florent Kermarrec 2019-04-29 14:24:23 +02:00
parent 44bbb93620
commit 3caaa2eb13
1 changed files with 2 additions and 5 deletions

View File

@ -164,14 +164,12 @@ class LiteDRAMNativeReadPort(LiteDRAMNativePort):
class tXXDController(Module):
def __init__(self, txxd):
self.valid = valid = Signal()
self.ready = Signal()
self.ready = ready = Signal(reset=1)
ready.attr.add("no_retiming")
# # #
self.comb += self.ready.eq(1)
if txxd is not None:
ready = Signal()
ready.attr.add("no_retiming")
count = Signal(max=max(txxd, 2))
self.sync += \
If(valid,
@ -185,4 +183,3 @@ class tXXDController(Module):
count.eq(count - 1),
If(count == 1, ready.eq(1))
)
self.comb += self.ready.eq(ready)