compat.fhdl.module: silence "unused elaboratable" warnings.
authorwhitequark <cz@m-labs.hk>
Tue, 4 Jun 2019 13:09:36 +0000 (13:09 +0000)
committerwhitequark <cz@m-labs.hk>
Tue, 4 Jun 2019 13:09:36 +0000 (13:09 +0000)
nmigen/compat/fhdl/module.py

index 43ca8fb301cd79958a2170c07fbce24ec9b38d95..f4622b02fff7531844786480a507a2e12e88ab91 100644 (file)
@@ -95,6 +95,8 @@ class _CompatModuleClockDomains(_CompatModuleProxy):
 
 
 class CompatModule(ir.Elaboratable):
+    _Elaboratable__silence = True
+
     # Actually returns nmigen.fhdl.Module, not a Fragment.
     def get_fragment(self):
         assert not self.get_fragment_called