Algorithm Search⌘K

Techniqueresearch

Cell-aware test

Also called cell-internal fault test, CAT.

Hapke and coauthors' method that simulates defects inside each library cell at transistor level and targets the resulting cell-input patterns in ATPG.

Cell-aware test is a way to make test patterns for defects inside the library cells of a chip, such as a short between two internal nodes of an AOI gate, which the stuck-at fault model on cell pins does not describe. For every cell of the library it lists the possible opens and shorts in the cell layout, simulates each defective cell at transistor level for every input pattern, and records in a defect detection matrix which cell-input patterns make the output wrong. ATPG then gets, for every instance of the cell, the target "apply one of these patterns at the cell inputs and propagate the output error". Hapke and coauthors introduced the method in 2009. This page proves when such a target is detected and when a stuck-at test already detects it, proves that a logic-level transistor model cannot fill the matrix by itself, and shows a short in an AOI22 cell that a complete stuck-at test can miss.

In plain words

A stuck-at test checks the wires between cells. Many real defects sit inside a cell: an extra piece of metal shorts two internal nodes, or a contact is missing and a transistor never turns on. Such a defect can make the cell wrong for only one or two of its input patterns, and a stuck-at test set may never apply those patterns to that cell.

Cell-aware test does the work cell by cell, once per library. It asks a circuit simulator: with this defect, for which input patterns is the output wrong? The answer is a short list of patterns per defect. Test generation then makes sure that each cell in the chip gets one of those patterns, and that the wrong output reaches a scan cell or an output pin.

When it applies

  • Scan-based test of standard-cell designs, where the combinational logic between scan cells is built from library cells and ATPG controls the cell inputs.
  • The layout of every cell is available, so the candidate defects can be extracted from it, and a transistor-level circuit simulator is available for the characterization.
  • The defect effect stays inside one cell: it changes the output of the cell but not the nets that drive its inputs. A short from a cell input to another net breaks this, and is a bridging fault between nets instead.
  • High quality targets, such as automotive parts, where defects that escape stuck-at and transition tests matter.

The template

Write a cell with inputs x1,…,xkx_1, \dots, x_k, output oo and good function yy. For a test vector vv of the circuit, p(v)∈{0,1}kp(v) \in \{0,1\}^k is the pattern that vv puts on the inputs of one cell instance. For a defect δ\delta of the cell, Dδ⊆{0,1}kD_\delta \subseteq \{0,1\}^k is its row of the defect detection matrix: the patterns pp for which the defective cell output reads ¬y(p)\lnot y(p).

  1. CELL-AWARE(L, C)
  2. 1for each cell type k of the library L
  3. 2extract the transistor netlist of k, with parasitics, from its layout
  4. 3list the candidate opens and shorts of k, each with a chosen resistance
  5. 4for each defect δ and each input pattern p of k
  6. 5simulate the defective cell at transistor level; put p in D_δ if the output reads the wrong value
  7. 6merge defects with equal rows; drop the rows that a pin stuck-at fault covers
  8. 7for each instance of a cell type k in the circuit C and each row D_δ that is left
  9. 8add the target: some p in D_δ at the instance inputs, with the output error propagated
  10. 9run ATPG and fault simulation on these targets together with the stuck-at faults

Lines L1 to L6 are the library characterization. They run once per library and per process, and their result is stored as a cell-aware fault model of each cell. Lines L7 to L9 run per design. The holes are the defect list and the resistances at line L3, the simulator and the pass threshold at line L5, and the ATPG at line L9. Two-cycle defects, such as opens that make the output float, get a matrix over pattern pairs (p1,p2)(p_1, p_2) instead of single patterns, applied as in launch-on-capture and launch-on-shift tests.

