data/full_repos/permissive/419273451/lab1/codes/MUX4.v
data/verilator_xmls/7d5f77e4-b23a-44ca-9f4b-80a19570a5c8.xml
module MUX4
(
    data1_i, 
    data2_i,
    data3_i,
    data4_i,
    select_i,
    data_o
);


input   [31:0]      data1_i;
input   [31:0]      data2_i;
input   [31:0]      data3_i;
input   [31:0]      data4_i;
input   [1:0]       select_i;
output  [31:0]      data_o;

assign data_o =
    (select_i == 2'b00) ? data1_i :
    (select_i == 2'b01) ? data2_i :
    (select_i == 2'b10) ? data3_i :
    data4_i;

endmodule
module MUX4
(
    data1_i, 
    data2_i,
    data3_i,
    data4_i,
    select_i,
    data_o
);



input   [31:0]      data1_i;
input   [31:0]      data2_i;
input   [31:0]      data3_i;
input   [31:0]      data4_i;
input   [1:0]       select_i;
output  [31:0]      data_o;

assign data_o =
    (select_i == 2'b00) ? data1_i :
    (select_i == 2'b01) ? data2_i :
    (select_i == 2'b10) ? data3_i :
    data4_i;

endmodule