data/full_repos/permissive/423012938/ReisenCoreRVCPU.src/Modules/CentralCore/GeneralPurpose/Gp4to1Mux.v
data/verilator_xmls/ad4abc2d-04ba-4c58-bdcf-c14a77168aaf.xml
module Gp4to1Mux #(
    parameter WIDTH = 64
) (
    input [WIDTH - 1:0] a,
    input [WIDTH - 1:0] b,
    input [WIDTH - 1:0] c,
    input [WIDTH - 1:0] d,
    input [1:0] select,

    output reg [WIDTH - 1:0] out
);

    always @(*) begin
        case(select)
            2'h0: out = a;
            2'h1: out = b;
            2'h2: out = c;
            2'h3: out = d;
            default: out = {WIDTH{1'bX}}; 
        endcase
    end

endmodule
module Gp4to1Mux #(
    parameter WIDTH = 64
) (
    input [WIDTH - 1:0] a,
    input [WIDTH - 1:0] b,
    input [WIDTH - 1:0] c,
    input [WIDTH - 1:0] d,
    input [1:0] select,

    output reg [WIDTH - 1:0] out
);


    always @(*) begin
        case(select)
            2'h0: out = a;
            2'h1: out = b;
            2'h2: out = c;
            2'h3: out = d;
            default: out = {WIDTH{1'bX}}; 
        endcase
    end

endmodule