Docsity

Star-Hspice Manual: Performing Cell Characterization, Study notes of Electronics

Toggle sidebar
bg1
hspice.book : hspice.ch20 1 Thu Jul 23 19:10:43 1998
Star-Hspice Manual, Release 1998.2 19-1
Chapter 19
Performing Cell Characterization
Most ASIC vendors use Star-Hspice to characterize their standard cell libraries
and prepare data sheets by using the basic capabilities of the .MEASURE
statement. Input sweep parameters and the resulting measure output parameters
are stored in the measure output data files design.mt0,design.sw0, and
design.ac0. Multiple sweep data is stored in this file, and you can plot it by using
AvanWaves. This lends itself to generating fanout plots of delay versus load.
The slope and intercept of the loading curves can be used to calibrate VHDL,
Verilog, Lsim, TimeMill, and Synopsys models.
This chapter covers:
■Determining Typical Data Sheet Parameters
A series of typical data sheet examples show the flexibility of the
MEASURE statement.
■Performing Data Driven Analysis
Automates cell characterization, including timing simulator polynomial
delay coefficient calculation. There is no limit on the number of parameters
simultaneously varied or the number of analyses to be performed.
Convenient ASCII file format for automated parameter input to Star-
Hspice.
■Using Digital File Input Stimuli
You can use logic state transition tables to produce the input stimuli for the
characterization. The D2A model in Star-Hspice provides a 28-state logic
simulator interface for rapid figuring of a cell characterization testbed.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14

Partial preview of the text

Download Star-Hspice Manual: Performing Cell Characterization and more Study notes Electronics in PDF only on Docsity!

Star-Hspice Manual, Release 1998.2 19-

Chapter 19

Performing Cell Characterization

Most ASIC vendors use Star-Hspice to characterize their standard cell libraries

and prepare data sheets by using the basic capabilities of the .MEASURE

statement. Input sweep parameters and the resulting measure output parameters

are stored in the measure output data files design.mt0 , design.sw0 , and

design.ac0. Multiple sweep data is stored in this file, and you can plot it by using

AvanWaves. This lends itself to generating fanout plots of delay versus load.

The slope and intercept of the loading curves can be used to calibrate VHDL,

Verilog, Lsim, TimeMill, and Synopsys models.

This chapter covers:

n Determining Typical Data Sheet Parameters

A series of typical data sheet examples show the flexibility of the

MEASURE statement.

n Performing Data Driven Analysis

Automates cell characterization, including timing simulator polynomial

delay coefficient calculation. There is no limit on the number of parameters

simultaneously varied or the number of analyses to be performed.

Convenient ASCII file format for automated parameter input to Star-

Hspice.

n Using Digital File Input Stimuli

You can use logic state transition tables to produce the input stimuli for the

characterization. The D2A model in Star-Hspice provides a 28-state logic

simulator interface for rapid figuring of a cell characterization testbed.

Determining Typical Data Sheet Parameters Performing Cell Characterization

19-2 Star-Hspice Manual, Release 1998.

Determining Typical Data Sheet Parameters

This section describes how to determine typical data sheet parameters.

Rise, Fall, and Delay Calculations

The following example first calculates vmax , using the MAX function over the

time region of interest. Then it calculates vmin using the MIN function. Finally,

the measured parameters can be used in subsequent calculations for accurate

10% and 90% points in the determination of the rise and fall time. Note that the

RISE=1 is relative to the time window formed by the delay TDval. Finally, the

delay Tdelay is calculated using a fixed value for the measure threshold.

Example

.MEAS TRAN vmax MAX V(out) FROM=TDval TO=Tstop .MEAS TRAN vmin MIN V(out) FROM=TDval TO=Tstop .MEAS TRAN Trise TRIG V(out) val=’vmin+0.1*vmax’ TD=TDval

  • RISE=1 TARG V(out) val=’0.9vmax’ RISE= .MEAS TRAN Tfall TRIG V(out) val=’0.9vmax’ TD=TDval
  • FALL=2 TARG V(out) val=’vmin+0.1*vmax’ FALL= .MEAS TRAN Tdelay TRIG V(in) val=2.5 TD=TDval FALL=
  • TARG V(out) val=2.5 FALL=

Figure 19-1: Rise, Fall, and Delay Time Demonstration

volts

V(in) (^) V(out)

Tstop

Trise Tfall

Tdelay

