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

Break Condition Detector

HardLogic CircuitBuild

Out-of-band signaling allows UART receivers to detect fatal errors or reset commands without relying on standard data frames. A break condition occurs when the transmission line is driven low for an extended duration that violates the standard protocol framing.

The circuit must monitor the rx line on each clock cycle. If rx remains at logic 0 for 12 consecutive clock cycles, assert break_flag to 1. If rx evaluates to logic 1 at any time, the internal count must reset and break_flag must immediately evaluate to 0. An active-high rst signal synchronously clears the internal state.

Constraints

  • Use synchronous logic.
  • The rst signal must be synchronous and active-high.
  • The internal counter must not overflow and clear break_flag if rx remains 0 indefinitely.

Topics

countersstate-machineuart

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