lattice/diamond/tcl: always use / separators, even on windows

This commit is contained in:
Florent Kermarrec 2019-11-01 10:11:12 +01:00
parent 59acf0ea1c
commit cc607f022a
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ def _build_files(device, sources, vincpaths, build_name):
for path in vincpaths:
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_src add \"" + filename.replace("\\", "/") + "\" -work " + library)
tcl.append("prj_impl option top \"{}\"".format(build_name))
tcl.append("prj_project save")
tcl.append("prj_run Synthesis -impl impl -forceOne")