I'm executing some Spectre simulations using Skill code (Ocean) from the CIW (Virtuoso) window and would like to stop the execution from within the script when some condition is not fulfilled.
Skill offers an "exit" command but that ends the complete Virtuoso session, not just the execution of the script.
I now "solved" it by simply executing x= 1.0 / 0 ending the script by creating an error.
Anybody know how I can end the execution in a graceful manner?
If you write your script like this:
prog(() ; all the lines in your script when(value<bad return() ) ; more script)
then you can do what you want. The return will drop out of the prog().