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 ago --- Quote Start --- @kaz For getting the stable value directly instead of increasing slowly, I did the following change in the code (The change is only when reset = 1). Do you think it is correct? --- Quote End --- That is naughty. You are faking the initial value of sum using 255*sum at reset.