Chip testing method and device, electronic equipment and readable storage medium

By dividing the test cube into data blocks and performing flag bit encoding and polynomial compression encoding, it solves the problems of high test power consumption and difficult coding in deep sub-micron and ultra-high integration chip testing, and achieves more efficient test data. Compression and storage.

CN118795313APending Publication Date: 2024-10-18LOONGSON TECH CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411017919.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In deep submicron and ultra-highly integrated chip testing, the amount of test data is large and the test power consumption is high. The LFSR reseeding method will increase power consumption during encoding, and as the circuit scale increases, the vector length increases, and the vector is determined Too many bits will increase the length of the seed, making the encoding more difficult, or even causing no solution.

Method used

Divide the test cube into data blocks, and perform flag bit encoding and polynomial compression encoding on each data block. Use flag bits and compression seed decoding to reduce the number of certain bits, reduce the length and complexity of the LFSR seed, and increase the probability of successful encoding. , reduce power consumption and storage overhead.

Benefits of technology

By reducing the number of determination bits and the length of LFSR seeds, test power consumption is reduced, the compression rate of test data is improved, no solution is avoided, storage space is saved, and coding efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118795313A_ABST
    Figure CN118795313A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a chip test method and device, electronic equipment and a readable storage medium. The method comprises the following steps: respectively segmenting a test cube in a test set into data blocks according to a preset length; according to the data bits contained in each data block, flag bit coding is carried out on each data block, and the flag bit of each data block is obtained; the flag bit identifies a decoding mode of the data block, and the decoding mode comprises decoding by using a preset value or decoding by using a compressed seed; performing polynomial compression coding on incompatible blocks in the data blocks to obtain compression seeds of the incompatible blocks; storing the flag bit and the compressed seed contained in the test set into the chip to be tested in sequence; and decoding based on the flag bit and the compressed seed to obtain a corresponding segmented test vector, and sequentially inputting a scanning chain to form a complete test vector to test a circuit of the to-be-tested chip. The compression power consumption can be reduced, the compression efficiency is improved, the coding success probability is improved, and the storage space is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of integrated circuit testing, and in particular to a chip testing method, device, electronic equipment and readable storage medium. Background Art

[0002] As circuits become more complex and smaller, especially as they enter the deep submicron and ultra-high integration stages, chip testing faces more and more challenges, among which the large amount of test data and high test power consumption are the main problems.

[0003] LBIST (logic build-in-self test) integrates a small amount of logic circuits inside the chip to test the entire circuit. It does not rely on external ATE (Automatic Test Equipment) and can achieve on-chip self-testing.

[0004] LFSR (linear feedback shift register) reseeding is an effective test data compression method. In LBIST, LFSR reseeding can be used for test data compression. The basic idea of ​​LFSR reseeding is to encode the test cube generated by ATPG (automatic test pattern generation) for difficult-to-test faults into seeds and store them in on-chip ROM. During testing, the seeds are moved into LFSR, which can decompress the seeds into corresponding test vectors and input them into the scan chain to perform testing.

[0005] However, usually only 5%-10% of the data bits in the test cube are determined bits, and the rest are irrelevant bits. The current LFSR reseeding method usually directly compresses the entire test cube containing irrelevant bits and encodes it into a seed. During encoding, a large number of irrelevant bits will be randomly filled with 0 or 1, resulting in an increase in the number of flips between adjacent registers in the scan chain, resulting in greater power consumption. In addition, as the circuit scale increases and the vector length increases, too many determined bits in the vector will increase the length of the seed, increase the difficulty of LFSR encoding, and even lead to unsolvable situations. Summary of the invention

[0006] In view of the above problems, an embodiment of the present invention is proposed to provide a chip testing method that overcomes the above problems or at least partially solves the above problems, which can reduce compression power consumption, improve compression efficiency, increase the probability of successful encoding, and save storage space.

[0007] Correspondingly, an embodiment of the present invention further provides a chip testing device, an electronic device, and a computer program product to ensure the implementation and application of the above method.

[0008] In a first aspect, an embodiment of the present invention discloses a chip testing method, the method comprising:

[0009] Each test cube in the test set is divided into data blocks according to a preset length;

[0010] According to the data bits contained in each data block, each data block is encoded with a flag bit to obtain a flag bit of each data block; the flag bit is used to identify a decoding method of the data block, and the decoding method includes decoding using a preset value or decoding using a compressed seed;

[0011] Performing polynomial compression coding on the incompatible blocks in the data block to obtain a compression seed of the incompatible blocks; the incompatible blocks refer to data bits in the data block that contain values ​​of both 0 and 1;

[0012] The flag bits and compressed seeds included in the test set are stored in the chip to be tested in order;

[0013] A corresponding test vector is obtained based on the flag bit and the compressed seed decoding, and is input into a scan chain to test the circuit of the chip to be tested.

[0014] In a second aspect, an embodiment of the present invention discloses a chip testing device, the device comprising:

[0015] The test set segmentation module is used to segment each test cube in the test set into data blocks according to a preset length;

[0016] A flag encoding module, used to encode the flag of each data block according to the data bits contained in each data block, so as to obtain the flag of each data block; the flag is used to identify the decoding method of the data block, and the decoding method includes decoding using a preset value or decoding using a compressed seed;

[0017] A polynomial encoding module, used for performing polynomial compression encoding on the incompatible blocks in the data block to obtain a compression seed of the incompatible blocks; the incompatible blocks refer to data bits in the data block that contain values ​​of both 0 and 1;

[0018] A compressed data storage module, used for storing the flag bits and compressed seeds included in the test set into the chip to be tested in sequence;

[0019] The test execution module obtains a corresponding test vector based on the flag bit and the compressed seed decoding, and inputs the test vector into a scan chain to test the circuit of the chip to be tested.

[0020] In the third aspect, an embodiment of the present invention discloses an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the steps of any chip testing method described above.

[0021] In a fourth aspect, an embodiment of the present invention discloses a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the chip testing method as described in any of the above can be implemented.

[0022] In a fifth aspect, an embodiment of the present invention discloses a computer program product, including a computer program, which, when executed by a processor, performs the steps of any of the chip testing methods described above.

[0023] The embodiments of the present invention include the following advantages:

