`timescale 1ns/1ns /*一般采用 Moore 型状态机比较好;采用 Meanly 型状态机,其输出会比 Moore 型早一个周期; 因为 Meanly 型状态机的输出直接受输入影响;而 Moore 型状态机的输出只和状态相关*/ module sequence_detect( input clk, input rst_n, input a, output reg match ); localparam s0 = 8'b0000_0000, s1 = 8'b0000_0001, s2 = 8'b0000_0010, s3 = 8'...