Home › Practice › RTL Design › Sequence detector: 1011 (overlapping)
Sequence detector: 1011 (overlapping)
MediumRTLFSM
Detect the serial pattern 1011 on din, one bit per rising edge, oldest bit first. Overlaps count: 1011011 contains two matches.
hitis a registered-state (Moore) output: it is 1 during the cycle right after the edge that sampled the final1of a match, and 0 otherwise.rstis synchronous, active-high. Bits sampled before reset don't count.
Any implementation is fine: FSM, shift register, anything. The grader checks behaviour, not structure.
No install and no sign-up needed. You write your answer in the editor and Nishkam checks it.