Archived
1
0
This repository has been archived on 2026-02-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
iceberg/gates/mux.v
T
2022-02-28 23:56:05 +01:00

10 lines
193 B
Verilog

module mux(y, a, b, sel);
input a, b, sel;
inout y;
wire notSel, andA, andB;
not(notSel, sel);
and(andA, a, sel);
and(andB, b, notSel);
or(y, andA, andB);
endmodule