R
Robert Willy
Guest
Hi,
There is a PLL verilog-AMS model. Now it works in the simulation with sine
input signal, i.e. the output sine phase tracking input signal source phase.
I would like to see what output will be for a square wave input. I know that
a large magnitude sine wave passing a limiter will be a square wave. But I
have no idea on how to write a limiter.
Could you give me some hints on how to write a limiter function?
Below is the example signal source code.
parameter real freq = 1.0e2;
parameter real coeff = 1.0;
analog
V(p,n) <+ sin(`M_TWO_PI * freq * (0 + 1.0) * $abstime);
Thanks,
There is a PLL verilog-AMS model. Now it works in the simulation with sine
input signal, i.e. the output sine phase tracking input signal source phase.
I would like to see what output will be for a square wave input. I know that
a large magnitude sine wave passing a limiter will be a square wave. But I
have no idea on how to write a limiter.
Could you give me some hints on how to write a limiter function?
Below is the example signal source code.
parameter real freq = 1.0e2;
parameter real coeff = 1.0;
analog
V(p,n) <+ sin(`M_TWO_PI * freq * (0 + 1.0) * $abstime);
Thanks,