mirror of
https://github.com/enjoy-digital/litedram.git
synced 2025-01-04 09:52:25 -05:00
common/TXXDcontroller: fix for compatibility with Yosys and vendor tools
This commit is contained in:
parent
a74d5c9d9e
commit
4274db809e
1 changed files with 4 additions and 2 deletions
|
@ -165,13 +165,14 @@ def cmd_request_rw_layout(a, ba):
|
|||
class tXXDController(Module):
|
||||
def __init__(self, txxd):
|
||||
self.valid = valid = Signal()
|
||||
self.ready = ready = Signal()
|
||||
ready.attr.add("no_retiming")
|
||||
self.ready = Signal()
|
||||
|
||||
# # #
|
||||
|
||||
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,3 +186,4 @@ class tXXDController(Module):
|
|||
count.eq(count - 1),
|
||||
If(count == 1, ready.eq(1))
|
||||
)
|
||||
self.comb += self.ready.eq(ready)
|
||||
|
|
Loading…
Reference in a new issue