Forum Discussion
Altera_Forum
Honored Contributor
13 years agoAverage in VHDL..?
Hi everyone, can anyone please give me an idea about how to average the given data (for exampale say decimal 1 to 10). thank you.
Altera_Forum
Honored Contributor
13 years agoI am not quite sure of VHDL.
in case verilog HDL. you can just write as like software calculation. such as... avg <= sumdata / sumnum; or you can just use div megacore function. notice that. in both way. you need to pay attention for timing delay. it might take few clocks.depending on FPGA and bit width. I hope this information helps you. see you.