Digital Logic Design

State machines

Use this for “Trace the 101 detector on the input 110101.”

Explore

start10101010S0/0S1/0S2/0S3/1inputstateoutputS0110101
The machine starts in S0, having seen nothing of 101 yet, so its output is 0.

Assumptions

•
Each state remembers just enough of the input to decide what comes next.
•
A Moore machine writes its output in the state: S3/1 means S3 outputs 1.
•
The machine reads one bit at each clock edge and follows the arrow labelled with that bit.
•
Overlapping: the last 1 of one 101 may start the next.
Topic check
See what you know: 5 questions on this topic
New questions each time. Pass to mark it complete.

More problem types

© 2026 SME. All rights reserved.