• 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 SKILL
  3. Error in storing output data into file

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 13141
  • 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

Error in storing output data into file

indra0804
indra0804 over 11 years ago

Hi experts,

I am new to cadence ocean scripting. I need to store the data of output wave that is generated, into a file. I am able to print the output value at a certain instant say the max value of the output wave using the following code.

V=ymax(v("/V" ?result "tran-tran"))

fprintf(of "%6.3e \n" V)

This code works fine and gives the correct max value.

But, now I want to get data about the entire output wave.

I tried by using the following code fragment for that.

V=v("/V" ?result "tran-tran")

fprintf(of "%6.3e \n" V)

But, this does not work as I expected it to be and all that I get as o/p is something like "srrWave:0x16832018"

Please suggest how I can proceed. I want to get the entire data stored into file. 

Also, if there is a way by which I can store the o/p result at periodic instants say 'every 10ns' or something like that, that would be nice too.

Regards,

Indra

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

    Indra,

    Use ocnPrint for this. For example:

    ocnPrint(V ?output of ?from startTime ?to endTime ?step 10n)

    There are other arguments for ocnPrint that might help - see the documentation for more details.

    Regards,

    Andrew.

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

    Indra,

    Use ocnPrint for this. For example:

    ocnPrint(V ?output of ?from startTime ?to endTime ?step 10n)

    There are other arguments for ocnPrint that might help - see the documentation for more details.

    Regards,

    Andrew.

    • 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