The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Design Languages >> Verilog-AMS >> step response analog LPF (RC Low Pass), abrup jump
https://designers-guide.org/forum/YaBB.pl?num=1335429754

Message started by nzborsti on Apr 26th, 2012, 1:42am

Title: step response analog LPF (RC Low Pass), abrup jump
Post by nzborsti on Apr 26th, 2012, 1:42am

Hello there,

I wrote a Verilog AMS Modle for a simple analog LPF:

//Verilog-AMS HDL for "test", "filter2" "verilogams"

`include "constants.vams"
`include "disciplines.vams"

module filter2 ( in, out);
input in;
output out;
electrical in,out;

parameter real tau1= 0.66 from (0:inf);
parameter real tau2= 0.074 from (0:inf);
real Kn;  


// passive filter lead lag

analog begin

Kn=tau2/(tau1+tau2);

V(out)<+Kn*laplace_nd(V(in), {1/tau2,1},{1/(tau1+tau2),1 });

$bound_step(1n);

end

endmodule

When I looked closer at the step response of the filter I saw that there is a abrupt jump in the output signal at the time where the step is applied to the input. That is a bit strange since the output should be continious. Does anyone know what's going wrong here? I am using AMS  solver in ADE XL.

Thanks for your help.  

Title: Re: step response analog LPF (RC Low Pass), abrup jump
Post by boe on Apr 27th, 2012, 11:11am

Nzborsti,

nzborsti wrote on Apr 26th, 2012, 1:42am:
Hello there,
... That is a bit strange since the output should be continious. Does anyone know what's going wrong here?
No. You seem to have feed-through from the input.

- B O E

Title: Re: step response analog LPF (RC Low Pass), abrup jump
Post by nzborsti on May 2nd, 2012, 12:49am

Hi,

but how can i avoid this. I mean it is  a simple LPF , there is not much that I can change, is there?

Regards

Title: Re: step response analog LPF (RC Low Pass), abrup jump
Post by boe on May 2nd, 2012, 12:13pm

Nzborsti,
remove the feed-through.
- B O E

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.