Home › Practice › RTL Design › Sequence detector: 1101 (Mealy, overlapping)

Sequence detector: 1101 (Mealy, overlapping)

MediumRTLFSM

Detect the serial pattern 1101 on din, one bit per rising edge, oldest bit first. Build it as a Mealy machine, and it is overlapping: 1101101 contains two matches.

Example: din = 1 1 0 1 1 0 1 gives hit = 0 0 0 1 0 0 1 in the same cycles (no one-cycle delay).

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

← Sequence detector: 110 (Moore, non-overlapping)BCD counter with enable →