Logic gates:
Logic gates are fundamental building blocks of digital circuits, performing basic logical functions. Here are some common types of logic gates along with their functions and truth tables:
- AND Gate:
- Function: Produces a HIGH output only if all of its inputs are HIGH.
- Truth Table:
A B Output 0 0 0 0 1 0 1 0 0 1 1 1
- OR Gate:
- Function: Produces a HIGH output if any of its inputs are HIGH.
- Truth Table:
A B Output 0 0 0 0 1 1 1 0 1 1 1 1
- NOT Gate (Inverter):
- Function: Produces the opposite (complementary) value of its input.
- Truth Table:
A Output 0 1 1 0
- NAND Gate:
- Function: Produces a LOW output only if all of its inputs are HIGH.
- Truth Table:
A B Output 0 0 1 0 1 1 1 0 1 1 1 0
- NOR Gate:
- Function: Produces a LOW output if any of its inputs are HIGH.
- Truth Table:
A B Output 0 0 1 0 1 0 1 0 0 1 1 0
- XOR Gate (Exclusive OR):
- Function: Produces a HIGH output if the number of HIGH inputs is odd.
- Truth Table:
A B Output 0 0 0 0 1 1 1 0 1 1 1 0
These basic logic gates can be combined in various ways to perform complex logical functions in digital circuits.