From 0f2b16cbc3bc2ad6eb69e1ce4df41a6124a66075 Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 3 Jul 2019 13:28:57 +0000 Subject: [PATCH] compat.fhdl.specials: mark CompatMemory as Elaboratable. This suppresses a warning that is not useful in the compat context. --- nmigen/compat/fhdl/specials.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmigen/compat/fhdl/specials.py b/nmigen/compat/fhdl/specials.py index a98afbc..f548b53 100644 --- a/nmigen/compat/fhdl/specials.py +++ b/nmigen/compat/fhdl/specials.py @@ -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"): -- 2.30.2