data/full_repos/permissive/196851857/datapath/npc.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b'%Error: data/full_repos/permissive/196851857/datapath/npc.v:1: Cannot find include file: ..\\\\control\\\\ctrl_signals_def.v\n`include "..\\\\control\\\\ctrl_signals_def.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/196851857/datapath,data/full_repos/permissive/196851857/..\\\\control\\\\ctrl_signals_def.v\n             data/full_repos/permissive/196851857/datapath,data/full_repos/permissive/196851857/..\\\\control\\\\ctrl_signals_def.v.v\n             data/full_repos/permissive/196851857/datapath,data/full_repos/permissive/196851857/..\\\\control\\\\ctrl_signals_def.v.sv\n             ..\\\\control\\\\ctrl_signals_def.v\n             ..\\\\control\\\\ctrl_signals_def.v.v\n             ..\\\\control\\\\ctrl_signals_def.v.sv\n             obj_dir/..\\\\control\\\\ctrl_signals_def.v\n             obj_dir/..\\\\control\\\\ctrl_signals_def.v.v\n             obj_dir/..\\\\control\\\\ctrl_signals_def.v.sv\n%Error: data/full_repos/permissive/196851857/datapath/npc.v:36: Define or directive not defined: \'`False\'\n                                                              : ... Suggested alternative: \'`else\'\n    .i110(`False), \n          ^~~~~~\n%Error: data/full_repos/permissive/196851857/datapath/npc.v:37: Define or directive not defined: \'`False\'\n                                                              : ... Suggested alternative: \'`else\'\n    .i111(`False),  \n          ^~~~~~\n%Error: data/full_repos/permissive/196851857/datapath/npc.v:42: Define or directive not defined: \'`OffsetTypeJump\'\n  assign should_go_to_branch = (JumpType == `OffsetTypeJump) ? cmp_flag : `False;\n                                            ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/196851857/datapath/npc.v:42: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n  assign should_go_to_branch = (JumpType == `OffsetTypeJump) ? cmp_flag : `False;\n                                                           ^\n%Error: data/full_repos/permissive/196851857/datapath/npc.v:42: Define or directive not defined: \'`False\'\n                                                              : ... Suggested alternative: \'`else\'\n  assign should_go_to_branch = (JumpType == `OffsetTypeJump) ? cmp_flag : `False;\n                                                                          ^~~~~~\n%Error: data/full_repos/permissive/196851857/datapath/npc.v:47: Define or directive not defined: \'`SignExt\'\n    .ExtType(`SignExt),\n             ^~~~~~~~\n%Error: Exiting due to 7 error(s)\n'
module npc(
  PC,
  PseudoAddr,
  offset,
  RegTypeNPC,
  BranchType,
  JumpType,

  zero, pos, neg,
  NPC, NormalNPC
);

  input [31:0] PC;
  input [25:0] PseudoAddr;
  input [15:0] offset;
  input [31:0] RegTypeNPC;
  input [2:0] BranchType;
  input [1:0] JumpType;

  input zero, pos, neg;
  output [31:0] NPC;
  output [31:0] NormalNPC;
  
  wire cmp_flag;
  wire should_go_to_branch;
  
  mux8 #(.WIDTH(1)) mux_jump(
    .i000(zero | pos),
    .i001(pos),
    .i010(neg | zero),
    .i011(neg),
    
    .i100(zero),
    .i101(zero^1'b1),
    .i110(`False),
    .i111(`False),
    
    .sel(BranchType),
    .out(cmp_flag)
  );
  assign should_go_to_branch = (JumpType == `OffsetTypeJump) ? cmp_flag : `False;
  wire [29:0]offset_30;
  wire [31:0]offset_32;
  ext #(.WIDTH(16),.BIGWIDTH(30)) pc_offset_ext(
    .in(offset),
    .ExtType(`SignExt),
    .out(offset_30)
  );
  assign offset_32 = {offset_30, 2'b00};

  wire [31:0] PseudoTypeNPC = {PC[31:28], PseudoAddr, 2'b00};
  assign NormalNPC = PC + 4;
  
  wire [31:0] BranchOffsetNPC = PC + offset_32;
  wire [31:0] shouldGotoBranchNPC = (should_go_to_branch) ? BranchOffsetNPC : NormalNPC;
  mux4 mux_jump_npc(
    .i00(NormalNPC),
    .i01(shouldGotoBranchNPC),
    
    .i10(RegTypeNPC),
    .i11(PseudoTypeNPC),
    
    .sel(JumpType),
    
    .out(NPC)
  );
endmodule
module npc(
  PC,
  PseudoAddr,
  offset,
  RegTypeNPC,
  BranchType,
  JumpType,

  zero, pos, neg,
  NPC, NormalNPC
);


  input [31:0] PC;
  input [25:0] PseudoAddr;
  input [15:0] offset;
  input [31:0] RegTypeNPC;
  input [2:0] BranchType;
  input [1:0] JumpType;

  input zero, pos, neg;
  output [31:0] NPC;
  output [31:0] NormalNPC;
  
  wire cmp_flag;
  wire should_go_to_branch;
  
  mux8 #(.WIDTH(1)) mux_jump(
    .i000(zero | pos),
    .i001(pos),
    .i010(neg | zero),
    .i011(neg),
    
    .i100(zero),
    .i101(zero^1'b1),
    .i110(`False),
    .i111(`False),
    
    .sel(BranchType),
    .out(cmp_flag)
  );
  assign should_go_to_branch = (JumpType == `OffsetTypeJump) ? cmp_flag : `False;
  wire [29:0]offset_30;
  wire [31:0]offset_32;
  ext #(.WIDTH(16),.BIGWIDTH(30)) pc_offset_ext(
    .in(offset),
    .ExtType(`SignExt),
    .out(offset_30)
  );
  assign offset_32 = {offset_30, 2'b00};

  wire [31:0] PseudoTypeNPC = {PC[31:28], PseudoAddr, 2'b00};
  assign NormalNPC = PC + 4;
  
  wire [31:0] BranchOffsetNPC = PC + offset_32;
  wire [31:0] shouldGotoBranchNPC = (should_go_to_branch) ? BranchOffsetNPC : NormalNPC;
  mux4 mux_jump_npc(
    .i00(NormalNPC),
    .i01(shouldGotoBranchNPC),
    
    .i10(RegTypeNPC),
    .i11(PseudoTypeNPC),
    
    .sel(JumpType),
    
    .out(NPC)
  );
endmodule