29.03.2013 Views

Affirma Spectre DC Device Matching Analysis Tutorial - Cadence ...

Affirma Spectre DC Device Matching Analysis Tutorial - Cadence ...

Affirma Spectre DC Device Matching Analysis Tutorial - Cadence ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Affirma</strong> <strong>Spectre</strong> <strong>DC</strong> <strong>Device</strong> <strong>Matching</strong> <strong>Analysis</strong> <strong>Tutorial</strong><br />

200<br />

∂ ⎛ ⎛ p1 p2 ⎞⎞<br />

error = 2 yi ------------<br />

∂ p ∑ ⎜ – ⎜ + ------------- + p<br />

3<br />

W iL 2 3⎟⎟(<br />

– 1)<br />

=<br />

⎝ ⎝ i W iL ⎠⎠<br />

i = 1<br />

i<br />

The Equations (16), (17), and (18) can be rearranged in normal form as:<br />

∑<br />

∑<br />

∑<br />

1<br />

--------------<br />

2 2<br />

W i<br />

Li<br />

1<br />

--------------<br />

2 3<br />

W i<br />

Li<br />

1<br />

------------<br />

W iLi ∑<br />

∑<br />

∑<br />

1<br />

--------------<br />

2 3<br />

W i<br />

Li<br />

1<br />

--------------<br />

2 4<br />

W i<br />

Li<br />

1<br />

-------------<br />

2<br />

W iLi (EQ 18)<br />

(EQ 19)<br />

Assuming that the matrix in the Equation (19) is not singular, then (19) can be solved<br />

for p1, p2, and p3, using standard LU decomposition and backsubstitution. If the<br />

matrix is singular, then different method such as singular value decomposition can be<br />

used. The model parameters mvtwl, mvtwl2, and mvt0 are simply the square root of<br />

the p1, p2, and p3, respectively.<br />

As for illustration, we attach a sample C program here. The first half portion of the<br />

program is to cook up 200 sample data points of yi to mimic measurement data. We<br />

also create the right hand side vector rhs<br />

as in Equation (19). The last half portion<br />

creates the matrix, and calls dense matrix solver routines dgeco and dgesl from<br />

LINPACK (a popular dense matrix package) to obtain the fitted parameters. Upon<br />

executing the program, we got this result:<br />

model parameter mvtwl = 0.01<br />

model parameter mvtwl2 = 0.003<br />

model parameter mvt0 = 0<br />

∑<br />

∑<br />

1<br />

------------<br />

W iLi 1<br />

-------------<br />

2<br />

W iLi ∑1<br />

Release Date Back Page 21<br />

Close<br />

21<br />

p 1<br />

p 2<br />

p 3<br />

=<br />

∑<br />

∑<br />

yi ------------<br />

W iLi yi -------------<br />

2<br />

W iLi ∑ yi 0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!