data/full_repos/permissive/422139337/src/tmds_encoder.v
1: b'%Warning-WIDTH: data/full_repos/permissive/422139337/src/tmds_encoder.v:38: Operator ADD expects 4 bits on the RHS, but RHS\'s LOGNOT generates 1 bits.\n                                                                          : ... In instance tmds_encoder\n            N0 = N0 + !d[i];\n                    ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/422139337/src/tmds_encoder.v:48: Operator ADD expects 4 bits on the RHS, but RHS\'s SEL generates 1 bits.\n                                                                          : ... In instance tmds_encoder\n            N1 = N1 + d[i];\n                    ^\n%Warning-WIDTH: data/full_repos/permissive/422139337/src/tmds_encoder.v:98: Operator SUB expects 8 bits on the LHS, but LHS\'s FUNCREF \'N0\' generates 4 bits.\n                                                                          : ... In instance tmds_encoder\n                cnt = cnt_prev + (N0(q_m[7:0]) - N1(q_m[7:0]));\n                                               ^\n%Warning-WIDTH: data/full_repos/permissive/422139337/src/tmds_encoder.v:98: Operator SUB expects 8 bits on the RHS, but RHS\'s FUNCREF \'N1\' generates 4 bits.\n                                                                          : ... In instance tmds_encoder\n                cnt = cnt_prev + (N0(q_m[7:0]) - N1(q_m[7:0]));\n                                               ^\n%Warning-WIDTH: data/full_repos/permissive/422139337/src/tmds_encoder.v:100: Operator SUB expects 8 bits on the LHS, but LHS\'s FUNCREF \'N1\' generates 4 bits.\n                                                                           : ... In instance tmds_encoder\n                cnt = cnt_prev + (N1(q_m[7:0]) - N0(q_m[7:0]));\n                                               ^\n%Warning-WIDTH: data/full_repos/permissive/422139337/src/tmds_encoder.v:100: Operator SUB expects 8 bits on the RHS, but RHS\'s FUNCREF \'N0\' generates 4 bits.\n                                                                           : ... In instance tmds_encoder\n                cnt = cnt_prev + (N1(q_m[7:0]) - N0(q_m[7:0]));\n                                               ^\n%Warning-WIDTH: data/full_repos/permissive/422139337/src/tmds_encoder.v:110: Operator SUB expects 32 or 8 bits on the LHS, but LHS\'s FUNCREF \'N0\' generates 4 bits.\n                                                                           : ... In instance tmds_encoder\n                cnt = cnt_prev + 2*q_m[8] + (N0(q_m[7:0]) - N1(q_m[7:0]));\n                                                          ^\n%Warning-WIDTH: data/full_repos/permissive/422139337/src/tmds_encoder.v:110: Operator SUB expects 32 or 8 bits on the RHS, but RHS\'s FUNCREF \'N1\' generates 4 bits.\n                                                                           : ... In instance tmds_encoder\n                cnt = cnt_prev + 2*q_m[8] + (N0(q_m[7:0]) - N1(q_m[7:0]));\n                                                          ^\n%Warning-WIDTH: data/full_repos/permissive/422139337/src/tmds_encoder.v:115: Operator NOT expects 32 or 8 bits on the LHS, but LHS\'s SEL generates 1 bits.\n                                                                           : ... In instance tmds_encoder\n                cnt = cnt_prev + 2*(~q_m[8]) + (N1(q_m[7:0]) - N0(q_m[7:0]));\n                                    ^\n%Warning-WIDTH: data/full_repos/permissive/422139337/src/tmds_encoder.v:115: Operator SUB expects 32 or 8 bits on the LHS, but LHS\'s FUNCREF \'N1\' generates 4 bits.\n                                                                           : ... In instance tmds_encoder\n                cnt = cnt_prev + 2*(~q_m[8]) + (N1(q_m[7:0]) - N0(q_m[7:0]));\n                                                             ^\n%Warning-WIDTH: data/full_repos/permissive/422139337/src/tmds_encoder.v:115: Operator SUB expects 32 or 8 bits on the RHS, but RHS\'s FUNCREF \'N0\' generates 4 bits.\n                                                                           : ... In instance tmds_encoder\n                cnt = cnt_prev + 2*(~q_m[8]) + (N1(q_m[7:0]) - N0(q_m[7:0]));\n                                                             ^\n%Error: Exiting due to 11 warning(s)\n'
function [3:0] N1;
    input [7:0] d;
    integer i;
    begin
        N1 = 0;
        for (i = 0; i < 8; i=i+1)
            N1 = N1 + d[i];
    end
endfunction
function [3:0] N1;

    input [7:0] d;
    integer i;
    begin
        N1 = 0;
        for (i = 0; i < 8; i=i+1)
            N1 = N1 + d[i];
    end
endfunction