Codiode

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.

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.

Part of Counters

Problem 41 of 139 in the Counters track.

Related problems

Browse all problems · Digital logic design practice problems · Learning tracks

Solve this on a laptopSend yourself the link and continue there.