set total [llength [dbget top.insts.isphysOnly 0]]
set svt [llength [dbget [dbget top.insts.isphysOnly 0 -p].cell.name *CPD]]
set lvt [llength [dbget [dbget top.insts.isphysOnly 0 -p].cell.name *CPDLVT]]
set ulvt [llength [dbget [dbget top.insts.isphysOnly 0 -p].cell.name *CPDULVT]]
expr $svt / $total.0 (svt比例)
expr $lvt / $total.0 (lvt比例)
expr $ulvt / $total.0 (ulvt比例)
expr $total - $lvt - $svt - $hvt (如果库里只有3种类型,这个值等于mem数量)
foreach i [dbget [dbget top.insts.isphysOnly 0 -p].cell.name] {
if {![regexp CPD|CPDLVT|CPDULVT $i]} {
echo $i
}
}