Lets Break the question into three steps
Observing we need to calculate two things that is sum and carry → Main Motive
and the respective sum of any bits is dependent on the carry let’s say we want to calculate
sum s1 =(a1 xor b1 xor c1) what it will be basically calculating is a1+b1+c1
now for calculation of sum it is dependent on carry so we will calculate carry first before sum
Equations for generating carry
C1=G0+P0C0C1=G0+P0C0
C2=G1+P1G0+P1P0C0C2=G1+P1G0+P1P0C0
C3=G2+P2G1+P2P1G0+P2P1P0C0C3=G2+P2G1+P2P1G0+P2P1P0C0
C4=G3+P3G2+P3P2G1+P3P2P1G0+P3P2P1P0C0
observe these equations here the carry is generated and we can clearly observe carry is dependent on G and P so for to calculate carry we need to calculate G and P first
now lets say G0 then G0 = A0 and b0
and P0 =(A0 xor B0)
now first we need to calculate G and P ,Using this G and P we will generate carry and finally by using carry and p we will generate the sum
Level 1 operations
first generating G and P
G can be generated directly using an AND operation that will take only --- 1 TIME UNIT
P needs xor of A and B and we don't have Xor gate directly so we will implement xor as two level operations of AND & OR gate ,here we even have the complement of the respective variables
it takes – 2 TIME UNITS
Maximum of this level is 2 units so we will consider 2 units for this level
Level 2 operations
Level 2 operations includes calculating carry here we can observe all these are AND & OR operations AND takes 1 time unit and OR takes 1 time unit
C4=G3+P3G2+P3P2G1+P3P2P1G0+P3P2P1P0C0
this level as on a whole takes 2 time units
Level 3
Level 3 operations takes 3 time units for calculating the sum as it is XOR of P and C but here the complements are not present for p and c as we need to calculate that takes 1 level and after that we apply xor that is AND-OR which will take 3 time units
2nd way when we take assume that complement of c and p is also available as it is given that all the complements of i/p's are also available then it will take only 2 units
Total 6 units/7 units both should be write depending on whether C and P 's complements are available or not