data/full_repos/permissive/131196995/hardware/cpu.v
None: at end of input
1: b'%Error: data/full_repos/permissive/131196995/hardware/cpu.v:9: Unsupported or unknown PLI call: $dumpfile\n        $dumpfile("cpu.vcd");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/131196995/hardware/cpu.v:10: Unsupported or unknown PLI call: $dumpvars\n        $dumpvars(0,main);\n        ^~~~~~~~~\n%Error: Exiting due to 2 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
function automatic [16:0] branch_prediction;
        input [15:0] current_PC;
        begin
            if (!branch_predictor_ON)
                branch_prediction = 0;
            else if (branch_cache[branch_c][32] && branch_cache[branch_c][31:16] == current_PC)
                branch_prediction = {1'b1, branch_cache[branch_c][15:0]};
            else if (branch_cache[branch_c-1][32] && branch_cache[branch_c-1][31:16] == current_PC)
                branch_prediction = {1'b1, branch_cache[branch_c-1][15:0]};
            else if (branch_cache[branch_c-2][32] && branch_cache[branch_c-2][31:16] == current_PC)
                branch_prediction = {1'b1, branch_cache[branch_c-2][15:0]};
            else if (branch_cache[branch_c-3][32] && branch_cache[branch_c-3][31:16] == current_PC)
                branch_prediction = {1'b1, branch_cache[branch_c-3][15:0]};
            else if (branch_cache[branch_c-4][32] && branch_cache[branch_c-4][31:16] == current_PC)
                branch_prediction = {1'b1, branch_cache[branch_c-4][15:0]};
            else if (branch_cache[branch_c-5][32] && branch_cache[branch_c-5][31:16] == current_PC)
                branch_prediction = {1'b1, branch_cache[branch_c-5][15:0]};
            else if (branch_cache[branch_c-6][32] && branch_cache[branch_c-6][31:16] == current_PC)
                branch_prediction = {1'b1, branch_cache[branch_c-6][15:0]};
            else if (branch_cache[branch_c-7][32] && branch_cache[branch_c-7][31:16] == current_PC)
                branch_prediction = {1'b1, branch_cache[branch_c-7][15:0]};
            else
                branch_prediction = 0;
        end
    endfunction
function automatic [16:0] branch_prediction;

        input [15:0] current_PC;
        begin
            if (!branch_predictor_ON)
                branch_prediction = 0;
            else if (branch_cache[branch_c][32] && branch_cache[branch_c][31:16] == current_PC)
                branch_prediction = {1'b1, branch_cache[branch_c][15:0]};
            else if (branch_cache[branch_c-1][32] && branch_cache[branch_c-1][31:16] == current_PC)
                branch_prediction = {1'b1, branch_cache[branch_c-1][15:0]};
            else if (branch_cache[branch_c-2][32] && branch_cache[branch_c-2][31:16] == current_PC)
                branch_prediction = {1'b1, branch_cache[branch_c-2][15:0]};
            else if (branch_cache[branch_c-3][32] && branch_cache[branch_c-3][31:16] == current_PC)
                branch_prediction = {1'b1, branch_cache[branch_c-3][15:0]};
            else if (branch_cache[branch_c-4][32] && branch_cache[branch_c-4][31:16] == current_PC)
                branch_prediction = {1'b1, branch_cache[branch_c-4][15:0]};
            else if (branch_cache[branch_c-5][32] && branch_cache[branch_c-5][31:16] == current_PC)
                branch_prediction = {1'b1, branch_cache[branch_c-5][15:0]};
            else if (branch_cache[branch_c-6][32] && branch_cache[branch_c-6][31:16] == current_PC)
                branch_prediction = {1'b1, branch_cache[branch_c-6][15:0]};
            else if (branch_cache[branch_c-7][32] && branch_cache[branch_c-7][31:16] == current_PC)
                branch_prediction = {1'b1, branch_cache[branch_c-7][15:0]};
            else
                branch_prediction = 0;
        end
    endfunction