← ProblemsCircuits / Sequential Logic / Latches and Flip-Flops

JK flip-flop

36%flip-flopsprocedures

A JK flip-flop behaves like this at every rising edge of the clock (where Qold is the output just before the edge):

JKQ (next)
00Qold (hold)
010 (reset)
101 (set)
11~Qold (toggle)

Implement a JK flip-flop using only a D flip-flop and gates — that is, compute the D input from j, k, and the current Q. The characteristic equation is Qnext = (J AND ~Q) OR (~K AND Q).