module test( input wire[2:0] a, output reg[7:0] y ); integer i; always @(*) begin for (i=0;i<8;i=i+1) begin if (a==i) y[i]<=1; else y[i]<=0; end end endmodule
模8计数器
8-3优先编码器
数据选择器
3-8译码器
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题