Use one-hot states for idle, one high seen, and two highs seen. On x=1, progress through the states; on x=0, return to idle. Implement the next-state logic directly.
Use one-hot states for idle, one high seen, and two highs seen. On x=1, progress through the states; on x=0, return to idle. Implement the next-state logic directly.