mux.v
来自「通向ip设计的必看的一本书籍」· Verilog 代码 · 共 19 行
V
19 行
module mux2_to_1(out, i0, i1, s);
output out; //output port
input i0, i1; //input ports
input s;
wire sbar, y1, y2; //internal nets
//Gate Instantiations
not n1(sbar, s);
and a1(y1, i0, sbar);
and a2(y2, i1, s);
or o1(out, y1, y2);
endmodule
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?