In an 8-bit ripple-carry adder, the longest latency occurs during the worst-case carry propagation, where a carry is generated at the least significant bit (bit 0) and propagates through all bit positions up to the most significant bit (bit 7).
The 8-bit 2's complement representation of A=1 is:
A=000000012 For the least significant stage (bit 0):
To generate a carry (C1=1) with initial carry C0=0, we must have B0=1.
For stages 1 through 7:
To propagate the carry without killing it (Ci+1=Ci), the propagate condition requires Ai⊕Bi=1.
Since Ai=0 for all i∈{1,2,…,7}, we must have Bi=1 for all i∈{1,2,…,7}.
Thus, the binary value of B is:
B=111111112 In 8-bit 2's complement representation, 111111112=−1.
Therefore, the decimal value of B is -1.