The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 19th, 2024, 10:34am
Pages: 1
Send Topic Print
Spectre timeout (Read 2148 times)
achim.graupner
Community Member
***
Offline



Posts: 51

Spectre timeout
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
Back to top
 
 

Achim Graupner
ZMD AG, Dresden, Silicon Saxony, Germany
View Profile   IP Logged
bernd
Senior Member
****
Offline



Posts: 229
Munich/Germany
Re: Spectre timeout
Reply #1 - 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
Back to top
 
 

Just another lonesome cad guy
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.