Using Boolean logic's AND, OR, and NOT gates, the basis of all physical computing is formed. We played with their concept on Monday, Week 2.
AND | OR | NOT | |||||
---|---|---|---|---|---|---|---|
Inputs | Output | Inputs | Output | Input | Output | ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 |
0 | 1 | 0 | 0 | 1 | 1 | ||
1 | 1 | 1 | 1 | 1 | 1 |
From these three, derivatives such as NAND (made with an AND gate's output into a NOT), NOR (OR outputting into NOT) and XOR (a combination of two AND gates, an OR gate, and a NOT gate such that the normal AND positive becomes a negative for the OR) can be made. Each gate also has its own symbol.
The OR Gate | The AND Gate | ||
---|---|---|---|
The NOT Gate | The XOR Gate | ||
The NOR Gate | The NAND Gate |
I made two different adders using only these six gates;
Stacking onto the previous adders, now termed "half-adders" and "full adders" respectively (the half adder can add two inputs, while three inputs can account for carrying over higher numbers for a full adder and huge potential), we went over the most efficient full adder and how to stack them to make multi-bit calculators.