data/full_repos/permissive/505213911/rtl/key_xor.v
1: b'%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:62: Operator XOR expects 256 bits on the LHS, but LHS\'s VARREF \'data\' generates 128 bits.\n                                                                     : ... In instance key_xor\n            4\'h0: key_switcher = data ^ 256\'hC7DB5C958C8807843A94F27C81B18E7A;\n                                      ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:62: Operator ASSIGN expects 128 bits on the Assign RHS, but Assign RHS\'s XOR generates 256 bits.\n                                                                     : ... In instance key_xor\n            4\'h0: key_switcher = data ^ 256\'hC7DB5C958C8807843A94F27C81B18E7A;\n                               ^\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:63: Operator XOR expects 256 bits on the LHS, but LHS\'s VARREF \'data\' generates 128 bits.\n                                                                     : ... In instance key_xor\n            4\'h1: key_switcher = data ^ 256\'h7E09FCD1B3315D0597CAB1BE78E69B9B;\n                                      ^\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:63: Operator ASSIGN expects 128 bits on the Assign RHS, but Assign RHS\'s XOR generates 256 bits.\n                                                                     : ... In instance key_xor\n            4\'h1: key_switcher = data ^ 256\'h7E09FCD1B3315D0597CAB1BE78E69B9B;\n                               ^\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:64: Operator XOR expects 256 bits on the LHS, but LHS\'s VARREF \'data\' generates 128 bits.\n                                                                     : ... In instance key_xor\n            4\'h2: key_switcher = data ^ 256\'hB8E138A1509521DC9AAF044645FA8A7D;\n                                      ^\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:64: Operator ASSIGN expects 128 bits on the Assign RHS, but Assign RHS\'s XOR generates 256 bits.\n                                                                     : ... In instance key_xor\n            4\'h2: key_switcher = data ^ 256\'hB8E138A1509521DC9AAF044645FA8A7D;\n                               ^\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:65: Operator XOR expects 256 bits on the LHS, but LHS\'s VARREF \'data\' generates 128 bits.\n                                                                     : ... In instance key_xor\n            4\'h3: key_switcher = data ^ 256\'hF1C22EA0A81BEC652A4348F7C48F4A8C;\n                                      ^\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:65: Operator ASSIGN expects 128 bits on the Assign RHS, but Assign RHS\'s XOR generates 256 bits.\n                                                                     : ... In instance key_xor\n            4\'h3: key_switcher = data ^ 256\'hF1C22EA0A81BEC652A4348F7C48F4A8C;\n                               ^\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:66: Operator XOR expects 256 bits on the LHS, but LHS\'s VARREF \'data\' generates 128 bits.\n                                                                     : ... In instance key_xor\n            4\'h4: key_switcher = data ^ 256\'h9A30FD14B4764A65373D4A526B66666A;\n                                      ^\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:66: Operator ASSIGN expects 128 bits on the Assign RHS, but Assign RHS\'s XOR generates 256 bits.\n                                                                     : ... In instance key_xor\n            4\'h4: key_switcher = data ^ 256\'h9A30FD14B4764A65373D4A526B66666A;\n                               ^\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:67: Operator XOR expects 256 bits on the LHS, but LHS\'s VARREF \'data\' generates 128 bits.\n                                                                     : ... In instance key_xor\n            4\'h5: key_switcher = data ^ 256\'hC35C1192F7061952D483C3C1F6B88B98;\n                                      ^\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:67: Operator ASSIGN expects 128 bits on the Assign RHS, but Assign RHS\'s XOR generates 256 bits.\n                                                                     : ... In instance key_xor\n            4\'h5: key_switcher = data ^ 256\'hC35C1192F7061952D483C3C1F6B88B98;\n                               ^\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:68: Operator XOR expects 256 bits on the LHS, but LHS\'s VARREF \'data\' generates 128 bits.\n                                                                     : ... In instance key_xor\n            4\'h6: key_switcher = data ^ 256\'hC5ADF5A722F6A73AE03E86CAEADF2641;\n                                      ^\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:68: Operator ASSIGN expects 128 bits on the Assign RHS, but Assign RHS\'s XOR generates 256 bits.\n                                                                     : ... In instance key_xor\n            4\'h6: key_switcher = data ^ 256\'hC5ADF5A722F6A73AE03E86CAEADF2641;\n                               ^\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:69: Operator XOR expects 256 bits on the LHS, but LHS\'s VARREF \'data\' generates 128 bits.\n                                                                     : ... In instance key_xor\n            4\'h7: key_switcher = data ^ 256\'h18F3D7A3E4DE63A16541D103E786DB9C;\n                                      ^\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:69: Operator ASSIGN expects 128 bits on the Assign RHS, but Assign RHS\'s XOR generates 256 bits.\n                                                                     : ... In instance key_xor\n            4\'h7: key_switcher = data ^ 256\'h18F3D7A3E4DE63A16541D103E786DB9C;\n                               ^\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:70: Operator XOR expects 256 bits on the LHS, but LHS\'s VARREF \'data\' generates 128 bits.\n                                                                     : ... In instance key_xor\n            4\'h8: key_switcher = data ^ 256\'h173D53BE74D68AE778E7994FD7FA5FD5;\n                                      ^\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:70: Operator ASSIGN expects 128 bits on the Assign RHS, but Assign RHS\'s XOR generates 256 bits.\n                                                                     : ... In instance key_xor\n            4\'h8: key_switcher = data ^ 256\'h173D53BE74D68AE778E7994FD7FA5FD5;\n                               ^\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:71: Operator XOR expects 256 bits on the LHS, but LHS\'s VARREF \'data\' generates 128 bits.\n                                                                     : ... In instance key_xor\n            4\'h9: key_switcher = data ^ 256\'hDF8E42FDE9BFBA4D6E9B24E4A953F27F;\n                                      ^\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:71: Operator ASSIGN expects 128 bits on the Assign RHS, but Assign RHS\'s XOR generates 256 bits.\n                                                                     : ... In instance key_xor\n            4\'h9: key_switcher = data ^ 256\'hDF8E42FDE9BFBA4D6E9B24E4A953F27F;\n                               ^\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:61: Operator CASE expects 8 bits on the Case Item, but Case Item\'s CONST \'4\'h0\' generates 4 bits.\n                                                                     : ... In instance key_xor\n        case (stage_num)\n        ^~~~\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:61: Operator CASE expects 8 bits on the Case Item, but Case Item\'s CONST \'4\'h1\' generates 4 bits.\n                                                                     : ... In instance key_xor\n        case (stage_num)\n        ^~~~\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:61: Operator CASE expects 8 bits on the Case Item, but Case Item\'s CONST \'4\'h2\' generates 4 bits.\n                                                                     : ... In instance key_xor\n        case (stage_num)\n        ^~~~\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:61: Operator CASE expects 8 bits on the Case Item, but Case Item\'s CONST \'4\'h3\' generates 4 bits.\n                                                                     : ... In instance key_xor\n        case (stage_num)\n        ^~~~\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:61: Operator CASE expects 8 bits on the Case Item, but Case Item\'s CONST \'4\'h4\' generates 4 bits.\n                                                                     : ... In instance key_xor\n        case (stage_num)\n        ^~~~\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:61: Operator CASE expects 8 bits on the Case Item, but Case Item\'s CONST \'4\'h5\' generates 4 bits.\n                                                                     : ... In instance key_xor\n        case (stage_num)\n        ^~~~\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:61: Operator CASE expects 8 bits on the Case Item, but Case Item\'s CONST \'4\'h6\' generates 4 bits.\n                                                                     : ... In instance key_xor\n        case (stage_num)\n        ^~~~\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:61: Operator CASE expects 8 bits on the Case Item, but Case Item\'s CONST \'4\'h7\' generates 4 bits.\n                                                                     : ... In instance key_xor\n        case (stage_num)\n        ^~~~\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:61: Operator CASE expects 8 bits on the Case Item, but Case Item\'s CONST \'4\'h8\' generates 4 bits.\n                                                                     : ... In instance key_xor\n        case (stage_num)\n        ^~~~\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:61: Operator CASE expects 8 bits on the Case Item, but Case Item\'s CONST \'4\'h9\' generates 4 bits.\n                                                                     : ... In instance key_xor\n        case (stage_num)\n        ^~~~\n%Warning-WIDTH: data/full_repos/permissive/505213911/rtl/key_xor.v:50: Operator FUNCREF \'key_switcher\' expects 8 bits on the Function Argument, but Function Argument\'s VARREF \'stage_num\' generates 4 bits.\n                                                                     : ... In instance key_xor\nassign data_o = key_switcher(stage_num, data_i);\n                ^~~~~~~~~~~~\n%Error: Exiting due to 31 warning(s)\n'
function automatic [127:0] key_switcher;

    input   [7:0]   stage_num;
    input   [127:0] data;

    begin
        case (stage_num)
            4'h0: key_switcher = data ^ 256'hC7DB5C958C8807843A94F27C81B18E7A;
            4'h1: key_switcher = data ^ 256'h7E09FCD1B3315D0597CAB1BE78E69B9B;
            4'h2: key_switcher = data ^ 256'hB8E138A1509521DC9AAF044645FA8A7D;
            4'h3: key_switcher = data ^ 256'hF1C22EA0A81BEC652A4348F7C48F4A8C;
            4'h4: key_switcher = data ^ 256'h9A30FD14B4764A65373D4A526B66666A;
            4'h5: key_switcher = data ^ 256'hC35C1192F7061952D483C3C1F6B88B98;
            4'h6: key_switcher = data ^ 256'hC5ADF5A722F6A73AE03E86CAEADF2641;
            4'h7: key_switcher = data ^ 256'h18F3D7A3E4DE63A16541D103E786DB9C;
            4'h8: key_switcher = data ^ 256'h173D53BE74D68AE778E7994FD7FA5FD5;
            4'h9: key_switcher = data ^ 256'hDF8E42FDE9BFBA4D6E9B24E4A953F27F;
        endcase
    end
