• 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. For rotation of any polygon in layout which is made by SKILL...

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 125
  • Views 6088
  • 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

For rotation of any polygon in layout which is made by SKILL IDE

Upendra Ch
Upendra Ch over 2 years ago

I have written a skill code as 

pcDefinePCell(list(ddGetObj("designFlow") "Four_leaf_1" "layout")

cv= geGetWindowCellView()

rodCreatePolygon(

?cvId cv

?layer list("M9" "drawing")

?pts list(

10:10

20:20

30:20

40:10

);listEnd

);polygonEnd

)

now i want to rotate this polygon by 45, 90 or any other angle by incorporating the code in skill code. how can i?

Regards

Upendra

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

    Upendra,

    In this simple case, you could call dbTransformCellView(cv 1 45) at the end of the PCell code. If you need to rotate just a single polygon, then you'd end up having to do the maths to do the transformation (for 90 degree you could use dbMoveFig, but for 45 degrees it would need a bit of maths).

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • Upendra Ch
    Upendra Ch over 2 years ago in reply to Andrew Beckett

    Thank you for your response however on writing this code like this

    pcDefinePCell(list(ddGetObj("designFlow") "Four_leaf_1" "layout")

    cv= geGetWindowCellView()

    rodCreatePolygon(

    ?cvId cv

    ?layer list("M9" "drawing")

    ?pts list(

    10:10

    20:20

    30:20

    40:10

    );listEnd

    );polygonEnd

    )

    dbTransformCellView(cv 1 45)

    i am getting following error.

    *Error* dbTransformCellView: argument #1 should be a database object (type template = "dnn") at line 17 of file "/home/Downloads/Document_5" - nil

    and also if i have two polygon in the code and only one i want to rotate then dbTransformCellView is still work for single polygon or it will work as a whole.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Upendra Ch
    Upendra Ch over 2 years ago in reply to Andrew Beckett

    Thank you for your response however on writing this code like this

    pcDefinePCell(list(ddGetObj("designFlow") "Four_leaf_1" "layout")

    cv= geGetWindowCellView()

    rodCreatePolygon(

    ?cvId cv

    ?layer list("M9" "drawing")

    ?pts list(

    10:10

    20:20

    30:20

    40:10

    );listEnd

    );polygonEnd

    )

    dbTransformCellView(cv 1 45)

    i am getting following error.

    *Error* dbTransformCellView: argument #1 should be a database object (type template = "dnn") at line 17 of file "/home/Downloads/Document_5" - nil

    and also if i have two polygon in the code and only one i want to rotate then dbTransformCellView is still work for single polygon or it will work as a whole.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to Upendra Ch

    Ah, sorry, I didn't notice the mistake in your original code. You can't use geGetWindowCellView() in a PCell - that will return nil, most likely, and rodCreatePolygon will automatically pick up the correct cellView if nil is passed.

    Instead of doing that, remove the cv=geGetWindowCellView, and then in the rest of the code instead of using cv, use pcCellView which is automatically defined within the body of a pcDefinePCell() call. So something like this (your parentheses were in the wrong place too - the transform needs to be inside the body of the pcDefinePCell, which it wasn't in your case):

    pcDefinePCell(list(ddGetObj("designFlow") "Four_leaf_1" "layout")
      rodCreatePolygon(
        ?cvId pcCellView
        ?layer list("M9" "drawing")
        ?pts list(
          10:10
          20:20
          30:20
          40:10
        );listEnd
      );polygonEnd
      dbTransformCellView(pcCellView 1 45)
    )

    If you have two polygons and only want to rotate one of them, you could draw the one you want to rotate first, then dbTransformCellView, then draw the second polygon that you don't want to rotate. Or you could draw all the polygons you want to rotate first, do the transform cellView, then all the rest.

    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