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

Serial Link: Framing Error Detection

HardLogic CircuitTiming Diagram

A UART receiver validates incoming 10-bit frames (1 start bit, 8 data bits, 1 stop bit) by checking if the 10th bit is a logic 1.

Four signals are shown: CLK (clock, positive-edge-triggered, period 2), RX (serial input, idles HIGH), DATA_VALID (output, initially 0), and FRAMING_ERROR (output, initially 0).

Trace DATA_VALID and FRAMING_ERROR across all 46 time steps for two consecutive frames.

Constraints

  • The receiver evaluates the stop bit on the 10th rising edge of CLK after (and including) the start bit detection.
  • If the stop bit is 1, DATA_VALID is asserted HIGH for exactly one clock cycle.
  • If the stop bit is 0, the frame is discarded and FRAMING_ERROR is asserted HIGH for exactly one clock cycle.
  • Back-to-back frames are supported: a new start bit can occur immediately on the clock cycle following a stop bit.

Topics

SerialState MachinesShift RegistersUART

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