Forum Discussion
Altera_Forum
Honored Contributor
12 years agocontinuous averaging using VHDL
I have a question related to VHDL programming. I want to calculate the continuous average. My example code is:
process (clk, reset)
begin
if (reset = '1') then
state<=idle;
out-v...
Altera_Forum
Honored Contributor
12 years agoThe filter y(n) = k * y(n-1) + x(n) approximates to average(x) / (1 - k) for 0 < k < 1.
It isn't as good as a rolling average, but is often good enough.