• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. Test point has poly under it

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 126
  • Views 13858
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Test point has poly under it

DaveDesigner
DaveDesigner over 16 years ago

I am looking at specific origin points of labels, x~>xy

I want to do a simple test which would look at this point and see if it is on top of the POLY dg layer. The POLY dg layer would be at a different level of hierarchy.

 Thank you if you are able to suggest an option. I am stuck.

 

  • Cancel
Parents
  • skillUser
    skillUser over 16 years ago

     Hi Dave,

    I think that you should be able to find a solution by using the dbGetOverlaps() SKILL function.  In using your example, you might do something like the following (NOTE this is untested, off the top of my head, so may well need modification to get it to work):

    ;; 20 is the depth through the hierarchy to check, adjust as necessary
    ;; use the point xy twice to make the search bBox

    shapes = dbGetOverlaps(x~>cellView list(x~>xy x~>xy) list("POLY" "drawing") list(0 20))
    ;; check at this level of hierarchy, is there at least one shape that is on POLY drawing?
    labelOnPoly = exists(shape shapes shape~>layerName=="POLY" && shapes~>purpose=="drawing")
    ;; check at other levels of hierarchy, is there at least one shape in any
    ;; of the levels of hierachy that is on the POLY drawing layer?

    unless(labelOnPoly
      labelOnPoly = exists(shapeList shapes
        exists(shape cdr(shapeList) shape~>layerName=="POLY" && shapes~>purpose=="drawing"))
    ); unless

    dbGetOverlaps will either return a list of shapes or a list of lists (I think, again this is off the top of my head), so we check the list, and if this returns nil (i.e. no shapes on POLY dg at this level of hierarchy) then we check the other levels. The list of lists format (from memory) starts with the dbId of the cellview that the shapes were found in and the rest of the list will be the shapes, hence the use of cdr to remove the first item from the list. I hope this is correct and does what you want it to!

    Regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • skillUser
    skillUser over 16 years ago

     Hi Dave,

    I think that you should be able to find a solution by using the dbGetOverlaps() SKILL function.  In using your example, you might do something like the following (NOTE this is untested, off the top of my head, so may well need modification to get it to work):

    ;; 20 is the depth through the hierarchy to check, adjust as necessary
    ;; use the point xy twice to make the search bBox

    shapes = dbGetOverlaps(x~>cellView list(x~>xy x~>xy) list("POLY" "drawing") list(0 20))
    ;; check at this level of hierarchy, is there at least one shape that is on POLY drawing?
    labelOnPoly = exists(shape shapes shape~>layerName=="POLY" && shapes~>purpose=="drawing")
    ;; check at other levels of hierarchy, is there at least one shape in any
    ;; of the levels of hierachy that is on the POLY drawing layer?

    unless(labelOnPoly
      labelOnPoly = exists(shapeList shapes
        exists(shape cdr(shapeList) shape~>layerName=="POLY" && shapes~>purpose=="drawing"))
    ); unless

    dbGetOverlaps will either return a list of shapes or a list of lists (I think, again this is off the top of my head), so we check the list, and if this returns nil (i.e. no shapes on POLY dg at this level of hierarchy) then we check the other levels. The list of lists format (from memory) starts with the dbId of the cellview that the shapes were found in and the rest of the list will be the shapes, hence the use of cdr to remove the first item from the list. I hope this is correct and does what you want it to!

    Regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information