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

JK Flip-Flop with Asynchronous Preset and Clear

MediumLogic CircuitBuild

Commercial flip-flops require reliable startup states before the first clock edge arrives in the system. Active-low asynchronous preset and clear pins bypass the synchronous logic to initialize the output state immediately.

Implement a rising-edge triggered JK flip-flop with active-low asynchronous preset (PRE_bar) and clear (CLR_bar) inputs. The asynchronous controls must force the output state regardless of the clock signal. When both asynchronous controls are asserted simultaneously, both outputs are forced high, matching the standard 74LS76 specification.

| PRE_bar | CLR_bar | CLK | J | K | Q | Q_bar | |-----------|-----------|-------|-----|-----|-----|---------| | 0 | 1 | X | X | X | 1 | 0 | | 1 | 0 | X | X | X | 0 | 1 | | 0 | 0 | X | X | X | 1 | 1 | | 1 | 1 | ↑ | 0 | 0 | Q | Q_bar | | 1 | 1 | ↑ | 0 | 1 | 0 | 1 | | 1 | 1 | ↑ | 1 | 0 | 1 | 0 | | 1 | 1 | ↑ | 1 | 1 | Q_bar | Q |

Constraints

  • Implement PRE_bar and CLR_bar as true asynchronous controls that bypass the clock network entirely.
  • Do not route PRE_bar or CLR_bar into the synchronous J or K combinational input paths.
  • Implement standard rising-edge triggered synchronous behavior when both asynchronous controls are inactive.
  • Force both Q and Q_bar to 1 when PRE_bar and CLR_bar are simultaneously driven to 0.

Topics

Sequential LogicLatches and Flip-FlopsAsynchronous ControlJK Flip-Flop

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