build/xilinx/vivado: Insert the yosys call into script_content only when synth_mode == yosys

This commit is contained in:
Gwenhael Goavec-Merou 2022-08-05 14:51:39 +02:00
parent ae8deda186
commit ae44b70833
1 changed files with 3 additions and 1 deletions

View File

@ -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)