We want to build a circuit that will add two binary digits. Recall how binary addition works:
0 +
0 = 00
0
+ 1 = 01
1 + 0
= 01
1 + 1
= 10
Our circuit must accommodate:
0 + 0 = 00
0 + 1 = 01
1 + 0 = 01
1 + 1 = 10
| inputs | outputs (2's bit) |
| 0 0 | 0 |
| 0 1 | 0 |
| 1 0 | 0 |
| 1 1 | 1 |
Can you think of a gate that will do this for us? Yessiree!
Click here for the answer!
0 + 0 = 00
0 + 1 = 01
1 + 0 = 01
1 + 1 = 10
| inputs | outputs (1's bit) |
| 0 0 | 0 |
| 0 1 | 1 |
| 1 0 | 1 |
| 1 1 | 0 |
Can you think of a gate that will do this for us? Yessiree! Click here for the answer!
Now, with this in mind, let's go to Leggo, build our adder, and
see if it works!
The 2's bit can be constructed
just by using an AND gate!
The 1's bit can be constructed
just by using an EXOR gate!