The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Design Languages >> Verilog-AMS >> 2nd order passive low pass filter https://designers-guide.org/forum/YaBB.pl?num=1266604552 Message started by ultimate on Feb 19th, 2010, 10:35am |
Title: 2nd order passive low pass filter Post by ultimate on Feb 19th, 2010, 10:35am hello, can somebody give me the verilog A code for 2nd order passive rc low pass filter(capacitors c1 c2 and resistor r).. |
Title: Re: 2nd order passive low pass filter Post by pancho_hideboo on Feb 19th, 2010, 11:14pm The followings are general notes for you. - Always describe vendor's name and tool's name which you use. - Don't do multiple posts which are same content. - Don't request source code or behavioral model without any efforts. - There are many simulators which have analyses called as PSS, PAC and Pnoise. - Describe in detail with using correct terminologies. - Warnigns are different from Errors. - ADS is not name of simulator. - There is no tool which name is Cadence. - Don't use Direct Plot of Cadence ADE blindly without knowing definition. - All gains in Direct Plot of Cadence ADE are "right", "true" and "practical" voltage gain. - Don't mix up Simulation with Post Processing. They are completely different phase. - MATLAB are different from Simulink. - Learn measurements using actual instruments. Not "EDA Tool Play ultimate wrote on Feb 19th, 2010, 10:35am:
If you need physical modeling using R and C, you don't have to use Verilog-A. And you can never generate complex poles if you use only R and C. For behavioral modeling not physical modeling, what type of model do you need, bidirectional or unidirectional ? Do you need input and output impedance ? Is your requirement enough with signal flow model ? For example, if we use S-parameter formulation, there are three options at least. (1) Model expressing only S21. (2) Model expressing {S11, S21, S22}. (3) Model expressing {S11, S12, S21, S22}, that is, full model. (1) and (2) are unidirectional. (3) is bidirectional. |
Title: Re: 2nd order passive low pass filter Post by Marq Kole on Mar 2nd, 2010, 6:15am If you want a model, here it is; for the rest I agree completely with Pancho. `include "disciplines.vams" module lpf(in, out, gnd); parameter real c1 = 100p from [0:inf); parameter real r1 = 10k from [0:inf); parameter real c2 = 1p from [0:inf); inout in, out, gnd; electrical in, out, gnd; electrical n1; analog begin I(n1, gnd) <+ c1 * ddt(V(n1, gnd)); V(in, n1) <+ r1 * I(in, n1); I(in, gnd) <+ c2 * ddt(V(in, gnd)); V(in, out) <+ 0; end endmodule |
Title: Re: 2nd order passive low pass filter Post by pancho_hideboo on Mar 2nd, 2010, 6:47am Marq Kole wrote on Mar 2nd, 2010, 6:15am:
What LPF do you want to realize ? Don't you have typo for "V(n1, out) <+ 0;" I think it should be : Quote:
This is "Signal Flow Model" for second order RC LPF. |
Title: Re: 2nd order passive low pass filter Post by Marq Kole on Mar 2nd, 2010, 7:21am Hi Pancho, This is not signal flow, this is current input, voltage output, the kind of model you would use in a simple PLL. The input is attached to the charge pump which delivers a current, while the output is connected to the VCO which requires a voltage. If you read the specifications there was a specific request for c1, c2 and r - then I guessed this was kind-of the application needed for this filter which I had laying around anyway. Cheers, Marq |
Title: Re: 2nd order passive low pass filter Post by pancho_hideboo on Mar 2nd, 2010, 7:26am Marq Kole wrote on Mar 2nd, 2010, 7:21am:
|
Title: Re: 2nd order passive low pass filter Post by zahrein on Nov 9th, 2011, 9:32pm Quote:
May i know the "ref" refer to what output from the p/f detector? |
Title: Re: 2nd order passive low pass filter Post by Marq Kole on Nov 13th, 2011, 1:27pm ref = signal ground. In most applications it will be connected to the vss, gnd, or whatever is your reference signal level. Cheers, Marq |
Title: Re: 2nd order passive low pass filter Post by zahrein on Nov 13th, 2011, 5:18pm i see thanks for the info. |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |