I'm using Virtuoso ICADVM 20.1and I'm trying to calculate the recovery time of a voltage regulator from VCC (5 V) to VCC-1 (4V). In normal condition, the output voltage is around 4 V; at a certain time, due to circuit functionalities, the voltage has a spike of about 250-300 mV and then it comes back to 4 V. Here is an image of the event:
I would like to know how to calculate the recovery time using the calculator. I've searched on internet and I've tried using some functions, but with no success.
It's not entirely clear what you mean by recovery time, but you could use something like:
cross(v("out" ?result 'tran) value(v("out" ?result 'tran) 2.001u) 1 "falling")
to find the time at which it goes back down to the initial value. You might want to add a little margin to allow for it not being fully settled.
Perhaps you could use settlingTime() too, relative to the peak fo the signal? (maybe clip() a particular region, find ymax() within that, and then use settlingTime with that as the initial value and the desired value as the final value).
By "recovery time" I mean the time since when the waveform start to rise its value, till when it comes back to normal-conditions value.I will try to use some functions as you suggested.