When a vector detects a cell-internal defect. Assume the circuit is combinational, the defect sits in one instance of a single-output cell, and it does not change the nets that drive the inputs of that instance. Then a vector vv detects δ\delta exactly when p(v)∈Dδp(v) \in D_\delta and vv detects the stuck-at fault oo stuck at ¬y(p(v))\lnot y(p(v)). Proof: the inputs of the instance are not in its own fanout cone, because a combinational circuit has no cycle, and the defect does not change them, so the defective circuit also puts p(v)p(v) on them. If p(v)∉Dδp(v) \notin D_\delta the cell output is right, every other gate computes what it computes in the good circuit, and the outputs agree. If p(v)∈Dδp(v) \in D_\delta the defective circuit under vv is the good circuit with oo forced to ¬y(p(v))\lnot y(p(v)), which is the circuit with that stuck-at fault, so the outputs differ exactly when vv detects it. So a cell-aware fault is a stuck-at fault on the cell output with a condition on the cell inputs, and line L8 is an ordinary ATPG target with extra input constraints.

When a stuck-at test already covers it. Let φ\varphi be a stuck-at fault on a pin of the same instance: on an input pin (the branch of the input net that enters this cell) or on oo. Let SφS_\varphi be the patterns pp for which the cell output with φ\varphi differs from y(p)y(p). If Sφ⊆DδS_\varphi \subseteq D_\delta, every test of φ\varphi detects δ\delta. Proof: the effect of φ\varphi is also confined to the cell output, so by the same argument, vv detects φ\varphi exactly when p(v)∈Sφp(v) \in S_\varphi and vv detects oo stuck at ¬y(p(v))\lnot y(p(v)). Then p(v)∈Dδp(v) \in D_\delta, and the condition above gives that vv detects δ\delta. This is the test at line L6. The converse does not hold: a row that contains no SφS_\varphi can still be detected by luck, but no stuck-at target forces it.

Why the matrix needs a circuit simulator. Model a static complementary CMOS cell at switch level: every transistor is an ideal switch, and for each input pattern exactly one of the pull-up and pull-down networks connects oo to its supply rail. An open removes a conducting path. A transistor that is always on, or a short between two nodes, adds a connection. Claim: for every pattern, the defective output is the good value, or Z (connected to no rail) for a defect that removes, or C (connected to both rails) for a defect that adds. Proof: removing connections cannot connect oo to the wrong rail, so it keeps the good value or loses both rails. Adding connections cannot disconnect oo from the right rail, so it keeps the good value or also reaches the wrong rail. In the C case the two rails are connected, so a quiescent supply current flows, which is what IDDQ testing measures. So no single defect of this kind gives a clean wrong logic value in the switch model. Whether a C entry reads 0 or 1 is decided by the resistances of the two paths, and a Z entry holds the charge of the previous pattern, so it needs a pattern pair. This is why line L5 uses transistor-level simulation, such as a SPICE run built on modified nodal analysis, and not a switch-level model.

Example: the NAND2 matrix at switch level. The NAND2 cell o=¬(AB)o = \lnot(AB) has PMOS transistors PAP_A and PBP_B in parallel from VDD to oo, and NMOS transistors NAN_A from oo to an internal node n1n_1 and NBN_B from n1n_1 to GND. With 4 opens, 4 stuck-on transistors and the 5 shorts between the nodes VDD, GND, oo and n1n_1 (all pairs except VDD with GND), the switch-level rows over the patterns AB=00,01,10,11AB = 00, 01, 10, 11 are:

defect 00 01 10 11
good cell 1 1 1 0
PAP_A open 1 Z 1 0
PBP_B open 1 1 Z 0
NAN_A open, NBN_B open 1 1 1 Z
PAP_A on, PBP_B on, short oo to VDD 1 1 1 C
NAN_A on, short oo to n1n_1 1 C 1 0
NBN_B on, short n1n_1 to GND 1 1 C 0
short oo to GND C C C 0
short n1n_1 to VDD 1 C 1 C

Every entry is good, Z or C, as the claim says. The defects on one line have equal rows and are merged at line L6. The PAP_A open gives the classic CMOS stuck-open fault: the pair (11,01)(11, 01) first sets o=0o = 0, then leaves oo floating at 0 where the good cell gives 1.

