4mux.v
来自「用VERILOG实现的秒表 用VERILOG实现的秒表」· Verilog 代码 · 共 16 行
V
16 行
module mux(select,in1,in2,in3,in4,out);
input[3:0] select;
input[3:0] in1,in2,in3,in4;
output[3:0] out;
reg[3:0] out;
always@(select or in1 or in2 or in3 or in4)
case(select)
4'b0001:out<=in1;
4'b0010:out<=in2;
4'b0100:out<=in3;
4'b1000:out<=in4;
default:out<=in1;
endcase
endmodule
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?