Docsity

Minimizing Delay in Complex Logic Circuits: Techniques for Reducing Path Delays - Prof. Lo, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECEN 5263 Digital VLSI Design
Minimizing Delay in Complex Logic Circuits October 12, 2009 page 1 of 10
Minimizing Delay in Complex Logic
Circuits
Minimizing Path Delay. We would like to choose transistor widths to minimize delay,
but what delay should be minimized? In our examples, there are 2 delays for the inverter,
4 for the NAND and 10 for the OR-NAND. The delay specifications for most logic
designs are that a certain block of logic should have a worst case delay less than some
maximum allowed delay. This is NOT the same as specifying a worst case delay for each
logic gate. Recall that minimizing the inverter pair delay gave different optimum widths
than minimizing the worst case single inverter delay.
Instead we should minimize the worst case delay on all paths through the entire logic
block. Finding the worst case delay paths is a very difficult problem for large circuits.
Consider a combinational logic circuit with N inputs. We will restrict ourselves to chang-
ing one of the inputs at a time while leaving the other N - 1 inputs unchanged. There can
be a rising or falling edge on each input. If there is at least one path from each input to at
least one output, then the number of delays, Ndelays, must be greater than 2N. However,
there can be different paths depending on the values of the other N - 1 inputs. This
increases the number of possible paths by a factor of 2N-1.
2NN
delays 2N2N1–
<< N2N
=
Recall our 3-input OAI gate. There were 3x23 = 24 possible paths which we considered
previously. Many of these potential paths were uninteresting in that no change in the out-
put occurred, but we had to consider all possible paths to be sure that we had not missed
one that could turn out to be the worst case delay path.
In general, it is an NP-complete problem to find the worst case delay paths. It is practi-
cally impossible to consider all the paths when N is large. Instead, the designer uses his
intuition to pick the most likely candidates for the worst case delay paths. A possible
design procedure is as follows.
1. Choose initial transistor widths near the minimum allowed.
2. Simulate (up to N2N times) to find the worst case delay. If the worst case delay meets
the design spec, stop.
3. Choose new transistor widths (usually wider) to reduce the delay along the worst case
delay path(s). Go back to step 2.
A typical delay path looks similar to fig. 4.16, p. 174.
If there are several logic gates along the path, it may take a large number of iterations of
the design loop to meet the specs. We need some way to speed up the design process. We
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Minimizing Delay in Complex Logic Circuits: Techniques for Reducing Path Delays - Prof. Lo and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Minimizing Delay in Complex Logic

Circuits

Minimizing Path Delay. We would like to choose transistor widths to minimize delay, but what delay should be minimized? In our examples, there are 2 delays for the inverter, 4 for the NAND and 10 for the OR-NAND. The delay specifications for most logic designs are that a certain block of logic should have a worst case delay less than some maximum allowed delay. This is NOT the same as specifying a worst case delay for each logic gate. Recall that minimizing the inverter pair delay gave different optimum widths than minimizing the worst case single inverter delay.

Instead we should minimize the worst case delay on all paths through the entire logic block. Finding the worst case delay paths is a very difficult problem for large circuits. Consider a combinational logic circuit with N inputs. We will restrict ourselves to chang- ing one of the inputs at a time while leaving the other N - 1 inputs unchanged. There can be a rising or falling edge on each input. If there is at least one path from each input to at least one output, then the number of delays, Ndelays , must be greater than 2 N. However,

there can be different paths depending on the values of the other N - 1 inputs. This

increases the number of possible paths by a factor of 2 N -1.

2 N N (^) delays 2 N 2 N – 1 < < N 2 N =

Recall our 3-input OAI gate. There were 3x2^3 = 24 possible paths which we considered previously. Many of these potential paths were uninteresting in that no change in the out- put occurred, but we had to consider all possible paths to be sure that we had not missed one that could turn out to be the worst case delay path.

