Forum Discussion
Altera_Forum
Honored Contributor
12 years agofind mean and standard deviation in vhdl
hi all i want a vhdl code to calculate the average from input data. and another for standard deviation. thanks for advance .
Altera_Forum
Honored Contributor
12 years agoIf the inputs are two integers, the result from any arithmatic will be fixed point, not floating point. Fixed point is just an integer with a 2^n offset
You havent specific anything about the system - how many samples to average? where the values come from, what the number sizes are? you havent even posted any code that even attempts to do the averaging yet.