• 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 copy and rotate a shape with special angle like 30...

Stats

  • Locked Locked
  • Replies 12
  • Subscribers 144
  • Views 24961
  • 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 copy and rotate a shape with special angle like 30 degree in skill coding?

richardyuan
richardyuan over 11 years ago

Hello, 

I failed to search the manual and the forum to find a way to copy and rotate a shape I created with any agle like 15, 30, 45 etc.

I noticed some posts said that rotate with any angle may raise lithography issues. But in MEMS application, it's very popular to use all kinds of "strange" shapes. As the line/space is over 1um, the litho problem can be neglected. Then, what can I do in skill code?

 Thanks. 

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    I'm guessing that you're rotating each shape incrementally, which would mean you accumulate rounding errors. You didn't share your code, so that's purely a guess.

    I wrote the following:

    procedure(CCFcreateRotatedShape(cv layerName angle inner outer width)
        let((tempCv)
            tempCv=dbOpenCellViewByType(cv~>libName cv~>cellName "scratch" "maskLayout" "w")
            dbCreateRect(tempCv layerName list(inner:-width/2.0 outer:width/2.0))
            dbTransformCellView(tempCv 1.0 angle)
            foreach(shape tempCv~>shapes
                dbCopyFig(shape cv list(0:0 "R0" 1))
            )
            dbClose(tempCv)
            t
        )
    )

    procedure(CCFrotateExample(@key (cv geGetEditCellView()) (spines 20) (inner 25) (outer 45) (width 4)
                (layer1 "Metal3") (layer2 "Metal2"))
        let((radius)
            radius=(inner+outer)/2.0
            dbCreateEllipse(cv layer1 list(-radius:-radius radius:radius))
            for(i 0 sub1(spines)
                CCFcreateRotatedShape(cv layer2 i*360.0/spines inner outer width)
            )
        )
    )

    And then ran (using gpdk090):

    CCFrotateExample(?spines 19 ?layer1 "Via2" ?layer2 "Via5")

    (purely to get some pretty colours). As you can see, this looks pretty evenly spaced and the shapes look regular:

    The setup has 2000 DBUPerUU so has a good level of resolution - I don't know what your database resolution is compared with the size of your structure.

    Regards,

    Andrew.

    • cartwheel.png
    • View
    • Hide
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    I'm guessing that you're rotating each shape incrementally, which would mean you accumulate rounding errors. You didn't share your code, so that's purely a guess.

    I wrote the following:

    procedure(CCFcreateRotatedShape(cv layerName angle inner outer width)
        let((tempCv)
            tempCv=dbOpenCellViewByType(cv~>libName cv~>cellName "scratch" "maskLayout" "w")
            dbCreateRect(tempCv layerName list(inner:-width/2.0 outer:width/2.0))
            dbTransformCellView(tempCv 1.0 angle)
            foreach(shape tempCv~>shapes
                dbCopyFig(shape cv list(0:0 "R0" 1))
            )
            dbClose(tempCv)
            t
        )
    )

    procedure(CCFrotateExample(@key (cv geGetEditCellView()) (spines 20) (inner 25) (outer 45) (width 4)
                (layer1 "Metal3") (layer2 "Metal2"))
        let((radius)
            radius=(inner+outer)/2.0
            dbCreateEllipse(cv layer1 list(-radius:-radius radius:radius))
            for(i 0 sub1(spines)
                CCFcreateRotatedShape(cv layer2 i*360.0/spines inner outer width)
            )
        )
    )

    And then ran (using gpdk090):

    CCFrotateExample(?spines 19 ?layer1 "Via2" ?layer2 "Via5")

    (purely to get some pretty colours). As you can see, this looks pretty evenly spaced and the shapes look regular:

    The setup has 2000 DBUPerUU so has a good level of resolution - I don't know what your database resolution is compared with the size of your structure.

    Regards,

    Andrew.

    • cartwheel.png
    • View
    • Hide
    • 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