GateMCQSCIENTIFIC PREP LAB
PlanSign Up
INTERMEDIATEFrequently Tested 4 min read 25 views

Boolean Minimization, K-Maps, Multiplexers & Sequential Flip-Flop Counters

Universal NAND/NOR gate counts, Prime vs Essential Prime Implicants in 4-variable K-Maps, MUX universal logic realization, and JK/D/T Flip-Flop synchronous & ripple counters.

1. Universal Gate Counts & Consensus Theorem

The Consensus Theorem eliminates redundant terms without drawing a K-Map:

AB+A‾C+BC=AB+A‾CAB + \overline{A}C + BC = AB + \overline{A}C
Target Gate / FunctionMin 2-Input NAND GatesMin 2-Input NOR Gates
NOT (A‾\overline{A})11
AND (ABAB)23
OR (A+BA + B)32
XOR (A⊕BA \oplus B)45
XNOR (A⊙BA \odot B)54
Half Adder55
Full Adder99

2. K-Map Implicants & Combinational MUX Realization

  • Prime Implicant (PI): Largest possible power-of-2 group (1,2,4,8,161, 2, 4, 8, 16) of 1s (and optional Don’t Cares X) not contained inside any larger valid group.
  • Essential Prime Implicant (EPI): A PI covering at least one true minterm (1, never a Don’t Care X) that no other PI covers.
  • Universal 2n−1×12^{n-1} \times 1 MUX: Any nn-variable Boolean function can be implemented using a single 2n−1×12^{n-1} \times 1 Multiplexer plus at most one inverter (and zero extra gates if both polarities of the nn-th variable are available!).

3. Flip-Flop Excitation Tables & Counters

Flip-FlopCharacteristic Equation Q(t+1)Q(t+1)Key Exam Behavior
SRS+R‾QS + \overline{R}Q (with SR=0SR = 0)S=R=1S = R = 1 is invalid/forbidden
JKJQ‾+K‾QJ\overline{Q} + \overline{K}QJ=K=1J = K = 1 toggles; level-triggered suffers Race-Around when tp>tpdt_p > t_{pd}, cured by Master-Slave or edge triggering
DDDTransparent delay element; Q+=DQ^+ = D
TT⊕QT \oplus QFrequency divider (f/2f / 2) when T=1T = 1
Key Formula

Mod-NN Counter: Requires n=⌈log⁡2N⌉n = \lceil \log_2 N \rceil flip-flops and divides input clock frequency by NN (fout=fclk/Nf_{\text{out}} = f_{\text{clk}} / N). Ring counter with nn FFs is Mod-nn; Johnson (Twisted Ring) counter with nn FFs is Mod-2n2n!

4. Interactive 4-Variable K-Map Grouping & Prime Implicant Minimizer

Digital LogicGray-Code Wrap

Interactive 4-Variable K-Map Grouping & Prime Implicants

Gray-Code K-Map (AB \ CD) — Click any cell to toggle 0 / 1:
AB\CD
00
01
11
10
00
01
11
10
Active Minterms & Minimal SOP
Σm(0, 2, 5, 7, 8, 10, 13, 15)
F(A,B,C,D) = B̅·D̅ + B·D = B ⊙ D (2 Essential Prime Implicants)

5. Interactive 4×14 \times 1 Multiplexer Universal Logic Schematic

Digital LogicShannon Expansion

4×1 Multiplexer Universal Boolean Function Schematic

Realizing 3-Input Majority Carry F(A,B,C) = Σm(3, 5, 6, 7) via 4×1 MUX:
Shannon Expansion around (A,B) routes active channel I2 directly to output Y = 1!
4×1 MUXI0 = 0I1 = C (1)I2 = C (1)I3 = 1Y = 1S₁S₀ = 10

6. Interactive 3-Bit Synchronous Counter & Clock Divider Timing Waveforms

Digital LogicCLK ÷2 ÷4 ÷8 SVG

3-Bit Synchronous Counter & Clock Divider Timing Waveforms

Q₂Q₁Q₀ = 101₂ (5₁₀)
Freq Division: f(Q₀)=f/2 • f(Q₁)=f/4 • f(Q₂)=f/8
Q0 (LSB ÷2)Q1 (÷4)Q2 (MSB ÷8)
Key Formulas Summary
Minimum 2-Input NAND / NOR Gate Table
NOT=1,  AND=2/3,  OR=3/2,  XOR=4/5,  XNOR=5/4\text{NOT}=1,\; \text{AND}=2/3,\; \text{OR}=3/2,\; \text{XOR}=4/5,\; \text{XNOR}=5/4
Note: Formatted as NAND / NOR minimum gate count
Ripple Counter Maximum Clock Frequency
fmax⁡=1n⋅tpd+tstrobef_{\max} = \frac{1}{n \cdot t_{pd} + t_{\text{strobe}}}
Note: For synchronous counter: T_clk >= t_pd(FF) + t_comb + t_setup
#Digital Logic#K-Map#Multiplexer#Flip-Flops#Counters#NAND Gates

Practice Questions on This Chapter (5)

Q1GATE CS Digital LogicMCQEASY
+1M • -0.33

What is the minimum number of 2-input NAND gates required to implement a 2-input XOR function Y=A⊕BY = A \oplus B without complemented inputs?

⚡ Click an option above to verify instantly
Q2GATE CS Digital LogicMCQMEDIUM
+2M • -0.67

A 4-bit Johnson (Twisted-Ring) Counter is driven by a 24 MHz24\text{ MHz} clock signal. What is the output frequency at any flip-flop output QiQ_i?

⚡ Click an option above to verify instantly
Q3GATE CS Digital LogicMCQEASY
+2M • -0.67

Simplify the Boolean expression F(A,B,C)=AB+A‾C+BCF(A, B, C) = AB + \overline{A}C + BC to its minimal Sum-of-Products (SOP) form:

⚡ Click an option above to verify instantly
Q4GATE CS 2019NATEASY
+1M • 0 Neg

What is the minimum number of Flip-Flops required to build a synchronous MOD-20 counter?

Q5GATE CS 2023NATMEDIUM
+2M • 0 Neg

How many Prime Implicants (PI) does the 4-variable Boolean function F(A,B,C,D)=∑m(0,2,5,7,8,10,13,15)F(A, B, C, D) = \sum m(0, 2, 5, 7, 8, 10, 13, 15) possess?

Previous TopicIEEE-754 Floating-Point Standard & 2’s Complement ArithmeticNext Topic Combinational Adders, Carry-Lookahead & Bitwise Manipulation Logics (Animated)