Sequence Detector
Easy · Sequential · SystemVerilog
Design a module that, given a stream of input bits, pulses a $1$ on the output {dout} whenever a 1010 sequence is detected on the input {din}.
If two sequences overlap, {dout} should pulse for both. When the reset-low signal {resetn} goes active, the module should ignore all previously seen bits.