data/full_repos/permissive/467899092/four_bit_adder.v
1: b"%Error: data/full_repos/permissive/467899092/four_bit_adder.v:12: Cannot find file containing module: 'half_adder'\n half_adder adder0 (cout0, s0, a[0], b[0]);\n ^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/467899092,data/full_repos/permissive/467899092/half_adder\n             data/full_repos/permissive/467899092,data/full_repos/permissive/467899092/half_adder.v\n             data/full_repos/permissive/467899092,data/full_repos/permissive/467899092/half_adder.sv\n             half_adder\n             half_adder.v\n             half_adder.sv\n             obj_dir/half_adder\n             obj_dir/half_adder.v\n             obj_dir/half_adder.sv\n%Error: data/full_repos/permissive/467899092/four_bit_adder.v:13: Cannot find file containing module: 'full_adder'\n full_adder adder1 (cout1, s1, a[1], b[1], cout0);\n ^~~~~~~~~~\n%Error: data/full_repos/permissive/467899092/four_bit_adder.v:14: Cannot find file containing module: 'full_adder'\n full_adder adder2 (cout2, s2, a[2], b[2], cout1);\n ^~~~~~~~~~\n%Error: data/full_repos/permissive/467899092/four_bit_adder.v:15: Cannot find file containing module: 'full_adder'\n full_adder adder3 (cout3, s3, a[3], b[3], cout2);\n ^~~~~~~~~~\n%Error: Exiting due to 4 error(s)\n"
module four_bit_adder(
	output reg [4:0] c,
	input reg [3:0] a,
	input reg [3:0] b
	);

	wire cout0, cout1, cout2, cout3;
	wire s0, s1, s2, s3;

	half_adder adder0 (cout0, s0, a[0], b[0]);
	full_adder adder1 (cout1, s1, a[1], b[1], cout0);
	full_adder adder2 (cout2, s2, a[2], b[2], cout1);
	full_adder adder3 (cout3, s3, a[3], b[3], cout2);

	always @* c = {s0, s1, s2, s3, cout3};

endmodule
module four_bit_adder(
	output reg [4:0] c,
	input reg [3:0] a,
	input reg [3:0] b
	);


	wire cout0, cout1, cout2, cout3;
	wire s0, s1, s2, s3;

	half_adder adder0 (cout0, s0, a[0], b[0]);
	full_adder adder1 (cout1, s1, a[1], b[1], cout0);
	full_adder adder2 (cout2, s2, a[2], b[2], cout1);
	full_adder adder3 (cout3, s3, a[3], b[3], cout2);

	always @* c = {s0, s1, s2, s3, cout3};

endmodule