data/full_repos/permissive/486812922/src/npc.v
1: b'%Error: data/full_repos/permissive/486812922/src/npc.v:2: Cannot find include file: ctrl_encode_def.v\n`include "ctrl_encode_def.v" \n         ^~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/486812922/src,data/full_repos/permissive/486812922/ctrl_encode_def.v\n             data/full_repos/permissive/486812922/src,data/full_repos/permissive/486812922/ctrl_encode_def.v.v\n             data/full_repos/permissive/486812922/src,data/full_repos/permissive/486812922/ctrl_encode_def.v.sv\n             ctrl_encode_def.v\n             ctrl_encode_def.v.v\n             ctrl_encode_def.v.sv\n             obj_dir/ctrl_encode_def.v\n             obj_dir/ctrl_encode_def.v.v\n             obj_dir/ctrl_encode_def.v.sv\n%Error: data/full_repos/permissive/486812922/src/npc.v:18: Define or directive not defined: \'`NPC_PLUS4\'\n        `NPC_PLUS4:\n        ^~~~~~~~~~\n%Error: data/full_repos/permissive/486812922/src/npc.v:18: syntax error, unexpected \':\', expecting endcase\n        `NPC_PLUS4:\n                  ^\n%Error: data/full_repos/permissive/486812922/src/npc.v:21: Define or directive not defined: \'`NPC_BRANCH\'\n        `NPC_BRANCH:\n        ^~~~~~~~~~~\n%Error: data/full_repos/permissive/486812922/src/npc.v:24: Define or directive not defined: \'`NPC_JUMP\'\n        `NPC_JUMP:\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/486812922/src/npc.v:27: Define or directive not defined: \'`NPC_JR\'\n        `NPC_JR:\n        ^~~~~~~\n%Error: Cannot continue\n'
module npc(PC, NPCOp, IMM, RS, NPC);

input [31: 0] PC;

input [2: 0] NPCOp;

input [25: 0] IMM;

input [31: 0] RS;

output reg [31: 0] NPC;

always @( * ) begin
    case (NPCOp)

        `NPC_PLUS4:
            NPC = PC + 4;

        `NPC_BRANCH:
            NPC = PC + 4 + {{14{IMM[15]}}, IMM[15: 0], 2'b00};

        `NPC_JUMP:
            NPC = {PC[31: 28], IMM[25: 0], 2'b00};

        `NPC_JR:
            NPC = RS;
        default:
            NPC = PC;
    endcase
end
endmodule
module npc(PC, NPCOp, IMM, RS, NPC);


input [31: 0] PC;

input [2: 0] NPCOp;

input [25: 0] IMM;

input [31: 0] RS;

output reg [31: 0] NPC;

always @( * ) begin
    case (NPCOp)

        `NPC_PLUS4:
            NPC = PC + 4;

        `NPC_BRANCH:
            NPC = PC + 4 + {{14{IMM[15]}}, IMM[15: 0], 2'b00};

        `NPC_JUMP:
            NPC = {PC[31: 28], IMM[25: 0], 2'b00};

        `NPC_JR:
            NPC = RS;
        default:
            NPC = PC;
    endcase
end
endmodule