vivado: support phys_opt

This commit is contained in:
Robert Jordens 2015-04-03 14:55:23 -06:00 committed by Sebastien Bourdeauducq
parent 9506f69390
commit aac953dd90
1 changed files with 3 additions and 0 deletions

View File

@ -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))