4-bit Bus Adder
Datapaths move numbers as multi-bit buses, not loose wires. A 4-bit adder sums two 4-bit operands and a carry-in, producing a 4-bit sum bus and a single carry-out that signals overflow past 15.
Sum is the low 4 bits of A + B + Cin. Cout is the bit that overflows out of the top.
| A | B | Cin | Sum | Cout | |------|------|-------|-------|--------| | 5 | 3 | 0 | 8 | 0 | | 9 | 6 | 0 | 15 | 0 | | 8 | 8 | 0 | 0 | 1 | | 15 | 15 | 1 | 15 | 1 |
Constraints
A,B, andSumare 4-bit buses.CinandCoutare 1-bit.- Use the bus adder (BUSADD) configured to width 4. Do not unroll into single-bit full adders.
Coutmust reflect carry out of bit 3, not a saturated value.
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.