The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Design >> Analog Design >> How to do parametric sweep in Spectre language?
https://designers-guide.org/forum/YaBB.pl?num=1111659379

Message started by James on Mar 24th, 2005, 2:16am

Title: How to do parametric sweep in Spectre language?
Post by James on Mar 24th, 2005, 2:16am

I want to know the syntax of Parametric Sweep in Spectre language.

I need to add Parametric Sweep commonds in a spectre simulation file, but dont know how.

Does anybody know?. I mean do not use the simulation tool of Analog Design Enviroment, just insert the commonds into the spectre simulation file.

Thanks

Title: Re: How to do parametric sweep in Spectre language
Post by Andrew Beckett on Mar 24th, 2005, 5:32am


Code:
spectre -h sweep
will answer your question.

Regards,

Andrew.

Title: Re: How to do parametric sweep in Spectre language
Post by James on Mar 24th, 2005, 5:07pm

Thanks, but I need more details.

For Example:

I want to change the voltage of signal Vctr from 0V to 1V with the step 100mV. At each voltage, I need to simulate the ckts 100ns.

How to write the code to achieve the above setting?

Many thanks

Title: Re: How to do parametric sweep in Spectre language
Post by James on Mar 26th, 2005, 5:11pm

Who know how to write these commonds?

Thanks

Title: Re: How to do parametric sweep in Spectre language
Post by Andrew Beckett on Mar 27th, 2005, 10:17pm

Well, reading the documentation (cdsdoc) would have allowed you to work this out for yourself.

For those unable to research simple things themselves, here's what you'd do:


Code:
// your circuit is here somewhere
// this source may already be in your circuit, but this
// is for illustration
vctr1 (Vctr 0) vsource dc=0

ctrsweep sweep dev=vctr1 param=dc start=0 stop=1 step=100m {
 tran1 tran stop=100n
}


Regards,

Andrew.

Title: Re: How to do parametric sweep in Spectre language
Post by James on Mar 28th, 2005, 4:53pm

:-[
I'm so shame

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