data/full_repos/permissive/487568919/SvLibDR/TransmitterUART/TxUART_logic.sv
1: b'%Warning-REALCVT: data/full_repos/permissive/487568919/SvLibDR/TransmitterUART/TxUART_logic.sv:44: Implicit conversion of real to integer\nlocalparam int factor_int = factor_real;\n                            ^~~~~~~~~~~\n                  ... Use "/* verilator lint_off REALCVT */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/487568919/SvLibDR/TransmitterUART/TxUART_logic.sv:119: Operator EQ expects 24 bits on the LHS, but LHS\'s VARREF \'PARITY\' generates 16 bits.\n                                                                                                : ... In instance TxUART_logic\n if ((PARITY == "ODD")|(PARITY == "EVEN")) assign num_pause = PAUSE + 10;\n             ^~\n%Warning-WIDTH: data/full_repos/permissive/487568919/SvLibDR/TransmitterUART/TxUART_logic.sv:119: Operator EQ expects 32 bits on the LHS, but LHS\'s VARREF \'PARITY\' generates 16 bits.\n                                                                                                : ... In instance TxUART_logic\n if ((PARITY == "ODD")|(PARITY == "EVEN")) assign num_pause = PAUSE + 10;\n                               ^~\n%Warning-WIDTH: data/full_repos/permissive/487568919/SvLibDR/TransmitterUART/TxUART_logic.sv:92: Operator ASSIGNW expects 8 bits on the Assign RHS, but Assign RHS\'s SUB generates 32 or 9 bits.\n                                                                                               : ... In instance TxUART_logic\nassign rd_addr = (cnt_byte - 1);\n               ^\n%Warning-WIDTH: data/full_repos/permissive/487568919/SvLibDR/TransmitterUART/TxUART_logic.sv:110: Operator EQ expects 32 bits on the LHS, but LHS\'s VARREF \'len_bit\' generates 4 bits.\n                                                                                                : ... In instance TxUART_logic\nassign cnt_bit_incr = (len_bit == factor_int-1);\n                               ^~\n%Error: Exiting due to 5 warning(s)\n'
function automatic int clogb2 (input int number);
    int calc;
    begin
      for (int i = 0; 2**i < number; i++)
        calc = i + 1;
        clogb2 = (number == 0) ? 0 :
                  (number == 1) ? 1 : calc;
    end
endfunction
function automatic int clogb2 (input int number);

    int calc;
    begin
      for (int i = 0; 2**i < number; i++)
        calc = i + 1;
        clogb2 = (number == 0) ? 0 :
                  (number == 1) ? 1 : calc;
    end
endfunction