From: whitequark Date: Sun, 13 Oct 2019 01:38:09 +0000 (+0000) Subject: compat.fhdl.decorators: improve backwards compatibility. X-Git-Tag: v0.1rc1~11 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13650acbbcb6f2762e36ff4b54d3d8453ee0f640;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