Study smarter with Fiveable
Get study guides, practice questions, and cheatsheets for all your subjects. Join 500,000+ students with a 96% pass rate.
Digital logic gates are the fundamental decision-makers of every electronic system you'll encounter in this course. When you're analyzing circuits, designing control systems, or understanding how a computer processes information, you're working with combinations of these basic building blocks. The gates themselves implement Boolean algebra physically, turning abstract logical operations into real voltage levels that drive everything from smartphones to spacecraft.
You're being tested on more than just memorizing truth tables. Exam questions will ask you to recognize functional equivalence between gate combinations, identify universal gates that can build any circuit, and apply gates to practical problems like error detection, arithmetic operations, and signal conditioning. Don't just memorize what each gate outputs. Know why you'd choose one gate over another and how gates combine to create complex logic functions.
These three gates form the foundation of Boolean algebra. Every other gate can be built from some combination of AND, OR, and NOT, so mastering them is the key to analyzing any digital circuit.
Truth table for a 2-input AND:
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Truth table for a 2-input OR:
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
| 0 | 1 |
| 1 | 0 |
Compare: AND vs. OR. Both combine multiple inputs, but AND requires unanimous agreement while OR requires only one vote. If an exam asks about fail-safe design, OR gates trigger on any fault; AND gates require all conditions to align.
These gates earn the "universal" designation because you can construct ANY logic function using only one type. This isn't just a theoretical curiosity. Manufacturing efficiency and circuit standardization make universal gates incredibly practical, since a factory only needs to produce one type of gate to build any circuit.
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Notice the output column is the exact inverse of the AND truth table.
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 0 |
Compare: NAND vs. NOR. Both are universal, but NAND gates typically require fewer transistors in CMOS technology, making them the industry standard. Know both for exams, but recognize NAND's practical dominance.
To prove NAND is universal, you need to show it can replicate NOT, AND, and OR. Here's how:
Since NOT, AND, and OR can produce any Boolean function, and NAND can produce all three, NAND alone can build anything.
These gates handle parity and equality. You use them when you care about whether inputs match or differ, not just whether they're high or low. They're essential for arithmetic circuits and data integrity checking.
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Compare: XOR vs. XNOR. They're logical complements. XOR detects difference (useful for finding errors), while XNOR detects equality (useful for confirming matches).
| Concept | Best Examples |
|---|---|
| Basic Boolean Operations | AND, OR, NOT |
| Universal Gates | NAND, NOR |
| Exclusive/Parity Operations | XOR, XNOR |
| Requires ALL inputs HIGH to activate | AND (output HIGH), NAND (output LOW) |
| Requires ANY input HIGH to activate | OR (output HIGH), NOR (output LOW) |
| Equality/Difference Detection | XNOR (same = HIGH), XOR (different = HIGH) |
| Binary Arithmetic Applications | XOR (sum bit), AND (carry bit) |
| Error Detection | XOR, XNOR |
Which two gates are classified as universal gates, and what does "universal" mean in this context?
You need a gate that outputs HIGH only when exactly one of two inputs is HIGH. Which gate do you use, and what is its Boolean expression?
Compare and contrast the AND and NAND gates: How do their truth tables relate to each other, and why might a designer choose NAND over AND in manufacturing?
If you're designing a circuit to check whether two binary signals are equal, which gate serves as a single-bit comparator? Write the Boolean condition it implements.
Implement an OR gate using only NAND gates. Describe the configuration step by step, and explain why this demonstrates NAND's universal property.