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

Mod-60 Counter

HardLogic CircuitBuild

Digital clocks, timers, and stopwatches rely on cascaded modulus counters to track time accurately. The seconds tracking module requires a multi-stage counter that loops continuously from 00 to 59.

The circuit must implement a Mod-60 counter using two cascaded stages: a ones digit (ones) and a tens digit (tens). The ones output must increment every clock cycle to count from 0 to 9. When ones equals 9, it must generate a terminal count signal that enables the tens stage to increment on the following clock cycle. The tens output must count from 0 to 5. At the maximum count of 59 (where tens equals 5 and ones equals 9), both stages must roll over to 0 on the next clock edge. An asynchronous reset rst must clear both digits to 0 immediately when asserted high.

Constraints

  • Output exactly 4 bits for ones and 3 bits for tens.
  • Use cascaded sequential logic components to separate the two digit stages.
  • Derive the increment enable signal for the tens stage strictly from the terminal count of the ones stage.
  • Do not build a single 6-bit binary counter and apply mathematical division to extract digits.

Topics

BCDCountersCascadingModulo

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