28. 4-Bit Carry-Lookahead Adder

Loading simulator…

The predefined circuit already generates the propagate and group propagate/generate signals. Complete the missing carry-lookahead connections as follows.

  1. Generate C1
C1_T0 = P0 AND Cin
C1 = G0 OR C1_T0

Connect P0 to C1_T0 and G0 to C1.

  1. Generate C2
C2_T0 = P10 AND Cin
C2 = G10 OR C2_T0

Connect P10 to C2_T0 and G10 to C2.

  1. Generate C3
C3_T0 = P210 AND Cin
C3 = G210 OR C3_T0

Connect P210 to C3_T0 and G210 to C3.

  1. Generate C4
C4_T0 = P3210 AND Cin
C4 = G3210 OR C4_T0

Connect P3210 to C4_T0 and G3210 to C4.

The predefined Sum logic then uses:

Sum0 = P0 XOR Cin
Sum1 = P1 XOR C1
Sum2 = P2 XOR C2
Sum3 = P3 XOR C3
Cout = C4

Thus the completed circuit produces:

{Cout, Sum[3:0]} = A + B + Cin

The carries are obtained from the CLA propagate/generate network rather than by rippling through previous carry outputs.