yeah `timescale 1ns/1ns module sequence_detect( input clk, input rst_n, input data, input data_valid, output reg match ); reg [2:0] state; reg [2:0] nxt_state; parameter zero = 0, one = 1, two = 2, three = 3, four = 4; always @(posedge clk or negedge rst_n) begin if (!rst_n) state <= ze...