Skip to content

Commit

Permalink
build: work around Vivado 2016.4 crash in Verific::veri_file::Include…
Browse files Browse the repository at this point in the history
…FileName
sbourdeauducq committed Jan 25, 2017
1 parent e93d060 commit 3f5a907
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion migen/build/xilinx/vivado.py
Original file line number Diff line number Diff line change
@@ -96,7 +96,11 @@ def _build_batch(self, platform, sources, build_name):

tcl.append("read_xdc {}.xdc".format(build_name))
tcl.extend(c.format(build_name=build_name) for c in self.pre_synthesis_commands)
tcl.append("synth_design -top top -part {} -include_dirs {{{}}}".format(platform.device, " ".join(platform.verilog_include_paths)))
# "-include_dirs {}" crashes Vivado 2016.4
if platform.verilog_include_paths:
tcl.append("synth_design -top top -part {} -include_dirs {{{}}}".format(platform.device, " ".join(platform.verilog_include_paths)))
else:
tcl.append("synth_design -top top -part {}".format(platform.device))
tcl.append("report_utilization -hierarchical -file {}_utilization_hierarchical_synth.rpt".format(build_name))
tcl.append("report_utilization -file {}_utilization_synth.rpt".format(build_name))
tcl.append("place_design")

0 comments on commit 3f5a907

Please sign in to comment.