Forum Discussion
5 Replies
- Altera_Forum
Honored Contributor
What have you got so far? What problems do you have?
- Altera_Forum
Honored Contributor
i have a top level design and i want to take the output from it and save on register or ram then calculate their mean and std dev.
- Altera_Forum
Honored Contributor
sounds plausible - what exactly are you stuck with>?
- Altera_Forum
Honored Contributor
i am stuck with floating point and how i can represent it in vhdl code ,i.e the result from division is floating Numbers how i can overcome it and then i can make avg.
- Altera_Forum
Honored Contributor
If 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.