From: whitequark Date: Sat, 26 Jan 2019 16:11:29 +0000 (+0000) Subject: back.rtlil: accept any elaboratable, not just fragments. X-Git-Tag: working~41 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b133eb735f16cac33ccc51373828d5351fdca0e9;p=nmigen.git back.rtlil: accept any elaboratable, not just fragments. --- diff --git a/nmigen/back/rtlil.py b/nmigen/back/rtlil.py index 4d78b82..f85fcea 100644 --- a/nmigen/back/rtlil.py +++ b/nmigen/back/rtlil.py @@ -844,7 +844,7 @@ def convert_fragment(builder, fragment, name, top): def convert(fragment, name="top", **kwargs): - fragment = fragment.prepare(**kwargs) + fragment = ir.Fragment.get(fragment, platform=None).prepare(**kwargs) builder = _Builder() convert_fragment(builder, fragment, name=name, top=True) return str(builder)