data/full_repos/permissive/434840709/lab2/csadd32.v
1: b"%Error: data/full_repos/permissive/434840709/lab2/csadd32.v:50: Cannot find file containing module: 'add1'\n        add1 add1_instance1( .a(a),.b(b),.cin(0),.sum(s1),.cout(c1));\n        ^~~~\n        ... Looked in:\n             data/full_repos/permissive/434840709/lab2,data/full_repos/permissive/434840709/add1\n             data/full_repos/permissive/434840709/lab2,data/full_repos/permissive/434840709/add1.v\n             data/full_repos/permissive/434840709/lab2,data/full_repos/permissive/434840709/add1.sv\n             add1\n             add1.v\n             add1.sv\n             obj_dir/add1\n             obj_dir/add1.v\n             obj_dir/add1.sv\n%Error: data/full_repos/permissive/434840709/lab2/csadd32.v:51: Cannot find file containing module: 'add1'\n        add1 add1_instance2( .a(a),.b(b),.cin(1),.sum(s2),.cout(c2));\n        ^~~~\n%Error: Exiting due to 2 error(s)\n"
module add4(         
        input   [3:0]a,
        input   [3:0]b,
        input        cin,
        output  [3:0]sum,
        output  cout
);
        wire[2:0] c;
        add add_instance1(.a(a[0]),.b(b[0]),.cin(cin ),.sum(sum[0]),.cout(c[0]));
        add add_instance2(.a(a[1]),.b(b[1]),.cin(c[0]),.sum(sum[1]),.cout(c[1]));
        add add_instance3(.a(a[2]),.b(b[2]),.cin(c[1]),.sum(sum[2]),.cout(c[2]));
        add add_instance4(.a(a[3]),.b(b[3]),.cin(c[2]),.sum(sum[3]),.cout(cout));
endmodule
module add4(         
        input   [3:0]a,
        input   [3:0]b,
        input        cin,
        output  [3:0]sum,
        output  cout
);

        wire[2:0] c;
        add add_instance1(.a(a[0]),.b(b[0]),.cin(cin ),.sum(sum[0]),.cout(c[0]));
        add add_instance2(.a(a[1]),.b(b[1]),.cin(c[0]),.sum(sum[1]),.cout(c[1]));
        add add_instance3(.a(a[2]),.b(b[2]),.cin(c[1]),.sum(sum[2]),.cout(c[2]));
        add add_instance4(.a(a[3]),.b(b[3]),.cin(c[2]),.sum(sum[3]),.cout(cout));
endmodule