- Research
- Open Access
- Published:

# A new test set compression scheme for circular scan

*EURASIP Journal on Embedded Systems*
**volumeÂ 2018**, ArticleÂ number:Â 1 (2018)

## Abstract

A new test data compression scheme for circular scan is proposed in this paper. For circular scan, the response of the previous test vector is used as the next test vectorâ€™s template, and only the conflicting bits between the previous response and the next vector are required to be updated. To reduce the test data volume and test application time, the problem addressed here is minimizing the number of conflicting bits by optimally reordering test vectors. Each vector represents a city, and the number of conflicting bits between two test vectors is regarded as the distance between them. Thus, the problem corresponds to the travelling salesman problem (TSP), which is NP-complete. The genetic algorithm is used to solve this problem. The experimental results show that the proposed scheme could reduce the test data volume efficiently without any additional hardware cost.

## 1 Introduction

The large size of test data volume is one of the major challenges for complex circuits, and the problem is aggravated by the scale increasing [1]. Continued advances in process technology have led to a relentless increase in the design complexity of integrated circuits (ICs). Besides the increased density, the need to test new types of defects in nanometer technologies also results in a tremendous increase in the test data volume and test application time [2, 3]. High-test data volume may exceed the limited memory depth of the automatic test equipment (ATE).

One of the most effective schemes for reducing test data volume is test data compression, where test data provided by the vendor are stored in the memory of a tester, and an on-chip decoder is used to apply the corresponding test vectors to circuits under test (CUT). Many test compression schemes have been proposed in recent decades, and they can be classified into three categories: code-based compression scheme [4, 5], linear decompression-based scheme [6, 7], and broadcast-scan-based scheme [8, 9]. Code-based compression schemes encode for pre-computed test data; linear decompression-based schemes use a linear decompression module to apply test data to CUTs; and broadcast-scan-based schemes broadcast identical test data to multiple scan cells at the same time. These test compression schemes are all based on the conventional scan architecture.

Circular scan architecture (CSA) [10] is another effective design for testing (DFT) architecture, and it has a comparable hardware with a conventional scan. The affirmative attribute of the CSA is that the response of previous test patterns could be used as the next patternâ€™s template, which makes test data compression easier.

The circular scan scheme was first proposed in paper [10] as a BIST scheme without using any storage. Then, several schemes for reducing the test cost were proposed, and they can be classified into two types: *self-testing using circular scan* [10,11,12,13] and *determining-testing using circular scan* [14,15,16,17].

For self-testing using circular scan, circular scan serves as the test pattern generator and the test response compactor. It operates random testing for sequential logic circuits, where parts of flip-flops are selected as the scan cells. In determining-testing using circular scan, circular scan is used as a DFT architecture, and the pre-computed test data can be easily applied to it. Paper [14] first used circular scan to determine the test architecture, where the previously captured response was used as the next test pattern template, and the captured response can be fully observed without any fault coverage loss. To reduce the test data volume further, many works have been proposed to optimize the CSA.

Papers [14, 15] addressed the conflicting bits between the template and test pattern. Paper [16] proposed a modified circular scan where multiple circular scan chains are used to test circuits under testing (CUT). Paper [17] proposed a new test compression scheme based on circular scan, where multiple conflicting bits are updated through inputs of the scan chains that use a multiple-hot decoder.

The key point of determining circular scanâ€™s compression is minimizing the number of conflicting bits between the template pattern and the real test pattern. To reduce test data volume, this paper proposes a new test vector reordering scheme where the minimizing problem can establish the corresponding travelling salesman problem (TSP), which is NP-complete. We use the genetic algorithm to solve this problem.

## 2 The conflicting bit minimization for circular scan

FigureÂ 1 shows the architecture of the circular scan [15]. As shown in the figure, the previous captured response is a template of the next pattern, and the content of scan cells could be updated by multiple rotations of scan chains. To reduce the test application time, the multiplexer-based decoder is used to change the test data concurrently. *One-bit-update mode* and *broadcast mode* are designed to load the next determined test pattern to reduce test data volume. The fewer bits there are that need to be updated, the smaller the test data volume is. So, the critical problem of the circular scan is minimizing the number of conflicting bits between the template and the real test pattern.

