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

Mod-12 Counter: Cascade of Mod-3 and Mod-4

HardLogic CircuitBuild

Digital clocks, timers, and multi-digit displays rely on cascaded sub-counters to track time efficiently. Decomposing a large modulus into smaller cascaded stages reduces combinational logic depth and limits fan-in.

The circuit must maintain a 4-bit count output that increments on the rising clock edge when en is high. It resets synchronously to 0 when reset is high. The architecture must decompose the 12 states into a cascade: a Mod-4 sub-counter for the lower two bits and a Mod-3 sub-counter for the upper two bits. The internal terminal count of the Mod-4 stage must act as the enable for the Mod-3 stage. The overall circuit must assert tc high when count is 11.

Constraints

  • Build the counter using a separate Mod-4 sub-counter and Mod-3 sub-counter.
  • Drive the lower 2 bits of count from the Mod-4 sub-counter.
  • Drive the upper 2 bits of count from the Mod-3 sub-counter.
  • Use the terminal count of the Mod-4 stage to enable the Mod-3 stage.
  • Implement a synchronous active-high reset for both stages.

Topics

SequentialCascadeCounters

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