[0024] The embodiment of the present invention divides each test cube in the test set into data blocks according to a preset length, and compresses and encodes each data block. A test cube is divided into multiple data blocks, and the length of each data block is greatly reduced relative to the length of the test cube, thereby reducing the number of confirmed bits contained in each data block, thereby reducing the Smax value, achieving the purpose of improving the probability of successful encoding, and avoiding the situation of no solution. In addition, by reducing the number of confirmed bits, not only the complexity of calculating the LFSR seed can be reduced, but also the length of the LFSR seed can be reduced, so that a better compression effect can be obtained. Furthermore, the embodiment of the present invention does not encode each data block into an LFSR seed, but first encodes the flag bit of each data block, and then encodes the data block that needs to be LFSR encoded into the LFSR seed, and the data block that does not need to be LFSR encoded can be encoded using the flag bit. In this way, the number of LFSR encodings can be reduced, and the compression efficiency can be further improved; the LFSR seeds required to be stored can also be reduced, and the storage space can be further saved. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 is a flowchart of a chip testing method embodiment of the present invention;

[0026] Figure 2 It is a structural schematic diagram of a decoding circuit of the present invention;

[0027] Figure 3 is a structural block diagram of an embodiment of a chip testing device of the present invention;

[0028] Figure 4It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0030] The terms "first", "second", etc. in the specification and claims of the present invention are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable when appropriate, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, the term "and / or" in the specification and claims is used to describe the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In the embodiments of the present invention, the term "multiple" refers to two or more, and other quantifiers are similar.

[0031] Reference Figure 1 , shows a flowchart of a chip testing method embodiment of the present invention, the method may include the following steps:

[0032] Step 101: divide each test cube in the test set into data blocks according to a preset length;

[0033] Step 102: According to the data bits contained in each data block, a flag bit is encoded for each data block to obtain a flag bit of each data block; the flag bit is used to identify a decoding method of the data block, and the decoding method includes decoding using a preset value or decoding using a compressed seed;

[0034] Step 103: Perform polynomial compression coding on the incompatible blocks in the data block to obtain a compression seed of the incompatible blocks; the incompatible blocks refer to data bits in the data block that contain values ​​of both 0 and 1;

[0035] Step 104: storing the flag bits and compressed seeds included in the test set in order into the chip to be tested;

[0036] Step 105 : Obtain a corresponding test vector based on the flag bit and the compressed seed decoding, and input the test vector into a scan chain to test the circuit of the chip under test.

[0037] The chip testing method provided by the embodiment of the present invention can be used for on-chip logic built-in self-test. The chip testing method provided by the embodiment of the present invention is an improved LFSR reseeding method, which aims to reduce test power consumption, improve the compression rate of test data, and reduce on-chip storage overhead; and by reducing the number of determined bits and reducing the length of the compressed seed, the difficulty of LFSR encoding is reduced, and the situation of no solution is avoided, so as to be widely used in the testability design of very large-scale integrated circuits.

[0038] The process of encoding and solving the seed using the LFSR reseeding method for the test cube is the process of LFSR encoding, which is also the process of solving the linear equation system based on the feedback polynomial. In the embodiment of the present invention, the polynomial compression encoding refers to LFSR encoding, that is, the process of encoding and solving the seed using the LFSR reseeding method.

[0039] The chip testing method of the embodiment of the present invention includes an encoding phase (steps 101 to 104) and a testing phase (step 105). In the encoding phase, the test set is compressed and encoded, and the compressed and encoded data is stored in the chip to be tested, such as in the ROM of the chip to be tested. In the testing phase, the decoding circuit in the chip to be tested reads the compressed and encoded data from the ROM, obtains the corresponding test vector through decoding and restoration, and moves it into the scan chain for testing.

[0040] A test set refers to a collection of test cubes, in which there are a large number of unassigned don't care bits in the ATPG process. A test cube can be responsible for testing the faults of a small part of the circuit in the entire chip, so some data bits in the test cube are definite values, including 0 or 1; other data bits are don't care bits, and the don't care bit is X; the original test vector containing the don't care bit X is called a test cube. Since the test cube contains the don't care bit X, it cannot be directly input into the chip, so before testing, X needs to be filled with a definite value of 0 or 1. After filling the don't care bit X with a definite value, the test cube becomes the test vector actually input into the chip.

[0041] A test cube is decompressed into a test vector. The test set is the test data. During the test data compression process, it is necessary to protect the determined bits in the test cube to ensure fault coverage. That is, all the determined bits in the test vector that is decompressed (decoded) and moved into the scan chain should match the determined bits in the original test vector.

[0042] Furthermore, since the success rate of LFSR encoding is related to Smax, the more confirmed bits contained in the test cube, the lower the probability of successful encoding. Smax is the maximum number of confirmed bits contained in all test cubes in the test set. Therefore, the embodiment of the present invention first divides each test cube in the test set into data blocks according to a preset length, and compresses and encodes each data block. A test cube is divided into multiple data blocks, and the length of each data block is greatly reduced relative to the length of the test cube, thereby reducing the number of confirmed bits contained in each data block, thereby reducing the Smax value and achieving the purpose of increasing the probability of successful encoding. Not only can the complexity of calculating the LFSR seed (also referred to as the compression seed in this article) be reduced, but the length of the LFSR seed can also be reduced, thereby obtaining a better compression effect.

[0043] The embodiment of the present invention divides each test cube in the test set into data blocks evenly according to a preset length. The embodiment of the present invention does not limit the preset length. Exemplarily, the preset length can evenly divide a test cube. Further, if the preset length cannot evenly divide a test cube, the don't care bits can be used to fill the missing data bits of the last data block.

[0044] For example, a given test cube C is evenly divided into n data blocks, each of which has a length of m. j ={b0,b1,...,b m-1} is a data block after segmentation (0≤j <n),S(B)={i|b i ≠X} is the set of determined bits in the data block (0≤i <m)。

[0045] In an example, assuming that a test cube is "XXXX010X1111", the test cube can be divided into the following three data blocks: XXXX, 010X, 1111, where X is a don't care bit.

[0046] The embodiment of the present invention defines four types of data blocks according to the data bits contained in the data blocks: 0-compatible blocks, 1-compatible blocks, irrelevant blocks, and incompatible blocks. The four types of data blocks are defined as follows:

