IFT 211 · Digital Logic Design
Our notes
2 min readThe gates
- AND, OR, NOT as in Boolean algebra.
- NAND = NOT AND: 0 only when all inputs are 1.
- NOR = NOT OR: 1 only when all inputs are 0.
- XOR (A ⊕ B = A'B + AB'): 1 when the inputs differ. Used in adders, parity and comparators.
- XNOR: 1 when the inputs are equal.
Learn the symbols and truth tables of all seven.
Universal gates
NAND alone (or NOR alone) can make every function.
- NOT A = A NAND A.
- A AND B = (A NAND B) NAND (A NAND B).
- A OR B = (A NAND A) NAND (B NAND B).
Factories favour NAND because it is the cheapest gate in CMOS.
Worked example
Build F = AB + CD with NAND gates only. By De Morgan, F = ((AB)'(CD)')'. So: one NAND for A and B, one for C and D, and a third NAND of the two outputs: three 2-input NAND gates.
Physical properties
- Fan-in: number of inputs a gate has.
- Fan-out: how many gate inputs one output can drive without the voltage going out of range (standard TTL: 10).
- Propagation delay: time from an input change to the output change, a few nanoseconds for common gates. Delays add up along a path, setting the top speed of a circuit.
- Power dissipation and noise margin (how much noise a signal can take before it is misread).
- Timing diagrams show inputs and outputs against time, including the delay.
Worked example: delay
A signal passes through 4 gates in series, each with 8 ns delay. Total delay = 32 ns, so the inputs cannot change faster than about once every 32 ns (about 31 MHz).
Tri-state and open-collector outputs
- A tri-state output can be 0, 1 or high impedance (disconnected), controlled by an enable pin. Many devices share one bus, but only one drives it at a time.
- Open-collector/open-drain outputs can be wired together (wired-AND), used on I²C.
Logic families
- Diode logic and RTL (resistor-transistor): early, slow.
- TTL (transistor-transistor logic, 74 series): 5 V, robust, more power.
- ECL (emitter-coupled): very fast, high power.
- CMOS (4000 and 74HC series, and all modern chips): very low static power, high density. MOS technology made VLSI possible.
Integration scale
SSI (up to about 10 gates), MSI (10 to 100), LSI (100 to 10,000), VLSI (beyond): today's processors hold billions of transistors.
Exams usually ask
- Draw symbols and truth tables; build functions from NAND or NOR only.
- Define fan-in, fan-out and propagation delay; compare TTL and CMOS.
Common mistake
Treating XOR as OR: XOR is 0 when both inputs are 1.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
TTL NAND and AND gates | Logic Gates | Electronics Textbook
(opens allaboutcircuits.com in a new tab)
-
CMOS Gate Circuitry | Logic Gates | Electronics Textbook
(opens allaboutcircuits.com in a new tab)
-
Logic gate
(opens en.wikipedia.org in a new tab)
Wikipedia, Logic gate, CC BY-SA 4.0 · licence
-
Logic family
(opens en.wikipedia.org in a new tab)
Wikipedia, Logic family, CC BY-SA 4.0 · licence
-
MIT OpenCourseWare: 6.004 Computation Structures (Spring 2017)
Whole course: short lecture videos and worksheets on digital logic and computer design.
(opens ocw.mit.edu in a new tab)
MIT OpenCourseWare, MIT OpenCourseWare: 6.004 Computation Structures (Spring 2017), CC BY-NC-SA 4.0 · licence
-
NPTEL: Switching Circuits and Logic Design (IIT Kharagpur, Prof. Indranil Sengupta)
Video lectures, many hours in all: watch on Wi-Fi where you can.
(opens nptel.ac.in in a new tab)
NPTEL, NPTEL: Switching Circuits and Logic Design (IIT Kharagpur, Prof. Indranil Sengupta), CC BY-NC-SA 4.0 · licence
-
NPTEL: Digital Electronic Circuits (IIT Kharagpur, Prof. Goutam Saha)
Video lectures, many hours in all: watch on Wi-Fi where you can.
(opens nptel.ac.in in a new tab)
NPTEL, NPTEL: Digital Electronic Circuits (IIT Kharagpur, Prof. Goutam Saha), CC BY-NC-SA 4.0 · licence
Watch
-
Best pick Transistor Transistor Logic (TTL): TTL NAND Gate Circuit and Working
12 min · ≈ 54 MB · about ₦30
(opens youtube.com in a new tab)
-
CMOS Logic Gates Explained | Logic Gate Implementation using CMOS logic
28 min · ≈ 126 MB · about ₦71
(opens youtube.com in a new tab)
-
Transistor Logic Gates - NAND, AND, OR, NOR
19 min · ≈ 86 MB · about ₦48
(opens youtube.com in a new tab)
-
Digital Electronics 03 - Gates - Logic Families - TTL - CMOS - ECL
12 min · ≈ 54 MB · about ₦30
(opens youtube.com in a new tab)
-
Lecture - 8 Qualitative discussion on TTL Circuits
47 min · ≈ 212 MB · about ₦119
(opens youtube.com in a new tab)
Practise
-
Basic Logic Gates Worksheet (All About Circuits)
Questions with the answer under each one (tap "Reveal answer").
(opens allaboutcircuits.com in a new tab)
-
TTL Logic Gates Worksheet (All About Circuits)
Questions with the answer under each one (tap "Reveal answer").
(opens allaboutcircuits.com in a new tab)
-
CMOS Logic Gates Worksheet (All About Circuits)
Questions with the answer under each one (tap "Reveal answer").
(opens allaboutcircuits.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.