• 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 Scripting - Skill
  3. Python based scripting on Cadence SPB

Stats

  • State Suggested Answer
  • Replies 14
  • Answers 1
  • Subscribers 19
  • Views 4121
  • Members are here 0
More Content

Python based scripting on Cadence SPB

particlereddy
particlereddy 5 months ago

Hi,

newbie question,

This question might have been asked many times.

[1] I could not find any python script based possibility for DRC check automation scripting using python. Did my homework before asking.

[2] all I see is SKILL based scripting. 

[q1] Please point me to any UserGuide or programming manual in python [if any]?

[q2] Is it possible via C++?

Thanks

  • Cancel
  • Sign in to reply
Parents
  • Hoangkhoipcb
    0 Hoangkhoipcb 5 months ago

    Hi,
    Sure. It work me well.
    I can't upload images on site at the moment.
    Regards,

    HoangKhoi.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Hoangkhoipcb
    0 Hoangkhoipcb 5 months ago

    Hi,
    Sure. It work me well.
    I can't upload images on site at the moment.
    Regards,

    HoangKhoi.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • particlereddy
    0 particlereddy 5 months ago in reply to Hoangkhoipcb

    can you plz point me to any manual, user guide in this regard? did you still end up using SKILL ?

    Thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Hoangkhoipcb
    0 Hoangkhoipcb 5 months ago in reply to particlereddy

    Hi!


    I apologize for the late response

    Examples using a report from Allegro to export DRC to a file (.csv).

    Don't launcher Allegro.
    100% python script.

    code Python

    import subprocess

    input_data = "/path/to/your/file.brd"
    output_csv = "/temp/folder/report_drc.csv" // create before run
    cmd = ["report", "-v", "drc", input_data, output_csv]

    subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

    Regards,

    HoangKhoi

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