| ||
/*批量修改cell的名字*/ procedure( cellRename() let((mySpecSrc mySpecDst) inPort = infile( "inputfile path" ) ;读取输入文件,里面包含需要修改的 cell 名字和新名字 oldcellList = list () newcellList = list () when( while(fscanf(inPort "%s %s" l r) oldcellList = append1(oldcellList l) newcellList = append1(newcellList r) ;println(oldcellList) ;println(newcellList) );end while close (inPort) );end when num = length(oldcellList) for (i 0 num-1 X = nth(i oldcellList) Y = nth(i newcellList) mySpecDst = gdmCreateSpec( "Library_name" Y "layout(可不写)" nil "CDBA" ) ccpRename(mySpecSrc mySpecDst t 'CCP_EXPAND_ALL ' CCP_UPDATE_DESTLIB_ONLY) );end for );end let );end proc |