[0047] 0 compatible block: b i ∈{0,X}, and

[0048] 1 compatible block: b i ∈{1,X}, and

[0049] Don't care block: b i ∈{X}, and

[0050] Incompatible blocks: b i ∈{0,1,X}, and

[0051] Among them, a 0-compatible block refers to a data block that only contains data bits with a value of 0, or only contains data bits with a value of 0 and an irrelevant bit X. For example, 0000 is a 0-compatible block, and X0XX is also a 0-compatible block. A 1-compatible block refers to a data block that only contains data bits with a value of 1, or only contains data bits with a value of 1 and an irrelevant bit X. For example, 1111 is a 1-compatible block, and 1XXX is also a 1-compatible block. An irrelevant block refers to a data block that only contains an irrelevant bit X. For example, XXXX is an irrelevant block. An incompatible block refers to a data block that contains data bits with values ​​of both 0 and 1. For example, 0101 is an incompatible block, and 01XX is also an incompatible block.

[0052] Next, according to the data bits contained in each data block, each data block is encoded with a flag bit to obtain a flag bit of each data block. The flag bit is used to identify a decoding method of the data block, and the decoding method includes decoding using a preset value or decoding using a compressed seed.

[0053] The embodiment of the present invention divides the test cube into data blocks, and does not encode each data block into an LFSR seed, but first encodes a flag bit for each data block, and then encodes the data block that needs to be LFSR encoded into an LFSR seed, and the data block that does not need to be LFSR encoded can be decoded using the flag bit. In this way, the number of LFSR encodings can be reduced, and the complexity of the flag bit encoding is greatly reduced relative to the complexity of the LFSR encoding, which can further improve the compression efficiency; in addition, the LFSR seeds that need to be stored can also be reduced, and the length of the flag bit is much smaller than the length of the LFSR seed, which can further save storage space.

[0054] In an optional embodiment of the present invention, encoding a flag bit of each data block according to the data bits included in each data block to obtain the flag bit of each data block may include:

[0055] Step S11: for a data block to be encoded currently, determining the type of the data block according to the data bits contained in the data block;

[0056] Step S12: If the type of the data block is a 0-compatible block, the flag bit of the 0-compatible block is encoded as a first flag bit;

[0057] Step S13: If the type of the data block is a 1-compatible block, the flag bit of the 1-compatible block is encoded as a second flag bit;

[0058] Step S14: if the type of the data block is an irrelevant block, encoding the flag bit of the irrelevant block as a third flag bit;

[0059] Step S15: If the type of the data block is an incompatible block, and it is determined that the main polynomial of the incompatible block has a solution, the flag bit of the incompatible block is encoded as a fourth flag bit; if it is determined that the main polynomial of the incompatible block has no solution but the slave polynomial has a solution, the flag bit of the incompatible block is encoded as a fifth flag bit.

[0060] If the type of the data block is a 0-compatible block, the flag bit of the data block is encoded as the first flag bit. Exemplarily, the embodiment of the present invention sets the first flag bit to 00, which is used to indicate that the preset value 0 is used for decoding. That is, it is directly decoded into a block vector whose values ​​are all 0, which can reduce the number of register flips during the shifting process. For example, for the 0-compatible block X0XX, its flag bit is 00. When the flag bit 00 is identified during decoding, the block vector 0000 is directly decoded. Since the irrelevant bits can be randomly filled with 0 or 1, it will not affect the test results. Therefore, when the flag bit is 00, the 0-compatible block X0XX can be directly decoded as 0000.

[0061] If the type of the data block is a 1-compatible block, the flag bit of the data block is encoded as a second flag bit. Exemplarily, the embodiment of the present invention sets the second flag bit to 01, which is used to indicate that the preset value 1 is used for decoding. That is, it is directly decoded into a block vector with all values ​​1, which can reduce the number of register flips during the shift process. For example, for a 1-compatible block 1XXX, its flag bit is 01. When the flag bit 01 is identified during decoding, the block vector 1111 is directly decoded.

[0062] If the type of the data block is an irrelevant block, the flag bit of the data block is encoded as a third flag bit. Exemplarily, the embodiment of the present invention sets the third flag bit to 0X, which includes an irrelevant bit X, which is used to indicate that the irrelevant bit can be randomly filled and then decoded using a preset value 0 or 1. For example, after filling X in the third flag bit with 0, it is the same as the first flag bit, and can be decoded using the first flag bit method. For another example, after filling X in the third flag bit with 1, it is the same as the second flag bit, and can be decoded using the second flag bit method.

[0063] For 0-compatible blocks, 1-compatible blocks and irrelevant blocks, only the corresponding flag bits need to be stored without storing the original data blocks or performing LFSR encoding, which not only reduces the encoding complexity but also saves on-chip storage space.

[0064] If the type of the data block is an incompatible block, and it is determined that the main polynomial of the data block has a solution, the flag bit of the data block is encoded as the fourth flag bit, and the data block is called a main polynomial block; if it is determined that the main polynomial of the data block has no solution but the slave polynomial has a solution, the flag bit of the data block is encoded as the fifth flag bit, and the data block is called a slave polynomial block.

[0065] Exemplarily, the embodiment of the present invention sets the fourth flag bit to 10, which is used to indicate that the corresponding compressed seed and the master polynomial are used for decoding to obtain the corresponding block vector. The embodiment of the present invention sets the fifth flag bit to 11, which is used to indicate that the corresponding compressed seed and the slave polynomial are used for decoding to obtain the corresponding block vector.

[0066] Referring to Table 1, there is shown a schematic diagram of encoding flag bits of different types of data blocks according to an embodiment of the present invention.

[0067] Table 1

[0068] Data block type Flags Data bits 0 Compatible Block 00 / 1 Compatible Block 01 / Don't care block 0X XXXXXXXX Master Polynomial Block 10 Original data bit From polynomial blocks 11 Original data bit

[0069] Among them, the 0-compatible block and the 1-compatible block are directly decoded into a block vector of all 0s or all 1s during decoding, which is independent of the original data bits. Therefore, after the flag bit encoding, the embodiment of the present invention represents the data bits of the 0-compatible block and the 1-compatible block as " / ".

