• 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. Allegro X PCB Editor
  3. Dangling Via Report

Stats

  • State Suggested Answer
  • Replies 11
  • Answers 3
  • Subscribers 162
  • Views 8606
  • Members are here 0
More Content

Dangling Via Report

karthikeyank
karthikeyank over 2 years ago

HI,

i want to find out the dangling via location by using cadence skill program. Can anyone please help me out.

prog;

procedure(chk()
axlClearSelSet()
axlSetFindFilter(?enabled `("NOALL" "VIAS") ?onButtons `("VIAS"))
via_data = axlGetSelSet(axlAddSelectAll())
foreach(via_data_lp via_data
                     if(via_data_lp->unconnected then
                       print(via_data_lp->net->name)
                       print(via_data_lp->xy)
                      )
)
)

  • Sign in to reply
  • Cancel
  • luanvn81
    0 luanvn81 over 2 years ago

    Hi karthikeyank

     You can find dangling via by using tool\report\Dangling Line, Via and Antenna Report. You can also create code to do it, but I think there is not via's attribute named "unconnected". 

    Luan

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • AsbjornEdvalds
    0 AsbjornEdvalds over 2 years ago

    Hi, 

    Like Luan said, you can get this report from the report menu. However, if you want to do this by using skill, you can use the axlDBGetConnect() command. 

    I.e. replace your

    via_data_lp->unconnected

    with

    length(axlDBGetConnect(via_data_lp t))<2

    which finds all vias with less than two connections

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • karthikeyank
    0 karthikeyank over 2 years ago in reply to AsbjornEdvalds

    Thanks you..

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • karishma
    0 karishma over 1 year ago in reply to AsbjornEdvalds

    length(axlDBGetConnect(via_data_lp t))<2 using this code I was able to get the vias with single connection. When I try this code the dangling vias are getting deleted but some unintentional vias are also getting deleted. I want to find the list of dangling vias from the vias list and delete them.If any suggestions .Please help me.

    foreach(via l_vias
        len = length(axlDBGetConnect(via)); connections connected to via
        if(len == 1 then ; checks if via has 1 connection
                if(via->net->name != nil then ;checks if via has net name
                      via_loc = via->xy
                      axlDeleteObject(via)
                  );endif
           );endif
    );end foreach

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • luanvn81
    0 luanvn81 over 1 year ago in reply to karishma

    Hi guy!

    Try this :
    axlCmdRegister( "dvr" `dvr) ;dangling_via_report
    (defun dvr ()
    originalVisible = axlVisibleGet()
    designName = axlCurrentDesign()
    design_path = axlGetDrawingName()
    design_unit = car(axlDBGetDesignUnits())
    Drc = 0

    axlSetFindFilter(?enabled '(noall VIAS) ?onButtons '(noall VIAS))
    l_vias = axlGetSelSet(axlAddSelectAll())
    axlClearSelSet()

    writeOutFile = outfile("./dangling_via_report.log" "w")
    fprintf(writeOutFile, "Design name: %s\n", design_path)
    fprintf(writeOutFile, "%s %s\n", "Date: ", timeToString(fileTimeModified("dangling_via_report.log")))
    fprintf(writeOutFile, "%s\n", "-------------------------------------------------------------------------------------------------")
    fprintf(writeOutFile "%-24s %-24s %-20s\n\n", "Via_NetName", "Via name", "Location")

    foreach(via l_vias
    if(length(axlDBGetConnect(via t)) == 1 && via->net->name != nil then ; checks if via has 1 connection
    ;axlDeleteObject(via)
    fprintf(writeOutFile, "%-24s %-24s %L \n", via->net->name, via->name, via->xy)
    Drc = Drc + 1
    );endif

    Luan
    );end foreach

    fprintf(writeOutFile "END OF FILE\n")
    close(writeOutFile)

    if(Drc > 0 then
    logWindow = axlUIViewFileCreate("dangling_via_report.log", "antenna via report..." nil )
    else
    axlUIConfirm( "No Error found.")
    printf("No error found\n")
    if(isFile("dangling_via_report.log") == t then deleteFile("dangling_via_report.log"));end if
    ); end if count_drc
    );end defun dvr

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
>
Cadence Guidelines

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