Forum Discussion
Altera_Forum
Honored Contributor
14 years agoMultiplication Rounding
Hey guys, I am multiplying two 32 bit numbers using LPM_MULT. Each number is in Q16.16 fixed point format. The product is a 64 bit Q32.32 number. I then shift the product to the ri...
Altera_Forum
Honored Contributor
14 years agoMost basic rounding is:
if your result is 64 bits then add result(31) to result(61 : 32) Alternatively add '1' to result(61:31) then take result(61:32) Thats all.