mirror of
https://github.com/alangarf/apple-one.git
synced 2024-11-19 21:31:08 +00:00
12 lines
178 B
Verilog
12 lines
178 B
Verilog
|
|
module MUX #(
|
|
parameter N=1
|
|
) (
|
|
output wire o,
|
|
input wire i,
|
|
input wire [N-1:0] s,
|
|
input wire [N-1:0] d);
|
|
|
|
assign o = (|s) ? &(d|(~s)) : i;
|
|
endmodule
|