data/full_repos/permissive/105681119/src/alu.v
1: b'%Error: data/full_repos/permissive/105681119/src/alu.v:34: Cannot find include file: definition.v\n`include "definition.v" \n         ^~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/105681119/src,data/full_repos/permissive/105681119/definition.v\n             data/full_repos/permissive/105681119/src,data/full_repos/permissive/105681119/definition.v.v\n             data/full_repos/permissive/105681119/src,data/full_repos/permissive/105681119/definition.v.sv\n             definition.v\n             definition.v.v\n             definition.v.sv\n             obj_dir/definition.v\n             obj_dir/definition.v.v\n             obj_dir/definition.v.sv\n%Error: data/full_repos/permissive/105681119/src/alu.v:38: Define or directive not defined: \'`DATA_INDEX_LIMIT\'\n input [`DATA_INDEX_LIMIT:0] OP1, OP2;\n        ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/alu.v:38: syntax error, unexpected \':\', expecting TYPE-IDENTIFIER\n input [`DATA_INDEX_LIMIT:0] OP1, OP2;\n                         ^\n%Error: data/full_repos/permissive/105681119/src/alu.v:39: Define or directive not defined: \'`ALU_FUNCT_INDEX_LIMIT\'\n input [`ALU_FUNCT_INDEX_LIMIT:0] FUNCT;\n        ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/alu.v:39: syntax error, unexpected \':\', expecting TYPE-IDENTIFIER\n input [`ALU_FUNCT_INDEX_LIMIT:0] FUNCT;\n                              ^\n%Error: data/full_repos/permissive/105681119/src/alu.v:42: Define or directive not defined: \'`DATA_INDEX_LIMIT\'\n output reg [`DATA_INDEX_LIMIT:0] RESULT;\n             ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/alu.v:42: syntax error, unexpected \':\', expecting TYPE-IDENTIFIER\n output reg [`DATA_INDEX_LIMIT:0] RESULT;\n                              ^\n%Error: data/full_repos/permissive/105681119/src/alu.v:46: Define or directive not defined: \'`ALU_FUNCT_WIDTH\'\n   `ALU_FUNCT_WIDTH\'h20 : RESULT = OP1 + OP2;     \n   ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/alu.v:47: Define or directive not defined: \'`ALU_FUNCT_WIDTH\'\n   `ALU_FUNCT_WIDTH\'h22 : RESULT = OP1 - OP2;     \n   ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/alu.v:48: Define or directive not defined: \'`ALU_FUNCT_WIDTH\'\n   `ALU_FUNCT_WIDTH\'h2c : RESULT = OP1 * OP2;     \n   ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/alu.v:49: Define or directive not defined: \'`ALU_FUNCT_WIDTH\'\n   `ALU_FUNCT_WIDTH\'h01 : RESULT = OP1 << OP2;    \n   ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/alu.v:50: Define or directive not defined: \'`ALU_FUNCT_WIDTH\'\n   `ALU_FUNCT_WIDTH\'h02 : RESULT = OP1 >> OP2;    \n   ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/alu.v:51: Define or directive not defined: \'`ALU_FUNCT_WIDTH\'\n   `ALU_FUNCT_WIDTH\'h24 : RESULT = OP1 & OP2;     \n   ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/alu.v:52: Define or directive not defined: \'`ALU_FUNCT_WIDTH\'\n   `ALU_FUNCT_WIDTH\'h25 : RESULT = OP1 | OP2;     \n   ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/alu.v:53: Define or directive not defined: \'`ALU_FUNCT_WIDTH\'\n   `ALU_FUNCT_WIDTH\'h27 : RESULT = ~(OP1 | OP2);  \n   ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/alu.v:54: Define or directive not defined: \'`ALU_FUNCT_WIDTH\'\n   `ALU_FUNCT_WIDTH\'h2a : RESULT = OP1 < OP2;    \n   ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/alu.v:55: Define or directive not defined: \'`DATA_WIDTH\'\n   default: RESULT = `DATA_WIDTH\'hx;      \n                     ^~~~~~~~~~~\n%Error: Exiting due to 17 error(s)\n'
module ALU(OP1, OP2, FUNCT, RESULT);

	input [`DATA_INDEX_LIMIT:0] OP1, OP2;
	input [`ALU_FUNCT_INDEX_LIMIT:0] FUNCT;


	output reg [`DATA_INDEX_LIMIT:0] RESULT;

	always @ (OP1 or OP2 or FUNCT) begin
		case (FUNCT)
			`ALU_FUNCT_WIDTH'h20 : RESULT = OP1 + OP2;
			`ALU_FUNCT_WIDTH'h22 : RESULT = OP1 - OP2;
			`ALU_FUNCT_WIDTH'h2c : RESULT = OP1 * OP2;
			`ALU_FUNCT_WIDTH'h01 : RESULT = OP1 << OP2;
			`ALU_FUNCT_WIDTH'h02 : RESULT = OP1 >> OP2;
			`ALU_FUNCT_WIDTH'h24 : RESULT = OP1 & OP2;
			`ALU_FUNCT_WIDTH'h25 : RESULT = OP1 | OP2;
			`ALU_FUNCT_WIDTH'h27 : RESULT = ~(OP1 | OP2);
			`ALU_FUNCT_WIDTH'h2a : RESULT = OP1 < OP2;
			default: RESULT = `DATA_WIDTH'hx;
		endcase
	end
endmodule
module ALU(OP1, OP2, FUNCT, RESULT);


	input [`DATA_INDEX_LIMIT:0] OP1, OP2;
	input [`ALU_FUNCT_INDEX_LIMIT:0] FUNCT;


	output reg [`DATA_INDEX_LIMIT:0] RESULT;

	always @ (OP1 or OP2 or FUNCT) begin
		case (FUNCT)
			`ALU_FUNCT_WIDTH'h20 : RESULT = OP1 + OP2;
			`ALU_FUNCT_WIDTH'h22 : RESULT = OP1 - OP2;
			`ALU_FUNCT_WIDTH'h2c : RESULT = OP1 * OP2;
			`ALU_FUNCT_WIDTH'h01 : RESULT = OP1 << OP2;
			`ALU_FUNCT_WIDTH'h02 : RESULT = OP1 >> OP2;
			`ALU_FUNCT_WIDTH'h24 : RESULT = OP1 & OP2;
			`ALU_FUNCT_WIDTH'h25 : RESULT = OP1 | OP2;
			`ALU_FUNCT_WIDTH'h27 : RESULT = ~(OP1 | OP2);
			`ALU_FUNCT_WIDTH'h2a : RESULT = OP1 < OP2;
			default: RESULT = `DATA_WIDTH'hx;
		endcase
	end
endmodule