`timescale 1ns/1ns module sequence_detect( input clk, input rst_n, input data, input data_valid, output match ); parameter S0 = 4'd0, S1 = 4'd1, S2 = 4'd2, S3 = 4'd3, S4 = 4'd4; reg [3:0] curr_state,next_state; //状态跳转 always@(posedge clk or negedge rst_n)begin if(rst_n == 0) curr_state <= S0; els...