@@ -85,6 +85,7 @@ void RepairSetup::init()
8585 logger_ = resizer_->logger_ ;
8686 dbStaState::init (resizer_->sta_ );
8787 db_network_ = resizer_->db_network_ ;
88+ initial_design_area_ = resizer_->computeDesignArea ();
8889}
8990
9091bool RepairSetup::repairSetup (const float setup_slack_margin,
@@ -1809,13 +1810,13 @@ void RepairSetup::printProgress(const int iteration,
18091810 if (start && !end) {
18101811 logger_->report (
18111812 " Iter | Removed | Resized | Inserted | Cloned | Pin |"
1812- " WNS | TNS | Viol | Worst" );
1813+ " Area | WNS | TNS | Viol | Worst" );
18131814 logger_->report (
18141815 " | Buffers | Gates | Buffers | Gates | Swaps |"
1815- " | | Endpts | Endpt" );
1816+ " | | | Endpts | Endpt" );
18161817 logger_->report (
18171818 " -----------------------------------------------------------"
1818- " ----------------------------------------" );
1819+ " --------------------------------------------------- " );
18191820 }
18201821
18211822 if (iteration % print_interval_ == 0 || force || end) {
@@ -1830,15 +1831,19 @@ void RepairSetup::printProgress(const int iteration,
18301831 itr_field = " final" ;
18311832 }
18321833
1834+ const double design_area = resizer_->computeDesignArea ();
1835+ const double area_growth = design_area - initial_design_area_;
1836+
18331837 logger_->report (
1834- " {: >9s} | {: >7d} | {: >7d} | {: >8d} | {: >6d} | {: >5d} | {: >8s} "
1835- " | {: >10s} | {: >6d} | {}" ,
1838+ " {: >9s} | {: >7d} | {: >7d} | {: >8d} | {: >6d} | {: >5d} "
1839+ " | {: >+7.1f}% | {: >8s} | {: > 10s} | {: >6d} | {}" ,
18361840 itr_field,
18371841 removed_buffer_count_,
18381842 resize_count_,
18391843 inserted_buffer_count_ + split_load_buffer_count_ + rebuffer_net_count_,
18401844 cloned_gate_count_,
18411845 swap_pin_count_,
1846+ area_growth / initial_design_area_ * 1e3 ,
18421847 delayAsString (wns, sta_, 3 ),
18431848 delayAsString (tns, sta_, 1 ),
18441849 max (0 , num_viols),
@@ -1848,7 +1853,7 @@ void RepairSetup::printProgress(const int iteration,
18481853 if (end) {
18491854 logger_->report (
18501855 " -----------------------------------------------------------"
1851- " ----------------------------------------" );
1856+ " --------------------------------------------------- " );
18521857 }
18531858}
18541859
0 commit comments