From cc607f022a7ebbf41803c49426ce4ab58d350d68 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 1 Nov 2019 10:11:12 +0100 Subject: [PATCH] lattice/diamond/tcl: always use / separators, even on windows --- litex/build/lattice/diamond.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/build/lattice/diamond.py b/litex/build/lattice/diamond.py index f4f06166b..624495aef 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")