From: whitequark Date: Mon, 19 Aug 2019 19:29:47 +0000 (+0000) Subject: build.plat: do not prepare fragments twice. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=763efe4100fbe71e478c8ce88340b10dd1c1a0d7;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 = []