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

Ripple Divide by 4 Phase Delay Analysis

MediumLogic CircuitTiming Diagram

A two-stage ripple counter divides a clock frequency by four, but each sequential stage introduces a fixed clock-to-output delay that accumulates down the chain.

Three signals are shown: CLK (clock, alternating every step), Q1 (stage one output, initially 0), and Q2 (stage two output, initially 0). Both Q1 and Q2 are driven by positive-edge-triggered T flip-flops with a clock-to-output delay of exactly 1 time step. Q1 toggles 1 time step after the rising edge of CLK. Q2 toggles 1 time step after the rising edge of Q1.

Trace Q1 and Q2 across all 16 time steps.

Constraints

  • Outputs change exactly 1 time step after the rising edge of their respective driving clocks.
  • A rising edge is defined strictly as a transition from 0 to 1.
  • Both flip-flops are positive-edge-triggered and toggle their state on every valid clock event.

Topics

Flip-FlopsRipple CounterClockingPropagation Delay

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