RISC-V_Verilog/rtl/mux2_1.v

8 lines
196 B
Coq
Raw Normal View History

2023-10-21 13:57:58 +00:00
module mux2_1 #(parameter BUS_SIZE = 32)
(input [BUS_SIZE - 1:0] A, B,
input S,
output [BUS_SIZE - 1:0] O);
assign O = S ? B : A;
endmodule