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 automatic [2:0] get_firstone8;
    input [7:0] data;
    begin
        casex(data)
            8'bxxxx_xxx1: get_firstone8 = 3'd0;
            8'bxxxx_xx10: get_firstone8 = 3'd1;
            8'bxxxx_x100: get_firstone8 = 3'd2;
            8'bxxxx_1000: get_firstone8 = 3'd3;
            8'bxxx1_0000: get_firstone8 = 3'd4;
            8'bxx10_0000: get_firstone8 = 3'd5;
            8'bx100_0000: get_firstone8 = 3'd6;
            8'b1000_0000: get_firstone8 = 3'd7;
            default: get_firstone8 = 8'd0;
        endcase
    end
endfunction
function automatic [2:0] get_firstone8;

    input [7:0] data;
    begin
        casex(data)
            8'bxxxx_xxx1: get_firstone8 = 3'd0;
            8'bxxxx_xx10: get_firstone8 = 3'd1;
            8'bxxxx_x100: get_firstone8 = 3'd2;
            8'bxxxx_1000: get_firstone8 = 3'd3;
            8'bxxx1_0000: get_firstone8 = 3'd4;
            8'bxx10_0000: get_firstone8 = 3'd5;
            8'bx100_0000: get_firstone8 = 3'd6;
            8'b1000_0000: get_firstone8 = 3'd7;
            default: get_firstone8 = 8'd0;
        endcase
    end
endfunction