查找layout view中的隐藏layer
编程
0 字 / 约 0 分钟
2025/8/21
需求原因
- 版图中有不明图形将cell bBox撑的很大,有黑边
strmoutlog中会有类似99:42213的不明layer
分析
- 有的是·
tech-lib更换, 新的tech-lib中有没有定义原有lib中的layer, 这样virtuoso会自动赋值 layerNum 和 purposeNum - 有的是
tech-lib中有定义, 但display中没有定义,也会在 strmout log中报出来
解决
- 针对上面的第二种情况, 在
display中添加tech-lib中的layer就能看到,相对简单;当然也可以直接删除 - 上面第一种情况,可以用脚本
report一下
代码
cadence
lLayerList = '(99 66 23)
libName = "xxxx"
libId = ddGetObj(libName)
allCell = libId~>cells~>name
foreach(cell allCell
cv = dbOpenCellViewByType(libName cell "layout" "maskLayout" "r")
objs = setof(tmp cv~>shapes member(tmp~>layerNum lLayerList))
when(length(objs)>0
foreach(obj objs
printf("%s %ss %L %L\n" cell obj~>objType obj~>bBox obj~>layerNum)
)
)
)