I've been trying to implement a 32-bit adder by instantiating two 16-bit adders. The code is compiling but failing some test cases. I don't know what is going wrong in this.
module top_module( input [0:31] a, input [0:31] b, output [0:31] sum); add16 adder2 (.sum(sum[16:31]), .a(a[16:31]), .b(b[16:31])); add16 adder1 (.sum(sum[0:15]), .a(a[0:15]), .b(b[0:15])); endmodule
This is the top level figure of the circuit:
This is the output waveform: