I'm interested in writing a SKILL code that calculates local density of any layers specified based on bbox given. I'm wondering what is the best way to achieve this. The function will be given a cellview, bbox, and layers to be processed. For example, getLocalDensity(d_cellview, l_bBox, l_layers)"
Based on the bbox, the code needs to identify all the objects such as instances, pcells, shapes, vias etc. within the bbox and calculate the total areas of the layers given in argument.
Since we have to do this hierarchically, I need some advice on which API functions will give me the best performance and allows me to get all the objects within that bbox through the hierarchy.
Thanks for sharing any insights into this kind of operation!