2,090 views
1 votes
1 votes

We consider the addition of two 2’s complement numbers bn-1bn-2...b0 and an-1an-2...a0. A binary adder for adding unsigned binary numbers is used to add the two numbers. The sum is denoted by cn-1cn-2...c0 and the carry-out by cout. Which one of the following options correctly identifies the overflow condition?

2 Answers

1 votes
1 votes

Overflow condition is meant for range exceeding condition of a signed number..

So this happens in 2's complement number addition if either there is a carry in to the MSB of the result or carry out of the MSB of the result .But both should not happen at the same time..

So this scenario can be represented by XOR of Cout (Carry out of MSB) and Cn-1 (Carry in to the MSB)..

Hence C) is the correct answer..

Related questions

0 votes
0 votes
0 answers
1
lolalo asked Jul 15, 2022
499 views
How overflow can be detected in BCD Arithmetic?
1 votes
1 votes
0 answers
2
srestha asked Aug 6, 2018
882 views
Will addition of two negative numbers cause any overflow?
2 votes
2 votes
0 answers
3
Tuhin Dutta asked Nov 3, 2017
534 views
The condition for overflow in the addition of two 2's complement numbers in terms of the carry propagated by the two most significant bits is ___________.
0 votes
0 votes
2 answers
4
spriti1991 asked Apr 9, 2015
920 views
The overflow condition for unsigned 8 bit integer would be if c= a+b if c<a Or c< b The overflow condition for signed 8 bit integer would be if c= a+b if c<a and c< b ri...