Commit 1fdf5dba authored by Florent Kermarrec's avatar Florent Kermarrec
Browse files

lattice/diamond: use build_name as top name

parent 28a5f324
......@@ -56,6 +56,7 @@ def _build_files(device, sources, vincpaths, build_name):
tcl.append("prj_impl option {include path} {\"" + path + "\"}")
for filename, language, library in sources:
tcl.append("prj_src add \"" + filename + "\" -work " + library)
tcl.append("prj_impl option top \"{}\"".format(build_name))
tcl.append("prj_project save")
tcl.append("prj_run Synthesis -impl impl -forceOne")
tcl.append("prj_run Translate -impl impl")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment