• 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. problem with Ocnprint

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 125
  • Views 13799
  • 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

problem with Ocnprint

Medya
Medya over 13 years ago

Hi everyone!
I do monte carlo analysis for my circuit via oceanScript but when i use ocnprint("./filename" out2 ?step 10n) the output text file is something like that I attach, note that when I remove the ?step the the output data is printed in one column an so I don’t have any problem but for above command the printing format  changes and the written data is not clear. What I  do for solving this problem?

  • Screenshot.png
  • View
  • Hide
  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    I tried it, to make sure we're talking about the same thing.

    Without ?step, the x-axis for each transient run will be different - the timesteps will not be consistent. So because of that, it can't print them in a big horizontal table; it has to do each iteration in a separate pair of time-value columns.

    With ?step, the x-axis will be consistent - so it does long lines. In your case your editor isn't wide enough and so it appears to line wrap - but with a longer width, it will be clearer.

    You could pass the ?numSpaces 0 argument, or adjust the ?width or ?precision to get more compact formatting.

    Hang on, just noticed that you'd updated he post since the email notifier was sent.  It's still not entirely obvious what you want.

    If you always want a single column, but want the points regularly spaced, you can use ?strobeperiod to the tran analysis. If you want multiple columns, you can do that with ?step to ocnPrint. I'm not sure what your actual problem is!

    For example, see the screenshot of my text editor - it's wide enough (and I used ?numSpaces 0 to stop it getting too wide):

    Andrew.

    • stuff.png
    • View
    • Hide
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    I tried it, to make sure we're talking about the same thing.

    Without ?step, the x-axis for each transient run will be different - the timesteps will not be consistent. So because of that, it can't print them in a big horizontal table; it has to do each iteration in a separate pair of time-value columns.

    With ?step, the x-axis will be consistent - so it does long lines. In your case your editor isn't wide enough and so it appears to line wrap - but with a longer width, it will be clearer.

    You could pass the ?numSpaces 0 argument, or adjust the ?width or ?precision to get more compact formatting.

    Hang on, just noticed that you'd updated he post since the email notifier was sent.  It's still not entirely obvious what you want.

    If you always want a single column, but want the points regularly spaced, you can use ?strobeperiod to the tran analysis. If you want multiple columns, you can do that with ?step to ocnPrint. I'm not sure what your actual problem is!

    For example, see the screenshot of my text editor - it's wide enough (and I used ?numSpaces 0 to stop it getting too wide):

    Andrew.

    • stuff.png
    • View
    • Hide
    • 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