In general, it is an NP-complete problem to find the worst case delay paths. It is practi- cally impossible to consider all the paths when N is large. Instead, the designer uses his intuition to pick the most likely candidates for the worst case delay paths. A possible design procedure is as follows.

  1. Choose initial transistor widths near the minimum allowed.
  2. Simulate (up to N 2 N^ times) to find the worst case delay. If the worst case delay meets the design spec, stop.
  3. Choose new transistor widths (usually wider) to reduce the delay along the worst case delay path(s). Go back to step 2.

A typical delay path looks similar to fig. 4.16, p. 174.

If there are several logic gates along the path, it may take a large number of iterations of the design loop to meet the specs. We need some way to speed up the design process. We

can use our approximate delay equations to estimate the worst case delays which should be much faster than using a simulation like SPICE in step 2. Furthermore, instead of just guessing new transistor widths in step 3, we can use our delay formulas to pick new widths in a manner which should converge to the optimal minimum delay solution.

There are two delays associated with each path through the circuit. Just as for the single logic gates, we can start with a rising edge or a falling edge. At the next logic gate output, the rising input produces a falling output and a falling input produces a rising output. To be consistent with the single gate delay definitions, let as define a falling path delay to mean the edge that produces a falling output, and the rising path delay produces a rising output. For a path with N logic gates in it,

t (^) df PATH = … + t (^) dr N ( – 1 ) + t (^) df N ( ) t (^) dr PATH = … + t (^) df N ( – 1 ) + t (^) dr N ( )

For example, the path in fig. 4.16 with 4 logic gates in it,

t (^) df PATH = t (^) dr 1 + t (^) df 2 + t (^) dr 3 + t (^) df 4 t (^) dr PATH = t (^) df 1 + t (^) dr 2 + t (^) df 3 + t (^) dr 4

Both of these path delays must meet the delay specification for the logic block. This is different than requiring the rise/fall delays to be the same for each logic gate. Further- more, delays on other paths must also meet the delay spec. This usually results in all the longest path delays being the same as the specified maximum delay.

Since the path delays are nonlinear functions of the transistor widths, there is usually no closed form solution for the optimum transistor widths. However, this problem can be solved numerically with nonlinear optimization techniques. We will study a few simple cases where additional simplifying assumptions yield a closed form solution. This will allow us to gain insight into choosing near optimal transistor widths.

Multi-Stage Buffer Example. Suppose we want to design a multi-stage buffer out of a chain of inverters.

inv N inv N -1 ... inv 1

Cload (out)

Cload (in)

The input inverter has an input capacitance of Cload (in) and the output inverter must drive

the load capacitance, Cload (out). An inverter chain is often used to buffer a large capaci-

tance, Cload (out), while making it look like a much smaller capacitance, Cload (in).

The path delays are

t (^) df PATH t (^) df i ( ) { i odd}

āˆ‘ t^ dr i ( )

{ i even}

t (^) dr PATH t (^) dr i ( ) { i odd}

āˆ‘ t^ df i ( )

{ i even}

The results are more clear if we transform variables to find the optimum Wi and Zi where

W (^) i = W (^) n i ( ) + W (^) p i ( ) Z (^) i = W (^) p i ( ) ⁄ W (^) n i ( )

so that

W (^) n i ( )

W (^) i Z (^) i + 1

W (^) p i ( )

Z (^) i W (^) i Z (^) i + 1

t (^) df i ( ) ( Z (^) i + 1 )

--- 1( + K )

C (^) wire i ( ) C

------------------ + K

  W

min + W^ i – 1 W (^) i

= + ------------------------------------------------------------------ āˆ† t

t (^) dr i ( )

( Z (^) i + 1 ) Z (^) i

------------------- ( 1 + K ) 2

C (^) wire i ( ) C

------------------ + K

  W

min + W^ i – 1 W (^) i = + ------------------------------------------------------------------ āˆ† t

Z (^) i

=^ ---- t (^) df i ( )

