data/full_repos/permissive/413230008/Binary-to-BCD/Code/Sources/full_adder.v
1: b"%Error: data/full_repos/permissive/413230008/Binary-to-BCD/Code/Sources/full_adder.v:30: Cannot find file containing module: 'half_adder'\n    half_adder HA0 (\n    ^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/413230008/Binary-to-BCD/Code/Sources,data/full_repos/permissive/413230008/half_adder\n             data/full_repos/permissive/413230008/Binary-to-BCD/Code/Sources,data/full_repos/permissive/413230008/half_adder.v\n             data/full_repos/permissive/413230008/Binary-to-BCD/Code/Sources,data/full_repos/permissive/413230008/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/413230008/Binary-to-BCD/Code/Sources/full_adder.v:37: Cannot find file containing module: 'half_adder'\n        half_adder HA1 (\n        ^~~~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module full_adder(
    input x, y, c_in,
    output s, c_out
    );
    
    wire c1, s1, c2;
    
    half_adder HA0 (
        .x(x),
        .y(y),
        .c(c1),
        .s(s1)
        );
        
        half_adder HA1 (
        .x(c_in),
        .y(s1),
        .c(c2),
        .s(s)
        );
        
        assign c_out = c1 | c2;
        
    
    
    
endmodule
module full_adder(
    input x, y, c_in,
    output s, c_out
    );

    
    wire c1, s1, c2;
    
    half_adder HA0 (
        .x(x),
        .y(y),
        .c(c1),
        .s(s1)
        );
        
        half_adder HA1 (
        .x(c_in),
        .y(s1),
        .c(c2),
        .s(s)
        );
        
        assign c_out = c1 | c2;
        
    
    
    
endmodule