5 v

TDval time

Determining Typical Data Sheet Parameters Performing Cell Characterization

19-4 Star-Hspice Manual, Release 1998.

Sigma Sweep versus Delay

This file is set up to sweep sigma of the model parameter distribution while

looking at the delay, giving the designer the delay derating curve for the model

worst cases. This example is based on the demonstration file in $installdir/demo/

hspice/cchar / sigma.sp. This technique of building a worst case sigma library is

described in “Performing Worst Case Analysis” on page 10-33.

Example:

.tran 20p 1.0n sweep sigma -3 3. .meas m_delay trig v(2) val=vref fall=1 targ v(4) val=vref fall= .param xlnew =’polycd-sigma0.06u’ toxnew=’tox-sigma10’ .model nch nmos level=28 xl = xlnew tox=toxnew

Figure 19-3: Inverter Pair Transfer Curves and Sigma Sweep vs. Delay

Performing Cell Characterization Determining Typical Data Sheet Parameters

Star-Hspice Manual, Release 1998.2 19-

Delay versus Fanout

This example sweeps the subcircuit multiplier to quickly generate a family of

five load curves. By buffering the input source with one stage, more accurate

results are obtained. The example calculates the mean, variance, sigma, and

average deviance for each of the second sweep variables ( m_delay and

rms_power ). This example is based on the demonstration file $installdir/demo/

hspice/cchar/load1.sp.

Input File Example

.tran 100p 2.0n sweep fanout 1 10 2 .param vref=2. .meas m_delay trig v(2) val=vref fall=

  • targ v(3) val=vref rise= .meas rms_power rms power

x1 in 2 inv x2 2 3 inv x3 3 4 inv m=fanout

Output Statistical Results

meas_variable = m_delay mean = 273.8560p varian = 1.968e- sigma = 140.2711p avgdev = 106.5685p

meas_variable = rms_power mean = 5.2544m varian = 8.7044u sigma = 2.9503m avgdev = 2.2945m

Performing Cell Characterization Determining Typical Data Sheet Parameters

Star-Hspice Manual, Release 1998.2 19-

Figure 19-5: Graph of Pin Capacitance versus Inverter Input Voltage

Op-amp Characterization of ALM

This example analyzes op-amps with .MEASURE statements to present a very

complete data sheet. It references op-amp circuit output node out0 in the four

.MEASURE statements using output variable operators for decibels vdb(out0),

voltage magnitude vm(out0), and phase vp(out0). The example is taken from the

demonstration file demo/apps/alm124.sp.

Input File Example

.measure ac ’unitfreq’ trig at=1 targ vdb(out0) val=0 fall= .measure ac ’phasemargin’ find vp(out0) when vdb(out0)= .measure ac ’gain(db)’ max vdb(out0) .measure ac ’gain(mag)’ max vm(out0)

Determining Typical Data Sheet Parameters Performing Cell Characterization

19-8 Star-Hspice Manual, Release 1998.

Measure Results

unitfreq = 9.0786E+05 targ= 9.0786E+05 trig= 1.0000E+ phasemargin = 6.6403E+ gain(db) = 9.9663E+01 at= 1.0000E+00 from= 1.0000E+00 to= 1.0000E+ gain(mag)= 9.6192E+04 at= 1.0000E+00 from= 1.0000E+00 to= 1.0000E+

Figure 19-6: Magnitude Plot of Op-Amp Gain

Performing Data Driven Analysis Performing Cell Characterization

19-10 Star-Hspice Manual, Release 1998.

The syntax is:

Operating point:

.DC DATA=dataname

DC sweep:

.DC vin 1 5 .25 SWEEP DATA=dataname

AC sweep :

.AC dec 10 100 10meg SWEEP DATA=dataname

TRAN sweep :

.TRAN 1n 10n SWEEP DATA=dataname

The .MEASURE statement computes rise, fall, and propagation delay times. For

cell characterization, many measurements are necessary because of changing

specifications for load capacitance, fanout, temperature, and so on. This process

can be very time consuming. Use the AUTOSTOP option to stop the transient

analysis when all the rise, fall, and delays specified in the .MEASURE

statements are calculated. This option saves a great deal of CPU time.

Cell Characterization Example

This section provides example input files that perform cell characterization of an

inverter based on 3-micron MOSFET technology. The program finds the

propagation delay and rise and fall times for the inverter for best, worst and

