• 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. Custom IC SKILL
  3. How to read .psf file from Python or MATLAB

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 14491
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to read .psf file from Python or MATLAB

Jian Han
Jian Han over 3 years ago

Hi guys,

I've been using Cadence for awhile and suddenly wanted to explore it to upgrade my skills.

Basically, I want to start by :

  1. using Python (or MATLAB) to excute ADE simulation (with some change in variables if possible)
  2. Read .psf file 
  3. Get waveforms from specifically defined node(s)
  4. And apply calculation if necessary for further data processing

With some research on google, I feel that this is possible, but I cannot find a directly related post on this. And I was hoping for a step-by-step setup, since I think people in the past would've thought of this.

Can anyone suggest me a helpful post or youtube video?

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    There isn't anything that Cadence provides to execute ADE simulations from Python or MATLAB. I'm sure it could be written (probably via OCEAN or maestro function calls in SKILL), and others may have done so, but nothing that I can point you to.

    We do have both a Spectre toolbox for MATLAB which allows you to read PSF (and other formats produced by Spectre) into MATLAB, as well as the ADE MATLAB Integration which allows you to add MATLAB measurements into the ADE outputs (with Explorer/Assembler) and also to invoke MATLAB from within ADE and use it to do data processing (it can access the raw waveform data as well as the scalar measurement results). There's a couple of videos on this on http://support.cadence.com (look in Resources->Video and search for MATLAB) and a Rapid Adoption Kit (similar search but in Resources->Rapid Adoption Kits).

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Jian Han
    Jian Han over 3 years ago in reply to Andrew Beckett

    Hi Andrew, appreciate your response.

    I'm trying to access the link you provided, the website is asking me to provide Host ID or Keys. I'm using Cadence from my work, so I honestly don't know how I can look these up. Can you point me to the right direction?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Jian Han
    Jian Han over 3 years ago in reply to Andrew Beckett

    Hi Andrew, appreciate your response.

    I'm trying to access the link you provided, the website is asking me to provide Host ID or Keys. I'm using Cadence from my work, so I honestly don't know how I can look these up. Can you point me to the right direction?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to Jian Han

    Probably simplest to just ask whoever is responsible for setting up your licenses - it's the hostid of your license server.

    I have asked for a way of determining this from within the tools - there's kind of an undocumented way of doing it which seems to work with modern license server versions (from the command line):

    $CDSHOME/tools/bin/64bit/cds_get_lmhostid -s $CDS_LIC_FILE

    (assuming you have $CDS_LIC_FILE set to specify the "port@hostname" syntax to access your license server). $CDSHOME is the path to your virtuoso installation. This however is not guaranteed to work - my request hasn't been really implemented yet (the ideal approach would be for the license server to be able to tell the client the hostid, but there's no API in the licensing infrastructure to fully achieve that yet).

    Alternatively you need to find the hostname in $CDS_LIC_FILE, ssh/rsh onto it, and then do "lmhostid" to get the license server hostid. Not always that easy if there's more than one MAC address on the machine.

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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