"viswanath" <da...@eng.usf.edu> wrote in message
news:791e9679.0405...@posting.google.com...
Create a circular buffer and place the input data "on the fly" into the
register pointed to by a resetable counter.
The more registers in the circular buffer, the lower the filter frequency
with the effect of more smoothing of the
data.
I would make a little RAM internally for the circular buffer...
Don Golding
"fabbl" <nos...@nospam.com> wrote in message
news:YRcqc.2300$dF....@newssvr32.news.prodigy.com...
> I have to design a low pass filter in VHDL. How can one go about
> designing such a filter when the medium is event driven and time
> domain based??
Remember, that Fourier Transform is closely related to Laplace Transform
and Z Transform.
For conversion from s-space (Laplace) to z-space (sampled data) use
bilinear transform.
In z-space filter coefficients are the same as the coefficients of
polynomials. Therefore just pick a polynomial, that provides your
desired frequence response (Butterworth, Chebychev...) and compute the
polynomial coefficients.
Maybe "Passive & Active Filters: Theory & Implementations" by Wai-Kai
Chen ( http://www.mathematicsbooks.org/047182352X.html ) or any other
book about digital filter design may be helpful.
Ralf
For generation of digital filters, you can use ONEoverT with it's VHDL
module. It will produce easily readable,
well commented RTL vhdl which you can then keep and add to your VHDL
library.
www.tyder.com
Best Regards
Michael
"viswanath" <da...@eng.usf.edu> wrote in message
news:791e9679.0405...@posting.google.com...
Others have mentioned a moving average for low pass filtering. Such a
filter is not a very good low pass filter, it's frequency response is
sin(x)/x. It is fine for crude low pass, or as a pre-filter in a
multi-rate filter chain, but not very good as the only filter.
viswanath wrote:
--
--Ray Andraka, P.E.
President, the Andraka Consulting Group, Inc.
401/884-7930 Fax 401/884-7950
email r...@andraka.com
http://www.andraka.com
"They that give up essential liberty to obtain a little
temporary safety deserve neither liberty nor safety."
-Benjamin Franklin, 1759