`timescale 1ns/1ns module sequence_detect( input clk, input rst_n, input a, output reg match ); localparam S_IDLE = 3'd0; localparam S_0 = 3'd1; localparam S_01 = 3'd2; localparam S_011 = 3'd3; localparam S_0111 = 3'd4; localparam S_01110 = 3'd5; localparam S_011100 = 3'd6; localp...