From 13650acbbcb6f2762e36ff4b54d3d8453ee0f640 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 13 Oct 2019 01:38:09 +0000 Subject: [PATCH] compat.fhdl.decorators: improve backwards compatibility. --- nmigen/compat/fhdl/decorators.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.30.2