data/full_repos/permissive/172995952/src/Multiplexer.v
data/verilator_xmls/33c23917-4ea9-4d37-a15e-289d0538ae8f.xml
module Multiplexer_4way(
    input [1:0] CONTROL,
    input [4:0] IN0,
    input [4:0] IN1,
    input [4:0] IN2,
    input [4:0] IN3,
    output reg [4:0] OUT
    );
    
    always@(    CONTROL or
                IN0     or
                IN1     or
                IN2     or
                IN3
                )
        begin
            case(CONTROL)
                2'b00       : OUT <= IN0; 
                2'b01       : OUT <= IN1;
                2'b10       : OUT <= IN2;
                2'b11       : OUT <= IN3;
                default : OUT <= 5'b00000;
            endcase
        end            
                
endmodule
module Multiplexer_4way(
    input [1:0] CONTROL,
    input [4:0] IN0,
    input [4:0] IN1,
    input [4:0] IN2,
    input [4:0] IN3,
    output reg [4:0] OUT
    );

    
    always@(    CONTROL or
                IN0     or
                IN1     or
                IN2     or
                IN3
                )
        begin
            case(CONTROL)
                2'b00       : OUT <= IN0; 
                2'b01       : OUT <= IN1;
                2'b10       : OUT <= IN2;
                2'b11       : OUT <= IN3;
                default : OUT <= 5'b00000;
            endcase
        end            
                
endmodule