ADC conversion unit, true random number generation method and device

By designing an ADC conversion unit that includes two switched capacitor circuits and a self-zeroing amplifier circuit, simultaneous sampling and conversion processing in a true random number generator is achieved, which improves the quality of random numbers and reduces circuit area and power consumption, thus solving the problem of increased circuit area and power consumption in the prior art.

CN114051607BActive Publication Date: 2024-11-19SHENZHEN GOODIX TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202080047777.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-28
Publication Date
2024-11-19
Estimated Expiration
2040-12-28

AI Technical Summary

Technical Problem

Existing ADC conversion units can only perform sampling and conversion processing alternately in a single cycle, which increases the circuit area and power consumption of the true random number generator, and cannot perform sampling and conversion simultaneously, affecting the quality of random numbers.

Method used

Design an ADC conversion unit comprising two switched capacitor circuits and a self-zeroing amplifier circuit to achieve simultaneous sampling and conversion processing. The operation of the switched capacitor circuits is alternately controlled by a control circuit to ensure that there is a random initial state in each cycle, forming more uncorrelated iterative chains.

Benefits of technology

It improves the quality of random numbers, reduces the circuit area and power consumption of true random number generators, and is not limited to even-numbered series structures, allowing it to be used in odd-numbered series.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114051607B_ABST
    Figure CN114051607B_ABST
Patent Text Reader

Abstract

An ADC conversion unit, a true random number generation method and device, wherein the ADC conversion unit (100) comprises: a first switch capacitor circuit (110), a second switch capacitor circuit (120), a sub-ADC circuit (130), a multiplexer (140) and an amplifier circuit (150); the first switch capacitor circuit (110) and the second switch capacitor circuit (120) are used to alternately perform sampling processing according to an input signal and conversion and output processing according to a reference signal, wherein the first switch capacitor circuit (110) performs sampling processing according to the input signal while the second switch capacitor circuit (120) performs conversion and output processing on the sampled signal according to the reference signal; and the second switch capacitor circuit (120) performs sampling processing according to the input signal while the first switch capacitor circuit (110) performs conversion and output processing on the sampled signal according to the reference signal. The ADC conversion unit (100) can perform sampling processing and conversion processing simultaneously, which helps to improve the quality of random numbers and reduce the circuit area and power consumption of the true random number generator.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of integrated circuit technology, and in particular to an ADC conversion unit, a true random number generation method and a device. Background Art

[0002] True Random Number Generator (TRNG) is an important component of information encryption equipment. The unpredictable and non-reproducible key digital string it generates plays an important role in information encryption.

[0003] The true random number generator based on pipeline ADC (Analog-To-Digital Converter) is composed of a pipeline ADC conversion unit and an XOR logic unit, and the randomness of the output result is achieved through multi-stage cascaded ADC conversion units.

[0004] In the prior art, the working process of the ADC conversion unit to generate true random numbers includes two processing processes: sampling and conversion. However, the existing ADC conversion unit needs to perform sampling and conversion processing alternately. This approach must use an even-numbered conversion unit, and in order to achieve a certain random number quality, a larger number of levels is required, which increases the circuit area and power consumption of the true random number generator. Summary of the invention

[0005] The present application provides an ADC conversion unit, a true random number generation method and a device, which can perform sampling processing and conversion processing at the same time, help to improve the quality of random numbers, and reduce the circuit area and power consumption of the true random number generator.

[0006] In a first aspect, the present application provides an ADC conversion unit, comprising: a first switched capacitor circuit, a second switched capacitor circuit, a sub-ADC circuit, a multiplexer, and an amplifier circuit;

[0007] The first switched capacitor circuit, the second switched capacitor circuit and the sub-ADC circuit are used to receive an input signal;

[0008] The sub-ADC circuit is used to compare the input signal with a reference signal and send the obtained comparison result to the multiplexer, and the sub-ADC circuit is also used to output the comparison result to generate a true random number;

[0009] The multiplexer is used for outputting a reference signal to the first switched capacitor circuit and the second switched capacitor circuit according to the comparison result;

[0010] The first switched capacitor circuit and the second switched capacitor circuit are used to alternately perform sampling processing according to the input signal and converting and outputting the sampled signal according to the reference signal, respectively; wherein, while the first switched capacitor circuit performs sampling processing according to the input signal, the second switched capacitor circuit performs conversion and outputting processing on the sampled signal according to the reference signal; while the second switched capacitor circuit performs sampling processing according to the input signal, the first switched capacitor circuit performs conversion and outputting processing on the sampled signal according to the reference signal, and the sampled signal is obtained by the first switched capacitor circuit or the second switched capacitor circuit through sampling processing in the previous cycle;

[0011] The amplifier circuit is used to cooperate with the first switched capacitor circuit or the second switched capacitor circuit to perform conversion and output processing according to the reference signal to obtain an output signal.

[0012] In some embodiments, the first switch capacitor circuit includes: a first switch, a second switch, a third switch, a fourth switch, a fifth switch, a sixth switch and a first sampling feedback capacitor group;

[0013] The first sampling feedback capacitor group is respectively connected to one end of the first switch, one end of the second switch, one end of the third switch, one end of the fourth switch, one end of the fifth switch and one end of the sixth switch;

[0014] The other end of the first switch and the other end of the second switch are respectively connected to a signal input end for receiving the input signal;

[0015] The other end of the third switch is connected to the multiplexer;

[0016] The other end of the fourth switch is grounded;

[0017] The other end of the fifth switch is connected to the output end of the amplifier circuit, and the output end of the amplifier circuit is connected to the signal output end for outputting the output signal;

[0018] The other end of the sixth switch is connected to the input end of the amplifier circuit.

[0019] In some embodiments, the first sampling feedback capacitor group includes a first capacitor and a second capacitor;

[0020] The first plate of the first capacitor is respectively connected to one end of the second switch and one end of the third switch, and the second plate of the first capacitor is respectively connected to one end of the fourth switch, one end of the sixth switch, and the first plate of the second capacitor;

[0021] The second electrode plate of the second capacitor is connected to one end of the first switch and one end of the fifth switch respectively.

[0022] In some embodiments, the second switch capacitor circuit includes: a seventh switch, an eighth switch, a ninth switch, a tenth switch, an eleventh switch, a twelfth switch and a second sampling feedback capacitor group;

[0023] The second sampling feedback capacitor group is respectively connected to one end of the seventh switch, one end of the eighth switch, one end of the ninth switch, one end of the tenth switch, one end of the eleventh switch and one end of the twelfth switch;

[0024] The other end of the seventh switch and the other end of the eighth switch are respectively connected to a signal input end for receiving the input signal;

[0025] The other end of the ninth switch is connected to the multiplexer;

[0026] The other end of the tenth switch is grounded;

[0027] The other end of the eleventh switch is connected to the output end of the amplifier circuit, and the output end of the amplifier circuit is connected to the signal output end for outputting the output signal;

[0028] The other end of the twelfth switch is connected to the input end of the amplifier circuit.

[0029] In some embodiments, the second sampling feedback capacitor group includes a third capacitor and a fourth capacitor;

[0030] The first electrode plate of the third capacitor is respectively connected to one end of the eighth switch and one end of the ninth switch, and the second electrode plate of the third capacitor is respectively connected to one end of the tenth switch, one end of the twelfth switch and the first electrode plate of the fourth capacitor;

[0031] The second electrode plate of the fourth capacitor is connected to one end of the seventh switch and one end of the eleventh switch respectively.

[0032] In some embodiments, further comprising: a control circuit;

[0033] The control circuit is connected to the first switch capacitor circuit and the second switch capacitor circuit respectively, and is used to control the first switch capacitor circuit and the second switch capacitor circuit to alternately perform sampling processing according to the input signal and conversion output processing according to the reference signal.

[0034] In some embodiments, the control circuit includes: a first control circuit and a second control circuit;

[0035] The first control circuit is connected to the first switch capacitor circuit, and the first control circuit is used to control the first switch capacitor circuit to alternately perform sampling processing according to the input signal and conversion and output processing according to the reference signal;

[0036] The second control circuit is connected to the second switched capacitor circuit, and the second control circuit is used to control the second switched capacitor circuit to alternately perform sampling processing according to the input signal and conversion and output processing according to the reference signal.

[0037] In some embodiments, the amplifier circuit includes: an auto-zero amplifier circuit;

[0038] The self-zeroing amplifier circuit is used to perform automatic zeroing processing when the first switching capacitor circuit and the second switching capacitor circuit do not perform sampling processing according to the input signal and do not perform conversion and output processing according to the reference signal, so that the offset voltage of the self-zeroing amplifier circuit is equivalent to zero.

[0039] In some embodiments, the self-zeroing amplifier circuit includes: a thirteenth switch, a fourteenth switch, a fifth capacitor, and a transconductance amplifier;

[0040] One end of the thirteenth switch is respectively connected to the first switch capacitor circuit, the second switch capacitor circuit and the first electrode plate of the fifth capacitor, and the other end of the thirteenth switch is grounded;

[0041] The second electrode plate of the fifth capacitor is respectively connected to the inverting input terminal of the transconductance amplifier and one end of the fourteenth switch;

[0042] The non-inverting input terminal of the transconductance amplifier is grounded, and the output terminal of the transconductance amplifier and the other end of the fourteenth switch are connected to a signal output terminal for outputting a processing result of a conversion output.

[0043] In some embodiments, the sub-ADC circuit includes: a first comparator, a second comparator, and a latch;

