recategorized by
3,024 views

2 Answers

Best answer
12 votes
12 votes

Overflow condition in $2's$ complement number system:-

  1. $c_{3} = 1,c_{4} = 1\implies$ No overflow
  2. $c_{3} = 0,c_{4} = 0\implies$ No overflow
  3. $c_{3} = 1,c_{4} = 0\implies$ Overflow $(a_{3} = b_{3} = 0)$
  4. $c_{3} = 0,c_{4} = 1\implies$ Overflow $(a_{3} = b_{3} = 1)$

We can conclude that the overflow condition for $2's$ complement number system is: $$c_{3}\oplus c_{4} = 1\\ \text{(OR)} \\ \bar{a_{3}}\cdot \bar{b_{3}}\cdot s_{3} + a_{3}\cdot b_{3}\cdot\bar{s_{3}} = 1$$

Here, we used $4-bit$ binary full adder and Ex-OR gate.

The Ex-OR gate is used to check the overflow condition.

selected by
3 votes
3 votes

The Ex-OR gate is used to differentiate b/w normal binary addition vs 2’s complement addition.

ref:- https://www.ijert.org/efficient-design-of-2s-complement-addersubtractor-using-qca-2

edited by

Related questions

14 votes
14 votes
1 answer
2
go_editor asked Dec 11, 2016
2,265 views
Define the value of $r$ in the following: $\sqrt {(41)_{r}} = (7)_{10}$
20 votes
20 votes
1 answer
4
go_editor asked Dec 11, 2016
1,977 views
Let $*$ be defined as a Boolean operation given as $x*y = \overline{x}\;\;\overline{y}+xy$ and let $C=A*B$. If $C=1$ then prove that $A=B$.