• 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 draw a serie of polygons with gradually tilted a...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 14159
  • 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 draw a serie of polygons with gradually tilted angles

yichun
yichun over 14 years ago

 There is a row of "a" rectangle objects (about a few thousands) and a row of "b" rectangle objects. The "a" objects has a pitch distance of 0.5 mm, while the "b" object has a pitch distance of 1mm. I want to connect "a" to "b" using a serie of simple polygons (with a width of 0.2mm).    Is there a program to do this, or I have to draw it one by one manually.  Thanks.

a      a       a        a         a       a         a          a         a    ......

 

  

b            b            b            b              b               b                b               b                b                b  ....       

  • Cancel
Parents
  • skillUser
    skillUser over 14 years ago

    Hi Yichun,

    If you need to connect each "a" to each "b" in turn, then you could create a path for each pair as Tongju suggested, and this is perhaps the best approach, within some kind of "for" loop.  I would not have thought that you would be able to have a connection cell however, since the horizontal distance between "a" and "b" varies.  There are not enough details in your post to know how large each "a" and "b" rectangle are, or their vertical separation, so any code would have to be a guess, but perhaps something like the following:


    astep = 0.5
    bstep = 1.0
    maxy = ??
    miny = ??
    width = 0.2
    sep = 2 * width

    for(i 0 <maxNumOfRects>
    dbCreatePath(geGetEditCellView() "metal1"
    list(astep*i:maxy astep*i:miny+(sep*i)
    bstep*i:miny+(sep*i) bstep*i:miny)
    width
    )
    )

    This assumes that there is enough vertical separation between the "a" and "b" elements to be able to connect them with a single jog only and not short all the connections with one another.  Put in your own appropriate parameters, I just threw this together as a proof of concept, and in my simple test case it worked.

    I hope that this helps you.

    Regards,

    Lawrence

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • skillUser
    skillUser over 14 years ago

    Hi Yichun,

    If you need to connect each "a" to each "b" in turn, then you could create a path for each pair as Tongju suggested, and this is perhaps the best approach, within some kind of "for" loop.  I would not have thought that you would be able to have a connection cell however, since the horizontal distance between "a" and "b" varies.  There are not enough details in your post to know how large each "a" and "b" rectangle are, or their vertical separation, so any code would have to be a guess, but perhaps something like the following:


    astep = 0.5
    bstep = 1.0
    maxy = ??
    miny = ??
    width = 0.2
    sep = 2 * width

    for(i 0 <maxNumOfRects>
    dbCreatePath(geGetEditCellView() "metal1"
    list(astep*i:maxy astep*i:miny+(sep*i)
    bstep*i:miny+(sep*i) bstep*i:miny)
    width
    )
    )

    This assumes that there is enough vertical separation between the "a" and "b" elements to be able to connect them with a single jog only and not short all the connections with one another.  Put in your own appropriate parameters, I just threw this together as a proof of concept, and in my simple test case it worked.

    I hope that this helps you.

    Regards,

    Lawrence

    • 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