Home › Practice › RTL Design › Sequence detector: 101 (overlapping)
Sequence detector: 101 (overlapping)
EasyRTLsequential
Detect the serial pattern 101 on din, one bit per rising edge, oldest bit first. Overlaps count: 10101 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 do not 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.