data/full_repos/permissive/2084115/rtl/image/jelly_img_selector.v
 line:90: before: "("
1: b'%Warning-WIDTH: data/full_repos/permissive/2084115/rtl/image/jelly_img_selector.v:110: Operator FUNCREF \'write_mask\' expects 32 bits on the Function Argument, but Function Argument\'s VARREF \'reg_ctl_select\' generates 2 bits.\n                                                                                     : ... In instance jelly_img_selector\n                ADR_CTL_SELECT:    reg_ctl_select <= write_mask(reg_ctl_select, s_wb_dat_i, s_wb_sel_i);\n                                                     ^~~~~~~~~~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/2084115/rtl/image/jelly_img_selector.v:110: Operator ASSIGNDLY expects 2 bits on the Assign RHS, but Assign RHS\'s FUNCREF \'write_mask\' generates 32 bits.\n                                                                                     : ... In instance jelly_img_selector\n                ADR_CTL_SELECT:    reg_ctl_select <= write_mask(reg_ctl_select, s_wb_dat_i, s_wb_sel_i);\n                                                  ^~\n%Warning-WIDTH: data/full_repos/permissive/2084115/rtl/image/jelly_img_selector.v:119: Operator COND expects 32 bits on the Conditional True, but Conditional True\'s VARREF \'reg_ctl_select\' generates 2 bits.\n                                                                                     : ... In instance jelly_img_selector\n                        (s_wb_adr_i == ADR_CTL_SELECT)   ? reg_ctl_select :\n                                                         ^\n%Error: data/full_repos/permissive/2084115/rtl/image/jelly_img_selector.v:131: Cannot find file containing module: \'jelly_img_selector_core\'\n    jelly_img_selector_core\n    ^~~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/2084115/rtl/image,data/full_repos/permissive/2084115/jelly_img_selector_core\n             data/full_repos/permissive/2084115/rtl/image,data/full_repos/permissive/2084115/jelly_img_selector_core.v\n             data/full_repos/permissive/2084115/rtl/image,data/full_repos/permissive/2084115/jelly_img_selector_core.sv\n             jelly_img_selector_core\n             jelly_img_selector_core.v\n             jelly_img_selector_core.sv\n             obj_dir/jelly_img_selector_core\n             obj_dir/jelly_img_selector_core.v\n             obj_dir/jelly_img_selector_core.sv\n%Error: Exiting due to 1 error(s), 3 warning(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