compat.fhdl.specials: fix argument parsing compatibility.
authorwhitequark <cz@m-labs.hk>
Thu, 17 Oct 2019 07:54:36 +0000 (07:54 +0000)
committerwhitequark <cz@m-labs.hk>
Thu, 17 Oct 2019 07:54:36 +0000 (07:54 +0000)
nmigen/compat/fhdl/specials.py

index 93111c212adee5b44a014aebf8aa9edb45999460..1f76797949d02327f9ae637c0d1c5138c50c9213 100644 (file)
@@ -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"):