Skip to content

Commit 366ff49

Browse files
authored
Merge pull request #1870 from Pinata-Consulting/resize-log-cleanup
resize: less noisy and easier to read logs
2 parents af59d9e + b1f08dc commit 366ff49

File tree

1 file changed

+5
-22
lines changed

1 file changed

+5
-22
lines changed

flow/scripts/resize.tcl

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,15 @@ utl::set_metrics_stage "placeopt__{}"
22
source $::env(SCRIPTS_DIR)/load.tcl
33
load_design 3_3_place_gp.odb 2_floorplan.sdc
44

5-
proc print_banner {header} {
6-
puts "\n=========================================================================="
7-
puts "$header"
8-
puts "--------------------------------------------------------------------------"
9-
}
10-
115
estimate_parasitics -placement
126

13-
147
utl::push_metrics_stage "placeopt__{}__pre_opt"
158
source $::env(SCRIPTS_DIR)/report_metrics.tcl
169
report_metrics 3 "resizer pre" false false
1710
utl::pop_metrics_stage
1811

19-
print_banner "instance_count"
20-
puts [sta::network_leaf_instance_count]
21-
22-
print_banner "pin_count"
23-
puts [sta::network_leaf_pin_count]
24-
25-
puts ""
12+
set instance_count_before [sta::network_leaf_instance_count]
13+
set pin_count_before [sta::network_leaf_pin_count]
2614

2715
set_dont_use $::env(DONT_USE_CELLS)
2816

@@ -74,18 +62,13 @@ repair_tie_fanout -separation $tie_separation $tiehi_pin
7462

7563
# post report
7664

77-
print_banner "report_floating_nets"
65+
puts "Floating nets: "
7866
report_floating_nets
7967

8068
source $::env(SCRIPTS_DIR)/report_metrics.tcl
8169
report_metrics 3 "resizer" true false
8270

83-
print_banner "instance_count"
84-
puts [sta::network_leaf_instance_count]
85-
86-
print_banner "pin_count"
87-
puts [sta::network_leaf_pin_count]
88-
89-
puts ""
71+
puts "Instance count before $instance_count_before, after [sta::network_leaf_instance_count]"
72+
puts "Pin count before $pin_count_before, after [sta::network_leaf_pin_count]"
9073

9174
write_db $::env(RESULTS_DIR)/3_4_place_resized.odb

0 commit comments

Comments
 (0)