From: whitequark Date: Thu, 17 Oct 2019 07:54:36 +0000 (+0000) Subject: compat.fhdl.specials: fix argument parsing compatibility. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c2d66b9cd6bbb1421f8e54ce93e1986306e034f5;p=nmigen.git compat.fhdl.specials: fix argument parsing compatibility. --- 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"):