From ae44b7083368fb867aec6e6b08a6dc2f39e1e72c Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Fri, 5 Aug 2022 14:51:39 +0200 Subject: [PATCH] build/xilinx/vivado: Insert the yosys call into script_content only when synth_mode == yosys --- litex/build/xilinx/vivado.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litex/build/xilinx/vivado.py b/litex/build/xilinx/vivado.py index 8c1421bce..8e5d9822c 100644 --- a/litex/build/xilinx/vivado.py +++ b/litex/build/xilinx/vivado.py @@ -348,7 +348,9 @@ class XilinxVivadoToolchain(GenericToolchain): script_contents += "source " + os.path.join(os.getenv("LITEX_ENV_VIVADO"), "settings64.sh\n") script_ext = "sh" - #script_contents += common._build_yosys_project(platform=self.platform, build_name=self._build_name) # FIXME. + if self._synth_mode == "yosys": + script_contents += common._build_yosys_project(platform=self.platform, build_name=self._build_name) + script_contents += "vivado -mode batch -source " + self._build_name + ".tcl\n" script_file = "build_" + self._build_name + "." + script_ext tools.write_to_file(script_file, script_contents)