Docsity

Timing analysis Using Bisection - Lecture Notes | ECE 323, Exams of Electronics

Toggle sidebar
bg1
hspice.book : hspice.ch28 1 Thu Jul 23 19:10:43 1998
Star-Hspice Manual, Release 1998.2 27-1
Chapter 27
Timing Analysis Using Bisection
To analyze circuit timing violations, a typical methodology is to generate a set
of operational parameters that produce a failure in the required behavior of the
circuit. Then when a circuit timing failure occurs, you can identify a timing
constraint that can lead to a design guideline. You must be able to perform an
iterative analysis to define the violation specification.
Typical types of timing constraint violations include:
ā– Data setup time before clock
ā– Data hold time after clock
ā– Minimum pulse width required to allow a signal to propagate to the output
ā– Maximum toggle frequency of the component(s)
This chapter describes how to use the Star-Hspice bisection function in timing
optimization. The general topic of optimization with Star-Hspice is covered in
depth in Chapter 11, ā€œOptimizing Performanceā€.
The following topics are covered in this chapter:
ā– Understanding Bisection
ā– Understanding the Bisection Methodology
ā– Using Bisection
ā– Example 1 – Setup Time Analysis
ā– Example 2 – Minimum Pulse Width Analysis
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download Timing analysis Using Bisection - Lecture Notes | ECE 323 and more Exams Electronics in PDF only on Docsity!

Star-Hspice Manual, Release 1998.2 27-

Chapter 27

Timing Analysis Using Bisection

To analyze circuit timing violations, a typical methodology is to generate a set

of operational parameters that produce a failure in the required behavior of the

circuit. Then when a circuit timing failure occurs, you can identify a timing

constraint that can lead to a design guideline. You must be able to perform an

iterative analysis to define the violation specification.

Typical types of timing constraint violations include:

n Data setup time before clock

n Data hold time after clock

n Minimum pulse width required to allow a signal to propagate to the output

n Maximum toggle frequency of the component(s)

This chapter describes how to use the Star-Hspice bisection function in timing

optimization. The general topic of optimization with Star-Hspice is covered in

depth in Chapter 11, ā€œOptimizing Performanceā€.

The following topics are covered in this chapter:

n Understanding Bisection

n Understanding the Bisection Methodology

n Using Bisection

n Example 1 – Setup Time Analysis

n Example 2 – Minimum Pulse Width Analysis

Understanding Bisection Timing Analysis Using Bisection

27-2 Star-Hspice Manual, Release 1998.

Understanding Bisection

Formerly, engineers built external drivers to submit multiple parameterized Star-

Hspice jobs, with each job exploring a region of the operating envelope of the

circuit. In addition, the driver needed to provide part of the analysis by post-

processing the Star-Hspice results to deduce the limiting conditions.

Because characterization of circuits in this way is associated with small jobs, the

individual analysis times are relatively small compared with the overall job time.

This methodology is inefficient because of the overhead of submitting the job,

reading and checking the netlist, and setting up the matrix. Efficiency in

analyzing timing violations can be increased with more intelligent methods of

determining the conditions causing timing failure. The bisection optimization

method was developed to make cell characterization in Star-Hspice more

efficient.

Star-Hspice bisection methodology saves time in three ways:

n Reduction of multiple jobs to a single characterization job

n Removal of post-processing requirements

n Use of accuracy-driven iteration

Figure 27-1: illustrates a typical analysis of setup time constraints. A cell is

driven by clock and data input waveforms. There are two input transitions, rise

and fall, that occur at times T 1 and T2. The result is an output transition, when

V(out) goes from low to high. The following relationship between times

T 1 (data) and T 2 (clock) must be true in order for the V(out) transition to occur:

T2 > (T1 + setup time)

The goal of the characterization, or violation analysis, is to determine the setup

time. This is done by keeping T 2 fixed while repeating the simulation with

different values of T 1 and observing which T 1 values produce the output

transition and which values do not.

Previously, it was necessary to do very tight sweeps of the delay between the

data setup and clock edge, looking for the value at which the transition fails to

occur. This was done by sweeping a value that specifies how far the data edge

precedes a fixed clock edge. This methodology is time consuming, and is not

Understanding Bisection Timing Analysis Using Bisection

27-4 Star-Hspice Manual, Release 1998.

Figure 27-1: Determining Setup Time with Bisection Violation

