`timescale 1ns/1ns module sequence_detect( input clk, input rst_n, input data, input data_valid, output reg match ); reg [4:0] cur_state; reg [4:0] nex_state; parameter IDLE = 5'b00_001, S0 = 5'b00_010, S1 = 5'b00_100, S2 = 5'b01_000, S3 = 5'b1...