mirror of
https://github.com/nippur72/Apple1_MiST.git
synced 2025-02-28 18:29:27 +00:00
11 lines
177 B
Verilog
11 lines
177 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
|