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

SISO: Clock Missing on One Stage Debug

HardLogic CircuitDebug

A 4-bit Serial-In Serial-Out (SISO) shift register delays an incoming data stream by exactly four clock cycles. The circuit cascades four D flip-flops, shifting the value of D sequentially through internal stages Q0, Q1, Q2, and finally to the output Q3 on each rising edge of CLK.

Expected behavior:

When a sequence of bits is applied to D, the output Q3 must reproduce that exact sequence four clock cycles later. All internal states initialize to 0 when RST is asserted high.

Simulation shows that after applying D = 1 for five consecutive clock cycles, the output Q3 remains 0. Internal probing reveals that the first two stages capture data correctly, but the third and fourth stages never change state regardless of the input.

Inspect the circuit and correct the fault.

Constraints

  • Do not add or remove any flip-flops.
  • Only modify the existing wiring to correct the signal flow.

Topics

DebugSequential LogicShift RegistersD Flip-Flops

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