Skip to content
GATEiit

GATE EE · Analog and Digital Electronics

Combinatorial and sequential logic circuits

Boolean minimization via K-maps, NAND/NOR universal synthesis, combinational adders/comparators, SR/JK/D/T flip-flops, ripple vs synchronous counters, and setup/hold timing.

Before you start

This topic comes before: A/D and D/A converters, Demultiplexers, Multiplexers, Phase, Time and Frequency measurement

Concept notes

1. Boolean Simplification, Universal Gates, and Adders

Systematic digital minimization groups adjacent 2k cells on Gray-code Karnaugh maps (including corner/edge wraparound) to eliminate complemented literals into minimal Sum-of-Products (SOP) or Product-of-Sums (POS):

  • Universal NAND/NOR realizations: XOR gate A⊕B=ABˉ+AˉB builds in 4 two-input NAND gates (or 5 two-input NOR gates); EX-NOR takes 5 NANDs (or 4 NORs).
  • Full Adder & Lookahead Carry: S=A⊕B⊕Cin, Cout=AB+Cin(A⊕B) consumes 2 Half Adders + 1 OR gate. Ripple-carry propagation scales linearly (O(n)), whereas Carry-Lookahead computes Gi=AiBi,Pi=Ai⊕Bi in constant gate depth.
AB1234ABA ⊕ BXOR = 4 two-input NANDs(5 NORs); XNOR = 5 NANDs (4 NORs)Full adder = 2 HA + 1 ORHAABHAA⊕BCinABSCout
XOR built from four 2-input NAND gates, and a full adder from two half adders plus an OR gate (S = A⊕B⊕Cin, Cout = AB + Cin(A⊕B)).

2. Latches, Flip-Flops, Characteristic & Excitation Tables

Flip-Flop Characteristic Equation Qn+1 Key Excitation Transitions (0→0, 0→1, 1→0, 1→1)
SR (SR=0) S+RˉQn S∈{0,1,0,×}, R∈{×,0,1,0}
JK (no invalid state) JQˉn+KˉQn J∈{0,1,×,×}, K∈{×,×,1,0}
D (Data / Delay) D D=Qn+1 directly
T (Toggle) T⊕Qn T=Qn⊕Qn+1 (0,1,1,0)

3. Counters, Shift Registers, and Setup / Hold Clock Limits

  • Modulus (M) counters: Minimum flip-flops n≥⌈log⁡2M⌉. An n-stage Ring Counter uses n states (Mod-n); a Twisted-Ring (Johnson) Counter feeds Qˉn−1 back into D0 for 2n states (Mod-2n, leaving 2n−2n unused lock-up states).
  • Timing checks: For two synchronous registers separated by combinational delay tcomb:
    1. Setup time margin (sets maximum clock frequency): Tclk≥tclk-q,max+tcomb,max+tsetup−tskew
    2. Hold time margin (independent of clock frequency): tclk-q,min+tcomb,min≥thold+tskew.

Formulas to remember

XOR & Ripple Full AdderRequires 2 Half Adders + 1 OR gate; 4 two-input NANDs build one XOR
S=A⊕B⊕Cin,Cout=AB+Cin(A⊕B)
JK & T Characteristic LawsTying J = K = 1 converts JK into continuous toggle T=1
Q+=JQˉ+KˉQ,Q+=T⊕Q
Ring & Johnson Mod Counts4-bit Johnson counter uses 8 valid states and divides input clock by 8
Ring: M=n,Johnson: M=2n
Maximum Synchronous Clock FrequencyPositive clock skew at destination adds to T_clk; negative skew tightens setup
fclk,max=1tcq,max+tpd,max+tsetup
Hold Time Safety InequalityHold violations fail regardless of how slowly the system clock runs
tcq,min+tpd,min≥thold+tskew

Common mistakes

  • Expecting slower clock frequency to cure a sequential hold violation (hold races occur on the same single clock edge: tcq+tpd<thold+tskew, requiring buffer delay insertion instead).
  • Forgetting corner wrap-around adjacency in 4-variable K-maps (squares m0,m2,m8,m10 form one 4-cell quad BˉDˉ).
  • Using Johnson mod count (2n) for a plain Ring Counter (n).
  • Writing fmax⁡=1/tff instead of 1/(n⋅tff) for asynchronous ripple counters.
  • Omitting redundant consensus terms when checking whether a K-map implementation prevents static-1 combinational glitches.

Worked examples

Try each step yourself, then reveal the working.

Example 1: K-Map Minimization With Don't-Care Terms

numerical

Simplify 4-variable Boolean function F(A,B,C,D)=∑m(0,2,8,10)+d(5,7,13,15). Count minimal literals.

  1. Step 1: Identify minterm group in 4-var K-map

    Try it on paper first.

Example 2: Designing a Synchronous Mod-6 Up-Counter via JK Flip-Flops

numerical

How many flip-flops are required for a Mod-6 synchronous counter (0→5), and how many unused binary states exist?

  1. Step 1: Find minimum flip-flop bit count n

    Try it on paper first.

Example 3: Synchronous Register Clock Max Frequency and Skew Calculation

numerical

Flip-flops have tcq=4 ns, tsetup=2 ns, thold=1 ns. Combinational logic between them has tpd=14 ns, and clock arrives at destination 2 ns later than source (positive skew +2 ns). Find fclk,max and check hold violation.

  1. Step 1: Compute minimum period T_clk with +2 ns positive skew

    Try it on paper first.

Example 4: Ripple vs Synchronous Counter Delay & Glitch Immunity

conceptual

A 4-bit asynchronous ripple counter uses flip-flops with tpd=10 ns each, compared with a synchronous parallel counter (tAND=5 ns,tff=10 ns). Explain maximum safe frequency and decoding spikes.

  1. Step 1: Sum cumulative ripple delay across 4 stages

    Try it on paper first.

Previous year questions

No official GATE EE question is tagged with this topic yet. The topic test below uses practice questions.

Topic test

8 questions: original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE EE syllabus; being checked by a reviewer. Updated 2026-12-04. Spotted a mistake? Use Report an issue on any question, or contact us.