data/full_repos/permissive/131249673/MIPS_L_MultiCycle/NPC.v
1: b'%Error: data/full_repos/permissive/131249673/MIPS_L_MultiCycle/NPC.v:1: Cannot find include file: ctrl_encode_def.v\n`include "ctrl_encode_def.v" \n         ^~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/131249673/MIPS_L_MultiCycle,data/full_repos/permissive/131249673/ctrl_encode_def.v\n             data/full_repos/permissive/131249673/MIPS_L_MultiCycle,data/full_repos/permissive/131249673/ctrl_encode_def.v.v\n             data/full_repos/permissive/131249673/MIPS_L_MultiCycle,data/full_repos/permissive/131249673/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/131249673/MIPS_L_MultiCycle/NPC.v:14: Define or directive not defined: \'`NPC_PLUS4\'\n          `NPC_PLUS4: NPC = PC + 1;\n          ^~~~~~~~~~\n%Error: data/full_repos/permissive/131249673/MIPS_L_MultiCycle/NPC.v:14: syntax error, unexpected \':\', expecting endcase\n          `NPC_PLUS4: NPC = PC + 1;\n                    ^\n%Error: data/full_repos/permissive/131249673/MIPS_L_MultiCycle/NPC.v:15: Define or directive not defined: \'`NPC_BRANCH\'\n          `NPC_BRANCH: NPC = PC + {{14{IMM[15]}}, IMM[15:0]};\n          ^~~~~~~~~~~\n%Error: data/full_repos/permissive/131249673/MIPS_L_MultiCycle/NPC.v:16: Define or directive not defined: \'`NPC_JUMP\'\n          `NPC_JUMP: NPC = {PC[31:28], IMM[25:0]};\n          ^~~~~~~~~\n%Error: data/full_repos/permissive/131249673/MIPS_L_MultiCycle/NPC.v:17: Define or directive not defined: \'`NPC_JMPR\'\n          `NPC_JMPR: NPC = JMPR;\n          ^~~~~~~~~\n%Error: Cannot continue\n'
module NPC( PC, NPCOp, IMM, NPC, JMPR );
    
   input  [31:2] PC;
   input  [1:0]  NPCOp;
   input  [25:0] IMM;
   input  [29:0] JMPR;
   output [31:2] NPC;
   
   reg [31:2] NPC;
   
   always @(*) begin
      case (NPCOp)
          `NPC_PLUS4: NPC = PC + 1;
          `NPC_BRANCH: NPC = PC + {{14{IMM[15]}}, IMM[15:0]};
          `NPC_JUMP: NPC = {PC[31:28], IMM[25:0]};
          `NPC_JMPR: NPC = JMPR;
          default: ;
      endcase
   end
   
endmodule
module NPC( PC, NPCOp, IMM, NPC, JMPR );

    
   input  [31:2] PC;
   input  [1:0]  NPCOp;
   input  [25:0] IMM;
   input  [29:0] JMPR;
   output [31:2] NPC;
   
   reg [31:2] NPC;
   
   always @(*) begin
      case (NPCOp)
          `NPC_PLUS4: NPC = PC + 1;
          `NPC_BRANCH: NPC = PC + {{14{IMM[15]}}, IMM[15:0]};
          `NPC_JUMP: NPC = {PC[31:28], IMM[25:0]};
          `NPC_JMPR: NPC = JMPR;
          default: ;
      endcase
   end
   
endmodule