Logic - Gates - Rick Grade 12B
Logic - Gates - Rick Grade 12B
Logic gates are the fundamental building blocks of digital electronics. Each gate performs a
specific logical operation on binary inputs (0 or 1) to produce a single binary output. Here’s
a detailed look at the seven basic types of logic gates, their operations, symbols, truth tables,
and common applications.
AND Gate
The AND gate outputs 1 only if all inputs are 1. If any input is 0, the output will also be 0.
A B Output (A AND B)
0 0 0
0 1 0
1 0 0
1 1 1
**Application**: Used in circuits where multiple conditions must be true for an action to
proceed.
OR Gate
The OR gate outputs 1 if at least one of the inputs is 1. The output is 0 only when all inputs
are 0.
A B Output (A OR B)
0 0 0
0 1 1
1 0 1
1 1 1
**Application**: Used where multiple conditions can trigger the same action.
NOT Gate
The NOT gate inverts the input. If the input is 1, the output is 0, and vice versa.
A Output (NOT A)
0 1
1 0
NAND Gate
The NAND gate is the inverse of the AND gate. It outputs 1 unless all inputs are 1.
A B Output (A NAND B)
0 0 1
0 1 1
1 0 1
1 1 0
NOR Gate
The NOR gate is the inverse of the OR gate. It outputs 1 only if all inputs are 0.
A B Output (A NOR B)
0 0 1
0 1 0
1 0 0
1 1 0
**Application**: Another universal gate often used in digital design.
XOR Gate
The XOR gate outputs 1 if only one input is 1. If both inputs are the same, the output is 0.
A B Output (A XOR B)
0 0 0
0 1 1
1 0 1
1 1 0
XNOR Gate
The XNOR gate is the inverse of the XOR gate. It outputs 1 if both inputs are the same.
A B Output (A XNOR B)
0 0 1
0 1 0
1 0 0
1 1 1
0 0 0 0 0 0 0
0 0 0 1 0 0 0
0 0 1 0 0 0 0
0 0 1 1 0 1 1
0 1 0 0 0 0 0
0 1 0 1 0 0 0
0 1 1 0 0 0 0
0 1 1 1 0 1 1
1 0 0 0 0 0 0
1 0 0 1 0 0 0
1 0 1 0 0 0 0
1 0 1 1 0 1 1
1 1 0 0 1 0 1
1 1 0 1 1 0 1
1 1 1 0 1 0 1
1 1 1 1 1 1 1
0 0 0 1
0 1 0 1
1 0 0 1
1 1 1 0
A B A OR B NOT (A OR B)
0 0 0 1
0 1 1 0
1 0 1 0
1 1 1 0
AND-XOR Combination
Uses an AND gate and an XOR gate, with outputs feeding into another AND gate.
0 0 0 0 0 0
0 0 1 0 1 0
0 1 0 0 0 0
0 1 1 0 1 0
1 0 0 0 1 0
1 0 1 0 0 0
1 1 0 1 1 1
1 1 1 1 0 0