data/full_repos/permissive/131249673/MIPS_L_PipeLine/NPC.v
1: b'%Error: data/full_repos/permissive/131249673/MIPS_L_PipeLine/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_PipeLine,data/full_repos/permissive/131249673/ctrl_encode_def.v\n             data/full_repos/permissive/131249673/MIPS_L_PipeLine,data/full_repos/permissive/131249673/ctrl_encode_def.v.v\n             data/full_repos/permissive/131249673/MIPS_L_PipeLine,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: Exiting due to 1 error(s)\n'
module NPC( 
		PC, jmpReg, Imm,
		jmpSignal, brSignal, jmpRSignal, stallSignal,
		NPC
	);
	

	input	[31:2]	PC;
	input	[25:0]	Imm;
	input	[31:0]	jmpReg;


	input	jmpSignal;
	input	brSignal;
	input	jmpRSignal;
	input	stallSignal;
 
	output [31:2] NPC;
   
	reg [31:2] NPC;
   
	always @(*) begin
		  NPC = PC + 1;
			if (stallSignal)
				NPC = PC;
			if (brSignal == 1)
				NPC = PC + {{14{Imm[15]}}, Imm[15:0]};
			if (jmpSignal == 1)
				NPC = {PC[31:28], Imm[25:0]};
			if (jmpRSignal == 1)
				NPC = jmpReg[31:2];
	end
endmodule
module NPC( 
		PC, jmpReg, Imm,
		jmpSignal, brSignal, jmpRSignal, stallSignal,
		NPC
	);

	

	input	[31:2]	PC;
	input	[25:0]	Imm;
	input	[31:0]	jmpReg;


	input	jmpSignal;
	input	brSignal;
	input	jmpRSignal;
	input	stallSignal;
 
	output [31:2] NPC;
   
	reg [31:2] NPC;
   
	always @(*) begin
		  NPC = PC + 1;
			if (stallSignal)
				NPC = PC;
			if (brSignal == 1)
				NPC = PC + {{14{Imm[15]}}, Imm[15:0]};
			if (jmpSignal == 1)
				NPC = {PC[31:28], Imm[25:0]};
			if (jmpRSignal == 1)
				NPC = jmpReg[31:2];
	end
endmodule