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

BCD Counter Sequence Error

MediumLogic CircuitDebug

A BCD (Binary-Coded Decimal) counter tracks digits from 0 to 9 and resets to 0 on the tenth clock cycle.

Expected behavior:

| State | Q3 | Q2 | Q1 | Q0 | |-------|------|------|------|------| | 0 | 0 | 0 | 0 | 0 | | 1 | 0 | 0 | 0 | 1 | | 2 | 0 | 0 | 1 | 0 | | 3 | 0 | 0 | 1 | 1 | | 4 | 0 | 1 | 0 | 0 | | 5 | 0 | 1 | 0 | 1 | | 6 | 0 | 1 | 1 | 0 | | 7 | 0 | 1 | 1 | 1 | | 8 | 1 | 0 | 0 | 0 | | 9 | 1 | 0 | 0 | 1 | | 10 (Resets to 0) | 0 | 0 | 0 | 0 |

Simulation shows the count sequence proceeding normally past 9. The counter reaches 11 (binary 1011) and then resets to 0 on the twelfth clock pulse. The counting period is incorrect because the terminal state is wrong.

Inspect the circuit and correct the fault.

Constraints

  • Do not add new logic gates or components.
  • Only modify the wiring of the reset decoding logic.
  • The counter must reset asynchronously exactly when it reaches state 10.

Topics

BCDDebugCounters

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

  • D Latch from a 2:1 MUXEasy
  • 2-bit Ring CounterEasy
  • 3-bit Ripple Counter from Toggle Flip-FlopsEasy
  • T Flip-Flop from a D Flip-FlopEasy
  • Edge Detector Delayed by Extra CycleMedium
  • Signed vs Unsigned Comparison FailureHard
  • Incomplete Case StatementEasy
  • Counter Wrapping at Wrong ValueEasy

Browse all problems · Learning tracks