Analysis

The Star-Hspice Bisection feature greatly reduces the amount of work and

computational time required to find an accurate solution to this type of problem.

The following pages show examples of using this feature to identify setup, hold,

and minimum clock pulse width timing violations.

T (^) 1 (varies) T (^) 2 (fixed)

Setup Time = T 2 āˆ’ T 1

Too late for a good transition: V(out) does not change

Target value: latest time at which a Data transition results in a V(out) transition

Early enough to cause a good V(out) transition

0

1

Clock

0

1

Data

0

1

V(out)

Time

Setup time is the minimum amount of time by which the Data transition must precede the Clock transition at T 2 , in order to cause a V(out) transition

Bisection can be used to quickly find the latest time T 1 at which a Data transition causes a V(out) transition.

T 1 T (^2)

Timing Analysis Using Bisection Understanding the Bisection Methodology

Star-Hspice Manual, Release 1998.2 27-

Understanding the Bisection Methodology

Bisection is a method of optimization which employs a binary search method to

find the value of an input variable (target value) associated with a ā€œgoalā€ value

of an output variable. The input and output variables may be of various types –

for example, voltage, current, delay time or gain– related by some transfer

function. In general, use a binary search to locate the output variable goal value

within a search range of the input variable by iteratively halving that range to

converge rapidly on the target value. At each iteration the ā€œmeasured valueā€ of

the output variable is compared with the goal value. Bisection is employed in

both the ā€œpass/failā€ method and the ā€œbisectionā€ method (see ā€œUsing Bisectionā€

on page -6). The process is largely the same for either case.

The Star-Hspice Bisection procedure involves two steps when solving the timing

violation problem. First, the procedure detects whether the output transition

occurred. Second, the procedure automatically varies the input parameter (T 1 in

Figure 27-1:) to find the value for which the transition barely occurs. The Star-

Hspice Measurement and Optimization features handle these two steps.

Measurement

Use the Star-Hspice MAX measurement function to detect success or failure of

an output transition. In the case of a low-to-high output transition, a MAX

measurement produces zero on failure, or approximately the supply voltage V dd

on success. This measurement, using a goal of V dd minus a suitable small value

to ensure a solution, is sufficient to drive the optimization.

Optimization

The bisection method is straightforward, given a single measurement with a goal

and known upper and lower boundary values for the input parameter. The

characterization engineer should be able to specify acceptable upper and lower

boundary values.

Timing Analysis Using Bisection Using Bisection

Star-Hspice Manual, Release 1998.2 27-

If the initial value passes the test, the target value must be less than the tested

value (in this case), so the bisection algorithm moves the upper search limit to

the value it just tested. If the test fails, the target value must greater than the

tested value, so the bisection algorithm moves the lower limit to the value it just

tested.

Then the algorithm tests a value midway between the new limits. The search

continues in this manner, moving one limit or the other to the last midpoint, and

testing the value midway between the new limits. The process stops when the

difference between the latest test values is less than or equal to the user-specified

error tolerance (normalized by multiplying by the initial boundary range).

Examining the Command Syntax .MODEL OPT METHOD=BISECTION ... or .MODEL OPT METHOD=PASSFAIL ... OptModel- the model to be used. Refer to Chapter 11, ā€œOptimizing Performanceā€ for Name information on specification of optimization models in Star-Hspice. METHOD keyword to indicate which optimization method to use. For bisection, the method may be one of the following: BISECTION When the difference between the two latest test input values is within the error tolerance and the latest measured value exceeds the goal, bisection has succeeded, and stops. The process reports the optimized parameter that corresponded to the test value that satisfies this error tolerance, and this goal (passes). PASSFAIL When the difference between the two latest test input values is within the error tolerance and one of the values ≄ goal (passes) and the other fails, bisection has succeeded and stops. The process reports the value the input parameter value associated with the ā€œpassā€ measurement. OPT keyword to indicate optimization is to be performed

The parameters are passed in a normal optimization specification:

.PARAM = (, , )

Using Bisection Timing Analysis Using Bisection

27-8 Star-Hspice Manual, Release 1998.

In the BISECTION method, the measure results for and

limits of must be on opposite sides of the GOAL value in the

.MEASURE statement. For the PASSFAIL method, the measure must pass for

one limit and fail for the other limit. The process ignores the value of the

field.

The error tolerance is a parameter in the model being optimized.

