• 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. Need help on creating vias with bindkey in IC23.1

Stats

  • Replies 2
  • Subscribers 129
  • Views 214
  • Members are here 0

Need help on creating vias with bindkey in IC23.1

JanD315
JanD315 7 days ago

Hi I used this bk("Layout" "<Key>t" "le0ViaForm->viaMode->value= \"Single\" le0ViaForm->viaSingleModeScrollView->viaDefName->value = \"M2_M1\" leHiCreateVia()") to create via1 in older Virtuoso, it worked well. However, when I use IC23.1, the bindkey opens the "Create Form" GUI before creating a via. And the GUI always use my last choice of vias by default.

Then I write this code to force the form not open. This script works, but the via can only be moved post-drop. I can't pick a point then drop it. Can anyone help me with it? Also, I need help to make a bindkey for stacked via and auto via. Thanks!

defun(placeViaAndDrag (viaName @key (orient "R0") (params nil))
let((win cv tf viaDef pt inst)
win = hiGetCurrentWindow()
cv = geGetEditCellView()
unless(win && cv
error("No active layout window/cellView."))

tf = techGetTechFile(cv)
viaDef = techFindViaDefByName(tf viaName)
unless(viaDef
error(sprintf(nil "ViaDef '%s' not found." viaName)))

pt = geWindowToEditPoint(win hiGetPoint(win))
inst = dbCreateVia(cv viaDef pt orient params)

when(inst
geDeselectAll()
geSelectFig(inst)
leHiMove()
)

printf("Created via: %L\n" inst)
inst 

); let
); defun
hiSetBindKey("Layout" "<Key>t" "placeViaAndDrag(\"M2_M1\")")

  • Cancel
  • Sign in to reply
  • Andrew Beckett
    Andrew Beckett 5 days ago

    The form also appears for me in IC6.1.8.

    This code hopefully does what you want:

    procedure(CCFinitViaForm(viaMode viaDefName @optional keepForm)
      let((viaForm)
        viaForm=leGetTechFormList(techGetTechFile(geGetEditCellView()))->viaForm
        viaForm->viaMode->value=viaMode
        viaForm->viaSingleModeScrollView->viaDefName->value=viaDefName
        when(!keepForm && hiIsFormDisplayed(viaForm)
          hiToggleEnterForm()
        )
      )
    )
    
    procedure(CCFcreateVia(viaMode viaDefName)
      ; Delay completing the form until it's been created and displayed.
      ; This also hides the form after initial display
      hiEnqueueCmd(
        lsprintf("CCFinitViaForm(%L %L)" viaMode viaDefName)
      )
      leHiCreateVia()
    )
    
    hiSetBindKey("Layout" "<Key>t" "CCFcreateVia(\"Single\" \"M2_M1\")")

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • JanD315
    JanD315 4 days ago in reply to Andrew Beckett

    Hi Andrew, it worked. Thank you so much for your help.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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