There are AND, OR, XOR, and their inverted versions. Usually takes 2 inputs. Can be extended for n-inputs.
Returns true iff when the number of true inputs are odd.
Universal gate
Section titled “Universal gate”A gate is a universal gate iff a collection of that gates can be arranged to implement AND, OR & NOT gates. Can be used to implement any circuit. Is functionally complete.
NAND and NOR gates are universal.


Logical circuit representation
Section titled “Logical circuit representation”Logical circuits are a abstraction of transistor circuits. The logical circuits can be built using TTL or CMOS.
Two or more (bipolar junction) transistors are used. 0V for LOW. 5V for HIGH. Power consumption is high (even when idle). Switching is fast. Slow compared to modern CMOS. Low noise margin compared to CMOS.
Uses 2 metal oxide semiconductors. Power consumption is very low. High speed. High noise margin.
Power consumption
Section titled “Power consumption”Here:
- - Capacitance of the circuit
- - Supply voltage
- - Charging frequency of the capacitor
Here:
- - Supply voltage
- - Leakage current
Logic circuits
Section titled “Logic circuits”| Combinational Logic | Sequential Logic | |
|---|---|---|
| Memory | No | Yes |
| Feedback loop | No | Yes |
| Output | Depends only on input | Depends on input & memory |