data/full_repos/permissive/444327372/aludec.v
1: b'%Error: data/full_repos/permissive/444327372/aludec.v:22: Cannot find include file: defines.vh\n`include "defines.vh" \n         ^~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/444327372,data/full_repos/permissive/444327372/defines.vh\n             data/full_repos/permissive/444327372,data/full_repos/permissive/444327372/defines.vh.v\n             data/full_repos/permissive/444327372,data/full_repos/permissive/444327372/defines.vh.sv\n             defines.vh\n             defines.vh.v\n             defines.vh.sv\n             obj_dir/defines.vh\n             obj_dir/defines.vh.v\n             obj_dir/defines.vh.sv\n%Error: data/full_repos/permissive/444327372/aludec.v:36: Define or directive not defined: \'`EXE_SPECIAL_INST\'\n    `EXE_SPECIAL_INST: begin  \n    ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:36: syntax error, unexpected \':\', expecting endcase\n    `EXE_SPECIAL_INST: begin  \n                     ^\n%Error: data/full_repos/permissive/444327372/aludec.v:39: Define or directive not defined: \'`EXE_AND\'\n      `EXE_AND:  alucontrol <= `EXE_AND_OP;\n      ^~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:39: Define or directive not defined: \'`EXE_AND_OP\'\n      `EXE_AND:  alucontrol <= `EXE_AND_OP;\n                               ^~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:40: Define or directive not defined: \'`EXE_OR\'\n      `EXE_OR:   alucontrol <= `EXE_OR_OP;\n      ^~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:40: Define or directive not defined: \'`EXE_OR_OP\'\n      `EXE_OR:   alucontrol <= `EXE_OR_OP;\n                               ^~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:41: Define or directive not defined: \'`EXE_XOR\'\n      `EXE_XOR:  alucontrol <= `EXE_XOR_OP;\n      ^~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:41: Define or directive not defined: \'`EXE_XOR_OP\'\n      `EXE_XOR:  alucontrol <= `EXE_XOR_OP;\n                               ^~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:42: Define or directive not defined: \'`EXE_NOR\'\n      `EXE_NOR:  alucontrol <= `EXE_NOR_OP;\n      ^~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:42: Define or directive not defined: \'`EXE_NOR_OP\'\n      `EXE_NOR:  alucontrol <= `EXE_NOR_OP;\n                               ^~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:45: Define or directive not defined: \'`EXE_SLL\'\n      `EXE_SLL:  alucontrol <= `EXE_SLL_OP;\n      ^~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:45: Define or directive not defined: \'`EXE_SLL_OP\'\n      `EXE_SLL:  alucontrol <= `EXE_SLL_OP;\n                               ^~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:46: Define or directive not defined: \'`EXE_SLLV\'\n      `EXE_SLLV: alucontrol <= `EXE_SLLV_OP;\n      ^~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:46: Define or directive not defined: \'`EXE_SLLV_OP\'\n      `EXE_SLLV: alucontrol <= `EXE_SLLV_OP;\n                               ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:47: Define or directive not defined: \'`EXE_SRL\'\n      `EXE_SRL:  alucontrol <= `EXE_SRL_OP;\n      ^~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:47: Define or directive not defined: \'`EXE_SRL_OP\'\n      `EXE_SRL:  alucontrol <= `EXE_SRL_OP;\n                               ^~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:48: Define or directive not defined: \'`EXE_SRLV\'\n      `EXE_SRLV: alucontrol <= `EXE_SRLV_OP;\n      ^~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:48: Define or directive not defined: \'`EXE_SRLV_OP\'\n      `EXE_SRLV: alucontrol <= `EXE_SRLV_OP;\n                               ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:49: Define or directive not defined: \'`EXE_SRA\'\n      `EXE_SRA:  alucontrol <= `EXE_SRA_OP;\n      ^~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:49: Define or directive not defined: \'`EXE_SRA_OP\'\n      `EXE_SRA:  alucontrol <= `EXE_SRA_OP;\n                               ^~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:50: Define or directive not defined: \'`EXE_SRAV\'\n      `EXE_SRAV: alucontrol <= `EXE_SRAV_OP;\n      ^~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:50: Define or directive not defined: \'`EXE_SRAV_OP\'\n      `EXE_SRAV: alucontrol <= `EXE_SRAV_OP;\n                               ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:53: Define or directive not defined: \'`EXE_MFHI\'\n      `EXE_MFHI: alucontrol <= `EXE_MFHI_OP;\n      ^~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:53: Define or directive not defined: \'`EXE_MFHI_OP\'\n      `EXE_MFHI: alucontrol <= `EXE_MFHI_OP;\n                               ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:54: Define or directive not defined: \'`EXE_MTHI\'\n      `EXE_MTHI: alucontrol <= `EXE_MTHI_OP;\n      ^~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:54: Define or directive not defined: \'`EXE_MTHI_OP\'\n      `EXE_MTHI: alucontrol <= `EXE_MTHI_OP;\n                               ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:55: Define or directive not defined: \'`EXE_MFLO\'\n      `EXE_MFLO: alucontrol <= `EXE_MFLO_OP;\n      ^~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:55: Define or directive not defined: \'`EXE_MFLO_OP\'\n      `EXE_MFLO: alucontrol <= `EXE_MFLO_OP;\n                               ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:56: Define or directive not defined: \'`EXE_MTLO\'\n      `EXE_MTLO: alucontrol <= `EXE_MTLO_OP;\n      ^~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:56: Define or directive not defined: \'`EXE_MTLO_OP\'\n      `EXE_MTLO: alucontrol <= `EXE_MTLO_OP;\n                               ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:60: Define or directive not defined: \'`EXE_ADD\'\n      `EXE_ADD:  alucontrol <= `EXE_ADD_OP;\n      ^~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:60: Define or directive not defined: \'`EXE_ADD_OP\'\n      `EXE_ADD:  alucontrol <= `EXE_ADD_OP;\n                               ^~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:61: Define or directive not defined: \'`EXE_ADDU\'\n      `EXE_ADDU: alucontrol <= `EXE_ADDU_OP;\n      ^~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:61: Define or directive not defined: \'`EXE_ADDU_OP\'\n      `EXE_ADDU: alucontrol <= `EXE_ADDU_OP;\n                               ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:63: Define or directive not defined: \'`EXE_SUB\'\n      `EXE_SUB:  alucontrol <= `EXE_SUB_OP;\n      ^~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:63: Define or directive not defined: \'`EXE_SUB_OP\'\n      `EXE_SUB:  alucontrol <= `EXE_SUB_OP;\n                               ^~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:64: Define or directive not defined: \'`EXE_SUBU\'\n      `EXE_SUBU: alucontrol <= `EXE_SUBU_OP;\n      ^~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:64: Define or directive not defined: \'`EXE_SUBU_OP\'\n      `EXE_SUBU: alucontrol <= `EXE_SUBU_OP;\n                               ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:66: Define or directive not defined: \'`EXE_SLT\'\n      `EXE_SLT:  alucontrol <= `EXE_SLT_OP;\n      ^~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:66: Define or directive not defined: \'`EXE_SLT_OP\'\n      `EXE_SLT:  alucontrol <= `EXE_SLT_OP;\n                               ^~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:67: Define or directive not defined: \'`EXE_SLTU\'\n      `EXE_SLTU: alucontrol <= `EXE_SLTU_OP;\n      ^~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:67: Define or directive not defined: \'`EXE_SLTU_OP\'\n      `EXE_SLTU: alucontrol <= `EXE_SLTU_OP;\n                               ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:69: Define or directive not defined: \'`EXE_MULT\'\n      `EXE_MULT:  alucontrol <= `EXE_MULT_OP;\n      ^~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:69: Define or directive not defined: \'`EXE_MULT_OP\'\n      `EXE_MULT:  alucontrol <= `EXE_MULT_OP;\n                                ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:70: Define or directive not defined: \'`EXE_MULTU\'\n      `EXE_MULTU: alucontrol <= `EXE_MULTU_OP;\n      ^~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:70: Define or directive not defined: \'`EXE_MULTU_OP\'\n      `EXE_MULTU: alucontrol <= `EXE_MULTU_OP;\n                                ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:72: Define or directive not defined: \'`EXE_DIV\'\n      `EXE_DIV:   alucontrol <= `EXE_DIV_OP;\n      ^~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:72: Define or directive not defined: \'`EXE_DIV_OP\'\n      `EXE_DIV:   alucontrol <= `EXE_DIV_OP;\n                                ^~~~~~~~~~~\n%Error: data/full_repos/permissive/444327372/aludec.v:73: Define or directive not defined: \'`EXE_DIVU\'\n      `EXE_DIVU:  alucontrol <= `EXE_DIVU_OP;\n      ^~~~~~~~~\n%Error: Exiting due to too many errors encountered; --error-limit=50\n'
module aludec(
	input wire [31:0] instr,
	input wire stallD,
	output reg[7:0] alucontrol
    );

	wire [5:0]aluop;
	wire [5:0]funct;
	assign aluop = instr[31:26];
	assign funct = instr[5:0];
	always @(*) begin
		if(!stallD) begin
			case (aluop)
				`EXE_SPECIAL_INST: begin
					case (funct)

						`EXE_AND:  alucontrol <= `EXE_AND_OP;
						`EXE_OR:   alucontrol <= `EXE_OR_OP;
						`EXE_XOR:  alucontrol <= `EXE_XOR_OP;
						`EXE_NOR:  alucontrol <= `EXE_NOR_OP;


						`EXE_SLL:  alucontrol <= `EXE_SLL_OP;
						`EXE_SLLV: alucontrol <= `EXE_SLLV_OP;
						`EXE_SRL:  alucontrol <= `EXE_SRL_OP;
						`EXE_SRLV: alucontrol <= `EXE_SRLV_OP;
						`EXE_SRA:  alucontrol <= `EXE_SRA_OP;
						`EXE_SRAV: alucontrol <= `EXE_SRAV_OP;


						`EXE_MFHI: alucontrol <= `EXE_MFHI_OP;
						`EXE_MTHI: alucontrol <= `EXE_MTHI_OP;
						`EXE_MFLO: alucontrol <= `EXE_MFLO_OP;
						`EXE_MTLO: alucontrol <= `EXE_MTLO_OP;



						`EXE_ADD:  alucontrol <= `EXE_ADD_OP;
						`EXE_ADDU: alucontrol <= `EXE_ADDU_OP;

						`EXE_SUB:  alucontrol <= `EXE_SUB_OP;
						`EXE_SUBU: alucontrol <= `EXE_SUBU_OP;

						`EXE_SLT:  alucontrol <= `EXE_SLT_OP;
						`EXE_SLTU: alucontrol <= `EXE_SLTU_OP;

						`EXE_MULT:  alucontrol <= `EXE_MULT_OP;
						`EXE_MULTU: alucontrol <= `EXE_MULTU_OP;

						`EXE_DIV:   alucontrol <= `EXE_DIV_OP;
						`EXE_DIVU:  alucontrol <= `EXE_DIVU_OP;
						


						`EXE_JR:   alucontrol <= `EXE_JR_OP;

						`EXE_JALR: alucontrol <= `EXE_JALR_OP;
						
						default:
							alucontrol <= `EXE_NOP_OP;
					endcase
				end


				`EXE_ANDI: alucontrol <= `EXE_ANDI_OP;
				`EXE_ORI:  alucontrol <= `EXE_ORI_OP;
				`EXE_XORI: alucontrol <= `EXE_XORI_OP;
				`EXE_LUI:  alucontrol <= `EXE_LUI_OP;



				`EXE_ADDI:  alucontrol <= `EXE_ADDI_OP;
				`EXE_ADDIU: alucontrol <= `EXE_ADDIU_OP;

				`EXE_SLTI:  alucontrol <= `EXE_SLTI_OP;
				`EXE_SLTIU: alucontrol <= `EXE_SLTIU_OP;
				



				`EXE_J:    alucontrol <= `EXE_J_OP;

				`EXE_JAL:  alucontrol <= `EXE_JAL_OP;

				`EXE_BEQ:  alucontrol <= `EXE_BEQ_OP;
				`EXE_BNE:  alucontrol <= `EXE_BNE_OP;

				`EXE_BGTZ: alucontrol <= `EXE_BGTZ_OP;
				`EXE_BLEZ: alucontrol <= `EXE_BLEZ_OP;
				`EXE_REGIMM_INST: begin
					case (instr[20:16])

						`EXE_BLTZ:   alucontrol <= `EXE_BLTZ_OP;
						`EXE_BGEZ:   alucontrol <= `EXE_BGEZ_OP;
						

						`EXE_BGEZAL: alucontrol <= `EXE_BGEZAL_OP;
						`EXE_BLTZAL: alucontrol <= `EXE_BLTZAL_OP;
						default: 
							alucontrol <= `EXE_NOP_OP;
					endcase
				end



				`EXE_LB:  alucontrol <= `EXE_LB_OP;
				`EXE_LBU: alucontrol <= `EXE_LBU_OP;
				`EXE_LH:  alucontrol <= `EXE_LH_OP;
				`EXE_LHU: alucontrol <= `EXE_LHU_OP;
				`EXE_LW:  alucontrol <= `EXE_LW_OP;

				`EXE_SB:  alucontrol <= `EXE_SB_OP;
				`EXE_SH:  alucontrol <= `EXE_SH_OP;
				`EXE_SW:  alucontrol <= `EXE_SW_OP;


				`EXE_RELU: alucontrol <= `EXE_RELU_OP;
			endcase
		end
	end
