A testing device and method for an entropy source chip

By using hardware circuit testing devices and interrupt signal control, the problems of low efficiency and low yield in entropy source chip testing have been solved, achieving efficient entropy source chip testing and yield improvement.

CN117471286BActive Publication Date: 2026-11-24CHENGDU AICH TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311628535.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2026-11-24
Estimated Expiration
2043-11-30

AI Technical Summary

Technical Problem

Existing entropy source chip testing has low efficiency and low yield. In existing technologies, software testing leads to the scrapping of the entire chip, which further reduces the yield.

Method used

A hardware circuit testing device is used to test the analog entropy source module through a control module and a test circuit. An interrupt signal is used to control the digital entropy source module to replace the abnormal analog entropy source, thereby improving testing efficiency and yield.

Benefits of technology

It improves the testing efficiency of entropy source chips, reduces the waste of testing resources, and increases chip yield.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117471286B_ABST
    Figure CN117471286B_ABST
Patent Text Reader

Abstract

This invention discloses a testing device and method for an entropy source chip, relating to the field of chip testing technology. The entropy source chip includes an analog entropy source module and a digital entropy source module. The testing device includes a control module and a testing circuit. The control module is connected to the testing circuit, the digital entropy source module, and the analog entropy source module, respectively. The analog entropy source module is also connected to the testing circuit. The control module, after configuring the parameters of the testing circuit, controls the testing circuit to test the analog entropy source signal output by the analog entropy source module according to preset test conditions. The testing circuit outputs an interrupt signal to the control module when the analog entropy source signal matches a preset target entropy source signal. The control module also determines that the digital entropy source module is in working mode after receiving the interrupt signal. This testing device for the entropy source chip can improve testing efficiency and increase the yield of the entropy source chip.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of chip testing technology, and in particular to a testing device and method for entropy source chips. Background Technology

[0002] Entropy sources are sources of unpredictable data streams and have broad application prospects in fields such as cryptography and random numbers. To improve the yield of entropy source chips, the entropy source functionality on the chip needs to be tested during the design and manufacturing process of the simulated entropy source.

[0003] In existing technologies, software is generally used to test simulated entropy sources. However, software can only test serial data, which leads to low testing efficiency. Furthermore, when a problem is found with the simulated entropy source function in the chip, the entire chip is discarded, further reducing the yield of the entropy source chip. Summary of the Invention

[0004] The purpose of this invention is to provide a testing device and method for entropy source chips, which solves the problems of low testing efficiency of existing entropy source chips and the fact that when a problem is found in the simulated entropy source function of the chip, the entire chip is discarded, which further reduces the yield of entropy source chips.

[0005] To achieve the above objectives, the present invention provides the following technical solution:

[0006] In a first aspect, the present invention provides a testing device for an entropy source chip, the entropy source chip comprising an analog entropy source module and a digital entropy source module, and the testing device comprising a control module and a testing circuit. The control module is connected to the testing circuit, the digital entropy source module, and the analog entropy source module, respectively, and the analog entropy source module is also connected to the testing circuit. The control module is used to control the testing circuit to test the analog entropy source signal output by the analog entropy source module according to preset test conditions after configuring the parameters of the testing circuit. The testing circuit is used to output an interrupt signal to the control module when the analog entropy source signal matches a preset target entropy source signal. The control module is also used to determine that the digital entropy source module is in working mode after receiving the interrupt signal.

[0007] With the above technical solution, the control module configures the parameters of the test circuit, thereby controlling the test circuit to test the simulated entropy source signal output by the simulated entropy source module according to preset test conditions. When the test circuit detects that the simulated entropy source signal matches the preset target entropy source signal, it immediately outputs an interrupt signal to the control module, thereby ending the test of the simulated entropy source module. This can save test resources to a certain extent. Based on this, the test device for the entropy source chip provided by this invention can test the simulated entropy source module in the entropy source chip without software. Moreover, compared with software testing, the hardware circuit test efficiency is higher, which can improve the test efficiency of the entropy source chip. In addition, in this invention, after receiving the interrupt signal, the control module can also determine that the simulated entropy source module is abnormal, and then select a digital entropy source module to replace the abnormal simulated entropy source to realize the entropy source function of the entropy source chip, and put the digital entropy source module into working state, thereby further improving the yield of the entropy source chip.

[0008] Secondly, the present invention also provides a testing method for an entropy source chip, applied to the testing apparatus for the entropy source chip described in the above technical solution, the testing method for the entropy source chip comprising:

