Merge pull request #1549 from antmicro/msieron/vivado-verilog-include-paths-fix

build/xilinx/vivado: fix verilog include paths
This commit is contained in:
enjoy-digital 2023-01-02 18:22:27 +01:00 committed by GitHub
commit 19e0e2fe8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ class XilinxVivadoToolchain(GenericToolchain):
tcl.append("\n# Synthesis\n")
synth_cmd = f"synth_design -directive {self.vivado_synth_directive} -top {self._build_name} -part {self.platform.device}"
if self.platform.verilog_include_paths:
synth_cmd += f" -include_dirs \{{" ".join(self.platform.verilog_include_paths)}\}"
synth_cmd += f" -include_dirs {{{' '.join(self.platform.verilog_include_paths)}}}"
tcl.append(synth_cmd)
elif self._synth_mode == "yosys":
tcl.append("\n# Read Yosys EDIF\n")