In carry lookahead adder, the carry is calculated based on initial carry and hence it is not dependent on previous carry.So here we have 4 bit carry lookahead adder , we calculate C4 in terms of C0 without involvement of C3 using the carry lookahead equations .To use the carry looahead equations , we need the generator functions Gi and propogator functions Pi for each bit pair of operands ai and bi.They are calculated as :
Gi = ai . bi
Pi = ai ⊕ bi
So all these operations(calculation of Gi 's and Pi 's takes place simulatnoeusly.After that :
we calculate C4 from the C0 using the carrylookahead equations :
Ci+1 = Gi + Pi . Ci
So calculating C1 in terms Co , we get :
C1 = G0 + P0. C0
Similarly calculating C2 in terms C1 , we get :
C2 = G1 + P1. C1
Having calculated the C1 earlier , we can find C2 in terms of C0 by substitution :
C2 = G1 + G0 . P1 + C0 . P0 . P1
Proceeding in the same manner , substituting repeatedly , we get :
C4 = G3 + G2 . P3 + G1 . P2 . P3 + G0 . P1 . P2 . P3 + C0 . P0 . P1 . P2 . P3
Thus we can see final carry C4 is caluclated in terms of C0 by using generator and propogator functions
As we can see for C4 , no of product terms containing more than 1 literal = 4
So no of AND gates required = 4 for C4
and to combine them i.e.to find C4 , we need to OR them , so we
No of OR gates for C4 = 1
Similarly we require 3 AND gates and 1 OR gate for C3
2 AND gates and 1 OR gate for C2 and
1 AND and 1 OR gate for C1
This carry lookaheads C1 , C2 , C3 and C4 that we have calculated in terms of C0 are stored in carry lookahead circuit.But prior to calculating them as we mentioned earlier , we calculate Gi and Pi where i ranges from 0 to 3 here since it is a 4 bit adder.
So in calculating Gi , we saw Gi = ai . bi so here 1 AND gate is required as well .As i ranges from 0 to 3 , so need 4 AND gates.
Therefore, total number of AND gates = 4 + 3 + 2 + 1(from carry lookahead circuit) + 4(in calculating Gi)
= 14
Total no of OR gates = 4 [For finding C1 to C4]
Therefore , x = 14 and y = 4
Hence , 2x + 2y = 28 + 8
= 36
Hence the correct option is B