compat.fhdl.decorators: avoid using deprecated NativeCEInserter.
authorwhitequark <cz@m-labs.hk>
Sun, 18 Aug 2019 16:27:11 +0000 (16:27 +0000)
committerwhitequark <cz@m-labs.hk>
Sun, 18 Aug 2019 16:27:11 +0000 (16:27 +0000)
nmigen/compat/fhdl/decorators.py

index 933dcc0e249621c7771f9942066c7601c49db94e..f4ab519f8f28524f6745b3fba6c4bd730466a116 100644 (file)
@@ -1,6 +1,6 @@
 from ...hdl.ast import *
 from ...hdl.xfrm import ResetInserter as NativeResetInserter
-from ...hdl.xfrm import CEInserter as NativeCEInserter
+from ...hdl.xfrm import EnableInserter as NativeEnableInserter
 from ...hdl.xfrm import DomainRenamer as NativeDomainRenamer
 
 
@@ -33,7 +33,7 @@ class CompatResetInserter(_CompatControlInserter):
 
 class CompatCEInserter(_CompatControlInserter):
     _control_name = "ce"
-    _native_inserter = NativeCEInserter
+    _native_inserter = NativeEnableInserter
 
 
 ResetInserter = CompatResetInserter