• 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. pcell shapes filtering

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 13417
  • 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

pcell shapes filtering

RAGHU2634
RAGHU2634 over 7 years ago

Hi ,

I started with skill learning

instID~>master~>shapes~>?? gives list of all layers used in p-cell. Now I want to have access to only poly and diffusion layers to read their bBOX.  Is there a way to do this ?

Thanks,

Surya

  • Cancel
  • skillUser
    skillUser over 7 years ago

    Hi Surya,

    You can filter lists using arbitrary criteria with the setof function, e.g. to filter to just get the shapes on the Poly layer:

    polyList = setof(shape instID~>master~>shapes shape~>layerName=="Poly")

    Then from the returned list (could be nil if the shape doesn't exist or if you have the filter incorrectly specified) you can get the bounding box(es) of the shape(s) (i.e. polyList~>bBox). Repeat as needed for other layers etc.  As before you will need to transform the shapes to the instances' coordinate system. Also, be aware that PCells have a 'master' (submaster) for an instance and a supermaster (the PCell master) - in this case I think you want the instances master (what you have) which is a PCell submaster - a particular variant with a specific set of parameters; multiple instances with the same parameters will point to the same submaster, a new submaster is created for each new set of parameters).

    This should get you started.

    Best regards,

    Lawrence.

    • 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