Sie sind auf Seite 1von 6

World Applied Sciences Journal 32 (11): 2297-2302, 2014

ISSN 1818-4952
IDOSI Publications, 2014
DOI: 10.5829/idosi.wasj.2014.32.11.1341

Test Data Compression Using a New Scheme Based on Extended Variable Length Codes
1
J. Robert Theivadas and 2V. Ranganathan

1
Reserach Scholar, Anna University, Chennai 600025, India
2
Sree Sastha Institute of Engineering and Technology, Chennai 600123, India

Abstract: The need of testing large amount of data in large ICs has increased the time and memory requirement
by many folds. Several test data compression schemes have been proposed for reducing the test data volume.
In this paper, we propose a novel, lossless, time and memory minimizing test data compression scheme based
on the fixed to variable length coding with limited number of code words. In our scheme, we divide the test
vectors into fixed length blocks and then compress them into variable length codes. We use this extended
variable length codes algorithm to make changes in the test vectors and to increase the compression ratio. The
generation of good compression ratio through our scheme is proved by the experimental results for the ISCAS-
89 benchmark circuits and the compressed test data. In comparison to the previous test data techniques based
on variable length codes, the outcome of our method has a reasonable effect on compression.

Key words: Test data compression Variable length codes Compression ratio

INTRODUCTION the code word, Code based test data compression can be
classified into four categories. First category is fixed to
According to Moores law, the integration level of fixed, these codes encode fixed size blocks of data using
the microchips doubles every 18 to 24 months. As a smaller fixed size blocks of encoded data. The [14]
result, the volume of test data increases dramatically; the dictionary code is used for the fixed to fixed coding
test costs become higher; the contradiction between test scheme. Here the data transfer rate from the tester to
efficiency and test quality sharpens. The effective method decoder is constant.
to reduce test data volume is test data compression [1]. Second one is Fixed-to-Variable Codes; these codes
There are three type of test data compressions viz., encode fixed size blocks of data using a variable number
the Linear de-compression based schemes [4, 5], where of bits in the encoded data. The Huffman code [9-13] is
the de-compression of data is done using linear typically used for the fixed-to-variable coding scheme.
operations; the Broadcast scan based schemes [6, 7], Huffman code is used in many compression techniques,
where broadcast scan based scheme broadcasts the as it is one of the efficient codes for encoding the test
same values in multiple scan chain; and the Code based data. Selective Huffman codeword [15] adds symbols to
schemes [2, 3], where the code based schemes use data the Huffman tree (i.e.) addition of symbols with higher
compression codes to encode the test cubes. frequency. One of the advantage of using selective
Code-based scheme is widely used [8] in test data Huffman coding is, it is used to reduce the hardware
compression as it transfers the specified bit-strings in test overhead of Huffman FSM. And this method gives good
data into a segment of code word. A certain encoding result, but the hardware cost is high.
scheme is used to encode the original test set. The length Third one is Variable-to-Fixed Codes; these codes
of the encoded data is less than the original test set so encode a variable number of bits using fixed size blocks
that the test data can be reduced. of encoded data. The run length code [16] is used for
The test set is divided into sequences of specific variable-to-fixed coding scheme. The Almost
law, which can be replaced with new code word generated Instantaneous VF (AIVF) coding [18] is used to get good
by some kinds of coding method. According to the compression ratio. The Suffix Tree-based VF (STVF)
change rule of the length from the original sequence to coding [19] is used to get better compression ratio.

Corresponding Author: J. Robert Theivadas, Reserach Scholar, Anna University, Chennai 600025, India.
E-mail: roberttheivadas@gmail.com - drvrangan@gmail.com.
2297
World Appl. Sci. J., 32 (11): 2297-2302, 2014

