• 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. how to cut an array of rectangles in a big rectangle?

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 13722
  • 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

how to cut an array of rectangles in a big rectangle?

kentlintu
kentlintu over 8 years ago

Hi All,

I am a newbie to SKILL programming and need help on the following question that seems simple yet getting me stuck for a while. Any help will be appreciated!!

What I am trying to do is simple: I would like to cut several repeated rectangle holes in a rectangle. I have no idea how select the bunch of squares at once and generate the wanted rectangle with holes.

; create the big rectangle

bigrectangle = dbCreateRect(pcCellView mylayer list(0:0 10:5))

; create the array of rectangles

for(i 1 10

xxx = dbCreateRect(pcCellView mylayer list(i*2:4 i*2+1:6)) ;<----------------------------------?? don't know how to  select the rectangle array at once and then eventually delete it after layer generation

)

layerAndNot( pcCellView mylayer list(bigrectangle) list(xxx))

dbDeleteObject(bigrectangle) dbDeleteObject(xxx)

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    Something like this should work:

    ; create the big rectangle
    bigrectangle = dbCreateRect(pcCellView mylayer list(0:0 10:5))

    smallRectList=nil

    ; create the array of rectangles
    for(i 1 10
      smallRectList=cons(
        dbCreateRect(pcCellView mylayer list(i*2:4 i*2+1:6))
        smallRectList
      )
    )

    dbLayerAndNot( pcCellView mylayer list(bigrectangle) smallRectList)

    dbDeleteObject(bigrectangle)
    foreach(smallRect smallRectList
      dbDeleteObject(smallRect)
    )

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • kentlintu
    kentlintu over 8 years ago
    Thanks very much, 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