projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cc7a98
)
build/xilinx: do not assume build name is "top"
author
Mariusz Glebocki
<mglebocki@antmicro.com>
Sat, 23 May 2020 10:57:55 +0000
(12:57 +0200)
committer
Mariusz Glebocki
<mglebocki@antmicro.com>
Mon, 1 Jun 2020 11:28:54 +0000
(13:28 +0200)
litex/build/xilinx/common.py
patch
|
blob
|
history
diff --git
a/litex/build/xilinx/common.py
b/litex/build/xilinx/common.py
index a36b8af417ed23ff3a0c8d8e9a5c541ae73642c2..40fbda32c75fe17216aff6da045cc15ed51bf274 100644
(file)
--- a/
litex/build/xilinx/common.py
+++ b/
litex/build/xilinx/common.py
@@
-374,7
+374,7
@@
def _run_yosys(device, sources, vincpaths, build_name):
ys_contents += "read_{}{} {}\n".format(language, incflags, filename)
ys_contents += """\
-hierarchy -top
top
+hierarchy -top
{build_name}
# FIXME: Are these needed?
# proc; memory; opt; fsm; opt
@@
-401,7
+401,7
@@
log
select -list a:async_reg=true
setattr -set keep 1 a:async_reg=true
-synth_xilinx -top
top
+synth_xilinx -top
{build_name}
write_edif -pvector bra -attrprop {build_name}.edif
""".format(build_name=build_name)