Problemresearch
Test wrapper and test access mechanism design
Also called TAM optimization, SoC test scheduling, IEEE 1500 wrapper design.
Design core test wrappers, divide the test access width among cores and schedule their tests so the total test time of a system on chip is least.
A system on chip is built from cores, such as processors, memories and interfaces, often designed by different teams, each with its own test patterns. To test a core inside the chip, its pins are surrounded by a wrapper of scan cells, as in boundary scan, and the wrapper is fed through a test access mechanism (TAM), a set of wires from the chip pins to the cores. The chip has only TAM wires, so three questions must be answered together: how wide a TAM each core gets, how each wrapper turns that width into scan chains, and in what order the cores are tested. The goal is the least total test time. Iyengar, Chakrabarty and Marinissen (2002) stated the problem in this joint form. Even its smallest part, the design of one wrapper, contains the partition problem, so the problem is NP-hard.
In plain words
A chip is made of many blocks, and each block comes with its own tests. The chip has a fixed number of test wires, and each block can be tested faster when it gets more wires, because its test data then flows in more parallel lanes.
We must decide how many wires each block gets, how each block spreads its internal test chains over its wires, and which blocks share wires and so must wait for each other. The blocks that share a group of wires are tested one after another, and the groups run side by side. The chip is done when the slowest group is done. Choosing all of this to finish as early as possible is a packing puzzle.
Definition
A core. Core has internal scan chains of lengths , functional inputs, functional outputs, and test patterns. Each input and each output gets one wrapper cell.
A wrapper of width . The wrapper builds wrapper chains. Each internal chain is placed whole in one wrapper chain, and the input cells and output cells are spread over the chains. The scan-in length is the longest wrapper chain counting chains and input cells, and the scan-out length is the longest counting chains and output cells. A pattern is shifted in while the previous response is shifted out, so the core needs cycles for the first load, capture cycles, overlapped shifts of cycles and cycles for the last unload, which adds up to
The wrapper design problem is to choose the wrapper chains that make least for a given . Since extra wires may stay unused, the best never increases with , and it falls in steps.
The TAM. In the test bus form, the wires are split into buses of widths . Each core is assigned to one bus and uses its full width, the cores on one bus are tested one after another, and all buses run at once. The test time of the chip is
and the problem is to choose , the widths, the assignment and the wrappers so that is least.
Hardness. Wrapper design alone is NP-hard. Take a core with chains , no functional inputs or outputs, one pattern and . Then , the larger of the two chain sums, and . So exactly when the chains split into two groups of equal sum, which is the partition problem. With as part of the input the same argument gives 3-partition, so wrapper design is NP-hard in the strong sense. The assignment of cores to buses is NP-hard too, even when the wrappers are fixed: with two buses of equal width and core times that do not depend on the width, it is again the partition problem.
Variants
- Fixed or flexible width. In the test bus form a core uses one bus for its whole test. In the flexible form, each core gets any width for a time interval, and the schedule is a packing of rectangles of width and height into a strip of width , a strip packing problem in which each item has a choice of shapes.
- Daisy chains. In the TestRail form, the cores on one TAM are chained in series and can be bypassed one at a time, so the shift length depends on which cores are tested together.
- Power and conflicts. Testing two cores at once adds their power, so a schedule may have a power limit, and cores that share a resource, such as a memory and its BIST engine, cannot be tested together.
- Compression inside the core. With broadcast scan or embedded deterministic test inside a core, a few TAM wires feed many internal chains, and depends on the compression ratio as well as the width.
- Hierarchy. A core may contain cores of its own, with wrappers inside wrappers, as IEEE 1500 allows.
- Wrapper standard. IEEE Std 1500 fixes the wrapper cells, a serial port and an instruction register, and leaves the parallel TAM and its width to the designer, which is the part optimized here.
Examples
Take three cores and wires.
| core | internal chains | inputs | outputs | patterns |
|---|---|---|---|---|
| A | 32, 24, 16, 8, 8 | 10 | 6 | 50 |
| B | 20, 20, 20 | 4 | 4 | 100 |
| C | none | 12 | 8 | 200 |
The best wrapper at each width gives these test times.
| width | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|
| A | 5044 | 2548 | 1732 | 1682 | 1682 | 1682 |
| B | 6564 | 4140 | 2322 | 2120 | 2120 | 2120 |
| C | 2608 | 1404 | 1003 | 802 | 802 | 602 |
At width 1, core A has one chain of cells in and out, so . At width 2 the chains split 48 and 40, the inputs fill them to 49 and 49, the outputs to 48 and 46, and . From width 4 on, the chain of 32 cells sets , and more wires do not help core A: .
| buses | assignment | test time |
|---|---|---|
| one bus of 6 | A, B, C in series | 1682 + 2120 + 602 = 4404 |
| 4 + 2 | B, C on 4; A on 2 | max(2120 + 802, 2548) = 2922 |
| 3 + 3 | A, C on one; B on the other | max(1732 + 1003, 2322) = 2735 |
| 1 + 2 + 3 | C on 1; A on 2; B on 3 | max(2608, 2548, 2322) = 2608 |
The last line is the best over all bus splits of 6 wires and all assignments. It gives core C a single wire: C has the shortest test at width 1, so it can afford the narrowest bus, and the wider buses go to the cores that need them. A lower bound comes from area: core uses at least wire-cycles, which is 5044 for A, 6564 for B and 2608 for C, so .
Known algorithms
- Longest processing time first and first fit decreasing, for the wrapper chains
- List scheduling, for cores on buses and for rectangle schedules
- Mixed integer programming, for assignment and widths
- Simulated annealing and genetic algorithms, for the joint problem
- Branch and bound, exact for small instances
Bounds
- NP-hard. Wrapper design is strongly NP-hard and the assignment of cores to buses is NP-hard, as shown in the definition, so the joint problem is too.
- Lower bounds. , since no core can use more than all the wires, and , since the buses hold at most wire-cycles per cycle.
- Per-core bound. , and the same for with , so the longest internal chain limits the gain from width. Splitting long internal chains, when the core designer allows it, removes this floor.
Reductions
- The partition problem and 3-partition reduce to wrapper design, as shown in the definition.
- With all bus widths equal and core times fixed, core assignment is makespan minimization on identical machines.
- The flexible form is strip packing where each item is one of several rectangles, and a fixed choice of widths makes it rectangle packing into a strip.
- For a core with no functional inputs or outputs, deciding whether a wrapper of width reaches is bin packing: can the chains be packed into bins of size ?
Applications
- Core-based chips. Chips that combine many reused cores plan their test with wrappers and a TAM, so each core keeps its own patterns and the chip test is a schedule of them.
- Test cost. Tester time is a large part of the cost of a chip, and the chip-level schedule decides it once the core patterns are fixed.
- Pin-limited test. Chips tested with few pins, as in wafer test with low-cost probe cards, have a small , and the width split matters most there.
- Chiplets and 3D stacks. Dies stacked or placed side by side in one package need a similar access plan across dies, with a few wires shared by many dies.
References
- Vikram Iyengar, Krishnendu Chakrabarty and Erik Jan Marinissen, Test wrapper and test access mechanism co-optimization for system-on-chip, Journal of Electronic Testing, Theory and Applications 18(2), 213 to 230, 2002, the test time of a wrapped core, the wrapper design problem and its NP-hardness, and the joint choice of TAM partition, core assignment and wrapper widths
- IEEE Standard Testability Method for Embedded Core-based Integrated Circuits, IEEE Std 1500-2005, the core wrapper, its boundary register, the wrapper instruction register and the serial and parallel test ports
- Laung-Terng Wang, Cheng-Wen Wu and Xiaoqing Wen, VLSI Test Principles and Architectures, Morgan Kaufmann, 2006, the chapter on system-on-chip test (wrappers, test access mechanisms and test scheduling)
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 54JWX9 Edit this page History Report an error Markdown