data/full_repos/permissive/170902741/hw3_2/rca_16b.v
1: b"%Error: data/full_repos/permissive/170902741/hw3_2/rca_16b.v:21: Cannot find file containing module: 'rca_4b'\n rca_4b rca_lsb_4(.A(A[3:0]), .B(B[3:0]), .C_in(C_in), .C_out(c_out[0]), .S(S[3:0]));\n ^~~~~~\n        ... Looked in:\n             data/full_repos/permissive/170902741/hw3_2,data/full_repos/permissive/170902741/rca_4b\n             data/full_repos/permissive/170902741/hw3_2,data/full_repos/permissive/170902741/rca_4b.v\n             data/full_repos/permissive/170902741/hw3_2,data/full_repos/permissive/170902741/rca_4b.sv\n             rca_4b\n             rca_4b.v\n             rca_4b.sv\n             obj_dir/rca_4b\n             obj_dir/rca_4b.v\n             obj_dir/rca_4b.sv\n%Error: data/full_repos/permissive/170902741/hw3_2/rca_16b.v:22: Cannot find file containing module: 'rca_4b'\n rca_4b rca_lsb_1_4(.A(A[4 + 3 : 4]), .B(B[4 + 3 : 4]), .C_in(c_out[0]), .S(S[4 + 3 : 4]), .C_out(c_out[1]));\n ^~~~~~\n%Error: data/full_repos/permissive/170902741/hw3_2/rca_16b.v:23: Cannot find file containing module: 'rca_4b'\n rca_4b rca_lsb_2_4(.A(A[2*4 + 3 : 2*4]), .B(B[2*4 + 3 : 2*4]), .C_in(c_out[1]), .S(S[2*4 + 3 : 2*4]), .C_out(c_out[2]));\n ^~~~~~\n%Error: data/full_repos/permissive/170902741/hw3_2/rca_16b.v:24: Cannot find file containing module: 'rca_4b'\n rca_4b rca_msb_4(.A(A[N - 1: N - 4]), .B(B[N - 1: N - 4]), .C_in(c_out[N_4 - 2]), .C_out(C_out), .S(S[N - 1: N - 4]));\n ^~~~~~\n%Error: Exiting due to 4 error(s)\n"
module rca_16b(A, B, C_in, S, C_out);


    parameter   N = 16;
	parameter	N_4 = 4;

    input [N-1: 0] A, B;
    input          C_in;
    output [N-1:0] S;
    output         C_out;

	wire c_out[N_4 - 2:0];


	rca_4b rca_lsb_4(.A(A[3:0]), .B(B[3:0]), .C_in(C_in), .C_out(c_out[0]), .S(S[3:0]));
	rca_4b rca_lsb_1_4(.A(A[4 + 3 : 4]), .B(B[4 + 3 : 4]), .C_in(c_out[0]), .S(S[4 + 3 : 4]), .C_out(c_out[1]));
	rca_4b rca_lsb_2_4(.A(A[2*4 + 3 : 2*4]), .B(B[2*4 + 3 : 2*4]), .C_in(c_out[1]), .S(S[2*4 + 3 : 2*4]), .C_out(c_out[2]));
	rca_4b rca_msb_4(.A(A[N - 1: N - 4]), .B(B[N - 1: N - 4]), .C_in(c_out[N_4 - 2]), .C_out(C_out), .S(S[N - 1: N - 4]));

endmodule
module rca_16b(A, B, C_in, S, C_out);



    parameter   N = 16;
	parameter	N_4 = 4;

    input [N-1: 0] A, B;
    input          C_in;
    output [N-1:0] S;
    output         C_out;

	wire c_out[N_4 - 2:0];


	rca_4b rca_lsb_4(.A(A[3:0]), .B(B[3:0]), .C_in(C_in), .C_out(c_out[0]), .S(S[3:0]));
	rca_4b rca_lsb_1_4(.A(A[4 + 3 : 4]), .B(B[4 + 3 : 4]), .C_in(c_out[0]), .S(S[4 + 3 : 4]), .C_out(c_out[1]));
	rca_4b rca_lsb_2_4(.A(A[2*4 + 3 : 2*4]), .B(B[2*4 + 3 : 2*4]), .C_in(c_out[1]), .S(S[2*4 + 3 : 2*4]), .C_out(c_out[2]));
	rca_4b rca_msb_4(.A(A[N - 1: N - 4]), .B(B[N - 1: N - 4]), .C_in(c_out[N_4 - 2]), .C_out(C_out), .S(S[N - 1: N - 4]));

endmodule