The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> Spectre timeout
https://designers-guide.org/forum/YaBB.pl?num=1198053499

Message started by achim.graupner on Dec 19th, 2007, 12:38am

Title: Spectre timeout
Post by achim.graupner on Dec 19th, 2007, 12:38am

Dear all,

does anyone has an idea how to set a timeout for spectre. I want spectre to terminate after a maximum given time.
Reason: I start plenty of jobs and I know its expected duration. If something goes wrong (i.e. circuits oscillates at a certain corner, needs ages to converge etc.) it is sufficient that I know that something went wrong, hence there is no need to finish that simulation.

Regards,
Achim

Title: Re: Spectre timeout
Post by bernd on Dec 19th, 2007, 1:45am


Quote:
In your .cdsinit add the following "cdsenv" type settings:

envSetVal("spectre.envOpts" "simExecName"
        'string "/path_to_spectreLimit")
envSetVal("spectre.envOpts" "controlMode" 'string "batch")

The first variable sets a different executable for spectre - this
should point to the new "spectreLimit" script shown below, the second
variable will restart spectre for each individual run - this is
required so that you can limit the cputime for each individual
simulation.

spectreLimit :

#!/bin/csh -f
# A script to call spectre with a time limit

limit cputime 100
spectre $*

In the above script the limit is set as 100 seconds, you should
replace this with a value that you have decided is a reasonable limit
to allow most simulations to run to completion, but stop those that
get stuck.

Source:  http://sourcelink.cadence.com/docs/db/kdb/2001/Aug/1843455.html

Bernd

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.