Fourth one is Variable-to-Variable codes; these Rule 6: If the original test vector is 0101, then the
codes encode a variable number of bits using a variable compressed test vector is 001.
number of bits in the encoded data. The Golomb code [17] Rule 7: If the original test vector is 0110, then the
is used for variable-to-variable coding scheme. This compressed test vector is 010.
Golomb code achieves greater compression ratio and the Rule 8: If the original test vector is 0111, then the
overhead is small. In variable-to-variable code word one compressed test vector is 011.
of the difficulties is synchronizing the transfer of data Rule 9: If the original test vector is 1000, then the
from the tester. The other variable-to-variable coding compressed test vector is 100.
schemes are alternation and run length code [21], FDR Rule 10: If the original test vector is 1001, then the
code [20] and EFDR code [22]. compressed test vector is x1.
In this paper, one of the new techniques is used to Rule 11: If the original test vector is 1010, then the
compress the original test vectors. Here the original test compressed test vector is x0.
vectors are divided into fixed length blocks, which are Rule 12: If the original test vector is 1011, then the
then compressed into variable code words. The technique compressed test vector is 111.
used in this paper is called the Extended Variable Run Rule 13: If the original test vector is 1100, then the
Length Coding. Using this compression technique greater compressed test vector is 000.
compression will be achieved and decompression will be Rule 14: If the original test vector is 1101, then the
performed. In decompression, the variable length code compressed test vector is x01.
words are decompressed in to fixed length code words Rule 15: If the original test vector is 1110, then the
using FSM. compressed test vector is x10.
The organization of the paper is as follows - Section Rule 16: If the original test vector is 1111, then the
2 explains the algorithm, flowchart and an example of the
compressed test vector is 0.
proposed scheme; Section 3 explains the structure of the
de-compressor; Section 4 explains the experimental results
Step 5: Then the process is repeated and all the bits in
and analyzes of the compression ratio theoretically; and
the test vector is compressed.
Section 5 concludes the paper.
Step 6: If all the bits are compressed, the process stops
otherwise it repeats from step 3
Encoding Rule: In this paper, the new test vector
compression scheme is used, so that the number of test
Here it uses fixed to variable length coding with
vectors will be reduced. The encoding rule consists of
limited number of code words. This is one of the novel
various steps, which are explained below:
test data compression scheme. The following example
shows how the algorithm works. Take C432 circuit, the
Step 1: The input given is the original test vectors.
test vectors in C432 are divided into four bits. Some of the
Step 2: Divide the original test vectors into four bits.
Step 3: If all the bits in the original test vectors are test vectors from C432 are taken and explained below.
divided into four bits then the compression is
achieved using the compression rules. 110101010101010101010101010101000111
Step 4: The compression rules are given below: 100010001001011101110111011101110100.

Rule 1: If the original test vector is 0000, then the The above test vectors are the original test vectors
compressed test vector is 1. which are divided into four bits. The 1101 is compressed
Rule 2: If the original test vector is 0001, then the into x01, 0101 is compressed into 001, 0100 is compressed
compressed test vector is 01. into 00, 0111 is compressed into 011, 1000 is compressed
Rule 3: If the original test vector is 0010, then the into 100, 1001 is compressed into x1.
compressed test vector is 10.
Rule 4: If the original test vector is 0011, then the X01 001 001 001 001 001 001 00 011
compressed test vector is 11. 100 100 x1 011 011 011 011 011 00
Rule 5: If the original test vector is 0100, then the
compressed test vector is 00. Here the 72 bits are compressed into 51 bits.

2298
World Appl. Sci. J., 32 (11): 2297-2302, 2014

Table 1: Extended variable run length coding method


Run Length Test Data Codeword
0 0000 1
1 0001 01
2 0010 10 Fig. 2: Structure of the de-compressor.
3 0011 11
4 0100 00
5 0101 001
6 0110 010
7 0111 011
8 1000 100
9 1001 X1
10 1010 X0
11 1011 111
12 1100 000
13 1101 X01
14 1110 X10
15 1111 0

