Repairing a subtraction correction

A four-bit arithmetic unit is intended to compute unsigned A+BA+B when mode M=0M=0 and A−BA-B when M=1M=1, storing the result modulo 16. Its effective second operand is verified to be Xi=Bi⊕MX_i=B_i\oplus M, and every full-adder stage passes its tests. The connection driving initial carry C0C_0 has not been verified.


Bench tests give the following observations. Each entry shows the stored four-bit result.


AA

BB

Addition, M=0M=0

Subtraction, M=1M=1

101121011_2

010120101_2

000020000_2

010120101_2

010020100_2

001020010_2

011020110_2

000120001_2


An arithmetic unit passes B through mode-controlled XOR gates before an adder whose initial-carry connection is unverified.


Which wiring change supplies the missing correction and makes both operations correct for all operand words?

Choose an answer

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: