• 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 Design
  3. how to save spectre simulation results to a single raw file...

Stats

  • Locked Locked
  • Replies 7
  • Subscribers 125
  • Views 2641
  • 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 save spectre simulation results to a single raw file?

Virtuoso7878
Virtuoso7878 6 months ago

in the old version the simulation result is a single raw file,but in the new version 23.1.0.063,the simulation results is a folder name *.raw.

there is any way to save the result to a singe raw file.

  • Cancel
  • Andrew Beckett
    Andrew Beckett 6 months ago

    Spectre has never saved into a single file by default. If you picked the output format to be nutbin or nutascii (e.g. passing -f nutbin or -format nutbin on the command line). Perhaps you were doing that before and not now?

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Virtuoso7878
    Virtuoso7878 6 months ago in reply to Andrew Beckett

    Hi Andrew

    Thanks for your reply.

    i am certain that the older version of spectre will work. After all , we have been using the all along.

    Old version:12.1.0.272

    Execute command “spectre acce110653216.sp -r 11.raw”,the result is a single raw file. As shown below:

    -rw-r--r-- 1 chris model 56230 Feb 17 18:21 11.raw  

    New version :23.1.0.063

    Execute command:“spectre acce110653216.sp –r 22.raw”, the result is a folder named 11.raw. As shown below:

    drwxr-xr-x 2 chris model 4096 Feb 17 2025 22.raw

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett 6 months ago in reply to Virtuoso7878

    I ran an example with the same (over 12 year old) version of Spectre, using a SPICE netlist (just in case that made a difference), and it didn't - I still got the default PSF result (i.e. a directory).

    My guess is that you have an option within the netlist which is setting the output format. Can you share the contents of acce110653216.sp? If you can't share the entire file, I'd still want to see any options or analysis statements within the file. 

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Virtuoso7878
    Virtuoso7878 6 months ago in reply to Andrew Beckett

    HI Andrew

    Due the confidentiality reasons, I can not share this file with you.

    I run command "more acce110653216.sp"

    The content of the first few lines is as follows:

    //** Keysight Inc **//
    simulator lang=spectre
    svop options save=selected rawfmt=nutbin

    parameters vds=2.0
    parameters vgs=1.0
    parameters vbs=0.0

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Virtuoso7878
    Virtuoso7878 6 months ago in reply to Andrew Beckett

    Hi Andrew

    I'm sorry for my previous misrepresentation. What I meant to say is that in the simulation results, "raw" is a single file instead of a generated "raw" directory.

    I followed your previous suggestion and was able to meet my requirements using the following commnd

    spectre -format nutascii acce110653216.sp -r 11.raw

    Is there any way to set the default save format to be the raw file instead of having to add "-format nutascii" every time?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett 6 months ago in reply to Virtuoso7878

    With:

    Virtuoso7878 said:
    svop options save=selected rawfmt=nutbin

    in your netlist, it should be writing a single binary nutmeg format file without needing additional command-line arguments. That's what I see happening with the newer subversion of Spectre you mentioned (23.1.0.063 - I tested it).

    One possibility is that (for some reason) you have the $SPECTRE_DEFAULTS env var overriding this - but perhaps you could share the log file you get from running Spectre with the newer version (that is producing the raw directory) so that I can see if there's any information as to why the rawfmt=nutbin is being superseded?

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Virtuoso7878
    Virtuoso7878 6 months ago in reply to Andrew Beckett

    HI andrew

    Thanks for your help.I check my env var and it was indeedSPECTRE_DEAFULTS env set issue.

    I have already solved my problem. Thanks

    • 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