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

SISO as a Programmable Delay Line: Tap Selection

HardLogic CircuitBuild

Variable-delay lines synchronize data in pipeline alignment, digital echo circuits, and high-speed test equipment. By tapping different stages of a shift register chain, a single circuit can dynamically adjust signal latency without altering the system clock.

Construct a 4-stage Serial-In Serial-Out (SISO) shift register with a selectable output tap. The circuit receives a serial input D and propagates it through four sequential register stages (Q0 through Q3) on each rising edge of CLK. A 2-bit select signal SEL determines which stage drives the final output Y, providing a programmable delay of 1 to 4 clock cycles.

| SEL | Y | Effective Delay | |-------|-----|-----------------| | 0 | Q0| 1 cycle | | 1 | Q1| 2 cycles | | 2 | Q2| 3 cycles | | 3 | Q3| 4 cycles |

Constraints

  • Use exactly four D flip-flops to form the shift register.
  • Implement the tap selection using combinational logic or a multiplexer.
  • The shift register must advance state strictly on the rising edge of CLK.
  • Do not use pre-built shift register macros or delay blocks.

Topics

Shift Registers

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