[0070] In the embodiment of the present invention, for 0-compatible blocks and 1-compatible blocks, the preset value can be used to directly decode based on the flag bit. For irrelevant blocks, they can be filled with 0-compatible blocks or 1-compatible blocks and then decoded using the preset value. Therefore, the embodiment of the present invention only needs to perform polynomial compression encoding on the incompatible blocks to obtain the compression seeds of the incompatible blocks, and decode the incompatible blocks based on the compression seeds during decoding.

[0071] In an example, a test cube is: XXX00XX0XX1X101X1X00XX0XXXXXXXXX. The test cube is divided into the following four data blocks: XXX00XX0, XX1X101X, 1X00XX0X, XXXXXXXX. Based on the flag encoding rules shown in Table 1, the flags corresponding to the above four data blocks are as follows: 00, 10, 10, 0X. The fourth data block is a don't care block, and it is assumed that its flag 0X is randomly filled with 01.

[0072] Therefore, it is only necessary to store the flags 00, 10, 10, 01, and the compressed seeds of the second and third data blocks into the chip to be tested. Assume that the compressed seed of the second data block is recorded as seed1, and the compressed seed of the third data block is recorded as seed2. During the test, when the first flag 00 is read, it is directly decoded as the block vector 00000000. When the second flag 10 is read, the compressed seed seed1 is read, and the block vector is obtained based on the master polynomial decoding, such as v(seed1). v(seed1) is the result of filling the irrelevant bits in XX1X101X obtained after decoding with a certain value. Similarly, when the third flag 10 is read, the compressed seed seed2 is read, and the block vector is obtained based on the master polynomial decoding, such as v(seed2). v(seed2) is the result of filling the irrelevant bits in 1X00XX0X obtained after decoding with a certain value. When the fourth flag 01 is read, it is directly decoded as the block vector 11111111. The test vector can be obtained by concatenating the above four block vectors as follows: 00000000v(seed1)v(seed2)11111111. The test vector is moved into the scan chain for testing.

[0073] In an optional embodiment of the present invention, performing polynomial compression coding on the incompatible blocks in the data blocks to obtain the compression seeds of the incompatible blocks may include:

[0074] Step S21: Solve the master polynomial of the incompatible block based on the initial seed length. If the master polynomial of the incompatible block has a solution, use the solution of the master polynomial as the compression seed of the incompatible block.

[0075] Step S22: if the master polynomial of the incompatible block has no solution, then solve the slave polynomial of the incompatible block; if the slave polynomial of the incompatible block has a solution, then use the solution of the slave polynomial as the compression seed of the incompatible block;

[0076] Step S23: If the slave polynomial of the incompatible block has no solution, then increase the initial seed length and recalculate until a solution is found.

[0077] For an incompatible block, an embodiment of the present invention first calculates whether the main polynomial of the incompatible block has a solution. If the main polynomial has a solution, the main polynomial is used to solve the compression seed, and its flag is encoded as 10; if the main polynomial has no solution but the slave polynomial has a solution, the slave polynomial is used to solve the compression seed, and its flag is encoded as 11; if the slave polynomial has no solution, the initial seed length is increased and recalculated until a solution is found.

[0078] Different LFSRs have different feedback polynomials f(x), calculated as follows:

[0079] f1(x)*Seed=Y (1)

[0080] f2(x)*Seed=Y (2)

[0081] Where f1(x) is the master polynomial, f2(x) is the slave polynomial, Y is the incompatible block, and Seed is the compressed seed to be solved. For a certain incompatible block, first solve equation (1). If equation (1) has a solution, the compressed seed Seed1 of the incompatible block is obtained, and the flag bit of the incompatible block is encoded as 10. The incompatible block is called the master polynomial block. If equation (1) has no solution, solve equation (2). If equation (2) has a solution, the compressed seed Seed2 of the incompatible block is obtained, and the flag bit of the incompatible block is encoded as 11. The incompatible block is called the slave polynomial block. If equation (2) has no solution, increase the initial seed length, solve equation (1) again, and repeat the above steps until a solution is found.

[0082] The initial seed length can be determined based on the test cube with the most confirmed bits (i.e., Smax) among all the test cubes in the test set. By solving this test cube, the appropriate initial seed length L is determined. Because the more confirmed bits a test cube contains, the more difficult it is to solve, and the longer the seed length required. If the initial seed length L can satisfy the test cube with the most confirmed bits, it can usually satisfy other test cubes. If it still cannot satisfy, L is gradually increased by 1 until a solution is found.

[0083] In an example, suppose a test set is given, which includes 6 32-bit test cubes. Each test cube is segmented, and the data blocks obtained after segmentation are shown in Table 2. Each test cube is segmented into 4 data blocks.

[0084] Table 2

[0085] Data Block 1 Data Block 2 Data Block 3 Data Block 4 Test Cube 1 XXX00XX0 XX1X101X 1X00XX0X XXXXXXXX Test Cube 2 0XX1XXX0 X111X11X XXXXXXXX X00X00X0 Test Cube 3 X000XXX0 11XX1001 X01X00XX XX1111X1 Test Cube 4 XXXXXXXX 0110101X 1X00X00X XXXXXXXX Test Cube 5 XXX101X0 XXXXXXX 1XX111X1 X00X00X0 Test Cube 6 00X000XX 01010111 X010XXXX 1XXXXXXX

[0086] The segmented data blocks are encoded with flags according to the encoding rules shown in Table 1, and the encoding results are shown in Table 3. Each data block has a 2-bit flag.

[0087] Table 3

[0088] Flags Data Block 1 Data Block 2 Data Block 3 Data Block 4 Test Cube 1 00 10 10 0X / XX1X101X 1X00XX0X XXXXXXXX Test Cube 2 10 01 0X 00 0XX1XXX0 / XXXXXXXX / Test Cube 3 00 10 10 01 / 11XX1001 X01X00XX / Test Cube 4 0x 11 10 0x XXXXXXXX 0110101X 1X00X00X XXXXXXXX Test Cube 5 10 0x 01 00 XXX101X0 XXXXXXX / / Test Cube 6 00 11 10 01 / 01010111 X010XXXX /

