- Joined
- Mar 17, 2012
- Messages
- 3
- Reaction score
- 0
Hi everybody, i'm quite new to vhdl and hardware implementation and i have a problem.
I have to implement a weighted average (weights are not constant) with integer fixed-point numbers. The problem is that the sum of the weights (the divisor in the average) is not always a power of 2, so how i can perform that division WITHOUT use any ipcore divider?
The approximation of the divisor to the nearest power of 2 is not always a good choiche because the result could be not accurated enough.
Thank you in advance
ps: i use xilinx ise 13.2
I have to implement a weighted average (weights are not constant) with integer fixed-point numbers. The problem is that the sum of the weights (the divisor in the average) is not always a power of 2, so how i can perform that division WITHOUT use any ipcore divider?
The approximation of the divisor to the nearest power of 2 is not always a good choiche because the result could be not accurated enough.
Thank you in advance
ps: i use xilinx ise 13.2
Last edited: