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

Mod-5 Counter: One-Cycle Terminal State Waveform

EasyLogic CircuitTiming Diagram

A synchronous-reset 3-bit counter increments its value by 1 on every LOW-to-HIGH transition of CLK when EN is HIGH. When the counter reaches 5 (101), a synchronous reset forces the state to 0 (000) on the next rising edge of CLK: this reset has priority over EN.

Five signals are shown: CLK (clock, period 2), EN (enable input), and outputs Q2, Q1, Q0 (initially representing 3, or 011).

Trace Q2, Q1, and Q0 across all 16 time steps.

Constraints

  • The counter updates only on the LOW-to-HIGH transition of CLK.
  • The synchronous reset to 0 occurs exactly one clock cycle after the counter reaches 5.
  • The synchronous reset overrides the enable signal.

Topics

ResetSynchronous LogicCounters

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
  • Reconvergence of Individually Synchronized BitsHard
  • FIFO Empty Logic Evaluated in Wrong DomainMedium
  • T Flip-Flop: Propagation Delay Accumulation in 3-Stage Ripple CounterMedium
  • Handshake Deadlock Due to Early ResetHard

Browse all problems · Learning tracks