[0089] Take test cube 1 as an example. Test cube 1 is divided into the following four data blocks: XXX00XX0, XX1X101X, 1X00XX0X, XXXXXXXX. Data block 1 is a 0-compatible block, and its flag bit is encoded as 00; data block 2 is an incompatible block, and its polynomial encoding has a solution. Its flag bit is encoded as 10, and the obtained compression seed is recorded; data block 3 is an incompatible block, and its polynomial encoding has a solution. Its flag bit is encoded as 10, and the obtained compression seed is recorded; data block 4 is an irrelevant block, and its flag bit is encoded as 0X; therefore, test cube 1 contains the following four flag bits: 00, 10, 10, 0X. Among them, the flag bit of data block 4 is the third flag bit, which can be randomly filled with irrelevant bits. Assume that it is filled with 01 in this example.

[0090] The flag bits and compressed seeds included in the test set are stored in the chip to be tested in order; corresponding test vectors are obtained by decoding the flag bits and compressed seeds, and input into a scan chain to test the circuit of the chip to be tested.

[0091] Scan chain refers to replacing registers in the circuit under test with observable registers in chip testing, and then connecting these registers in series to obtain a scan chain. During testing, the test vector is serially moved from the scan chain into the circuit under test for testing. One test cube is decompressed into one test vector, and one test vector is input into one scan chain.

[0092] In an optional embodiment of the present invention, the decoding based on the flag bit and the compressed seed to obtain a corresponding test vector, and inputting the test vector into a scan chain to test the circuit of the chip under test may include:

[0093] Step S31, reading the flag bit of the current test cube;

[0094] Step S32: for the first flag bit read, decode it into a block vector whose values ​​are all 0; for the second flag bit read, decode it into a block vector whose values ​​are all 1; for the fourth flag bit read, decode it based on the compressed seed read to obtain a corresponding block vector;

[0095] Step S33, connecting the decoded block vectors in sequence to obtain a test vector corresponding to the current test cube;

[0096] Step S34, inputting the obtained test vector into a scan chain to test the circuit of the chip to be tested;

[0097] Step S35, read the flag bit of the next test cube until the test is completed.

[0098] For each test cube, the embodiment of the present invention only needs to store the flags of each data block contained in each test cube and the compression seeds of incompatible blocks. For example, for test cube 1, only the following four flags need to be stored: 00, 10, 10, 01, and the compression seeds of data blocks 2 and 3.

[0099] In the above example, the flag bit contained in each test cube in test cube 1 to test cube 6 is stored in sequence, and the compressed seed contained in each test cube in test cube 1 to test cube 6 is stored in sequence. The flag bit and the compressed seed can be stored separately.

[0100] As shown in Table 3, test cube 1 has two data blocks (data block 2 and data block 3) that can be encoded into compression seeds, that is, test cube 1 has 2 compression seeds. Test cube 2 has 1 compression seed. Test cube 3 has 2 compression seeds. Test cube 4 has 2 compression seeds. Test cube 5 has 1 compression seed. Test cube 6 has 2 compression seeds.

[0101] In this example, a test cube is divided into 4 data blocks, so the test vector obtained by decoding a test cube is obtained based on the flag bits of these 4 data blocks. A data selector can be set before each scan chain to select all 0, all 1, or compressed seed for decoding according to the flag bit.

[0102] At the beginning of the test, first read the flag bit of the first test cube. For example, if the first flag bit of test cube 1 is 00, it can be directly decoded into the block vector 00000000. Then read the second flag bit of test cube 1 as 10. At this time, the first stored compressed seed can be read, and the decoded block vector is recorded as V1. Next, read the third flag bit of test cube 1 as 10. At this time, the second stored compressed seed can be read, and the decoded block vector is recorded as V2. Next, read the fourth flag bit of test cube 1 as 00, which can be directly decoded into the block vector 00000000. The test vector decoded for the first test cube is obtained by splicing as follows: 00000000V1V200000000. Input the test vector into the scan chain to test the circuit of the chip to be tested. Next, read the flag bit of the next test cube until the test is completed.

[0103] The embodiment of the present invention divides the test cube evenly, performs improved polynomial compression coding on the divided data blocks, obtains low-power compressed seeds and stores them in an on-chip ROM, and can be decoded by a decoding circuit to obtain compatible test vectors. The embodiment of the present invention can reduce the number of determined bits in the test cube and the length of the LFSR seeds stored on the chip, thereby reducing test power consumption, improving the compression rate of test data, and reducing on-chip storage overhead.

[0104] Furthermore, the embodiment of the present invention proposes an improved LFSR reseeding test compression method, which improves the encoding method of the incompatible blocks of the split test cube, further encodes the incompatible blocks into master polynomial blocks or slave polynomial blocks, performs multi-polynomial encoding on the split data blocks, and compresses the test vectors in blocks. Therefore, the purpose of reducing power consumption and improving compression rate can be achieved by only introducing a small amount of flag data and adding a simple combinational circuit.

[0105] In order to further improve the compression rate of the test data, the embodiment of the present invention further compresses the flag bit. In an optional embodiment of the present invention, the method may also include:

[0106] Step S41, the flag bits of the data blocks included in each test cube are combined into a flag bit sequence to obtain a flag bit sequence corresponding to each test cube;

[0107] Step S42: reorder the test cubes in the test set based on the flag bit sequence so that compatible flag bit sequences are adjacent;

[0108] Step S43, merging compatible flag bit sequences into a group so that the test cubes in the same group use the same flag bit sequence;

[0109] Step S44, setting an update bit for each test cube; wherein the update bit of the test cubes in the same group is a first value, and the update bit of the test cubes in different groups is a second value.

[0110] In order to further reduce the number of flag bits that need to be stored, the embodiment of the present invention combines the flag bits of each data block in each test cube to obtain a flag bit sequence for each test cube. Then, compatible flag bit sequences are combined into a group so that the test cubes in the same group use the same flag bit sequence, thereby further compressing the flag bits. Then, an update bit is added to each test cube to indicate that the test cubes in the same group use the same flag bit sequence. In this way, the storage overhead of the flag bits and the time overhead required to read the flag bits can be reduced.

[0111] The two flag bit sequences are compatible, which means that the two flag bit sequences are the same, or that the irrelevant bits in the two flag bit sequences are the same after being filled with a certain value.