FigureÂ 2 gives an example of an application of the circular scan. As shown in the figure, three scan chains with eight scan cells each are contained in the example circuit under test (CUT). The corresponding test set is given in TableÂ 1. There are five test patterns denoted as *V*1, *V*2, *V*3, *V*4, and *V*5. The corresponding responses represented as *R*1, *R*2, *R*3, *R*4, and *R*5 are also given in the table. To achieve the test mode of circular scan, in that the previous response is used as the next patternâ€™s template, the conflicting bits between them should be updated. If *V*2 is the first test vector applied, then the corresponding response *R*2, *V*3 is used. The number of conflicting bits between *R*2 and *V*3 that are computed for their hamming distance is 13 bits. On the other hand, if *V*3 is used first, followed by *V*2, then only 10 conflicting bits need to be updated. To reduce test data volume, the conflicting bits should be minimized.

To solve this problem, the test set weight matrix and the corresponding weight illustration for TableÂ 1 are given in Fig.Â 3a, b, respectively. As shown in Fig.Â 3b, each vertex represents a test pattern, and the number of conflicting bits between the response of *vi* and the pattern of *vj* that was computed as the hamming distance between the two is denoted as the weight of the edge. It is obviously a directed graph. Different orders of the test patterns will result in a different number of conflicting bits. For example, the order of *V*1, *V*2, *V*3, *V*4, and *V*5 has the number of conflicting bits *W*12â€‰+â€‰*W*23â€‰+â€‰*W*34â€‰+â€‰*W*45â€‰=â€‰8â€‰+â€‰13â€‰+â€‰5â€‰+â€‰9â€‰=â€‰35, where *Wij* denotes the weight of the two vertexes of *i* and *j*. The order of *V*2, *V*1, *V*5, *V*4, and *V*3 gains the number of conflicting bits as *W*21â€‰+â€‰*W*15â€‰+â€‰*W*54â€‰+â€‰*W*43â€‰=â€‰8â€‰+â€‰6â€‰+â€‰12â€‰+â€‰5â€‰=â€‰31, which has a smaller number of conflicting bits. The order of the test patterns influences the number of conflicting bits that need to be updated, and that number should be minimized.

The problem is an *NP*-complete problem in reality. Note: Let the number of test patterns be *n*. The weights of each of the two patterns are easily obtained by computing their hamming distance, and the weights of two vertexes of *Vi* and *Vj* are denoted as *Wij* and *Wji*, respectively. The problem is finding the shortest path that passes through every vertex once and only once. So, the problem can be transformed and formally stated as follows.

### 2.1 Problem 1

Given a directed graph with *n* vertexes, the distance between each of the two vertexes can be computed. Find the shortest path traveling across each vertex once and only once.

Problem 1 is equivalent to the well-known travelling salesman problem (TSP) [18], which is NP-complete, where the vertexes stand for towns and the number of conflicting bits between every two vertexes represents the distance between two towns.

To solve the problem of the conflicting bits minimizing problem, which is NP-completed, the genetic algorithm (GA) is used in the paper. The GA is one of the mature techniques for solving the TSP problem. The objective of the GA is to determine the surviving individuals, the reproducing individuals, and the ones that died. GALIB [19] is an effective genetic tool to solve several NP-completed problems, specifically the ones corresponding to the TSP. GALIB was selected for solving the conflicting bits minimizing problem in the paper. The result of the example in Fig.Â 3a and TableÂ 1 using GALIB is given in Fig.Â 3c. The optimizing order of the five vectors is *v*2â€‰â†’â€‰*v*5Â â†’â€‰*v*3Â â†’â€‰*v*1Â â†’â€‰*v*4, and the number of corresponding conflicting bits that need to be updated is 21 bits. Compared to that of the primary order *v*1Â â†’â€‰*v*2Â â†’â€‰*v*3Â â†’â€‰*v*4Â â†’â€‰*v*5 of 35 bits, 14 bits are reduced.

## 3 Experimental results

Five of the largest ISCASâ€™89 circuits and ITCâ€™99 circuits are used in the experiments. The Atalanta [20] tool is used to generate the test sets. The TSP solver [19] is used to minimize the conflicting bits for the circular scan. The experimental results are given in TablesÂ 2, 3, and 4.

