Consider a full-adder with the following input values : (a) x = 1, y = 0 and C₁ (carry input) = 0
Consider a full-adder with the following input values :
(a) x = 1, y = 0 and C₁ (carry input) = 0
(b) x = 0, y = 1 and C₁ = 1
Compute the values of S (sum) and C₀ (carry output) for the above input values.
Show answerHide answer
Correct answer: (A) S = 1, C₀ = 0 and S = 0, C₀ = 1
Explanation
For a full adder, S = A ⊕ B ⊕ Cᵢₙ and Cₒᵤₜ = A·B + Cᵢₙ·(A ⊕ B). (a) A = 1, B = 0, Cᵢₙ = 0: S = 1 ⊕ 0 ⊕ 0 = 1, Cₒᵤₜ = 1·0 + 0·(1 ⊕ 0) = 0. (b) A = 0, B = 1, Cᵢₙ = 1: S = 0 ⊕ 1 ⊕ 1 = 0, Cₒᵤₜ = 0·1 + 1·(0 ⊕ 1) = 1. So S = 1, C₀ = 0 and S = 0, C₀ = 1.