[0112] For example, in Table 3, the flag bit sequence of test cube 1 is 00 10 10 0X. It can be understood that the spaces in the flag bit sequence are only for distinguishing the flag bits of each data block. The flag bit sequence of test cube 3 is 00 10 10 01. It can be seen that if the irrelevant bit X in the flag bit sequence of test cube 1 is filled with 1, the flag bit sequence after filling is the same as the flag bit sequence of test cube 3, and the flag bit sequence of test cube 1 is said to be compatible with the flag bit sequence of test cube 3. When reordering the test cubes, the two test cubes can be arranged together, and the flag bit sequences of the two test cubes can be merged into one group, that is, the two test cubes can share the same flag bit sequence 00 10 10 01.

[0113] Similarly, the flag bit sequence of test cube 2 is compatible with the flag bit sequence of test cube 5. The flag bit sequence of test cube 4 is compatible with the flag bit sequence of test cube 6.

[0114] The reordered and merged datasets are shown in Table 4.

[0115] Table 4

[0116]

[0117]

[0118] As shown in Table 4, an update bit is added before the flag bit of each test cube. Test cubes in the same group use the same flag bit sequence, and the update bit of the test cubes in the same group is the first value (such as 0). Test cubes between different groups use different flag bit sequences, and the update bit of the test cubes between different groups is the second value (such as 1). The update bit of the first test cube is the second value.

[0119] The update bits, reordered flag bits, and compressed seeds of each test cube are stored in the on-chip ROM in sequence, and then the corresponding test vectors can be obtained through LFSR decoding.

[0120] In an optional embodiment of the present invention, each test cube includes an update bit, and the reading of the flag bit of the next test cube may include:

[0121] Step S51, reading the update bit of the next test cube, if the read update bit is the first value, continue to use the flag bit of the current test cube that has been read;

[0122] Step S52: If the read update bit is the second value, read the flag bit of the next test cube.

[0123] Taking Table 4 as an example, the following update bits are stored in the ROM of the chip under test in sequence: 101010; the following flag bits are stored in sequence: 00 10 10 01, 10 01 01 00, 00 11 10 01; and the following compressed seeds are stored in sequence: (XX1X101X)seed, (1X00XX0X)seed, (11XX1001)seed, (X01X00XX)seed, (0XX1XXX0)seed, (XXX101X0)seed, (0110101X)seed, (1X00X00X)seed, (01010111)seed, (X010XXXX)seed. (XX1X101X)seed represents the LFSR seed obtained by encoding the data block XX1X101X using the LFSR reseeding method.

[0124] For ease of reading, the update bit, flag bit and compressed seed can be stored separately, and different seeds of the same test cube and seeds of different test cubes are stored in order. There is a corresponding relationship between the storage order of the update bit, flag bit and compressed seed.

[0125] At the beginning of the test, the first update bit is read as the second value 1, and the flag bits 00, 10, 10, 00 of the first test cube (test cube 1) are read. After decoding in sequence, the test vector is obtained, and the circuit of the chip to be tested is input into the scan chain. Next, the next update bit is read, which is the first value 0, and the flag bits 00, 10, 10, 00 of the first test cube that have been read are continued to be used, and the test vector is obtained after decoding in sequence, and the circuit of the chip to be tested is input into the scan chain. Next, the next update bit is read, which is the second value 1, and the flag bits 10, 01, 01, 00 of the next test cube (test cube 2) are read. After decoding in sequence, the test vector is obtained, and the scan chain is input to test the circuit of the chip to be tested. And so on.

[0126] In one example, the schematic diagram of the decoding circuit is as follows: Figure 2 After the test set is compressed and encoded, the compressed and encoded data (including the update bit of each test cube, the flag bit contained in each test cube, and the compressed seed contained in each test cube) is stored in the ROM of the chip under test. The decoding circuit in the chip under test reads the compressed and encoded data from the ROM, obtains the corresponding test vector through decoding and restoration, and moves it into the scan chain for testing.

[0127] Specifically, the update bit and flag bit stored in the ROM control the XOR feedback loop and scan chain data selector of the LFSR through the decoding structure. Different feedback loops correspond to different original polynomials (master polynomials or slave polynomials). According to whether the flag bit is 10 or 11, by adjusting the opening or closing of the XOR gate in the circuit, the control logic can automatically select the master polynomial or slave polynomial to decode the corresponding compressed seed to generate a compatible test vector. The compressed seed of each incompatible block is controlled by the decoding structure to be sequentially shifted into the LFSR, and the test vector is generated by multi-beat shifting. A data selector is added in front of each scan chain, which can select decoding based on all 0, all 1 or compressed seeds according to the flag bit, until all block vectors of all data blocks cut by a test cube are moved into the scan chain. The data captured by the scan chain is passed to the MISR for comparison to determine whether a fault occurs inside the circuit.

[0128] Taking the example in Table 4 as an example, at the beginning of the test, the control decoding logic first reads the value of the update bit as 1. When the update bit is 1, the flag register reads the new value, and when the update bit is 0, the flag register remains unchanged, so the flag register reads the flag bit 00 10 10 01.

[0129] The first flag bit read is 01 (the flag bit order is from right to left). The control logic controls the LFSR not to read the seed, and inputs the flag bit 01 to the scan chain sel end. The data selector selects the fixed value 1, and the scan chain moves into the block vector 11111111 after 8 clock beats.

[0130] The flag bit read later is 10, and the LFSR reads the seed (1X00XX0X) seed, and inputs the flag bit 10 to the scan chain sel end. The data selector selects the data from the LFSR, and the scan chain moves into the decoded block vector after 8 clocks, such as V1. V1 is the result of filling the unrelated bits in the decoded data block 1X00XX0X with a certain value.

[0131] The next flag bit read is 10, and the LFSR reads the seed (XX1X101X) seed. After 8 clock cycles, the scan chain moves in the decoded block vector, which is recorded as V2. V2 is the result of filling the unrelated bits in the decoded data block XX1X101X with a certain value.

[0132] The next flag bit read is 00. The control logic controls the LFSR not to read the seed and inputs the flag bit 00 into the scan chain data selector. The data selector selects the fixed value 0. After 8 clocks, the scan chain moves into the block vector 00000000.

[0133] In the embodiment of the present invention, the test includes two phases: a vector shift-in phase and a response capture phase. While the response value is shifted out, the next test vector is shifted into the scan chain. The process is cycled sequentially.