endfunction
function automatic [127:0] key_switcher;


    input   [7:0]   stage_num;
    input   [127:0] data;

    begin
        case (stage_num)
            4'h0: key_switcher = data ^ 256'hC7DB5C958C8807843A94F27C81B18E7A;
            4'h1: key_switcher = data ^ 256'h7E09FCD1B3315D0597CAB1BE78E69B9B;
            4'h2: key_switcher = data ^ 256'hB8E138A1509521DC9AAF044645FA8A7D;
            4'h3: key_switcher = data ^ 256'hF1C22EA0A81BEC652A4348F7C48F4A8C;
            4'h4: key_switcher = data ^ 256'h9A30FD14B4764A65373D4A526B66666A;
            4'h5: key_switcher = data ^ 256'hC35C1192F7061952D483C3C1F6B88B98;
            4'h6: key_switcher = data ^ 256'hC5ADF5A722F6A73AE03E86CAEADF2641;
            4'h7: key_switcher = data ^ 256'h18F3D7A3E4DE63A16541D103E786DB9C;
            4'h8: key_switcher = data ^ 256'h173D53BE74D68AE778E7994FD7FA5FD5;
            4'h9: key_switcher = data ^ 256'hDF8E42FDE9BFBA4D6E9B24E4A953F27F;
        endcase
    end
endfunction