[0044] The first input terminal of the first comparator is connected to a signal input terminal for receiving an input signal, and the second input terminal of the first comparator is used to access a first reference signal for comparison processing;

[0045] The first input terminal of the second comparator is connected to a signal input terminal for receiving an input signal, and the second input terminal of the second comparator is used to access a second reference signal for comparison processing;

[0046] The output end of the first comparator and the output end of the second comparator are respectively connected to the input end of the latch;

[0047] The output end of the latch is connected to the multiplexer;

[0048] The output end of the latch is also used to output a comparison result obtained through the comparison process, so as to generate a true random number.

[0049] In a second aspect, the present application provides a true random number generator, comprising: N ADC conversion units described above and N first XOR logic units, wherein N is an integer greater than or equal to 1;

[0050] The outputs of the sub-ADC circuits in the N ADC conversion units are respectively connected to the inputs of the N first XOR logic units;

[0051] The N first XOR logic units are used to perform XOR processing according to two comparison results output by the sub-ADC circuit in the connected ADC conversion unit, so as to generate N true random numbers respectively.

[0052] In some embodiments, when N is an integer greater than or equal to 2, the N ADC conversion units are cascaded, wherein an output signal obtained by conversion output by a previous ADC conversion unit serves as an input signal of a next ADC conversion unit.

[0053] In some embodiments, the invention further comprises: at least one second XOR logic unit;

[0054] The input of the second XOR logic unit is connected to the outputs of at least two of the first XOR logic units, and the second XOR logic unit is used to perform XOR processing on the true random numbers output by the at least two first XOR logic units to generate a new true random number.

[0055] In a third aspect, the present application provides a true random number generation method, which is applied to the above-mentioned true random number generator, and is characterized by comprising:

[0056] The ADC conversion unit compares and processes the input signal to obtain two comparison results;

[0057] The ADC conversion unit determines a reference signal according to the two-path comparison results;

[0058] The ADC conversion unit simultaneously performs sampling processing according to the input signal and conversion and output processing according to the reference signal, wherein the output signal obtained by the conversion and output processing according to the reference signal is used as an input signal of a subsequent ADC conversion unit cascaded with the ADC conversion unit;

[0059] The ADC conversion unit outputs the two-way comparison results to the first XOR logic unit;

[0060] The first XOR logic unit performs XOR processing on the two comparison results to obtain a true random number.

[0061] In some embodiments, the ADC conversion unit simultaneously performs sampling processing according to the input signal and conversion output processing according to the reference signal, including:

[0062] When the first switched capacitor circuit in the ADC conversion unit performs sampling processing according to the input signal, the second switched capacitor circuit in the ADC conversion unit performs conversion and output processing according to the reference signal; or,

[0063] When the first switched capacitor circuit in the ADC conversion unit performs conversion and output processing according to the reference signal, the second switched capacitor circuit in the ADC conversion unit performs sampling processing according to the input signal.

[0064] In some embodiments, the method further comprises:

[0065] At least two of the first XOR logic units respectively output the obtained true random numbers to the second XOR logic unit;

[0066] The second XOR logic unit performs XOR processing on at least two true random numbers output by the first XOR logic units to obtain a new true random number.

[0067] In a fourth aspect, the present application provides an information encryption device, comprising: the true random number generator and the processor mentioned above;

[0068] The true random number generator is used to generate true random numbers and send the true random numbers to the processor;

[0069] The processor is used for performing information encryption processing according to the true random number.

[0070] The present application provides an ADC conversion unit, a true random number generation method and device, wherein the ADC conversion unit includes: a first switch capacitor circuit, a second switch capacitor circuit, a sub-ADC circuit, a multiplexer and an amplifier circuit; the first switch capacitor circuit, the second switch capacitor circuit and the sub-ADC circuit are used to receive an input signal; the sub-ADC circuit is used to compare the input signal with a reference signal and send the obtained comparison result to the multiplexer, and the sub-ADC circuit is also used to output the comparison result to generate a true random number; the multiplexer is used to output a reference signal to the first switch capacitor circuit and the second switch capacitor circuit according to the comparison result; the first switch capacitor circuit and the second switch capacitor circuit are used to respectively switch the input signal with the reference signal and send the obtained comparison result to the multiplexer, and the sub-ADC circuit is also used to output the comparison result to generate a true random number; the multiplexer is used to output a reference signal to the first switch capacitor circuit and the second switch capacitor circuit according to the comparison result; the first switch capacitor circuit and the second switch capacitor circuit are used to respectively switch the input signal with the reference signal and the reference signal. The first switching capacitor circuit performs sampling processing according to the input signal and converts and outputs the sampling signal according to the reference signal; wherein, while the first switching capacitor circuit performs sampling processing according to the input signal, the second switching capacitor circuit performs conversion and output processing on the sampling signal according to the reference signal; while the second switching capacitor circuit performs sampling processing according to the input signal, the first switching capacitor circuit performs conversion and output processing on the sampling signal according to the reference signal, and the sampling signal is obtained by the first switching capacitor circuit or the second switching capacitor circuit in the previous cycle through sampling processing; the amplifier circuit is used to cooperate with the first switching capacitor circuit or the second switching capacitor circuit to perform conversion and output processing according to the reference signal to obtain an output signal. In the present application, by setting the first switching capacitor circuit and the second switching capacitor circuit, the ADC conversion unit can perform sampling processing and conversion processing at the same time, which helps to improve the quality of random numbers and reduce the circuit area and power consumption of the true random number generator. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0072] Figure 1 It is a schematic diagram of the structure of a standard 1.5-bit conversion unit of a pipeline ADC in the prior art;

[0073] Figure 2 It is a schematic diagram of the structure of a true random number generator based on pipeline ADC;

[0074] Figure 3 To adopt Figure 1 The signal transmission diagram of the 4-level true random number generator of the conversion unit shown;

[0075] Figure 4aA schematic diagram of the structure of an ADC conversion unit provided in an embodiment of the present application;

[0076] Figure 4b Another structural schematic diagram of the ADC conversion unit provided in an embodiment of the present application;

[0077] Figure 5 This is a schematic diagram of signal iterative transmission of a 4-level true random number generator in an embodiment of the present application;

[0078] Figure 6 A schematic diagram of the structure of an ADC conversion unit provided in an embodiment of the present application;

[0079] Figure 7 Another structural schematic diagram of the ADC conversion unit provided in an embodiment of the present application;

[0080] Figure 8 Another structural schematic diagram of the ADC conversion unit provided in an embodiment of the present application;

[0081] Fig. 9 This is a working timing diagram of the ADC conversion unit in the embodiment of the present application;

[0082] Fig.10 Schematic diagram of an ADC conversion unit implemented by a differential circuit in an embodiment of the present application;

[0083] Fig.11a This is a schematic diagram of a true random number generator in an embodiment of the present application;

[0084] Fig.11b Another schematic diagram of a true random number generator in an embodiment of the present application;

[0085] Fig.11c Another schematic diagram of a true random number generator in an embodiment of the present application;

[0086] Fig.12 A schematic diagram of a method for generating true random numbers in an embodiment of the present application;

[0087] Fig.13 Another schematic diagram of the method for generating true random numbers in an embodiment of the present application;

[0088] Fig.14 This is a schematic diagram of an information encryption device in an embodiment of the present application. DETAILED DESCRIPTION

[0089] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0090] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0091] Figure 1 FIG. 1 is a schematic diagram of the structure of a standard 1.5-bit conversion unit of a pipeline ADC in the prior art. Figure 1 As shown, the conversion process of the existing conversion unit is divided into two stages: sampling and conversion.

[0092] In the sampling phase, switches SW1, SW2 and SW4 are closed, and SW3 and SW5 are open. At this time, the input signal (voltage signal) of the i-th cycle is is sampled to capacitor C s and C f On the capacitor C s and C f The total charge on is:

[0093]

[0094] At the same time, two comparators CMP1 and CMP2 compare the input signal with two reference signals (-V R / 4 and V R / 4,V R Indicates the size relationship of the reference voltage), and outputs the comparison results to the latch respectively. The latch outputs a code value with a bit width of 2 bits. As the conversion result. The conversion result output by the latch With input signal The relationship is:

[0095]

[0096] In the conversion phase after 0.5 cycles, switches SW3 and SW5 are closed, SW1, SW2 and SW4 are opened, and the latch holds the comparator output result during the sampling phase, that is,

[0097] The multiplexer MUX (Multiplexer) outputs and latches the result according to the comparator. Select Output - V R or 0 or V R During the conversion phase, the output signal of the MUX and its input control signal The specific relationship is:

[0098]

[0099] Due to the feedback relationship of the transconductance amplifier OTA (Operational Transconductance Amplifier), according to the law of conservation of charge, the output signal in the conversion stage can be obtained The expression is:

[0100]

[0101] Combining (Formula-2), (Formula-3) and (Formula-4), we can get the output signal in the conversion stage The input signal during the sampling phase The conversion relationship is:

[0102]

[0103] Chaos theory requires that the transfer function (Equation 5) satisfies C s =C f This function is the key to achieving true random numbers. Any change that causes the transfer function to deviate from the ideal characteristics may lead to deterioration of random number quality.

[0104] Obviously, from the above analysis, Figure 1 The standard 1.5-bit conversion unit shown can only perform sampling and conversion alternately in a single cycle, that is, the first half of a single cycle is sampled and the second half of a single cycle is converted, but it cannot perform sampling and conversion at the same time. Moreover, during the sampling phase, the OTA is in an open-loop state, has no valid output, and is completely idle, resulting in power consumption waste.

