trond
|
Ken, I had a look at the section in your book and modified my code as given below. However, I still obtain only a flat phase noise response. The model is as follows:
`include "disciplines.vams" `include "constants.vams" module sdvcoct (out, in); input in; voltage in; output out; voltage out; parameter real f0=1e6; parameter real Kvco=50e5; real freq, phase; parameter real period=2.56e6; parameter real n =0.2 from [0:inf); parameter real fc = 1e6 from [0:inf); analog begin freq = f0+Kvco*V(in); phase = 2*`M_PI*idtmod(freq, 0.0, 1.0, -0.5); V(out) <+ sin(phase) + flicker_noise(n,2,"wpn") + flicker_noise(n*fc,3,"fpn"); end endmodule
The VCO gain is set to 50e5 and the freq. to 1e6. The control voltage is set by a dc source (1V). I choose a PSS analysis first with beat freq. 6e6, no. of harmonics 3, accuracy moderate, tstab 120n, check the oscillator button, choose vout and gnd! for the output node. The pnoise analysis has sweeptype relative (harmonic 1), freq. range 1 to 10M, scale logarithmic with 100 steps, max. sidebands 15, and the pos. output node being out and the negative being gnd!. When plotting I choose the main form, choose pnoise, and then the phase noise button. Any ideas what might be wrong? Cheers
|