data/full_repos/permissive/489147019/Testcases/mempool/rtl/axi/src/axi_pkg.sv
1: b'%Warning-WIDTH: data/full_repos/permissive/489147019/Testcases/mempool/rtl/axi/src/axi_pkg.sv:130: Operator CASE expects 8 bits on the Case Item, but Case Item\'s CONST \'4\'h1\' generates 4 bits.\n    unique case (len)\n           ^~~~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/489147019/Testcases/mempool/rtl/axi/src/axi_pkg.sv:130: Operator CASE expects 8 bits on the Case Item, but Case Item\'s CONST \'4\'h3\' generates 4 bits.\n    unique case (len)\n           ^~~~\n%Warning-WIDTH: data/full_repos/permissive/489147019/Testcases/mempool/rtl/axi/src/axi_pkg.sv:130: Operator CASE expects 8 bits on the Case Item, but Case Item\'s CONST \'4\'h7\' generates 4 bits.\n    unique case (len)\n           ^~~~\n%Warning-WIDTH: data/full_repos/permissive/489147019/Testcases/mempool/rtl/axi/src/axi_pkg.sv:130: Operator CASE expects 8 bits on the Case Item, but Case Item\'s CONST \'4\'hf\' generates 4 bits.\n    unique case (len)\n           ^~~~\n%Warning-WIDTH: data/full_repos/permissive/489147019/Testcases/mempool/rtl/axi/src/axi_pkg.sv:167: Operator ADD expects 128 bits on the LHS, but LHS\'s VARREF \'len\' generates 8 bits.\n        ret_addr = ret_addr - (num_bytes(size) * (len + 1));\n                                                      ^\n%Warning-WIDTH: data/full_repos/permissive/489147019/Testcases/mempool/rtl/axi/src/axi_pkg.sv:166: Operator ADD expects 128 bits on the LHS, but LHS\'s VARREF \'len\' generates 8 bits.\n      if (burst == BURST_WRAP && ret_addr >= wrp_bond + (num_bytes(size) * (len + 1))) begin\n                                                                                ^\n%Warning-WIDTH: data/full_repos/permissive/489147019/Testcases/mempool/rtl/axi/src/axi_pkg.sv:178: Operator DIV expects 128 bits on the RHS, but RHS\'s VARREF \'strobe_width\' generates 16 bits.\n    return _addr - (_addr / strobe_width) * strobe_width;\n                          ^\n%Warning-WIDTH: data/full_repos/permissive/489147019/Testcases/mempool/rtl/axi/src/axi_pkg.sv:178: Operator ASSIGN expects 16 bits on the Assign RHS, but Assign RHS\'s SUB generates 128 bits.\n    return _addr - (_addr / strobe_width) * strobe_width;\n    ^~~~~~\n%Warning-WIDTH: data/full_repos/permissive/489147019/Testcases/mempool/rtl/axi/src/axi_pkg.sv:186: Operator SUB expects 128 bits on the LHS, but LHS\'s FUNCREF \'num_bytes\' generates 16 bits.\n      return aligned_addr(addr, size) + (num_bytes(size) - 1) - (addr / strobe_width) * strobe_width;\n                                                         ^\n%Warning-WIDTH: data/full_repos/permissive/489147019/Testcases/mempool/rtl/axi/src/axi_pkg.sv:186: Operator DIV expects 128 bits on the RHS, but RHS\'s VARREF \'strobe_width\' generates 16 bits.\n      return aligned_addr(addr, size) + (num_bytes(size) - 1) - (addr / strobe_width) * strobe_width;\n                                                                      ^\n%Warning-WIDTH: data/full_repos/permissive/489147019/Testcases/mempool/rtl/axi/src/axi_pkg.sv:186: Operator ASSIGN expects 16 bits on the Assign RHS, but Assign RHS\'s SUB generates 128 bits.\n      return aligned_addr(addr, size) + (num_bytes(size) - 1) - (addr / strobe_width) * strobe_width;\n      ^~~~~~\n%Error: Exiting due to 11 warning(s)\n'
function automatic logic [3:0] get_awcache(mem_type_t mtype);
    unique case (mtype)
      DEVICE_NONBUFFERABLE              : return 4'b0000;
      DEVICE_BUFFERABLE                 : return 4'b0001;
      NORMAL_NONCACHEABLE_NONBUFFERABLE : return 4'b0010;
      NORMAL_NONCACHEABLE_BUFFERABLE    : return 4'b0011;
      WTHRU_NOALLOCATE                  : return 4'b0110;
      WTHRU_RALLOCATE                   : return 4'b0110;
      WTHRU_WALLOCATE                   : return 4'b1110;
      WTHRU_RWALLOCATE                  : return 4'b1110;
      WBACK_NOALLOCATE                  : return 4'b0111;
      WBACK_RALLOCATE                   : return 4'b0111;
      WBACK_WALLOCATE                   : return 4'b1111;
      WBACK_RWALLOCATE                  : return 4'b1111;
    endcase
  endfunction
function automatic logic [3:0] get_awcache(mem_type_t mtype);

    unique case (mtype)
      DEVICE_NONBUFFERABLE              : return 4'b0000;
      DEVICE_BUFFERABLE                 : return 4'b0001;
      NORMAL_NONCACHEABLE_NONBUFFERABLE : return 4'b0010;
      NORMAL_NONCACHEABLE_BUFFERABLE    : return 4'b0011;
      WTHRU_NOALLOCATE                  : return 4'b0110;
      WTHRU_RALLOCATE                   : return 4'b0110;
      WTHRU_WALLOCATE                   : return 4'b1110;
      WTHRU_RWALLOCATE                  : return 4'b1110;
      WBACK_NOALLOCATE                  : return 4'b0111;
      WBACK_RALLOCATE                   : return 4'b0111;
      WBACK_WALLOCATE                   : return 4'b1111;
      WBACK_RWALLOCATE                  : return 4'b1111;
    endcase
  endfunction