[0105] Figure 2 It is a structural diagram of a true random number generator based on pipeline ADC, as shown in Figure 2As shown, the prior art usually uses a multi-level structure for chaotic iteration to achieve better randomness. For example, the output of the conversion unit 1 at the first level is D cmp1 The two bits of XOR are obtained by d1, and the conversion unit 2 of the second stage outputs D cmp2 The two bits of d1 are XORed to get d2, and so on. h In addition, in order to further improve the quality of random numbers, the final output random number can also be all the above h output signals d1, d2, ..., d h The XOR result of Figure 2 In the multi-stage structure shown, the output signal of the previous stage conversion unit is the input signal of the next stage conversion unit.

[0106] Figure 3 for Figure 2 The true random number generator in Figure 1 The signal transmission diagram of the conversion unit is shown in FIG. Figure 3 As shown, the true random number generator with a 4-level structure is used as an example for explanation. Figure 1 The conversion unit shown can only perform sampling and conversion alternately in a single cycle, that is, the first half of a single cycle performs sampling processing, and the second half of a single cycle performs conversion processing, but cannot perform sampling and conversion at the same time. Figure 2 The conversion unit in the random number generator uses Figure 1 When the structure is shown, the signal transmission method is specifically as follows:

[0107] (1) In the i-th cycle In the first half of the cycle, the input clock is a high-level signal. At this time, the odd-numbered conversion units are in the output phase, and the even-numbered conversion units are in the sampling phase, that is, the odd-numbered conversion units output signals. The even-numbered stage conversion units sample the result.

[0108] (2) In the i-th cycle In the second half of the cycle, the input clock is a low-level signal. At this time, the even-numbered conversion units are in the output phase, and the odd-numbered conversion units are in the sampling phase. That is, the even-numbered conversion units output signals The odd-numbered conversion units sample the result, and so on.

[0109] When i=1, the conversion units of odd-numbered stages specifically perform conversion output processing according to random initial signals (initial states).

[0110] Since the true random number generator based on the chaos mechanism essentially achieves unpredictability by repeatedly iterating a certain initial state, the number of non-correlated initial states has a significant impact on the quality of random numbers. Non-correlated initial states are simultaneously chaotically iterated to form an equal number of non-correlated iteration chains. Generally speaking, the more non-correlated iteration chains there are, the better the quality of the random numbers obtained in the end.

[0111] Therefore, in Figure 3 In the iterative process of the 4-level true random number generator shown in FIG, since only the conversion units of the odd-numbered levels perform output processing, the 4-level true random number generator has only two independent initial states, that is, only two non-correlated iteration chains, namely

[0112] (1)

[0113] (2)

[0114] Therefore, since the existing conversion unit can only perform sampling and conversion alternately in a single cycle, that is, the first half of a single cycle performs sampling processing, and the second half of a single cycle performs conversion processing, but cannot perform sampling and conversion at the same time, the problem caused by this is that its non-correlated initial state (2) is only half of the total loop level (4). That is, for Figure 2 In the loop, if each level is Figure 1 The traditional structure shown in the figure has only h / 2 valid iteration chains (h must be an even number). This will lead to a decrease in the quality of random numbers at the same level, or more levels are required to ensure the quality of random numbers.

[0115] in addition, Figure 1 The OTA offset voltage will also cause the chaotic iterative transfer function (Equation 5) to be distorted and become the following transfer function:

[0116]

[0117] Among them, V os,OTA is the input equivalent offset voltage of the OTA circuit. This distortion of the transfer function will lead to a decrease in the quality of the output random numbers. Figure 1 The standard 1.5-bit conversion cell structure shown cannot eliminate this transfer function distortion.

[0118] In view of the problems existing in the prior art, the present application proposes an improved 1.5-bit pipeline ADC conversion unit and a true random number generator using the improved 1.5-bit pipeline ADC conversion unit.

[0119] Wherein, each ADC conversion unit is provided with two switch capacitor circuits, and each switch capacitor circuit is provided with a sampling feedback capacitor group, so that the two switch capacitor circuits can perform sampling and conversion alternately, ensuring that at the same time, each ADC conversion unit can simultaneously sample the output voltage of the previous ADC conversion unit and convert and output the voltage to the next ADC conversion unit for sampling by the next ADC conversion unit.

[0120] At the same time, the present application also introduces an automatic zeroing circuit in the OTA part. When the switch capacitor circuit in the ADC conversion unit is in a non-sampling and non-output state, the OTA offset voltage can be automatically stored, and then the OTA offset voltage can be offset from the output voltage in the subsequent conversion output process. Ultimately, the OTA offset voltage has no effect on the input-output transfer function of the conversion unit.

[0121] The improved 1.5-bit pipeline ADC conversion unit provided in the present application has the characteristics of being able to sample and convert at the same time. When applied to a true random number generator, the number of effective iteration chains of the true random number generator is equal to the number of stages of the ADC conversion unit, thereby significantly improving the quality of true random numbers under the same number of stages, and helping to reduce the overall circuit area and power consumption of the true random number generator. In addition, in the present application, the number of stages of the ADC conversion unit in the true random number generator can be an odd number, avoiding the limitation that the number of stages in the traditional structure must be an even number. In addition, the ADC conversion unit also has the function of automatically offsetting the OTA offset voltage, which can prevent the random number quality from being reduced due to the distortion of the chaotic iterative transfer function.

[0122] The technical solution of the present application can be applied in the field of integrated circuits, for example, it can be applicable to products that need to generate high-quality true random numbers.

[0123] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0124] Figure 4a A schematic diagram of the structure of the ADC conversion unit provided in the embodiment of the present application is shown in FIG. Figure 4a As shown, the ADC conversion unit 100 includes: a first switched capacitor circuit 110 , a second switched capacitor circuit 120 , a sub-ADC circuit 130 , a multiplexer 140 and an amplifier circuit 150 .

[0125] refer to Figure 4aThe first switch capacitor circuit 110, the second switch capacitor circuit 120 and the sub-ADC circuit 130 are respectively connected to the signal input end of the ADC conversion unit 100, and the signal input end is used to receive the input signal Vin. The multiplexer 140 is respectively connected to the first switch capacitor circuit 110, the second switch capacitor circuit 120 and the sub-ADC circuit 130. The first switch capacitor circuit 110 and the second switch capacitor circuit 120 are also respectively connected to the amplifier circuit 150. The output end of the amplifier circuit 150 is also connected to the signal output end of the ADC conversion unit 100, and the signal output end is used to output the output signal Vout.

[0126] The sub-ADC circuit 130 is used to compare the input signal Vin and send the comparison result to the multiplexer 140. Specifically, after receiving the input signal Vin, the sub-ADC circuit 130 compares the input signal Vin with a preset reference signal (e.g., -V R / 4 and V R / 4,V R represents the reference voltage) for comparison, thereby obtaining the corresponding comparison result.

[0127] The multiplexer 140 is used to output a reference signal to the first switch capacitor circuit 110 and the second switch capacitor circuit 120 according to the comparison result, so that the first switch capacitor circuit 110 and the second switch capacitor circuit 120 can perform conversion and output processing according to the reference signal. The reference signal can be a voltage signal, and the logic of the multiplexer 140 outputting the reference signal according to the comparison result can be specifically referred to the aforementioned (Formula-3).

[0128] The first switch capacitor circuit 110 and the second switch capacitor circuit 120 are used to alternately perform sampling processing according to the input signal and converting and outputting the sampled signal according to the reference signal; wherein, while the first switch capacitor circuit 110 performs sampling processing according to the input signal, the second switch capacitor circuit 120 performs conversion and outputting processing of the sampled signal according to the reference signal; while the second switch capacitor circuit 120 performs sampling processing according to the input signal, the first switch capacitor circuit 110 performs conversion and outputting processing of the sampled signal according to the reference signal. The sampling signal is obtained by the first switch capacitor circuit 110 or the second switch capacitor circuit 120 through sampling processing in the previous cycle.

[0129] For example, in the i-th cycle, if the first switched capacitor circuit 110 performs sampling processing according to the input signal to obtain a sampled signal; in the i+1th cycle, the first switched capacitor circuit 110 performs conversion and output processing on the sampled signal obtained in the i-th cycle according to the reference signal to obtain an output signal; in the i+2th cycle, the first switched capacitor circuit 110 performs sampling processing according to the input signal to obtain a new sampled signal. By analogy, for the same switched capacitor circuit, the sampling processing and the conversion and output processing are continuously and alternately performed.

[0130] Meanwhile, when the first switched capacitor circuit 110 performs any one of the above two processes, the second switched capacitor circuit 120 performs another process, that is, the first switched capacitor circuit 110 and the second switched capacitor circuit 120 perform different processes at the same time.

[0131] For example, in the i-th cycle, the first switch capacitor circuit 110 performs sampling processing according to the input signal, and the second switch capacitor circuit 120 performs conversion and output processing; in the i+1-th cycle, the first switch capacitor circuit 110 performs conversion and output processing, and the second switch capacitor circuit 120 performs sampling processing according to the input signal; in the i+2-th cycle, the first switch capacitor circuit 110 performs sampling processing according to the input signal, and the second switch capacitor circuit 120 performs conversion and output processing according to the reference signal, and so on. Therefore, the first switch capacitor circuit 110 and the second switch capacitor circuit 120 alternately perform sampling processing according to the input signal and conversion and output processing according to the reference signal.

