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

SIPO with Start Bit Detection

HardLogic CircuitBuild

Serial protocols use start bits to synchronize frames across asynchronous clock domains. Without start bit detection, a receiving shift register continuously captures misaligned garbage data during idle periods.

The idle state of the D_serial line is HIGH (1). A start bit is indicated by a single clock cycle where D_serial drops to LOW (0). When the start bit is detected, the circuit must shift the next 8 bits of D_serial into an 8-bit output register Q_parallel over the subsequent 8 clock cycles. The data is shifted in MSB-first.

The shift register must output its current internal state continuously on Q_parallel. Once all 8 bits are captured, the circuit must assert valid HIGH for exactly one clock cycle and immediately return to waiting for the next start bit. The start bit itself is not part of the 8-bit data payload.

Constraints

  • Implement using standard logic gates, D flip-flops, and standard counters.
  • rst is active-high and synchronous.
  • Q_parallel must continuously reflect the internal shift register state.
  • The circuit must ignore D_serial transitions while actively shifting an 8-bit frame.

Topics

State MachinesShift RegistersFraming

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