Codiode

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.

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.

Part of Shift Registers

Problem 86 of 86 in the Shift Registers track.

Related problems

Browse all problems · Digital logic design practice problems · Learning tracks

Solve this on a laptopSend yourself the link and continue there.