• 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. .csv output in spectre

Stats

  • Locked Locked
  • Replies 11
  • Subscribers 126
  • Views 11819
  • 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

.csv output in spectre

Yea Chul
Yea Chul over 3 years ago

Dear all

my product is "Spectre Circuit Simulator" with product version 19.1

1. my first question is below

i saw old question about exporting .csv output 

and one of your managers said there is the way of exporting csv format data using Veriloag-A 

could u let me know the way or example about creating csv format using Verilog-A???

----------------------------------------------------------------------------------------------------------------------------------------------------------------

2. my second question is below

i saw the way of getting csv format using "faultfmt" in SPECTRE manual

but i cannot find example related to this statement 
how to use this one in SPECTRE input

Thanks in advance

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 3 years ago
    1. I don't have an example model to write CSV. You could also use ViVA to plot the signals as usual and then export them to CSV
    2. This is an option of the transient analysis, but it's specifically to do with fault simulation. You can't use it for other things, so I don't believe it has any relevance to your needs.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Yea Chul
    Yea Chul over 3 years ago in reply to Andrew Beckett

    thank your for your kind reply

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ShawnLogan
    ShawnLogan over 3 years ago in reply to Yea Chul

    Dear Yea,

    If you are willing to run your simulations in Assembler or Explorer, you can add an output which is an expression that will save one or more waveforms to a csv file following the completion of the simulation using the SKILL function. As an example, I defined an output to print the signal "/vout" between 10 ns and 100 ns with a time step of 10 ns to file "vout.csv" following a transient simulation as follows:

    awvSaveToCSV(getData("/vout" ?result "tran") "vout.csv" ?from 1e-08 ?to 2e-07 ?step 1e-08)

    When the simulation completed, the attached file was written to my working directory. I had to add the ".txt" extension to upload the file to this Forum,

    Shawn

    Fullscreen vout.csv.txt Download
    vout (interpolated wth step=1e-08) X,vout (interpolated wth step=1e-08) Y
    1e-08,-2.224202826891835e-09
    2e-08,-4.44840565378367e-09
    3e-08,-6.672608480675505e-09
    4e-08,-8.896811307567339e-09
    5e-08,-1.112101413445917e-08
    5.999999999999999e-08,-1.334521696135101e-08
    6.999999999999999e-08,-1.556941978824284e-08
    7.999999999999999e-08,-1.779362261513467e-08
    8.999999999999999e-08,-2.001782544202651e-08
    9.999999999999998e-08,-2.224202826891834e-08
    1.1e-07,-2.446623109581018e-08
    1.2e-07,-2.669043392270202e-08
    1.3e-07,-2.891463674959385e-08
    1.4e-07,-3.113883957648569e-08
    1.5e-07,-3.336304240337752e-08
    1.6e-07,-3.558724523026936e-08
    1.7e-07,-3.78114480571612e-08
    1.800000000000001e-07,-4.003565088405303e-08
    1.900000000000001e-07,-4.225985371094487e-08
    

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • HTTb
    HTTb over 3 years ago in reply to ShawnLogan

    Hi Shawn,

    Thanks for mentioning this wonderful function. How do you control number notation? For example, 3GHz is written as 3000000000, not 3e9.

    Haitao

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

    Haitao,

    The only way to do this is to pass ?precision 9 - which means that for numbers that need more than 9 digits it will use floating point format. That may not be what you want... the underlying function has some means of changing the number notation, but this isn't exposed as an argument you can control (and I don't know what the options are even then). Probably a good enhancement request - you might want to contact customer support.

    The ocnPrint function does have ?numberNotation and ?precision - but it's not exactly designed to produce CSV.

    Andrew

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

    Hi Andrew,

    Sure, I will definitely do that. In the meantime, what is the default precision level? It is not mentioned in the manual.

    Haitao

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

    It's 16.

    Andrew

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

    Thanks, that's great.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • HTTb
    HTTb over 3 years ago in reply to HTTb

    It looks like it would automatically change to scientific notation a number is very small. Below is an example.

    273603251806.78,7.811330748972679e-20

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to HTTb
    HTTb said:
    It looks like it would automatically change to scientific notation a number is very small. Below is an example

    Of course. What would you expect it to do? It would be bad to display small numbers as 0...

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

    Well, as an engineer, seeing is believing Slight smile

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

    Well, as an engineer, seeing is believing Slight smile

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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