Note that the bisectional search is applied to only one parameter.

When the OPTLST option is set (.OPTION OPTLST=1), the process prints the

following information for the BISECTION method:

bisec-opt iter = <num_iterations> xlo = <low_val> xhi = <high_val> x = <result_low_val> xnew = <result_high_val> err = <error_tolerance>

where x is the old parameter value and xnew is the new parameter value.

When .OPTION OPTLST=1, the process prints the following information for

the PASSFAIL method:

bisec-opt iter = <num_iterations> xlo = <low_val> xhi = <high_val> x = <result_low_val> xnew = <result_high_val> measfail = 1

(measfail = 0 for a test failure for the x value).

Example: transient analysis .TRAN statement: .TRAN SWEEP OPTIMIZE=

  • RESULTS= MODEL= Example: transient .MEASURE statement: .MEASURE TRAN GOAL=

Example 1 – Setup Time Analysis Timing Analysis Using Bisection

27-10 Star-Hspice Manual, Release 1998.

.MEASURE Tran MaxVout Max v(D_Output) Goal = ā€˜v(Vdd)’

  • This measure calculates the setup time value

.MEASURE Tran SetupTime Trig v(Data) Val = ā€˜v(Vdd)/2’ Fall = 1

  • Targ v(Clock) Val = ā€˜v(Vdd)/2’ Rise = 1
  • Optimization Model

.MODEL OptMod Opt

  • Method = Bisection .OPTIONS Post Brief NoMod

  • AvanLink to Cadence Composer by Avant!
  • Hspice Netlist
  • May 31 15:24:09 1994

.MODEL nmos nmos level= .MODEL pmos pmos level= .Global vdd gnd .SUBCKT XGATE control in n_control out m0 in n_control out vdd pmos l=1.2u w=3.4u m1 in control out gnd nmos l=1.2u w=3.4u .ends .SUBCKT INV in out wp=9.6u wn=4u l=1.2u mb2 out in gnd gnd nmos l=l w=wn mb1 out in vdd vdd pmos l=l w=wp .ends .SUBCKT DFF c d nc nq Xi64 nc net46 c net36 XGATE Xi66 nc net38 c net39 XGATE Xi65 c nq nc net36 XGATE Xi62 c d nc net39 XGATE Xi60 net722 nq INV Xi61 net46 net38 INV Xi59 net36 net722 INV Xi58 net39 net46 INV c20 net36 gnd c=17.09f

Timing Analysis Using Bisection Example 1 – Setup Time Analysis

Star-Hspice Manual, Release 1998.2 27-

c15 net39 gnd c=15.51f c12 net46 gnd c=25.78f c4 nq gnd c=25.28f c3 net722 gnd c=19.48f c16 net38 gnd c=16.48f .ENDS *-------------------------------------------------------------


  • Main Circuit Netlist: *-------------------------------------------------------------

v14 vdd gnd dc= c10 vdd gnd c=35.96f c15 d_output gnd c=21.52f c12 dff_nq gnd c=11.73f c11 net31 gnd c=42.01f c14 net27 gnd c=34.49f c13 net25 gnd c=41.73f c8 clock gnd c=5.94f c7 data gnd c=7.93f Xi3 net25 net31 net27 dff_nq DFF l=1u wn=3.8u wp=10u Xi6 data net31 INV Xi5 net25 net27 INV Xi4 clock net25 INV Xi2 dff_nq d_output INV wp=26.4u wn=10.6u .END

Results

The top plot in Figure 27-3: shows the relationship between the clock and data

pulses that determine the setup time. The bottom plot shows the output

transition.

Timing Analysis Using Bisection Example 1 – Setup Time Analysis

Star-Hspice Manual, Release 1998.2 27-

Figure 27-3: – Transition at Minimum Setup Time

Find the actual value for the setup time in the ā€œOptimization, Resultsā€ section of

the Star-Hspice listing file:

optimization completed, the condition relin = 1.0000E-03 is satisfied **** optimized parameters opt .PARAM DelayTime = 1.7188n ... maxvout = 5.0049E+00 at= 4.5542E- from = .0000E+00 to= 8.0000E- setuptime = 2.8125E-10 targ= 3.5000E-09 trig= 3.2188E- 09

This listing file excerpt shows that the optimal value for the setup time is

0.28125 nanoseconds.

