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

JK Master-Slave Flip-Flop: Construction

MediumLogic CircuitBuild

Legacy digital systems relied on robust edge-triggered storage to prevent race conditions during state transitions. This architecture uses steering logic and a two-stage latch sequence to toggle state without oscillation.

The circuit must implement a negative-edge triggered JK flip-flop. The master stage captures the inputs and resolves the next state while CLK is high. The slave stage updates the final outputs Q and Q_bar when CLK transitions from high to low.

| J | K | CLK | Q | Q_bar | |-----|-----|-------|-----|---------| | 0 | 0 | ↓ | Q | Q_bar | | 0 | 1 | ↓ | 0 | 1 | | 1 | 0 | ↓ | 1 | 0 | | 1 | 1 | ↓ | Q_bar | Q |

Constraints

  • Construct the master and slave stages using basic logic gates or SR latches.
  • Place the J and K steering logic exclusively at the master stage inputs.
  • Route the toggle state feedback connections from the slave stage outputs back to the master stage inputs.
  • Do not use pre-built flip-flop components.

Topics

LatchesFlip-FlopsMaster-Slave

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