The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> How can I sweep actimes in trans analysis?
https://designers-guide.org/forum/YaBB.pl?num=1392109051

Message started by aaron_do on Feb 11th, 2014, 12:57am

Title: How can I sweep actimes in trans analysis?
Post by aaron_do on Feb 11th, 2014, 12:57am

Hi all,


I'm using Spectre Trans analysis, and I want to sweep the option actimes. Does anybody know how?


thanks,
Aaron

Title: Re: How can I sweep actimes in trans analysis?
Post by Andrew Beckett on Feb 16th, 2014, 12:38am

Well, you can add a sweep around the analyses which is varying the actimes - as follows:

Code:
//
parameters act=0.5u
V1 (in 0) vsource type=sine mag=1 freq=1M ampl=1.2
R1 (in out) resistor r=1k
C1 (out 0) capacitor c=1p

sweepact sweep param=act start=0.1u stop=0.8u step=0.1u {
   ac ac start=1 stop=1G
   tran tran stop=1u acnames=[ac] actimes=[act]
}


Of course this is a completely silly example...

I suspect this is not what you're asking (it wasn't very precise). Are you asking to do a single transient where the actimes is a sweep rather than a list of literal values? If so, you can't do that... you should contact http://support.cadence.com as it's a reasonable request for an enhancement.

Andrew.

Title: Re: How can I sweep actimes in trans analysis?
Post by aaron_do on Feb 16th, 2014, 6:06pm

Hi Andrew,


thanks for the reply. Yeah I see that in your example I would need to run N times as many analyses. Right now I need to type in each actime that I want included. See if I get around to contacting support...


thanks,
Aaron

Title: Re: How can I sweep actimes in trans analysis?
Post by boe on Feb 18th, 2014, 10:50am

Hi Aaron,
I recently asked the support for that. The answer I got:
"as for tran and actimes there is yet no such advanced “acperiod” option, you could also do a for loop and run a tran for each code."
- B O E

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