data/full_repos/permissive/164569208/rtl/pcie_tlp_fc_count.v
 line:121: before: ","
1: b'%Warning-WIDTH: data/full_repos/permissive/164569208/rtl/pcie_tlp_fc_count.v:149: Operator ADD expects 32 or 12 bits on the LHS, but LHS\'s REPLICATE generates 10 bits.\n                                                                                : ... In instance pcie_tlp_fc_count\n            seg_fc_d = ({tlp_hdr[seg*TLP_HDR_WIDTH+96 +: 9] == 0, tlp_hdr[seg*TLP_HDR_WIDTH+96 +: 9]}+3) >> 2;\n                                                                                                     ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/164569208/rtl/pcie_tlp_fc_count.v:155: Operator ADD expects 12 bits on the LHS, but LHS\'s VARREF \'fc_pd_next\' generates 9 bits.\n                                                                                : ... In instance pcie_tlp_fc_count\n                fc_pd_next = fc_pd_next + seg_fc_d;\n                                        ^\n%Warning-WIDTH: data/full_repos/permissive/164569208/rtl/pcie_tlp_fc_count.v:155: Operator ASSIGN expects 9 bits on the Assign RHS, but Assign RHS\'s ADD generates 12 bits.\n                                                                                : ... In instance pcie_tlp_fc_count\n                fc_pd_next = fc_pd_next + seg_fc_d;\n                           ^\n%Warning-WIDTH: data/full_repos/permissive/164569208/rtl/pcie_tlp_fc_count.v:158: Operator ADD expects 12 bits on the LHS, but LHS\'s VARREF \'fc_npd_next\' generates 9 bits.\n                                                                                : ... In instance pcie_tlp_fc_count\n                fc_npd_next = fc_npd_next + seg_fc_d;\n                                          ^\n%Warning-WIDTH: data/full_repos/permissive/164569208/rtl/pcie_tlp_fc_count.v:158: Operator ASSIGN expects 9 bits on the Assign RHS, but Assign RHS\'s ADD generates 12 bits.\n                                                                                : ... In instance pcie_tlp_fc_count\n                fc_npd_next = fc_npd_next + seg_fc_d;\n                            ^\n%Warning-WIDTH: data/full_repos/permissive/164569208/rtl/pcie_tlp_fc_count.v:161: Operator ADD expects 12 bits on the LHS, but LHS\'s VARREF \'fc_cpld_next\' generates 9 bits.\n                                                                                : ... In instance pcie_tlp_fc_count\n                fc_cpld_next = fc_cpld_next + seg_fc_d;\n                                            ^\n%Warning-WIDTH: data/full_repos/permissive/164569208/rtl/pcie_tlp_fc_count.v:161: Operator ASSIGN expects 9 bits on the Assign RHS, but Assign RHS\'s ADD generates 12 bits.\n                                                                                : ... In instance pcie_tlp_fc_count\n                fc_cpld_next = fc_cpld_next + seg_fc_d;\n                             ^\n%Error: Exiting due to 7 warning(s)\n'
function [1:0] tlp_fc_type;
    input [7:0] fmt_type;
    case (fmt_type)
        8'b000_00000: tlp_fc_type = FC_TYPE_NP;
        8'b001_00000: tlp_fc_type = FC_TYPE_NP;
        8'b000_00001: tlp_fc_type = FC_TYPE_NP;
        8'b001_00001: tlp_fc_type = FC_TYPE_NP;
        8'b010_00000: tlp_fc_type = FC_TYPE_P;
        8'b011_00000: tlp_fc_type = FC_TYPE_P;
        8'b000_00010: tlp_fc_type = FC_TYPE_NP;
        8'b010_00010: tlp_fc_type = FC_TYPE_NP;
        8'b000_00100: tlp_fc_type = FC_TYPE_NP;
        8'b010_00100: tlp_fc_type = FC_TYPE_NP;
        8'b000_00101: tlp_fc_type = FC_TYPE_NP;
        8'b010_00101: tlp_fc_type = FC_TYPE_NP;
        8'b001_10000: tlp_fc_type = FC_TYPE_P;
        8'b001_10001: tlp_fc_type = FC_TYPE_P;
        8'b001_10010: tlp_fc_type = FC_TYPE_P;
        8'b001_10011: tlp_fc_type = FC_TYPE_P;
        8'b001_10100: tlp_fc_type = FC_TYPE_P;
        8'b001_10101: tlp_fc_type = FC_TYPE_P;
        8'b011_10000: tlp_fc_type = FC_TYPE_P;
        8'b011_10001: tlp_fc_type = FC_TYPE_P;
        8'b011_10010: tlp_fc_type = FC_TYPE_P;
        8'b011_10011: tlp_fc_type = FC_TYPE_P;
        8'b011_10100: tlp_fc_type = FC_TYPE_P;
        8'b011_10101: tlp_fc_type = FC_TYPE_P;
        8'b000_01010: tlp_fc_type = FC_TYPE_CPL;
        8'b010_01010: tlp_fc_type = FC_TYPE_CPL;
        8'b000_01011: tlp_fc_type = FC_TYPE_CPL;
        8'b010_01011: tlp_fc_type = FC_TYPE_CPL;
        8'b010_01100: tlp_fc_type = FC_TYPE_NP;
        8'b011_01100: tlp_fc_type = FC_TYPE_NP;
        8'b010_01101: tlp_fc_type = FC_TYPE_NP;
        8'b011_01101: tlp_fc_type = FC_TYPE_NP;
        8'b010_01110: tlp_fc_type = FC_TYPE_NP;
        8'b011_01110: tlp_fc_type = FC_TYPE_NP;
        default: tlp_fc_type = 2'bxx;
    endcase
