• 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. Accessing results database from a command line Spectre ...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 144
  • Views 5370
  • 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

Accessing results database from a command line Spectre simulation

AB_1716362704952
AB_1716362704952 over 1 year ago

Hello again,

I am currently setting up some simulations which I plan to automate by running directly from my Linux terminal using spectre commands. I do this by simply running spectre on an input.scs netlist file. I have tested that this method runs and generates a results database file "input.raw". My problem is however, is that I am unsure what the appropriate way of accessing this file is:

I have so far managed to get access to the file from CIW using axlOpenResDB("path to raw file"), but past that I seem to be hitting a wall. I found some threads referencing something similar here , but the difference I have to that scenario is that I am not using Ocean to run the simulation, hence I am unsure if there is an ocean session for me to refer to when handling the results database. Additionally, by checking what is included inside by results database object using

axlOpenResDB("path to raw file")->?,

I find that I do not have the "points" variable that the mentioned thread talks about using. There are objects for "results" and something similar, which initially seemed promising, but ended up just being nil's when checked for example via

car(axlOpenResDB("path to raw file")->results()), which should return me the first value in the list, if there is anything in it.

I have manually checked from ViVA that there are indeed valid results available in my results database, yet I am unable to access them at the moment.

Any help with this would be greatly appreciated.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 1 year ago

    You're using the APIs to open the ADE XL/Explorer/Assembler result database - which contains the information about what was simulated (corners, sweeps, etc) plus the evaluated scalar results. If you're running Spectre standalone, you won't get any of this.

    If you want to open the raw waveform data, you use the OCEAN openResults() function, then functions like selectResult('tran) and outputs(), then v(), i(), getData(). See the OCEAN reference manual for details. You don't need to have run the simulation with OCEAN to use OCEAN functions to read the results.

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • AB_1716362704952
    AB_1716362704952 over 1 year ago in reply to Andrew Beckett

    Hi Andrew,

    Thank you so much, it was much more simple than I thought. I was under the false impression that I could only access the results stored in psf/"test_name"/psf using this method, I must've gotten confused from reading too much about the raw database commands in the documentation. The results in the mentioned folder were not updating as a result of my simulation, so I assumed the basic commands were out of the question. Now I realize I was wrong.

    Thank you a lot for your help, as always.

    • 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