Logic Gate Concepts
AND Gate
- Symbol: · or &&
- Function: The output is 1 only when both inputs are 1.
- Truth Table:
| A |
B |
A AND B |
| 0 |
0 |
0 |
| 0 |
1 |
0 |
| 1 |
0 |
0 |
| 1 |
1 |
1 |
OR Gate
- Symbol: + or ||
- Function: The output is 1 as long as at least one input is 1.
- Truth Table:
| A |
B |
A OR B |
| 0 |
0 |
0 |
| 0 |
1 |
1 |
| 1 |
0 |
1 |
| 1 |
1 |
1 |
NOT Gate
- Symbol: ¬ or !
- Function: The output is the opposite of the input.
- Truth Table:
NAND Gate
- Symbol: The inversion of AND (i.e., AND followed by NOT)
- Function: The output is 0 only when all inputs are 1.