• 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. PCell Designer
  3. Difference function in pcell designer geo query

Stats

  • State Verified Answer
  • Locked Locked
  • Replies 2
  • Subscribers 8
  • Views 9525
  • 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

Difference function in pcell designer geo query

AKMush
AKMush over 2 years ago

Hi,

I wanted to do a simple 'shape A - shape B' operation in PCD's geo query (return shape A with its overlap with shape B removed). I thought the difference function, which has a description:

where an input like

would accomplish this. However, no matter what I do it only seems to return the first shape in it's input list with no modification. Is this more of a list operation and not an explicit shape one?

Additionally, I have found using the landnot(A B) achieves what I wanted, which means this is doing A ∩ not(B), this actually disagrees with its icon which implies (A U B) ∩ not(A ∩ B):

Can I get some clarification on landnot() and difference()? There doesn't seem to be documentation on them (or at least I couldn't find any). Is there comprehensive documentation on PCD?

Thanks!

  • Cancel
Parents
  • Andrew Beckett
    +1 Andrew Beckett over 2 years ago

    As there is a dedicated forum for PCell Designer, I moved this post into that forum.

    You've misunderstood the difference between the "layer" and/or/andnot operators and the "or", "and" and "difference" operators.

    The or/and/difference work by dealing with lists of shapes. It does not consider the portions of shapes that overlap, for example. "or" produces the combined set of shapes - in other words all inputs in a single flat list (so shapes in both inputs only appear once in the output). The "and" produces only those shapes that are in both inputs. The "difference" returns the shapes in the first input which are not in the second input.

    The lor/land/landnot are geometric boolean operators. The first produces geometries that merge the areas of the two inputs. The land only gives you the overlapping regions. The landnot gives you the regions of the first shapes which are not covered by the second shapes. You're reading an awful lot into a tiny icon - given that it can't unambiguously show the two inputs and the output clearly on such a tiny icon, I really can't see how you've come to your conclusion. I see that icon as having the first shape being an "L" shape (rotated by 180 degrees) and the second shape being a square in the top right corner. The red regions are the output of the operation. 

    Maybe this picture (which comes from our training class on PCell Designer) makes it clearer:

    The orange shape is the first input, and the green rectangle is the second input. The white highlight shows you the result of the operation.

    To answer your question on documentation; we have a preliminary (incomplete) reference manual which can be shared through customer support, but we now have somebody in the tech pubs team who is working on completing//editing the reference guide and then creating a user guide after that. These will then end up in the documentation on support.cadence.com - I am hoping that we'll have the reference manual finally ready by the end of the year. In the meantime, please contact customer support and mention this post (give a link to it) and ask that the AE contacts me and then I can share with you the material we have so far Apologies that the documentation has rather lagged behind the development of the tool, but we're finally addressing that.

    Regards,

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    +1 Andrew Beckett over 2 years ago

    As there is a dedicated forum for PCell Designer, I moved this post into that forum.

    You've misunderstood the difference between the "layer" and/or/andnot operators and the "or", "and" and "difference" operators.

    The or/and/difference work by dealing with lists of shapes. It does not consider the portions of shapes that overlap, for example. "or" produces the combined set of shapes - in other words all inputs in a single flat list (so shapes in both inputs only appear once in the output). The "and" produces only those shapes that are in both inputs. The "difference" returns the shapes in the first input which are not in the second input.

    The lor/land/landnot are geometric boolean operators. The first produces geometries that merge the areas of the two inputs. The land only gives you the overlapping regions. The landnot gives you the regions of the first shapes which are not covered by the second shapes. You're reading an awful lot into a tiny icon - given that it can't unambiguously show the two inputs and the output clearly on such a tiny icon, I really can't see how you've come to your conclusion. I see that icon as having the first shape being an "L" shape (rotated by 180 degrees) and the second shape being a square in the top right corner. The red regions are the output of the operation. 

    Maybe this picture (which comes from our training class on PCell Designer) makes it clearer:

    The orange shape is the first input, and the green rectangle is the second input. The white highlight shows you the result of the operation.

    To answer your question on documentation; we have a preliminary (incomplete) reference manual which can be shared through customer support, but we now have somebody in the tech pubs team who is working on completing//editing the reference guide and then creating a user guide after that. These will then end up in the documentation on support.cadence.com - I am hoping that we'll have the reference manual finally ready by the end of the year. In the meantime, please contact customer support and mention this post (give a link to it) and ask that the AE contacts me and then I can share with you the material we have so far Apologies that the documentation has rather lagged behind the development of the tool, but we're finally addressing that.

    Regards,

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Children
  • AKMush
    0 AKMush over 2 years ago in reply to Andrew Beckett

    Hi Andrew,

    Thanks for the quick and detailed explanation, it is clear now.

    I definitely interpreted the smaller icons as two rectangles (one rotated by 90 deg) with their ends overlapping.

    Looking forward to the documentation release!

    • 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