Description:

Subtraction:

  • When we wish to subtract A to B, we use A + (flip bits of B) + 1
  • Conveniently, when K is 1, C_in can also act as 1
  • Then we use multiplexer to choose B or not B (flipped) which is B_i XOR K