data/full_repos/permissive/132220215/add_sub.v
 line:22: before: "output"
1: b'%Error: data/full_repos/permissive/132220215/add_sub.v:2: Cannot find include file: full_adder.v\n`include "full_adder.v" \n         ^~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/132220215,data/full_repos/permissive/132220215/full_adder.v\n             data/full_repos/permissive/132220215,data/full_repos/permissive/132220215/full_adder.v.v\n             data/full_repos/permissive/132220215,data/full_repos/permissive/132220215/full_adder.v.sv\n             full_adder.v\n             full_adder.v.v\n             full_adder.v.sv\n             obj_dir/full_adder.v\n             obj_dir/full_adder.v.v\n             obj_dir/full_adder.v.sv\n%Error: data/full_repos/permissive/132220215/add_sub.v:10: syntax error, unexpected output, expecting \')\' or \',\'\n        output v);\n        ^~~~~~\n%Error: data/full_repos/permissive/132220215/add_sub.v:16: syntax error, unexpected assign\n assign cout = carry[N];\n ^~~~~~\n%Error: Exiting due to 3 error(s)\n'
module add_sub #(parameter N = 4) (
	input [N-1:0] A,
	input [N-1:0] B,
	input M,
	output [N-1:0] sum,
        output cout
        output v);

 genvar i,j;
 wire [N-1:0] XOR_FA;
 wire [N:0] carry;

 assign cout = carry[N];
 assign carry[0] = M;


 generate
	 for(i=0;i<N;i=i+1)
	 begin
		 full_add FA(.a_sig(A[i]),.b_sig(XOR_FA[i]),.cin_sig(carry[i]),.sum_sig(sum[i]),.cout_sig(carry[i+1]));
	 end
 endgenerate


 generate
	 for(j=0;j<N;j=j+1)
	 begin
		 xor B_XOR(XOR_FA[j],B[j],M);
	 end
 endgenerate


 xor(v,cout,carry[N-1]);
endmodule
module add_sub #(parameter N = 4) (
	input [N-1:0] A,
	input [N-1:0] B,
	input M,
	output [N-1:0] sum,
        output cout
        output v);


 genvar i,j;
 wire [N-1:0] XOR_FA;
 wire [N:0] carry;

 assign cout = carry[N];
 assign carry[0] = M;


 generate
	 for(i=0;i<N;i=i+1)
	 begin
		 full_add FA(.a_sig(A[i]),.b_sig(XOR_FA[i]),.cin_sig(carry[i]),.sum_sig(sum[i]),.cout_sig(carry[i+1]));
	 end
 endgenerate


 generate
	 for(j=0;j<N;j=j+1)
	 begin
		 xor B_XOR(XOR_FA[j],B[j],M);
	 end
 endgenerate


 xor(v,cout,carry[N-1]);
endmodule