data/full_repos/permissive/139900780/SimpleProcessor.v
 line:25: before: "("
1: b"%Error: data/full_repos/permissive/139900780/SimpleProcessor.v:26: syntax error, unexpected input, expecting ';'\n  input [31:0] instr; \n  ^~~~~\n%Error: data/full_repos/permissive/139900780/SimpleProcessor.v:29: syntax error, unexpected begin\n  begin\n  ^~~~~\n%Error: data/full_repos/permissive/139900780/SimpleProcessor.v:33: syntax error, unexpected $end, expecting ',' or ':'\n    8   b10001000: begin \n     ^\n%Error: Cannot continue\n"
function [16:0] decode_add (instr) 
		input [31:0] instr; 
		reg add_func; 
		reg [7:0] opcode, opr1, opr2;
		begin
			opcode = instr[31:24];
			opr1 = instr[7:0];
			case (opcode)
				8’b10001000: begin 
					add_func = 1;
					opr2 = instr[15:8];
				end
				8’b10001001: begin 
					add_func = 0;
					opr2 = instr[15:8];
				end
				8’b10001010: begin 
					add_func = 1;
					opr2 = 8’b00000001;
				end
				default: begin ; 
					add_func = 0;
					opr2 = 8’b00000001;
				end
			endcase
			decode_add = {add_func, opr2, opr1}; 
		end
	endfunction
function [16:0] decode_add (instr) 
		input [31:0] instr;
 
		reg add_func; 
		reg [7:0] opcode, opr1, opr2;
		begin
			opcode = instr[31:24];
			opr1 = instr[7:0];
			case (opcode)
				8’b10001000: begin 
					add_func = 1;
					opr2 = instr[15:8];
				end
				8’b10001001: begin 
					add_func = 0;
					opr2 = instr[15:8];
				end
				8’b10001010: begin 
					add_func = 1;
					opr2 = 8’b00000001;
				end
				default: begin ; 
					add_func = 0;
					opr2 = 8’b00000001;
				end
			endcase
			decode_add = {add_func, opr2, opr1}; 
		end
	endfunction