data/full_repos/permissive/434840709/lab2/csadd32_version2.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/434840709/lab2/csadd32_version2.v:12: Multiple top level modules\n                                                                                  : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                                  : ... Top module \'csadd32\'\nmodule csadd32(\n       ^~~~~~~\n                                                                                  : ... Top module \'add\'\nmodule add(       \n       ^~~\n%Error: data/full_repos/permissive/434840709/lab2/csadd32_version2.v:20: 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_version2.v:21: 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), 1 warning(s)\n'
module add(       
        input  a,
        input  b,
        input  cin,
        output sum,
        output cout
);
        wire s1,s2,c1,c2;
        add1 add1_instance1( .a(a),.b(b),.cin(0),.sum(s1),.cout(c1));
        add1 add1_instance2( .a(a),.b(b),.cin(1),.sum(s2),.cout(c2));
        assign sum=cin?s2:s1;   
        assign cout=cin?c2:c1;  
endmodule
module add(       
        input  a,
        input  b,
        input  cin,
        output sum,
        output cout
);

        wire s1,s2,c1,c2;
        add1 add1_instance1( .a(a),.b(b),.cin(0),.sum(s1),.cout(c1));
        add1 add1_instance2( .a(a),.b(b),.cin(1),.sum(s2),.cout(c2));
        assign sum=cin?s2:s1;   
        assign cout=cin?c2:c1;  
endmodule