|
发表于 2019-1-30 15:12:51
|
显示全部楼层
回复 5# 账户已登录
checkLib.il.txt
(981 Bytes, 下载次数: 31 )
;check one library.
procedure(CheckLib(lib)
foreach(cellID ddGetObj(lib)->cells
cell=celllD->name|
CheckCell(lib cell) ;This function is defined below.
);end foreach
printf("*_* Library %s is finished. ********\n" lib)
);end procedure CheckLib
;check one cell.
procedure(CheckCell(lib cell)
let((cv instID)
printf("*_* Cell: %s begins! \n" cell)
lib_list=list("basic" "analogLib") ;add used library in this list.
when(cv=dbOpenCellViewByType(lib cell "schematic" "" "r")
foreach(instID cv~>instances
unless(member(instID~>libName lib_list)
printf("X*X- %s: %s, refers to unexpected library: %s with cell: %s.\n" cell instID~>name instID~>libName instID~>cellName)
);end unless
);end foreach instID
dbClose(cv)
);end when cv
printf("*_* Cell: %s is finished! \n" cell)
);end let
);end procedure CheckCell |
|