Quantcast
Channel: Cadence Technology Forums
Viewing all articles
Browse latest Browse all 62808

Forum Post: RE: How to get the cellviews hierachy

$
0
0
Hi wenckey, Code below will get all the instance hierarchy path from top level. Hope it helps. ;procedure(CCFgetInstanceNamesAndCoords(master @optional (transform list(0:0 "R0" 1)) (hierInstPath "/")) procedure(ci() cvId=geGetWindowCellView() csh("touch ./instance_coord.txt") outPort = outfile("./instance_coord.txt") fprintf(outPort "\n Coordinates of instances of %s with a library %s :\n\n" cvId~>cellName cvId~>libName) ctr = 0 procedure(CCFgetInstanceNamesAndCoords(master @optional (transform list(0:0 "R0" 1)) (hierInstPath "/")) foreach(inst master~>instances when(inst~>objType=="inst" ctr = ctr +1 printf("%s%s %L\n" hierInstPath inst~>cellName dbTransformPoint(inst~>xy transform)) fprintf(outPort " %d. %s%s %L\n" ctr hierInstPath inst~>cellName dbTransformPoint(inst~>xy transform)) CCFgetInstanceNamesAndCoords( inst~>master dbConcatTransform(inst~>transform transform) strcat(hierInstPath inst~>cellName "/") ) ) ;when ) t ) CCFgetInstanceNamesAndCoords(cvId) fprintf(outPort " \n\n\n >>" ) fprintf(outPort " \n\n End of instances coordinates list . " ) fprintf(outPort " \n\n >>" ) close( outPort) ;view("./netConnection_layout.txt" list(0:0 500:500) "SCHEMATIC NET CONNECTION") ; edit("./netConnection_layout.txt") ;hiRegTimer("system("open_net_selected")" 100) sleep(3) system("gedit ./instance_coord.txt &") ; End of outport );proc Best regards, Marben

Viewing all articles
Browse latest Browse all 62808

Trending Articles