[0009] After configuring the test circuit parameters, the control module controls the test circuit to test the analog entropy source signal output by the analog entropy source module according to preset test conditions. When the analog entropy source signal matches the preset target entropy source signal, the test circuit outputs an interrupt signal to the control module. Upon receiving the interrupt signal, the control module determines that the digital entropy source module is in working mode.

[0010] Compared with the prior art, the beneficial effects of the entropy source chip testing method provided by the present invention are the same as those of the entropy source chip testing device described in the above technical solution, and will not be repeated here. Attached Figure Description

[0011] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this invention, illustrate exemplary embodiments of the invention and are used to explain the invention, but do not constitute an undue limitation of the invention. In the drawings:

[0012] Figure 1 A schematic diagram showing the connection between the test device for the entropy source chip and the entropy source chip provided in an embodiment of the present invention;

[0013] Figure 2 This is a schematic diagram of the test circuit provided in an embodiment of the present invention;

[0014] Figure 3 A flowchart illustrating the selection of the entropy source module provided in an embodiment of the present invention.

[0015] Figure label:

[0016] 11-Analog entropy source module, 12-Digital entropy source module

[0017] 21-Control module, 22-Test circuit,

[0018] 23-Entropy source selection module, 221-First test sub-circuit,

[0019] 222 - Second test sub-circuit, 223 - Third test sub-circuit,

[0020] 24-Storage module. Detailed Implementation

[0021] To facilitate a clear description of the technical solutions in the embodiments of the present invention, the terms "first" and "second" are used to distinguish identical or similar items with essentially the same function and effect. For example, the first threshold and the second threshold are merely used to distinguish different thresholds and do not limit their order. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and that the terms "first" and "second" are not necessarily different.

[0022] It should be noted that in this invention, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in this invention should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0023] In this invention, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, a combination of a and b, a combination of a and c, a combination of b and c, or a, b, and c, where a, b, and c can be single or multiple.

[0024] like Figure 1As shown, this invention provides a testing device for an entropy source chip. The entropy source chip includes an analog entropy source module 11 and a digital entropy source module 12. The testing device includes a control module 21 and a test circuit 22. The control module 21 is connected to the test circuit 22, the digital entropy source module 12, and the analog entropy source module 11, respectively. The analog entropy source module 11 is also connected to the test circuit 22. After configuring the parameters of the test circuit 22, the control module 21 controls the test circuit 22 to test the analog entropy source signal output by the analog entropy source module 11 according to preset test conditions. The test circuit 22 is used to output an interrupt signal to the control module 21 when the analog entropy source signal matches a preset target entropy source signal. The control module 21 is also used to determine that the digital entropy source module 12 is in working mode after receiving the interrupt signal.

[0025] In this application, the control module 21 can actually be a central processing unit (CPU), or any other host computer or other controller that can implement the above functions. This embodiment of the invention does not specifically limit this.

[0026] The above-mentioned parameter configuration of the test circuit 22 includes setting the test length corresponding to the test circuit 22. For example, the test length can be set to 5, then the test circuit 22 can test every 5 consecutive signals emitted by the analog entropy source module 11. If the test length is set to 4, the test circuit can test every 4 consecutive signals emitted by the analog entropy source module 11. Specifically, an appropriate test length can be set according to actual needs. This embodiment of the invention does not make specific limitations in this regard.

[0027] As can be seen from the structure of the entropy source chip testing device described above, the control module 21 configures the parameters of the test circuit 22, thereby controlling the test circuit 22 to test the simulated entropy source signal output by the simulated entropy source module 11 according to preset test conditions. When the test circuit 22 detects that the simulated entropy source signal matches the preset target entropy source signal, it immediately outputs an interrupt signal to the control module 21, thereby ending the test of the simulated entropy source module 11, which can save test resources to a certain extent. Based on this, the entropy source chip testing device provided in this embodiment of the invention can test the simulated entropy source module 11 in the entropy source chip without software, and compared with software testing, the hardware circuit testing efficiency is higher, which can improve the testing efficiency of the entropy source chip.

[0028] Furthermore, in this embodiment of the invention, the control module 21 can also determine that the analog entropy source module 11 is abnormal after receiving an interrupt signal, and then select the digital entropy source module 12 to replace the abnormal analog entropy source to realize the entropy source function of the entropy source chip, and make the digital entropy source module 12 work, thereby further improving the yield of the entropy source chip.

[0029] In one possible implementation, such as Figure 1 As shown, the testing device also includes an entropy source selection module 23, which is connected to the testing circuit 22, the digital entropy source module 12, and the analog entropy source module 11. The control module 21, upon receiving an interrupt signal, controls the entropy source selection module 23 to determine the digital entropy source signal corresponding to the output digital entropy source module 12 based on the interrupt signal.