[0132] Therefore, the ADC conversion unit 100 can execute two kinds of processing simultaneously.

[0133] In addition, when the ADC conversion unit 100 is applied to a true random number generator, if the true random number generator includes multiple stages of ADC conversion units 100, the output signal obtained by the previous stage ADC conversion unit 100 performing conversion and output processing according to the reference signal is sent to the signal input end of the next stage ADC conversion unit 100 cascaded with the previous stage ADC conversion unit 100 via the signal output end, that is, the output signal obtained by the previous stage ADC conversion unit 100 performing conversion and output processing according to the reference signal is used as the input signal of the next stage ADC conversion unit 100.

[0134] If the true random number generator includes only one ADC conversion unit 100, the signal output end of the ADC conversion unit 100 is connected to its own signal input end, that is, the output signal obtained by the ADC conversion unit 100 in the previous cycle continues to serve as the input signal of the ADC conversion unit 100 in the next cycle.

[0135] It should be noted that when the ADC conversion unit 100 is powered on for the first time, that is, within the first cycle (i=1), the ADC conversion unit 100 will give a random initial signal (i.e., initial state) to the switched capacitor circuit performing conversion and output processing, so that the switched capacitor circuit performing conversion and output processing can perform conversion and output processing on the random initial signal according to the reference signal, thereby obtaining a corresponding output signal.

[0136] Based on this, for the ADC conversion unit 100 applied to the true random number generator, since each ADC conversion unit 100 can perform conversion and output processing within the first cycle, each ADC conversion unit 100 corresponds to a random initial state. Since the initial state is randomly generated, the initial states corresponding to each ADC conversion unit 100 are non-correlated. Therefore, for the true random number generator, the number of non-correlated initial states is the same as the number of ADC conversion units 100, and the number of non-correlated iteration chains formed by chaotic iteration based on the non-correlated initial states is also the same as the number of ADC conversion units 100. Therefore, compared with the situation in the prior art where the number of non-correlated iteration chains is only half of the number of conversion units, the present application forms more non-correlated iteration chains (twice the number of non-correlated iteration chains in the prior art) when the number of true random number generator levels is the same, so the quality of random numbers can be effectively improved.

[0137] In addition, for the switched capacitor circuit that performs sampling processing, the output signal of the ADC conversion unit 100 is sampled in the same cycle.

[0138] Specifically, for a single ADC conversion unit 100 working independently, the signal sampled by the switched capacitor circuit performing sampling processing is specifically the output signal of the switched capacitor circuit performing conversion and output processing in the single ADC conversion unit 100 within the same cycle.

[0139] For multiple ADC conversion units 100 working in multi-stage cascade, the signal sampled by the switch capacitor circuit performing sampling processing in the next-stage ADC conversion unit 100 is specifically the output signal of the switch capacitor circuit performing conversion and output processing in the previous-stage ADC conversion unit 100 in the same cycle.

[0140] In addition, the sub-ADC circuit 130 is also used to output a comparison result (not shown in the figure) for generating a true random number. For example, when the ADC conversion unit 100 is applied to a true random number generator, the sub-ADC circuit 130 is used to output the comparison result to an XOR logic unit in the true random number generator, so that the XOR logic unit can generate a true random number according to the comparison result. The comparison result output by the sub-ADC circuit 130 is two-way signals, and the two-way signals are simultaneously used as inputs of the XOR logic unit to generate a true random number.

[0141] The amplifier circuit 150 is used to cooperate with the first switch capacitor circuit 110 or the second switch capacitor circuit 120 to perform conversion and output processing according to the reference signal to obtain an output signal. Specifically, the amplifier circuit 150 and the first switch capacitor circuit 110 or the second switch capacitor circuit 120 form a negative feedback circuit, and use the charge transfer principle to convert the input signal sampled in the first switch capacitor circuit 110 or the second switch capacitor circuit 120 according to the reference signal output by the multiplexer 140 to obtain an output signal, and output the output signal.

[0142] Optionally, the amplifier circuit 150 may adopt an existing circuit structure, for example, the amplifier circuit 150 includes a transconductance amplifier OTA.

[0143] refer to Figure 4a The ADC conversion unit 100 also includes: a control circuit 160; the control circuit 160 is connected to the first switch capacitor circuit 110 and the second switch capacitor circuit 120 respectively, and the control circuit 160 is used to control the first switch capacitor circuit 110 and the second switch capacitor circuit 120 to alternately perform sampling processing according to the input signal and conversion and output processing according to the reference signal.

[0144] Optionally, the control circuit 160 may control the working types of the first switch capacitor circuit 110 and the second switch capacitor circuit 120 at the same time, so as to control the first switch capacitor circuit 110 and the second switch capacitor circuit 120 to perform different processes.

[0145] Optionally, the control circuit 160 can also be divided into two independent sub-control circuits, the two independent sub-control circuits are used to control the first switch capacitor circuit 110 and the second switch capacitor circuit 120 respectively, and the two independent sub-control circuits can establish a signal connection to achieve clock synchronization of the control signal. For the specific circuit structure, please refer to Figure 4b shown.

[0146] Figure 4b Another structural diagram of the ADC conversion unit provided in the embodiment of the present application is as follows Figure 4bAs shown, in some embodiments, the control circuit 160 includes: a first control circuit 162 and a second control circuit 164 .

[0147] The first control circuit 162 is connected to the first switch capacitor circuit 110 , and is used to control the first switch capacitor circuit 110 to alternately perform sampling processing according to the input signal and conversion and output processing according to the reference signal.

[0148] The second control circuit 164 is connected to the second switched capacitor circuit 120 , and is used to control the second switched capacitor circuit 120 to alternately perform sampling processing according to the input signal and conversion and output processing according to the reference signal.

[0149] In addition, the first control circuit 162 and the second control circuit 164 can establish a signal connection to achieve clock synchronization of the control signal, so that when the first control circuit 162 controls the first switch capacitor circuit 110 to perform sampling processing according to the input signal, the second control circuit 164 controls the second switch capacitor circuit 120 to perform conversion and output processing according to the reference signal; or, when the first control circuit 162 controls the first switch capacitor circuit 110 to perform conversion and output processing according to the reference signal, the second control circuit 164 controls the second switch capacitor circuit 120 to perform sampling processing according to the input signal.

[0150] The following is an explanation of the signal iterative transmission process when multiple ADC conversion units 100 are applied to a true random number generator in a cascade manner.

[0151] Figure 5 Schematic diagram of signal iterative transmission of a 4-stage true random number generator in an embodiment of the present application. The 4-stage true random number generator includes 4 cascaded ADC conversion units 100, such as Figure 5 As shown, Vout1, Vout2, Vout3 and Vout4 are the outputs of the first-stage ADC conversion unit, the second-stage ADC conversion unit, the third-stage ADC conversion unit and the fourth-stage ADC conversion unit, respectively.

[0152] in addition, Figure 5 In and Respectively represent different phases of the input clock, among which each level of ADC conversion unit is The phase performs sampling processing according to the input signal and converting and outputting the sampled signal according to the reference signal.

[0153] Since each ADC conversion unit 100 can simultaneously perform sampling processing according to the input signal and converting and outputting the sampled signal according to the reference signal through the internal first switch capacitor circuit 110 and the second switch capacitor circuit 120, in each cycle T In a phase, each stage of the ADC conversion unit 100 can sample the input signal sent by the previous stage of the ADC conversion unit 100, and at the same time, can also send an output signal to the next stage of the ADC conversion unit 100.

[0154] For example, refer to Figure 5 , in the i-th cycle In phase:

[0155] (1) The first-stage ADC conversion unit converts the input signal (i.e., the output signal of the fourth-stage ADC conversion unit in the i-th cycle) ) is sampled, the signal sampled in the previous cycle (i.e., the output signal of the fourth-level ADC conversion unit in the i-1th cycle) can also be sent to the second-level ADC conversion unit. ) is converted and outputted to obtain the output signal

[0156] (2) The second-stage ADC conversion unit converts the input signal While sampling, the signal sampled in the previous cycle (i.e., the output signal of the first-stage ADC conversion unit in the i-1th cycle) can also be sent to the third-stage ADC conversion unit. ) is converted and outputted to obtain the output signal

[0157] (3) The third-level ADC conversion unit converts the input signal While sampling, the signal sampled in the previous cycle (i.e., the output signal of the second-stage ADC conversion unit in the i-1th cycle) can also be sent to the fourth-stage ADC conversion unit. ) is converted and outputted to obtain the output signal

[0158] (4) The fourth-level ADC conversion unit converts the input signal While sampling, the signal sampled in the previous cycle (i.e., the output signal of the third-level ADC conversion unit in the i-1th cycle) can also be sent to the first-level ADC conversion unit. ) is converted and outputted to obtain the output signal

[0159] By analogy, the signal transmission process in other cycles is the same as the signal transmission principle in the i-th cycle, which will not be repeated here.

[0160] It can be understood that when i=1, that is, in the first cycle, each ADC conversion unit, when performing conversion and output processing, performs conversion and output processing on a random initial signal to obtain an output signal.

[0161] Thus, through several cycles of iterative signal transmission, the four cascaded ADC conversion units 100 can form four effective iteration chains, which are:

[0162] (1)

[0163] (2)

[0164] (3)

[0165] (4)

[0166] Specifically, the formation process of the iterative chain in Article (1) is used as an example to explain:

[0167] In the i-th cycle Phase, first stage ADC conversion unit output at the same time, Sampled by the second-stage ADC conversion unit;

