Atif Khan
03/20/2024, 4:03 PMTim Edwards
03/20/2024, 4:41 PMfft
command to generate an FFT result, then apply meas
to the FFT result to find the first spike not at f=0.
See, for example: https://sourceforge.net/p/ngspice/discussion/133842/thread/004930bb69/vks
03/21/2024, 8:29 AM.meas
statement to find frequency of first spike as suggested above ?Atif Khan
03/22/2024, 7:21 PMTim Edwards
03/22/2024, 8:17 PM.meas
to find the time of the _n_th rising edge in a transient simulation, and do that n times to get a statistically significant distribution (such as n = 100 or more). What you get might be realistic if the jitter is dominated by the charge pump.
For RMS jitter, it may be legitimate to run an FFT on the transient output and then measure the width of the spike at the output frequency.
Back in the day when I did such measurements, I was using simulators with phase noise (pnoise) analysis, which is the proper way to do it for simulators that support it. There is a "perpetually experimental" periodic steady-state (PSS) analysis in ngspice, but I don't have much optimism that you will get anything meaningful out of it.