twomux.v
来自「Verilog 编写的fir滤波器」· Verilog 代码 · 共 15 行
V
15 行
module twomux(xin1,xin2,sel,xout);
input [3:0] xin1,xin2;
input sel;
output [3:0] xout;
reg[3:0] xout;
always@(xin1 or xin2 or sel)
begin
case(sel)
0: xout=xin1;
1: xout=xin2;
default: xout=4'bzzzz;
endcase
end
endmodule
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?