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

3-Bit Johnson Counter

EasyLogic CircuitBuild

Glitch-free multiphase clock generation and digital position encoders rely on twisted ring counters to produce overlapping wave patterns. The Johnson counter is a specialized shift register that produces exactly 2N states for an N-bit width, avoiding the decoding spikes of standard binary counters.

Construct a 3-bit Johnson counter with an active-high synchronous reset. The outputs Q2, Q1, and Q0 must shift right on each active clock edge. The inverted output of the final stage Q0 feeds back into the first stage Q2.

| Cycle | rst | Q2 | Q1 | Q0 | |-------|-------|------|------|------| | 0 | 1 | 0 | 0 | 0 | | 1 | 0 | 1 | 0 | 0 | | 2 | 0 | 1 | 1 | 0 | | 3 | 0 | 1 | 1 | 1 | | 4 | 0 | 0 | 1 | 1 | | 5 | 0 | 0 | 0 | 1 | | 6 | 0 | 0 | 0 | 0 |

Constraints

  • Use exactly three D flip-flops.
  • Implement a synchronous active-high reset.
  • Do not use any external combinational logic other than the feedback inverter.

Topics

CountersState MachinesShift Registers

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