Altera_Forum
Honored Contributor
14 years agoFixed point math functions
Hello,
I know that fixed point logic circuits are similar to integers. But my question is. Say I convert a 15bit integer (A) to fixed point <15bits.10bits> by just using {A[14:0],10'b0000...} And I want to do math functions like addition, subtraction, multiplication, division. Will 'C=A*B' suffice?? How can I ensure that C is still <15bits.10bits>? Basically, my questions is will regular integer notations such as '*, +, /, -' be ok for fixed point operations. how can I ensure that my values remain <15bits.10bits> and also check for overflow/underflow Thank you!