Overflow

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/11

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

12 Terms

1
New cards

Arithmetic overflow

In a signed number range any result outside of the range [-2^(n-1), 2^(n-1) - 1]

2
New cards

cn-1

Symbol that represents the carry-in input of the most significant bit of the adder.

3
New cards

cn

Symbol that represents carryout output of the most significant bit of the adder

4
New cards

Overflow = cn-1 ⊕ cn

Boolean equation for the overflow

5
New cards

If the two inputs have the same sign but the sum’s sign is different, then the overflow has occurred.

What is the concept of the sign test for overflow?

6
New cards

Sign test (positive case)

If both inputs are positive (sign bits 0) and the sum is negative (sign bit 1), that’s an overflow

7
New cards

Sign test (negative case)

If both inputs are negative (sign bits 1) and the sum is positive (sign bit 0) that’s an overflow

8
New cards

No. Adding a positive and a negative moves the result towards zero staying within the range.

Does adding opposite signs overflow?

9
New cards

unsigned

Carry-out (from MSB) matters for the ________ addition (detects wrap).

10
New cards

signed

Overflow (sign test or cn-1 ⊕ cn) matters for ______ addition (detects out-of-range results)

11
New cards

(xn-1 ⊕ yn-1)’ & (xn-1 ⊕ sn-1)

Compact Boolean form of the sign test

12
New cards