compat.fhdl.specials: mark CompatMemory as Elaboratable.
authorwhitequark <cz@m-labs.hk>
Wed, 3 Jul 2019 13:28:57 +0000 (13:28 +0000)
committerwhitequark <cz@m-labs.hk>
Wed, 3 Jul 2019 13:28:57 +0000 (13:28 +0000)
This suppresses a warning that is not useful in the compat context.

nmigen/compat/fhdl/specials.py

index a98afbce9284e80bc44aa4b60c83d94a092d3d93..f548b538b9d157b4fdfd28562d13c147bce4a848 100644 (file)
@@ -83,7 +83,7 @@ def elaborate(self, platform):
     return Fragment()
 
 
-class CompatMemory(NativeMemory):
+class CompatMemory(NativeMemory, Elaboratable):
     @deprecated("instead of `get_port()`, use `read_port()` and `write_port()`")
     def get_port(self, write_capable=False, async_read=False, has_re=False, we_granularity=0,
                  mode=WRITE_FIRST, clock_domain="sync"):