3.4.4 · D4Sequential Circuits

Exercises — JK and T flip-flops

2,117 words10 min readBack to topic

This is the self-testing companion to the JK & T topic note. Every problem below states cleanly what to find, then hides a full solution in a collapsible callout so you can try first and reveal after.

Two facts you will reuse constantly — keep them in view:


L1 — Recognition

Recall Solution

is the set row. Plug into the equation: Answer: . WHAT we did: substituted the given inputs and . WHY: the equation is the table, so it must agree — and it says "set".

Recall Solution

gives 1 only when the inputs disagree; and disagree, so the result is . Answer: (hold). always holds — it never changes the stored bit.

Recall Solution

. Toggle means : whatever is stored, flip it. Check: . ✓


L2 — Application

Recall Solution

Use step by step.

  • Edge 1 (, set): . → .
  • Edge 2 (, toggle): . → .
  • Edge 3 (, reset): . → . Sequence of : .
Recall Solution

⇒ toggle every edge: after edges is WHAT this looks like: the output completes ONE full cycle (0→1→0) every two clock edges (see figure). So — a ÷2 divider. This is the building block of a ripple counter.

Figure — JK and T flip-flops
Recall Solution

To move from 1 to 0 we must reset, so . And ? only ever acts when (it multiplies ); we're at , so is irrelevant → (don't care). Answer: .


L3 — Analysis

Recall Solution

The excitation table:

J K
0→0 0 X
0→1 1 X
1→0 X 1
1→1 X 0

Read the transitions in order:

  • :
  • :
  • :
  • :

WHY don't-cares appear: e.g. in we just must not reset, so ; is idle at , hence .

Recall Solution

Compute . But always (a bit and its complement can't both be 1). So means and are never simultaneously 1, for any . The SR forbidden row is therefore structurally impossible — not hidden, genuinely eliminated. (See SR Flip-Flop.)

Recall Solution
  • T: . Forced, no freedom.
  • JK: needs — a don't-care on . WHY it matters: don't-cares are free choices a K-map can fill with whatever minimises the logic, so JK-based designs often need fewer gates. T has no don't-cares (its input is fully determined by ).

L4 — Synthesis

Recall Solution

List states and required transitions, then per bit:

count next
0 00 01 0 1
1 01 10 1 1
2 10 11 0 1
3 11 00 1 1
  • is 1 in every row (LSB toggles every clock).
  • exactly when (MSB toggles when LSB is 1).

Design: . This is a ripple counter — feed to clock/enable the next stage. Each bit toggles at half the rate of the one below (÷2 per stage), matching L2.2.

Recall Solution

Wire and . Substitute into the JK equation: So regardless of — exactly a D flip-flop. WHY it works: setting makes "reset" active precisely when , and "set" active when , so the stored bit always follows .


L5 — Mastery

Recall Solution

Substitute into with : So always — this wiring is a permanent toggler, identical to a T flip-flop with . From : — a ÷2 divider. (Compare L2.2: same waveform, different construction.)

Recall Solution

Desired: when , else . So the target is (set-dominant hold). Then Evaluate the cases:

  • : , so → toggles from 0 to 1 (sets), and if already 1 gives (harmless hold — matching the controller assumption).
  • : , so → hold. Answer: , which simplifies to (set only when currently 0). Verify: only when — precisely the one edge where a toggle is needed to reach 1.
Recall Solution

Each stage divides by 2, so after stages MHz. Set . Answer: 4 stages give . (Check per stage: 8, 4, 2, 1 MHz.)


Connections

  • SR Flip-Flop — the forbidden-state fix proven in L3.2
  • D Flip-Flop — reconstructed from a JK in L4.2
  • Edge-Triggering and Master-Slave — why L2's "one update per edge" rule holds
  • Ripple Counters — the L4.1 and L5.3 divider chains
  • Excitation Tables and Sequential Design — the reverse-lookup method of L3.1 and L4.1
  • Karnaugh Maps — where the don't-cares of L3.3 pay off
  • XOR Gate — the heart of every T equation used above