• 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. Can you set the schematic annotations simulation results...

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 125
  • Views 13889
  • 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

Can you set the schematic annotations simulation results directory remotely via ocean?

CADcasualty
CADcasualty over 5 years ago

I'm slowly getting back into design mode after many months in layout and seem to have forgotten a detail of a feature I put into my schematics to annotate device operating points and bias currents in various legs of my circuit. I run all of my sims in ocean from the CIW and within that world I configure my sim through various variables and end up sticking the results into a directory defined by:
resultsDir(strcat(defaultpath "/" corner_name "/" "test_type_" desVar("test_type")))
The sim runs and plots stuff via my plot commands and then, as I recall, I would just go to my schematics and (after a pesky redraw to flash out all the "nil" annotations) see all my transient sim annotations update with the sim results. I do recall having to set up which annotations needed to be viewed beforehand through the View->Annotations menu, but I don't recall having to manually keep the annotations simulations results directory in sync with my ocean script via the View->Annotations->Setup menu item as I changed my PVT corner type. Was/Is there a dynamic way for an ocean script to update the simulations results directory for the annotations in the schematics world?

  • Cancel
Parents
  • CADcasualty
    CADcasualty over 5 years ago

    OK, apparently I was having a senior moment. It now seems to be working "normally" i.e. I can change the corner case in the Ocean script, which changes are resultsDir(), the sim runs, the plots happen, and when I go to the schematic the annotations are also also correspondingly updated with all the new conditions defined in the Ocean script. So at this point I have nothing to complain about (very rare for me!) although I wouldn't mind knowing what must be happening under the hood to keep the annotations in sync with my Ocean script. Or you can just close this thread :-).

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 5 years ago in reply to CADcasualty

    I'm not sure there's an entirely public way of doing this - certainly information is stored on the schematic window as to the location of the simulation results - hiGetCurrentWindow()->artistSimulationDataDir . You can update this to be somewhere else, but I cannot guarantee that there's not something else that is done normally when simulation results are loaded, or simulations complete to set some other data as to where the results are located.

    Anyway, glad it's working for you!

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • CADcasualty
    CADcasualty over 5 years ago in reply to Andrew Beckett

    So I did have one remaining aspect for what I'm doing to ask you. When I run my transient simulation the Ocean script figures out beforehand the infotimes needed for the analysis command. After the sim the schematic annotations for the transient operating points are correctly showing for the first of those infotimes. However, as near as I can tell, the simultaneously displayed transient voltage annotations need to manually set to display for that same time. Is there a way for the Ocean script to also push those times into the annotations framework for transient voltages? Perhaps the default could be set as the first infotime if it exists. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • CADcasualty
    CADcasualty over 5 years ago in reply to Andrew Beckett

    So I did have one remaining aspect for what I'm doing to ask you. When I run my transient simulation the Ocean script figures out beforehand the infotimes needed for the analysis command. After the sim the schematic annotations for the transient operating points are correctly showing for the first of those infotimes. However, as near as I can tell, the simultaneously displayed transient voltage annotations need to manually set to display for that same time. Is there a way for the Ocean script to also push those times into the annotations framework for transient voltages? Perhaps the default could be set as the first infotime if it exists. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 5 years ago in reply to CADcasualty

    hiGetCurrentWindow()~>asaOptTime="1.3u" hiRedraw()

    will change it. Don't think this is documented, so it comes with the usual caveats about it possibly breaking in future...

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • CADcasualty
    CADcasualty over 5 years ago in reply to Andrew Beckett

    Sorry for the late reply - I was out yesterday. I just tried this and nothing seemingly happened. After your command, I brought up the form to modify the annotations transient voltage time to e.g. 190n the following prints to the CIW:

    _ahiiUniqueSymbolformasaSimTime0->ttime->value="190n"

    When I again type in your command to set it to 200n it responds with a "t" but I don't see any evidence of anything that changed.

    All that being said, I think I have a deeper issue. What I really want is to run my script and when it finishes I just want to look at the schematic and see the updated annotations. However, there is also a bunch of setup that needs doing in the Ocean script beforehand - pointing the annotations to the results database, enabling transient operating points and transient voltages and configuring the times for them to display. I don't know how to do any of that. I'll find out what I can by reading the documentation before bugging you any further i.e. I don't want to become a parasite on your good will :-) 

    • 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