From c2d66b9cd6bbb1421f8e54ce93e1986306e034f5 Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 17 Oct 2019 07:54:36 +0000 Subject: [PATCH] compat.fhdl.specials: fix argument parsing compatibility. --- nmigen/compat/fhdl/specials.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nmigen/compat/fhdl/specials.py b/nmigen/compat/fhdl/specials.py index 93111c2..1f76797 100644 --- a/nmigen/compat/fhdl/specials.py +++ b/nmigen/compat/fhdl/specials.py @@ -84,6 +84,9 @@ def elaborate(self, platform): class CompatMemory(NativeMemory, Elaboratable): + def __init__(self, width, depth, init=None, name=None): + super().__init__(width=width, depth=depth, init=init, name=name) + @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