Carrying During Binary Addition
When a column's inputs and incoming carry sum to two or more, the output bit keeps the remainder by two and advances a carry.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Add two short words
For 0111 and 0001, the low column sums to two, writes zero, and carries one. The next two columns do the same. The last writes one, producing 1000. See quotient and remainder for the column rule.
Check the machine boundary
Adding 0001 to 1111 produces 10000 before truncation. In a four-bit wrapping representation the stored result is 0000, with a carry outside. See wrapping counters.[1]
Follow which columns receive a carry
Adding 1011 and 0110 gives seventeen, or 10001. From the right, one plus zero emits one without carry. The second column adds one and one, giving zero with a carry to the third. That carry continues through the fourth. See full adders.
Column from right 0 1 2 3
Inputs A 1 1 0 1
Inputs B 0 1 1 0
Incoming carry 0 0 1 1
Sum bit 1 0 0 0
Final carry 1 completes 10001
Distinguish final carry from signed overflow
In fixed unsigned width, a final carry beyond the width represents excess magnitude. For signed two's complement, overflow depends on whether the exact signed result fits, such as adding two positive values and producing a negative sign. Use the interpretation declared for the word.