From: whitequark Date: Fri, 28 Jun 2019 07:22:54 +0000 (+0000) Subject: lib.cdc: eliminate no_retiming attributes. X-Git-Tag: locally_working~138 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21379dd44be0a49ab02a4d3cd88ebff5b7e901cc;p=nmigen.git lib.cdc: eliminate no_retiming attributes. See #115 for rationale. --- diff --git a/nmigen/lib/cdc.py b/nmigen/lib/cdc.py index e68b9cb..5d52503 100644 --- a/nmigen/lib/cdc.py +++ b/nmigen/lib/cdc.py @@ -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):