[0134] In the above example, after 32 clock beats, the test vector 00000000V1V211111111 has been moved into the scan chain. Then the controller generates a capture clock, captures the response value in the scan chain, and moves the response value in the scan chain to the MISR for comparison. While moving the response value out, the scan chain moves in the next test vector. The update register reads the next update bit 0, and the flag register remains unchanged. Repeat the decoding operation of the test vector.

[0135] In summary, the embodiment of the present invention divides each test cube in the test set into data blocks according to a preset length, and compresses and encodes each data block. A test cube is divided into multiple data blocks, and the length of each data block is greatly reduced relative to the length of the test cube, thereby reducing the number of confirmed bits contained in each data block, thereby reducing the Smax value, achieving the purpose of improving the probability of successful encoding, and avoiding the situation of no solution. In addition, by reducing the number of confirmed bits, not only the complexity of calculating the LFSR seed can be reduced, but also the length of the LFSR seed can be reduced, so that a better compression effect can be obtained. Furthermore, the embodiment of the present invention does not encode each data block into an LFSR seed, but first encodes the flag bit of each data block, and then encodes the data block that needs to be LFSR encoded into the LFSR seed, and the data block that does not need to be LFSR encoded can be encoded using the flag bit. In this way, the number of LFSR encodings can be reduced, and the compression efficiency can be further improved; the LFSR seeds required to be stored can also be reduced, and the storage space can be further saved.

[0136] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0137] Reference Figure 3 , shows a structural block diagram of a chip testing device embodiment of the present invention, the device may include:

[0138] The test set segmentation module 301 is used to segment each test cube in the test set into data blocks according to a preset length;

[0139] The flag encoding module 302 is used to encode the flag of each data block according to the data bits contained in each data block to obtain the flag of each data block; the flag is used to identify the decoding method of the data block, and the decoding method includes decoding using a preset value or decoding using a compressed seed;

[0140] The polynomial encoding module 303 is used to perform polynomial compression encoding on the incompatible blocks in the data block to obtain the compression seed of the incompatible blocks; the incompatible blocks refer to the data bits in the data block that contain both values ​​of 0 and 1;

[0141] A compressed data storage module 304 is used to store the flag bits and compressed seeds included in the test set into the chip to be tested in sequence;

[0142] The test execution module 305 obtains a corresponding test vector based on the flag bit and the compressed seed decoding, and inputs the test vector into a scan chain to test the circuit of the chip under test.

[0143] Optionally, the flag encoding module includes:

[0144] A type identification submodule, for determining the type of a data block to be encoded according to data bits contained in the data block;

[0145] A first encoding submodule, configured to encode a flag bit of the 0-compatible block as a first flag bit if the type of the data block is a 0-compatible block; the 0-compatible block only includes data bits with a value of 0, or only includes data bits with a value of 0 and irrelevant bits;

[0146] A second encoding submodule, for encoding a flag bit of the 1-compatible block as a second flag bit if the type of the data block is a 1-compatible block; the 1-compatible block only includes data bits with a value of 1, or only includes data bits with a value of 1 and irrelevant bits;

[0147] A third encoding submodule, used for encoding a flag bit of the irrelevant block as a third flag bit if the type of the data block is an irrelevant block; the irrelevant block only includes irrelevant bits;

[0148] The fourth encoding submodule is used for encoding the flag bit of the incompatible block as a fourth flag bit if the type of the data block is an incompatible block and it is determined that the main polynomial of the incompatible block has a solution; if it is determined that the main polynomial of the incompatible block has no solution but the slave polynomial has a solution, encoding the flag bit of the incompatible block as a fifth flag bit.

[0149] Optionally, the polynomial encoding module includes:

[0150] A main polynomial encoding submodule, configured to solve the main polynomial of the incompatible block based on the initial seed length, and if the main polynomial of the incompatible block has a solution, use the solution of the main polynomial as a compression seed of the incompatible block;

[0151] A slave polynomial encoding submodule, configured to solve the slave polynomial of the incompatible block if the master polynomial of the incompatible block has no solution, and use the solution of the slave polynomial as a compression seed of the incompatible block if the slave polynomial of the incompatible block has a solution;

[0152] The seed length updating submodule is used to increase the initial seed length and recalculate if there is no solution for the slave polynomial of the incompatible block until a solution is found.

[0153] Optionally, the test execution module includes:

[0154] The flag reading submodule is used to read the flag of the current test cube;

[0155] A decoding submodule, for decoding the first flag bit read into a block vector whose values ​​are all 0; decoding the second flag bit read into a block vector whose values ​​are all 1; and decoding the fourth flag bit read to obtain a corresponding block vector based on the compressed seed read;

[0156] A vector concatenation submodule, used for sequentially connecting the block vectors obtained by decoding to obtain a test vector corresponding to the current test cube;

[0157] A testing submodule, used for inputting the obtained test vector into a scan chain to test the circuit of the chip to be tested;

[0158] The flag reading submodule is also used to read the flag of the next test cube until the test is completed.

[0159] Optionally, each test cube also includes an update bit, and the flag bit reading submodule is specifically used to: read the update bit of the next test cube, if the read update bit is the first value, continue to use the flag bit of the current test cube that has been read; if the read update bit is the second value, read the flag bit of the next test cube.

[0160] Optionally, the device further comprises:

[0161] A sorting and merging module is used to group the flag bits of the data blocks contained in each test cube into a flag bit sequence to obtain a flag bit sequence corresponding to each test cube; based on the flag bit sequence, reorder the test cubes in the test set so that compatible flag bit sequences are adjacent; merge the compatible flag bit sequences into a group so that the test cubes in the same group use the same flag bit sequence;

[0162] The update bit setting module is used to set the update bit for each test cube; wherein the update bit of the test cubes in the same group is a first value, and the update bit of the test cubes in different groups is a second value.

[0163] The embodiment of the present invention divides each test cube in the test set into data blocks according to a preset length, and compresses and encodes each data block. A test cube is divided into multiple data blocks, and the length of each data block is greatly reduced relative to the length of the test cube, thereby reducing the number of confirmed bits contained in each data block, thereby reducing the Smax value, achieving the purpose of improving the probability of successful encoding, and avoiding the situation of no solution. In addition, by reducing the number of confirmed bits, not only the complexity of calculating the LFSR seed can be reduced, but also the length of the LFSR seed can be reduced, so that a better compression effect can be obtained. Furthermore, the embodiment of the present invention does not encode each data block into an LFSR seed, but first encodes the flag bit of each data block, and then encodes the data block that needs to be LFSR encoded into the LFSR seed, and the data block that does not need to be LFSR encoded can be encoded using the flag bit. In this way, the number of LFSR encodings can be reduced, and the compression efficiency can be further improved; the LFSR seeds required to be stored can also be reduced, and the storage space can be further saved.

