lib.cdc: eliminate no_retiming attributes.
authorwhitequark <cz@m-labs.hk>
Fri, 28 Jun 2019 07:22:54 +0000 (07:22 +0000)
committerwhitequark <cz@m-labs.hk>
Fri, 28 Jun 2019 07:22:54 +0000 (07:22 +0000)
See #115 for rationale.

nmigen/lib/cdc.py

index e68b9cb5ba9bb0bff91fe3f3684df9489a462858..5d52503d3e248a5d1b092b0b6f4c0e5cd5ab71ef 100644 (file)
@@ -54,8 +54,8 @@ class MultiReg(Elaboratable):
         self.o = o
         self.odomain = odomain
 
-        self._regs = [Signal(self.i.shape(), name="cdc{}".format(i),
-                             reset=reset, reset_less=reset_less, attrs={"no_retiming": True})
+        self._regs = [Signal(self.i.shape(), name="cdc{}".format(i), reset=reset,
+                             reset_less=reset_less)
                       for i in range(n)]
 
     def elaborate(self, platform):
@@ -74,8 +74,7 @@ class ResetSynchronizer(Elaboratable):
         self.arst = arst
         self.domain = domain
 
-        self._regs = [Signal(name="arst{}".format(i), reset=1,
-                             attrs={"no_retiming": True})
+        self._regs = [Signal(1, name="arst{}".format(i), reset=1)
                       for i in range(n)]
 
     def elaborate(self, platform):