set j_std_count 0
set j_mem_count 0
set j_std_area 0
set j_mem_area 0
set j_current_inst_area 0
foreach_in_collection j_obj [get_flat_cells -hier -all ] {
set j_current_inst_area [get_attr $j_obj area ]
if { [get_attr $j_obj design_type ] == "macro" } {
set j_mem_area [expr $j_mem_area + $j_current_inst_area ]
incr j_mem_count
} else {
set j_std_area [expr $j_std_area + $j_current_inst_area ]
incr j_std_count
}
}
puts "STD count : $j_std_count"
puts "STD area : $j_std_area"
puts "MEM count : $j_mem_count"
puts "MEM area : $j_mem_area"
|