From f17375a60b8a220ebdde19af03e1b92d92225c3c Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 26 May 2019 17:10:56 +0000 Subject: [PATCH] back.rtlil: allow specifying platform for convert(). --- nmigen/back/rtlil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nmigen/back/rtlil.py b/nmigen/back/rtlil.py index 12415b3..1a1fabc 100644 --- a/nmigen/back/rtlil.py +++ b/nmigen/back/rtlil.py @@ -878,8 +878,8 @@ def convert_fragment(builder, fragment, hierarchy): return module.name, port_map -def convert(fragment, name="top", **kwargs): - fragment = ir.Fragment.get(fragment, platform=None).prepare(**kwargs) +def convert(fragment, name="top", platform=None, **kwargs): + fragment = ir.Fragment.get(fragment, platform).prepare(**kwargs) builder = _Builder() convert_fragment(builder, fragment, hierarchy=(name,)) return str(builder) -- 2.30.2