data/full_repos/permissive/135475029/lab_2/src/FourBitAdder.v
1: b"%Error: data/full_repos/permissive/135475029/lab_2/src/FourBitAdder.v:29: Cannot find file containing module: 'FullAdder'\n    FullAdder FA0 (a[0], b[0], gnd, s[0], co_0);\n    ^~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/135475029/lab_2/src,data/full_repos/permissive/135475029/FullAdder\n             data/full_repos/permissive/135475029/lab_2/src,data/full_repos/permissive/135475029/FullAdder.v\n             data/full_repos/permissive/135475029/lab_2/src,data/full_repos/permissive/135475029/FullAdder.sv\n             FullAdder\n             FullAdder.v\n             FullAdder.sv\n             obj_dir/FullAdder\n             obj_dir/FullAdder.v\n             obj_dir/FullAdder.sv\n%Error: data/full_repos/permissive/135475029/lab_2/src/FourBitAdder.v:30: Cannot find file containing module: 'FullAdder'\n    FullAdder FA1 (a[1], b[1], co_0, s[1], co_1);\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/135475029/lab_2/src/FourBitAdder.v:31: Cannot find file containing module: 'FullAdder'\n    FullAdder FA2 (a[2], b[2], co_1, s[2], co_2);\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/135475029/lab_2/src/FourBitAdder.v:32: Cannot find file containing module: 'FullAdder'\n    FullAdder FA3 (a[3], b[3], co_2, s[3], s[4]);\n    ^~~~~~~~~\n%Error: Exiting due to 4 error(s)\n"
module FourBitAdder(
    input [3:0] a, input [3:0] b, output [4:0] s
    );
    
    wire co_0, co_1, co_2;
    
    FullAdder FA0 (a[0], b[0], gnd, s[0], co_0);
    FullAdder FA1 (a[1], b[1], co_0, s[1], co_1);
    FullAdder FA2 (a[2], b[2], co_1, s[2], co_2);
    FullAdder FA3 (a[3], b[3], co_2, s[3], s[4]);
    
endmodule
module FourBitAdder(
    input [3:0] a, input [3:0] b, output [4:0] s
    );

    
    wire co_0, co_1, co_2;
    
    FullAdder FA0 (a[0], b[0], gnd, s[0], co_0);
    FullAdder FA1 (a[1], b[1], co_0, s[1], co_1);
    FullAdder FA2 (a[2], b[2], co_1, s[2], co_2);
    FullAdder FA3 (a[3], b[3], co_2, s[3], s[4]);
    
endmodule