A chip built-in self-test circuit, method and semiconductor device

Through the built-in self-testing circuit of the chip, the chip clock frequency is adjusted using frequency dividers and comparators, the problem of low testing efficiency of chip clock modules in the existing technology is solved, fast and accurate frequency correction is achieved, and the chip self-test efficiency is improved.

CN116298773BActive Publication Date: 2024-11-22JACHIP SEMICONDUCTOR (SHENZHEN) CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211714025.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-27
Publication Date
2024-11-22
Estimated Expiration
2042-12-27

AI Technical Summary

Technical Problem

The prior art has low efficiency in testing and adjusting chip clock modules, which cannot meet the needs of high-efficiency chip testing in large batches.

Method used

A built-in self-test circuit of chip is designed, including the first frequency divider, the second frequency divider, the counter, the comparator and the FPGA. By comparing the count value of the external reference clock signal and the clock signal in the chip, the frequency division ratio is adjusted. To correct the clock frequency, the adjustment process is accelerated using multiplexers and analog-to-digital converters.

Benefits of technology

Through rapid comparison and adjustment, the efficiency of chip self-testing is improved, the comparator structure is simplified, and the testing efficiency and accuracy are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116298773B_ABST
    Figure CN116298773B_ABST
Patent Text Reader

Abstract

The present application discloses a chip built-in self-test circuit, method and semiconductor device. The circuit uses FPGA to perform different operations according to the clock comparison results. When the comparison results are equal, the FPGA control circuit stops working and outputs a completion mark; when the comparison results are not equal, the FPGA controls the first frequency divider or the second frequency divider to change the frequency division ratio with a preset step value, so that the difference between the adjusted first count value and the second count value meets the accuracy requirement, and sends the adjustment step number to the trimming circuit to change the second clock signal. The present application can improve the chip trimming efficiency through the above technical solution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention generally relates to the field of chip testing technology, and more particularly to a chip built-in self-test circuit, method and semiconductor device. Background Art

[0002] In order to ensure the chip yield rate during the chip design and production process, the chip needs to be tested using an ATE test bench. The clock generation circuit is a very important circuit in the chip and SoC, and all internal digital circuits are synchronized based on this clock. Usually the clock is generated by an external crystal oscillator, and then directly or through PLL multiplication to supply the internal digital circuit. However, people's requirements for system BOM costs are getting lower and lower. For low-cost chips, the chip no longer supports external crystal oscillators, and only internal integrated RC oscillators have become a mainstream trend, which can save the cost of external crystal oscillators.

[0003] However, RC oscillators generally generate clocks based on integrated resistors and / or capacitor arrays. Due to process deviations or defects, each chip actually processed has a certain difference from the designed frequency. Therefore, before leaving the factory, the frequency of the RC oscillator output needs to be adjusted to the designed target frequency and the corresponding accuracy through an ATE test machine. If it cannot be adjusted to the designed target requirements and accuracy, it is usually considered a bad chip. When testing the chip clock, the prior art requires the ATE test machine to adjust the clock module of each chip through a two-wire test controller for multiple cycles. This method is inefficient and cannot meet the needs of large-scale and efficient chip testing. Summary of the invention

[0004] In order to at least solve the technical problems described in the above background technology section, the present invention proposes a chip built-in self-test circuit, method and semiconductor device. Using the solution of the present invention, the clock module of the chip is tested and adjusted through the built-in self-test circuit, which overcomes the disadvantage of low efficiency of the original method for testing and adjusting the clock module in the chip. In view of this, the present invention provides solutions in the following aspects.

[0005] The first aspect of the present invention provides a chip built-in self-test circuit, including a first frequency divider, a second frequency divider, a first counter, a second counter, a comparator and an FPGA; the first frequency divider receives a first clock signal of an external reference, and converts the first clock signal into a first count value through the first counter; the second frequency divider receives a second clock signal generated in the chip, and converts the second clock signal into a second count value through the second counter; the comparator compares the first count value and the second count value, and sends the comparison result to the FPGA; when the comparison results are equal, the FPGA control circuit stops working and outputs a completion mark; when the comparison results are not equal, the FPGA controls the first frequency divider or the second frequency divider to change the frequency division ratio with a preset step value, so that the adjusted first count value is equal to the second count value, and sends the adjustment step number to the trimming circuit to change the second clock signal.

