data/full_repos/permissive/2084115/rtl/image/jelly2_img_selector.sv
 line:18: before: "NUM"
1: b"%Error: data/full_repos/permissive/2084115/rtl/image/jelly2_img_selector.sv:128: Cannot find file containing module: 'jelly2_img_selector_core'\n    jelly2_img_selector_core\n    ^~~~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/2084115/rtl/image,data/full_repos/permissive/2084115/jelly2_img_selector_core\n             data/full_repos/permissive/2084115/rtl/image,data/full_repos/permissive/2084115/jelly2_img_selector_core.v\n             data/full_repos/permissive/2084115/rtl/image,data/full_repos/permissive/2084115/jelly2_img_selector_core.sv\n             jelly2_img_selector_core\n             jelly2_img_selector_core.v\n             jelly2_img_selector_core.sv\n             obj_dir/jelly2_img_selector_core\n             obj_dir/jelly2_img_selector_core.v\n             obj_dir/jelly2_img_selector_core.sv\n%Error: Exiting due to 1 error(s)\n"
function [WB_DAT_WIDTH-1:0] write_mask(
                                        input [WB_DAT_WIDTH-1:0] org,
                                        input [WB_DAT_WIDTH-1:0] wdat,
                                        input [WB_SEL_WIDTH-1:0] msk
                                    );
    integer i;
    begin
        for ( i = 0; i < WB_DAT_WIDTH; i = i+1 ) begin
            write_mask[i] = msk[i/8] ? wdat[i] : org[i];
        end
    end
    endfunction
function [WB_DAT_WIDTH-1:0] write_mask(
                                        input [WB_DAT_WIDTH-1:0] org,
                                        input [WB_DAT_WIDTH-1:0] wdat,
                                        input [WB_SEL_WIDTH-1:0] msk
                                    );

    integer i;
    begin
        for ( i = 0; i < WB_DAT_WIDTH; i = i+1 ) begin
            write_mask[i] = msk[i/8] ? wdat[i] : org[i];
        end
    end
    endfunction