(对于指定了library的所有cell创建一个spectre的view)
;;; this script used for copy a 'spectre' view from 'symbol' view for a STDCell library
procedure( copyView()
let((inPort cellName cv1 cv2)
inPort = infile( "/home/rhuang5579/work/AF54AFAT/Phy/lvs/CellName.txt" )
while( fscanf( inPort "%s" cellName )
cv1 = dbOpenCellViewByType( "csm18ic" cellName "symbol" "schematicSymbol" "r")
cv2 = dbCopyCellView( cv1 "csm18ic" cellName "spectre" )
dbSave(cv1)
dbClose(cv2)
);while
close( inPort )
);let
);procedure