data/full_repos/permissive/463204869/units/tcu/source/rtl/verilog/tcu_functions.v
1: b"%Error: data/full_repos/permissive/463204869/units/tcu/source/rtl/verilog/tcu_functions.v:97: Can't find definition of variable: 'TCU_OPCODE_SIZE'\n    input [TCU_OPCODE_SIZE-1:0] cmd;\n           ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/463204869/units/tcu/source/rtl/verilog/tcu_functions.v:99: Can't find definition of variable: 'TCU_OPCODE_WRITE'\n                                                                                            : ... Suggested alternative: 'TCU_OPCODE_SIZE'\n        if ((cmd == TCU_OPCODE_WRITE) ||\n                    ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/463204869/units/tcu/source/rtl/verilog/tcu_functions.v:100: Can't find definition of variable: 'TCU_OPCODE_SEND'\n                                                                                             : ... Suggested alternative: 'TCU_OPCODE_SIZE'\n            (cmd == TCU_OPCODE_SEND) ||\n                    ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/463204869/units/tcu/source/rtl/verilog/tcu_functions.v:101: Can't find definition of variable: 'TCU_OPCODE_REPLY'\n                                                                                             : ... Suggested alternative: 'TCU_OPCODE_SEND'\n            (cmd == TCU_OPCODE_REPLY)) begin\n                    ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/463204869/units/tcu/source/rtl/verilog/tcu_functions.v:104: Can't find definition of variable: 'TCU_OPCODE_READ'\n                                                                                             : ... Suggested alternative: 'TCU_OPCODE_SEND'\n        else if (cmd == TCU_OPCODE_READ) begin\n                        ^~~~~~~~~~~~~~~\n%Error: Exiting due to 5 error(s)\n"
function [1:0] set_access;
    input [TCU_OPCODE_SIZE-1:0] cmd;
    begin
        if ((cmd == TCU_OPCODE_WRITE) ||
            (cmd == TCU_OPCODE_SEND) ||
            (cmd == TCU_OPCODE_REPLY)) begin
            set_access = 2'b01;
        end
        else if (cmd == TCU_OPCODE_READ) begin
            set_access = 2'b10;
        end

        else begin
            set_access = 2'b00;
        end
    end
endfunction
function [1:0] set_access;

    input [TCU_OPCODE_SIZE-1:0] cmd;
    begin
        if ((cmd == TCU_OPCODE_WRITE) ||
            (cmd == TCU_OPCODE_SEND) ||
            (cmd == TCU_OPCODE_REPLY)) begin
            set_access = 2'b01;
        end
        else if (cmd == TCU_OPCODE_READ) begin
            set_access = 2'b10;
        end

        else begin
            set_access = 2'b00;
        end
    end
endfunction