Analog fault simulation using Spectre

Analog fault simulation using Spectre

Post by vedan » Sat, 12 Mar 2005 18:45:43


Hi,

I want to use spectre (from command line) for analog fault simulation.
I have a spectre netlist file (e.g. input.scs) which contains some
values in terms of parameters. (e.g. R1 = 1000*a, C1 = b*1e-6) Now i
want to have a file which will have the fault list(e.g. a=1 b=1, a=1.5
b=1, a=1 b=1.5, a=0.8 b=1.2 ...) Spectre should take this file and
simulate the same circuit (input.scs) the required number of times,
each time taking the specified set of values of a and b.

Is this possible, and if yes, how? I am using spectre 5.0.

Vedank Tripathi
M.Tech. (Reliability Engineering)
IIT Bombay,
India
 
 
 

Analog fault simulation using Spectre

Post by S. Bade » Sat, 12 Mar 2005 19:39:49

what you are describing is called "parameters" in spectre jargon.
iterating over a set of parameter is called a "sweep" in spectre jargon,
or a "parametric analysis" in analog design environment.

try doing spectre -h sweep

to take the input from a file, put the sweep definition in an include file

 
 
 

Analog fault simulation using Spectre

Post by meghn » Sat, 12 Mar 2005 23:20:53

Hi Vedank,
You can use parametric analysis option available in Spectre tool. Keep R
and C as variables in schematic view and copy these variable in Analog
Design Enviornment Window. After that, use the following steps-

Tools--> Parametric Analysis...
and give the variaable names and sweep range with steps.

Meghna
 
 
 

Analog fault simulation using Spectre

Post by Andrew Bec » Sun, 13 Mar 2005 08:29:06

In particular you probably want to create a paramset and then
sweep that. You'd do something like this:

mydata paramset {
a b
1 1
1.5 1
1 1.5
0.8 1.2
...
}

datasweep sweep paramset=mydata {
// analyses within the sweep
tran tran stop=1u
ac ac start=10 stop=1G dec=20
}

Andrew.

On Fri, 11 Mar 2005 11:39:49 +0100, "S. Badel"
 
 
 

Analog fault simulation using Spectre

Post by stmilos » Sun, 13 Mar 2005 19:03:39

> vedankwrote
Hi
simulation

a=1.


If you want to completely avoid using of any kind of scripts, jus
netlist (if I understood well), you should use parametric swee
analysis in outermost loop giving there a list of parameters (a an
b). You could give this list in include file as well (your fault lis
file), just be careful about the format of data (paramse
statement).This would be much faster than generating a bunch o
different netlists and running them simultaniosly in a script

Btw thanks for the question because you indirectly reminded me that i
include file, C macro preprocessor could be used which could b
solution to some of the problems that I have :)

greets

Milos Stanisavljevi
 
 
 

Analog fault simulation using Spectre

Post by vedan » Thu, 24 Mar 2005 02:33:50

My problem got solved. Thank you everybody!

Vedank