马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
VL25 输入序列连续的序列检测
这种题用移位寄存器是最方便的,用状态机会麻烦很多。
[code]`timescale 1ns/1nsmodule sequence_detect( input clk, input rst_n, input a, output reg match );reg [7:0]seq;always@(posedge clk or negedge rst_n)begin if(~rst_n)begin seq |
|