FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
5954 Discussions

Fixed point with positive scaling doesn't work!

Honored Contributor II

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> 


The second and third add the same numbers with zero and -1 exponent scaling, respectively, and the results are correct.<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> 


Seems like a major problem here. 

0 Kudos
0 Replies