[0030] In this application, the entropy source selection module 23 can be a data selector. The control terminal of the data selector is connected to the control module 21 and is controlled by the signals issued by the control module 21. When the control module 21 receives an interrupt signal, it means that the analog entropy source module 11 has malfunctioned and cannot perform the entropy source function of the chip normally. At this time, the control module 21 can send a corresponding control signal to the control terminal of the entropy source selection module 23, so that the entropy source selection module 23 can select to output the digital entropy source signal corresponding to the digital entropy source module 12.

[0031] like Figure 2 As shown, in one possible implementation, the test circuit 22 includes a first test sub-circuit 221, a second test sub-circuit 222, and a third test sub-circuit 223. The preset test conditions include a first test condition, a second test condition, and a third test condition. The first terminals of the first test sub-circuit 221, the second test sub-circuit 222, and the third test sub-circuit 223 are all electrically connected to the analog entropy source module 11. The second terminals of the first test sub-circuit 221, the second test sub-circuit 222, and the third test sub-circuit 223 are all electrically connected to the control module 21. The first test sub-circuit 221 is used to test the analog entropy source signal according to the first preset condition. When a first preset signal matching the preset target entropy source signal exists in the analog entropy source signal, an interrupt signal is output to the control module 21. And / or, the second test sub-circuit 222 is used to test the analog entropy source signal according to the second preset condition. When a second preset signal matching the preset target entropy source signal exists in the analog entropy source signal, an interrupt signal is output to the control module 21. And / or, the third test sub-circuit 223 is used to test the analog entropy source signal according to the third preset condition. When there is a third preset signal in the analog entropy source signal that matches the preset target, it outputs an interrupt signal to the control module 21.

[0032] It should be understood that the first test sub-circuit 221, the second test sub-circuit 222, and the third test sub-circuit 223 test the analog entropy source signal synchronously. As long as any one of the test sub-circuits detects a preset signal that matches the preset target, it will send an interrupt signal to the control module 21. After the control module 21 receives the interrupt signal, it can control the first test sub-circuit 221, the second test sub-circuit 222, and the third test sub-circuit 223 to stop detecting the analog entropy source signal, thereby ending the detection of the analog entropy source module 11. This can save test time, improve test efficiency, and save test resources to a certain extent.

[0033] In some embodiments, the first preset signal is a preset number of consecutive signals 0, and the first test sub-circuit 221 is further configured to output an interrupt signal to the control module 21 when a preset number of consecutive signals 0 exist in the simulated entropy source signal. The second preset signal is a preset number of consecutive signals 1, and the second test sub-circuit 222 is further configured to output an interrupt signal to the control module 21 when a preset number of consecutive signals 1 exist in the simulated entropy source signal. The third preset signal is a preset number of consecutive signals 01 or a preset number of consecutive signals 10. The third test sub-circuit 223 is further configured to output an interrupt signal to the control module 21 when a preset number of consecutive 01 or a preset number of consecutive 10 exist in the simulated entropy source signal.

[0034] Specifically, the first test sub-circuit 221 is used to detect whether there is a preset number of continuous signals 0 in the simulated entropy source signal. Similarly, the second test sub-circuit 222 is used to detect whether there is a preset number of continuous signals 1 in the simulated entropy source signal. The third test sub-circuit 223 is used to detect whether there is a preset number of continuous signals 01 or a preset number of continuous signals 10 in the simulated entropy source signal.

[0035] In this application, the aforementioned preset number refers to the test length when the control module 21 configures the parameters of the test circuit 22. For example, when the test length is set to 5, the first test sub-circuit 221 is used to detect whether every 5 consecutive signals in the simulated entropy source signal are 5 consecutive signals 0, and the second test sub-circuit 222 is used to detect whether every 5 consecutive signals in the simulated entropy source signal are 5 consecutive signals 1. It is understood that since the signal 01 or signal 10 to be detected in the third test sub-circuit 223 actually occupies twice the space of a single signal 1 or a single signal 0, the test length of the third test sub-circuit 223 can be configured to be twice the test length of the first test sub-circuit 221 or the second test sub-circuit 222. That is, the test length of the third test sub-circuit 223 needs to be set to 10, and the third test sub-circuit 223 is used to detect whether every 10 consecutive signals in the simulated entropy source signal are 5 consecutive signals 01 or 5 consecutive signals 10.

