data/full_repos/permissive/479997390/src/NextPC.v
1: b'%Error: data/full_repos/permissive/479997390/src/NextPC.v:1: Cannot find include file: CtrlDef.v\n`include "CtrlDef.v" \n         ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/479997390/src,data/full_repos/permissive/479997390/CtrlDef.v\n             data/full_repos/permissive/479997390/src,data/full_repos/permissive/479997390/CtrlDef.v.v\n             data/full_repos/permissive/479997390/src,data/full_repos/permissive/479997390/CtrlDef.v.sv\n             CtrlDef.v\n             CtrlDef.v.v\n             CtrlDef.v.sv\n             obj_dir/CtrlDef.v\n             obj_dir/CtrlDef.v.v\n             obj_dir/CtrlDef.v.sv\n%Error: data/full_repos/permissive/479997390/src/NextPC.v:14: Define or directive not defined: \'`NPC_PLUS4\'\n      `NPC_PLUS4: Result <= PC + 4;\n      ^~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/NextPC.v:14: syntax error, unexpected \':\', expecting endcase\n      `NPC_PLUS4: Result <= PC + 4;\n                ^\n%Error: data/full_repos/permissive/479997390/src/NextPC.v:15: Define or directive not defined: \'`NPC_BRANCH\'\n      `NPC_BRANCH: Result <= Branch ? NPC + {Imm[29:0], 2\'b00} : PC + 4;\n      ^~~~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/NextPC.v:16: Define or directive not defined: \'`NPC_JUMP\'\n      `NPC_JUMP: Result <= {NPC[31:28], JumpAddr[25:0], 2\'b00};\n      ^~~~~~~~~\n%Error: data/full_repos/permissive/479997390/src/NextPC.v:17: Define or directive not defined: \'`NPC_JR\'\n      `NPC_JR: Result <= JumpAddr;\n      ^~~~~~~\n%Error: Cannot continue\n'
module NextPC (
  Branch, NPCCtrl, NPC, PC, Imm, JumpAddr, Result

);
  input Branch;
  input [1:0] NPCCtrl;
  input [31:0] NPC, PC, Imm, JumpAddr;
  output reg [31:0] Result;

  always @(*) begin
    case (NPCCtrl)
      `NPC_PLUS4: Result <= PC + 4;
      `NPC_BRANCH: Result <= Branch ? NPC + {Imm[29:0], 2'b00} : PC + 4;
      `NPC_JUMP: Result <= {NPC[31:28], JumpAddr[25:0], 2'b00};
      `NPC_JR: Result <= JumpAddr;
      default: Result <= PC + 4;
    endcase
  end

endmodule
module NextPC (
  Branch, NPCCtrl, NPC, PC, Imm, JumpAddr, Result

);

  input Branch;
  input [1:0] NPCCtrl;
  input [31:0] NPC, PC, Imm, JumpAddr;
  output reg [31:0] Result;

  always @(*) begin
    case (NPCCtrl)
      `NPC_PLUS4: Result <= PC + 4;
      `NPC_BRANCH: Result <= Branch ? NPC + {Imm[29:0], 2'b00} : PC + 4;
      `NPC_JUMP: Result <= {NPC[31:28], JumpAddr[25:0], 2'b00};
      `NPC_JR: Result <= JumpAddr;
      default: Result <= PC + 4;
    endcase
  end

endmodule