Comparison

SR vs JK vs D Flip-Flop

In the 74HC74 dual D flip-flop, the output always follows the D input at the clock edge — no ambiguity, no forbidden state. The SR flip-flop built from NAND gates breaks the moment S=1, R=1 is applied, sending the output to an undefined level. That single difference drives every real design decision between these three latching elements, from shift registers to debounce circuits.

EEE, ECE, EI

Side-by-side comparison

ParameterSRJK
InputsS (Set), R (Reset)JK: J (Set), K (Reset) | D: single D
Forbidden/Invalid StateS=1, R=1 is forbiddenJK: none | D: none
Toggle ConditionNot directly possibleJK: J=1, K=1 toggles | D: not direct
Characteristic EquationQ_next = S + R'Q (with SR≠1)JK: Q_next = JQ' + K'Q | D: Q_next = D
Race-Around ConditionPossible in level-triggered SRJK level-triggered: yes | D edge-triggered: no
Typical ICCD4043 (SR NAND latch)JK: 74HC107 | D: 74HC74
Conversion ComplexityBase elementJK: SR + feedback | D: SR with inverter
Use in CountersRarely usedJK: ripple counters (74HC90) | D: shift registers
Setup/Hold Time (typical 74HC)~5 nsJK: ~7 ns | D: ~3 ns
Power (74HC, 5V)Low — microwatts staticSimilar across all three in CMOS

Key differences

The SR flip-flop has the forbidden state S=R=1, which produces undefined output in NAND implementations — this is why it is never used alone in counters. JK eliminates this by toggling when J=K=1, but level-triggered JK (74HC107) suffers race-around if the clock pulse is wider than propagation delay; edge-triggering fixes this. D flip-flop (74HC74) eliminates both issues: one input, no forbidden state, clocks data cleanly on the rising edge at ~3 ns setup time, making it the default element for registers and pipelines.

When to use SR

Use the SR flip-flop when you need a simple set-reset latch for debouncing a mechanical switch with two NAND gates (4011), where the S=R=1 condition physically cannot occur.

When to use JK

Use the D flip-flop (74HC74) whenever you need to register data on a clock edge — shift registers, pipeline stages, and all synchronous counter designs rely on its single-input, no-forbidden-state behaviour.

Recommendation

For placement tests and university design problems, choose the D flip-flop as your default. It converts cleanly to JK or SR and is the building block of every shift register and synchronous counter question you will face.

Exam tip: In GATE and university exams, the most common question is converting one flip-flop type to another — memorise the JK-to-D conversion (D = JQ' + K'Q simplified) and the D-to-T conversion.

Interview tip: Interviewers at core VLSI and embedded companies expect you to explain race-around in JK flip-flops and immediately state that master-slave or edge-triggering resolves it, citing the 74HC107 as a real example.

More Digital Electronics comparisons