[0006] In one embodiment, the present invention further comprises a first multiplexer, a second multiplexer, a first analog-to-digital converter, and a second analog-to-digital converter; the input end of the first multiplexer is connected to the first clock signal, the first output end of the first multiplexer is connected to the input end of the first frequency divider, the second output end of the first multiplexer is connected to the input end of the first analog-to-digital converter, and the output end of the first analog-to-digital converter is connected to the first analog-to-digital converter.

[0007] The control end of the first multiplexer is connected to the control end of the second multiplexer; the input end of the second multiplexer is connected to the second clock signal, the first output end of the second multiplexer is connected to the input end of the second frequency divider, the second output end of the second multiplexer is connected to the input end of the second analog-to-digital converter, and the output end of the second analog-to-digital converter is connected to the input end of the FPGA.

[0008] In one embodiment, the comparator includes a plurality of comparison units with the same structure connected in series; the comparison unit includes a first transistor, a second transistor, a third transistor, a fourth transistor, a fifth transistor, a sixth transistor, a seventh transistor, and an eighth transistor; the source of the first transistor, the source of the second transistor, and the source of the third transistor are connected to the first input terminal, the drain of the first transistor, the drain of the second transistor, and the drain of the eighth transistor are connected to the first output terminal, the drain of the third transistor is connected to the source of the fourth transistor, and the drain of the fourth transistor, the drain of the fifth transistor, and the drain of the sixth transistor are connected to the second output terminal; the gate of the first transistor is connected to the first clock signal, the gate of the second transistor is connected to the second clock signal, the gate of the third transistor is connected to the first clock signal, and the gate of the fourth transistor is connected to the inverse signal of the second clock signal; the source of the fifth transistor, the source of the sixth transistor, and the source of the seventh transistor are connected to the second input terminal, the drain of the seventh transistor is connected to the source of the eighth transistor, the gate of the fifth transistor is connected to the inverse signal of the first clock signal, the gate of the sixth transistor is connected to the inverse signal of the second clock signal, the gate of the seventh transistor is connected to the inverse signal of the first clock signal, and the gate of the eighth transistor is connected to the second clock signal.

[0009] In one embodiment, the first transistor, the second transistor, the third transistor, the fourth transistor, the fifth transistor, the sixth transistor, the seventh transistor, and the eighth transistor are all NMOS transistors.

[0010] In one embodiment, the first clock signal is derived from an external test bench; and the second clock signal is derived from an internal RC oscillator.

[0011] A second aspect of the present invention provides a chip built-in self-test method, which uses any of the chip built-in self-test circuits described above to perform testing.

[0012] A third aspect of the present invention provides a semiconductor device comprising a built-in-chip self-test circuit as described in any one of the above.

[0013] By using the solution provided by the present invention, on the one hand, the adjustment mode of the frequency divider is determined by the comparison result of the comparator, and the specific adjustment value is calculated by the result of the A / D conversion. Combining the two can make the calculation of the adjustment value more rapid and accurate, thereby improving the efficiency of the chip self-test. On the other hand, the comparator disclosed by the present invention has a simple structure and a fast comparison speed, which provides a basis for improving the efficiency of the chip self-test. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:

[0015] Figure 1 is a diagram showing a built-in self-test system according to an embodiment of the present invention;

[0016] Figure 2 2 is a diagram showing a built-in self-test circuit according to an embodiment of the present invention;

[0017] Figure 3 2 is a diagram showing a comparator module according to an embodiment of the present invention;

[0018] Figure 4 FIG. 2 is a diagram showing a circuit structure of a comparator unit according to an embodiment of the present invention. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0020] It should be understood that the terms "first", "second", "third" and "fourth" etc. in the claims, specifications and drawings of the present invention are used to distinguish different objects rather than to describe a specific order. The terms "include" and "comprise" used in the specification and claims of the present invention indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections.

