What are logic gates?
- A logic gate is building block of a digital circuit.
- It has one or more inputs and only one output.
- The relationship between the inputs and output is based on certain logic.
- Based on this logic the gates are named as AND, OR, NAND, NOR etc...
- A terminal in this circuits is one of the binary conditions 0 (low) or 1 (high), represented by voltage levels as 0V (low) and 5V (high).
Primary Logic Gates:
- There are three primary logic gates AND, OR AND NOT.
- All other logic gates could be represented as a combination of these.
| Type | Definition | Symbol | Truth Table | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AND | An electronic circuit that gives a high output(1) only if all inputs are high(1). | ![]() |
| ||||||||||||||||||
| OR | An electronic circuit that gives a high output (1) if one or more inputs are high. | ![]() |
| ||||||||||||||||||
| NOT | An Electronic circuit that produces an inverted version of the input at its output. | ![]() |
| ||||||||||||||||||
Universal Logic Gates:
- NAND and NOR gates are called universal logic gates.
- NAND or NOR alone can be implemented to design all primary gates. So they are called universal gates.
| Type | Definition | Symbol | Truth Table | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NAND |
| ![]() |
| ||||||||||||||||||
| NOR |
| ![]() |
| ||||||||||||||||||
Derived Logic Gates:
- Derived logic gates are formed by combination of two or more primary logic gates.
- XOR ( Exclusive OR) and XNOR (Exclusive NOR) are derived logic gates.
| Type | Definition | Symbol | Truth Table | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| XOR |
| ![]() |
| ||||||||||||||||||
| XNOR |
| ![]() |
| ||||||||||||||||||






