• 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 SKILL
  3. determine if an object is part of a ROD

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 13954
  • 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

determine if an object is part of a ROD

drdanmc
drdanmc over 7 years ago

Is there a clean way to tell if a shape in a cellview is part of a ROD (actually MPP is what I'm interested in but other forum answers talk about that piece).

foreach(fig cv->shapes

  when(shape_is_part_of_rod(fig)    ;; <--- any simple way to do this?

    printf("I am a %L that is part of a ROD\n", fig->objType)

  )

)

I can picture some crazy things like making a table that I populate with all shapes by iterating on RODs and then subShapes and then see if a given figure ID is found in that big table but that seems like a lot of work for a simple check.

Thanks

-Dan

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago

    Hi Dan,

    I don't think there is a simple function to do this. I searched back and found I'd answered this as follows for a customer a few years ago:

    The only way I can think of doing this is to do something like:

    procedure(abIsObjPartOfMPP(obj)
      (rodGetObj(obj) || exists(rodId rodGetNamedShapes(obj~>cellView)
        member(obj rodId~>subShapes)
      )) && t
    )

    If doing this repeatedly, it would probably be more efficient to cache all the subShapes in a table so you can use a hash lookup instead of using member (which will be less efficient). But I'll leve that as an exercise for you!

    Regards,

    Andrew.

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • drdanmc
    drdanmc over 7 years ago in reply to Andrew Beckett

    Thanks.  I ended up iterating over the MPPs and then over the subShapes and put them in a table to be able to lookup the dbID of the main MPP from any of the sub shapes.

    -Dan

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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