The top plot in Figure 27-4: shows examples of early and late data transitions, as

well as the transition at the minimum setup time. The bottom plot shows how the

Setup time (at 50%)

Example 1 – Setup Time Analysis Timing Analysis Using Bisection

27-14 Star-Hspice Manual, Release 1998.

timing of the data transition affects the output transition. These results were

produced with the following analysis statement:

  • Sweep 3 values for DelayTime Early Optim Late

.TRAN 1n 8n Sweep DelayTime Poi 3 0.0n 1.7188n 5.0n

Figure 27-4: Early, Minimum, and Late Setup and Hold Times

This analysis produces the following results:

*** parameter DelayTime = .000E+00 *** $ Early setuptime = 2.0000E-09 targ= 3.5000E-09 trig= 1.5000E- *** parameter DelayTime = 1.719E-09 *** $ Optimal setuptime = 2.8120E-10 targ= 3.5000E-09 trig= 3.2188E- *** parameter DelayTime = 5.000E-09 *** $ Late setuptime = -3.0000E-09 targ= 3.5000E-09 trig= 6.5000E-

E

Mini

L

Minim

um

L

Example 2 – Minimum Pulse Width Analysis Timing Analysis Using Bisection

27-16 Star-Hspice Manual, Release 1998.

  • Models

.PARAM

  • mult1=1 xl=0.06u xwn=0.3u xwp=0.3u
  • tox=200 delvton=0 delvtop=0 rshn=
  • rshp= .MODEL nch nmos
  • level=
  • lmlt=mult1 wmlt=mult1 wref=22u lref=4.4u
  • xl=xl xw=xwn tox=tox delvto=delvton rsh=rshn
  • ld=0.06u wd=0.2u acm=2 ldif=0 hdif=2.5u
  • rs=0 rd=0 rdc=0 rsc=0 js=3e-04 jsw=9e-
  • cj=3e-04 mj=.5 pb=.8 cjsw=3e-10 mjsw=.3 php=.
  • fc=.5 capop=4 xqc=.4 meto=0.08u
  • tlev=1 cta=0 ctp=0 tlevc=0 nlev=
  • trs=1.6e-03 bex=-1.5 tcv=1.4e-
  • dc model
  • x2e=0 x3e=0 x2u1=0 x2ms=0 x2u0=0 x2m=
  • vfb0=-.5 phi0=0.65 k1=.9 k2=.1 eta0=
  • muz=500 u00=.075 x3ms=15 u1=.02 x3u1=
  • b1=.28 b2=.22 x33m=0.000000e+
  • alpha=1.5 vcr=20 n0=1.6 wfac=15 wfacu=0.
  • lvfb=0 lk1=.025 lk2=.05 lalpha= .Model pch pmos
  • level=
  • lmlt=mult1 wmlt=mult1 wref=22u lref=4.4u
  • xl=xl xw=xwp tox=tox delvto=delvtop rsh=rshp
  • ld=0.08u wd=0.2u acm=2 ldif=0 hdif=2.5u
  • rs=0 rd=0 rdc=0 rsc=0 rsh=rshp js=3e-04 jsw=9e-
  • cj=3e-04 mj=.5 pb=.8 cjsw=3e-10 mjsw=.3 php=.
  • fc=.5 capop=4 xqc=.4 meto=0.08u
  • tlev=1 cta=0 ctp=0 tlevc=0 nlev=
  • trs=1.6e-03 bex=-1.5 tcv=-1.7e-
  • dc model
  • x2e=0 x3e=0 x2u1=0 x2ms=0 x2u0=0 x2m=
  • vfb0=-.1 phi0=0.65 k1=.35 k2=0 eta0=
  • muz=200 u00=.175 x3ms=8 u1=0 x3u1=0.
  • b1=.25 b2=.25 x33m=0.0 alpha=0 vcr=
  • n0=1.3 wfac=12.5 wfacu=.2 lvfb=0 lk1=-.

Timing Analysis Using Bisection Example 2 – Minimum Pulse Width Analysis

Star-Hspice Manual, Release 1998.2 27-

  • Alter for second load value

.ALTER $ repeat optimization for 20p load .PARAM Cload=20p .END

Results

Figure 27-5: shows the results of the pass/fail search for two different capacitive

loads.

Figure 27-5: Results of Bisectional Pass/Fail Search

Cload = 10pF

Cload = 20pF