Chip and testing method thereof

By integrating encoding circuits and decoding circuits in the chip, the problem of expensive automatic testing machines in the existing technology is solved, and the scanning chain is quickly tested on the chip side is realized, reducing the testing cost.

CN112731121BActive Publication Date: 2024-11-29REALTEK SEMICON CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201910974362.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-14
Publication Date
2024-11-29
Estimated Expiration
2039-10-14

AI Technical Summary

Technical Problem

The existing chip testing methods require expensive automatic testing machines, and it is impossible to clearly determine whether the chip testing failure is due to a digital logic defect or the inability to enter scanning mode.

Method used

By integrating the encoding circuit and the decoding circuit in the chip, the test sequence is output to multiple scanning chains, the scanning output data is generated, and the decoding circuit is used to determine whether there is an error in the scanning chain.

Benefits of technology

It realizes that scanning chain testing is performed directly on the chip side without the need for expensive automatic testing machines, quickly clarifying the reasons for the failure of the test sequence, and reducing the testing cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112731121B_ABST
    Figure CN112731121B_ABST
Patent Text Reader

Abstract

A chip and a chip testing method. The chip testing method comprises the following steps: an encoding circuit outputs a plurality of test sequences to a plurality of scan chains; the plurality of scan chains generate a plurality of scan output data according to the plurality of test sequences; and a decoding circuit determines whether the plurality of scan chains have errors according to the plurality of scan output data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a chip and a testing method thereof, and in particular to a chip for scan chain testing and a testing method thereof. Background Art

[0002] The existing chip testing method is to switch the chip to scan mode by inputting a control signal from an automatic test machine, and then use a scan test sequence with high error coverage to test and diagnose through a scan chain, thereby finding the location of the chip error failure for engineers to analyze. However, such a test process requires expensive automatic test machines to perform the test, and it is impossible to know whether the IC chip test failure is due to a defect in the digital logic of the chip or the inability to successfully enter the scan mode for testing. Summary of the invention

[0003] An embodiment of the present disclosure provides a chip testing method. The chip testing method comprises the following steps: an encoding circuit outputs a plurality of test sequences to a plurality of scan chains; the plurality of scan chains generate a plurality of scan output data according to the plurality of test sequences; and a decoding circuit determines whether the plurality of scan chains have errors according to the plurality of scan output data.

[0004] Another embodiment of the present disclosure is to provide a chip. The chip includes multiple scan chains, an encoding circuit and a decoding circuit. The encoding circuit is used to output multiple test sequences to the multiple scan chains. The decoding circuit is used to receive multiple scan output data from the multiple scan chains, and determine whether the multiple scan chains have errors based on the multiple scan output data, wherein the multiple scan output data are generated by the multiple scan chains based on the multiple test sequences. BRIEF DESCRIPTION OF THE DRAWINGS

[0005] In order to make the above and other objects, features, advantages and embodiments of the present invention more clearly understood, the following are the descriptions of the accompanying drawings:

[0006] Figure 1 is a schematic diagram of a chip according to some embodiments of the present disclosure;

[0007] Figure 2 is a flow chart of a testing method according to some embodiments of the present disclosure;

[0008] Figure 3 is a schematic diagram of a coding circuit according to some embodiments of the present disclosure;

[0009] Figure 4 is a schematic diagram of another encoding circuit according to some embodiments of the present disclosure;

[0010] Figure 5is a schematic diagram of a decoding circuit according to some embodiments of the present disclosure;

[0011] Figure 6 is a schematic diagram of a decoding circuit according to some embodiments of the present disclosure; and

[0012] Figure 7 is a schematic diagram of another decoding circuit according to some embodiments of the present disclosure.

[0013] Explanation of symbols

[0014] 100: Chip

[0015] 190: Mode switching circuit

[0016] 130A to 130E: Scan chain

[0017] 132A to 132C: Functional logic circuits

[0018] 110, 110A, 110B: Encoding circuit

[0019] 150, 150A, 150B: Decoding circuit

[0020] 152, 152A, 152B: Filling circuit

[0021] 154, 154A, 154B: Sub-decoding circuit

[0022] 159A to 159E: Sub-filling circuit

[0023] 900: Microprocessor

[0024] SC: Control signal

[0025] 170, 172A to 172E: Multiplexer

[0026] ER: Judgment Data

[0027] SE: Enable signal

[0028] SI1 to SI5: Scan input data

[0029] FI1 to FI4: Receive function input data

[0030] SO1 to SO5: Scan output data

[0031] FO1 to FO3: Function output data

[0032] Din1 to Din4: Input bits