[0036] For example, when the simulated entropy source signal is “110000001010101101110001111”, if the test length is set to 5, during the first detection, the first test sub-circuit 221 will detect whether the first to fifth bits of the simulated entropy source signal “11000” are 5 consecutive signals of 0, that is, “00000”. Similarly, the second test sub-circuit 222 will detect whether “11000” is 5 consecutive signals of 1, that is, “11111”. The third test sub-circuit 223 will detect whether “1100000010” is 5 consecutive signals of 01, that is, “0101010101” or 5 consecutive signals of 10, that is, “1010101010”.

[0037] During the second test, the first test sub-circuit 221 checks whether the second to sixth bits of the simulated entropy source signal, "10000", are five consecutive zeros, and so on. During the third test, the first test sub-circuit 221 checks whether the third to seventh bits of the simulated entropy source signal, "00000", are five consecutive zeros. If the third to seventh bits of the simulated entropy source signal are indeed five consecutive zeros, the first test sub-circuit 221 will send an interrupt signal to the control module 21. The control module 21 can simultaneously interrupt the tests of the second test sub-circuit 222 and the third test sub-circuit 223.

[0038] In one possible implementation, such as Figure 1 As shown, the testing device also includes a storage module 24, which is connected to the control module 21. The control module 21, upon receiving an interrupt signal, controls the storage module 24 to store the first bit signal. Alternatively, the control module 21 controls the storage module 24 to store the second bit signal after the test of the analog entropy source signal is completed.

[0039] After the control module 21 is powered on, it can determine whether the analog entropy source function of the entropy source chip is abnormal by reading the bit information stored in the storage module 24, namely the first bit signal or the second bit signal. When the control module 21 reads the second bit signal, it can confirm that the analog entropy source module 11 in the entropy source chip is working normally, and the entropy source selection module 23 selects the analog entropy source module 11 to implement the entropy source function. When the control module 21 reads the first bit signal, it can confirm that the analog entropy source module 11 in the entropy source chip is abnormal, and the entropy source selection module 23 can select the digital entropy source module 12 to implement the entropy source function.

[0040] For example, the storage module 24 mentioned above includes an eFuse memory. The first bit signal is signal 1, and the second bit signal is signal 0. It should be understood that the eFuse memory is a one-time programmable memory. When the control module 21 receives an interrupt signal, it can determine that the analog entropy source module 11 of the entropy source chip has malfunctioned. At this time, the control module 21 can control the eFuse memory to store the first bit signal, that is, to burn signal 1 into the eFuse memory, so that the bit information stored in the eFuse memory is signal 1. If the control module 21 does not receive an interrupt signal after the test is completed, it can be considered that the analog entropy source module 11 is normal. Correspondingly, the control module 21 can control the eFuse memory to store the second bit signal, that is, not to burn the eFuse memory, so that the bit information stored in the eFuse memory is signal 0.

[0041] Furthermore, such as Figure 3 As shown, after the control module 21 is powered on, it can read the bit information stored in the eFuse memory. When the bit information is signal 0, it can be confirmed that the analog entropy source module 11 in the entropy source chip is working normally, and the entropy source selection module 23 selects the analog entropy source module 11. When the bit information is signal 1, it can be confirmed that the analog entropy source module 11 in the entropy source chip is abnormal, and the entropy source selection module 23 can select the digital entropy source module 12 to implement the entropy source function, thereby improving the yield of the chip.

[0042] This invention also provides a testing method for an entropy source chip, applied to the testing apparatus for the entropy source chip described in the above embodiments. The testing method for the entropy source chip includes:

[0043] After configuring the parameters of the test circuit, the control module controls the test circuit to test the analog entropy source signal output by the analog entropy source module according to the preset test conditions;

[0044] When the simulated entropy source signal matches the preset target entropy source signal, the test circuit outputs an interrupt signal to the control module;

[0045] Upon receiving the interrupt signal, the control module determines that the digital entropy source module is in working mode.

[0046] Compared with the prior art, the beneficial effects of the test method for entropy source chips provided in the embodiments of the present invention are the same as the beneficial effects of the test device for entropy source chips described in the above embodiments, and will not be repeated here.

[0047] Although the invention has been described herein in conjunction with various embodiments, those skilled in the art will understand and implement other variations of the disclosed embodiments by reviewing the accompanying drawings, the disclosure, and the appended claims in carrying out the claimed invention. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.

[0048] Although the invention has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made therein without departing from the spirit and scope of the invention. Accordingly, this specification and drawings are merely exemplary descriptions of the invention as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of the invention. Clearly, those skilled in the art can make various alterations and modifications to the invention without departing from its spirit and scope. Thus, if such modifications and modifications of the invention fall within the scope of the claims and their equivalents, the invention is also intended to include such modifications and modifications.

