data/full_repos/permissive/104305228/code/if_id.v
1: b'%Error: data/full_repos/permissive/104305228/code/if_id.v:1: Cannot find include file: define.v\n`include "define.v" \n         ^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/104305228/code,data/full_repos/permissive/104305228/define.v\n             data/full_repos/permissive/104305228/code,data/full_repos/permissive/104305228/define.v.v\n             data/full_repos/permissive/104305228/code,data/full_repos/permissive/104305228/define.v.sv\n             define.v\n             define.v.v\n             define.v.sv\n             obj_dir/define.v\n             obj_dir/define.v.v\n             obj_dir/define.v.sv\n%Error: data/full_repos/permissive/104305228/code/if_id.v:13: Define or directive not defined: \'`RstEnable\'\n  if (rst == `RstEnable || (stall[1] == `StallEnable && stall[2] == `StallDisable)) begin\n             ^~~~~~~~~~\n%Error: data/full_repos/permissive/104305228/code/if_id.v:13: syntax error, unexpected ||, expecting TYPE-IDENTIFIER\n  if (rst == `RstEnable || (stall[1] == `StallEnable && stall[2] == `StallDisable)) begin\n                        ^~\n%Error: data/full_repos/permissive/104305228/code/if_id.v:13: Define or directive not defined: \'`StallEnable\'\n  if (rst == `RstEnable || (stall[1] == `StallEnable && stall[2] == `StallDisable)) begin\n                                        ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/104305228/code/if_id.v:13: Define or directive not defined: \'`StallDisable\'\n  if (rst == `RstEnable || (stall[1] == `StallEnable && stall[2] == `StallDisable)) begin\n                                                                    ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/104305228/code/if_id.v:17: syntax error, unexpected else\n  else if (stall[1] == `StallDisable) begin\n  ^~~~\n%Error: data/full_repos/permissive/104305228/code/if_id.v:17: Define or directive not defined: \'`StallDisable\'\n  else if (stall[1] == `StallDisable) begin\n                       ^~~~~~~~~~~~~\n%Error: Cannot continue\n'
module if_id(
	input clk,
	input rst,
	input [5:0] stall,
	input [31:0] if_pc,
	input [31:0] if_instr,
	output reg[31:0] id_pc,
	output reg[31:0] id_instr
);

	always @ (posedge clk) begin
		if (rst == `RstEnable || (stall[1] == `StallEnable && stall[2] == `StallDisable)) begin
			id_pc <= 32'b0;
			id_instr <= 32'b0;
		end
		else if (stall[1] == `StallDisable) begin
			id_pc <= if_pc;
			id_instr <= if_instr;
		end
	end
endmodule
module if_id(
	input clk,
	input rst,
	input [5:0] stall,
	input [31:0] if_pc,
	input [31:0] if_instr,
	output reg[31:0] id_pc,
	output reg[31:0] id_instr
);


	always @ (posedge clk) begin
		if (rst == `RstEnable || (stall[1] == `StallEnable && stall[2] == `StallDisable)) begin
			id_pc <= 32'b0;
			id_instr <= 32'b0;
		end
		else if (stall[1] == `StallDisable) begin
			id_pc <= if_pc;
			id_instr <= if_instr;
		end
	end
endmodule