• 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. Short locator between 2 nets.

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 144
  • Views 14258
  • 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

Short locator between 2 nets.

Chin Cypress
Chin Cypress over 15 years ago

 Hi Friends

               I am trying to find short between 2 nets (Eg: VDD & VSS). I created the GUI in that we can feed the value of net name as in the layout. But l want to zoom to the shorted co-ordinates as a result . Even if its shorted in 1 or more locations I need to record those co-ordinates and zoom in to it.

 I was trying with the bbox but i could not end up with solution. Please i need some suggestion on this.

 

 

-Chin

  • Cancel
Parents
  • ahamlett
    ahamlett over 15 years ago
    Oh sorry I didn't understand the question at first. This code should help you. I've also attached it because I can't format it correctly here.

    procedure( myGUI()
    let( (myChoices pinObjects)
    myChoices = list("PIN1" "PIN2")
    pinObjects = getMyPinObjects() ; you have to write this function to return a list of pins in the same order as myChoices list
    hiCreateAppForm(
    ?name 'myForm
    ?formTitle "Example"
    ; ?buttonLayout 'Empty
    ?dontBlock t
    ?fields list(
    list(hiCreateLabel(?name 'label ?labelText "Click a pin below to zoom to it in layout") 0:0 1:10 10)
    list(hiCreateListBoxField(
    ?name 'pin
    ?choices myChoices
    ?valueByPosition t
    ?changeCB "myZoom(pinObjects)"
    ?CBOnReselect t
    ) 0:30 750:(cadr(hiGetMaxScreenCoords()) / 2))
    )
    ?initialSize t
    )
    hiDisplayForm(myForm)
    )
    )

    procedure( myZoom(pinObjects)
    let( (cvId bBox)
    cvId = hiGetCurrentWindow()->cellView
    if(dbobjectp(cvId) then
    bBox = nth(sub1(myForm->pin->value) pinObjects)->fig->bBox ; this is the bBox of the selected pin's figure
    hiZoomIn(cvId bBox) ; zoom to the selected pin
    else
    printf("Error: current window is not a cell view\n")
    )
    )
    )
    example.il
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • ahamlett
    ahamlett over 15 years ago
    Oh sorry I didn't understand the question at first. This code should help you. I've also attached it because I can't format it correctly here.

    procedure( myGUI()
    let( (myChoices pinObjects)
    myChoices = list("PIN1" "PIN2")
    pinObjects = getMyPinObjects() ; you have to write this function to return a list of pins in the same order as myChoices list
    hiCreateAppForm(
    ?name 'myForm
    ?formTitle "Example"
    ; ?buttonLayout 'Empty
    ?dontBlock t
    ?fields list(
    list(hiCreateLabel(?name 'label ?labelText "Click a pin below to zoom to it in layout") 0:0 1:10 10)
    list(hiCreateListBoxField(
    ?name 'pin
    ?choices myChoices
    ?valueByPosition t
    ?changeCB "myZoom(pinObjects)"
    ?CBOnReselect t
    ) 0:30 750:(cadr(hiGetMaxScreenCoords()) / 2))
    )
    ?initialSize t
    )
    hiDisplayForm(myForm)
    )
    )

    procedure( myZoom(pinObjects)
    let( (cvId bBox)
    cvId = hiGetCurrentWindow()->cellView
    if(dbobjectp(cvId) then
    bBox = nth(sub1(myForm->pin->value) pinObjects)->fig->bBox ; this is the bBox of the selected pin's figure
    hiZoomIn(cvId bBox) ; zoom to the selected pin
    else
    printf("Error: current window is not a cell view\n")
    )
    )
    )
    example.il
    • 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