• 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. BB Via Net name report

Stats

  • Replies 2
  • Subscribers 160
  • Views 13103
  • Members are here 0
More Content

BB Via Net name report

vimaldevlpr
vimaldevlpr over 6 years ago

Hai,

I  want to get bb via net name report i used some codes but it shows all present via i want only bb via can you please re correct the code i will attach the code below.

axlCmdRegister( "ViaReport" `ViaReport)
(defun ViaReport ()
; Find all of the vias in the design
allViasInDesign=list()
originalVisible=axlVisibleGet()
designName = axlCurrentDesign()
axlVisibleDesign(t)
axlShell("redisplay")
axlSetFindFilter(?enabled '(noall vias) ?onButtons '(noall vias))
allViasInDesign=axlGetSelSet(axlAddSelectAll())
axlClearSelSet()
; Open a file to work on
if(length(allViasInDesign)==0
then
axlUIConfirm("No vias in this design. Please try another design.")
else
writeOutFile = outfile("./DesignViaReport.csv" "w")
fprintf(writeOutFile strcat("Design Via Report for " designName "\n\n"))
fprintf(writeOutFile "Via Location,Via Net Name,Padstack Name,Via Start
Layer,Via End Layer\n")
; Output data for each via to the file
foreach(via allViasInDesign
viaLocation = sprintf(nil "%L:%L" car(via->xy) cadr(via->xy))
fprintf(writeOutFile strcat(viaLocation ","))
fprintf(writeOutFile strcat(via->net->name ","))
fprintf(writeOutFile strcat(via->name ","))
fprintf(writeOutFile strcat(car(via->startEnd) ","))
fprintf(writeOutFile strcat(cadr(via->startEnd) "\n"))
);end foreach via allViasInDesign
; Close the file and wrap up
fprintf(writeOutFile "END OF FILE")
close(writeOutFile)
axlVisibleSet(originalVisible)
axlShell("redisplay")
axlUIConfirm( "Report has been generated in your working directory." )
; This next line launches Excel and displays the report
axlHttp("DesignViaReport.csv")
);end if length(allViasInDesign)==0
);end defun myCompanyViaReport

Its shows all but i want only bb via can any one please re correct the code.

  • Sign in to reply
  • Cancel
Parents
  • DavidJHutchins
    DavidJHutchins over 6 years ago

    try changing the output section of your code to the following to not output vias spanning from Top to Bottom:

    foreach(via allViasInDesign
    when(or(not(nindex(car(via->startEnd) axlConductorTopLayer())) not(nindex(cadr(via->startEnd) axlConductorBottomLayer())))
    viaLocation = sprintf(nil "%L:%L" car(via->xy) cadr(via->xy))
    fprintf(writeOutFile strcat(viaLocation ","))
    fprintf(writeOutFile strcat(via->net->name ","))
    fprintf(writeOutFile strcat(via->name ","))
    fprintf(writeOutFile strcat(car(via->startEnd) ","))
    fprintf(writeOutFile strcat(cadr(via->startEnd) "\n"))
    );end when via span not Top to Bottom
    );end foreach via allViasInDesign

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • DavidJHutchins
    DavidJHutchins over 6 years ago

    try changing the output section of your code to the following to not output vias spanning from Top to Bottom:

    foreach(via allViasInDesign
    when(or(not(nindex(car(via->startEnd) axlConductorTopLayer())) not(nindex(cadr(via->startEnd) axlConductorBottomLayer())))
    viaLocation = sprintf(nil "%L:%L" car(via->xy) cadr(via->xy))
    fprintf(writeOutFile strcat(viaLocation ","))
    fprintf(writeOutFile strcat(via->net->name ","))
    fprintf(writeOutFile strcat(via->name ","))
    fprintf(writeOutFile strcat(car(via->startEnd) ","))
    fprintf(writeOutFile strcat(cadr(via->startEnd) "\n"))
    );end when via span not Top to Bottom
    );end foreach via allViasInDesign

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • vimaldevlpr
    vimaldevlpr over 6 years ago in reply to DavidJHutchins

    Thanks a lot..

    • Cancel
    • Vote Up 0 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