data/full_repos/permissive/515598112/3_Circuits/01_Combinational_Logic/03_Arithmetic_Circuits/07_4-digit_BCD_adder.v
1: b"%Error: data/full_repos/permissive/515598112/3_Circuits/01_Combinational_Logic/03_Arithmetic_Circuits/07_4-digit_BCD_adder.v:10: Cannot find file containing module: 'bcd_fadd'\n    bcd_fadd my_4_digit_adder [3:0] (\n    ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/515598112/3_Circuits/01_Combinational_Logic/03_Arithmetic_Circuits,data/full_repos/permissive/515598112/bcd_fadd\n             data/full_repos/permissive/515598112/3_Circuits/01_Combinational_Logic/03_Arithmetic_Circuits,data/full_repos/permissive/515598112/bcd_fadd.v\n             data/full_repos/permissive/515598112/3_Circuits/01_Combinational_Logic/03_Arithmetic_Circuits,data/full_repos/permissive/515598112/bcd_fadd.sv\n             bcd_fadd\n             bcd_fadd.v\n             bcd_fadd.sv\n             obj_dir/bcd_fadd\n             obj_dir/bcd_fadd.v\n             obj_dir/bcd_fadd.sv\n%Error: Exiting due to 1 error(s)\n"
module top_module ( 
    input [15:0] a, b,
    input cin,
    output reg cout,
    output reg [15:0] sum
);
    
    reg [2:0] mid_wire;
    
    bcd_fadd my_4_digit_adder [3:0] (
        .a(a),
        .b(b),
        .cin({mid_wire, cin}),
        .cout({cout, mid_wire}),
        .sum(sum)
    );

endmodule
module top_module ( 
    input [15:0] a, b,
    input cin,
    output reg cout,
    output reg [15:0] sum
);

    
    reg [2:0] mid_wire;
    
    bcd_fadd my_4_digit_adder [3:0] (
        .a(a),
        .b(b),
        .cin({mid_wire, cin}),
        .cout({cout, mid_wire}),
        .sum(sum)
    );

endmodule