[0033] Do1 to Do4: Output bits

[0034] Check_bit1 to Check_bit3: Check bits

[0035] Error: Output bits

[0036] 200: Chip testing method

[0037] S210 to S230: Steps DETAILED DESCRIPTION

[0038] The following disclosure provides many different embodiments or examples for implementing different features of the present invention. The elements and configurations in the specific examples are used to simplify the present disclosure in the following discussion. Any examples discussed are only used for illustrative purposes and do not limit the scope and significance of the present invention or its examples in any way.

[0039] Figure 1 1 is a schematic diagram of a chip 100 according to some embodiments of the present disclosure. The chip 100 includes a plurality of scan chains 130A to 130C, an encoding circuit 110, and a decoding circuit 150. In terms of connection, the plurality of scan chains 130A to 130C are coupled to the encoding circuit 110 and the decoding circuit 150. The chip 100 is coupled to a microprocessor 900 to switch the chip 100 to operate in a functional mode or a scan chain test mode according to information transmitted by the microprocessor 900. Figure 1 The chip 100 shown is only an example, but the present disclosure is not limited thereto.

[0040] In some embodiments, the chip 100 further includes a mode switching circuit 190, a plurality of multiplexers 172A to 172C, and a multiplexer 170. The mode switching circuit 190 is used to transmit a control signal SC to the multiplexer 170 and the multiplexers 172A to 172C according to information transmitted by the microprocessor 900. In terms of connection relationship, the control end of the multiplexers 172A to 172C is coupled to the mode switching circuit 190, one of the input ends of the multiplexers 172A to 172C is used to receive the scan input data SI1 to SI3, the other input end of the multiplexers 172A to 172C is coupled to the encoding circuit 110, and the output end of the multiplexers 172A to 172C is coupled to the scan chains 130A to 130C. In addition, a control terminal of the multiplexer 170 is coupled to the mode switching circuit 190 , one of the input terminals of the multiplexer 170 is used to receive the enable signal SE, and an output terminal of the multiplexer 170 is coupled to the scan chains 130A to 130C.

[0041] like Figure 1As shown, the chip 100 includes a plurality of functional logic circuits 132A to 132C. The functional logic circuits 132A to 132C correspond to one of the scan chains 130A to 130C respectively. One end of the functional logic circuits 132A to 132C is used to receive functional input data FI1 to FI4, and the other end of the functional logic circuits 132A to 132C is used to send functional output data FO1 to FO3.

[0042] Details of the embodiments of the present invention are described below. Figure 2 Public, among them Figure 2 Is applicable to Figure 1 Flowchart of a testing method 200 for chip 100 in FIG. Figure 2 2 is a flowchart of a test method 200 according to some embodiments of the present invention. However, the embodiments of the present invention are not limited thereto. The test method 200 includes steps S210 to S230. To make the chip test method 200 of this embodiment easier to understand, please refer to Figure 1 .

[0043] Step S210: Output multiple test sequences to multiple scan chains by the encoding circuit. Figure 1 In some embodiments, the encoding circuit 110 outputs a plurality of test sequences to a plurality of scan chains. Specifically, in some embodiments, the encoding circuit 110 receives a plurality of scan input data SI1 to SI3 and generates a plurality of test sequences according to the plurality of scan input data SI1 to SI3 and at least one check data.

[0044] For one implementation of step S210, please refer to Figure 3 . Figure 3 1 is a schematic diagram of a coding circuit 110A according to some embodiments of the present disclosure. The coding circuit 110A is a parity check coding circuit, including input bits Din1 to Din4, output bits Do1 to Do4 and a check bit Check_bit1. Figure 3 As shown, the encoding circuit 110A receives scan input data SI1 to SI4 to form input bits Din1 to Din4, and generates a test sequence according to the scan input data SI1 to SI4 and the check data, and the test sequence includes output bits Do1 to Do4 and a check bit Check_bit1. The encoding circuit 110A transmits the output bits Do1 to Do4 and the check bit Check_bit1 to the scan chains 130A to 130E.

[0045] For another implementation of step S210, please refer to Figure 4 . Figure 41 is a schematic diagram of another encoding circuit 110B according to some embodiments of the present disclosure. The encoding circuit 110B is a Hamming code encoding circuit, including input bits Din1 to Din2, output bits Do1 to Do2 and check bits Check_bit1 to Check_bit3. Figure 4 As shown, the encoding circuit 110B receives the scan input data SI1 to SI2 to form the input bits Din1 to Din2, and generates a test sequence according to the scan input data SI1 to SI2 and the check data, and the test sequence includes output bits Do1 to Do2 and check bits Check_bit1 to Check_bit3. The encoding circuit 110B transmits the output bits Do1 to Do2 and the check bits Check_bit1 to Check_bit3 to the scan chains 130A to 130E.

