data/full_repos/permissive/463481430/RTL/core/rib.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/463481430/RTL/core/rib.v:155: Multiple top level modules\n                                                                          : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                          : ... Top module \'SLAVE_SEL\'\nmodule SLAVE_SEL #(\n       ^~~~~~~~~\n                                                                          : ... Top module \'MASTER_SEL\'\nmodule MASTER_SEL #(\n       ^~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/463481430/RTL/core/rib.v:267: Operator ASSIGNDLY expects 3 bits on the Assign RHS, but Assign RHS\'s FUNCREF \'onehot2int\' generates 32 bits.\n                                                                       : ... In instance MASTER_SEL\n                sel_tag_id <= onehot2int(sel_tag);\n                           ^~\n%Warning-WIDTH: data/full_repos/permissive/463481430/RTL/core/rib.v:281: Bit extraction of var[2:0] requires 2 bit index, not 3 bits.\n                                                                       : ... In instance MASTER_SEL\n    assign o_ribs_rdy = i_ribm_rdy[sel_tag_id];\n                                  ^\n%Warning-WIDTH: data/full_repos/permissive/463481430/RTL/core/rib.v:130: Operator ASSIGNDLY expects 8 bits on the Assign RHS, but Assign RHS\'s FUNCREF \'onehot2int\' generates 32 bits.\n                                                                       : ... In instance SLAVE_SEL\n                sel_tag_id <= onehot2int(sel_tag);\n                           ^~\n%Warning-WIDTH: data/full_repos/permissive/463481430/RTL/core/rib.v:146: Bit extraction of array[2:0] requires 2 bit index, not 8 bits.\n                                                                       : ... In instance SLAVE_SEL\n    assign o_ribm_rdata = default_cs ? i_ribd_rdata : ribs_rdata[sel_tag_id];\n                                                                ^\n%Error: Exiting due to 5 warning(s)\n'
function integer onehot2int;
        input[slaves-1:0] onehot;
        integer j;
        begin
            onehot2int = 0;
            for(j=0;j<slaves;j=j+1)begin
                if(onehot[j])begin
                    onehot2int = j;
                end
            end
        end
    endfunction
function integer onehot2int;

        input[slaves-1:0] onehot;
        integer j;
        begin
            onehot2int = 0;
            for(j=0;j<slaves;j=j+1)begin
                if(onehot[j])begin
                    onehot2int = j;
                end
            end
        end
    endfunction