• 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 24973
  • 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
  • richardyuan
    richardyuan over 11 years ago
    Hi  Andrew,
     
    I used the code below to make my pCell. I don't know why it doesn't work well for some special division of 360 degree.
     
     
    pcDefinePCell(list(ddGetObj("TTA") "ycRotate" "layout") 
        (   (p2_r1 float 300.0)    
    (p2_gapl float 280.0)
    (p2_gapa float 70.0)
    (p2_gapb float 25.0)

    (SETS int 20)

        ) 
        let((i x0 div_angle p2_base p2_rect p2_gap yctView
    pcInst  pcParameters pcParamProp pcLayer pcPurpose 
    ) ;local parameters 

    (pcLib = (pcCellView~>lib)) 

    ;Retrieve pCell parameters
    (pcParameters = ((pcCellView~>parameters)~>value)) 
    (pcPurpose = "drawing") 
    div_angle = 360/SETS

    (p2_base = dbCreateEllipse(pcCellView 
    list(4 pcPurpose) 
    list(((-p2_r1):(-p2_r1)) (p2_r1:p2_r1))
       )) 

    (p2_rect = dbCreateRect(pcCellView 
    list(64 pcPurpose) 
    list((p2_gapl:(-p2_gapb)) ((p2_gapl + 2*p2_gapa):p2_gapb))
       ))  
    yctView = dbOpenCellViewByType("Mic" "YCTemp" "layout" "maskLayout" "s")
    p2_gap = dbCopyFig(p2_rect yctView)

    for(i 2 SETS
    dbTransformCellView(yctView 1 div_angle)
    dbCopyFig(p2_gap pcCellView)
    ); for i
    dbClose(yctView)
        ); let
             
    ); Pcell define

    • rotate.jpg
    • View
    • Hide
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • richardyuan
    richardyuan over 11 years ago
    Hi  Andrew,
     
    I used the code below to make my pCell. I don't know why it doesn't work well for some special division of 360 degree.
     
     
    pcDefinePCell(list(ddGetObj("TTA") "ycRotate" "layout") 
        (   (p2_r1 float 300.0)    
    (p2_gapl float 280.0)
    (p2_gapa float 70.0)
    (p2_gapb float 25.0)

    (SETS int 20)

        ) 
        let((i x0 div_angle p2_base p2_rect p2_gap yctView
    pcInst  pcParameters pcParamProp pcLayer pcPurpose 
    ) ;local parameters 

    (pcLib = (pcCellView~>lib)) 

    ;Retrieve pCell parameters
    (pcParameters = ((pcCellView~>parameters)~>value)) 
    (pcPurpose = "drawing") 
    div_angle = 360/SETS

    (p2_base = dbCreateEllipse(pcCellView 
    list(4 pcPurpose) 
    list(((-p2_r1):(-p2_r1)) (p2_r1:p2_r1))
       )) 

    (p2_rect = dbCreateRect(pcCellView 
    list(64 pcPurpose) 
    list((p2_gapl:(-p2_gapb)) ((p2_gapl + 2*p2_gapa):p2_gapb))
       ))  
    yctView = dbOpenCellViewByType("Mic" "YCTemp" "layout" "maskLayout" "s")
    p2_gap = dbCopyFig(p2_rect yctView)

    for(i 2 SETS
    dbTransformCellView(yctView 1 div_angle)
    dbCopyFig(p2_gap pcCellView)
    ); for i
    dbClose(yctView)
        ); let
             
    ); Pcell define

    • rotate.jpg
    • 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