Logic Gates - eclubiitk/EClub-Handbook GitHub Wiki
Logic gates are the basic building blocks of any digital circuit. They are electronic circuits which have one or more inputs and only one output which relates to the input signals based on a certain logic.
-
AND Gate
Input | Output | |
---|---|---|
X | Y | Z |
0 | 0 | 0 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
AND Gate Truth Table
-
OR Gate
Input | Output | |
---|---|---|
X | Y | Z |
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 1 |
OR Gate Truth Table
-
NOT Gate
Input | Output |
---|---|
X | Z |
0 | 1 |
1 | 0 |
NOT Gate Truth Table
-
NOR Gate
Input | Output | |
---|---|---|
X | Y | Z |
0 | 0 | 1 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 0 |
NOR Gate Truth Table
-
NAND Gate
Input | Output | |
---|---|---|
X | Y | Z |
0 | 0 | 1 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
NAND Gate Truth Table
-
XOR Gate
Input | Output | |
---|---|---|
X | Y | Z |
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
XOR Gate Truth Table
-
XNOR Gate
Input | Output | |
---|---|---|
X | Y | Z |
0 | 0 | 1 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
XNOR Gate Truth Table
The NAND (NOT-AND) and NOR (NOT-OR) gates are considered universal gates and can be used to make any other logic gate.
For example : NAND gate can be use to make following gates: