data/full_repos/permissive/204646149/mdma_1.0/hdl/mdma_fifo.v
1: b'%Warning-WIDTH: data/full_repos/permissive/204646149/mdma_1.0/hdl/mdma_fifo.v:111: Operator EQ expects 32 or 3 bits on the LHS, but LHS\'s VARREF \'head\' generates 2 bits.\n                                                                                 : ... In instance mdma_fifo\n            if (head == (DATA_DEPTH - 1)) begin\n                     ^~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/204646149/mdma_1.0/hdl/mdma_fifo.v:119: Operator EQ expects 32 or 3 bits on the LHS, but LHS\'s VARREF \'tail\' generates 2 bits.\n                                                                                 : ... In instance mdma_fifo\n            if (tail == (DATA_DEPTH - 1)) begin\n                     ^~\n%Error: Exiting due to 2 warning(s)\n'
function integer clogb2;
    input [31:0]value;
    begin
        value = value - 1;
        for (clogb2 = 0; value > 0; clogb2 = clogb2 + 1) begin
            value = value >> 1;
        end
    end
endfunction
function integer clogb2;

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