Left Hand Side Concatenation Width Mismatch
A 16-bit adder block computes the sum of two 16-bit integers and provides a carry-out flag for multi-precision arithmetic.
Expected behavior: The output Sum contains the lower 16 bits of the addition A + B. The output Cout contains the 17th bit representing the carry overflow.
Simulation shows Cout = 0 and Sum = 0 for inputs A = 32768 and B = 32768. The expected result is Cout = 1 and Sum = 0. The overflow bit is silently truncated and completely lost. Inspect the circuit and correct the fault.
Constraints
AandBare 16-bit input buses.Sumis a 16-bit output bus.Coutis a 1-bit output.
Topics
Solve this problem
Place the gates, wire them up and watch the signals settle. Every submission runs on the same simulation engine that grades it.
This problem is part of Codiode Pro. The statement above is free to read.
The circuit builder and code editor need a desktop screen. On a phone, read the problem here and open it on a laptop to solve.