Codiode

UART Receiver Bit Counter

MediumLogic CircuitBuild

Serial communication protocols require precise tracking of payload boundaries to distinguish data bits from framing bits. A UART receiver relies on a dedicated counter to determine when an entire byte has been shifted in and the stop bit is expected.

The circuit must track the number of received bits and output a 3-bit value count. The counter increments by 1 on the rising edge of clk only when both the data_state flag is high and the baud_tick strobe is active. The counter must synchronously reset to 0 whenever the idle_state flag is asserted, overriding any increment conditions.

idle_state data_state baud_tick Next count
1 0 0 0
1 X X 0
0 0 X count
0 1 0 count
0 1 1 count + 1

Constraints

  • Implement a synchronous 3-bit counter.
  • Trigger state updates only on the rising edge of clk.
  • Ensure the reset condition is synchronous and takes priority over the increment logic.

Topics

CountersState MachinesUART

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 Interface and Communication Circuits

Problem 45 of 79 in the Interface and Communication Circuits track.

Related problems

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

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