The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 20th, 2024, 10:16am
Pages: 1
Send Topic Print
How to perform Nested Sweep (Read 1793 times)
kiran123
Community Member
***
Offline



Posts: 42

How to perform Nested Sweep
Jun 27th, 2007, 12:15am
 
Hi Experts,

       How to declare  nested sweep statement in spectre , like suppose i wanted to see graph between V1 Vs V2 Vs V3 simultenously in the same plot
In SPICE it is like

    .DC V1  1 5 0.1   V2  1 5 0.1  V3  1 5 0.1

similarly is there any way to do this in spectre ?

Thanks & Regards
Kiran
Back to top
 
 
View Profile   IP Logged
aamar
Community Member
***
Offline



Posts: 57
Germany
Re: How to perform Nested Sweep
Reply #1 - Jun 29th, 2007, 8:38am
 
Hallo,

Do you have the Analog design environment?

you should set a single sweep, and use the other two sources (i.e. V2 and V3 as parameters) and then define parameteric sweeps.

for different variants of plots you can use the function "value" in the calculator.

but take care for the step you are using you will have to run the simulation 40x40 times which is a large number.

best regards,

aamar
Back to top
 
 
View Profile   IP Logged
kiran123
Community Member
***
Offline



Posts: 42

Re: How to perform Nested Sweep
Reply #2 - Jul 2nd, 2007, 11:25pm
 
aamar wrote on Jun 29th, 2007, 8:38am:
Hallo,

Do you have the Analog design environment?

you should set a single sweep, and use the other two sources (i.e. V2 and V3 as parameters) and then define parameteric sweeps.

for different variants of plots you can use the function "value" in the calculator.

but take care for the step you are using you will have to run the simulation 40x40 times which is a large number.

best regards,

aamar


 i don't have ADE  :(  that's why looking for deck statement

Regards
Kiran
Back to top
 
 
View Profile   IP Logged
aamar
Community Member
***
Offline



Posts: 57
Germany
Re: How to perform Nested Sweep
Reply #3 - Jul 4th, 2007, 2:57am
 
Hallo Kiran,

Although  I am not expert in Spectre Syntax. I use the ADE always, and without reading the manual, I think you should have a look on it too. But my first impression that there is no such a syntax becuase if it is possible it should be possible through the ADE. That's why I tried such a case like the one you are asking about and printed the OCEAN script from the parameteric analysis tool and pasted it here, may be it can help.

====================================
ocnWaveformTool( 'wavescan )
simulator( 'spectre )
design(       "./spectre/schematic/netlist/netlist")
resultsDir( "./spectre/schematic" )
modelFile(
   '("./spectre/c35/mcparams.scs" "")
   '("./spectre/c35/cmos53.scs" "cmostm")
   '("./spectre/c35/res.scs" "restm")
   '("./spectre/c35/cap.scs" "captm")
   '("./spectre/c35/bip.scs" "biptm")
   '("./spectre/c35/ind.scs" "indtm")
)

analysis('dc ?param "vsweep"  ?start "0"  ?stop "3"  )
desVar(        "vsweep" 0      )
desVar(        "vgs_nmos_param" 0.6      )
desVar(        "vds_nmos_param" 0      )
desVar(        "l" 0.35u      )
save( 'i "/MN0/D" "/MN1/D" )
temp( 27 )
paramAnalysis("vgs_nmos_param" ?values '(0 0.75 1.5 2.25 3 )
 paramAnalysis("vds_nmos_param" ?values '(0 0.75 1.5 2.25 3 )
))
paramRun()
=================================

Best regards,

aamar
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: How to perform Nested Sweep
Reply #4 - Jul 5th, 2007, 6:42am
 
kiran123 wrote on Jun 27th, 2007, 12:15am:
Hi Experts,

       How to declare  nested sweep statement in spectre , like suppose i wanted to see graph between V1 Vs V2 Vs V3 simultenously in the same plot
In SPICE it is like

    .DC V1  1 5 0.1   V2  1 5 0.1  V3  1 5 0.1

similarly is there any way to do this in spectre ?


You could probably do this with the alter command, at least in terms of getting the sims run; then it would depend on your waveform viewer how easy it is to view them simultaneously.  Also, it will be a nuisance to write all the alter commands to run the sweeps; you've got 51*51 sweeps there, don't you?  So I hope a cadence expert can help with the paramAnalysis statements.
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: How to perform Nested Sweep
Reply #5 - Aug 27th, 2007, 2:24pm
 
I've got an example somewhere (not at work at the moment) - but the easiest thing is to read the help on the "sweep" analysis in spectre. See "spectre -h sweep". You'll do something of this form:

Code:
sweepv1 sweep param=v1 start=1 stop=5 step=1 {
  sweepv2 sweep param=v2 start=1 stop=5 step=1 {
    dc dc param=v3 start=1 stop=5 step=1
  }
} 



(the above is just off the top of my head, so may contain mistakes).

Regards,

Andrew.

Back to top
 
 
View Profile WWW   IP Logged
John O Donovan
Junior Member
**
Offline



Posts: 29
San Jose, CA
Re: How to perform Nested Sweep
Reply #6 - Aug 28th, 2007, 4:56am
 
Andrew,

It should probably be the following. The inner sweep in the first in the .DC, and it should be dev=v1 instead of param=v1

sweepv1 sweep dev=v3 param=dc start=1 stop=5 step=1 {
 sweepv2 sweep dev=v2 param=dc start=1 stop=5 step=1 {
   dc dc dev=v1 param=dc start=1 stop=5 step=1
 }
}


The param=dc is probably not necessary since the default sweep parameter for a vsource is the dc parameter.

Regards,
 John
Back to top
 
 
View Profile   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: How to perform Nested Sweep
Reply #7 - Sep 2nd, 2007, 1:00pm
 
John, I was actually assuming that v1, v2, v3 were global parameters, but if instead it was the dc parameter of a voltage source that was being varied, then you're quite correct, of course...

Andrew.
Back to top
 
 
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.