compat.fhdl.decorators: improve backwards compatibility.
authorwhitequark <cz@m-labs.hk>
Sun, 13 Oct 2019 01:38:09 +0000 (01:38 +0000)
committerwhitequark <cz@m-labs.hk>
Sun, 13 Oct 2019 01:38:09 +0000 (01:38 +0000)
nmigen/compat/fhdl/decorators.py

index 7d925f32e30e6929823e02c3cfbe03e937448863..83f39b05af92ec33565cc5cd34f6843ecde613a4 100644 (file)
@@ -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