• 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 use a CSV file in Cadence?

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 125
  • Views 20236
  • 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 use a CSV file in Cadence?

Sachin Mishra
Sachin Mishra over 3 years ago

I am using cadence version - IC6.1.5.500.15

I want to use a noisy signal as an input to my circuit in cadence, and I took the following steps:-

Step 1:- I created a CSV format file of the noisy signal generated from matlab.

Step 2 :- In cadence, I went to ADE -> Setup -> Simulation files, and in the "include Paths", I included the path of that CSV file.

Step 3 :- Then I used a ipwlf source in my schematic, and in its properties I mentioned the CSV file name in "PWL file name", and also mentioned the period of that noisy signal in "Period of the PWL".

Then, while running a transient analysis, the spectre is showing error.

This is the complete error, which is showing by the spectre.

I am actually using space separated values as this:-

where am I going wrong?

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    You're specifying this as a stimulus file on the Setup->Simulation Files. It is not a stimulus file (that's expected to be a spectre syntax netlist containing sources and so on). So remove that (or uncheck it) and it should then work. The error is coming because is trying to include the CSV file as if it were a netlist.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    You're specifying this as a stimulus file on the Setup->Simulation Files. It is not a stimulus file (that's expected to be a spectre syntax netlist containing sources and so on). So remove that (or uncheck it) and it should then work. The error is coming because is trying to include the CSV file as if it were a netlist.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Sachin Mishra
    Sachin Mishra over 3 years ago in reply to Andrew Beckett

    Actually, spectre is reading that CSV file, but the reason for this error is, " Unexpected numeric value 0".

    Are the values in the CSV file correctly organized?

    This is the CSV file:-

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to Sachin Mishra
    Sachin Mishra said:

    Actually, spectre is reading that CSV file, but the reason for this error is, " Unexpected numeric value 0".

    Actually it's because you are not listening to what I said. Yes, it's reading the file, but you are incorrectly including it as a stimulus file. This means you end up with something like this in the netlist:

    //
    
    include "dumbquestion.csv"
    
    V1 (n1 0) vsource type=pwl file="dumbquestion.csv"
    R1 (n1 0) resistor r=1k
    
    tran tran stop=3m

    Notice the include line (that's what you will have in your netlist by virtue of incorrectly specifying it as a stimulus file, which it isn't):

    If I run the example above with a file created with the same first few lines that you have in your CSV (in SPECTRE20.1) it fails with:

    Reading file:  /export/home/andrewb/tools/spectre/dumbquestion.csv
    
    Error found by spectre during circuit read-in.
        ERROR (SFE-874): "dumbquestion.csv" 1: Cannot run the simulation because syntax error `Unexpected numeric value "0"' was encountered at line 1, column 0. Correct the syntax error and rerun the simulation.
    

    Without that include line (i.e. without the stimulus file), it runs correctly. The spectre log still reports the file has being read, but later in the log file. There is no problem with the format of the CSV file.

    Thanks for ignoring what I said and assuming that the issue was something which it wasn't and causing me to have to re-explain it. You might have spotted my irritation at this!

    Andrew

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

    I am extremely sorry for my behaviour, sir.

    I have unchecked the stimulus file, as you said.

    This is the error, I am getting.

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

    Please share the input netlist (input.scs). My expectation is that you've accidentally specified the PWL file name on the ipwlf source as "stimulus" rather than "stimulus.csv". Otherwise I can't see why spectre would be looking for a file called "stimulus".

    Andrew

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

    Yes Sir, you are right, I have mistakenly given the PWL file name as "stimulus" rather than "stimulus.csv".

    Now , I have corrected it, and it works perfectly.

    Thank you so much, Sir.

    And I am really sorry, for my misbehaviour.

    • 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