Add no_retiming attribute
authorJean THOMAS <git0@pub.jeanthomas.me>
Thu, 11 Jun 2020 16:11:11 +0000 (18:11 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Thu, 11 Jun 2020 16:11:11 +0000 (18:11 +0200)
gram/common.py

index 5a43dee0de4cf2874091bac233b3b1f0c98c8f84..a890b16125d5d7232ebbdabbc115284c73b64b34 100644 (file)
@@ -348,8 +348,7 @@ class gramNativeReadPort(gramNativePort):
 class tXXDController(Elaboratable):
     def __init__(self, txxd):
         self.valid = Signal()
-        self.ready = ready = Signal(reset=txxd is None)
-        # ready.attr.add("no_retiming") TODO
+        self.ready = ready = Signal(reset=txxd is None, attrs={"no_retiming": True})
         self._txxd = txxd
 
     def elaborate(self, platform):
@@ -372,8 +371,7 @@ class tXXDController(Elaboratable):
 class tFAWController(Elaboratable):
     def __init__(self, tfaw):
         self.valid = Signal()
-        self.ready = Signal(reset=1)
-        # ready.attr.add("no_retiming") TODO
+        self.ready = Signal(reset=1, attrs={"no_retiming": True})
         self._tfaw = tfaw
 
     def elaborate(self, platform):