From 262b88c854720fcfecf25f8ff23ceb052fe7a7b7 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 26 Jan 2019 16:11:29 +0000 Subject: [PATCH] back.rtlil: accept any elaboratable, not just fragments. --- nmigen/back/rtlil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2