• 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. Export data to CSV format

Stats

  • Locked Locked
  • Replies 21
  • Subscribers 128
  • Views 56474
  • 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

Export data to CSV format

CPete
CPete over 14 years ago
I'm trying to export I-V curves from the Spectre Simulator into CSV files. However, the save/save as menus only allow for saving the data in a figure-format file or as a PNG/TIFF/Image File. Is there a mode, command, or code sequence that would allow me to export my data to CSV or other data formats readable in Excel? Thank you for your assistance.
  • Cancel
  • skillUser
    skillUser over 14 years ago

     Hi CPete,

    You should be able to use the ocnPrint() command to output tabulated results to a file - look at the Finder (startFinde() in the CIW, or "cdsFinder" at the Unix prompt) for short help, and cdnshelp (or CDSdoc, if using an older release) for the full documentation.  The ocnPrint command can accept a filename which it will write to, and for the input, it could be the named waveform, or perhaps the result of a calculation.  You might need to look at ocnYvsYplot() also?

    Hope this helps!

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    From the results browser you can select the signals in Wavescan and do File->Save Signal. Then you can choose the output to be in CSV, VCSV (additional info added for ViVA's purpose), Matlab, or spectre input format. Alternatively you can send the data to a table and then do File->Save as CSV from the table.

    If you've already plotted the traces and have the waveform window, you can select the traces you want (or do Trace->Select All), and then do Trace->Save and save as CSV, VCSV, Matlab etc.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • CPete
    CPete over 14 years ago

    Thanks guys.  I selected all traces and saved as csv.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RFQuery
    RFQuery over 12 years ago

     Dear Andrew,

    I have multiple trace plotted in Wavescan ( the trace are from multiple simulation run of the sam eschematic and appended on the same wavescan window) . I selected all and then save in spectre.in format.

    When I reload it into nothing came on wave-scan.

    When I saved all trace in VCSV format and reloaded I got only the last trace in the wave scan.

    Could you please tell what is the issue and how it can be solved.

    Kind regards,

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    I don't think re-loading from spectre input format is supported (it's intended to be used as a PWL file for spectre). However, VCSV should work fine - I've tried with both wavescan (from IC5141,  5.10.41.500.6.151) and also with ViVA (from IC615, 6.1.5.500.14), and it works fine in both cases.

    So please explain which version you're using (Help->About will tell you), and precisely what steps you're doing.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RFQuery
    RFQuery over 12 years ago

     Dear Andrew,

    I use IC5141 and MMSIM10 (Version 10.1.1.200.isr13 32bit -- 15 Aug 2011).

    I ran one simulation on trace is plotted on the wavescan.

    Then I chnaged some parameter of the circuit and plotted (appended) on wave scan.

     NOW I selected all and then save in spectre.in format.

    I want to save both the traces to be saved so that I can prcure the wave whenever I want without running the simulation

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    First of all, you'd need to use a vcsv file (not a spectre.in file, as I mentioned before). Then you're hitting the problem that because the signal names are repeated, it only loads one of them (you've effectively got multiple signals with the same name on the graph, and whilst they are named sig<0>, sig<1> etc on the graph, that information is not retained in the file. Even if you edit the name of the signal (double click on the signal and change its name) that is not saved into the VCSV file (this works OK in ViVA in IC615 though).

    So, the solution is to edit the header of the VCSV file after saving, and change the names to be unique (don't use any non-alphanumeric characters in the names to be safe) - so if you see mysig, mysig change it to mysig1, mysig2 for example.

    Then you can load both signals from the VCSV file.

    BTW, it was really the IC5141 subversion I was interested in; the simulator version is irrelevant. However, the key information that was missing before is the fact that you're plotting the same signal more than once from different simulation runs. That's important...

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RFQuery
    RFQuery over 12 years ago

     Dear Andrew,

    Thanks a lot for a clear explanation.

    I did the way you have mentioned and indeed it worked nice.

    I appreciate your help and time.

    Kind Regards,

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • satish chandra
    satish chandra over 12 years ago

     Hi Andrew

     

    When I export two signals of same test bench, from VIva to CSV , I have different X-axis values for the 2 signals. What Should I do so that the two signals are plotted with same X-axis (time sampling) ?

     

    Please do the needful.

    Thanks

    Satish CS

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Satish,

    Not sure which simulator you're using? If using Ultrasim, each node will have different X axis points, whereas spectre should use the same points unless you've used the "compression" option on the transient options form (which causes each signal to have its own X axis, and to only output points when the changes have been significant enough).

    Certainly in IC615 I can also choose to clip the data and specify a from to and interpolation step when I do the export. 

    Andrew.

    • export.png
    • View
    • Hide
    • 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