• 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. How to save given test state to an ocean script using S...

Stats

  • Locked Locked
  • Replies 7
  • Subscribers 143
  • Views 16997
  • 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 save given test state to an ocean script using Skill

VenuA
VenuA over 15 years ago

I am looking for ways to automatically save the ocean script for a test state saved on a Cell in a given Library. I know how to do manually from ADE window, I am looking for a function or a reference code that does this. Please let me know if you are not clear on what I am asking for.

Thanks
Venu A

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    You can use asiOpenOceanScript/asiWriteOceanScript/asiCloseOceanScript, but this requires an "asi" session loaded with the state. There isn't really a way to directly go from a state to an OCEAN script without ADE being involved.

    Maybe you could write a batch script which opened ADE, loaded the state, and then ran in "-nograph" mode.

    Not entirely clear what precisely you're trying to do or why you're trying to do this.

    Best Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • VenuA
    VenuA over 15 years ago

    First I am trying to run simulation on given cell and a saved test state w/o opening GUI (ie ADE). Second I want to grab the results of this run into some data files so I can keep log of them.

    I have written a post processing script that takes a ocean script as input and outputs any value of expression to a file. For this to run in background, I would have to first save an ocean script from a given ADE state and then post process it.

     Please let me know if there is a better way..

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • VenuA
    VenuA over 15 years ago

     Andrew, Thanks for the reply. I accidentally clicked on quick reply, and it did not show up on the page immediately.

     First, I would like to run simulation on a cell given a test state. Second grab the results of the run into data files for logging.

    To do this, I am doing this way:  1. Save the ocean script for that state. 2. post process it to divert the output of some expressions to data files (using ocnPrint and other functions), I have written a custom script for this.

    Since saving ocean script for that state is manual, I am trying to find a way to save this automatically and post process it with my custom script.

    Does this make sense? or am I doing this in a complex way?

     

    Regards

    Venu

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

    Hi Venu,

    There's not really an easy way to do this, other than the approach I suggested before.

    A colleague did file a CCR recently,  738431, to request a way in OCEAN to load from a state. So if you want something similar, you would need to contact customer support and request the same thing - and a duplicate enhancement request could be filed on your behalf.

    Regards,

    Andrew.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • VenuA
    VenuA over 15 years ago

     Thanks. I will contact the customer service with the case number 738431 and add a duplicate enhancement request.

    But here is another question on the same. I browsed all the files under the each state directory/cell view. I found a oceanscript.state file for each state, and I am thinking I can use this to post process and run in nograph/ or give to ocean as an input. What do you say on this? Does this file contain everything that state has saved last time?

    if you can answer me on this, i can proceed in building my application.

     Regards,

    Venu Allipuram

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

    Hi Venu,

    No, that won't do it.

    In fact I'm not even sure what you mean - there are a bunch of files in a state directory or cellView, but the format is internal and you should not depend upon it not changing.

    Yes, it contains the state data in all the files within the state directory or cellView, but it's not an OCEAN script.

    It is also possible to create "OCEAN Script" measures in ADE XL, but again, I don't think that will help you.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • gharyie05
    gharyie05 over 15 years ago

     oh,this is great, its good that it will be more easy to do...

    • 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