[0164] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0165] Reference Figure 4 , is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 4 As shown, the electronic device includes: a processor, a memory, a communication interface and a communication bus, and the processor, the memory and the communication interface communicate with each other through the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the steps of the chip testing method of the aforementioned embodiment.

[0166] An embodiment of the present invention provides a non-temporary computer-readable storage medium. When instructions in the storage medium are executed by a program or processor of a terminal, the terminal is enabled to execute the steps of the chip testing method of the aforementioned embodiment.

[0167] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0168] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0169] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0170] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a predictable manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0171] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0172] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0173] Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A chip testing method, It is characterized in that The method comprises: Each test cube in the test set is divided into data blocks according to a preset length; According to the data bits contained in each data block, each data block is encoded with a flag bit to obtain a flag bit of each data block; the flag bit is used to identify a decoding method of the data block, and the decoding method includes decoding using a preset value or decoding using a compressed seed; Performing polynomial compression coding on the incompatible blocks in the data block to obtain a compression seed of the incompatible blocks; the incompatible blocks refer to data bits in the data block that contain values ​​of both 0 and 1; The flag bits and compressed seeds included in the test set are stored in the chip to be tested in order; A corresponding test vector is obtained based on the flag bit and the compressed seed decoding, and is input into a scan chain to test the circuit of the chip to be tested.

2. The method according to claim 1, It is characterized in that The step of encoding the flag bit of each data block according to the data bits contained in each data block to obtain the flag bit of each data block includes: For a data block to be encoded currently, determining the type of the data block according to data bits included in the data block; If the type of the data block is a 0-compatible block, the flag bit of the 0-compatible block is encoded as a first flag bit; the 0-compatible block contains only data bits with a value of 0, or only data bits with a value of 0 and don't care bits; If the type of the data block is a 1-compatible block, the flag bit of the 1-compatible block is encoded as a second flag bit; the 1-compatible block only includes data bits with a value of 1, or only includes data bits with a value of 1 and irrelevant bits; If the type of the data block is a don't care block, the flag bit of the don't care block is encoded as a third flag bit; the don't care block only includes the don't care bit; If the type of the data block is an incompatible block, and it is determined that the main polynomial of the incompatible block has a solution, the flag bit of the incompatible block is encoded as the fourth flag bit; if it is determined that the main polynomial of the incompatible block has no solution but the slave polynomial has a solution, the flag bit of the incompatible block is encoded as the fifth flag bit.

3. The method according to claim 1, It is characterized in that The performing polynomial compression coding on the incompatible blocks in the data blocks to obtain compression seeds of the incompatible blocks includes: Solving the master polynomial of the incompatible block based on the initial seed length, and if the master polynomial of the incompatible block has a solution, using the solution of the master polynomial as the compression seed of the incompatible block; If the master polynomial of the incompatible block has no solution, then solve the slave polynomial of the incompatible block; if the slave polynomial of the incompatible block has a solution, then use the solution of the slave polynomial as the compression seed of the incompatible block; If the slave polynomial of the incompatible block has no solution, the initial seed length is increased and recalculated until a solution is found.

4. The method according to claim 1, It is characterized in that The decoding based on the flag bit and the compressed seed obtains a corresponding test vector, and inputs the test vector into a scan chain to test the circuit of the chip to be tested, including: Read the flag bit of the current test cube; For the first flag bit read, decode it into a block vector whose values ​​are all 0; for the second flag bit read, decode it into a block vector whose values ​​are all 1; for the fourth flag bit read, decode it based on the compressed seed read to obtain the corresponding block vector; Connect the decoded block vectors in sequence to obtain a test vector corresponding to the current test cube; Inputting the obtained test vector into a scan chain to test the circuit of the chip to be tested; Read the flag of the next test cube until the test is completed.

5. The method according to claim 4, It is characterized in that Each test cube also includes an update bit, and the flag bit of reading the next test cube includes: Read the update bit of the next test cube. If the read update bit is the first value, continue to use the flag bit of the current test cube that has been read. If the read update bit is the second value, the flag bit of the next test cube is read.

6. The method according to claim 1, It is characterized in that The method further comprises: The flag bits of the data blocks included in each test cube are combined into a flag bit sequence to obtain a flag bit sequence corresponding to each test cube; Based on the flag bit sequence, reorder the test cubes in the test set so that compatible flag bit sequences are adjacent; Combine compatible flag bit sequences into one group so that the test cubes in the same group use the same flag bit sequence; An update bit is set for each test cube; wherein the update bit of the test cubes in the same group is a first value, and the update bit of the test cubes in different groups is a second value.

7. A chip testing device, It is characterized in that The device comprises: The test set segmentation module is used to segment each test cube in the test set into data blocks according to a preset length; A flag encoding module, used to encode the flag of each data block according to the data bits contained in each data block, so as to obtain the flag of each data block; the flag is used to identify the decoding method of the data block, and the decoding method includes decoding using a preset value or decoding using a compressed seed; A polynomial encoding module, used for performing polynomial compression encoding on the incompatible blocks in the data block to obtain a compression seed of the incompatible blocks; the incompatible blocks refer to data bits in the data block that contain values ​​of both 0 and 1; A compressed data storage module, used for storing the flag bits and compressed seeds included in the test set into the chip to be tested in sequence; The test execution module obtains a corresponding test vector based on the flag bit and the compressed seed decoding, and inputs the test vector into the scan chain to test the circuit of the chip to be tested.

8. An electronic device, It is characterized in that include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the steps of the chip testing method according to any one of claims 1 to 6.

9. A readable storage medium, It is characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the chip testing method according to any one of claims 1 to 6 are implemented.

10. A computer program product comprising a computer program, It is characterized in that The computer program is executed by a processor according to the steps of the chip testing method according to any one of claims 1 to 6.