• 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. Get default via spacing and enclosures

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 144
  • Views 15920
  • 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

Get default via spacing and enclosures

TaherKotb
TaherKotb over 12 years ago

Hello,

I use dbCreateVia() function to create vias with variable cut Rows and Columns determined by the width of the path connected to the via in the layout view. In order to compute the cut Rows and Columns i need the via spacing and enclosure as inputs but these variables also change with the cut Rows and Columns values which i don't know.

Is there a skill function which allows to autmatically setup the array-side dependent via spacing rules and enclosures according to the input variable cut Rows and Cloumns? if not, is there any work around.

Thanks in advance 

Best Regards

Taher 

  • Cancel
Parents
  • TaherKotb
    TaherKotb over 12 years ago

    Ted and Derek thanks alot for the reply.

     My problem was how to know via spacing and Enclosures if the inputs were the CutRows and CutColumns to avoid any DRC errors related to Via geometry. I needed the callback functions of the via instantation, which calulates the via spacing and enclosures based on the values of the Rows and Columns, but i could not find them so i figured out that if i used the leHiCreateVia() function then the callbacks function will be encoded automatically. In order to get the values of via parameters, i wrote this code

     ;**********Get Via Params******** 

     leHiCreateVia() ;;opens the create via interface

    viaForm = hiGetCurrentForm()

    viaForm->viaSingleModeScrollView->viaDefName->value=viaDefLayer

    viaForm->viaSingleModeScrollView->parameters->page1->computeEnc->enabled=t

    cutRowsIn = viaForm->viaSingleModeScrollView->parameters->page1->rows->value

    cutColumnsIn = viaForm->viaSingleModeScrollView->parameters->page1->columns->value=cutColumnsIn

    widthIn = viaForm->viaSingleModeScrollView->parameters->page1->width->value

    lengthIn = viaForm->viaSingleModeScrollView->parameters->page1->length->value

    rowSpacingIn = viaForm->viaSingleModeScrollView->parameters->page1->rowSpacing->value

    columnSpacingIn = viaForm->viaSingleModeScrollView->parameters->page1->columnSpacing->value

    layer1EncLeftIn = viaForm->viaSingleModeScrollView->parameters->page1->layer1EncLeft ->value

    layer2EncLeftIn = viaForm->viaSingleModeScrollView->parameters->page1->layer2EncLeft->value

    layer1EncRightIn = viaForm->viaSingleModeScrollView->parameters->page1->layer1EncRight->value

    layer2EncRightIn = viaForm->viaSingleModeScrollView->parameters->page1->layer2EncRight->value

    layer1EncTopIn = viaForm->viaSingleModeScrollView->parameters->page1->layer1EncTop->value

    layer2EncButtomIn = viaForm->viaSingleModeScrollView->parameters->page1->layer1EncButtom->value

    layer2EncTopIn = viaForm->viaSingleModeScrollView->parameters->page1->layer2EncTop->value

    layer2EncButtomIn = viaForm->viaSingleModeScrollView->parameters->page1->layer2EncButtom->value

    hiFormCancel(viaForm)

    viaTotalWidth = cutColumnsIn*widthIn + 2*max( layer1EncLeftIn layer2EncLeftIn ) + columnSpacingIn*(cutColumnsIn-1)

    viaTotalLength = cutRowsIn*lengthIn + 2*max( layer1EncTopIn layer2EncTopIn ) + rowSpacingIn*(cutRowsIn-1)  

    ;;**************END*******************

     ;************Draw Via using above params**************

    d_via = dbCreateVia( CellLayId viaDef XCoordwStep:YCoordwStep "R0" list( list("cutRows" cutRowsIn) list("cutColumns" cutColumnsIn) list("cutSpacing" list(rowSpacingIn columnSpacingIn)) list("layer1Enc" list(layer1EncLeftIn layer1EncTopIn)) list("layer2Enc" list(layer2EncLeftIn layer2EncTopIn)) list("cutWidth" widthIn) list("cutHeight" lengthIn) list("originOffset" list(0 0))))

    ;;***************END********************* 

    So every time i enter a new value for columns( like shown in the code cutColumnsIn ). i save the new params values in variables.

     Hope my findings would help

    Best Regards,

    Taher 

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

    Ted and Derek thanks alot for the reply.

     My problem was how to know via spacing and Enclosures if the inputs were the CutRows and CutColumns to avoid any DRC errors related to Via geometry. I needed the callback functions of the via instantation, which calulates the via spacing and enclosures based on the values of the Rows and Columns, but i could not find them so i figured out that if i used the leHiCreateVia() function then the callbacks function will be encoded automatically. In order to get the values of via parameters, i wrote this code

     ;**********Get Via Params******** 

     leHiCreateVia() ;;opens the create via interface

    viaForm = hiGetCurrentForm()

    viaForm->viaSingleModeScrollView->viaDefName->value=viaDefLayer

    viaForm->viaSingleModeScrollView->parameters->page1->computeEnc->enabled=t

    cutRowsIn = viaForm->viaSingleModeScrollView->parameters->page1->rows->value

    cutColumnsIn = viaForm->viaSingleModeScrollView->parameters->page1->columns->value=cutColumnsIn

    widthIn = viaForm->viaSingleModeScrollView->parameters->page1->width->value

    lengthIn = viaForm->viaSingleModeScrollView->parameters->page1->length->value

    rowSpacingIn = viaForm->viaSingleModeScrollView->parameters->page1->rowSpacing->value

    columnSpacingIn = viaForm->viaSingleModeScrollView->parameters->page1->columnSpacing->value

    layer1EncLeftIn = viaForm->viaSingleModeScrollView->parameters->page1->layer1EncLeft ->value

    layer2EncLeftIn = viaForm->viaSingleModeScrollView->parameters->page1->layer2EncLeft->value

    layer1EncRightIn = viaForm->viaSingleModeScrollView->parameters->page1->layer1EncRight->value

    layer2EncRightIn = viaForm->viaSingleModeScrollView->parameters->page1->layer2EncRight->value

    layer1EncTopIn = viaForm->viaSingleModeScrollView->parameters->page1->layer1EncTop->value

    layer2EncButtomIn = viaForm->viaSingleModeScrollView->parameters->page1->layer1EncButtom->value

    layer2EncTopIn = viaForm->viaSingleModeScrollView->parameters->page1->layer2EncTop->value

    layer2EncButtomIn = viaForm->viaSingleModeScrollView->parameters->page1->layer2EncButtom->value

    hiFormCancel(viaForm)

    viaTotalWidth = cutColumnsIn*widthIn + 2*max( layer1EncLeftIn layer2EncLeftIn ) + columnSpacingIn*(cutColumnsIn-1)

    viaTotalLength = cutRowsIn*lengthIn + 2*max( layer1EncTopIn layer2EncTopIn ) + rowSpacingIn*(cutRowsIn-1)  

    ;;**************END*******************

     ;************Draw Via using above params**************

    d_via = dbCreateVia( CellLayId viaDef XCoordwStep:YCoordwStep "R0" list( list("cutRows" cutRowsIn) list("cutColumns" cutColumnsIn) list("cutSpacing" list(rowSpacingIn columnSpacingIn)) list("layer1Enc" list(layer1EncLeftIn layer1EncTopIn)) list("layer2Enc" list(layer2EncLeftIn layer2EncTopIn)) list("cutWidth" widthIn) list("cutHeight" lengthIn) list("originOffset" list(0 0))))

    ;;***************END********************* 

    So every time i enter a new value for columns( like shown in the code cutColumnsIn ). i save the new params values in variables.

     Hope my findings would help

    Best Regards,

    Taher 

    • 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