Ken Kundert
|
It is a measure, but probably not a very good measure. If I were you I would create a drive source in verilog-a that slowly sweeps its frequency, and then run a long transient where you use another verilog-a module to sample the oscillator output signal at the exact same frequency as the drive source, then plot those samples. The waveform of samples will go completely flat when the oscillator is locked.
If you don't want to use verilog-a, you can run a series of transient analyses where you slightly change the drive frequency on each. Then set outputstart (tran option) to eliminate the initial transient from the results and use strobing to sample the waveforms at the drive frequency. Plot the output of the oscillator from each transient. When locked the output waveforms will be completely flat.
-Ken
|