• 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 plot a graph?

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 126
  • Views 18430
  • 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 plot a graph?

leongec
leongec over 16 years ago

hello all, i am a newbie for cadence

 I would like to plot a graph on the wavescan. Instead of getting the plot data  from simulation, i need to plot a graph with my own equation. For my understanding, i should load a .raw file into the graph window. My another problem is, how to generate .raw file?

 

Thank you for your advice!

  • Cancel
  • archive
    archive over 16 years ago

     If I understand your request you are trying to plot data that did not come from the simulator but is either hand created or comes from another tool and is in ASCII form.  Both WaveScan & ViVA XL provide the ability to load a "csv" like file and to treat it like a read database using the ".vcsv" extension.  The data is just a standard "csv" file but with specific header information.

     I've included a sample file I have created that shows the header information although this format was designed for creation from the tool using the save/export feature and not really meant for hand creation.   Anyway row 2 is the net names, row 3 is the column alignments, row4 is the data type (Re and Im) for support of complex data, row5 is the axis label, and row 6 are the axis units.

     ;Version, 1, 0
    ;net1,; net2
    ;X, Y,;X, Y
    ;Re, Re,;Re, Re
    ;time, V,;time, V
    ;s, V,;s, V
    0.000,   1.00,  0.000,  0.00
    0.001,   0.50,  0.001,  0.33
    0.003,   0.00,  0.003,  1.21
    0.007,  -0.50,  0.007,  0.72
    0.009,  -1.00,  0.009,  0.18

    The calculator also has a function called "getAsciiWave" that will load a data file into the tool that can be plotted but this is limited to one signal load at a time as you select which two columns to load into the tool.

     Likewise you can create data directly in SKILL but for most users one of the above two methods is the best solutions. 

     Hope this helps,

     jons

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • leongec
    leongec over 16 years ago

     hi jons, thank you very much for your reply

     I've run a simulation from other circuit, and i get a .csv file, I modified the .csv file by changing to the data which i wanna plot. I loaded into the wavescan but it stated that '' missing  of header'' . Actually i wanna plot a Q-factor VS capacitance graph. the Q factor is calculated value so it is not from simulation. Do you have any ideas? 

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • leongec
    leongec over 16 years ago

    hi jons ! i make it!!! 

    this morning after replying you, i tried again, and i found where was my mistake!

    I left an extra line between the data and the "unit" row(last row of heading).

    Now i can generate the waveform by loading the .vcsv file. 

    thank you very much ! :):)

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 16 years ago

    Great, glad this solved your problem and hopefully others might find this useful.   The format is has only been tested from a computer generated process which always produces the correct syntax (it was not necesary intended for "hand creation") so if you run into problems it is most likley as you found a syntax issue.   Someday we should try to make this less senstative to these types of issues but as you found it does work.

    -jons 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • leongec
    leongec over 16 years ago

     hi jons, I have another question

    now i want to use a ocean script to load the data file.

    For my understanding, SKILL is used in normall scripting,  while OCEAN is  used in analysis and simulation scriptam i correct? 

    I tried to use the getAsciiWave() command, and change the vcsv file to .txt file (removing the heading), but i get an error when loading the ocean script. 

     this is my command -->   getAsciiWave("~/try.txt" 1 2)

    is it possible to load .vcsv file in my script?

    can you  give me some advice? thank you

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • leongec
    leongec over 16 years ago

    hi jons, i have settled this problem. :)

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Jamilah
    Jamilah over 13 years ago
    Hi I want to plot the graph on the wavescan. Data for this graph is not from the simulation. 
    It is measurement data and had been save as .csv. I need this to compare with simulation result. I have tried two methods as suggested above:
    1. I open the .csv file in wavescan and the pop up error: document root element is missing". I've include the sample file as follows:

    ";X, Y"
    ";Re, Re"
    ";freq, S21"
    ";Hz, dB"
    1.50E+09,-4.15E+00
    1.51E+09,-4.17E+00
    1.51E+09,-4.17E+00
    1.52E+09,-4.10E+00
    1.52E+09,-3.94E+00
    1.53E+09,-3.82E+00
    1.53E+09,-3.79E+00
    1.54E+09,-3.88E+00
    1.54E+09,-4.01E+00

    2.I use getasciiwave command. There is a syntax error in input. for getasciiwave command I save the input file as .txt. 

    Can anyone help me solving the problem?
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    The problem is the beginning of the file. If you call the file something.vcvs and make it look like this:

    ;S21
    ;X, Y
    ;Re, Re
    ;freq, S21
    ;Hz, dB
    1.50E+09,-4.15E+00
    1.51E+09,-4.17E+00
    1.51E+09,-4.17E+00
    1.52E+09,-4.10E+00
    1.52E+09,-3.94E+00
    1.53E+09,-3.82E+00
    1.53E+09,-3.79E+00
    1.54E+09,-3.88E+00
    1.54E+09,-4.01E+00

    Then you can directly open it in wavescan or ViVA (IC615) . getAsciiWave  will also read this (the x and y skip values should be 0, because it automatically skips the semi-colon lines).

    The original file you gave can be read with getAsciiWave if you specify ?xskip 4 ?yskip 4.

    Andrew.

    • 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