data/full_repos/permissive/452721391/02/FullAdder.v
1: b"%Error: data/full_repos/permissive/452721391/02/FullAdder.v:40: Cannot find file containing module: 'HalfAdder'\nHalfAdder half_adder_inst_a\n^~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/452721391/02,data/full_repos/permissive/452721391/HalfAdder\n             data/full_repos/permissive/452721391/02,data/full_repos/permissive/452721391/HalfAdder.v\n             data/full_repos/permissive/452721391/02,data/full_repos/permissive/452721391/HalfAdder.sv\n             HalfAdder\n             HalfAdder.v\n             HalfAdder.sv\n             obj_dir/HalfAdder\n             obj_dir/HalfAdder.v\n             obj_dir/HalfAdder.sv\n%Error: data/full_repos/permissive/452721391/02/FullAdder.v:48: Cannot find file containing module: 'HalfAdder'\nHalfAdder half_adder_inst_b\n^~~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module FullAdder(
    c,
    a,
    b,
    sum,
    carry
    );
    
input c;
input a;
input b;
output sum;
output carry;

wire halfadder_a_BIT1;
wire halfadder_a_BIT2;
wire halfadder_a_SUM;
wire halfadder_a_CARRY;
wire halfadder_b_BIT1;
wire halfadder_b_BIT2;
wire halfadder_b_SUM;
wire halfadder_b_CARRY;

HalfAdder half_adder_inst_a
(
    .a(a),
    .b(b),
    .sum(halfadder_a_SUM),
    .carry(halfadder_a_CARRY)
);

HalfAdder half_adder_inst_b
(
    .a(halfadder_b_BIT1),
    .b(c),
    .sum(halfadder_b_SUM),
    .carry(halfadder_b_CARRY)
);



assign halfadder_b_BIT1 = halfadder_a_SUM;


assign sum = halfadder_b_SUM;
assign carry = halfadder_a_CARRY || halfadder_b_CARRY;

endmodule
module FullAdder(
    c,
    a,
    b,
    sum,
    carry
    );

    
input c;
input a;
input b;
output sum;
output carry;

wire halfadder_a_BIT1;
wire halfadder_a_BIT2;
wire halfadder_a_SUM;
wire halfadder_a_CARRY;
wire halfadder_b_BIT1;
wire halfadder_b_BIT2;
wire halfadder_b_SUM;
wire halfadder_b_CARRY;

HalfAdder half_adder_inst_a
(
    .a(a),
    .b(b),
    .sum(halfadder_a_SUM),
    .carry(halfadder_a_CARRY)
);

HalfAdder half_adder_inst_b
(
    .a(halfadder_b_BIT1),
    .b(c),
    .sum(halfadder_b_SUM),
    .carry(halfadder_b_CARRY)
);



assign halfadder_b_BIT1 = halfadder_a_SUM;


assign sum = halfadder_b_SUM;
assign carry = halfadder_a_CARRY || halfadder_b_CARRY;

endmodule