Home > Community > Forums > Custom IC SKILL > how to get instance name info from its bounding box

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 how to get instance name info from its bounding box 

Last post Thu, Mar 12 2009 12:00 PM by Austin CAD Guy. 2 replies.
Started by ramya 06 Mar 2009 04:22 AM. Topic has 2 replies and 1726 views
Page 1 of 1 (3 items)
Sort Posts:
  • Fri, Mar 6 2009 4:22 AM

    • ramya
    • Not Ranked
    • Joined on Wed, Feb 11 2009
    • Posts 9
    • Points 180
    how to get instance name info from its bounding box Reply

    Hi,

    I have bounding box details of an instance . can i get instance information from its bounding box?

    • Post Points: 20
  • Fri, Mar 6 2009 6:37 AM

    • Anton
    • Not Ranked
    • Joined on Thu, Oct 30 2008
    • Columbia, MD
    • Posts 6
    • Points 105
    Re: how to get instance name info from its bounding box Reply

    If this bBox is of the instance at the current level of hierarchy, you can search the instances for a matching bBox.  Something like:

    setof(inst hiGetCurrentWindow()~>cellView~>instances inst~>bBox==myBoundingBox) 

    If the target bBox is defined at the current level of hierarchy for an instance at a lower level, you can use dbProduceOverlapInst if this is the only instance which occupies the area defined in the bBox, and has the same size bBox, at a certain level of the hierarchy.  I would down size the bBox first so that instances who's bBoxs abut the target one's bBox are not reported.   Or better yet, upsize the center point of the target bBox by one grid.  If multiple instances are found, compare the size of the bBoxs of the found instances to your initial target bBox, or transform the points of the found instances' bBoxes back to the top level to match the target bBox coordinates (this is trickier and only necessary if there could be multiple instances found with the same size bBox, but different origins).  

    If there are multiple instances reported for either of the above 2 methods, you'll need to know something unique about the instance to qualify its selection.  For example part of the instance or cell name, terminal names etc.

    Hope this helps.    

     

    • Post Points: 20
  • Thu, Mar 12 2009 12:00 PM

    Re: how to get instance name info from its bounding box Reply

     You can define the search area as a single point by giving it as the lower left and upper right of the bounding box. This is true of all the db...Overlaps commands:

     

    list( 11.3:2.3 11.3:2.3)

     

    Ted

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by ramya at 06 Mar 2009 04:22 AM. Topic has 2 replies.