back.{verilog,rtlil}: fix commit d83c4a1b
.
The `ports` argument has been passed implicitly, via `**kwargs`, and that was broken during the deprecation. Closes #659.
This commit is contained in:
parent
a6a13dd612
commit
847e46927b
|
@ -1034,6 +1034,6 @@ def convert(elaboratable, name="top", platform=None, ports=None, *, emit_src=Tru
|
|||
if ports is None:
|
||||
warnings.warn("Implicit port determination is deprecated, specify ports explictly",
|
||||
DeprecationWarning, stacklevel=2)
|
||||
fragment = ir.Fragment.get(elaboratable, platform).prepare(**kwargs)
|
||||
fragment = ir.Fragment.get(elaboratable, platform).prepare(ports=ports, **kwargs)
|
||||
il_text, name_map = convert_fragment(fragment, name, emit_src=emit_src)
|
||||
return il_text
|
||||
|
|
|
@ -47,6 +47,6 @@ def convert(elaboratable, name="top", platform=None, ports=None, *, emit_src=Tru
|
|||
if ports is None:
|
||||
warnings.warn("Implicit port determination is deprecated, specify ports explictly",
|
||||
DeprecationWarning, stacklevel=2)
|
||||
fragment = ir.Fragment.get(elaboratable, platform).prepare(**kwargs)
|
||||
fragment = ir.Fragment.get(elaboratable, platform).prepare(ports=ports, **kwargs)
|
||||
verilog_text, name_map = convert_fragment(fragment, name, emit_src=emit_src)
|
||||
return verilog_text
|
||||
|
|
|
@ -71,7 +71,7 @@ class FHDLTestCase(unittest.TestCase):
|
|||
mode=mode,
|
||||
depth=depth,
|
||||
script=script,
|
||||
rtlil=rtlil.convert(Fragment.get(spec, platform="formal"), ports=())
|
||||
rtlil=rtlil.convert_fragment(Fragment.get(spec, platform="formal").prepare())[0]
|
||||
)
|
||||
with subprocess.Popen(
|
||||
[require_tool("sby"), "-f", "-d", spec_name],
|
||||
|
|
Loading…
Reference in a new issue