• 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. Can we draw mutlipath different width and spacing at the...

Stats

  • Locked Locked
  • Replies 13
  • Subscribers 144
  • Views 19613
  • 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

Can we draw mutlipath different width and spacing at the same time?

Manu81
Manu81 over 16 years ago
Can we draw mutlipath different width and spacing at the same time?
  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    I think this should do what you want (it would have helped if your picture showed what you want, rather than what you're getting, so I had to guess that this was indeed what you want). I've attached two pictures (merged together) showing the original multipart path at the bottom, and then after reshape and stretch. It has Metal1 on the bottom, Metal3 on the top, a strap of via1 and via2 on the gnd at the upper and lower edge, and then 4 tracks in the middle.

    cvId=geGetEditCellView()
    points=list(0:0 40:0)
    mainWidth=1
    mainSpacing=1
    gndWidth=2.0
    gndSpacing=1.5
    nTracks=4
    mainLayer="Metal2"
    bottomLayer="Metal1"
    topLayer="Metal3"
    viaLayer1="Via1"
    viaLayer2="Via2"
    viaWidth=0.5
    viaSpacing=0.5
    
    offsetPaths=nil
    for(i 1 nTracks-1
        offsetPaths=
            cons(
                list(
                    ?layer mainLayer
                    ?width mainWidth
                    ?sep -i*(mainWidth+mainSpacing)
                )
                offsetPaths
            )
    )
    offsetPaths=constar(
        list(
            ?layer mainLayer
            ?width gndWidth
            ?sep mainWidth/2.0+gndSpacing+gndWidth/2.0
        )
        list(
            ?layer mainLayer
            ?width gndWidth
            ?sep -(nTracks-1)*(mainWidth+mainSpacing)-mainWidth/2.0-gndSpacing-gndWidth/2.0
        )
        offsetPaths
    )
    
    subRects=foreach(mapcan viaLayer list(viaLayer1 viaLayer2)
        list(
            list(
                ?layer viaLayer1
                ?width viaWidth
                ?gap 'distribute
                ?space viaSpacing
                ?sep mainWidth/2.0+gndSpacing+gndWidth/2.0
                ?beginOffset -viaSpacing
                ?endOffset -viaSpacing
            )
            list(
                ?layer viaLayer1
                ?width viaWidth
                ?gap 'distribute
                ?space viaSpacing
                ?sep -(nTracks-1)*(mainWidth+mainSpacing)-mainWidth/2.0-gndSpacing-gndWidth/2.0
                ?beginOffset -viaSpacing
                ?endOffset -viaSpacing
            )
        )
    )
    
    topBotWidth=nTracks*(mainWidth+mainSpacing)-mainSpacing+(gndSpacing+gndWidth)*2
    topBotCent=gndWidth+gndSpacing+mainWidth/2.0-topBotWidth/2.0
    
    foreach(topBotLayer list(bottomLayer topLayer)
        offsetPaths=cons(
            list(
                ?layer topBotLayer
                ?width topBotWidth
                ?sep topBotCent
            )
            offsetPaths
        )
    )
    
    rodCreatePath(
        ?cvId  cvId
        ?layer mainLayer
        ?width mainWidth
        ?pts points
        ?offsetSubPath offsetPaths
        ?subRect subRects
    )
    

     

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

    I think this should do what you want (it would have helped if your picture showed what you want, rather than what you're getting, so I had to guess that this was indeed what you want). I've attached two pictures (merged together) showing the original multipart path at the bottom, and then after reshape and stretch. It has Metal1 on the bottom, Metal3 on the top, a strap of via1 and via2 on the gnd at the upper and lower edge, and then 4 tracks in the middle.

    cvId=geGetEditCellView()
    points=list(0:0 40:0)
    mainWidth=1
    mainSpacing=1
    gndWidth=2.0
    gndSpacing=1.5
    nTracks=4
    mainLayer="Metal2"
    bottomLayer="Metal1"
    topLayer="Metal3"
    viaLayer1="Via1"
    viaLayer2="Via2"
    viaWidth=0.5
    viaSpacing=0.5
    
    offsetPaths=nil
    for(i 1 nTracks-1
        offsetPaths=
            cons(
                list(
                    ?layer mainLayer
                    ?width mainWidth
                    ?sep -i*(mainWidth+mainSpacing)
                )
                offsetPaths
            )
    )
    offsetPaths=constar(
        list(
            ?layer mainLayer
            ?width gndWidth
            ?sep mainWidth/2.0+gndSpacing+gndWidth/2.0
        )
        list(
            ?layer mainLayer
            ?width gndWidth
            ?sep -(nTracks-1)*(mainWidth+mainSpacing)-mainWidth/2.0-gndSpacing-gndWidth/2.0
        )
        offsetPaths
    )
    
    subRects=foreach(mapcan viaLayer list(viaLayer1 viaLayer2)
        list(
            list(
                ?layer viaLayer1
                ?width viaWidth
                ?gap 'distribute
                ?space viaSpacing
                ?sep mainWidth/2.0+gndSpacing+gndWidth/2.0
                ?beginOffset -viaSpacing
                ?endOffset -viaSpacing
            )
            list(
                ?layer viaLayer1
                ?width viaWidth
                ?gap 'distribute
                ?space viaSpacing
                ?sep -(nTracks-1)*(mainWidth+mainSpacing)-mainWidth/2.0-gndSpacing-gndWidth/2.0
                ?beginOffset -viaSpacing
                ?endOffset -viaSpacing
            )
        )
    )
    
    topBotWidth=nTracks*(mainWidth+mainSpacing)-mainSpacing+(gndSpacing+gndWidth)*2
    topBotCent=gndWidth+gndSpacing+mainWidth/2.0-topBotWidth/2.0
    
    foreach(topBotLayer list(bottomLayer topLayer)
        offsetPaths=cons(
            list(
                ?layer topBotLayer
                ?width topBotWidth
                ?sep topBotCent
            )
            offsetPaths
        )
    )
    
    rodCreatePath(
        ?cvId  cvId
        ?layer mainLayer
        ?width mainWidth
        ?pts points
        ?offsetSubPath offsetPaths
        ?subRect subRects
    )
    

     

    • MPP.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