data/full_repos/permissive/212763527/school_project/6_adder_subtractor/sources/full_subtractor_32_v2.v
1: b"%Error: data/full_repos/permissive/212763527/school_project/6_adder_subtractor/sources/full_subtractor_32_v2.v:16: Cannot find file containing module: 'full_adder'\n            full_adder u_subtractor(.cin(c[i]),\n            ^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/212763527/school_project/6_adder_subtractor/sources,data/full_repos/permissive/212763527/full_adder\n             data/full_repos/permissive/212763527/school_project/6_adder_subtractor/sources,data/full_repos/permissive/212763527/full_adder.v\n             data/full_repos/permissive/212763527/school_project/6_adder_subtractor/sources,data/full_repos/permissive/212763527/full_adder.sv\n             full_adder\n             full_adder.v\n             full_adder.sv\n             obj_dir/full_adder\n             obj_dir/full_adder.v\n             obj_dir/full_adder.sv\n%Error: Exiting due to 1 error(s)\n"
module full_subtractor_32_v2(input[31:0] x,
                             input[31:0] y,
                             output[31:0] s,
                             output cout,
                             output o);
    wire [32:0] c;
    assign c[0] = 1;
    assign cout = 1'b0;
    assign o = x[31] & y[31] & ~s[31] + ~x[31] & ~y[31] & s[31];

    genvar i;
    generate
        for (i = 0; i<=31; i=i+1) begin: stage
            full_adder u_subtractor(.cin(c[i]),
                                    .x(x[i]),
                                    .y(~y[i]),
                                    .s(s[i]),
                                    .cout(c[i+1])
                                    );
        end
    endgenerate

endmodule
module full_subtractor_32_v2(input[31:0] x,
                             input[31:0] y,
                             output[31:0] s,
                             output cout,
                             output o);

    wire [32:0] c;
    assign c[0] = 1;
    assign cout = 1'b0;
    assign o = x[31] & y[31] & ~s[31] + ~x[31] & ~y[31] & s[31];

    genvar i;
    generate
        for (i = 0; i<=31; i=i+1) begin: stage
            full_adder u_subtractor(.cin(c[i]),
                                    .x(x[i]),
                                    .y(~y[i]),
                                    .s(s[i]),
                                    .cout(c[i+1])
                                    );
        end
    endgenerate

endmodule