From: whitequark Date: Mon, 19 Aug 2019 19:29:47 +0000 (+0000) Subject: build.plat: do not prepare fragments twice. X-Git-Tag: locally_working~26 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ada1d6a6034fdfbbf1d460b5069416f723a9062d;p=nmigen.git build.plat: do not prepare fragments twice. Fixes #169. --- diff --git a/nmigen/build/plat.py b/nmigen/build/plat.py index 6345850..edb3049 100644 --- a/nmigen/build/plat.py +++ b/nmigen/build/plat.py @@ -256,8 +256,8 @@ class TemplatedPlatform(Platform): assert False def emit_design(backend): - return {"rtlil": rtlil, "verilog": verilog}[backend].convert(fragment, name=name, - ports=list(self.iter_ports()), missing_domain=lambda name: None) + backend_mod = {"rtlil": rtlil, "verilog": verilog}[backend] + return backend_mod.convert_fragment(fragment, name=name) def emit_commands(format): commands = []