data/full_repos/permissive/139831595/hw/source/lit_selector.v
1: b'%Warning-WIDTH: data/full_repos/permissive/139831595/hw/source/lit_selector.v:143: Operator SUB expects 12 bits on the RHS, but RHS\'s VARREF \'base\' generates 6 bits.\n                                                                                 : ... In instance lit_selector.arbiter0\nwire [2*WIDTH-1:0] double_grant = double_req & ~(double_req-base);   \n                                                           ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/139831595/hw/source/lit_selector.v:80: Operator ASSIGN expects 3 bits on the Assign RHS, but Assign RHS\'s VARREF \'i\' generates 32 bits.\n                                                                                : ... In instance lit_selector\n                    onehot_int = i;\n                               ^\n%Error: data/full_repos/permissive/139831595/hw/source/lit_selector.v:85: Cannot find file containing module: \'select\'\nselect \n^~~~~~\n        ... Looked in:\n             data/full_repos/permissive/139831595/hw/source,data/full_repos/permissive/139831595/select\n             data/full_repos/permissive/139831595/hw/source,data/full_repos/permissive/139831595/select.v\n             data/full_repos/permissive/139831595/hw/source,data/full_repos/permissive/139831595/select.sv\n             select\n             select.v\n             select.sv\n             obj_dir/select\n             obj_dir/select.v\n             obj_dir/select.sv\n%Error: data/full_repos/permissive/139831595/hw/source/lit_selector.v:97: Cannot find file containing module: \'select\'\nselect \n^~~~~~\n%Error: data/full_repos/permissive/139831595/hw/source/lit_selector.v:109: Cannot find file containing module: \'select\'\nselect \n^~~~~~\n%Error: Exiting due to 3 error(s), 2 warning(s)\n'
function [NUM_LOG-1:0] onehot_int;
        input [NUM_PARSER-1:0] in;
        integer i;
        begin
            onehot_int = 0;
            for (i = NUM_PARSER-1; i >= 0; i=i-1) begin
                if (in[i])
                    onehot_int = i;
            end
        end
endfunction
function [NUM_LOG-1:0] onehot_int;

        input [NUM_PARSER-1:0] in;
        integer i;
        begin
            onehot_int = 0;
            for (i = NUM_PARSER-1; i >= 0; i=i-1) begin
                if (in[i])
                    onehot_int = i;
            end
        end
endfunction