[0168] In the i+1th cycle Phase, the second stage ADC conversion unit according to Output at the same time, Sampled by the third-stage ADC conversion unit;

[0169] In the i+2th cycle Phase, the third-level ADC conversion unit is based on Output at the same time, Sampled by the fourth-stage ADC conversion unit;

[0170] In the i+3th cycle Phase, the fourth-level ADC conversion unit is based on Output at the same time, Sampled by the first stage ADC conversion unit.

[0171] Thus, through the above process, an iterative chain is formed

[0172] It can be understood that when i=1, the first-stage ADC conversion unit takes the random initial signal as the input signal and obtains the output signal When i>1, the first-stage ADC conversion unit uses the output signal of the fourth-stage ADC conversion unit in the i-1th cycle as the input signal to obtain the output signal

[0173] Compared with the prior art in which four cascaded ADC conversion units 100 can only form two effective iteration chains, under the same number of stages, the number of effective iteration chains formed in the present application is greater, thereby significantly improving the quality of true random numbers.

[0174] In addition, based on the practice of the prior art, if it is necessary to form 4 effective iteration chains to obtain the same random number quality as the series scheme of the present application, the prior art needs to set 8 cascaded ADC conversion units 100 in the true random number generator, while the present embodiment only needs 4 cascaded ADC conversion units 100. Therefore, the present embodiment also helps to reduce the circuit area and power consumption of the true random number generator.

[0175] In addition, since the number of valid iteration chains formed in the prior art is half of the number of stages of the true random number generator, the true random number generator in the prior art must use an ADC conversion unit 100 with an even number of stages, such as a 4-stage true random number generator (forming 2 valid iteration chains), an 8-stage true random number generator (forming 4 valid iteration chains), etc. However, the number of valid iteration chains formed in the present application is the same as the number of stages of the true random number generator, so when the ADC conversion unit 100 of the present application is applied to the true random number generator, the true random number generator can use any stage structure without being restricted to using an even number of stages.

[0176] In this embodiment, through the first switched capacitor circuit 110 and the second switched capacitor circuit 120, the ADC conversion unit 100 can simultaneously perform sampling processing and conversion output processing. When applied to a true random number generator, the number of effective iteration chains is equal to the number of conversion unit stages, which can significantly improve the quality of output random numbers at the same number of stages, and help reduce the overall circuit area and power consumption of the true random number generator.

[0177] In some embodiments, the specific circuit structure of the ADC conversion unit 100 is explained.

[0178] Figure 6 The schematic diagram of the structure of the ADC conversion unit 100 provided in the embodiment of the present application is as follows: Figure 6 As shown, the first switch capacitor circuit 110 includes: a first switch SW1A, a second switch SW2A, a third switch SW3A, a fourth switch SW4A, a fifth switch SW5A, a sixth switch SW6A and a first sampling feedback capacitor group 112 .

[0179] Among them, the first sampling feedback capacitor group 112 is respectively connected to one end of the first switch SW1A, one end of the second switch SW2A, one end of the third switch SW3A, one end of the fourth switch SW4A, one end of the fifth switch SW5A and one end of the sixth switch SW6A; the other end of the first switch SW1A and the other end of the second switch SW2A are respectively connected to the signal input end of the ADC conversion unit 100; the other end of the third switch SW3A is connected to the multiplexer 140; the other end of the fourth switch SW4A is grounded, specifically, it can be connected to the AC ground; the other end of the fifth switch SW5A is connected to the output end of the OTA in the amplifier circuit 150, and the output end of the OTA is connected to the signal output end for outputting the output signal as the output end of the amplifier circuit; the other end of the sixth switch SW6A is connected to the inverting input end of the OTA, and the non-inverting input end of the OTA is grounded.

[0180] Optional, reference Figure 6 The first sampling feedback capacitor group 112 includes a first capacitor C1 and a second capacitor C2.

[0181] Among them, the first plate of the first capacitor C1 is respectively connected to one end of the second switch SW2A and one end of the third switch SW3A, the second plate of the first capacitor C1 is respectively connected to one end of the fourth switch SW4A, one end of the sixth switch SW6A and the first plate of the second capacitor C2; the second plate of the second capacitor C2 is respectively connected to one end of the first switch SW1A and one end of the fifth switch SW5A.

[0182] Optional, reference Figure 6 The second switch capacitor circuit 120 includes a seventh switch SW1B, an eighth switch SW2B, a ninth switch SW3B, a tenth switch SW4B, an eleventh switch SW5B, a twelfth switch SW6B and a second sampling feedback capacitor group 122 .

[0183] Among them, the second sampling feedback capacitor group 122 is respectively connected to one end of the seventh switch SW1B, one end of the eighth switch SW2B, one end of the ninth switch SW3B, one end of the tenth switch SW4B, one end of the eleventh switch SW5B and one end of the twelfth switch SW6B; the other end of the seventh switch SW1B and the other end of the eighth switch SW2B are respectively connected to the signal input end of the ADC conversion unit 100; the other end of the ninth switch SW3B is connected to the multiplexer 140; the other end of the tenth switch SW4B is grounded, specifically, it can be connected to the AC ground; the other end of the eleventh switch SW5AB is connected to the output end of the OTA in the amplifier circuit 150, and the output end of the OTA is connected to the signal output end for outputting the output signal as the output end of the amplifier circuit; the other end of the twelfth switch SW6B is connected to the inverting input end of the OTA, and the non-inverting input end of the OTA is grounded.

[0184] Optional, reference Figure 6 The second sampling feedback capacitor group 122 includes a third capacitor C3 and a fourth capacitor C4.

[0185] Among them, the first plate of the third capacitor C3 is respectively connected to one end of the eighth switch SW2B and one end of the ninth switch SW3B, the second plate of the third capacitor C3 is respectively connected to one end of the tenth switch SW4B, one end of the twelfth switch SW6B and the first plate of the fourth capacitor C4; the second plate of the fourth capacitor C4 is respectively connected to one end of the seventh switch SW1B and one end of the eleventh switch SW5B.

[0186] Optional, reference Figure 6 The sub-ADC circuit 130 includes: a first comparator CMP1 , a second comparator CMP2 , and a latch 132 .

[0187] The first input terminal of the first comparator CMP1 is connected to the signal input terminal of the ADC conversion unit 100, and the second input terminal of the first comparator CMP1 is used to access the first reference signal for comparison processing. The first reference signal can be V R / 4, where VR represents the reference voltage.

[0188] The first input terminal of the second comparator CMP2 is connected to the signal input terminal of the ADC conversion unit 100. The second input terminal of the second comparator CMP2 is used to access the second reference signal used for comparison processing. The second reference signal can be -V R / 4, where VR represents the reference voltage.

[0189] The output end of the first comparator CMP1 and the output end of the second comparator CMP2 are respectively connected to the input end of the latch 132; the output end of the latch 132 is connected to the multiplexer 140; the output end of the latch 132 is also used to output the comparison result obtained by the comparison process to generate a true random number.

[0190] The comparison result output by the latch 132 may be a two-bit width result, and the two-bit width corresponds to the comparison results of the first comparator CMP1 and the second comparator CMP2. For example, if the comparison result output by the latch 132 is 01, it means that the comparison result of the first comparator CMP1 is 0, and the comparison result of the second comparator CMP2 is 1.

[0191] Figure 7 Another structural diagram of the ADC conversion unit 100 provided in the embodiment of the present application is shown in FIG. Figure 7 As shown, the amplifier circuit 150 may specifically be a self-zeroing amplifier circuit 150 .

[0192] Among them, the self-zeroing amplifier circuit 150 is connected to the signal output end of the first switch capacitor circuit 110, the second switch capacitor circuit 120 and the ADC conversion unit 100 respectively. On the one hand, the self-zeroing amplifier circuit 150 is used to cooperate with the first switch capacitor circuit 110 and the second switch capacitor circuit 120, so that the first switch capacitor circuit 110 and the second switch capacitor circuit 120 can realize the function of signal conversion and output based on the sampling signal of the previous cycle and the reference signal output by the multiplexer 140. On the other hand, the self-zeroing amplifier circuit 150 is also used to perform automatic zeroing processing when the first switch capacitor circuit 110 and the second switch capacitor circuit 120 do not perform sampling processing according to the input signal and do not perform conversion and output processing according to the reference signal, so that the offset voltage of the self-zeroing amplifier circuit 150 is equivalent to zero.

[0193] Figure 8 Another structural diagram of the ADC conversion unit 100 provided in the embodiment of the present application is shown in FIG. Figure 6 Compared with the embodiment shown in the figure, the main difference is that the amplifier circuit adopts a self-zeroing amplifier circuit. Figure 8 As shown, the self-zeroing amplifier circuit 150 includes: a thirteenth switch SWaz1, a fourteenth switch SWaz2, a fifth capacitor C5 and a transconductance amplifier OTA;

[0194] Among them, one end of the thirteenth switch SWaz1 is respectively connected to the first switch capacitor circuit 110, the second switch capacitor circuit 120 and the first plate of the fifth capacitor C5, and the other end of the thirteenth switch SWaz1 is grounded, specifically connected to the AC ground; the second plate of the fifth capacitor C5 is respectively connected to the inverting input terminal of the transconductance amplifier OTA and one end of the fourteenth switch SWaz2; the non-inverting input terminal of the transconductance amplifier OTA is grounded, and the output terminal of the transconductance amplifier OTA and the other end of the fourteenth switch SWaz2 are connected to the signal output terminal of the ADC conversion unit 100.