[0021] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the claims, the singular forms of "a", "an" and "the" are intended to include the plural forms unless the context clearly indicates otherwise. It should also be further understood that the term "and / or" used in the specification of the present invention and the claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0022] As used in this specification and claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0023] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0024] According to a first aspect of the present invention, a chip built-in self-test circuit is provided. Figure 1 The invention shows a chip built-in self-test system according to an embodiment of the present invention. The system disclosed by the invention only requires the test machine ATE to provide a reference clock ref_clk of a design target, and the chip DIE starts the self-test. After the test is completed, the chip directly outputs a test completion signal bist_done and a bist_pass signal indicating whether the rc oscillator function of the chip is a bad chip.

[0025] The specific working process of the chip built-in self-test system of the present invention is as follows:

[0026] (1) The ATE test machine provides the designed target frequency clock to the test chip DIE;

[0027] (2) The built-in self-test circuit is started through the bist_go output of the two-wire test controller test_clk and test_dio;

[0028] (3) The ATE test machine waits for the bist_done signal indicating the built-in self-test and the bist_pass signal indicating whether the DIE in this test is a bad chip;

[0029] (4) The bist_go signal is 1 to start the built-in bist circuit module and generate the corresponding bist_done and bistpass signals;

[0030] (5) bist_done = 1 and bist_pass = 1 indicates that the chip has been trimmed. The corresponding rc_trim value in the bist circuit module is read as the calibration value through the two-wire test controller and written into the corresponding position of the NVM memory. When the chip starts normal function, the rc_trim value in the RCU module is updated with this value to correct the RC oscillator clock accuracy and precision problems caused by process deviation. Baddies with bist_done = 1 and bist_pass = 0 are discarded without any processing.

[0031] In one embodiment of the present invention, Figure 2 The invention shows a chip built-in self-test circuit according to an embodiment of the present invention. The circuit includes a first frequency divider, a second frequency divider, a first counter, a second counter, a comparator and an FPGA; the first frequency divider receives a first clock signal of an external reference, and converts the first clock signal into a first count value through the first counter; the second frequency divider receives a second clock signal generated in the chip, and converts the second clock signal into a second count value through the second counter; the comparator compares the first count value and the second count value, and sends the comparison result to the FPGA; when the comparison result is equal, the FPGA control circuit stops working and outputs a completion mark; when the comparison result is not equal, the FPGA controls the first frequency divider or the second frequency divider to change the frequency division ratio with a preset step value, so that the adjusted first count value is equal to the second count value, and sends the adjustment step number to the trimming circuit to change the second clock signal.

[0032] Specifically, when the count value obtained by the first clock signal (i.e., the reference clock count value) is greater than the count value obtained by the second clock signal (i.e., the on-chip clock count value), it indicates that the on-chip clock frequency is too small and the frequency division ratio of the second frequency divider needs to be reduced; when the count value obtained by the first clock signal (i.e., the reference clock count value) is less than the count value obtained by the second clock signal (i.e., the on-chip clock count value), it indicates that the on-chip clock frequency is too large and the frequency division ratio of the second frequency divider needs to be increased; when the count value obtained by the first clock signal (i.e., the reference clock count value) is equal to the count value obtained by the second clock signal (i.e., the on-chip clock count value), it indicates that the on-chip clock is qualified. It can be understood that the frequency division ratio of the first frequency divider can also be adjusted according to the actual situation, as long as the final adjustment result meets the preset clock error.

[0033] It should be noted that Figure 2 The comparator in the figure is only a schematic illustration. The specific structure of the comparator can be found in the following text and Figure 3 , 4 Description in .

[0034] In one embodiment, it also includes a first multiplexer, a second multiplexer, a first analog-to-digital converter, and a second analog-to-digital converter; the input end of the first multiplexer is connected to the first clock signal, the first output end of the first multiplexer is connected to the input end of the first frequency divider, the second output end of the first multiplexer is connected to the input end of the first analog-to-digital converter, and the output end of the first analog-to-digital converter is connected to the input end of the FPGA; the control end of the first multiplexer is connected to the control end of the second multiplexer; the input end of the second multiplexer is connected to the second clock signal, the first output end of the second multiplexer is connected to the input end of the second frequency divider, the second output end of the second multiplexer is connected to the input end of the second analog-to-digital converter, and the output end of the second analog-to-digital converter is connected to the input end of the FPGA.

