18 lines
186 B
Coq
Raw Permalink Normal View History

2023-01-11 11:13:09 +01: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