nand2/07_Operating_System/00_HACK/Mux.v
Michael Schröder 971b323822 added v2.0
2023-01-11 23:04:57 +01:00

18 lines
186 B
Verilog

/**
* 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