Locating a lost carry in a compressor stage

A digital signal processor adds three six-bit unsigned operands using a carry-save stage: six independent full adders that produce separate sum and carry rows without propagating carries between columns.


The inputs are A=(100101)2A=(100101)_2, B=(001111)2B=(001111)_2, and D=(110010)2D=(110010)_2. At each bit position ii, the outputs satisfy


ai+bi+di=si+2ki.a_i+b_i+d_i=s_i+2k_i.


The six-bit sum row SS contains the bits sis_i. The raw carry row KK contains the bits kik_i. A one-bit left shift forms the aligned carry row C=2KC=2K, retaining the seventh bit. A final adder computes S+CS+C without truncation.


A carry-save stage sends its sum row directly to a final adder and its raw carry row through a one-bit left shift.


During testing, the final output is decimal 9494. Exactly one raw carry signal kik_i that should be one is stuck at zero before the shift. The sum row, shift wiring, and final adder are otherwise correct. Bit index zero is the least significant position.


Find the fault-free sum row SS, the fault-free aligned carry row CC, the index ii of the faulty raw carry signal, and the fault-free final total. Enter all four answers as exact decimal integers; the bit index has no unit.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Arithmetic Circuits Questions: