• 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 Design
  3. Circular arrays in layout L

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 125
  • Views 3312
  • 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

Circular arrays in layout L

rb1993
rb1993 over 1 year ago

Hello all, 

I am new to cadence platform. I have an entity (linear array of rectangles) that I want to replicate in a circular form (say 10 degrees apart). create an array that follows a circular path around origin. What is a quick and easy way to do this? 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 1 year ago

    You'd need a short piece of SKILL code to do this easily (you could do it manually, but placing 36 instances would be a bit tricky). The first thing to be aware of is that instances can only be placed at 90 degree multiples (and a flip), but this can be worked around by using dbCreateXformPCell. Here's an example I quickly did. Firstly I created a layout called "metarray" with the structures I wanted to have arrayed:

    Then I created a "layout_xform" view - the benefit is that when you instantiate this, you can specify a "mag" (magnification) and "angle" - it generates a PCell that flattens the contents and then changes the scale and orientation by an arbitrary angle (in degrees). I called this with the above layout open:

    dbCreateXformPCell(geGetEditCellView() "mylib")

    Then I used this SKILL code:

    defMathConstants('CCFgenCircle)
    procedure(CCFgenCircle(@key (cv geGetEditCellView()) (radius 20.0) 
        (step 10.0) lib cell 
        (view "layout_xform") (origin 0:0))
      let((master x y (angle 0.0) rads)
        master=dbOpenCellViewByType(lib cell view)
        while(angle<360
          rads=angle/180.0*CCFgenCircle.PI
          x=cos(rads)*radius+xCoord(origin)
          y=sin(rads)*radius+yCoord(origin)
          dbCreateParamInst(cv master "" x:y "R0" 1 
            list(list("angle" "float" angle)))
          angle+=step
        )
      )
    )

    With a new layout open (mylib/circarray/layout) I then ran in the CIW (with the circarray window the current window):

    CCFgenCircle(?lib "mylib" ?cell "metarray")

    This uses the default origin (0:0), radius (20) and step (10), but you could call CCFgenCircle(?lib "play45" ?cell "metarray" ?radius 30.0 ?step 20) if you wanted something different.

    The result of the above is:

    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