From: Robert Jordens Date: Fri, 3 Apr 2015 20:55:22 +0000 (-0600) Subject: vivado: add support for pre_synthesis_commands X-Git-Tag: 24jan2021_ls180~2099^2~130 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9506f693906a02719155783453f7429eb8929f26;p=litex.git vivado: add support for pre_synthesis_commands --- diff --git a/mibuild/xilinx/vivado.py b/mibuild/xilinx/vivado.py index bb00def9..809312b1 100644 --- a/mibuild/xilinx/vivado.py +++ b/mibuild/xilinx/vivado.py @@ -69,6 +69,7 @@ class XilinxVivadoToolchain: def __init__(self): self.bitstream_commands = [] self.additional_commands = [] + self.pre_synthesis_commands = [] def _build_batch(self, platform, sources, build_name): tcl = [] @@ -76,6 +77,7 @@ class XilinxVivadoToolchain: tcl.append("add_files " + filename.replace("\\", "/")) tcl.append("read_xdc %s.xdc" %build_name) + tcl.extend(c.format(build_name=build_name) for c in self.pre_synthesis_commands) tcl.append("synth_design -top top -part %s -include_dirs {%s}" %(platform.device, " ".join(platform.verilog_include_paths))) tcl.append("report_utilization -hierarchical -file %s_utilization_hierarchical_synth.rpt" %(build_name)) tcl.append("report_utilization -file %s_utilization_synth.rpt" %(build_name))