I want to get instances present in top cell.
Not only top level instances,it has to search instances present in top to bottom level.
How to get all those instances names.
Here with i had wriiten a code to get it,but i am able to trace it out onlu top level instances cell names only.
How to get instances cell Names present one level down.
procedure(grep_instance(libname instname)let((instId cv)port = outfile("rpt.txt")libId=ddGetObj(libname)foreach(cells libId~>cellsif((cv=dbOpenCellViewByType(libname cells~>name "layout" nil "r")) theninstId=setof(x cv~>instances (x~>cellName == instname))if(instId != nil thenfprintf(port "\n***INFO:Instance : %s found in CELL : %s \n" instname cells~>name));end ifdbClose(cv));endif);end foreachclose(port));end let);end procedure
Thanks and regards
For a comprehensive way of doing something similar, which supports both a view-list based approach, and use of a config (which is more complex), see sourcelink solution number 11300048 (just search for the number).
Assuming you're talking about a schematic, for example. With layout it's easier because you don't need to do any view switching. A simple recursive function can achieve it with layout. Even with schematics, it's easy if you've just got a view list. Only configs make it more complex (because you need to honour the rules specified in the config).