Forum Discussion
Altera_Forum
Honored Contributor
15 years agoMultiplication by 0,6
Hi i have an input of 8 bits and i need to make a multiplication by 0,6. I doesn't has to be precise so i thaught to do : INPUT * 19 /32 This is not a working code but is displays wh...
Altera_Forum
Honored Contributor
15 years agoMy rounding based on adding 2^(n-1) is the most common rounding used in hardware computations but is now termed (dc biased rounding) Vs dc unbiassed rounding. The difference is really trivial.
The biassed rounding(adding 16 in our case) goes wrong at so called ties i.e. exact (.5) points if the values are negative otherwise it is identical to "round" function. Matlab has now functions like convergent, nearest, round, to give better performance mostly for bit accurate testbenching