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 Another question: Why did we make the size of subtractor "sub_result" 13 bit? Can't we make it 11 bit? --- Quote End --- if data_in is + and last stage is - then both samples are added in effect requiring one more bit