From: Robert Jordens Date: Fri, 3 Apr 2015 20:55:23 +0000 (-0600) Subject: vivado: support phys_opt X-Git-Tag: 24jan2021_ls180~2099^2~129 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aac953dd9035ba2fb19d2df2acc2afa2dbac11f6;p=litex.git vivado: support phys_opt --- diff --git a/mibuild/xilinx/vivado.py b/mibuild/xilinx/vivado.py index 809312b1..065552e5 100644 --- a/mibuild/xilinx/vivado.py +++ b/mibuild/xilinx/vivado.py @@ -70,6 +70,7 @@ class XilinxVivadoToolchain: self.bitstream_commands = [] self.additional_commands = [] self.pre_synthesis_commands = [] + self.with_phys_opt = False def _build_batch(self, platform, sources, build_name): tcl = [] @@ -82,6 +83,8 @@ class XilinxVivadoToolchain: tcl.append("report_utilization -hierarchical -file %s_utilization_hierarchical_synth.rpt" %(build_name)) tcl.append("report_utilization -file %s_utilization_synth.rpt" %(build_name)) tcl.append("place_design") + if self.with_phys_opt: + tcl.append("phys_opt_design -directive AddRetime") tcl.append("report_utilization -hierarchical -file %s_utilization_hierarchical_place.rpt" %(build_name)) tcl.append("report_utilization -file %s_utilization_place.rpt" %(build_name)) tcl.append("report_io -file %s_io.rpt" %(build_name))