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