projects
/
nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2241fc
)
build.plat: do not prepare fragments twice.
author
whitequark
<whitequark@whitequark.org>
Mon, 19 Aug 2019 19:29:47 +0000
(19:29 +0000)
committer
whitequark
<whitequark@whitequark.org>
Mon, 19 Aug 2019 19:49:51 +0000
(19:49 +0000)
Fixes #169.
nmigen/build/plat.py
patch
|
blob
|
history
diff --git
a/nmigen/build/plat.py
b/nmigen/build/plat.py
index 63458500b2a2530fa52820765ccd9fa9a7d80902..edb3049795bc1cd137093e0b7a1efe2b3271adbc 100644
(file)
--- 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: Non
e)
+ backend_mod = {"rtlil": rtlil, "verilog": verilog}[backend]
+
return backend_mod.convert_fragment(fragment, name=nam
e)
def emit_commands(format):
commands = []