




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Assignment # 8
Following the path from Cin to Cout shows 2 gates that must be passed through Worst-case delays: A 4-bit adder requires 3 carry computations and the final sum calculation for a total of 3 * 2 + 2 = 8 gate delays.
c1 = g0 + p0c c2 = g1 + p1c = g1 + p1(g0 + p0c0) = g1 + p1g0 + p1p0c c3 = g2 + p2c = g2 + p2(g1 + p1g0 + p1p0c0) = g2 + p2g1 + p2p1g0 + p2p1p0c c4 = g3 + p3c = g3 + p3(g2 + p2g1 + p2p1g0 + p2p1p0c0) = g3 + p3g2 + p3p2g1 + p3p2p1g0 + p3p2p1p0c 1 gate delay 2 gate delays Therefore: in the worst case, we have 1+2+2 = 5 gate delays. The ratio between the two adders is 5 to 8.
Speed: 63*2 + 2 = 128 gate delays
Speed: 15*3+2+2 = 49 gate delays. To generate the carry in for the last group, it needs 15 * 3 gate delays. Given that carry in, it requires two gate delays to generate the carry ins, with the carry ins, it requires two more gate delays to generate a sum bit.
Speed: 2*3+1 + 2 +2+2 = 13 gate delays
a. Simple graphical representation
b. State assignment: We have 4 states => we will use 2 bit state register (a1, b1) s0: 00 s1: 01 s2: 10 s3: 11 Equation for next state: Next state(a1) = .b1 +a1. Next state(b1) =. + a1b Output : we have 3 outputs: left, middle and right and their values are assigned as below Current state LEFT MIDDLE RIGHT s0 1 0 0
1 1 1 1 x 0 0 0 1 0 1 0 0 1 0 1 1 0 1 0 1 1 0 0 1 0 1 1 x 0 0 0 1 0 0 0 0 1 0 0 1 0 0 x x 0 0 0