endmodule
module aludec(
	input wire [31:0] instr,
	input wire stallD,
	output reg[7:0] alucontrol
    );


	wire [5:0]aluop;
	wire [5:0]funct;
	assign aluop = instr[31:26];
	assign funct = instr[5:0];
	always @(*) begin
		if(!stallD) begin
			case (aluop)
				`EXE_SPECIAL_INST: begin
					case (funct)

						`EXE_AND:  alucontrol <= `EXE_AND_OP;
						`EXE_OR:   alucontrol <= `EXE_OR_OP;
						`EXE_XOR:  alucontrol <= `EXE_XOR_OP;
						`EXE_NOR:  alucontrol <= `EXE_NOR_OP;


						`EXE_SLL:  alucontrol <= `EXE_SLL_OP;
						`EXE_SLLV: alucontrol <= `EXE_SLLV_OP;
						`EXE_SRL:  alucontrol <= `EXE_SRL_OP;
						`EXE_SRLV: alucontrol <= `EXE_SRLV_OP;
						`EXE_SRA:  alucontrol <= `EXE_SRA_OP;
						`EXE_SRAV: alucontrol <= `EXE_SRAV_OP;


						`EXE_MFHI: alucontrol <= `EXE_MFHI_OP;
						`EXE_MTHI: alucontrol <= `EXE_MTHI_OP;
						`EXE_MFLO: alucontrol <= `EXE_MFLO_OP;
						`EXE_MTLO: alucontrol <= `EXE_MTLO_OP;



						`EXE_ADD:  alucontrol <= `EXE_ADD_OP;
						`EXE_ADDU: alucontrol <= `EXE_ADDU_OP;

						`EXE_SUB:  alucontrol <= `EXE_SUB_OP;
						`EXE_SUBU: alucontrol <= `EXE_SUBU_OP;

						`EXE_SLT:  alucontrol <= `EXE_SLT_OP;
						`EXE_SLTU: alucontrol <= `EXE_SLTU_OP;

						`EXE_MULT:  alucontrol <= `EXE_MULT_OP;
						`EXE_MULTU: alucontrol <= `EXE_MULTU_OP;

						`EXE_DIV:   alucontrol <= `EXE_DIV_OP;
						`EXE_DIVU:  alucontrol <= `EXE_DIVU_OP;
						


						`EXE_JR:   alucontrol <= `EXE_JR_OP;

						`EXE_JALR: alucontrol <= `EXE_JALR_OP;
						
						default:
							alucontrol <= `EXE_NOP_OP;
					endcase
				end


				`EXE_ANDI: alucontrol <= `EXE_ANDI_OP;
				`EXE_ORI:  alucontrol <= `EXE_ORI_OP;
				`EXE_XORI: alucontrol <= `EXE_XORI_OP;
				`EXE_LUI:  alucontrol <= `EXE_LUI_OP;



				`EXE_ADDI:  alucontrol <= `EXE_ADDI_OP;
				`EXE_ADDIU: alucontrol <= `EXE_ADDIU_OP;

				`EXE_SLTI:  alucontrol <= `EXE_SLTI_OP;
				`EXE_SLTIU: alucontrol <= `EXE_SLTIU_OP;
				



				`EXE_J:    alucontrol <= `EXE_J_OP;

				`EXE_JAL:  alucontrol <= `EXE_JAL_OP;

				`EXE_BEQ:  alucontrol <= `EXE_BEQ_OP;
				`EXE_BNE:  alucontrol <= `EXE_BNE_OP;

				`EXE_BGTZ: alucontrol <= `EXE_BGTZ_OP;
				`EXE_BLEZ: alucontrol <= `EXE_BLEZ_OP;
				`EXE_REGIMM_INST: begin
					case (instr[20:16])

						`EXE_BLTZ:   alucontrol <= `EXE_BLTZ_OP;
						`EXE_BGEZ:   alucontrol <= `EXE_BGEZ_OP;
						

						`EXE_BGEZAL: alucontrol <= `EXE_BGEZAL_OP;
						`EXE_BLTZAL: alucontrol <= `EXE_BLTZAL_OP;
						default: 
							alucontrol <= `EXE_NOP_OP;
					endcase
				end



				`EXE_LB:  alucontrol <= `EXE_LB_OP;
				`EXE_LBU: alucontrol <= `EXE_LBU_OP;
				`EXE_LH:  alucontrol <= `EXE_LH_OP;
				`EXE_LHU: alucontrol <= `EXE_LHU_OP;
				`EXE_LW:  alucontrol <= `EXE_LW_OP;

				`EXE_SB:  alucontrol <= `EXE_SB_OP;
				`EXE_SH:  alucontrol <= `EXE_SH_OP;
				`EXE_SW:  alucontrol <= `EXE_SW_OP;


				`EXE_RELU: alucontrol <= `EXE_RELU_OP;
			endcase
		end
	end
endmodule