• 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. Find a overlap of two layers if that layer present in PCell...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 17115
  • 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

Find a overlap of two layers if that layer present in PCell also

Mahesh gunde 1
Mahesh gunde 1 over 8 years ago

Hi all,


I am writing code for two layers overlap.

but got stuck to write full code.

Requirement:

Using layers: "od", "nt_n"

if "od" layer present in pcell and if its overlapping this nt_n which is in shape.


my code:

MARKER_LPP = list("marker" "error")
procedure( ntn_check()
odList   =  setof(i geGetEditCellView()->shapes car(i->lpp)=="od")
ntnList  =  setof(i geGetEditCellView()->shapes car(i->lpp)=="nt_n")
nt_n_var = dbLayerAnd(geGetEditCellView() MARKER_LPP odList ntnList  )
)

This code is checking for only shapes overlap, its ignoring if layers present are in instances.

I want to know if any shapes are overlapping with Pcell layers also.

Kindly help me on this.

Thanks,

Mahesh

  • Cancel
  • skillUser
    skillUser over 8 years ago

    Hi Mahesh,

    You could try the dbGetOverlaps() function:

    dbGetOverlaps( 
      d_cellView
      l_bBox
      [ l_layerPurposePair ]
      [ lx_level ]
      [ g_doRowCol ]
    )

    Returns a list of all the objects (such as, shapes, instances, and mosaics) in a cellview whose bounding boxes overlap the area specified by l_bBox. The overlap includes bounding boxes that are enclosed by, butt against, or intersect with l_bBox. If the object comes from a lower level in the hierarchy, instead of a plain object ID, the object is represented by a list (potentially a nested list, if it comes from more than one level down). Each level of the list has the ID of the instance in the corresponding level in the hierarchy. For example, if there is a rectangle in a master cellview two levels down, for this rectangle, in the top cellview, dbGetOverlaps will return a nested list.

    There are other functions like dbProduceOverlap(), that latter might be simpler than dbGetOverlaps() as it is only concerned with shapes (dbShapeQuery might be worth a look too). Look for examples of these either in this forum or from Cadence's support page.

    I hope this helps!

    Regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Mahesh gunde 1
    Mahesh gunde 1 over 8 years ago

    Hi Lawrence,

    Thanks for your quick response and your comment on this.
    I am extremely sorry to say one main point in this.
    if any two layers overlaps in same instance ignore and any one layer like shape or lpp then it should violate.

    Example:
    both od and nt_n is present in Pcell.
    * od is overlapping with nt_n in cell itself it should not show.

    if od/nt_n shapes are overlapping with pcell layer, then it should show.

    as per your comment everything will show, I need to filter out as I Mentioned *
    please do the needful.

    Thanks,
    Mahesh

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillUser
    skillUser over 8 years ago
    Hi Mahesh,

    I don't fully understand your request, but even if I did this is NOT a customer support site, nor can I do your work for you, but I'm happy to point you in the right direction, which I believe I have done. dbGetOverlaps() will show if a shape is it level 0 or if it is lower in the hierarchy. You will have to work out the logic yourself, sorry.

    By the way, I strongly dislike "please do the needful" - it's not my problem to solve, so I don't 'need' to do anything.

    Best regards,

    Lawrence.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    Mahesh,

    I agree with Lawrence - maybe this is a cultural thing, but (other than it not being standard outside of Indian English) it did suggest that you were expecting Lawrence (who doesn't work for Cadence, just kindly helping out colleagues from other organisations) to solve your problem for you.

    You might want to look at the "abe" (Advanced Boolean Engine) functions, such as abeLayerAnd. These were added in IC617, but I wouldn't use them if you're using the first few ISRs. Probably ISR8 and later (roughly speaking) should be OK, because the interface to them changed slightly because they were inconsistent with other functions in SKILL. The code below however isn't dependent upon any of these arguments that changed. These can find shapes through the hierarchy (the default behaviour) - for example:

    abeInit(geGetEditCellView())
    od=abeLayerFromCellView("od")
    nt_n=abeLayerFromCellView("nt_n")
    overlaps=abeNewLayer()
    abeLayerAndNot(od nt_n overlaps)
    ; or could use abeLayerToHilightSet - see the manual
    abeLayerToCellView(overlaps MARKER_LPP)

    Note, this code has not been tested - it was just to point you in the (possibly) right direction.

    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