- 2076 Chaitra · 2+4 marks
Master-slave JK flip-flop
Short answer
Combinational circuits have no memory, outputs depend only on current inputs; sequential circuits have memory and feedback, often clocked. A master-slave JK flip-flop uses two latches: the master samples J,K when CLK=1, and the slave copies the master at the falling edge. This prevents output feedback from causing multiple toggles (race-around).
Differentiate between combinational and sequential circuit. Explain working principle of master slave JK flip-flop.
Combinational vs sequential circuit
| Point | Combinational circuit | Sequential circuit |
|---|---|---|
| Output depends on | Present inputs only | Present inputs and past state |
| Memory | No memory element | Has memory (latches, flip-flops) |
| Feedback | No feedback path | Output fed back to input |
| Clock | Not needed | Usually needed (synchronous) |
| Described by | Truth table | State table / state diagram |
| Examples | Adder, MUX, decoder | Flip-flop, register, counter |
Master-slave J-K flip-flop
A master-slave J-K flip-flop is two clocked latches in series: the master is enabled by CLK and the slave by the inverted clock CLK'. The final outputs Q and Q' are fed back to the master's input gates. It was designed to remove the race-around condition of the level-triggered J-K flip-flop.
+---------+ Qm +---------+
J -----| MASTER |------->| SLAVE |----> Q
| SR latch| | SR latch|
K -----| (gated) |------->| (gated) |----> Q'
+---------+ Qm' +---------+
^ ^
CLK --------+-----[NOT]--------+
Master enabled when CLK=1, slave when CLK=0.
Q' is fed back to the J gate and Q to the
K gate of the master.
Working principle
- CLK = 1 (master active, slave disabled): the master reads J, K and the fed-back Q, Q' and sets its outputs Qm, Qm' (J = 1, K = 0 sets Qm; J = 0, K = 1 resets Qm; J = K = 1 makes Qm the complement of Q; J = K = 0 holds). The slave is closed, so Q does not change.
- CLK goes 1 to 0: the master is disabled and freezes Qm. The slave becomes enabled.
- CLK = 0 (slave active): the slave copies the master (Q = Qm). Since the master is closed, changing Q cannot affect the master during this time.
- So the output changes only once per clock pulse, at the falling edge, and Q never feeds back into an active master. Toggling for J = K = 1 happens only once, which removes race-around.
| J | K | Q after falling edge |
|---|---|---|
| 0 | 0 | Q (no change) |
| 0 | 1 | 0 (reset) |
| 1 | 0 | 1 (set) |
| 1 | 1 | Q' (toggle once) |
CLK __|‾‾‾‾|____|‾‾‾‾|____
Qm __|‾‾‾‾‾‾‾‾‾|________ (J = K = 1)
Q _______|‾‾‾‾‾‾‾‾‾|____
master slave copies at falling edge
A drawback is that J and K must not change while CLK = 1 (the master can "catch" a 1), so the inputs should be stable during the high period.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Edge triggered JK flip-flop circuit · Digital Logic, chapter 6
- Positive edge JK flip-flop and its drawbacks · Digital Logic, chapter 6
- SR drawback; edge triggered JK flip-flop · Digital Logic, chapter 6 · asked 3×
- SR to JK flip-flop conversion · Digital Logic, chapter 6 · asked 2×
- JK flip-flop characteristic and excitation tables · Digital Logic, chapter 6 · asked 2×
- T to JK flip-flop conversion · Digital Logic, chapter 6 · asked 2×
- Combinational vs sequential; JK flip-flop · Basic Electronics Engineering, chapter 6
- JK flip-flop operation and truth table · Basic Electronics Engineering, chapter 6
- VHDL dataflow/behavioural models; JK flip-flop · Embedded System, chapter 9
- VHDL COMPONENT; JK flip-flop with PROCESS · Embedded System, chapter 9