Fig. 3: Working diagram of Decompression FSM

Then the flow chart of the compression technique is


shown Figure 1.

Structure of Decompressor: After the compression


process, the test vectors must be de-compressed. Here
one of the new techniques is used to de-compress the test
vectors. And that technique consists of input which is the
compressed test vectors and it is given to the FSM. The
output obtained from the FSM is the original test vectors.
The block diagram and the working diagram of FSM
is shown Figure 2.
The working diagram of the FSM is shown Figure 3.
The working diagram of FSM is explained. Here 0 and
1 is considered when the given input 0 remains as such,
the output is 1111 and the given input 1 remains as 1, then
the decompressed value is 0000. Then the 0 to 1 transition
takes place, the 01 is decompressed to 0001 and when the
1 to 0 transition occurs, the 10 is decompressed to 0010.
Fig. 1: Flow diagram of the compression technique. When the 0 becomes 1, the value becomes 11 and when
the 1 becomes 0 the value becomes 00. If 11 is in 0 state
Table 1 shows that fixed to extended variable run then the decompressed output of 11 becomes 0011. And
length code if 00 is in 1 state then the decompressed output of 00
The above tabular column shows that the fixed length becomes 0100. Then it makes the transition from 11 to 00,
code word and the variable length code words. These the 010 is decompressed in to 0110. And it makes the
code words are used to compress the original test vectors transition from 00 to 11; the 001 is decompressed in to
in various benchmark circuits. 0101.

2299
World Appl. Sci. J., 32 (11): 2297-2302, 2014

When 11 changes to 1 state, the value becomes 011 run length coding technique. From Table 2, it is found that
and when the 00 changes to 0 state, the value becomes the decrease of number of runs ranges 75% for different
100. If 011 is in 0 state then the decompressed output of test sets.
011 becomes 0111. And if 100 is in 1 state, then the Then the extended run length coding scheme is used
decompressed output of 100 becomes 1000. Then it makes to compress these new test vectors. The compression
the transition from 011 to 100, the x0 is decompressed into ratio of the proposed scheme in comparison to the other
1010. And it makes the transition from 100 to 011; the x1 is coding schemes is shown in Table 3. In these experiments,
decompressed into 1001. runs of 0s and 1s are used. The first column of Table 3 is
When 011 changes to 1 state, the value becomes 111 the circuit name. The second column is the test size of
and when the 100 changes to 0 state, the value becomes original test data. The compression effect of EVRL is
000. If 111 is in 0 state then the decompressed output of shown in the third column of Table 3. The compression
111 becomes 1011. And if 000 is in 1 state, then the result of extended variable run length coding is also given
decompressed output of 000 becomes 1100. Then it makes for comparison in Table 3. The other columns are sizes of
the transition from 111 to 000, the x10 is decompressed compressed test data and compression ratio of BM [2],
into 1110. And it makes the transition from 000 to 111; the Golomb code [17], VIHC [15], EFDR [22], RL Huffman
x01 is decompressed into 1101. So by this technique coding [9] and FDR [23]. The Compression Ratio (CR) is
greater compression and decompression has been the ratio of the number of bits per sample before
achieved. compression to the encoded data rate.

TD -Tg
RESULTS AND DISCUSSION Compression Ratio= 100
TD
Here, the effectiveness of the proposed scheme is Where
verified by using experiment results. For comparison with TD is original length of test data and
other schemes, the MinTest test sets provided by Duke TE is the length of compressed data [23].
University of America are adopted, which are same as the From table 3, it is found that the new scheme has
test vectors used in paper [23]. Experiments were effectively generated very good compression ratios when
performed on the largest ISCAS 89 benchmark circuits compared to many run length coding schemes. The
[24]. Table 2 shows the analysis of the number of runs on average compression ratio (60.7583) achieved through our
the used test sets. The 1st column shows the circuit technique is quite higher than that other compression
name; the 2nd, the number of runs before the extended schemes
variable run length code is applied; and the last, the The above graphical representation clearly shows
number of runs obtained after the extended variable run that our new scheme generates high compression
length code is applied. It is found that the number of runs ratio in comparison with other standard compression
is decreased reasonably by using this extended variable algorithms.

