topic Fixed point with positive scaling doesn't work! in FPGA Intellectual Property
https://community.intel.com/t5/FPGA-Intellectual-Property/Fixed-point-with-positive-scaling-doesn-t-work/m-p/175812#M14251
<P>Adder block with sfix and positive exponents gives incorrect results. I've tried this with MATLAB 15 and DSP builder blocks (not with synthesis), and the results are wrong. See image attached. The first case adds two complex numbers, with positive exponent scaling. The result is WAY OFF by a factor of 2^10!<br> </P><P></P><br> <P></P>The second and third add the same numbers with zero and -1 exponent scaling, respectively, and the results are correct.<br> <P></P><br> <P></P>It seems like the first case actually multiplies the values by 2^10, but this strange scaling does not happen in the other two cases.<br> <P></P><br> <P></P>Seems like a major problem here. <P></P><A href="http://www.alteraforum.com/forum/attachment.php?attachmentid=10731&stc=1">http://www.alteraforum.com/forum/attachment.php?attachmentid=10731&stc=1</A>Thu, 18 Jun 2015 02:27:41 GMTAltera_Forum2015-06-18T02:27:41ZFixed point with positive scaling doesn't work!
https://community.intel.com/t5/FPGA-Intellectual-Property/Fixed-point-with-positive-scaling-doesn-t-work/m-p/175812#M14251
<P>Adder block with sfix and positive exponents gives incorrect results. I've tried this with MATLAB 15 and DSP builder blocks (not with synthesis), and the results are wrong. See image attached. The first case adds two complex numbers, with positive exponent scaling. The result is WAY OFF by a factor of 2^10!<br> </P><P></P><br> <P></P>The second and third add the same numbers with zero and -1 exponent scaling, respectively, and the results are correct.<br> <P></P><br> <P></P>It seems like the first case actually multiplies the values by 2^10, but this strange scaling does not happen in the other two cases.<br> <P></P><br> <P></P>Seems like a major problem here. <P></P><A href="http://www.alteraforum.com/forum/attachment.php?attachmentid=10731&stc=1">http://www.alteraforum.com/forum/attachment.php?attachmentid=10731&stc=1</A>Thu, 18 Jun 2015 02:27:41 GMThttps://community.intel.com/t5/FPGA-Intellectual-Property/Fixed-point-with-positive-scaling-doesn-t-work/m-p/175812#M14251Altera_Forum2015-06-18T02:27:41Z