TIMED REVISION · 1-MINUTE PANIC SHEETS

Digital Logic 10-Minute Rapid Revision

For the last few minutes before the exam hall: one core rule per topic, the formulas you must remember, and the traps that cost marks.

PANIC SHEET 01 · Boolean Algebra, Canonical Forms & K-Map Minimization

Boolean Axioms, De Morgan's, Canonical SOP/POS & Dual Functions

Full Lesson →
CORE INVARIANT ANCHOR:

“Boolean algebra operates on two-valued lattices ({0, 1}, +, *, '). The Duality Principle swaps (+ <-> *) and (0 <-> 1) while leaving variables unchanged. Self-dual functions equal their own dual: f = f_D.”

Must-Remember Principles:
  • —Consensus Theorem: AB + A'C + BC = AB + A'C (the redundant term BC contains literals present with opposite polarities in AB and A'C). Dual form: (A + B)(A' + C)(B + C) = (A + B)(A' + C).
  • —De Morgan's Laws: (A + B)' = A' * B' and (A * B)' = A' + B'. Generalized: (x_1 + x_2 + ... + x_n)' = x_1' * x_2' * ... * x_n'.
  • —Duality Theorem: If an identity f(x_1, ..., x_n, +, *, 0, 1) = g(...) holds, then f_D(x_1, ..., x_n, *, +, 1, 0) = g_D(...) holds.
  • —Self-Dual Functions: A function is self-dual iff f(x_1, ..., x_n) = (f(x_1', ..., x_n'))'. Number of Boolean functions of n variables = 2^{2^n}. Number of self-dual functions = 2^{2^{n-1}}.
  • —Canonical SOP (Sum of Products): Sum of minterms m_i where every variable appears in true or complemented form. Canonical POS (Product of Sums): Product of maxterms M_i.
  • —Minterm and Maxterm Relation: M_i = (m_i)'. Hence f = Sum m(minterms) = Prod M(missing minterms).
Critical Exam Pitfalls:
  • —Do NOT complement variable literals when finding the DUAL of a function. Complementing literals produces the COMPLEMENT of the dual, which is NOT the dual itself.
  • —A self-dual function CANNOT contain both a minterm m_i and its bitwise complement m_{2^n - 1 - i}; it must contain exactly one from each complementary pair.
PANIC SHEET 02 · Boolean Algebra, Canonical Forms & K-Map Minimization

Karnaugh Maps, Prime Implicants & Don't Cares

Full Lesson →
CORE INVARIANT ANCHOR:

“A Prime Implicant (PI) cannot be merged into any larger group. An Essential Prime Implicant (EPI) covers at least one minterm not covered by any other PI. All EPIs MUST be in the minimal SOP.”

Must-Remember Principles:
  • —Gray Code Adjacency: K-map row/column sequences: 00, 01, 11, 10. Only 1 bit changes between adjacent cells and wrap-around boundaries.
  • —Group Size Rule: Groups must be powers of 2 (1, 2, 4, 8, 16...). A group of size 2^k eliminates k variables from the product term.
  • —Don't-Care (X) Strategy: Include 'X' in groups ONLY if it enlarges a group of 1s (eliminating more variables). NEVER create a group containing only 'X's.
  • —Minimal SOP Procedure: 1. Identify all PIs. 2. Identify all EPIs. 3. Select all EPIs. 4. Cover remaining 1s with minimal number of non-essential PIs.
  • —Minimal POS Procedure: Group 0s on the K-map to obtain f', then apply De Morgan's theorem (or directly group maxterms).
Critical Exam Pitfalls:
  • —Corner groups wrap around in 4-variable K-maps: minterms (0, 2, 8, 10) form a group of 4 giving B'D'. Missing corner groups is the most frequent K-map error.
  • —Minimal SOP is NOT always unique; a function can have multiple distinct minimal SOP representations with identical literal and term counts.
PANIC SHEET 03 · Number Representation & Computer Arithmetic Circuits

Signed Number Representations, 2's Complement & Overflow Arithmetic

Full Lesson →
CORE INVARIANT ANCHOR:

“In 2's complement arithmetic, subtraction A - B is performed as A + (2's complement of B). Overflow occurs iff two numbers of the SAME sign are added and produce a result of the OPPOSITE sign: V = C_in XOR C_out into/out of the MSB.”

Must-Remember Principles:
  • —N-Bit Representation Ranges:
  • — Unsigned: [0, 2^n - 1]
  • — Signed Magnitude: [-(2^{n-1} - 1), +(2^{n-1} - 1)] (two zeros: +0 and -0)
  • — 1's Complement: [-(2^{n-1} - 1), +(2^{n-1} - 1)] (two zeros: +0 and -0)
  • — 2's Complement: [-2^{n-1}, +(2^{n-1} - 1)] (unique zero, asymmetric negative range)
  • —2's Complement Negation Rule: Invert all bits and add 1, OR scan from right to left, keep all bits up to and including the first '1', and flip all remaining bits to the left.
  • —Sign Extension: To convert an n-bit 2's complement number to m bits (m > n), replicate the MSB (sign bit) into all (m - n) upper bit positions.
  • —Overflow Formula: V = A_{n-1} * B_{n-1} * S_{n-1}' + A_{n-1}' * B_{n-1}' * S_{n-1} = C_n XOR C_{n-1}.
Critical Exam Pitfalls:
  • —Adding numbers of OPPOSITE signs can NEVER cause arithmetic overflow.
  • —In 2's complement, the most negative number -2^{n-1} (e.g., 1000 for n=4, which is -8) cannot be negated in n bits because +8 exceeds the representation range.
PANIC SHEET 04 · Number Representation & Computer Arithmetic Circuits

Adders, Subtractors, Ripple Carry vs Carry Lookahead Adders

Full Lesson →
CORE INVARIANT ANCHOR:

“Ripple Carry Adders suffer from O(n) linear delay because each stage must wait for the carry from the previous stage. Carry Lookahead Adders (CLA) compute all carries in parallel in O(1) constant delay using generate (G_i) and propagate (P_i) signals.”

Must-Remember Principles:
  • —Half Adder (HA): Sum = A XOR B; Carry = A * B. Requires 1 XOR + 1 AND gate.
  • —Full Adder (FA): Sum = A XOR B XOR C_in; Carry = AB + BC_in + AC_in = AB + C_in(A XOR B). Can be implemented using 2 HAs + 1 OR gate.
  • —Ripple Carry Adder (RCA) Delay: T_{RCA} = t_{FA(carry)} * n + t_{FA(sum)} = O(n).
  • —CLA Carry Generate: G_i = A_i * B_i (generates carry regardless of carry-in).
  • —CLA Carry Propagate: P_i = A_i XOR B_i (or A_i + B_i; propagates carry-in).
  • —Carry Equations: C_1 = G_0 + P_0 C_0; C_2 = G_1 + P_1 G_0 + P_1 P_0 C_0; C_3 = G_2 + P_2 G_1 + P_2 P_1 G_0 + P_2 P_1 P_0 C_0; C_4 = G_3 + P_3 G_2 + P_3 P_2 G_1 + P_3 P_2 P_1 G_0 + P_3 P_2 P_1 P_0 C_0.
  • —CLA Propagation Delay: 4-bit CLA computes all carries in exactly 2 gate delays (AND-OR levels) after P_i and G_i are available.
Critical Exam Pitfalls:
  • —In CLA, high fan-in restricts single-level lookahead to 4 bits in physical VLSI. For larger widths (16 or 64 bits), multi-level hierarchical (Block) CLAs are used.
  • —Full Subtractor: Difference = A XOR B XOR B_in; Borrow = A'B + B'(A XOR B)' ... = A'B + B_in(A XOR B)'.
PANIC SHEET 05 · Combinational Logic Modules & Circuit Synthesis

Multiplexers, Shannon's Expansion & Universal Logic Synthesis

Full Lesson →
CORE INVARIANT ANCHOR:

“A 2^n:1 MUX can implement ANY Boolean function of (n + 1) variables without external gates, and ANY function of n variables directly by connecting inputs to 0 or 1.”

Must-Remember Principles:
  • —MUX Output Equation: Y = Sum_{i=0}^{2^n - 1} m_i * I_i, where m_i is the minterm of select lines S_{n-1} ... S_0.
  • —Implementing (n + 1) variables with 2^n:1 MUX: Connect n variables to select lines. The data inputs I_i are assigned from {0, 1, x_{n+1}, x_{n+1}'}.
  • —Shannon's Decomposition: f(A, B, C) = A * f(1, B, C) + A' * f(0, B, C). A 2:1 MUX directly evaluates this with select line A.
  • —Tree Expansion of Multiplexers: A 16:1 MUX can be built using five 4:1 MUXes (4 in first stage, 1 in second stage), or two 8:1 MUXes + one 2:1 MUX.
  • —Number of 2:1 MUXes needed to build a 2^n:1 MUX = 2^n - 1.
Critical Exam Pitfalls:
  • —Ensure the order of select lines matches MSB and LSB conventions. Swapping S1 and S0 permutes data inputs and inverts the implemented Boolean logic.
  • —When an enable line (EN) is present, active-low enable (EN') forces output to 0 whenever EN = 1 regardless of select inputs.
PANIC SHEET 06 · Combinational Logic Modules & Circuit Synthesis

Decoders, Encoders, Priority Encoders & Code Converters

Full Lesson →
CORE INVARIANT ANCHOR:

“An n-to-2^n decoder generates all 2^n minterms. A Priority Encoder outputs the binary code of the highest-order active input, ignoring lower-order active inputs.”

Must-Remember Principles:
  • —Decoder Output: Active-high decoder outputs y_i = m_i. Active-low decoder outputs y_i' = (m_i)' = M_i (maxterm generator).
  • —Implementing Functions with Decoders: Any Boolean function can be implemented using an n-to-2^n decoder + an OR gate (for active-high) or a NAND gate (for active-low).
  • —Decoder Tree Expansion: To build an n-to-2^n decoder using k-to-2^k decoders: Use 2^{n-k} decoders in the second stage, and one (n-k)-to-2^{n-k} decoder to drive their enable lines.
  • —Priority Encoder: Resolves multiple simultaneous active inputs. A 4-to-2 priority encoder has inputs D3 (highest), D2, D1, D0 (lowest), valid flag V = D3 + D2 + D1 + D0, and outputs Y1 = D3 + D2, Y0 = D3 + D2' D1.
Critical Exam Pitfalls:
  • —Commercial decoders (e.g., 74LS138) have active-LOW outputs. Combining active-low decoder outputs to form a function requires a NAND gate, NOT an OR gate!
  • —Do not forget the Valid (V) output of priority encoders, which distinguishes between input `0001` (D0 active) and `0000` (all inactive).
PANIC SHEET 07 · Combinational Logic Modules & Circuit Synthesis

Magnitude Comparators, Parity Generators & Programmable Logic (PROM, PLA, PAL)

Full Lesson →
CORE INVARIANT ANCHOR:

“PROM has fixed AND array (full decoder) + programmable OR array. PAL has programmable AND array + fixed OR array. PLA has BOTH programmable AND and programmable OR arrays.”

Must-Remember Principles:
  • —Programmable Device Architecture Comparison:
  • — PROM: Fixed AND array (decodes all 2^n minterms) + Programmable OR array. (Best for look-up tables, wastes chip area if few minterms used).
  • — PAL (Programmable Array Logic): Programmable AND array + Fixed OR array. (Fast, easy to program, but fixed number of product terms per OR gate).
  • — PLA (Programmable Logic Array): Programmable AND array + Programmable OR array. (Most flexible, allows product term sharing across outputs, but slower due to dual programmable links).
  • —1-Bit Comparator: A = B iff A XNOR B = 1; A > B iff A B' = 1; A < B iff A' B = 1.
  • —Parity Generator / Checker: Odd parity of n bits = XOR sum of all bits. Even parity = XNOR sum.
Critical Exam Pitfalls:
  • —Remember the flexibility hierarchy: PLA > PAL > PROM in terms of term sharing, but PAL > PLA in terms of operating propagation speed.
PANIC SHEET 08 · Sequential Circuits, Latches & Flip-Flop Dynamics

Latches, Flip-Flops (SR, JK, D, T), Conversions & Race-Around Condition

Full Lesson →
CORE INVARIANT ANCHOR:

“Latches are level-triggered; Flip-Flops are edge-triggered. The Race-Around condition occurs in level-triggered JK flip-flops when J=K=1 and pulse width t_p > t_{pd}.”

Must-Remember Principles:
  • —Characteristic Equations:
  • — SR Flip-Flop: Q_{next} = S + R' Q (Constraint: S * R = 0)
  • — JK Flip-Flop: Q_{next} = J Q' + K' Q
  • — D Flip-Flop: Q_{next} = D
  • — T Flip-Flop: Q_{next} = T XOR Q = T Q' + T' Q
  • —Excitation Tables (Transition Q -> Q_{next}):
  • — 0 -> 0: S=0, R=X | J=0, K=X | D=0 | T=0
  • — 0 -> 1: S=1, R=0 | J=1, K=X | D=1 | T=1
  • — 1 -> 0: S=0, R=1 | J=X, K=1 | D=0 | T=1
  • — 1 -> 1: S=X, R=0 | J=X, K=0 | D=1 | T=0
  • —Race-Around Condition Elimination: (1) Master-Slave flip-flop, (2) Edge-triggered flip-flop, (3) Ensuring clock pulse width t_p < t_{pd(FF)}.
Critical Exam Pitfalls:
  • —In SR latch using NOR gates, S=1 sets Q=1; but in SR latch using NAND gates (S'R' latch), the inputs are active-low!
  • —Do not forget the invalid condition S=R=1 in SR flip-flops, which forces both Q and Q' to 0 (or 1 in NAND latches), violating complementarity.
PANIC SHEET 09 · Sequential Circuits, Latches & Flip-Flop Dynamics

Synchronous & Asynchronous (Ripple) Counter Synthesis & Modulo States

Full Lesson →
CORE INVARIANT ANCHOR:

“An Asynchronous (Ripple) counter cascades clock signals (Q of flip-flop i clocks flip-flop i+1). A Synchronous counter clocks all flip-flops simultaneously, achieving much higher operating frequency.”

Must-Remember Principles:
  • —Ripple Counter Clock Polling Rules:
  • — Negative-edge triggered FF: Clock from Q -> UP Counter; Clock from Q' -> DOWN Counter.
  • — Positive-edge triggered FF: Clock from Q -> DOWN Counter; Clock from Q' -> UP Counter.
  • —Ripple Counter Delay: T_{delay} = n * t_{pd(FF)}. Maximum frequency: f_{max} = 1 / (n * t_{pd(FF)}).
  • —Mod-N Counter Requirement: Number of flip-flops n must satisfy: 2^{n-1} < N <= 2^n.
  • —Synchronous Counter Design Procedure: 1. State diagram with N states. 2. State table with present state Q_i and next state Q_i^+. 3. Flip-flop excitation inputs. 4. K-maps for each FF input. 5. Verify unused state lock-out.
  • —Ring Counter vs Johnson Counter (n flip-flops):
  • — Ring Counter: Modulo = n (states: 1000, 0100, 0010, 0001).
  • — Johnson (Twisted Ring) Counter: Modulo = 2n (states: 0000, 1000, 1100, 1110, 1111, 0111, 0011, 0001).
Critical Exam Pitfalls:
  • —Asynchronous counters produce transient 'glitches' on intermediate output transitions due to cumulative delay, making them dangerous for decoding logic without strobe gates.
  • —Always check where unused states go in a synchronous counter. If an unused state transitions into a cycle of other unused states, the counter suffers from Lock-Out and is NOT self-correcting.
PANIC SHEET 10 · Shift Registers, Finite State Machines & Timing Constraints

Shift Registers, FSMs (Mealy/Moore) & Setup/Hold Time Timing Analysis

Full Lesson →
CORE INVARIANT ANCHOR:

“Moore machine outputs depend ONLY on the present state. Mealy machine outputs depend on present state AND present inputs. Minimum clock period T_clk >= t_{cq(max)} + t_{comb(max)} + t_{setup} - t_{skew}.”

Must-Remember Principles:
  • —Mealy vs Moore Output Comparison:
  • — Moore Machine: Output = lambda(State). Changing input changes output only on the NEXT clock edge. Requires generally more states than Mealy.
  • — Mealy Machine: Output = lambda(State, Input). A change in input can change the output IMMEDIATELY asynchronously (prone to glitches).
  • —Shift Register Types: SISO (Serial In Serial Out - n clock pulses to load, n to read), SIPO (1 to read), PISO (1 to load, n to read), PIPO (1 to load, 1 to read).
  • —Setup Time Constraint (Limits Max Speed): T_{clk} >= t_{cq(max)} + t_{comb(max)} + t_{setup} - t_{skew}. Max frequency f_{max} = 1 / T_{clk(min)}.
  • —Hold Time Constraint (Prevents Race Through): t_{cq(min)} + t_{comb(min)} >= t_{hold} + t_{skew}. NOTE: Hold time is INDEPENDENT of clock period T_clk!
  • —Clock Skew definition: t_{skew} = T_{clk(dest)} - T_{clk(source)}. Positive skew helps setup time but harms hold time.
Critical Exam Pitfalls:
  • —Slowing down the clock (increasing T_clk) NEVER fixes a hold time violation because T_clk does not appear in the hold time inequality!
  • —In sequence detector design, check whether overlapping sequences are allowed. An overlapping detector reuses the suffix of an existing match as the prefix of the next match.