• 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. Write "Net Single Pin and No Pin" Allegro report into a...

Stats

  • Replies 6
  • Subscribers 158
  • Views 5521
  • Members are here 0
More Content

Write "Net Single Pin and No Pin" Allegro report into a spreadsheet

BinduSripad
BinduSripad over 9 years ago

Hello All,

I am trying to read "Net Single Pin and No Pin" report from Reports menu in APD. And write this report into a spreadsheet. I recorded an Allegro script (macro) to write the report to a desired folder. But could not find a way to write this report to an xls file.

What would be the best way to go about this? Is there an axl function or SKILL code to access the existing Allegro reports?

Thanks,

Bindu

  • Sign in to reply
  • Cancel
  • BinduSripad
    BinduSripad over 9 years ago

    All,  

    I found a solution for this.

    Firstly, I assumed there would be a view in ‘%CDSROOT%/share/pcb/text/views’ directory associated with all Allegro (built-in/hard-coded) reports. And I could just extract this view into a text file. But this is not true.

    So, I recorded a macro (Allegro script) to open this report and save it as a text file. And then embedded the macro in my code as follows:

    _singlePinNetFile = outfile("singlePinNet.scr") 

    fprintf(_singlePinNetFile "scriptmode +w +i\n")
    fprintf(_singlePinNetFile "setwindow pcb\n")
    fprintf(_singlePinNetFile "reports \"Net Single Pin and No Pin\"\n")
    fprintf(_singlePinNetFile "setwindow text\n")
    fprintf(_singlePinNetFile "save\n")
    fprintf(_singlePinNetFile "fillin \"Single_Pin_Net.txt\"\n")
    fprintf(_singlePinNetFile "setwindow text\n")
    fprintf(_singlePinNetFile "close\n")

    close(_singlePinNetFile)

    ;Run the script 
    axlShell("replay singlePinNet")

    I then wrote some SKILL code to read the text file and write it to a spreadsheet.

    Thanks,

    Bindu

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • BinduSripad
    BinduSripad over 9 years ago

    Hello,

    There is one other (simpler) approach I found:

     If you type “report” in Operating system prompt, the list of all the Allegro reports and their code name is displayed as shown in the attached image.

    Then using “report –v  <code name of report>  <design name>  <name of output text file>” in this window, you can export the report into a text file.

    Example - report -v waived_drc test.brd waived_drc_report.txt

    Unfortunately, the report I am looking for (Net Single Pin and No Pin) is not listed here and I had to use the Allegro script.

     

    Thanks,

    Bindu

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Kirti Sikri
    Kirti Sikri over 9 years ago

    Skill Command axlReportList Lists all the SKILL reports registered to the Allegro PCB Editor report interface. Even if you

    do not register any reports, Allegro PCB Editor registers default reports written in SKILL.

    On running the skill command

    Skill > axlReportList()
    (("cmdRptIslands" "Shape Islands" "Shape Island Report")
    ("cmdRptNetless" "Shape No Net" "Shape Without Net Report")
    ("cmdRptShapeState" "Shape Dynamic State" "Dynamic Shape State Report")
    ("cmdSymbolCheck" "Symbol Availability Check" "Symbol Availability Check")
    ("cmdOnePinNetReport" "Net Single Pin and No Pin" "Single and No Pin Net Report")
    )

    To run report "Net Single Pin and No Pin"  you need to call skill command cmdOnePinNetReport

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • BinduSripad
    BinduSripad over 9 years ago

    Thanks.

    I read about axlReportList in the manual before I tried anything else. But the report callback, "cmdOnePinNetReport", can not be used in the 'report' command (I mentioned in my post) to save the report to a text file.

    Since my work involves saving the report and not just viewing it, I had to use a different approach.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Kirti Sikri
    Kirti Sikri over 9 years ago
    I didn't use "cmdOnePinNetReport" in report command. On just using function "cmdOnePinNetReport" I was able to get single_pin_net.rpt written in current folder.
    • 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