data/full_repos/permissive/474294847/rtl-src/memories/fifo.v
1: b'%Warning-WIDTH: data/full_repos/permissive/474294847/rtl-src/memories/fifo.v:67: Operator EQ expects 32 or 9 bits on the LHS, but LHS\'s VARREF \'fifo_tail\' generates 8 bits.\n                                                                               : ... In instance fifo\n        if (fifo_tail == DEPTH-1)\n                      ^~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/474294847/rtl-src/memories/fifo.v:80: Operator EQ expects 32 or 9 bits on the LHS, but LHS\'s VARREF \'fifo_head\' generates 8 bits.\n                                                                               : ... In instance fifo\n        if (fifo_head == DEPTH-1)\n                      ^~\n%Warning-WIDTH: data/full_repos/permissive/474294847/rtl-src/memories/fifo.v:106: Operator EQ expects 32 or 9 bits on the LHS, but LHS\'s VARREF \'fifo_count\' generates 8 bits.\n                                                                                : ... In instance fifo\nassign fifo_full = (fifo_count == DEPTH-1) ? 1 : 0;\n                               ^~\n%Error: Exiting due to 3 warning(s)\n'
function integer log2;
    input [31:0] value;
    begin
        value = value -1 ;
        for (log2 = 0; value > 0; log2 = log2 + 1)
        begin
            value = value >> 1;
        end
    end
endfunction
function integer log2;

    input [31:0] value;
    begin
        value = value -1 ;
        for (log2 = 0; value > 0; log2 = log2 + 1)
        begin
            value = value >> 1;
        end
    end
endfunction