`timescale 1ns/1ns module sequence_detect( input clk, input rst_n, input data, output reg match, output reg not_match ); reg [2:0] next_state; reg [2:0] cur_state ; reg [2:0] count ; parameter IDLE = 0 ,ONE =1 ,SECOND =2 ,THIRD =3,FOURTH =4 ,FITH =5,SIX =6,ERROR = 7; always @(posedge c...