• 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. Get database IDs for items in a flattened mosaic

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 144
  • Views 13355
  • 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

Get database IDs for items in a flattened mosaic

LongTimeNovice
LongTimeNovice over 10 years ago

Hello, all.

Is it possible to get the database IDs for all the items in a mosaic that I just flattened?  So if a mosaic had 6 instances, I would want the IDs for those 6 after I flatten the mosaic.  I should say that my ultimate goal is to select those 6 instances, and I assume the way to do that is to determine their IDs and then select by ID, but if that's not the correct way, or if there's a better way, please let me know.

Thank you very much!

Steven.

  • Cancel
  • theopaone
    theopaone over 10 years ago

    Not an easy task as the dbFlattenInst only returns t or nil. You could do the following:

    Find the instance header for the mosaic and cache all the instances before flattening.

    mosaicIH = mosaicId~>instHeader

    curInstances = mosaicIH~>instances

    After the flattening (only flatten one level), the new instances are added to the instance header.

    newInstances = setof( inst mosaicIH~>instances !(member inst curInstances))

    You may be able to use memq instead of member for higher performance.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • LongTimeNovice
    LongTimeNovice over 10 years ago

    theopaone!  That's exactly what I needed.  I've been struggling for days with this.  Thank you!

    • 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