Claims

1. A testing device for an entropy source chip, characterized in that, The entropy source chip includes an analog entropy source module and a digital entropy source module. The testing device includes a control module and a testing circuit. The control module is connected to the testing circuit, the digital entropy source module, and the analog entropy source module, respectively. The analog entropy source module is also connected to the testing circuit. The control module is used to control the test circuit to test the analog entropy source signal output by the analog entropy source module according to preset test conditions after configuring the parameters of the test circuit. The test circuit is used to output an interrupt signal to the control module when the simulated entropy source signal matches the preset target entropy source signal. The control module is also used to determine that the digital entropy source module is in working mode after receiving the interrupt signal.

2. The testing apparatus for the entropy source chip according to claim 1, characterized in that, The testing device further includes an entropy source selection module, which is connected to the testing circuit, the digital entropy source module, and the analog entropy source module, respectively. The control module is used to control the entropy source selection module to determine the digital entropy source signal corresponding to the digital entropy source module based on the interrupt signal after receiving the interrupt signal.

3. The testing apparatus for the entropy source chip according to claim 1, characterized in that, The test circuit includes a first test sub-circuit, a second test sub-circuit, and a third test sub-circuit, and the preset test conditions include a first test condition, a second test condition, and a third test condition; wherein... The first terminal of the first test sub-circuit, the first terminal of the second test sub-circuit, and the first terminal of the third test sub-circuit are all electrically connected to the analog entropy source module, and the second terminal of the first test sub-circuit, the second terminal of the second test sub-circuit, and the second terminal of the third test sub-circuit are all electrically connected to the control module. The first test sub-circuit is used to test the simulated entropy source signal according to the first preset condition. When there is a first preset signal in the simulated entropy source signal that matches the preset target entropy source signal, the interrupt signal is output to the control module. And / or, the second test sub-circuit is used to test the simulated entropy source signal according to the second preset conditions, and when there is a second preset signal in the simulated entropy source signal that matches the preset target entropy source signal, the interrupt signal is output to the control module; And / or, the third test sub-circuit is used to test the simulated entropy source signal according to the third preset condition, and when there is a third preset signal in the simulated entropy source signal that matches the preset target entropy source signal, the interrupt signal is output to the control module.

4. The testing apparatus for the entropy source chip according to claim 3, characterized in that, The first preset signal is a preset number of consecutive signals 0; The first test sub-circuit is also used to output the interrupt signal to the control module when the preset number of consecutive signals 0 exist in the simulated entropy source signal.

5. The testing apparatus for the entropy source chip according to claim 3, characterized in that, The second preset signal is a preset number of consecutive signals 1; The second test sub-circuit is also used to output the interrupt signal to the control module when the preset number of continuous signals 1 exist in the simulated entropy source signal.

6. The testing apparatus for the entropy source chip according to claim 3, characterized in that, The third preset signal is a preset number of consecutive signals 01 or a preset number of consecutive signals 10; The third test sub-circuit is also used to output the interrupt signal to the control module when the simulated entropy source signal contains the preset number of consecutive 0s or the preset number of consecutive 1s.

7. The testing apparatus for the entropy source chip according to claim 1, characterized in that, The testing device further includes a storage module, which is connected to the control module. The control module is used to control the storage module to store the first bit signal after receiving the interrupt signal; Alternatively, the control module is used to control the storage module to store the second bit signal after the test of the simulated entropy source signal is completed.

8. The testing apparatus for the entropy source chip according to claim 7, characterized in that, The storage module includes an eFuse memory.

9. The testing apparatus for the entropy source chip according to claim 7, characterized in that, The first bit signal is signal 1, and the second bit signal is signal 0.

10. A testing method for an entropy source chip, characterized in that, A testing apparatus for an entropy source chip according to any one of claims 1 to 9, wherein the testing method for the entropy source chip comprises: After configuring the parameters of the test circuit, the control module controls the test circuit to test the analog entropy source signal output by the analog entropy source module according to the preset test conditions; When the simulated entropy source signal matches the preset target entropy source signal, the test circuit outputs an interrupt signal to the control module; Upon receiving the interrupt signal, the control module determines that the digital entropy source module is in working mode.

Citation Information

Patent Citations

  • True random number generation method and device with detection and correction function

    CN108717353A

  • Random number generator and quantum entropy source chip and driving circuit thereof

    CN111555874A