We want to minimize the path delays with the constraint that the rise/fall path delays are the same. The method of Lagrange multipliers can be used for this constrained minimiza- tion. The optimal transistor sizes can be found by differentiating the weighted path delays with respect to the transistor sizes.

d W (^) i

d (^) m ā‹… t [ (^) df PATH +( 1 – m ) ā‹… tdr PATH] = 0

d Z (^) i

d (^) m ā‹… t [ (^) df PATH +( 1 – m ) ā‹… tdr PATH] = 0

d m

d (^) m ā‹… t [ (^) df PATH +( 1 – m ) ā‹… tdr PATH] = 0

The last equation insures that the rise/fall path delays are equal.

The weighted sum of the path delays is

m ā‹… tdf PATH + ( 1 – m ) ā‹… tdr PATH ( mt (^) df i ( ) +( 1 – m ) t (^) dr i ( )) { i odd}

( ( 1 – m ) t (^) df i ( ) + mt (^) dr i ( )) { i even}

m ( 1 – m )

Z (^) i

+^ ----

  (^) t df i ( ) { i odd}

( 1 – m ) m^2 Z (^) i  +^ ----^ t^ df i ( ) { i even}

so that the optimum Wi is found from

i odd:

0 d W (^) i

d (^) m ā‹… t = [ (^) df PATH +( 1 – m ) ā‹… tdr PATH]

( 1 – m ) m

Z (^) i + 1

  Z

( (^) i + 1 + 1 ) āˆ† t W (^) i + 1

m ( 1 – m )

Z (^) i

+^ ----

  Z

( (^) i + 1 )

C (^) wire i ( ) C

------------------ + K

  W

min + W^ i – 1

W (^) i

  • ----------------------------------------------------------------- 2 - āˆ† t

W (^) i W (^) i + 1

m ( 1 – m )

Z (^) i

+^ ----

  Z

( (^) i + 1 )

( 1 – m ) m

Z (^) i + 1

  Z

( (^) i + 1 + 1 )

C (^) wire i ( ) C

------------------ + K

  W

min + W^ i – 1 W (^) i

=^ ------------------------------------------------------------------

d Z (^) i

d (^) mt = [ (^) df PATH +( 1 – m ) t (^) dr PATH]

m [… ]āˆ† t ( 1 – m )

Z (^) i

= – ----- 2 [ …]āˆ† t

Z (^) i 21 – m m

= ------------- ≔ Z odd

For i even, just interchange m and 1- m.

W (^) i W (^) i + 1

( 1 – m ) m

Z (^) i

+^ ----

  Z

( (^) i + 1 )

m ( 1 – m )

Z (^) i + 1

  Z

( (^) i + 1 + 1 )

C (^) wire i ( ) C

------------------ + K

  W

min + W^ i – 1 W (^) i

=^ ------------------------------------------------------------------

Z (^) i 2 m 1 – m = -------------^ ≔ Z even= 2 ⁄ Z odd

W 1

W 2

------- (^) r

C (^) load ( out) C

W min W 1

W 2

W 3

r

W 1

W 2

C (^) load ( out) C

W min W 1

W 3

W 4

------- (^) r

W 2

W 3

------- (^) r

C (^) load ( out) C

W min W 1

W N – 1

W N

r

C (^) load ( out) C

W min W 1

------------ (^) , N even

C (^) load (out ) C

W min W 1

------------ (^) , N odd 

W 2

r S

--- W 1^ r S 2

C (^) load ( out) C

= =^ ---------------------- W min

W 3 1

S

--- W 2^ r S

---- 2 - W 1

r S

C (^) load ( out) C

= = = ---------------------- W min

W N

r S

--- W (^) N – 1 , N even

1 S

--- W (^) N – 1 , N odd 

r N^ ⁄^2 S N – 1 ------------ W 1 , N even

r ( N – 1 ) ⁄ 2

S