[0046] In some embodiments, in step S210, the encoding circuit 110 first transmits the test sequence to the multiplexers 172A to 172E, and then the multiplexers 172A to 172E transmit the test sequence to the scan chains 130A to 130E in the scan chain test mode. In some embodiments, the multiplexers 172A to 172E are switched to the scan chain test mode according to the control signal SC transmitted by the mode switching circuit 190.

[0047] Step S220: Generate multiple scan output data from multiple scan chains according to multiple test sequences. Figure 1 After receiving the test sequence, the scan chains 130A to 130C generate scan output data SO1 to SO3 and transmit the scan output data SO1 to SO3 to the decoding circuit 150. In some embodiments, in step S220, the multiplexer 170 outputs an enable signal SE to the scan chains 130A to 130C according to the control signal SC transmitted by the mode switching circuit 190, so that the scan chains 130A to 130C operate in the scan chain test mode.

[0048] Step S230: The decoding circuit determines whether there are errors in the plurality of scan chains according to the plurality of scan output data. Figure 1 The decoding circuit 150 determines whether there is an error in the scan chains 130A to 130C according to the plurality of scan output data SO1 to SO3.

[0049] Please also read Figure 5 . Figure 51 is a schematic diagram of a decoding circuit according to some embodiments of the present disclosure. In some embodiments, the decoding circuit 150 includes a padding circuit 152 and a sub-decoding circuit 154. In step S230, the scan chains 130A to 130E transmit the scan output data SO1 to SO5 to the padding circuit 152. The padding circuit 152 pads the scan output data SO1 to SO5 to generate padding data of the same length, and transmits the padding data to the sub-decoding circuit 154.

[0050] Specifically, when the lengths of the scan chains 130A to 130E are different, the lengths of the scan output data SO1 to SO5 generated by the scan chains 130A to 130E are different. max The padding circuit 152 pads the scan output data SO1 to SO5 so that the lengths of the scan output data SO1 to SO5 are all the maximum length L. max The filling circuit 152 achieves the scan chain filling function by integrating shift registers of different lengths. For example, in this embodiment, the lengths of the scan chains 130A to 130E are L1, L2, L3, L4 and L5 respectively, and the maximum length of the scan chains 130A to 130E is defined as L max In order to make the scan chain output data SO and the check bit Check_bit reach the sub-decoding circuit 154 at the same clock, the bit-filling circuit 152 adds (L max -L1)、(L max -L2)、(L max -L3)、(L max -L4) and (L max -L5) length shift register, thereby achieving the scan chain filling function. After the filling process, the filling circuit 152 generates the filled data and transmits the filled data to the sub-decoding circuit 154. In some embodiments, the sub-decoding circuit 154 generates the judgment data ER according to the filled data. The judgment data ER is used to indicate whether there is an error in the scan chain 130A to 130E.

[0051] In some embodiments, Figure 5 As shown, the bit-filling circuit 152 includes sub-bit-filling circuits 159A to 159E. The sub-bit-filling circuits 159A to 159E are respectively coupled to one of the scan chains 130A to 130E to perform bit-filling processing on the output data transmitted by one of the scan chains 130A to 130E.

[0052] For one implementation of step S230, please refer to Figure 6 . Figure 61 is a schematic diagram of a decoding circuit 150A according to some embodiments of the present disclosure. The sub-decoding circuit 154A is a parity check decoding circuit, including input bits Din1 to Din4 and a check bit Check_bit1. The sub-decoding circuit 154A determines whether there is an error in the scan chain 130A to 130E according to the input bits Din1 to Din4 and the check bit Check_bit1, and outputs the determination result through the output bit Error.

[0053] For another implementation of step S230, please refer to Figure 7 . Figure 7 1 is a schematic diagram of another decoding circuit 150B according to some embodiments of the present disclosure. The sub-decoding circuit 154B is a Hamming code decoding circuit, including input bits Din1 to Din2 and check bits Check_bit1 to Check_bit3. The sub-decoding circuit 154B determines whether there is an error in the scan chain 130A to 130E according to the input bits Din1 to Din2 and the check bits Check_bit1 to Check_bit3, and outputs the determination result through the output bit Error.

