GATE / CS ARCHIVE

GATE CSE 2016 SET 2 / QUESTION 7

GATE CSE 2016 Set 2 Q7

Digital Logic · Combinational Circuits · Full GATE CSE 2016 Set 2 paper

GATE 2016 Set 2, Q7 1 mark · NAT
Report issue

Combinational Circuits

Question 7, GATE 2016: An eight-bit ripple-carry adder adds two’s-complement integers A and B. With A=1, give the decimal B causing the longest latency for the sum to stabilize.
Tap to enlarge
Answer & solution

Official answer: -1.0 : -1.0

Our answer: −1; sum-only timing may also tie at 127

With A=00000001 and B=11111111 (−1), the low-order 1+1 generates a carry that propagates through all seven higher positions, giving the standard full-ripple worst case and official−1. If only the eight sum outputs matter and final carry-out is excluded, B=01111111 (127) also propagates the carry into the sign position and can tie the longest sum-settling delay under a conventional equal-delay full-adder model. Thus uniqueness depends on the precise output/timing model; −1 is a valid worst-case operand but need not be the only one.

At bit 0, 1+1 creates carry c1. At every higher bit of B=−1, A has 0 and B has 1, so the carry-propagate signal Ai XOR Bi is 1. Thus each carry waits on the previous stage. Binary 11111111 denotes −1, not 255, in the specified signed representation.

Original paper, page 27 · Answer key