Example: one short, three behaviours. Resolve the short from oo to GND with a linear resistor model: a conducting PMOS has resistance RpR_p, the short has resistance RsR_s, and the output reads 0 below half the supply voltage. At pattern 00 both PMOS conduct and the output voltage is Rs/(Rs+Rp/2)R_s / (R_s + R_p/2) times the supply. At 01 and 10 one PMOS conducts and it is Rs/(Rs+Rp)R_s / (R_s + R_p). So the row is {00,01,10}\{00, 01, 10\} if Rs<Rp/2R_s < R_p/2, the same as the pin fault oo stuck-at 0. It is {01,10}\{01, 10\} if Rp/2<Rs<RpR_p/2 < R_s < R_p, which contains SA/1={01}S_{A/1} = \{01\}, so a test for AA stuck-at 1 covers it. And it is empty if Rs>RpR_s > R_p: the defect is invisible to a logic test, and only the extra supply current, or a slower transition, shows it. The same defect is three different faults depending on RsR_s and RpR_p, and these numbers are not known from the logic. RpR_p, RnR_n and RsR_s here are model parameters, not measured values.

Example: a short that a complete stuck-at test misses. The AOI22 cell o=¬(AB+CD)o = \lnot(AB + CD) has pull-down paths NAN_A, NBN_B through node n1n_1 and NCN_C, NDN_D through node n2n_2, and a pull-up of PA∥PBP_A \parallel P_B in series with PC∥PDP_C \parallel P_D. A short between n1n_1 and n2n_2 adds a connection, so its only non-good entries are C, and they are at the patterns where it closes a new path from oo to GND while the good output is 1: ABCD=0110ABCD = 0110 (through NCN_C, the short and NBN_B) and 10011001 (through NAN_A, the short and NDN_D). At 0110 the pull-up is PAP_A in series with PDP_D, so the output voltage is

2Rn+Rs2Rn+Rs+2Rp\frac{2R_n + R_s}{2R_n + R_s + 2R_p}

times the supply, and the output reads 0 exactly when Rs<2(Rp−Rn)R_s < 2(R_p - R_n). With Rp=2RnR_p = 2R_n, a typical textbook ratio for PMOS and NMOS of equal width, a short below 2Rn2R_n gives the row {0110,1001}\{0110, 1001\}. With a PMOS sized so that Rp=RnR_p = R_n, it never reads wrong, and only IDDQ or delay can show it. Now take the row {0110,1001}\{0110, 1001\}. Every pin set of the AOI22 has 3 or 9 or 7 patterns, so none fits inside it, and line L6 keeps it. The four patterns {0101,1010,1100,0011}\{0101, 1010, 1100, 0011\} meet every pin set of the cell (A/1A/1 and C/1C/1 by 0101, B/1B/1 and D/1D/1 by 1010, A/0A/0 and B/0B/0 by 1100, C/0C/0 and D/0D/0 by 0011, and the output faults by these too), so a stuck-at test set can detect all 10 pin faults of this instance while it puts only these four patterns on it. Such a test set never applies 0110 or 1001 to the cell, so it never detects the short, whatever RsR_s is. The cell-aware target at line L8 forces one of the two.

Counts in the toy model. These are computed with the linear resistor model above, not with a real library: Rn=1R_n = 1, Rp=2R_p = 2, Rs=1/1000R_s = 1/1000, threshold one half, and the same defect list (opens, stuck-on transistors, and shorts between every pair of nodes except VDD with GND). Of the 30 defects of the AOI22, 14 have a row that a pin fault covers, 4 have a non-empty row that no pin fault covers (the shorts n1n_1 to n2n_2, mm to n2n_2, oo to mm and VDD to mm, where mm is the node between the two PMOS pairs), 8 opens need a pattern pair, and the 4 PMOS stuck-on defects never read wrong and show only as supply current. With Rp=RnR_p = R_n instead, several entries sit exactly at the threshold, which a real flow resolves with a delay or voltage margin.

