data/full_repos/permissive/146479393/RTL/Freq_Divider.v
 line:40: before: "("
1: b'%Warning-WIDTH: data/full_repos/permissive/146479393/RTL/Freq_Divider.v:28: Operator EQ expects 32 or 26 bits on the LHS, but LHS\'s VARREF \'counter\' generates 3 bits.\n                                                                          : ... In instance Freq_Divider\n    if (counter == max-1)\n                ^~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 warning(s)\n'
function integer log2(input integer n);
    integer i;
    begin
      log2=1;
      for (i=0; 2**i < n; i=i+1)
        log2=i+1;
    end

  endfunction
function integer log2(input integer n);

    integer i;
    begin
      log2=1;
      for (i=0; 2**i < n; i=i+1)
        log2=i+1;
    end

  endfunction