From: whitequark Date: Sun, 13 Oct 2019 01:38:09 +0000 (+0000) Subject: compat.fhdl.decorators: improve backwards compatibility. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=33f10414dfed9c8a0ba6e7f0a90ebc253dff21b5;p=nmigen.git compat.fhdl.decorators: improve backwards compatibility. --- diff --git a/nmigen/compat/fhdl/decorators.py b/nmigen/compat/fhdl/decorators.py index 7d925f3..83f39b0 100644 --- a/nmigen/compat/fhdl/decorators.py +++ b/nmigen/compat/fhdl/decorators.py @@ -45,6 +45,11 @@ class CompatCEInserter(_CompatControlInserter): _native_inserter = NativeEnableInserter +class CompatClockDomainsRenamer(NativeDomainRenamer): + def __init__(self, cd_remapping): + super().__init__(cd_remapping) + + ResetInserter = CompatResetInserter CEInserter = CompatCEInserter -ClockDomainsRenamer = NativeDomainRenamer +ClockDomainsRenamer = CompatClockDomainsRenamer