Merge pull request #1393 from trabucayre/fix_vivado_yosys_synth

build/xilinx/vivado: Insert the yosys call into script_content only when synth_mode == yosys
This commit is contained in:
enjoy-digital 2022-08-05 17:30:14 +02:00 committed by GitHub
commit c4e635ea5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)