From: Florent Kermarrec Date: Fri, 1 Nov 2019 09:11:12 +0000 (+0100) Subject: lattice/diamond/tcl: always use / separators, even on windows X-Git-Tag: 24jan2021_ls180~884 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc607f022a7ebbf41803c49426ce4ab58d350d68;p=litex.git lattice/diamond/tcl: always use / separators, even on windows --- diff --git a/litex/build/lattice/diamond.py b/litex/build/lattice/diamond.py index f4f06166..624495ae 100644 --- a/litex/build/lattice/diamond.py +++ b/litex/build/lattice/diamond.py @@ -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")