typical cases for different fanouts. This data then can be used as library data for

digital-based simulators such as those found in the simulation of gate arrays and

standard cells.

The example, taken from the demonstration file $installdir/demo/hspice/apps/

cellchar.sp , demonstrates the use of the .MEASURE statement, the .DATA

statement, and the AUTOSTOP option in the characterization of a CMOS

inverter.Figure 19-7: and Figure 19-8: are identical except that their input signals

are complementary. The circuit in Figure 19-7: calculates the rise time and the

low-to-high propagation delay time. The circuit in Figure 19-8: calculates the

fall time and the high-to-low propagation delay time. When only one circuit is

used, CPU time increases because the analysis time increases to calculate both

rise and fall times.

Performing Cell Characterization Performing Data Driven Analysis

Star-Hspice Manual, Release 1998.2 19-

Figure 19-7: Cell Characterization Circuit 1

Figure 19-8: Cell Characterization Circuit 2

XINVH

VINH

XOUTL

XINVL

VINL

XOUTH

Performing Cell Characterization Performing Data Driven Analysis

Star-Hspice Manual, Release 1998.2 19-

Example Input Files

FILE: CELLCHAR.SP

.OPTIONS SPICE NOMOD AUTOSTOP

.PARAM TD=10N PW=50N TRR=5N TRF=5N VDD=5 LDEL=0 WDEL=

+ NVT=0.8 PVT=-0.8 DTEMP=0 FANOUT=

.GLOBAL VDD

  • — global supply name .TEMP 27

SUBCKT Definition

.SUBCKT INV IN OUT

M1 OUT IN VDD VDD P L=3U W=15U DTEMP=DTEMP

M2 OUT IN 0 0 N L=3U W=8U DTEMP=DTEMP

CL OUT 0 200E-15.

CI IN 0 50E-15.

.ENDS

SUBCKT Calls

XINVH 2 3 INV $—- INPUT START HIGH

XOUTL 3 4 INV M=FANOUT

XINVL 2030 INV $—- INPUT START LOW

XOUTH 30 40INV M=FANOUT

* — INPUT VOLTAGE SOURCES

VDD VDD 0 VDD

VINH 2 0 PULSE(VDD,0,TD,TRR,TRF,PW,200NS)

VINL 20 0 PULSE(0,VDD,TD,TRR,TRF,PW,200NS)

* — MEASURE STATEMENTS FOR RISE, FALL, AND PROPAGATION DELAYS

.MEAS RISETIME TRIG PAR('V(3) -0.1*VDD') VAL=0 RISE=

+ TARG PAR('V(3) -0.9*VDD') VAL=0 RISE=

.MEAS FALLTIME TRIG PAR('V(30)-0.9*VDD') VAL=0 FALL=

+ TARG PAR('V(30)-0.1*VDD') VAL=0 FALL=

.MEAS TPLH TRIG PAR('V(2) -0.5*VDD') VAL=0 FALL=

+ TARG PAR('V(3) -0.5*VDD') VAL=0 RISE=

.MEAS TPHL TRIG PAR('V(20)-0.5*VDD') VAL=0 RISE=

+ TARG PAR('V(30)-0.5*VDD') VAL=0 FALL=

* — ANALYSIS SPECIFICATION

.TRAN 1N 500N SWEEP DATA=DATNM

* — DATA STATEMENT SPECIFICATION

Performing Data Driven Analysis Performing Cell Characterization

19-14 Star-Hspice Manual, Release 1998.

.DATA DATNM

VDD TRR TRF FANOUT DTEMP NVT PVT LDEL WDEL

5.0 2N 2N 2 0 0.8 -0.8 0 0 $ TYPICAL

5.5 1N 1N 1 -80 0.6 -0.6 -0.2U 0.2U $ BEST

4.5 3N 3N 10 100 1.0 -1.0 +0.2U -0.2U $ WORST

5.0 2N 2N 2 0 1.0 -0.6 0 0 $ STRONG P,

WEAK N

5.0 2N 2N 2 0 0.6 -1.0 0 0 $ WEAK P,

STRONG N

5.0 2N 2N 4 0 0.8 -0.8 0 0 $ FANOUT=

5.0 2N 2N 8 0 0.8 -0.8 0 0 $ FANOUT=

.ENDDATA

Models

.MODEL N NMOS LEVEL=2 LDEL=LDEL WDEL=WDEL