[0035] In the present invention, the bist_go signal generated by the two-wire test controller controls the two multiplexers to start working, and one output of the multiplexer is compared with the clock count value through the counter and divider described above, so as to obtain the adjustment direction of the divider, that is, whether to increase the division ratio or decrease the division ratio; the other output of the multiplexer is converted into a digital signal through an analog-to-digital converter for calculation by the FPGA to generate a specific trimming value RC_trim.

[0036] For example, within a predetermined time period such as 1s, the reference clock count value obtained by A / D is 100, the on-chip generated clock count value is 80, and the clock accuracy is 10. At this time, the on-chip clock value that needs to be adjusted is 10. FPGA adjusts the frequency division ratio of the on-chip clock divider according to a preset step value, such as 1, and the count value of the on-chip clock can be changed by adjusting the frequency division ratio. FPGA will control the frequency division ratio to be adjusted all the time, so that the difference between the reference clock count value and the on-chip clock count value remains within the clock accuracy. Since the clock accuracy is 10, the amount required to be adjusted is 10, and since the adjustment step is 1, a total of 10 / 1=10 adjustments are required to maintain the clock accuracy. When the predetermined clock accuracy is reached, the FPGA sends a bist_pass=1 signal, and sends this adjustment step value as the rc_trim value to the NVM memory, so that the trimming circuit adjusts the clock frequency according to this rc_trim. It is understandable that if the difference between the reference clock count value and the on-chip clock count value still cannot be maintained within the clock accuracy through adjustment of the frequency divider, it means that the RCU cannot be adjusted and is a baddie.

[0037] In the present invention, the adjustment mode of the frequency divider is determined by the comparison result of the comparator, and the specific adjustment value is calculated by the result of A / D conversion. Combining the two can make the calculation of the adjustment value faster and more accurate, thereby improving the efficiency of chip self-test.

[0038] In one embodiment of the present invention, Figure 3 FIG. 1 is a schematic diagram showing a comparator module according to an embodiment of the present invention. Figure 3 It can be seen that the comparator is composed of multiple comparison units with the same structure. Each comparison unit has input terminals A and B. A and B represent the results of the previous comparison respectively. The inputs A and B of the highest comparison unit take logic 1 and 0 respectively. When D1 is greater than D2, the comparison result L=G=A; when D1 is less than D2, the comparison result L=G=B; when D1 is equal to D2, L=A, G=B. The logical expression is as follows:

[0039]

[0040] Figure 4 1 is a schematic diagram showing the circuit structure of a comparator unit according to an embodiment of the present invention. The comparison unit includes a first transistor, a second transistor, a third transistor, a fourth transistor, a fifth transistor, a sixth transistor, a seventh transistor, and an eighth transistor; the source of the first transistor, the source of the second transistor, and the source of the third transistor are connected to the first input terminal, the drain of the first transistor, the drain of the second transistor, and the drain of the eighth transistor are connected to the first output terminal, the drain of the third transistor is connected to the source of the fourth transistor, and the drain of the fourth transistor, the drain of the fifth transistor, and the drain of the sixth transistor are connected to the second output terminal; the gate of the first transistor is connected to the first clock signal, the gate of the second transistor is connected to the second clock signal, the gate of the third transistor is connected to the first clock signal, and the gate of the fourth transistor is connected to the inverse signal of the second clock signal; the source of the fifth transistor, the source of the sixth transistor, and the source of the seventh transistor are connected to the second input terminal, the drain of the seventh transistor is connected to the source of the eighth transistor, the gate of the fifth transistor is connected to the inverse signal of the first clock signal, the gate of the sixth transistor is connected to the inverse signal of the second clock signal, the gate of the seventh transistor is connected to the inverse signal of the first clock signal, and the gate of the eighth transistor is connected to the second clock signal. The first transistor, the second transistor, the third transistor, the fourth transistor, the fifth transistor, the sixth transistor, the seventh transistor, and the eighth transistor are all NMOS transistors or PMOS transistors. The comparator disclosed in the present invention has a simple structure and a fast comparison speed, which provides a basis for improving the efficiency of chip self-test.

