`include "discipline.h"
`include "constants.h"




module oscillator(out);
output out;
phase out;
parameter real n = 1 from [0:inf); // white output phase noise at 1 Hz (rad2/Hz)
parameter real fc = 2 from [0:inf); // flicker noise corner frequency (Hz)
analog begin
Theta(out) <+ flicker_noise(n, 2, "wpn") + flicker_noise(n*fc, 3, "fpn");
end
endmodule