+ VTO=NVT TOX =300 NSUB=1.34E16 UO=

+ LD=0.4U WD =0.6U UCRIT=4.876E4 UEXP=.

+ VMAX=10E4 NEFF=15 PHI=.71 PB=.

+ RS=10 RD =10 GAMMA=0.897 LAMBDA=0.

+ DELTA=2.31 NFS =6.1E11 CAPOP=

+ CJ=3.77E-4 CJSW=1.9E-10 MJ=.42 MJSW=.

.MODEL P PMOS LEVEL=2 LDEL=LDEL WDEL=WDEL

+ VTO=PVT TOX=300 NSUB=0.965E15 UO=

+ LD=0.5U WD=0.65U UCRIT=4.65E4 UEXP=.

+ VMAX=1E5 NEFF=10 PHI=.574 PB=.

+ RS=15 RD=15 GAMMA=0.2 LAMBDA=.

+ DELTA=2.486 NFS=5.2E11 CAPOP=

+ CJ=1.75E-4 CJSW=2.3E-10 MJ=.42 MJSW=.

.END

A sample of measure statements is printed:

*** MEASURE STATEMENT RESULTS FROM THE FIRST ITERATION ($

TYPICAL)

RISETIME = 3.3551E-09 TARG= 1.5027E-08 TRIG= 1.1672E-

FALLTIME = 2.8802E-09 TARG= 1.4583E-08 TRIG= 1.1702E-

TPLH = 1.8537E-09 TARG= 1.2854E-08 TRIG= 1.1000E-

TPHL = 1.8137E-09 TARG= 1.2814E-08 TRIG= 1.1000E-

Performing Data Driven Analysis Performing Cell Characterization

19-16 Star-Hspice Manual, Release 1998.

Figure 19-9: Plotting the Simulation Outputs

Performing Cell Characterization Performing Data Driven Analysis

Star-Hspice Manual, Release 1998.2 19-

Figure 19-10: Verifying the Measure Statement Results by the Plots

Performing Cell Characterization Using Digital File Input Stimuli

Star-Hspice Manual, Release 1998.2 19-

Replacing Sources With Digital Inputs

Figure 19-12: Digital File Signal Correspondence

1 2 3 4 5 0 1:1 0:2 0:3 0:4 0: 75 0: 150 1:1 1:2 1: 225 0: 300 1:1 0:2 0:3 1:4 1: 375 0: 450 1:1 1:2 1: 525 0: 600 1:1 0:2 0:3 0:4 0:

V1 carry-in gnd PWL(0NS,lo 1NS,hi 7.5NS,hi 8.5NS,lo 15NS lo R V2 A[0] gnd PWL (0NS,hi 1NS,lo 15.0NS,lo 16.0NS,hi 30NS hi R V3 A[1] gnd PWL (0NS,hi 1NS,lo 15.0NS,lo 16.0NS,hi 30NS hi R V4 B[0] gnd PWL (0NS,hi 1NS,lo 30.0NS,lo 31.0NS,hi 60NS hi V5 B[1] gnd PWL (0NS,hi 1NS,lo 30.0NS,lo 31.0NS,hi 60NS hi

UC carry-in VLD2A VHD2A D2A SIGNAME=1 IS= UA[0] A[0] VLD2A VHD2A D2A SIGNAME=2 IS= UA[1] A[1] VLD2A VHD2A D2A SIGNAME=3 IS= UB[0] B[0] VLD2A VHD2A D2A SIGNAME=4 IS= UB[1] B[1] VLD2A VHD2A D2A SIGNAME=5 IS=

... Digital Stimuli file .d2a

Traditional voltage pulse sources become ...

... D2A drivers that get their input from ...

Signalname list

Time (in model time units) Statechange : Signal list

Using Digital File Input Stimuli Performing Cell Characterization

19-20 Star-Hspice Manual, Release 1998.

Example

.model d2a u level=5 timestep=0.1ns,

  • s0name=0 s0tsw=1ns s0rlo = 15, s0rhi = 10k,
  • s2name=x s2tsw=5ns s2rlo = 1k, s2rhi = 1k
  • s3name=z s3tsw=5ns s3rlo = 1meg,s3rhi = 1meg
  • s4name=1 s4tsw=1ns s4rlo = 10k, s4rhi = 60 vld2a vld2a 0 dc lo vhd2a vhd2a 0 dc hi