data/full_repos/permissive/451861474/8 Bit Adder_Subractor/A4Q2_8_bit_adder.v
1: b'%Error: Cannot find file containing module: Bit\n        ... Looked in:\n             data/full_repos/permissive/451861474/8/Bit\n             data/full_repos/permissive/451861474/8/Bit.v\n             data/full_repos/permissive/451861474/8/Bit.sv\n             Bit\n             Bit.v\n             Bit.sv\n             obj_dir/Bit\n             obj_dir/Bit.v\n             obj_dir/Bit.sv\n%Error: Cannot find file containing module: Adder_Subractor,data/full_repos/permissive/451861474\n%Error: Cannot find file containing module: data/full_repos/permissive/451861474/8\n%Error: Cannot find file containing module: Adder_Subractor/A4Q2_8_bit_adder.v\n%Error: Exiting due to 4 error(s)\n'
module add_8bit(input[7:0] a, input[7:0] b, input opcode, output wire[7:0] s, output wire is_overflow);

wire[7:0] cout;

add_1bit s0(a[0],b[0],opcode,opcode,s[0],cout[0]);
add_1bit s1(a[1],b[1],opcode,cout[0],s[1],cout[1]);
add_1bit s2(a[2],b[2],opcode,cout[1],s[2],cout[2]);
add_1bit s3(a[3],b[3],opcode,cout[2],s[3],cout[3]);
add_1bit s4(a[4],b[4],opcode,cout[3],s[4],cout[4]);
add_1bit s5(a[5],b[5],opcode,cout[4],s[5],cout[5]);
add_1bit s6(a[6],b[6],opcode,cout[5],s[6],cout[6]);
add_1bit s7(a[7],b[7],opcode,cout[6],s[7],cout[7]);

assign is_overflow=(cout[6]^cout[7]);

endmodule
module add_8bit(input[7:0] a, input[7:0] b, input opcode, output wire[7:0] s, output wire is_overflow);


wire[7:0] cout;

add_1bit s0(a[0],b[0],opcode,opcode,s[0],cout[0]);
add_1bit s1(a[1],b[1],opcode,cout[0],s[1],cout[1]);
add_1bit s2(a[2],b[2],opcode,cout[1],s[2],cout[2]);
add_1bit s3(a[3],b[3],opcode,cout[2],s[3],cout[3]);
add_1bit s4(a[4],b[4],opcode,cout[3],s[4],cout[4]);
add_1bit s5(a[5],b[5],opcode,cout[4],s[5],cout[5]);
add_1bit s6(a[6],b[6],opcode,cout[5],s[6],cout[6]);
add_1bit s7(a[7],b[7],opcode,cout[6],s[7],cout[7]);

assign is_overflow=(cout[6]^cout[7]);

endmodule