data/full_repos/permissive/490031785/Assignments/ass5.v
1: b"%Error: data/full_repos/permissive/490031785/Assignments/ass5.v:9: syntax error, unexpected '{', expecting TYPE-IDENTIFIER\n          1'b0: assign{carry, sum_diff} = A+B;\n                      ^\n%Error: data/full_repos/permissive/490031785/Assignments/ass5.v:10: syntax error, unexpected '{', expecting TYPE-IDENTIFIER\n         1'b1: assign{carry, sum_diff} = A+{~B}+select;\n                     ^\n%Error: Exiting due to 2 error(s)\n"
module AdderSub (sum_diff, carry, A, B, select);
     			output reg[3:0] sum_diff;
     			output reg carry;
     			input select;
     			input[3:0] A, B;
     		
     			always @(select, A, B)
     				case(select)
     					1'b0: assign{carry, sum_diff} = A+B;
    					1'b1: assign{carry, sum_diff} = A+{~B}+select;
    				endcase
endmodule
module AdderSub (sum_diff, carry, A, B, select);

     			output reg[3:0] sum_diff;
     			output reg carry;
     			input select;
     			input[3:0] A, B;
     		
     			always @(select, A, B)
     				case(select)
     					1'b0: assign{carry, sum_diff} = A+B;
    					1'b1: assign{carry, sum_diff} = A+{~B}+select;
    				endcase
endmodule