Forum Discussion
Altera_Forum
Honored Contributor
12 years agoFor example:
I am getting the following in simulation: source_real: 2659 source_imag: 3490 source_exp: -10 So as per my calculation: out_real = source_real * 2^(exp) = 2659 * 2^-10 = 2.596679688 out_imag = source_imag * 2^(exp) = 3490 * 2^-10 = 3.408203125 So, Output = 10*log10(sqrt(out_real^2 + out_imag^2)) = 10* log10 (sqrt(6.742745399 + 11.61584854)) = 10* log10 (4.284692981) = 6.319197081 But the value I am expecting here is -5.42 Could you please help me//