550 likes | 916 Views
Scan Chain Reorder. Sying-Jyan Wang Department of Computer Science National Chung-Hsing University. Outline. Overview Scan chain order: does it matter? Cluster-based reordering for low-power BIST Experimental results Future work. Outline. ■ Overview Scan chain order: does it matter?
E N D
Scan Chain Reorder Sying-Jyan Wang Department of Computer Science National Chung-Hsing University NCHUCS
Outline • Overview • Scan chain order: does it matter? • Cluster-based reordering for low-power BIST • Experimental results • Future work NCHUCS
Outline ■Overview • Scan chain order: does it matter? • Cluster-based reordering for low-power BIST • Experimental results • Future work NCHUCS
Digital Testing • To detect manufacturing defects • Apply test patterns and observe output responses • Test patterns generated for targeted fault models NCHUCS
Scenario for Manufacture Test TEST VECTORS … MANUFACTURED CIRCUIT … CIRCUIT RESPONSE CORRECT RESPONSES COMPARATOR PASS/FAIL NCHUCS
Scan Test (1) • A structural design-for-testability technique • Storage elements are not directly accessible • Scan test provides an easy way for test access • Apply test patterns to circuit under test (CUT) • Read output responses from CUT NCHUCS
Scan Test (2) • Sequential circuit • FFs are neither controllable nor observable Combinational Logic Primary Input Primary Output F F NCHUCS
Scan Test (3) • Normal signal path: parallel load Combinational Logic Primary Input Primary Output F F NCHUCS
Scan Test (4) • In scan mode: a shift register Combinational Logic Primary Input Primary Output Scan out (SO) F F Scan in (SI) NCHUCS
Scan Test (5) • To enable scan test • Each scan cell has two inputs • Normal input • Scan input • All scan cells are connected into a shift register (scan chain) • Turn a sequential test into a combinational one • Apply test patterns directly • Observe test results directly NCHUCS
Scan Chain • Normally constructed when placement and routing are done • The order does not matter • Find out the shortest scan chain order • Traveling salesman problem (TSP) • Asymmetric TSP (ATSP) • SI and SO of a scan cell are not at the same location • NP-complete NCHUCS
Outline • Overview ■Scan chain order: does it matter? • Cluster-based reordering for low-power BIST • Experimental results • Future work NCHUCS
1 1 1 1 1 1 0 0 0 0 0 0 Scan Test for Stuck-at Faults • Order does not matter • As long as we can scan in test patterns and scan out test responses CUT 1010 1100 NCHUCS
Minimum Wirelength Routing • Use a TSP/ATSP solver • Slow • Wirelength can be 10x with random order NCHUCS
1 1 1 1 0 0 0 0 1010 1100 Low-Power Testing • A great concern in recent years • Need to reduce signal transitions • The source of dynamic power in CMOS • Usually the dominant factor • Reorder scan chain to reduce switching activity 1 transition only 3 transitions NCHUCS
Delay Testing (1) • Require two-pattern tests • First pattern: initialization • Second pattern: launch transition • Delay test with simple scan chain • Broadside • The output response of the 1st pattern are captured in the scan chain and become the 2nd pattern • Skewed load • The 2nd pattern is the result of 1-bit shift of the 1st pattern NCHUCS
Delay Test (2) • Broadside test • Eg. Apply v1=(1010), v2=(0100) Combinational Logic Primary Input Primary Output 0 1 0 0 F F 1 0 1 0 0 1 0 0 NCHUCS
1 1 1 1 0 0 0 0 1100 1010 0 1 1 0 Delay Test (3) • Skewed load • Not all test pairs possible • 2n2n possible 2-pattern combinations • Only 22n possible with single scan chain • Reorder scan chain to achieve higher fault coverage 0110 NOT POSSIBLE!! NCHUCS
Hold Time Violation • Not enough propagation delay between adjacent flip-flops in a sequential circuit • Double latching • Possible solution • Reorder scan cells to introduce extra delay NCHUCS
Outline • Overview • Scan chain order: does it matter? ■Cluster-based reordering for lower-power BIST • Experimental results • Future work NCHUCS
Overview • Goal: Reduce BIST power • Approach • Include a smoother to reduce switching activity in test pattern generator (TPG) • Use scan chain reordering to recover lost fault coverage • Simple reordering algorithm • Wirelength should not increase too much NCHUCS
Overall Architecture Single scan chain PRPG Smoother Internal scan chain ORA TPG CUT multiple scan chain P R P G P h a s e s h i f t e r Smoother Internal scan chain 1 O R A Smoother Internal scan chain 2 . . . . . . . . Smoother Internal scan chain k NCHUCS
. . . 1/1 1/0 Sn/2–1 Sn–1 1/1 1/0 0/1 1/1 0/0 1/0 . . . 0/1 1/1 0/0 1/0 0/1 0/0 1/0 1/1 Sn/2 S0 0/1 0/0 1/0 0/1 1/1 0/0 1/1 1/0 0/1 0/0 1/0 1/1 S1 S1 S3 S3 S5 S7 S4 0/1 0/0 1/0 1/1 S2 S6 0/0 S0 S0 S2 0/0 0/1 0/1 Smoother 4-state (2bit) smoother 8-state (3bit) smoother n-state smoother NCHUCS
u q C Divide-by-n/2 Up-Down Counter T in q d C0 A Simple Implementation of then-state smother NCHUCS
Estimation of Power Reduction • Probability of signal transition of an n-state smoother • Compute from Markov chain model • Estimation of dynamic power • 2-bit (4-state ) smoother: 1/3 • 3-bit (8-state) smoother: 1/10 NCHUCS
Reorder scan chain: Required test cube: xxxxx01xxxxxxxx xxxxx0x1xxxxxxx PRPG 2-bit smoother 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 3-bit smoother 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Fault Coverage • Smoothed patterns are less random • May create repeated patterns and reduce fault coverage • 1 0 1 0 1 0 1 0 0 1 0 1 1 0 0 MATCH 2-bit smoother NO MATCH! NCHUCS
Cluster-Based Scan Chain Reorder • Layout surface divided into clusters • Reorder limited in single cluster • Snake-like global routing Multiple scan chains Single scan chain NCHUCS
256 clusters Silicon Ensemble 1 cluster Example • Routing s15850 • 611 scan cells NCHUCS
Optimal Cluster Size • Is there an optimal cluster size? • Observation • Large clusters--long vertical connection • Small clusters--more horizontal crossings • How to find optimal cluster size • Find an expression of total wirelength • Take its derivative with respect to cluster size c NCHUCS
CL2 CL1 sc4 sc1 sc5 sc2 sc3 CL1 sc1 sc2 sc3 Estimate Wirelength in a Cluster (1) • Two types of order • Random order • Sorted according to x-cooridnate NCHUCS
w h (0,0) sc1(X1, Y1) sc2(X2, Y2) Estimate Wirelength in a Cluster (2) • How to estimate the distance between two cells • Manhattan distance • Horizontal and vertical distances are independent • Assuming cells are randomly distributed NCHUCS
Estimate Wirelength in a Cluster (3) • Expected vertical distance between two cells • Expected horizontal distance between two cells • Random order: w/3 • Sorted order • Summation of all horizontal distances: w NCHUCS
Estimate Wirelength in a Cluster (4) • Random order • N: # cells, c2: #clusters • Sorted order NCHUCS
Optimal Number of Clusters (1) • Random order • Assuming HW, N/c2 1 • Sorted order • Assuming HW, N/c2 3 NCHUCS
Optimal Number of Clusters (2) • Reordering algorithm • Larger clusters give better results • Almost no reordering when N/c2 1 • Choose sorted order if no special order is preferred • Optimal cluster size 2 N/c2 3 NCHUCS
Outline • Overview • Scan chain order: does it matter? • Cluster-based reordering for low-power BIST ■Experimental results • Future work NCHUCS
Experimental Results—Wire Length (1) • 2-bit smoother NCHUCS
Experimental Results—Wire Length (2) • 3-bit smoother NCHUCS
Experimental Results—Fault Coverage (1) • 2-bit smoother NCHUCS
Experimental Results—Fault Coverage (2) • 3-bit smoother NCHUCS
Optimal Number of Cells per Cluster SE: Silicon Ensemble NCHUCS
Test Efficienct NCHUCS
Comparison of Average Power *Full scan; : only state vectors are scanned NCHUCS
Peak Power • Capture-cycle power is not reduced • Still provide some improvement NCHUCS
Outline • Overview • Scan chain order: does it matter? • Cluster-based reordering for low-power BIST • Experimental results ■Future work NCHUCS
Conclusion • Scan chain reorder is very effect to deal with • Test power • Scan-based delay test • Fault coverage in BIST • Need to consider • Physical design infromation NCHUCS
Future Work • Fast reordering algorithm for delay test • Integrate reordering algorithm, considering • Test power • Delay test coverage • Wire length • Other issues NCHUCS
THE END Thank You! NCHUCS