[0041] A second aspect of the present invention provides a chip built-in self-test method, which uses the chip built-in self-test circuit as described above to perform testing.

[0042] A third aspect of the present invention provides a semiconductor device comprising the above-mentioned built-in-chip self-test circuit.

[0043] Although this specification has shown and described a plurality of embodiments of the present invention, it is obvious to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will appreciate many changes, modifications and alternatives without departing from the thought and spirit of the present invention. It should be understood that in the process of practicing the present invention, various alternatives to the embodiments of the present invention described herein may be adopted. The attached claims are intended to define the scope of protection of the present invention, and therefore cover the modular compositions, equivalents or alternatives within the scope of these claims.

Claims

1. A chip built-in self-test circuit, characterized in that: It includes a first frequency divider, a second frequency divider, a first counter, a second counter, a comparator and an FPGA; The first frequency divider receives a first clock signal of an external reference, and converts the first clock signal into a first count value through the first counter; The second frequency divider receives a second clock signal generated in the chip, and converts the second clock signal into a second count value through the second counter; The comparator compares the first count value and the second count value, and sends the comparison result to the FPGA; When the comparison results are equal, the FPGA control circuit stops working and outputs a completion mark; when the comparison results are not equal, the FPGA controls the first frequency divider or the second frequency divider to change the frequency division ratio with a preset step value, so that the difference between the adjusted first count value and the second count value meets the accuracy requirement, and sends the adjustment step number to the trimming circuit to change the second clock signal; Also includes a first multiplexer, a second multiplexer, a first analog-to-digital converter, and a second analog-to-digital converter; The input end of the first multiplexer is connected to the first clock signal, the first output end of the first multiplexer is connected to the input end of the first frequency divider, the second output end of the first multiplexer is connected to the input end of the first analog-to-digital converter, and the output end of the first analog-to-digital converter is connected to the input end of the FPGA; The control end of the first multiplexer is connected to the control end of the second multiplexer; The input end of the second multiplexer is connected to the second clock signal, the first output end of the second multiplexer is connected to the input end of the second frequency divider, the second output end of the second multiplexer is connected to the input end of the second analog-to-digital converter, and the output end of the second analog-to-digital converter is connected to the input end of the FPGA.

2. The chip built-in self-test circuit according to claim 1, characterized in that: The comparator includes a plurality of comparison units with the same structure connected in series; the comparison units include a first transistor, a second transistor, a third transistor, a fourth transistor, a fifth transistor, a sixth transistor, a seventh transistor, and an eighth transistor; The source of the first transistor, the source of the second transistor, and the source of the third transistor are connected to the first input terminal, the drain of the first transistor, the drain of the second transistor, and the drain of the eighth transistor are connected to the first output terminal, the drain of the third transistor is connected to the source of the fourth transistor, and the drain of the fourth transistor, the drain of the fifth transistor, and the drain of the sixth transistor are connected to the second output terminal; the gate of the first transistor is connected to the first clock signal, the gate of the second transistor is connected to the second clock signal, the gate of the third transistor is connected to the first clock signal, and the gate of the fourth transistor is connected to the inverse signal of the second clock signal; The source of the fifth transistor, the source of the sixth transistor, and the source of the seventh transistor are connected to the second input terminal, the drain of the seventh transistor is connected to the source of the eighth transistor, the gate of the fifth transistor is connected to the inverse signal of the first clock signal, the gate of the sixth transistor is connected to the inverse signal of the second clock signal, the gate of the seventh transistor is connected to the inverse signal of the first clock signal, and the gate of the eighth transistor is connected to the second clock signal.

3. The chip built-in self-test circuit according to claim 2, characterized in that: The first transistor, the second transistor, the third transistor, the fourth transistor, the fifth transistor, the sixth transistor, the seventh transistor and the eighth transistor are all NMOS transistors.

4. The chip built-in self-test circuit according to claim 1, characterized in that: The first clock signal comes from an external test bench; the second clock signal comes from an internal RC oscillator.

5. A chip built-in self-test method, characterized in that: The test is performed using the chip built-in self-test circuit as described in any one of claims 1 to 4.

6. A semiconductor device, characterized in that: The invention comprises a chip built-in self-test circuit as claimed in any one of claims 1 to 4.