• 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 fill a bounding box with as many vias as possibl...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 144
  • Views 13962
  • 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 fill a bounding box with as many vias as possible

TauStudent
TauStudent over 12 years ago

Hi,

I have a bounding box of the parallel area between to layers of metal, and i want to create a skill method to fill that area with as many vias as possible.

this is my first attempt to write a skill program, but it seems like a basic operation every skill programmer probably implemented, so before i sit down to wrestle with it i was wondering maybe someone already have an implementation of it to share ?

Thanks for your time.

  • Cancel
Parents
  • TauStudent
    TauStudent over 12 years ago

    I managed to come up with this solution :

    procedure(fillVias(cid bbox viaName)
    let(()
        tf = techGetTechFile(cid)
        viaDef = techFindViaDefByName( tf viaName)
        viaWidth = 2*car(nth(5 viaDef->params)) + car(nth(6 viaDef->params))
        boxWidth = car(cadr(bbox)) - car(car(bbox))
        boxHeight = cadr(cadr(bbox)) - cadr(car(bbox))
        viasPerRow = int(boxWidth/viaWidth)
        viasPerColumn = int(boxHeight/viaWidth)
        spacex = (boxWidth- viaWidth*viasPerRow)/(viasPerRow + 1)
        spacey = (boxHeight- viaWidth*viasPerColumn)/(viasPerColumn + 1)
        x = car(car(bbox))
        y = cadr(car(bbox))

        for( i 0 viasPerRow-1
           for( j 0 viasPerColumn-1
              point = x+ (i+0.5)*viaWidth+ (i+1)*spacex :y+ (j+0.5)*viaWidth+ (j+1)*spacey
              dbCreateVia(cvId viaDef point "R0")
           )
        )
    ))

    It work fine for my needs, assuming the via width = via height

    and from looking at the viaDef object (viaDef->??) it seems that car(nth(6 viaDef->params)) gives the inner square width and

    car(nth(5 viaDef->params)) gives the margin.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • TauStudent
    TauStudent over 12 years ago

    I managed to come up with this solution :

    procedure(fillVias(cid bbox viaName)
    let(()
        tf = techGetTechFile(cid)
        viaDef = techFindViaDefByName( tf viaName)
        viaWidth = 2*car(nth(5 viaDef->params)) + car(nth(6 viaDef->params))
        boxWidth = car(cadr(bbox)) - car(car(bbox))
        boxHeight = cadr(cadr(bbox)) - cadr(car(bbox))
        viasPerRow = int(boxWidth/viaWidth)
        viasPerColumn = int(boxHeight/viaWidth)
        spacex = (boxWidth- viaWidth*viasPerRow)/(viasPerRow + 1)
        spacey = (boxHeight- viaWidth*viasPerColumn)/(viasPerColumn + 1)
        x = car(car(bbox))
        y = cadr(car(bbox))

        for( i 0 viasPerRow-1
           for( j 0 viasPerColumn-1
              point = x+ (i+0.5)*viaWidth+ (i+1)*spacex :y+ (j+0.5)*viaWidth+ (j+1)*spacey
              dbCreateVia(cvId viaDef point "R0")
           )
        )
    ))

    It work fine for my needs, assuming the via width = via height

    and from looking at the viaDef object (viaDef->??) it seems that car(nth(6 viaDef->params)) gives the inner square width and

    car(nth(5 viaDef->params)) gives the margin.

    • 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