• 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. Any Way to identify double hits (Via)?

Stats

  • Replies 36
  • Subscribers 165
  • Views 36135
  • Members are here 0
More Content

Any Way to identify double hits (Via)?

Alice
Alice over 15 years ago

If  on the same net DRC, due to the stack via design. Alot of DRC will apply also.

Is there a way to identify this issue? Pls advice.

 Regards,

Alice

  • Sign in to reply
  • Cancel
  • Romme
    Romme over 15 years ago

    Wouldn't it be easyer to setup drc rules to accept stacked via 's ?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Alice
    Alice over 15 years ago

    My problem is how to detect 2 same via overlap each other but has slight different xy position at same layer?

    These 2 vias have same net. So, if I on the same net drc, I will get alot of drcs.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Alice
    Alice over 15 years ago

    My problem is how to detect 2 same via overlap each other but has slight different xy position at same layer?

    These 2 vias have same net. So, if I on the same net drc, I will get alot of drcs.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 15 years ago

    Hi Alice,

    Here's some code for you to try:

    defun( getDuplicateHoles (locs @key blindBuried, (tol axlMKSConvert(0.2 "mm")))
     let((loc, dupes)
      while(locs
        loc = car(locs), locs = cdr(locs)
        if(blindBuried then
          when(setof(pt, locs, and(cadr(pt) == cadr(loc), samePoint(car(pt), car(loc), tol)))
            dupes = cons(loc, dupes)
          )
         else when(setof(pt, locs, samePoint(pt, loc, tol)), dupes = cons(loc, dupes))
        )
      )
      dupes
    ))

    defun( same (x1, x2 @optional tolp, tolm)
      unless(tolp, tolp = expt(10, -2 - cadr(axlDBGetDesignUnits())))
      cond(
        (!x1 && !x2, t); Both are nil
        (!x1 || !x2, nil) ; One, and only one, is nil
        (!tolm && abs(x1 - x2) > tolp, nil)
        (tolm && x1 - x2 > tolp, nil)
        (tolm && x2 - x1 > tolm, nil)
        (t, t)
      )
    )

    defun( samePoint (pt1, pt2, @optional tolp, tolm)
      unless(tolp, tolp = expt(10, -2 - cadr(axlDBGetDesignUnits())))
      and(same(car(pt1), car(pt2), tolp, tolm), same(cadr(pt1), cadr(pt2), tolp, tolm))
    )

     Cheers, Dave

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Marathon
    Marathon over 15 years ago

    Hi Dave,

    This is exactly the type of issue that I am trying to address - duplicate drills with the exact same xy and touching drills and then create a report file for them. Fab shops desire the report file so they can modify the NC drill file so not to make double or more hits on a single hole. Is it possible for you to expand on your code slightly to create a simple report file? The duplicate drills are also counted in the drill legend, but that is another issue.

    Much appreciated!

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