habbas33
Newbie level 5
- Joined
- Oct 19, 2008
- Messages
- 9
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,346
i want to calculate rms values of some signals.
xrms = sqrt{ 1/n*( x_1^2 + x_2^2 + ...... + x_n^2 ) }.
but the problem is sqrt operation. i have used cordac but it does not gives precise values u can either give integers or fractions. I have also tried sqrt function from fixed_alg_ug pkg but its not synthesizable because it depends on real_math pkg.
i need a sqrt code which can give me precise answer for example
when 48 goes to => sqrt => gives 6.928 => not 7
xrms = sqrt{ 1/n*( x_1^2 + x_2^2 + ...... + x_n^2 ) }.
but the problem is sqrt operation. i have used cordac but it does not gives precise values u can either give integers or fractions. I have also tried sqrt function from fixed_alg_ug pkg but its not synthesizable because it depends on real_math pkg.
i need a sqrt code which can give me precise answer for example
when 48 goes to => sqrt => gives 6.928 => not 7