Docsity

Analysis of Ripple Carry and Carry Look-Ahead Adders for 64-bit Adder, Assignments of Electrical and Electronics Engineering

Partial preview of the text

Download Analysis of Ripple Carry and Carry Look-Ahead Adders for 64-bit Adder and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

Assignment # 8

Problem 1:

Ripple carry adder

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.

Carry look-ahead adder

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.

Problem 2:

64-bit adder using ripple carry only

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.

64-bit adder using 16-bit carry lookahead adders

Speed: 2*3+1 + 2 +2+2 = 13 gate delays

Problem 3:

Problem 4:

a. Simple graphical representation

s 0

s 2

s 3

s 1

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

  • Next state(b2) = ( .b1.b0.inc + b2.b1 + b2. .b0+b2... )
  • Next state(b1) = (. .b0.inc +. b1 + b2.b1. +b2.b1.b0. )
  • Next state(b0) = (... +... +b2.b1+b2. .b0. ) PLA implementation: