• 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 56512
  • 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
  • satish chandra
    satish chandra over 12 years ago

     Thanks a lot Andrew.

    I happen to do this after I mailed you :)

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Milad M
    Milad M over 10 years ago
    Dear Andrew, I need to save the data, which you explained how to save them in waveform window, using command line. Is there any possibilities?
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    Milad,

    Just to make sure I understand, what are you planning to do with this saved data? By "command line", would an OCEAN script be OK?

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Milad M
    Milad M over 10 years ago

    Dear Andrew,

          I am running spectre with an external software (MATLAB). It is done using commands (spectre input.scs) in "Command Window" of MATLAB.

    Since, I want to post process and optimize the Cadence simulation, I need to access the inputs and outputs of the Cadence simulation. The inputs variable and parameters are available in the input.scs file in the netlist root (It will be valuable if you know also how it is possible to change the data of input.scs using commands).

    But, the output.csv should be generated manually as you explained. The problem is that for an optimization, MATLAB will invoke cadence for too many iterations. Therefore, it is impossible to generate the output.csv each time with the mentioned approach. I suppose to use some commands for this job and include them in my MATLAB scripts.

    Regarding to "Ocean Scripts", I don't know what is it. But, if it will help the problem, explain me how.

    Sincerely Yours,

    Milad

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

    Milad,

    Rather than generating a CSV and then reading that into Matlab, it would be far simpler to use the Spectre toolbox for Matlab that is provided in the MMSIM installation. If you run `cds_root spectre`/tools/bin/cdnshelp and search for "Matlab" you'll find info on it.

    This toolbox (using the cds_srr matlab function that we provide) allows you to directly read the simulation results into Matlab without needing to convert them to CSV first.

    That's why I asked - I had a sneaking suspicion that you might want to read it into Matlab...

    The simulation database can contain lots of other things too - not just transient results. You can save (via info analysis statements) the parameters used, the component values, and numerous other things.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Milad M
    Milad M over 10 years ago

    Dear Andrew,

    I know about the Spectre Toolbox. But, I've been asked to do this job directly without using the interface. Then, if there is possibility to read, write, and generate input.scs and output.csv or any other suitable formats containing the necessary data, please let me know.

    I have also some problems with Spectre Toolobox. But, I prefer to request them in another post to make it more useful for also the other users.

    Sincerely Yours,

    Milad

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Milad M
    Milad M over 10 years ago

    Dear Andrew,

         

      I've just been able to run a successful co-simulation with SpectreRF Engine and MATLAB/SIMULINK.

    Now, I want to define the amount of a resistor in my low-level circuit (I guess it is considered a "variable" in ADE like what we do for a parametric analysis) as "cosimulation input" in "cosimulation option" configuration page. My intimate goal is to find the proper value of the resistor to minimize an output voltage of the circuit using a MATLAB Optimization Toolbox.

    It seems that only sources of the circuit could be defined as cosimulation input. Is there any other possibilities?

    Is it possible to read the resistance of the resistor (as it is defined in input.scs) and then changed it for the next simulation (next itteration of the optimization) by the use of cds commands? I didn't find something relevant.

    Moreover, I try to use the command generally but I have this problem:

    I try below:


    Verify the dynamic library path by checking the LD_LIBRARY_PATH environment variable. Make sure that both <instdir>/tools/dfII/lib and <instdir>/tools/lib are in the path. For C shell users, use the following command
    setenv LD_LIBRARY_PATH `cds_root spectre`/tools/dfII/lib:`cds_root spectre`/tools/lib:${LD_LIBRARY_PATH}


    Solaris users also need to add the toolbox installation path to LD_LIBRARY_PATH. For C shell users, use the following command
    setenv LD_LIBRARY_PATH `cds_root spectre`/tools/spectre/matlab:${LD_LIBRARY_PATH}

    But in MATLAB:

    help cds_srr

    cds_srr not found.

    I checked the root /tools/dfII/lib. But there is no bin folder in dfll. This is the cause of the problem? If yes, what should I do now?

    Sincerely Yours,

    Milad

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • salar1991
    salar1991 over 7 years ago in reply to Andrew Beckett

    hi i want to export eye diagram to a csv file i do exactly what you said i do Trace->Select All, and then do Trace->Save and save as CSV, but there is no csv file where i saved the file  i tried with vcvs no difference .why ?  what should i do to produce csv file 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago in reply to salar1991

    Which version of the tools are you using? I just tried this in IC617 and it does work. Note however that exporting an eye diagram as CSV or VCSV only saves the original waveform because the folded axis doesn't make a great deal of sense in a CSV file.

    Take care in ViVA because the directory in the file browser when you do Right Mouse->Send to->Export is not necessarily the working directory by default.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • salar1991
    salar1991 over 7 years ago in reply to Andrew Beckett

    my version is IC6.1.4.485 my problem got solved i exported eye diagram to csv file i did as following calaculator=>eye diagram => entered the specifications and clicked on a button that says evaluate the buffer and display the results in a table and then file =>save as csv

    • 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