Cost. Line L5 runs 2k2^k static simulations per defect, or 22k2^{2k} pattern pairs for two-cycle defects, for each of the hundreds or thousands of cells of a library. This is expensive, but done once per library. Per design, the number of targets grows with the number of instances times the rows that remain after line L6, so cell-aware ATPG makes more patterns than stuck-at ATPG.

Classic examples

  • Hapke and coauthors (2009). The first cell-aware flow, with layout extraction, analog defect simulation and cell-aware ATPG, applied to a 65 nm library of about 1500 cells and to 10 designs.
  • Hapke and coauthors (2014). The journal account of the method, with cell-aware fault models generated for 1940 library cells and applied to industrial designs.
  • The CMOS stuck-open fault. Wadsack (1978) showed that an open transistor in a CMOS gate makes the output float for some patterns, so a single pattern cannot detect it. It is the classic example of a cell-internal defect that needs a two-pattern test.

Variations

  • Static and two-cycle faults. A static row lists single patterns. A two-cycle row lists pattern pairs, for opens and for resistive defects that only slow the cell, as with transition faults.
  • Applying every pattern at every cell. Without defect simulation, one can ask ATPG to apply all 2k2^k patterns at the inputs of every cell. This needs no layout, but makes many more targets than the rows that defects actually produce.
  • Layout-driven defect lists. The shorts at line L3 can be weighted by their critical area, so that likely defects count more in the coverage figure.
  • Diagnosis. The same matrices let diagnosis name a defect inside a cell, not only a failing cell pin.
  • Compared with N-detect. N-detect tests raise the chance of hitting unmodelled defects by detecting each stuck-at fault many times. Cell-aware test models the defects instead, at a characterization cost.

Pitfalls

  • The matrix depends on the resistances. As the examples show, the same short can be a stuck-at fault, a pattern-specific fault or a logically invisible one, depending on resistance values that are chosen, not measured. Report the values used.
  • Defects that change cell inputs. A short from a gate input of the cell to another node can disturb the cell that drives that input. The detection condition above then does not hold, and the defect needs a model across cells.
  • Multi-output cells and flip-flops. Full adders and sequential cells have more than one output or state, so a row must say which output is wrong, and the pin coverage test must compare the right outputs.
  • Pattern count. Cell-aware targets add patterns. Use dynamic test compaction and drop the rows that a pin fault covers before ATPG.

Exercises

  1. Build the switch-level matrix of an inverter with its 2 opens, 2 stuck-on transistors and 2 shorts (output to VDD and output to GND), and check the claim that every entry is good, Z or C.
  2. In the NAND2, find the pattern pairs that detect the NAN_A open, and explain why no single pattern detects it.
  3. For the AOI22 short between n1n_1 and n2n_2, compute the output voltage at 1001 and show that the condition for a wrong value is the same as at 0110.
  4. Prove that the row of the short from oo to GND in an AOI22 contains SφS_\varphi for the output fault oo stuck-at 0 when RsR_s is small enough, so that it is covered by a stuck-at test.

References

  1. F. Hapke and coauthors, Defect-oriented cell-aware ATPG and fault simulation for industrial cell libraries and designs, Proceedings of the IEEE International Test Conference, paper 1.2, 2009, the cell-aware flow (layout extraction, defect simulation of every cell at transistor level, the defect detection matrix, and cell-aware ATPG), applied to a 65 nm library of about 1500 cells and to 10 designs
  2. F. Hapke, W. Redemund, A. Glowatz, J. Rajski, M. Reese, M. Hustava, M. Keim, J. Schloeffel and A. Fast, Cell-aware test, IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 33(9), 1396 to 1409, 2014, the journal account of the method, with the cell-aware fault model generation for 1940 library cells and its use on several industrial designs
  3. R. L. Wadsack, Fault modeling and logic simulation of CMOS and MOS integrated circuits, Bell System Technical Journal 57(5), 1449 to 1474, 1978, the CMOS stuck-open fault, which makes a gate output float and needs a two-pattern test

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW3 standard
  • five exercises