-------------------- N – 1 - W 1 , N odd 

 (^) r N^ ⁄^2 S N

C (^) load ( out) C

---------------------- W min , N even

r ( N – 1 ) ⁄ 2

S

-------------------- N -

C (^) load (out ) C

---------------------- W min , N odd 

Let us define the size ratio as S.

S

W (^) i W (^) i + 1

≔-------------^ , i even

C (^) load ( out) C

W min W 1

W 1

S

C (^) load (out ) C

=^ ---------------------- W min

Then,

WN is the size of the input transistor.

W N

C (^) load ( in) C

-------------------- W min

r N ⁄ 2

S

---------- N

C (^) load (out ) C

---------------------- W min , N even

r ( N – 1 ) ⁄ 2

S

-------------------- N -

C (^) load (out ) C

---------------------- W min , N odd 

S

N

r N ⁄ 2 C^ load ( out) C (^) load ( in)

---------------------- (^) , N even

r (^ N^ –^1 )^ ⁄^2

C (^) load ( out) C (^) load ( in)

---------------------- (^) , N odd 

S

r 1 ⁄ 2 C^ load (out ) C (^) load ( in)

1 ⁄ N , N even

r ( 1 – 1 ⁄ N ) ⁄ 2 C^ load ( out) C (^) load (in )

1 ⁄ N , N odd 

We finish by requiring the two path delays to be equal.

0 t (^) df PATH t (^) dr PATH

1

Z (^) i

–^ ----

  (^) t df i ( ) { i odd}

āˆ‘ –^1

Z (^) i

+^ ----

  (^) t df i ( ) { i even}

2 – Z (^) i Z (^) i

  Z

( (^) i + 1 )

--- 1( + K )

W (^) i – 1 W (^) i

  • ------------- āˆ† t { i odd}

2 – Z (^) i Z (^) i

  Z

( (^) i + 1 )

--- 1( + K )

W (^) i – 1 W (^) i

  • ------------- āˆ† t { i even}

2 – Z odd Z odd

  Z

( (^) odd + 1 )

--- 1( + K ) + S āˆ† t { i odd}

2 – Z even Z even

  Z

( (^) even + 1 )

--- 1( + K ) + rS āˆ† t { i even}

N even:

N 2

2 – Z odd Z odd

  Z

( (^) odd + 1 )

--- 1( + K ) r^1 ⁄^2

C (^) load (out ) C (^) load ( in)

1 ⁄ N

  • āˆ† t

N

2 – Z even Z even

  Z

( (^) even + 1 )

--- 1( + K ) r^3 ⁄^2

C (^) load ( out) C (^) load (in )

1 ⁄ N = + āˆ† t

and the minimum delay is

t (^) df PATH t (^) dr PATH

N

----^2 –^2

= = --- 1( + K ) + S āˆ† t

ln

C (^) load (out ) C (^) load ( in)

ln ( ) S

---------------------------------^2 –^2

= --- 1( + K ) + S āˆ† t

Note that the delay is proportional to the log of the load capacitance ratio if we choose N correctly. We can now find the optimum size ratio, S , from

āˆ‚ S

āˆ‚ t (^) d PATH = 0

ln

C (^) load ( out) C (^) load ( in)

ln 2 ( ) S

---------------------------------^1

S

---^2 –^2

 ----------------^ (^2 +^1 )^1

  • --- 1( + K ) + S āˆ† t

ln

C (^) load ( out) C (^) load (in )

ln ( ) S

---------------------------------^2 –^2

  • ^ ^ ( 2 + 1 )āˆ† t = 0

ln ( ) S

-----------^1

S

---^1

– --- 1( + K ) + S + 1 = 0

ln ( ) S

1 + K

2 S

=^ -------------^ + 1

This last transcendental equation can be solved numerically to find the optimum S = 3. for K = 0 and S = 3.59 for K = 1. Any size ratio in the range 3 < S < 4 should give near optimal (minimum) delay.