Home > Community > Forums > Custom IC Design > How to prevent from ocean to print unwanted messages on screen

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 How to prevent from ocean to print unwanted messages on screen 

Last post Sun, Feb 16 2014 2:36 AM by Andrew Beckett. 5 replies.
Started by Geser 23 Jul 2009 03:26 AM. Topic has 5 replies and 2985 views
Page 1 of 1 (6 items)
Sort Posts:
  • Thu, Jul 23 2009 3:26 AM

    • Geser
    • Not Ranked
    • Joined on Mon, Jan 26 2009
    • Posts 7
    • Points 80
    How to prevent from ocean to print unwanted messages on screen Reply

    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

    • Post Points: 5
  • Thu, Jul 23 2009 4:18 AM

    • Geser
    • Not Ranked
    • Joined on Mon, Jan 26 2009
    • Posts 7
    • Points 80
    Re: How to prevent from ocean to print unwanted messages on screen Reply

    Sorry, fixed text

    • Post Points: 20
  • Thu, Jul 23 2009 4:23 AM

    Re: How to prevent from ocean to print unwanted messages on screen Reply

    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.

    • Post Points: 35
  • Thu, Jul 23 2009 6:10 AM

    • Geser
    • Not Ranked
    • Joined on Mon, Jan 26 2009
    • Posts 7
    • Points 80
    Re: How to prevent from ocean to print unwanted messages on screen Reply
    THanks. It works!
    • Post Points: 5
  • Sat, Feb 15 2014 9:28 PM

    Re: How to prevent from ocean to print unwanted messages on screen Reply

     It indeed works! Thank you so much,  Andrew!

     Maofeng

    • Post Points: 20
  • Sun, Feb 16 2014 2:36 AM

    Re: How to prevent from ocean to print unwanted messages on screen Reply

    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.
     

    • Post Points: 5
Page 1 of 1 (6 items)
Sort Posts:
Started by Geser at 23 Jul 2009 03:26 AM. Topic has 5 replies.