Worstcase analysis with Power supply, how to do it?

Hi, what is the way to have also the tolerance on the worst-case analysis at the power supply?
When I use the same function I used for the resistors, it does not work.
I tried to attach the simulation here but is says I’m new so I can not do it.

Thanks!

Are you talking about Monte Carlo?

Where you come up with .func wc(tol) (1+1*IF(gauss(1)>0,tol,-tol)) ? It should either return 1+tol or 1-tol, and this is what you really expect from this function, either max tolerance or min tolerance value?

Parameter cannot begin with a number. The warning warn about unrecognized coontent in .param 3V3_tol, and it cannot begin with number.

Thanks, the issue was the parameter starting with the number as you mention.
Yes, Im trying to get something like Monte Carlo but on this case is being consider only the max and min of the tolerance declared.
There is a way to do a real Monte Carlo analysis with random values?

1 Like

This is an example of Monte Carlo [function name mc(x,y)]. If you need different random seed in each runs, use .option SEEDCLOCK.

image

monte-carlo.qsch (2.5 KB)

1 Like

There is a way to do calculations with the result of the .meas values?
For example I would like to check the min of Vcc and max of Vout to calculate what’s the maximum Vin possible to be measured.

Something like this:
Gain = Vout_max / 650
MaxVin = Vcc_min / Gain

Are you referring to .meas command similar to this?

monte-carlo (with .meas).qsch (2.6 KB)

1 Like

you know how to plot the distribution graph of the result?

You need to export the results and plot them in another software.