[0195] Specifically, when the thirteenth switch SWaz1 and the fourteenth switch SWaz2 are in the closed state and the other switches in the ADC conversion unit 100 are in the open state, since the transconductance amplifier OTA is connected in a unit negative feedback structure, the input equivalent offset voltage V os,OTA is sampled and stored in the fifth capacitor C5. In the phase, since the thirteenth switch SWaz1 and the fourteenth switch SWaz2 are disconnected, the charge on the fifth capacitor C5 remains unchanged, and the voltage across the fifth capacitor C5 remains unchanged, so the self-zeroing amplifier circuit 150 is equivalent to an OTA with an offset voltage of 0. In the phase, the self-zeroing amplifier circuit 150 in the ADC conversion unit 100 performs automatic zeroing, thereby preventing the OTA offset voltage from affecting Intra-phase voltage transition and output characteristics.

[0196] The specific working principle of the ADC conversion unit 100 is explained below in combination with the specific circuit structure of the ADC conversion unit 100 .

[0197] Fig. 9 This is a working timing diagram of the ADC conversion unit 100 in the embodiment of the present application, wherein cks_A and cks_B respectively represent the sampling clocks corresponding to the first switch capacitor circuit 110 and the second switch capacitor circuit 120, ckh_A and ckh_B respectively represent the holding clocks corresponding to the first switch capacitor circuit 110 and the second switch capacitor circuit 120, and ckota_az represents the working signal of the self-zeroing amplifier circuit 150. The working logic of each clock signal can be controlled by the control circuit.

[0198] The on / off states of the first switch SW1A, the second switch SW2A and the fourth switch SW4A in the first switch capacitor circuit 110 are controlled by cks_A; the on / off states of the third switch SW3A, the fifth switch SW5A and the sixth switch SW6A in the first switch capacitor circuit 110 are controlled by ckh_A.

[0199] Specifically, when cks_A is at a high level, the first switch SW1A, the second switch SW2A and the fourth switch SW4A are in a closed state; when cks_A is at a low level, the first switch SW1A, the second switch SW2A and the fourth switch SW4A are in an open state.

[0200] When ckh_A is at a high level, the third switch SW3A, the fifth switch SW5A and the sixth switch SW6A are in a closed state; when ckh_A is at a low level, the third switch SW3A, the fifth switch SW5A and the sixth switch SW6A are in an open state.

[0201] In addition, the closing / opening states of the seventh switch SW1B, the eighth switch SW2B and the tenth switch SW4B in the second switch capacitor circuit 120 are controlled by cks_B; the closing / opening states of the ninth switch SW3B, the eleventh switch SW5B and the twelfth switch SW6B in the second switch capacitor circuit 120 are controlled by ckh_B.

[0202] Specifically, when cks_B is at a high level, the seventh switch SW1B, the eighth switch SW2B and the tenth switch SW4B are in a closed state; when cks_B is at a low level, the seventh switch SW1B, the eighth switch SW2B and the tenth switch SW4B are in an open state.

[0203] When ckh_B is at a high level, the ninth switch SW3B, the eleventh switch SW5B and the twelfth switch SW6B are in a closed state; when ckh_B is at a low level, the ninth switch SW3B, the eleventh switch SW5B and the twelfth switch SW6B are in an open state.

[0204] In addition, the on / off states of the thirteenth switch SWaz1 and the fourteenth switch SWaz2 in the auto-zero amplifier circuit 150 are controlled by ckota_az.

[0205] Specifically, when ckota_az is at a high level, the thirteenth switch SWaz1 and the fourteenth switch SWaz2 are in a closed state; when ckota_az is at a low level, the thirteenth switch SWaz1 and the fourteenth switch SWaz2 are in an open state.

[0206] refer to Figures 6 to 9 , the working process of the ADC conversion unit 100 includes the following stages:

[0207] (1) High level interval of the i-th cycle of the input clock cks_A and ckh_B are high, indicating that the first switch capacitor circuit 110 is in the sampling phase and the second switch capacitor circuit 120 is in the conversion output phase. Under the control of cks_A and ckh_B, the first switch SW1A, the second switch SW2A and the fourth switch SW4A in the first switch capacitor circuit 110 are closed, the ninth switch SW3B, the eleventh switch SW5B and the twelfth switch SW6B in the second switch capacitor circuit 120 are closed, and the remaining switches in the ADC conversion unit 100 are opened. The two comparators in the sub-ADC circuit 130 are sensitive to the input voltage. Compare and get the analog-to-digital conversion result However, the latch 132 is in the latched state at this time, and the output of the latch 132 is the comparator's response to the previous input voltage. The comparison result shows that the output voltage of the multiplexer 140 is The fifth capacitor C5 stores the input equivalent offset voltage V of the transconductance amplifier OTA. os,OTA .

[0208] In the above circuit state, the input voltage The total charge stored on the first capacitor C1 and the second capacitor C2 is:

[0209]

[0210] Among them, C sA represents the capacitance value of the first capacitor C1, C fArepresents the capacitance value of the second capacitor C2.

[0211] Since the third capacitor C3 and the fourth capacitor C4 store the input voltage sampled in the previous cycle And the total charge amount does not change during the conversion and output process, so the total charge amount stored on the third capacitor C3 and the fourth capacitor C4 is:

[0212]

[0213] Among them, C sB represents the capacitance value of the third capacitor C3, C fB represents the capacitance value of the fourth capacitor C4.

[0214] Since the first plate of the third capacitor C3 receives the output voltage (-V R or 0 or V R ), the second plate of the third capacitor C3 and the first plate of the fourth capacitor C4 are connected to the reverse input terminal of the OTA through the fifth capacitor C5, and the second plate of the fourth capacitor C4 is connected to the output terminal of the OTA. Through charge transfer, the output voltage of the OTA in the current cycle can be obtained as:

[0215]

[0216] because It is based on the previous input voltage With -V R / 4 and V R / 4 is determined by the comparison result of the two reference voltages (the conversion relationship of the sub-ADC circuit 130 to the input voltage and the input-output relationship of the multiplexer 140 are similar to the above (Formula-2) and (Formula-3)), so (Formula-9) can be rewritten as:

[0217]

[0218] Due to the requirements of chaos theory, in actual circuit design, the capacitance value of the third capacitor C3 is ensured to be equal to the capacitance value of the fourth capacitor C4, that is, C sB =C fB , (Formula-10) can be rewritten as:

[0219]

[0220] (Equation 7) and (Equation 11) show that in the i-th cycle In the phase, the first switched capacitor circuit 110 performs a sampling process to convert the input voltage of the i-th cycle into The first sampling feedback capacitor group 112 is sampled. At the same time, the second switching capacitor circuit 120 performs a conversion output process, converting the input voltage of the i-1th cycle sampled by the second sampling feedback capacitor group 122 to After the corresponding processing of (Equation 11), it is output through OTA as the output voltage of this cycle Therefore, within one ADC conversion unit 100, sampling processing, conversion output processing, and 1.5-bit analog-to-digital conversion of the current input result are simultaneously completed.

[0221] (2) Low level interval of the i-th cycle of the input clock ckota_az is high, indicating that the self-zeroing amplifier circuit 150 performs the automatic zeroing operation. Under the control of ckota_az, the thirteenth switch SWaz1 and the fourteenth switch SWaz2 in the self-zeroing amplifier circuit 150 are closed, and the remaining switches in the ADC conversion unit 100 are opened. Since the transconductance amplifier OTA is connected in a unit negative feedback structure, the input equivalent offset voltage V os,OTA is sampled and stored in the fifth capacitor C5. In the phase, since the thirteenth switch SWaz1 and the fourteenth switch SWaz2 are disconnected, the charge on the fifth capacitor C5 remains unchanged, and the voltage across the fifth capacitor C5 remains unchanged, so the self-zeroing amplifier circuit 150 is partially equivalent to an OTA with an offset voltage of zero.

[0222] (3) High level interval of the input clock in the i+1th cycle cks_B and ckh_A are high, indicating that the second switched capacitor circuit 120 is in the sampling phase and the first switched capacitor circuit 110 is in the conversion output phase. Under the control of cks_B and ckh_A, the seventh switch SW1B, the eighth switch SW2B and the tenth switch SW4B in the second switched capacitor circuit 120 are closed, the third switch SW3A, the fifth switch SW5A and the sixth switch SW6A in the first switched capacitor circuit 110 are closed, and the remaining switches in the ADC conversion unit 100 are opened. The comparator of the sub-ADC circuit 130 is sensitive to the input voltage. Compare and get the analog-to-digital conversion result However, latch 132 is in a latched state at this time, and the output of latch 132 is the comparator's response to the previous input voltage. The comparison result shows that the output voltage of the multiplexer 140 is The fifth capacitor C5 stores the OTA input equivalent offset voltage V os,OTA .

[0223] Through similar analysis as that of the i-th cycle, the total charge stored on the third capacitor C3 and the fourth capacitor C4 in the (i+1)-th cycle is:

[0224]

[0225] The output voltage of the OTA in the i+1th cycle is:

[0226]

[0227] And so on, in all cycles In the phase, the ADC conversion unit 100 simultaneously completes the three operations of sampling the output voltage of the previous ADC conversion unit 100 in the current cycle, converting and outputting the voltage based on the sampling result and analog-to-digital conversion result of the previous cycle, and performing 1.5-bit analog-to-digital conversion on the output voltage of the previous conversion unit in the current cycle. It should be noted that the first switch capacitor circuit 110 and the second switch capacitor circuit 120 in the ADC conversion unit 100 perform sampling processing and conversion output processing alternately.

