I want to derive hirerchial summary of a layout(instance names and mosaics. dbGetTrueOverlaps() gives the data in form of layers(please correct if I am missing anything).
while dbProduceOverlapIns() has no hierarchial option .
Any suggestion or hint willl be of great help.
Using a region query is kind of overkill in that case. You could just write a recursive function to do this - there have been many examples of similar things on this forum before. Since you want instance information, something like:
procedure(MyUntestedLayoutInfo(@optional (cv geGetEditCellView()) (depth 0)) let((format) foreach(inst cv~>instances sprintf(format "%%%ds%%s %%s\n" depth) printf(format "" inst~>name inst~>cellName) MyUntestedLayoutInfo(inst~>master depth+1) ) t ))
Needs a bit of work to handle mosaics (and as the function name suggests, I wrote this off the top of my head and didn't test it)
Hope that helps,
I'm curious, how to save the hierarchical summary file into certain directory?
You'd need to use fprintf() instead of printf() in the code, and pass in an open file handle (as produced by outfile()).