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-03-01 23:35:17 +01:00

10 lines
194 B
Verilog

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