nand2/07_Operating_System/00_HACK/Mux.v

18 lines
186 B
Coq
Raw Normal View History

2023-01-11 10:13:09 +00:00
/**
* Multiplexor:
* out = a if sel == 0
* b otherwise
*/
`default_nettype none
module Mux(
input a,
input b,
input sel,
output out
);
assign out = sel?b:a;
endmodule