`timescale 1ns/1ns module sequence_detect( input clk, input rst_n, input data, output reg match, output reg not_match ); parameter s1=3'd1,s2=3'd2,s3=3'd3,s4=3'd4,s5=3'd5,s6=3'd6,wa=3'd7; reg [2:0] c_state,n_state,cnt; always @(posedge clk or negedge rst_n) begin if(!rst_n) begin cnt...