Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
727 Views

Fixed point with positive scaling doesn't work!

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> 

<br> 

The second and third add the same numbers with zero and -1 exponent scaling, respectively, and the results are correct.<br> 

<br> 

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> 

<br> 

Seems like a major problem here. 

http://www.alteraforum.com/forum/attachment.php?attachmentid=10731&stc=1
0 Kudos
0 Replies
Reply