`timescale 1ns/1ns module sequence_detect( input clk, input rst_n, input a, output reg match ); reg [7:0] input_r; always@(posedge clk or negedge rst_n)begin if(!rst_n)begin input_r <= 8'd0; end else begin input_r <= {input_r[6:0],a...