Loading simulator…
The predefined circuit already generates the propagate and group propagate/generate signals. Complete the missing carry-lookahead connections as follows.
C1C1_T0 = P0 AND Cin
C1 = G0 OR C1_T0
Connect P0 to C1_T0 and G0 to C1.
C2C2_T0 = P10 AND Cin
C2 = G10 OR C2_T0
Connect P10 to C2_T0 and G10 to C2.
C3C3_T0 = P210 AND Cin
C3 = G210 OR C3_T0
Connect P210 to C3_T0 and G210 to C3.
C4C4_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.