• 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 24979
  • 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

    Your code has two sources of rounding errors.

    The first is that you compute the angle as 360/SETS. Since SETS is an integer, and 360 is a literal integer, this is an integer division. So if SETS is 19, this ends up with an angle of 18 rather than 18.94. If you change the expression to 360.0/SETS then this will eliminate this source of rounding error.

    The second (much smaller) source is that each time it does a transform cellview, copies the figure and then transforms again. At each transform there will be a small rounding error of each point in the transformed shape to snap it to the database units used because of the resolution of the database. Because you are doing a series of transformations, each starting from the result of the previous transformation, these small errors will accumulate. They may be small enough that you can ignore, but the approach I showed was to transform from the original shape each time and vary the angle each time (so the first rotates by angle, second by 2*angle and so on) and so the small rounding errors would not accumulate.

    Kind Regards,

    Andrew 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Your code has two sources of rounding errors.

    The first is that you compute the angle as 360/SETS. Since SETS is an integer, and 360 is a literal integer, this is an integer division. So if SETS is 19, this ends up with an angle of 18 rather than 18.94. If you change the expression to 360.0/SETS then this will eliminate this source of rounding error.

    The second (much smaller) source is that each time it does a transform cellview, copies the figure and then transforms again. At each transform there will be a small rounding error of each point in the transformed shape to snap it to the database units used because of the resolution of the database. Because you are doing a series of transformations, each starting from the result of the previous transformation, these small errors will accumulate. They may be small enough that you can ignore, but the approach I showed was to transform from the original shape each time and vary the angle each time (so the first rotates by angle, second by 2*angle and so on) and so the small rounding errors would not accumulate.

    Kind Regards,

    Andrew 

    • 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