热度 1| |
procedure(inst_all_cells(libname)
let((cv libid is_cell_there x width)
x=0.0
cv=getEditRep()
libid=ddGetObj(libname)
foreach(cell libid~>cells~>name
printf("Working on %L\n" list(libname cell))
is_cell_there = ddGetObj(libname cell "layout")
if(is_cell_there then
xcv = dbOpenCellViewByType(libname cell "layout" "maskLayout" "r")
when(xcv
width=rightEdge(xcv)-leftEdge(xcv)
dbCreateInst(cv xcv "" list(x 0) "R0")
x=x+width
)
dbClose(xcv)
)
)
)
)