set j_block_list "top/module1 top/module2 top/module3"
foreach j_obj0 $j_block_list {
set j_area_sum 0.0
foreach_in_collection j_obj [get_flat_cells -hier -all -filter "design_type != macro" $j_obj0/* ] {
set j_area_sum [expr $j_area_sum + [get_attr $j_obj area ] ]
}
set j_inst_count [sizeof_coll [get_flat_cells -hier -all -filter "design_type != macro" $j_obj0/* ] ]
puts "$j_obj0 std area is : $j_area_sum"
puts "$j_obj0 std count is : $j_inst_count"
puts ""
set j_area_sum 0.0
foreach_in_collection j_obj [get_flat_cells -hier -all -filter "design_type == macro" $j_obj0/* ] {
set j_area_sum [expr $j_area_sum + [get_attr $j_obj area ] ]
}
set j_inst_count [sizeof_coll [get_flat_cells -hier -all -filter "design_type == macro" $j_obj0/* ] ]
puts "$j_obj0 ram area is : $j_area_sum"
puts "$j_obj0 ram count is : $j_inst_count"
puts "\n"
}
|