habbas33
Newbie level 5
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