vivado: support phys_opt
authorRobert Jordens <jordens@gmail.com>
Fri, 3 Apr 2015 20:55:23 +0000 (14:55 -0600)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Sat, 4 Apr 2015 11:00:22 +0000 (19:00 +0800)
mibuild/xilinx/vivado.py

index 809312b1042a5cc9a98b4aa028861993adbb929b..065552e5f3113ad395cf3cb3c655210c984c03b8 100644 (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))