CodiodeCodiode
Home
Problem Solving
Skill Tracks
My Assignments
Contests
Leaderboard
Community
Settings
Codiode/Problems/Sequential Logic

JK to T Conversion: T Flip-Flop from JK Flip-Flop

HardLogic CircuitBuild

Counters and frequency dividers rely on toggle elements to track state changes across clock cycles. A universal JK flip-flop can act as a dedicated toggle element by constraining its inputs to match the required state transitions.

The circuit must produce T flip-flop behavior using a single JK flip-flop. The output Q_next must hold its current state Q when T is 0, and toggle its state when T is 1.

| T | Q | Q_next | |-----|-----|----------| | 0 | 0 | 0 | | 0 | 1 | 1 | | 1 | 0 | 1 | | 1 | 1 | 0 |

Constraints

  • Use exactly one JK flip-flop.
  • Do not use any additional logic gates.
  • Route the input T to the appropriate ports on the JK flip-flop.

Topics

LatchesSequential LogicFlip-Flops

Solve this problem

Place the gates, wire them up and watch the signals settle. Every submission runs on the same simulation engine that grades it.

This problem is part of Codiode Pro. The statement above is free to read.

Sign in to solveSee what Pro unlocks

The circuit builder and code editor need a desktop screen. On a phone, read the problem here and open it on a laptop to solve.

Related problems

  • 3-bit Ripple Counter from Toggle Flip-FlopsEasy
  • D Latch from a 2:1 MUXEasy
  • 2-bit Ring CounterEasy
  • T Flip-Flop from a D Flip-FlopEasy
  • Handshake Deadlock Due to Early ResetHard
  • Reconvergence of Individually Synchronized BitsHard
  • Debug: Asynchronous Clear GlitchHard
  • Clock Gate Enable Crossing DomainsHard

Browse all problems · Learning tracks