LOGIC GATE
1/0
TRUE OR FALSE
ON/OFF
1. NOT Gate is a basic logic gate in digital electronics. It's also known as an Inverter.
NOT Gate Functionality:
- Input: A (single bit)
- Output: NOT A (inverse of the input)
TRUTH TABE
INPUT OUTPUT
1 0
0 1
The NOT Gate simply flips the input bit, so if the input is 0, the output is 1, and vice versa.
Reverse the input signal
In other words, it takes an input of:
- 0 (low) and produces an output of 1 (high)
- 1 (high) and produces an output of 0 (low)
The NOT gate is used to implement logical negation, which is essential in digital electronics and
computer design.
2. The AND Gate is a basic logic gate in digital electronics. Its primary purpose is to perform a
logical conjunction operation.
Purpose of AND Gate:
The AND Gate takes two or more input bits and produces an output of 1 only if all the input bits
are 1.
Truth Table
INPUT A INPUT B OUTPUT
0 0 0
0 1 0
1 0 0
1 1 1
- The output is 1 only when both A and B are 1.
- If either A or B (or both) is 0, the output is 0.
3. OR GATE
The OR Gate takes two or more input bits and produces an output of 1 if any of the input bits are
1.
The truth table for an OR gate is:
INPUT A INPUT B OUTPUT
0 0 0
0 1 1
1 0 1
1 1 1
- If either A or B (or both) is 1, the output is 1.
- Only when both A and B are 0, the output is 0.
4. NAND GATE
The truth table for a NAND gate is:
INPUT A INPUT B OUTPUT
0 0 1
0 1 1
1 0 1
1 1 0
- The output is 0 only when both A and B are 1.
- If either A or B (or both) is 0, the output is 1.
Note: NAND is essentially the opposite of AND.
5. The NOR Gate takes two or more input bits and produces an output of 1 only if none of the input
bits are 1.
Truth Table:
INPUT A INPUT B OUTPUT
0 0 1
0 1 0
1 0 0
1 1 0
6. The XOR (Exclusive OR) Gate is a digital logic gate that performs a specific operation.
The XOR Gate takes two input bits and produces an output of 1 only if the input bits are different.
Truth Table:
INPUT A INPUT B OUTPUT
0 0 0
0 1 1
1 0 1
1 1 0
The XOR Gate is commonly used in digital circuits for:
1. Error detection: Detecting errors in digital data transmission.
2. Encryption: Encrypting data to secure it from unauthorized access.