GATE Computer ScienceHardGATE CS (PYQ pattern)
A full subtractor (A − B − Bin, giving difference D and borrow-out Bout) is to be built from one full adder (inputs x, y, z; outputs sum S and carry C) plus inverters only, with x = A', y = B, z = Bin. Which output connection is correct?
- A. D = S, Bout = C
- B. D = S', Bout = C
- C. D = S', Bout = C'
- D. D = S, Bout = C'
Correct answer: B. D = S', Bout = C
Bout = A'B + A'Bin + B·Bin = majority(A', B, Bin), which is exactly the adder's carry C with x = A'. The difference is A ⊕ B ⊕ Bin, while S = A' ⊕ B ⊕ Bin = (A ⊕ B ⊕ Bin)', so D = S' needs one inverter.
More Digital Logic questions
- In a 4-bit ripple-carry adder with no carry-in, for how many of the 256 operand pairs (A, B) is the carry generated at stage 0 (A0 = B0 =…
- The IEEE 754 single-precision patterns 0x00600000 and 0x00200000 are added in single precision. What is the bit pattern of the result?
- The IEEE 754 single-precision pattern 0xC2F60000 represents −123.0. What is the single-precision bit pattern of −123 × 2⁻¹³⁵?
- In C with IEEE 754 single-precision float, let x = 16777216.0f (2²⁴). What are the values of (x + 1.0f) + 1.0f and x + (1.0f + 1.0f)?
- How many IEEE 754 single-precision numbers x satisfy 1 ≤ x < 1000?
- How many of the 2³² IEEE 754 single-precision bit patterns represent a finite value that is an integer (both zeros included, both signs…