endfunction
function [1:0] tlp_fc_type;

    input [7:0] fmt_type;
    case (fmt_type)
        8'b000_00000: tlp_fc_type = FC_TYPE_NP;
        8'b001_00000: tlp_fc_type = FC_TYPE_NP;
        8'b000_00001: tlp_fc_type = FC_TYPE_NP;
        8'b001_00001: tlp_fc_type = FC_TYPE_NP;
        8'b010_00000: tlp_fc_type = FC_TYPE_P;
        8'b011_00000: tlp_fc_type = FC_TYPE_P;
        8'b000_00010: tlp_fc_type = FC_TYPE_NP;
        8'b010_00010: tlp_fc_type = FC_TYPE_NP;
        8'b000_00100: tlp_fc_type = FC_TYPE_NP;
        8'b010_00100: tlp_fc_type = FC_TYPE_NP;
        8'b000_00101: tlp_fc_type = FC_TYPE_NP;
        8'b010_00101: tlp_fc_type = FC_TYPE_NP;
        8'b001_10000: tlp_fc_type = FC_TYPE_P;
        8'b001_10001: tlp_fc_type = FC_TYPE_P;
        8'b001_10010: tlp_fc_type = FC_TYPE_P;
        8'b001_10011: tlp_fc_type = FC_TYPE_P;
        8'b001_10100: tlp_fc_type = FC_TYPE_P;
        8'b001_10101: tlp_fc_type = FC_TYPE_P;
        8'b011_10000: tlp_fc_type = FC_TYPE_P;
        8'b011_10001: tlp_fc_type = FC_TYPE_P;
        8'b011_10010: tlp_fc_type = FC_TYPE_P;
        8'b011_10011: tlp_fc_type = FC_TYPE_P;
        8'b011_10100: tlp_fc_type = FC_TYPE_P;
        8'b011_10101: tlp_fc_type = FC_TYPE_P;
        8'b000_01010: tlp_fc_type = FC_TYPE_CPL;
        8'b010_01010: tlp_fc_type = FC_TYPE_CPL;
        8'b000_01011: tlp_fc_type = FC_TYPE_CPL;
        8'b010_01011: tlp_fc_type = FC_TYPE_CPL;
        8'b010_01100: tlp_fc_type = FC_TYPE_NP;
        8'b011_01100: tlp_fc_type = FC_TYPE_NP;
        8'b010_01101: tlp_fc_type = FC_TYPE_NP;
        8'b011_01101: tlp_fc_type = FC_TYPE_NP;
        8'b010_01110: tlp_fc_type = FC_TYPE_NP;
        8'b011_01110: tlp_fc_type = FC_TYPE_NP;
        default: tlp_fc_type = 2'bxx;
    endcase
endfunction