data/full_repos/permissive/148742372/ONE COUNT/pa6.v
1: b'%Error: Cannot find file containing module: COUNT,data/full_repos/permissive/148742372\n        ... Looked in:\n             data/full_repos/permissive/148742372/ONE/COUNT,data/full_repos/permissive/148742372\n             data/full_repos/permissive/148742372/ONE/COUNT,data/full_repos/permissive/148742372.v\n             data/full_repos/permissive/148742372/ONE/COUNT,data/full_repos/permissive/148742372.sv\n             COUNT,data/full_repos/permissive/148742372\n             COUNT,data/full_repos/permissive/148742372.v\n             COUNT,data/full_repos/permissive/148742372.sv\n             obj_dir/COUNT,data/full_repos/permissive/148742372\n             obj_dir/COUNT,data/full_repos/permissive/148742372.v\n             obj_dir/COUNT,data/full_repos/permissive/148742372.sv\n%Error: Cannot find file containing module: data/full_repos/permissive/148742372/ONE\n%Error: Cannot find file containing module: COUNT/pa6.v\n%Error: Exiting due to 3 error(s)\n'
module onecount (COUNT, DATA);
	input [15:0] DATA;
	output [4:0] COUNT;

	integer count=0;
	integer iter=0;
	integer ind=0;

	reg [4:0] COUNT;
	reg[4:0] temp;
	always @* begin
		while(iter<=15)
			begin
				if(DATA[iter]==1)
					count=count + 1;
              	iter = iter + 1;
			end

		temp[0]=0;
		temp[1]=0;
		temp[2]=0;
		temp[3]=0;
		temp[4]=0;


		while(count>0)
			begin
              temp[ind]= (count % 2);
				count = count / 2;
				ind = ind + 1;
			end

		COUNT = temp;
	end
endmodule
module onecount (COUNT, DATA);

	input [15:0] DATA;
	output [4:0] COUNT;

	integer count=0;
	integer iter=0;
	integer ind=0;

	reg [4:0] COUNT;
	reg[4:0] temp;
	always @* begin
		while(iter<=15)
			begin
				if(DATA[iter]==1)
					count=count + 1;
              	iter = iter + 1;
			end

		temp[0]=0;
		temp[1]=0;
		temp[2]=0;
		temp[3]=0;
		temp[4]=0;


		while(count>0)
			begin
              temp[ind]= (count % 2);
				count = count / 2;
				ind = ind + 1;
			end

		COUNT = temp;
	end
endmodule