data/full_repos/permissive/446128190/rtl/Bitlet_Prim_BufferArray.v
1: b"%Error: data/full_repos/permissive/446128190/rtl/Bitlet_Prim_BufferArray.v:29: Cannot find file containing module: 'Bitlet_Prim_Decoder_Decimal_to_Onehot'\nBitlet_Prim_Decoder_Decimal_to_Onehot #(.W(N)) UDECODER\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/446128190/rtl,data/full_repos/permissive/446128190/Bitlet_Prim_Decoder_Decimal_to_Onehot\n             data/full_repos/permissive/446128190/rtl,data/full_repos/permissive/446128190/Bitlet_Prim_Decoder_Decimal_to_Onehot.v\n             data/full_repos/permissive/446128190/rtl,data/full_repos/permissive/446128190/Bitlet_Prim_Decoder_Decimal_to_Onehot.sv\n             Bitlet_Prim_Decoder_Decimal_to_Onehot\n             Bitlet_Prim_Decoder_Decimal_to_Onehot.v\n             Bitlet_Prim_Decoder_Decimal_to_Onehot.sv\n             obj_dir/Bitlet_Prim_Decoder_Decimal_to_Onehot\n             obj_dir/Bitlet_Prim_Decoder_Decimal_to_Onehot.v\n             obj_dir/Bitlet_Prim_Decoder_Decimal_to_Onehot.sv\n%Error: Exiting due to 1 error(s)\n"
module Bitlet_Prim_BufferArray
#(
    parameter   N   = 4,
    parameter   W   = 16
)
(
    input                   clk,
    input                   rst_n,
    input                   enw,
    input   [$clog2(N)-1:0] sel,
    input   [1*W-1:0]       DI,
    output  [N*W-1:0]       DO
);

wire    [N-1:0]     sel_dec;
wire    [N-1:0]     enw_dec;

Bitlet_Prim_Decoder_Decimal_to_Onehot #(.W(N)) UDECODER
(
    .DI(sel),
    .DO(sel_dec)
);

generate
    genvar g;
    for (g=0; g<N; g=g+1)
    begin
        assign  enw_dec[g]  = enw&sel_dec[g];
    end
    for (g=0; g<N; g=g+1)
    begin
        Bitlet_Prim_Buffer #(.W(W)) UBUFFER
        (
            .clk(clk),
            .rst_n(rst_n),
            .enw(enw_dec[g]),
            .DI(DI),
            .DO(DO[(g*W)+:W])
        );
    end
endgenerate

endmodule
module Bitlet_Prim_BufferArray
#(
    parameter   N   = 4,
    parameter   W   = 16
)
(
    input                   clk,
    input                   rst_n,
    input                   enw,
    input   [$clog2(N)-1:0] sel,
    input   [1*W-1:0]       DI,
    output  [N*W-1:0]       DO
);


wire    [N-1:0]     sel_dec;
wire    [N-1:0]     enw_dec;

Bitlet_Prim_Decoder_Decimal_to_Onehot #(.W(N)) UDECODER
(
    .DI(sel),
    .DO(sel_dec)
);

generate
    genvar g;
    for (g=0; g<N; g=g+1)
    begin
        assign  enw_dec[g]  = enw&sel_dec[g];
    end
    for (g=0; g<N; g=g+1)
    begin
        Bitlet_Prim_Buffer #(.W(W)) UBUFFER
        (
            .clk(clk),
            .rst_n(rst_n),
            .enw(enw_dec[g]),
            .DI(DI),
            .DO(DO[(g*W)+:W])
        );
    end
endgenerate

endmodule