Table 2: Analysis of the number of runs in test sets


Name of the circuit Runs before EVRL Runs after EVRL
s5378 20758 15570
S9234 25935 19452
S13207 163100 122325
S15850 57434 43077
S38417 59532 84864
S38584 161040 120780

Table 3: Comparison of compressed MINTEST test vector obtained by using different coding technique
Circuits Size of original test vector TD FDR Golomb Code VIHC EFDR RL Huffman Proposed Scheme
s5378 20578 20.54 15.72 25.29 34.74 36.56 59.9
S9234 25935 24.56 11.06 28.29 44.40 46.58 58.8
S13207 163100 42.57 37.35 56.16 60.37 66.59 59.37
S15850 57434 45.11 42.83 52.35 53.82 54.64 58.84
S38417 113152 58.8 59.14 60.92 62 63.33 68.34
S38584 161040 46.47 41.85 46.76 47.13 52.27 59.3
Average 39.675 34.6583 44.9617 50.41 53.3283 60.7583

2300
World Appl. Sci. J., 32 (11): 2297-2302, 2014

5. Wu, P.H., T.T. Chen, W.L. Li and J.C. Rau, 2008a.


An Efficient Test-Data Compaction for Low Power
VLSI Testing, IEEE International Conference on
Electro/Information Technology, Ames, IA, USA, pp:
237-241.
6. Hamzaoglu, I. and J.H. Patel, 1999. Reducing Test
Application Time for Full Scan Embedded Cores,
International Symposium on Fault-Tolerant
Computing, Madison, Wisconsin, USA, pp: 260-267.
7. Lee, K.J., J.J. Chen and C.H. Huang, 1999.
Broadcasting Test Patterns to Multiple Circuits,
IEEE Transactions on Computer-Aided Design of
Fig 4: Comparison chart for different compression Integrated Circuits and Systems, pp: 1793-1802.
schemes 8. Touba, N.A., 2006. Survey of test vector compression
techniques. Des Test Computer IEEE., 23(4): 294-303.
CONCLUSION 9. Jas, A., J. Ghosh-Dastidar, M. Ng and
N.A. Touba, 2003. An Efficient Test Vector
Test data compression is an effective solution to Compression Scheme Using Selective Huffman
reduce the increasing test data in larger ICs. A new test Coding, IEEE Transactions on Computer-Aided
data compression scheme based on extended variable run Design of Integrated Circuits and Systems,
length code is proposed here. In this technique, the 22: 797-806.
10. Gonciari, P.T., B.M. Al-Hashimi and N. Nicolici,
original test vectors are divided into fixed length blocks;
2003. Variable-Length Input Huffman Coding for
and then, the fixed length blocks are compressed into
System on-a-Chip Test, IEEE Transactions on
variable code words. This decreases the number of runs
Computer-Aided Design of Integrated Circuits and
and thereby enabling a better compression effect. It is
Systems, 22: 783-796.
shows that this technique has the characteristic of high
11. Kavousianos, X., E. Kalligeros and D. Nikolos, 2007a.
compression ratio, which decreases the ATE memory, the
Multilevel Huffman Coding: An Efficient Test-Data
channel capacity requirements and the low hardware
Compression Method for IP Cores, IEEE
overhead. Thus, it is an effective solution to test data
Transactions on Computer-Aided Design of
compression/decompression for IC design.
Integrated Circuits and Systems, Sonoma, CA, USA,
26: 1070-1083.
REFERENCES 12. Nourani, M. and M.H. Tehranipour, 2005.
RL-Huffman Encoding for Test Compression
1. Wang, L.T., C.W. Wu and X. Wen, 2006. VLSI Test and Power Reduction in Scan Applications,
Principles and Architectures: Design for Testability, ACM Transactions on Design Automtion of
San Francisco, CA, USA: Morgan Kaufmann. Electronic Systems, New York, NY, USA., 10: 91-115.
2. El-Maleh, A., 2008a. Efficient Test 13. Kavousianos, X., E. Kalligeros and D. Nikolos, 2007b.
Compression Technique Based on Block Merging, Optimal Selective Huffman Coding for Test-Data
The Institution of Engineering and Technology Compression,IEEE Transactions on Computers, 56:
Computers and Digital Techniques, 2: 327-335. 1146-1152.
3. Hellebrand, S. and A. Wrtenberger, 2002. 14. Li, L., K. Chakrabarty, S. Kajihara and
Alternating Run-Length Coding-A Technique S. Swaminathan, 2005. Efficient space/time
for Improved Test Data Compression, compression to reduce test data volume and testing
IEEE International Workshop on Test Resource time for IP cores, in Proceedings of the 18th
Partitioning, Baltimore, MD, USA. International Conference on VLSI Design, pp: 53-58.
4. Lee, J. and N.A. Touba, 2006. Combining Linear 15. Jas, A., J. Ghosh-Dastidar, M. Ng and N.A. Touba,
and Non-Linear Test Vector Compression Using 2003. An Efficient Test Vector Compression
Correlation-Based Rectangular Encoding, Scheme Using Selective Huffman Coding, IEEE
Proceedings of the IEEE VLSI Test Symposium, Transactions on Computer-Aided Design of
Berkeley, CA, USA, pp: 252-257. Integrated Circuits and Systems, 22: 797-806.

