Home › Practice › RTL Design › Sequence detector: 110 (Moore, non-overlapping)

Sequence detector: 110 (Moore, non-overlapping)

MediumRTLFSM

Detect the serial pattern 110 on din, one bit per rising edge, oldest bit first. Build it as a Moore machine, and it is non-overlapping: after a match the detector starts looking again from scratch, with the next bit as the first bit of a new pattern.

Example: din = 1 1 0 1 1 0 gives hit = 0 0 0 1 0 0 in the cycles after each edge, then 1 again in the cycle after the sixth edge. din = 1 1 1 0 matches too: only the last three bits count.

Solve in your browser →

No install and no sign-up needed. You write your answer in the editor and Nishkam checks it.

More in this track

← 4-bit shift registerSequence detector: 1101 (Mealy, overlapping) →