data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/predictPC.v
'utf-8' codec can't decode byte 0xc1 in position 38: invalid start byte
1: b'%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/predictPC.v:2: Cannot find include file: const_defination.v\n`include "const_defination.v" \n         ^~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new,data/full_repos/permissive/114882688/const_defination.v\n             data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new,data/full_repos/permissive/114882688/const_defination.v.v\n             data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new,data/full_repos/permissive/114882688/const_defination.v.sv\n             const_defination.v\n             const_defination.v.v\n             const_defination.v.sv\n             obj_dir/const_defination.v\n             obj_dir/const_defination.v.v\n             obj_dir/const_defination.v.sv\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/predictPC.v:25: Define or directive not defined: \'`icodeBus\'\n    input wire[`icodeBus] icode,\n               ^~~~~~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/predictPC.v:25: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    input wire[`icodeBus] icode,\n                        ^\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/predictPC.v:26: Define or directive not defined: \'`digitsBus\'\n    input wire[`digitsBus] valC,\n               ^~~~~~~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/predictPC.v:27: Define or directive not defined: \'`digitsBus\'\n    input wire[`digitsBus] valP,\n               ^~~~~~~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/predictPC.v:28: Define or directive not defined: \'`digitsBus\'\n    output reg[`digitsBus]  pc\n               ^~~~~~~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/predictPC.v:34: Define or directive not defined: \'`jmp\'\n            `jmp:\n            ^~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/predictPC.v:38: Define or directive not defined: \'`call\'\n            `call:\n            ^~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/predictPC.v:42: Define or directive not defined: \'`halt\'\n   `halt:\n   ^~~~~\n%Error: data/full_repos/permissive/114882688/myY-86.srcs/sources_1/new/predictPC.v:46: Define or directive not defined: \'`ret\'\n   `ret:\n   ^~~~\n%Error: Exiting due to 10 error(s)\n'
module predictPC(
    input wire[`icodeBus] icode,
    input wire[`digitsBus] valC,
    input wire[`digitsBus] valP,
    output reg[`digitsBus]  pc
    );
    
    always@(*)
    begin
        case({icode,4'h0})
            `jmp:
                begin
                    pc=valC;
                end
            `call:
                begin
                    pc=valC;
                end
			`halt:
				begin
					pc=valP-1;
				end
			`ret:
				begin
					pc=valP-1;
				end
            default:
                begin
                    pc=valP;
                end
        endcase
    end
    
endmodule
module predictPC(
    input wire[`icodeBus] icode,
    input wire[`digitsBus] valC,
    input wire[`digitsBus] valP,
    output reg[`digitsBus]  pc
    );

    
    always@(*)
    begin
        case({icode,4'h0})
            `jmp:
                begin
                    pc=valC;
                end
            `call:
                begin
                    pc=valC;
                end
			`halt:
				begin
					pc=valP-1;
				end
			`ret:
				begin
					pc=valP-1;
				end
            default:
                begin
                    pc=valP;
                end
        endcase
    end
    
endmodule