2301
World Appl. Sci. J., 32 (11): 2297-2302, 2014

16. Jas, A. and N.A. Touba, 1998. Test vector 20. Chandra, A. and K. Chakrabarty, 2001.
decompression via cyclical scan chains and its Frequency-directed run length (FDR) codes with
application to testing core-based designs, application to system-on-a-chip test data
in Proceedings of the IEEE International Test compression, in Proceedings of the 19th IEEE VLSI
Conference, pp: 458-464, Washington, DC, USA, Test Symposium, pp: 4247, Marina Del Rey, Calif,
October 1998. USA, May 2001.
17. Chandra, A. and K. Chakrabarty, 2001. 21. Liang, H.G. and C.Y. Jiang, 2004. Efficient test data
System-on-a-chip test data compression and compression and decompression based on
decompression architectures based on Golomb alternation and run length codes, Chinese Journal of
codes, IEEE Transactions on Computer-Aided Computers, 27(4): 548-554.
Design of Integrated Circuits and Systems, 22. El-Maleh, A.H., 2008. Test data compression for
20(3): 355-368. system-on-a chip using extended frequency-directed
18. Yamamoto, H. and H. Yokoo, 2001. Average-sense run-length code, IET Computers and Digital
optimality and competitive optimality for almost Techniques, 2(3): 155-163.
instantaneous VF codes. IEEE Transactions on 23. Chandra, A. and K. Chakrabarty, 2003. Test data
Information Theory, 47(6): 2174-2184, Sep. 2001. compression and test resource partitioning for
19. Yoshida, S., T. Uemura, T. Kida, T. Asai and system-on-a-chip using frequency-directed run-
S. Okamoto, 2012. Improving parse trees for efficient length (FDR) codes. IEEE Trans Computer, 52(8):
variable-to-fixed length codes. Journal of Information 1076-88.
Processing, 20(1): 238-249. 24. Brglez, F., D. Bryan and K. Kozminski, 1989.
Combinational profiles of sequential benchmark
circuits. In: Proceedings of the IEEE international
symposium on circuits and systems, pp: 1929-34.

2302

Das könnte Ihnen auch gefallen