data/full_repos/permissive/426072575/labs/lab6_adder-subtractor/codes/signed full adder-subtractor(Question 3 4 5)/Add.v
1: b'%Error: Cannot find file containing module: full\n        ... Looked in:\n             data/full_repos/permissive/426072575/labs/lab6_adder-subtractor/codes/signed/full\n             data/full_repos/permissive/426072575/labs/lab6_adder-subtractor/codes/signed/full.v\n             data/full_repos/permissive/426072575/labs/lab6_adder-subtractor/codes/signed/full.sv\n             full\n             full.v\n             full.sv\n             obj_dir/full\n             obj_dir/full.v\n             obj_dir/full.sv\n%Error: Cannot find file containing module: adder-subtractor(Question\n%Error: Cannot find file containing module: 3\n%Error: Cannot find file containing module: 4\n%Error: Cannot find file containing module: 5),data/full_repos/permissive/426072575\n%Error: Cannot find file containing module: data/full_repos/permissive/426072575/labs/lab6_adder-subtractor/codes/signed\n%Error: Cannot find file containing module: 5)/Add.v\n%Error: Exiting due to 7 error(s)\n'
module Add(
    cin, x, y, sum, cout, overflow
);
    parameter n = 5;
    input cin;
    input [n-1:0] x, y;
    output [n-1:0] sum;
    output cout, overflow;
    wire [n:0] tout;

    assign tout[0] = cin;
    assign cout = tout[n];
    

    genvar i;
    generate
        for(i = 0; i <= n-1; i = i + 1)
        begin
            fullAdder stage(x[i], y[i], tout[i], sum[i], tout[i+1]);
        end
    endgenerate
    

    assign overflow = (x[n-1] & y[n-1] & ~sum[n-1] | (~x[n-1] & ~y[n-1] & sum[n-1]));

endmodule
module Add(
    cin, x, y, sum, cout, overflow
);

    parameter n = 5;
    input cin;
    input [n-1:0] x, y;
    output [n-1:0] sum;
    output cout, overflow;
    wire [n:0] tout;

    assign tout[0] = cin;
    assign cout = tout[n];
    

    genvar i;
    generate
        for(i = 0; i <= n-1; i = i + 1)
        begin
            fullAdder stage(x[i], y[i], tout[i], sum[i], tout[i+1]);
        end
    endgenerate
    

    assign overflow = (x[n-1] & y[n-1] & ~sum[n-1] | (~x[n-1] & ~y[n-1] & sum[n-1]));

endmodule