data/full_repos/permissive/128497744/fsm_calculator_part3/Full_Calculator/Full_Calculator.srcs/sources_1/new/Calc/Calc_MUX1.v
data/verilator_xmls/c6af286b-d724-4ba6-a985-0227a2b4bec5.xml
module Calc_MUX1 #(parameter Data_width = 4)(
input [Data_width - 1:0] in1, in2, in3, in4,
input [1:0] s1,
output reg [Data_width - 1:0] m1out 
);

always @ (in1, in2, in3, in4, s1)
begin
        case (s1)
                2'b11:      m1out = in1;
                2'b10:      m1out = in2;
                2'b01:      m1out = in3;
                default:    m1out = in4;
        endcase
end
endmodule
module Calc_MUX1 #(parameter Data_width = 4)(
input [Data_width - 1:0] in1, in2, in3, in4,
input [1:0] s1,
output reg [Data_width - 1:0] m1out 
);


always @ (in1, in2, in3, in4, s1)
begin
        case (s1)
                2'b11:      m1out = in1;
                2'b10:      m1out = in2;
                2'b01:      m1out = in3;
                default:    m1out = in4;
        endcase
end
endmodule