hello I'm designing a PLL and I need to simulate the frequency on the time domain as below
l
Luis Henrique Rodovalho
08/21/2024, 12:33 AM
You can start with an open loop VCO, such as a ring oscillator. You should save the output waveform outside your simulation and measure it using other software, such as python scripts or matlab. You could also design a VerilogA block to continuously measure the output frequency of an oscillator.
u
20_7073 Nguyễn Thanh
08/21/2024, 12:43 AM
can i do it on ngspice? because i'm designing pll on xschem
l
Luis Henrique Rodovalho
08/21/2024, 9:37 AM
As far as I know, you can measure the frequency with ngspice with built-in commands,but not cycle by cycle, which is needed to make this curve. You could make a VerilogA block to convert the instantaneous frequency to a voltage, but then you need to learn how to use VerilogA with ngspice, and then design it by yourself.