[0228] In all In the phase, the self-zeroing amplifier circuit 150 in the ADC conversion unit 100 performs automatic zeroing to prevent the OTA offset voltage from affecting Intra-phase voltage transition and output characteristics.

[0229] When the ADC conversion unit 100 in the embodiment of the present application is applied to Figure 2 The true random number generator shown in the figure is In the phase, the conversion units 1 to h simultaneously sample the output voltage of the previous stage and output the voltage to the next stage conversion unit, and the sub-ADC circuit 130 inside each conversion unit generates a total of h analog-to-digital conversion results. After the h analog-to-digital conversion results are XORed, the final random number is generated. Within the phase, the self-zeroing OTAs of conversion units 1 to h perform automatic zeroing simultaneously.

[0230] In some embodiments, the ADC conversion unit 100 may also be implemented in the form of a differential circuit.

[0231] Fig.10 FIG. 1 is a schematic diagram of an ADC conversion unit 100 implemented by a differential circuit in an embodiment of the present application. Fig.10 As shown, when the ADC conversion unit 100 is implemented with a differential circuit, the sub-ADC circuit 130 and the self-zeroing amplifier circuit 150 in the ADC conversion unit 100 can be replaced with a fully differential structure, and the first switch capacitor circuit 110, the second switch capacitor circuit 120 and the multiplexer 140 can be used for both the forward (marked by P in the figure) and reverse (marked by N in the figure) parts to achieve the desired effect.

[0232] In some embodiments, a true random number generator is provided.

[0233] Fig.11a Schematic diagram of a true random number generator in an embodiment of the present application, Fig.11a As shown, the true random number generator 10 includes: N ADC conversion units 11 and N first XOR logic units 12, where N is an integer greater than or equal to 1;

[0234] The outputs of the sub-ADC circuits in the N ADC conversion units 11 are respectively connected to the inputs of the N first XOR logic units 12; the N first XOR logic units 12 are used to perform XOR processing according to the two-way comparison results output by the sub-ADC circuits in the connected ADC conversion units 11, so as to generate N true random numbers respectively. For example, the true random numbers generated by the structure in the figure include r1, r2, ..., rN.

[0235] Therefore, the true random number generator in this embodiment can generate N non-correlated true random numbers by using the ADC conversion unit in the aforementioned embodiments.

[0236] Optionally, the value of N can be 1, that is, the true random number generator is only a level 1 true random number generator, so a single true random number can be obtained. When N=1, after the ADC conversion unit obtains the output signal in the i-th cycle, it samples the output signal as the input signal to obtain a sampled signal, so that the ADC conversion unit converts and outputs the sampled signal in the i+1th cycle.

[0237] Optionally, when N is an integer greater than or equal to 2, the multiple ADC conversion units 11 are in a cascade structure, wherein the output signal obtained by the conversion output of the previous ADC conversion unit 11 is the input signal of the next ADC conversion unit 11.

[0238] Fig.11b FIG. 1 is another schematic diagram of a true random number generator according to an embodiment of the present application. Fig.11b As shown, the true random number generator 10 further includes: at least one second XOR logic unit 13;

[0239] The input of the second XOR logic unit 13 is connected to the output of at least two first XOR logic units 12, and the second XOR logic unit 13 is used to perform XOR processing according to the true random numbers output by the at least two first XOR logic units 12 to generate a new true random number.

[0240] For example, refer to Fig.11bThe true random number generator 10 includes a second XOR logic unit 13, the input of which is connected to the outputs of all first XOR logic units 12, so that the second XOR logic unit 13 performs XOR processing on the true random numbers (r1, r2, ..., rN) output by all first XOR logic units 12 to generate a new true random number R.

[0241] Optionally, there may be multiple second XOR logic units 13, and each second XOR logic unit 13 is connected to the outputs of some first XOR logic units 12, thereby generating multiple new true random numbers R.

[0242] For example, Fig.11c FIG. 1 is another schematic diagram of a true random number generator according to an embodiment of the present application. Fig.11c As shown, the true random number generator 10 includes The input of each second XOR logic unit 13 is connected to the output of the two first XOR logic units 12, so that: The second XOR logic unit 13 can generate New true random numbers

[0243] Optionally, the number of first XOR logic units 12 connected to different second XOR logic units 13 may also be different. For example, the first second XOR logic unit 13 is connected to the outputs of a first XOR logic units 12, and the second second XOR logic unit 13 is connected to the outputs of b first XOR logic units 12, where a and b are not equal.

[0244] Therefore, by setting the second XOR logic unit 13, the N generated true random numbers can be further XORed based on the true random numbers generated by the first XOR logic unit 12, so as to obtain the final output random number, further improving the quality of the random number.

[0245] In some embodiments, a true random number generation method is provided, which is applied to the true random number generator in the aforementioned embodiments.

[0246] Fig.12 Schematic diagram of the method for generating true random numbers in the embodiment of the present application, as shown in FIG. Fig.12 As shown, the method includes:

[0247] S100, the ADC conversion unit compares and processes the input signal to obtain two comparison results;

[0248] S200, the ADC conversion unit determines a reference signal according to the comparison results of the two paths;

[0249] S300, the ADC conversion unit simultaneously performs sampling processing according to the input signal and conversion and output processing according to the reference signal, wherein the output signal obtained by the conversion and output processing according to the reference signal is used as an input signal of the subsequent ADC conversion unit cascaded with the current ADC conversion unit;

[0250] S400, the ADC conversion unit outputs two comparison results to the first XOR logic unit;

[0251] S500 , the first XOR logic unit performs XOR processing on the two comparison results to obtain a true random number.

[0252] Specifically, the sub-ADC circuit in the ADC conversion unit performs comparison processing on the input signal to obtain two-way comparison results, and then sends the two-way comparison results to the multiplexer; the multiplexer determines the reference signal based on the two-way comparison results, and sends the reference signal to the first switch capacitor circuit and the second switch capacitor circuit; then the first switch capacitor circuit and the second switch capacitor circuit respectively and simultaneously perform sampling processing based on the input signal and conversion and output processing based on the reference signal; the sub-ADC circuit is also used to output the two-way comparison to the first XOR logic unit, so that the first XOR logic unit performs XOR processing on the two-way comparison results to obtain a true random number.

[0253] In this embodiment, through the first switched capacitor circuit and the second switched capacitor circuit, the ADC conversion unit can simultaneously perform sampling processing and conversion output processing. When applied to a true random number generator, the number of effective iteration chains is equal to the number of conversion unit levels, which can significantly improve the quality of output random numbers at the same number of levels, and help reduce the overall circuit area and power consumption of the true random number generator.

[0254] In some embodiments, the ADC conversion unit simultaneously performs sampling processing according to the input signal and conversion output processing according to the reference signal, including: when the first switch capacitor circuit in the ADC conversion unit performs sampling processing according to the input signal, the second switch capacitor circuit in the ADC conversion unit performs conversion output processing according to the reference signal; or, when the first switch capacitor circuit in the ADC conversion unit performs conversion output processing according to the reference signal, the second switch capacitor circuit in the ADC conversion unit performs sampling processing according to the input signal.

[0255] Specifically, the first switched capacitor circuit and the second switched capacitor circuit are used to alternately perform sampling processing according to the input signal and conversion output processing according to the reference signal, wherein the first switched capacitor circuit and the second switched capacitor circuit perform processing at the same time, and the first switched capacitor circuit and the second switched capacitor circuit perform different processing at the same time, thereby, through the first switched capacitor circuit and the second switched capacitor circuit, the ADC conversion unit can simultaneously perform sampling processing and conversion output processing, and when applied to a true random number generator, the number of effective iteration chains is equal to the number of conversion unit stages, thereby significantly improving the quality of output random numbers at the same number of stages, and helping to reduce the overall circuit area and power consumption of the true random number generator.

[0256] Fig.13 FIG. 2 is another schematic diagram of the method for generating true random numbers in an embodiment of the present application. Fig.13 As shown, the method also includes:

[0257] S600, at least two first XOR logic units respectively output the obtained true random numbers to second XOR logic units;

[0258] S700: The second XOR logic unit performs XOR processing on the true random numbers output by at least two first XOR logic units to obtain a new true random number.

[0259] Therefore, based on the true random number generated by the first XOR logic unit, the second XOR logic unit can further perform XOR operation on the generated true random number to obtain the final output random number, thereby further improving the quality of the random number.

[0260] It should be understood that, although the various steps in the flowcharts in the above-described embodiments are sequentially displayed according to the indications of the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and they can be executed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily to be carried out sequentially, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0261] In some embodiments, an information encryption device is provided, which includes: the true random number generator and a processor in the aforementioned embodiment.

[0262] Fig.14 is a schematic diagram of an information encryption device in an embodiment of the present application, such as Fig.14As shown, the true random number generator is used to generate true random numbers and send the true random numbers to the processor; the processor is used to perform information encryption processing according to the true random numbers. Since the true random numbers generated by the true random number generator in the embodiment of the present application are of high quality, the encryption result obtained by the processor performing encryption processing according to the high-quality true random numbers is more secure, which helps to improve the encryption performance of the information encryption device.

