• 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. Snapshot functionality in Cadence Skill

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 14292
  • 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

Snapshot functionality in Cadence Skill

Shubhy
Shubhy over 9 years ago

I'm building a skill code which works like a snapshot. 

There would be some objects(metals, poly, od etc. ) kept on the top level of the cell.

And the user would give a list of bBoxes.

For each bBox acting as a frame of the camera , whatever objects are kept inside that specific area should be copied in a new cell.  

By the word specific I mean if a metal elongates outside a bBox then only that part should be copied which is inside the bBox.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    This sounds like you want to use the yank & paste capabilities in the layout editor. The SKILL functions for these are leYankFigs() and lePasteFigs().

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Shubhy
    Shubhy over 9 years ago

    Thanks Andrew, 

    I was able to figure it out of Yank & paste commands. But there's another issue occurring now.

    If a leafcell / via instance also gets inscribed in the given point array then even that is yanked and pasted. Is there any other way by which we could avoid the instances and only concentrate on the physical layers on top ( like the metals / polys etc. )

    Regards

    Shubham

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    Hi Shubham,

    A couple of approaches you could take:

    1. Use dbGetOverlaps() with 0 as the stop level to identify all the shapes that are within the bBox you are interested. This will include shapes that straddle the bBox too. Iterate through the results (may have to check whether some are instances by looking at the ~>objType) and then use dbCopyFig to copy them to your second cellView. Then in the second cellView, do a yank in the area you wanted, delete all the shapes present, and then paste back into the same cellView.
    2. Create a rectangle in the source cellView with the bBox you want (on some dummy layer). Then iterate through each of the cv~>lpps present in the cellView, and do a dbLayerAnd of each of these sets of shapes with the dummy rectangle, with the output on the same lpp into the new cvId. Once done, delete the dummy rectangle

    I've not actually tried either of these, but I think they should work. I am assuming that dbLayerAnd into a different cellView from the source shapes will work - if it doesn't, you may have to write them into the source cellView and then call dbMoveFig to move them into the new cellView.

    Regards,

    Andrew

    • 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