data/full_repos/permissive/2084115/rtl/model/jelly_img_master_model.v
 line:59: before: "("
1: b'%Warning-WIDTH: data/full_repos/permissive/2084115/rtl/model/jelly_img_master_model.v:66: Operator ASSIGN expects 8 bits on the Assign RHS, but Assign RHS\'s ADD generates 32 bits.\n                                                                                        : ... In instance jelly_img_master_model\n                fname[pos +: 8] = "0" + frame % 10;\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/model/jelly_img_master_model.v:84: Operator FUNCREF \'make_fname\' expects 512 bits on the Function Argument, but Function Argument\'s VARREF \'PGM_FILE\' generates 1 bits.\n                                                                                        : ... In instance jelly_img_master_model\n            fname = make_fname(PGM_FILE, frame);\n                    ^~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/2084115/rtl/model/jelly_img_master_model.v:105: Operator FUNCREF \'make_fname\' expects 512 bits on the Function Argument, but Function Argument\'s VARREF \'PPM_FILE\' generates 1 bits.\n                                                                                         : ... In instance jelly_img_master_model\n            fname = make_fname(PPM_FILE, frame);\n                    ^~~~~~~~~~\n%Error: Exiting due to 3 warning(s)\n'
function [8*MAX_PATH-1:0] make_fname(input [8*MAX_PATH-1:0] fname, input [31:0] frame);
    integer i;
    integer pos;
    begin
        if ( SEQUENTIAL_FILE ) begin
            pos = DIGIT_POS * 8;
            for ( i = 0; i < DIGIT_NUM; i = i+1 ) begin
                fname[pos +: 8] = "0" + frame % 10;
                frame = frame / 10;
                pos   = pos + 8;
            end
        end
        make_fname = fname;
    end
    endfunction
function [8*MAX_PATH-1:0] make_fname(input [8*MAX_PATH-1:0] fname, input [31:0] frame);

    integer i;
    integer pos;
    begin
        if ( SEQUENTIAL_FILE ) begin
            pos = DIGIT_POS * 8;
            for ( i = 0; i < DIGIT_NUM; i = i+1 ) begin
                fname[pos +: 8] = "0" + frame % 10;
                frame = frame / 10;
                pos   = pos + 8;
            end
        end
        make_fname = fname;
    end
    endfunction