[0054] In some embodiments, the decoding circuit 150 corresponds to the encoding circuit 110. That is, when the encoding circuit 110 is a parity check encoding circuit, the decoding circuit 150 is a parity check decoding circuit. When the encoding circuit 110 is a Hamming code encoding circuit, the decoding circuit 150 is a Hamming code decoding circuit. In addition, the above decoding circuit and encoding circuit are only used for illustrative purposes, and other types of decoding circuits and encoding circuits, such as low-density parity check code (LDPC Code), BCH correction code, cyclic redundancy check code and other encoding and decoding technologies are also within the scope of this embodiment.

[0055] In addition, the lengths of the scan chains 130A to 130E, the number of the scan chains 130A to 130E, the number of the multiplexers 172A to 172E, etc. shown in the drawings of the present disclosure are only for illustrative purposes, and the embodiments of the present disclosure are not limited thereto.

[0056] It can be seen from the above-mentioned embodiments of the present disclosure that the embodiments of the present disclosure provide a chip and a test method thereof, by integrating a scan chain error detection circuit into an integrated circuit chip, that is, integrating an encoding circuit and a decoding circuit into the chip, so that engineers can directly perform scan chain testing on the chip side, thereby accelerating and quickly clarifying whether the failure of the test sequence is caused by the inability to enter the scan mode, and reducing the test cost increased by the automatic test machine debugging.

[0057] In addition, the above examples include sequential exemplary steps, but the steps do not have to be performed in the order shown. Performing the steps in different orders is within the scope of the present disclosure. Within the concept and scope of the embodiments of the present disclosure, the steps may be added, replaced, changed in order and / or omitted as appropriate.

[0058] Although the present disclosure has been disclosed in the above embodiments, it is not intended to limit the present disclosure. Any person skilled in the art can make various changes and modifications without departing from the concept and scope of the present disclosure. Therefore, the scope of protection of the present disclosure shall be based on what is defined in the claims.

Claims

1. A chip testing method, comprising: Outputting a plurality of test sequences to a plurality of scan chains by an encoding circuit; generating a plurality of scan output data by the plurality of scan chains according to the plurality of test sequences; and A decoding circuit determines whether the plurality of scan chains have errors according to the plurality of scan output data, The encoding circuit is further used to receive a plurality of scan input data, and generate the plurality of test sequences according to the plurality of scan input data and at least one check data, wherein the plurality of scan output data includes a maximum length, wherein the chip testing method further includes: Performing bit-filling processing on the plurality of scanned output data by a bit-filling circuit to generate a plurality of bit-filled data of the same length; and The padding circuit performs padding processing to make the lengths of the plurality of scan output data equal to the maximum length.

2. The chip testing method according to claim 1, comprising: transmitting the plurality of test sequences to the plurality of scan chains by a plurality of multiplexers in a scan chain test mode; and A mode switching circuit outputs a control signal to the multiplexers to switch the multiplexers to the scan chain test mode.

3. A chip comprising: Multiple scan chains; an encoding circuit for outputting a plurality of test sequences to the plurality of scan chains; and a decoding circuit for receiving a plurality of scan output data from the plurality of scan chains and determining whether the plurality of scan chains have errors according to the plurality of scan output data, wherein the plurality of scan output data are generated by the plurality of scan chains according to the plurality of test sequences, The encoding circuit is further used to receive a plurality of scan input data and generate the plurality of test sequences according to the plurality of scan input data and at least one check data, wherein the decoding circuit comprises: A padding circuit is used to pad the plurality of scanned output data to generate a plurality of padded data with the same length. The plurality of scanned output data include a maximum length. The padding circuit pads the plurality of scanned output data to make the length of the plurality of scanned output data equal to the maximum length.

4. The chip according to claim 3, further comprising: a plurality of multiplexers coupled to the encoding circuit and the plurality of scan chains, for switching to a scan chain test mode according to a control signal, and transmitting the plurality of test sequences to the plurality of scan chains when switching to the scan chain test mode; and A mode switching circuit is used to output the control signal to the multiplexers.

5. The chip according to claim 3, further comprising: a multiplexer for outputting an enable signal to the plurality of scan chains according to a control signal, so that the plurality of scan chains operate in a scan chain test mode; and A mode switching circuit is used to output the control signal to the multiplexer. 6 . The chip as claimed in claim 3 , wherein the decoding circuit is further used for generating a determination data according to the plurality of bit-padded data, wherein the determination data is used for indicating whether there is an error in the plurality of scan chains.

Citation Information

Patent Citations

  • Built-in system test method of multiple static random access memory (SRAM) based on scanning test

    CN101996687A

  • Conditional access chip, and built-in self-test circuit and testing method thereof

    CN107492395A