adam_eaz
New Member
Offline
Posts: 2
|
I am applying a differential clock signal as an input which has some phase noise, and I am producing a differential clock signal that has a fixed pulse width. The problem is that the resulting signal doesn't have any phase noise. The PSS analysis does work, with the correct wave forms produced.
`include "constants.vams" `include "disciplines.vams"
module xosc10b_amfilter (inp, inm, outp, outm);
input inm, inp; inout outm, outp; voltage inm, inp, outp, outm, vgain;
parameter real vswing=1; parameter real td=50p; parameter real tt=50p; parameter real delaytime=6.4300412n; real vtime, vmin, vmax; integer actNow, out, reset; analog begin actNow=0; vmin=-vswing/2; vmax=vswing/2; @(cross(V(inp,inm),1)) actNow=1;
vtime= idt(1/delaytime, 0, actNow); out = vtime<1; V(outp,outm) <+ transition(out ? vmax : vmin, td, tt); end endmodule
|