From: whitequark Date: Sat, 26 Jan 2019 16:11:29 +0000 (+0000) Subject: back.rtlil: accept any elaboratable, not just fragments. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=262b88c854720fcfecf25f8ff23ceb052fe7a7b7;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)