`timescale 1ns/1ns module sequence_detect( input clk, input rst_n, input a, output reg match ); parameter IDEL = 0, S0 = 1, S1 = 2, S2 = 3, S3 = 4, S4 = 5, S5 ...