[0263] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0264] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. An ADC conversion unit, characterized in that: include: A first switched capacitor circuit, a second switched capacitor circuit, a sub-ADC circuit, a multiplexer, and an amplifier circuit; The first switched capacitor circuit, the second switched capacitor circuit and the sub-ADC circuit are used to receive an input signal; The sub-ADC circuit is used to compare the input signal with a reference signal and send the obtained comparison result to the multiplexer, and the sub-ADC circuit is also used to output the comparison result to generate a true random number; The multiplexer is used for outputting a reference signal to the first switched capacitor circuit and the second switched capacitor circuit according to the comparison result; The first switched capacitor circuit and the second switched capacitor circuit are used to alternately perform sampling processing according to the input signal and converting and outputting the sampled signal according to the reference signal, respectively; wherein, while the first switched capacitor circuit performs sampling processing according to the input signal, the second switched capacitor circuit performs conversion and outputting processing on the sampled signal according to the reference signal; while the second switched capacitor circuit performs sampling processing according to the input signal, the first switched capacitor circuit performs conversion and outputting processing on the sampled signal according to the reference signal, and the sampled signal is obtained by the first switched capacitor circuit or the second switched capacitor circuit through sampling processing in the previous cycle; The amplifier circuit is used to cooperate with the first switched capacitor circuit or the second switched capacitor circuit to perform conversion and output processing according to the reference signal to obtain an output signal; The first switch capacitor circuit includes: a first switch, a second switch, a third switch, a fourth switch, a fifth switch, a sixth switch and a first sampling feedback capacitor group; The first sampling feedback capacitor group is respectively connected to one end of the first switch, one end of the second switch, one end of the third switch, one end of the fourth switch, one end of the fifth switch and one end of the sixth switch; The other end of the first switch and the other end of the second switch are respectively connected to a signal input end for receiving the input signal; The other end of the third switch is connected to the multiplexer; The other end of the fourth switch is grounded; The other end of the fifth switch is connected to the output end of the amplifier circuit, and the output end of the amplifier circuit is connected to the signal output end for outputting the output signal; The other end of the sixth switch is connected to the input end of the amplifier circuit.

2. The conversion unit according to claim 1, characterized in that: The first sampling feedback capacitor group includes a first capacitor and a second capacitor; The first plate of the first capacitor is respectively connected to one end of the second switch and one end of the third switch, and the second plate of the first capacitor is respectively connected to one end of the fourth switch, one end of the sixth switch, and the first plate of the second capacitor; The second electrode plate of the second capacitor is connected to one end of the first switch and one end of the fifth switch respectively.

3. The conversion unit according to claim 1, characterized in that: The second switch capacitor circuit includes: a seventh switch, an eighth switch, a ninth switch, a tenth switch, an eleventh switch, a twelfth switch and a second sampling feedback capacitor group; The second sampling feedback capacitor group is respectively connected to one end of the seventh switch, one end of the eighth switch, one end of the ninth switch, one end of the tenth switch, one end of the eleventh switch and one end of the twelfth switch; The other end of the seventh switch and the other end of the eighth switch are respectively connected to a signal input end for receiving the input signal; The other end of the ninth switch is connected to the multiplexer; The other end of the tenth switch is grounded; The other end of the eleventh switch is connected to the output end of the amplifier circuit, and the output end of the amplifier circuit is connected to the signal output end for outputting the output signal; The other end of the twelfth switch is connected to the input end of the amplifier circuit.

4. The conversion unit according to claim 3, characterized in that: The second sampling feedback capacitor group includes a third capacitor and a fourth capacitor; The first electrode plate of the third capacitor is respectively connected to one end of the eighth switch and one end of the ninth switch, and the second electrode plate of the third capacitor is respectively connected to one end of the tenth switch, one end of the twelfth switch and the first electrode plate of the fourth capacitor; The second electrode plate of the fourth capacitor is connected to one end of the seventh switch and one end of the eleventh switch respectively.

5. The conversion unit according to any one of claims 1 to 4, characterized in that: Also includes: Control circuit; The control circuit is connected to the first switch capacitor circuit and the second switch capacitor circuit respectively, and is used to control the first switch capacitor circuit and the second switch capacitor circuit to alternately perform sampling processing according to the input signal and conversion output processing according to the reference signal.

6. The conversion unit according to any one of claims 5, characterized in that: The control circuit comprises: a first control circuit and a second control circuit; The first control circuit is connected to the first switch capacitor circuit, and the first control circuit is used to control the first switch capacitor circuit to alternately perform sampling processing according to the input signal and conversion and output processing according to the reference signal; The second control circuit is connected to the second switched capacitor circuit, and the second control circuit is used to control the second switched capacitor circuit to alternately perform sampling processing according to the input signal and conversion and output processing according to the reference signal.

7. The conversion unit according to any one of claims 1 to 4, characterized in that: The amplifier circuit comprises: a self-zeroing amplifier circuit; The self-zeroing amplifier circuit is used to perform automatic zeroing processing when the first switching capacitor circuit and the second switching capacitor circuit do not perform sampling processing according to the input signal and do not perform conversion and output processing according to the reference signal, so that the offset voltage of the self-zeroing amplifier circuit is equivalent to zero.

8. The conversion unit according to claim 7, characterized in that: The self-zeroing amplifier circuit comprises: a thirteenth switch, a fourteenth switch, a fifth capacitor and a transconductance amplifier; One end of the thirteenth switch is respectively connected to the first switch capacitor circuit, the second switch capacitor circuit and the first electrode plate of the fifth capacitor, and the other end of the thirteenth switch is grounded; The second electrode plate of the fifth capacitor is respectively connected to the inverting input terminal of the transconductance amplifier and one end of the fourteenth switch; The non-inverting input terminal of the transconductance amplifier is grounded, and the output terminal of the transconductance amplifier and the other end of the fourteenth switch are connected to a signal output terminal for outputting a processing result of a conversion output.

9. The conversion unit according to any one of claims 1 to 4, characterized in that: The sub-ADC circuit includes: a first comparator, a second comparator and a latch; The first input terminal of the first comparator is connected to a signal input terminal for receiving an input signal, and the second input terminal of the first comparator is used to access a first reference signal for comparison processing; The first input terminal of the second comparator is connected to a signal input terminal for receiving an input signal, and the second input terminal of the second comparator is used to access a second reference signal for comparison processing; The output end of the first comparator and the output end of the second comparator are respectively connected to the input end of the latch; The output end of the latch is connected to the multiplexer; The output end of the latch is also used to output a comparison result obtained through the comparison process, so as to generate a true random number.

10. A true random number generator, characterized in that: include: N ADC conversion units according to any one of claims 1 to 9 and N first XOR logic units, wherein N is an integer greater than or equal to 1; The outputs of the sub-ADC circuits in the N ADC conversion units are respectively connected to the inputs of the N first XOR logic units; The N first XOR logic units are used to perform XOR processing according to two comparison results output by the sub-ADC circuit in the connected ADC conversion unit, so as to generate N true random numbers respectively.

11. The true random number generator according to claim 10, characterized in that: When N is an integer greater than or equal to 2, the N ADC conversion units are cascaded, wherein an output signal obtained by conversion output by a previous ADC conversion unit serves as an input signal of a next ADC conversion unit.

12. The true random number generator according to claim 11, characterized in that: Also includes: at least one second XOR logic unit; The input of the second XOR logic unit is connected to the outputs of at least two of the first XOR logic units, and the second XOR logic unit is used to perform XOR processing on the true random numbers output by the at least two first XOR logic units to generate a new true random number.

13. A true random number generation method, applied to the true random number generator according to any one of claims 10 to 12, characterized in that: include: The ADC conversion unit compares and processes the input signal to obtain two comparison results; The ADC conversion unit determines a reference signal according to the two-path comparison results; The ADC conversion unit simultaneously performs sampling processing according to the input signal and conversion and output processing according to the reference signal, wherein the output signal obtained by the conversion and output processing according to the reference signal is used as an input signal of a subsequent ADC conversion unit cascaded with the ADC conversion unit; The ADC conversion unit outputs the two-way comparison results to the first XOR logic unit; The first XOR logic unit performs XOR processing on the two comparison results to obtain a true random number.

14. The method according to claim 13, characterized in that The ADC conversion unit simultaneously performs sampling processing according to the input signal and conversion output processing according to the reference signal, including: When the first switched capacitor circuit in the ADC conversion unit performs sampling processing according to the input signal, the second switched capacitor circuit in the ADC conversion unit performs conversion and output processing according to the reference signal; or, When the first switched capacitor circuit in the ADC conversion unit performs conversion and output processing according to the reference signal, the second switched capacitor circuit in the ADC conversion unit performs sampling processing according to the input signal.

15. The method according to claim 13 or 14, characterized in that The method further comprises: At least two of the first XOR logic units respectively output the obtained true random numbers to the second XOR logic unit; The second XOR logic unit performs XOR processing on at least two true random numbers output by the first XOR logic units to obtain a new true random number.

16. An information encryption device, characterized in that: include: A true random number generator and a processor as claimed in any one of claims 10 to 12; The true random number generator is used to generate true random numbers and send the true random numbers to the processor; The processor is used for performing information encryption processing according to the true random number.

Citation Information

Patent Citations

  • Analog-digital converter and operating method thereof

    CN103023499A

  • CCD video compression measurement imaging system based on block-oriented compression sensing, and control method

    CN105245798A

  • Share-based switch-capacitor true random number generator and true random number generating method

    CN106610814A

  • Flash analog to digital converter (ADC)

    US20090091483A1

  • Track-And-Hold Circuit With Adjustable Charge Compensation

    US20090102517A1