• 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 the overlap area of adjacent metals in single hiera...

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 144
  • Views 17344
  • 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 the overlap area of adjacent metals in single hierarchy

naresh9005
naresh9005 over 6 years ago

Hi 

we are trying to find the overlapping area of adjacent metals(i.e metal1 to metal2, and metal2 to metal3 and so on ) in a single hierarchy.

we are using "dbLayerStraddl()"  function but it is creating a new shape over the first input layer list. but we required the only common area between the two layers.

please help with this problem .

procedure(metalOverlap()
prog( ()
cv=geGetEditCellView()

layer1=list()
layer2=list()

foreach(a cv~>shapes
when(a~>layerName == "MET2"
layer1=cons(a layer1)
)
when(a~>layerName == "MET3"
layer2=cons(a layer2)
)
)
ov=dbLayerStraddl(cv "POLY" layer1 layer2)
)
)
hiSetBindKey("Layout" "ShiftCtrl<Key>q" "metalOverlap()")

  • Cancel
Parents
  • Kevin Earls
    Kevin Earls over 6 years ago

    I will give you some ideas with the following. It doesn't handle metal in vias or other non-metal shapes.

    ;get met1 shapes
    met1list = list() (foreach shape (setof s dbGetOverlaps(cellView cellView~>bBox) car(s~>lpp)=="METAL1") met1list = cons(shape met1list))

    ;get met2 shapes
    met2list = list() (foreach shape (setof s dbGetOverlaps(cellView cellView~>bBox) car(s~>lpp)=="METAL2") met2list = cons(shape met2list))
     
    ;create scratchcell for dbLayerAnd - you can use the existing cellView if it is editable but you
    ; have to keep track of the created shapes and remove them. Using a scratchcell is easier.
    scratchcell = dbOpenCellViewByType(cellLib cellName "layout_scratch" "maskLayout" "s")

    ; find overlaps and create a TEXT layer for each overlap
    newlayers = dbLayerAnd(scratchcell list("TEXT" "drawing") met1list met2list)
    (foreach shape newlayers
        (printf "%L\n" shape~>bBox)
    )   

    ;delete scratch cell
    ddDeleteObj(ddGetObj(scratchcell~>libName scratchcell~>cellName scratchcell~>viewName))

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Kevin Earls
    Kevin Earls over 6 years ago

    I will give you some ideas with the following. It doesn't handle metal in vias or other non-metal shapes.

    ;get met1 shapes
    met1list = list() (foreach shape (setof s dbGetOverlaps(cellView cellView~>bBox) car(s~>lpp)=="METAL1") met1list = cons(shape met1list))

    ;get met2 shapes
    met2list = list() (foreach shape (setof s dbGetOverlaps(cellView cellView~>bBox) car(s~>lpp)=="METAL2") met2list = cons(shape met2list))
     
    ;create scratchcell for dbLayerAnd - you can use the existing cellView if it is editable but you
    ; have to keep track of the created shapes and remove them. Using a scratchcell is easier.
    scratchcell = dbOpenCellViewByType(cellLib cellName "layout_scratch" "maskLayout" "s")

    ; find overlaps and create a TEXT layer for each overlap
    newlayers = dbLayerAnd(scratchcell list("TEXT" "drawing") met1list met2list)
    (foreach shape newlayers
        (printf "%L\n" shape~>bBox)
    )   

    ;delete scratch cell
    ddDeleteObj(ddGetObj(scratchcell~>libName scratchcell~>cellName scratchcell~>viewName))

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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