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

Mod-N Counter: Synchronous vs. Async Reset Terminal State Comparison

MediumLogic CircuitTiming Diagram

Two parallel up-counters evaluate the same reset condition (count == 6), but one resets synchronously on the clock edge while the other resets asynchronously.

Four signals are shown: CLK (clock, positive-edge-triggered, period 2), EN (input, count enable, tied high), Q1_SYNC (output, the 2s bit of the synchronous counter, initially 0), and Q1_ASYNC (output, the 2s bit of the asynchronous counter, initially 0).

Trace Q1_SYNC and Q1_ASYNC across all 16 time steps to compare the terminal state behavior and subsequent counting cycle.

Constraints

  • The synchronous counter evaluates the reset condition at the active clock edge and applies the reset on the next rising edge.
  • The asynchronous counter clears immediately when the reset condition is met, creating a brief glitch before the next half-cycle.
  • Both counters increment on the rising edge of CLK when EN is 1.
  • State 6 in binary is 110. Q1 represents the middle bit.

Topics

timing-diagramcountersasynchronous-resetsynchronous-reset

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