From ec80f0fa7e902fc7d5bfef1e76612564d5781927 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 19 Oct 2015 09:40:44 +0800 Subject: [PATCH] build/vivado: quote paths in Tcl (prevents problems with \ on Windows) --- migen/build/xilinx/vivado.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/migen/build/xilinx/vivado.py b/migen/build/xilinx/vivado.py index da2bd7105..76e41d867 100644 --- a/migen/build/xilinx/vivado.py +++ b/migen/build/xilinx/vivado.py @@ -80,8 +80,10 @@ class XilinxVivadoToolchain: def _build_batch(self, platform, sources, build_name): tcl = [] for filename, language, library in sources: - tcl.append("add_files " + filename) - tcl.append("set_property library {} [get_files {}]".format(library, filename)) + filename_tcl = "{" + filename + "}" + tcl.append("add_files " + filename_tcl) + tcl.append("set_property library {} [get_files {}]" + .format(library, filename_tcl)) tcl.append("read_xdc {}.xdc".format(build_name)) tcl.extend(c.format(build_name=build_name) for c in self.pre_synthesis_commands)