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?
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 :-).
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!
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.
will change it. Don't think this is documented, so it comes with the usual caveats about it possibly breaking in future...
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:
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 :-)