set j_TL 0
set j_TSL 0
set j_TR 0
set j_TL [sizeof_collection [get_cells -hier -filter "ref_name =~ *TL_*" ] ]
set j_TSL [sizeof_collection [get_cells -hier -filter "ref_name =~ *TSL_*" ] ]
set j_TR [sizeof_collection [get_cells -hier -filter "ref_name =~ *TR_*" ] ]
set j_total [expr $j_TL + $j_TSL + $j_TR ]
set j_total [expr $j_total + 0.0]
puts "VT\tCount\tPercentage"
puts "TL:\t$j_TL\t[format %.4f [expr $j_TL/$j_total ] ]\nTSL:\t$j_TSL\t[format %.4f [expr $j_TSL/$j_total ] ]\nTR:\t$j_TR\t[format %.4f [expr $j_TR/$j_total ] ]"
|