Logic gates
Logic Gates Logic gates are fundamental building blocks of digital circuits. They are used to connect multiple binary inputs to a single output, performing...
Logic Gates Logic gates are fundamental building blocks of digital circuits. They are used to connect multiple binary inputs to a single output, performing...
Logic Gates
Logic gates are fundamental building blocks of digital circuits. They are used to connect multiple binary inputs to a single output, performing logical operations like AND, OR, NOT, NAND, and NOR.
AND Gate:
The AND gate produces a output of 1 only if both input bits are 1.
OR Gate:
The OR gate produces an output of 1 if at least one input bit is 1.
NOT Gate:
The NOT gate flips the output of an input bit, producing a 0 if the input is 1 and a 1 if the input is 0.
NAND Gate:
The NAND gate produces an output of 1 only if both input bits are 0.
NOR Gate:
The NOR gate produces an output of 1 only if both input bits are 1.
Examples:
AND Gate:
Input: A = 1, B = 1
Output: A AND B = 1
OR Gate:
Input: A = 1, B = 0
Output: A OR B = 1
NOT Gate:
Input: A = 0
Output: NOT A = 1
NAND Gate:
Input: A = 0, B = 0
Output: NAND A AND B = 0
NOR Gate:
Input: A = 1, B = 1
Output: NOR A OR B = 0