Forum Discussion
Altera_Forum
Honored Contributor
13 years agoYou need the opcode to generate overflow signal. I give you some rules:
a-If your adding and the operands have oposite signs an overflow NEVER occurs. b-If your adding and the operands have the same sign and the result has the same sign too, there are NO overflow. c-If your adding and the operands have the same sign and the result has oposite same sign, there ARE overflow. e-If your substracting and the operands have the same sign an overflow NEVER occurs. f-If your substracting and the operands have oposite sign, but the result has same sign as first operand, there are NO overflow. g-If your substracting and the operands have oposite sign, but the result has oposite sign as first operand, there ARE overflow.