TableÂ 2 shows the test volume compression ratio comparison with related schemes. The compression ratio is computed as CRâ€‰=â€‰(*T*_{D}âˆ’*T*_{E})/*T*_{D}, where *T*_{D} is the test data volume of the primary test sets and *T*_{E} is the test data volume of the compressed test sets. The first and second columns denote the names of the circuits and the numbers of the flip-flops. The number of scan chains is represented as #SC. The compression ratio of the proposed scheme is expressed as *Pro*. As shown in TableÂ 2, for different scan chains #*SC*â€‰=â€‰64, #*SC*â€‰=â€‰128, and #*SC*â€‰=â€‰256, the proposed scheme minimizing the conflicting bits that need to be updated achieves a better compression ratio in all cases.

The test application time comparison is given in TableÂ 3. The first and second columns also represent the circuit names and the number of flip-flops, while #*SC* is the number of scan chains. Paper [16] proposed a scan input selection unit that updates conflicting bits internally and eliminates loading conflicting bits from ATE, so only the test data volume is reduced, and it has the same test application time as paper [14]. Thus, the test application time of paper [14] and paper [17] are compared with our method. As shown in the table, because the number of test data that needed to be updated was reduced, the test application time was also reduced compared with the other related solutions, in all cases.

Except the comparison with other related works using the five biggest ISCASâ€™89 benchmark circuits. We also gathered experimental results on ITCâ€™99 circuits. The results are given in TableÂ 4. As shown in the table, the first and second columns are the circuits and the number of flip-flops, CR represents test compression ratio, and TT is the test application time. *Ord* is the test patterns generated by the ATPG (automatic test pattern generation) tool of Atalanta [20] before using the proposed scheme, and *Pro* is the new test patterns with new orders that under the proposed optimized schemes. Because the proposed scheme reordered test patterns which made the number of conflicting bits minimized, it achieves better test compression ratios and test application times in all cases.

From these tables, we could see that through the proposed scheme, the number of conflicting bits needed to be updated was minimized, so the corresponding test data volume and test application time were both reduced in all cases.

Furthermore, we could also see that the compression ratio and the test application time reduction were different for different circuits. This is because for different circuits, the corresponding test set has different 0, 1, and X (denotes the do not care bits that can be set as 0 or 1) distributions. For those circuits with more Xs and more compatible bits (two bits have identical data or one of X), the corresponding number of conflicting bits is smaller, so the bits that need to be updated are fewer, which would reduce the test data volume and test application time. On the other hand, for those circuits with very few Xs and compatible bits, more data bits need to be updated, and the corresponding data volume and test application time reduction achieved were less.

For example, for the circuit S35932, the corresponding conflicting bits between the previous response and next pattern are more, so the test data volume and test application time reductions are both smaller compared with other circuits. Nevertheless, the circuit of 13,207 has more Xs, and the number of conflicting bits is very small, so it attained a higher reduction in test data volume and test application time.

## 4 Conclusions

To reduce the test data volume and test application time, this paper proposes a new test data compression scheme for circular scan, where the response of the previous pattern is used as the next patternâ€™s template. To reduce the conflicting bits that needed to be updated, the conflicting bit minimization problem can establish the correspondence with the travelling salesman problem, which is NP-complete. The genetic algorithm is used to solve this problem in this paper. The experimental results show that the average compression ratio is improved about 3.97% compared with paper [17], improved about 34.28% compared with paper [16], and improved about 42.51% compared with paper [14]. For circuit of S13207 in the case of #SCâ€‰=â€‰256, the compression ratio is as high as 81.4. We could see that the proposed scheme could efficiently reduce test data volume and test application time for circular scan.

## References

Filipek, M, et al. (2015). Low-power programmable PRPG with test compression capabilities.

*IEEE Trans. Comput. Aided Design Integr. Circuits Syst.*,*23*, 1063â€“1076.Lee, DH, & Han, TH (2014). An improvement technique for the test compression ratio and application time of multiple expansion scan chain based SoC using new cost function. In

*IEEE 57th International Midwest Symposium on Circuits and Systems: 3â€“6, Aug*, (pp. 129â€“132). College Station: IEEE.Li, Z, Jonathon, EC, Pagalone, V, Narayanun, K, Chakrabarty, K (2017). Test-cost optimization in a scan-compression architecture using support-vector regression. In

*IEEE 35th VLSI Test Symposium, Las 18 Ma*, (pp. 1â€“6). Vegas: IEEE.Kavousianos, X, Kalligeros, E, Nikolos, D. (2008). Multilevel-Huffman test-data compression for IP cores with multiple scan chains.

*IEEE Trans. Very Large Scale Integr. (VLSI) Syst.*,*16*, 926â€“931.Muthyala, SS, & Touba, NA (2012). Improving test compression by retaining non-pivot free variables in sequential linear decompressors. In

*IEEE International Test Conferenc, 5â€“8, Nov*, (pp. 1â€“7). Anaheim; New York: IEEE.Lee, T, Toub, NA, Yang, J-S. (2017). Enhancing test compression with dependency analysis for multiple expansion ratios.

*IEEE Trans. Very Large Scale Integr. (VLSI) Syst.*,*36*, 1571â€“1579.Jia Li, Yu Huang, Dong Xiang, Prediction of compression bound and optimization of compression architecture for linear decompression-based schemes. IEEE 29th VLSI Test Symposium, May 2011, Dana Point: IEEE. pp. 297â€“302.

Chen, J-Z, & Lee, K-J. (2017). Test stimulus compression based on broadcast scan with one single input.

*IEEE Trans. Comput. Aided Design Integr. Circuits Syst.*,*36*, 184â€“197.Banerjee, S, Mathew, J, Pradhan, DK, Mohanty, SP (2010). Layout-aware Illinois scan design for high fault coverage. In

*International symposium on quality electronic design: 22â€“24 Mar*, (pp. 683â€“687). San Jose: IEEE.Pradhan, MM, Brien, EJO, Lam, SL, Beausang, J (1988). Circular BIST with partial scan. In

*International Test Conference*, (pp. 719â€“729). Washington, DC: IEEE Piscataway, NJ, United States.Krasniewski, A, & Pilarsk, S. (1989). Circular self-test path: a low-cost BIST technique for VLSI circuits.

*IEEE Trans. Comput. Aided Des. Integr. Circuits Syst.*,*8*, 46â€“54.Krasniewski, A, & Pilarski, S (1987). Circular self-test path: a low-cost BIST technique. In

*Proc. IEEE Des, Auto. Conf.*, (pp. 407â€“415). Miami Beach: EEE New York, NY, USA.Touba, NA. (2002). Circular BIST with state skipping.

*IEEE Trans. Very Large Scale Integr. (VLSI) Syst.*,*10*, 668â€“672.Arslan, B, & Orailoglu, A (2004). Circular Scan: A scan architecture for test cost reduction. In

*Design, automation and test in Europe conference and exhibition*, (pp. 1290â€“1295). Paris: IEEE.Arslan, B, & Orailoglu, A (2004). Design space exploration for aggressive test cost reduction in circular scan architectures. In

*International Conference on Computer-Aided Design*, (pp. 726â€“731). San Jose: Institute of Electrical and Electronics Engineers Inc (IEEE).Azimopour, M, Eshghi, M, Khademzadh, A (2007). A modification to circular-scan architecture to improve test data compression. In

*International conference on advanced computing and communications*, (pp. 27â€“32). Guwahati: Institute of Electrical and Electronics Engineers Inc.Azimipour, M, Fathiyan, A, Eshghi, M (2008). A parallel circular-scan architecture using multiple-hot decorder. In

*15th International Conference on Mixed Design*, (pp. 475â€“480). Poznan: Inst. of Elec. and Elec. Eng. Computer Society.Lawler, EL, Lenstra, JK, RinnooyKan, AHG, Shmoys, DB (1985).

*The traveling salesman problem*. Chichester: Wiley.A C++ genetic algorithm library: http://lancet.mit.edu/galib-2.4/, 2018.2.

Lee, HK, & Ha, DS (1993).

*Atalanta: an efficient ATPG for combinational circuits, technical report*. Blacksburg, Virginia: Depâ€™t of Electrical Eng., Virginia Polytechnic Institute and State University.

### Funding

The research work was supported by the Natural Science Foundation of China (no. 61472123), the Scientific Research Project of Hubei Province Department of Education (no. D20174501), and the Outstanding Youth Science and Technology Innovation Team Project of Hubei Polytechnic University (no. 13xtz10).

### Availability of data and materials

Data sharing is not applicable to this article as no datasets were generated or analyzed during the current study.

## Author information

### Authors and Affiliations

### Contributions

Author LZ gave the idea of the paper and made experiments with author JM and author BY. All the authors had taken part in the manuscript written. All authors read and approved the final manuscript.

### Corresponding author

## Ethics declarations

### Ethics approval and consent to participate

Not applicable

### Consent for publication

Not applicable

### Competing interests

The authors declare that they have no competing interests.

### Publisherâ€™s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Rights and permissions

**Open Access** This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

## About this article

### Cite this article

Zhang, L., Mei, J. & Yan, B. A new test set compression scheme for circular scan.
*J Embedded Systems* **2018**, 1 (2018). https://doi.org/10.1186/s13639-018-0085-2

Received:

Accepted:

Published:

DOI: https://doi.org/10.1186/s13639-018-0085-2

### Keywords

- Built-in self-test (BIST)
- Test application time
- Fault coverage