Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- Actually I used underscore in my original code. I don't know why did I write 'out-1' here. Its 'out_1' Sorry for the confusion. Can you describe with an example how to do continuous averaging. --- Quote End --- running average: input =>=>=>...32 stages -----------------> subtract stage 32 from current input put the subtractor at end of delay pipe to subtract last stage from current input then take the result of subtraction into an accumulator (feedback adder with one register). truncate the accumulator sum as suitable.