From 763efe4100fbe71e478c8ce88340b10dd1c1a0d7 Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 19 Aug 2019 19:29:47 +0000 Subject: [PATCH] build.plat: do not prepare fragments twice. Fixes #169. --- nmigen/build/plat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = [] -- 2.30.2