• 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 prevent from ocean to print unwanted messages on...

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 126
  • Views 14685
  • 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 prevent from ocean to print unwanted messages on screen

Geser
Geser over 16 years ago

Hi,

i am running ocean scripts from command prompt like

ocean < script.ocn

in this case i see a lot of messages on the screen. I don't want to see all this messages. I want to see only messages that i need. The messages i will print with printf commands inside OCEAN script.

I know i can forward all outputs to file like

ocean < script.ocn > log.txt

but in this case AFAIK i will be unable to print anything on the screen

So, how can i hide all OCEAN output, but still be able to print on screen messages i need?

Thanks, Alex

  • Cancel
  • Geser
    Geser over 16 years ago

    Sorry, fixed text

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 16 years ago

    Use something like this in your OCEAN script:

     fprintf(stderr "blah blah blah\n")

    I just did this:

    user> ocean -restore runSimMod.ocn > log.out
    blah blah blah
    user>
    

    All the main output goes into log.out, but anything fprintf'd to stderr appears on the screen.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Geser
    Geser over 16 years ago
    THanks. It works!
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • TFTandOLED1
    TFTandOLED1 over 11 years ago

     It indeed works! Thank you so much,  Andrew!

     Maofeng

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

    We also plan to add an environment setting to control  this which can be added to the top of your OCEAN script:

    envSetVal("asimenv.misc" "includeSimLogInOCEAN" 'boolean nil)

    This isn't released yet; it's probably going to be in IC616 ISR6 (April 2014 timeframe). Also, there's a possibility it might change - but that's the current plan.

    Regards,

    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