Double-entropy-source true random number generator circuit based on ring oscillator and random telegraph noise
By combining the jitter and random telegraph noise output by the ring oscillator as an entropy source, true random numbers are directly generated, which solves the problem of traditional true random number generators being susceptible to interference and the post-processing module increasing the circuit scale, and achieves high efficiency and low energy consumption. Random number generation.
Patent Information
- Application Number
- CN202410715917.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-10-01
AI Technical Summary
Traditional true random number generators are susceptible to external interference and have poor security, and the post-processing module increases the circuit scale and reduces the generation rate.
A dual-entropy source true random number generator circuit based on ring oscillator output jitter and random telegraph noise is used to convert the two entropy source signals into frequency and phase control words through the serial to parallel module and the direct frequency synthesizer module. Or the gating module generates true random numbers, eliminating the need for post-processing modules.
It significantly reduces the possibility of random numbers being cracked, saves circuit scale and energy consumption, and improves the robustness and generation rate of random numbers.
Smart Images

Figure CN118732991A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of integrated circuit design and information security, and in particular to a dual-entropy source true random number generator circuit based on ring oscillator output jitter and random telegraph noise. Background Art
[0002] A true random number generator is a device that uses randomness in physical processes to generate random numbers. Unlike traditional pseudo-random number generators, the output of a true random number generator is based on physical phenomena or processes that have inherent randomness, such as measuring atmospheric noise, radioactive decay, or noise in electronic devices. Therefore, a true random number generator requires a reliable entropy source and the generated sequence should have a high degree of unpredictability. As early as 1955, Rand Corporation successfully created the first true random number generator, which marked the beginning of the practical application of true random number generation technology. In terms of application areas, the importance of true random number generators is becoming increasingly prominent. In cryptography, random numbers are used to generate keys, initialization vectors, etc., and their unpredictability enhances the security of cryptographic systems. In the field of encrypted communications and network security, random numbers are used to protect the security of data during transmission and storage.
[0003] Traditional true random number generators generate random sequences based on an entropy source and rely on complex post-processing modules to reduce the inherent defects or biases of the entropy source. However, designs using a single entropy source are vulnerable to external attacks and cracking, reducing security. For example, a circuit design that only uses a ring oscillator as an entropy source will be interfered by deterministic factors such as power supply voltage and electromagnetic interference, resulting in poor confidentiality. In addition, the use of post-processing modules will reduce the random number generation rate while increasing the circuit scale. For example, a von Neumann-based post-processing module will reduce the output frequency to 1 / 4 of the original frequency. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a dual-entropy source true random number generator circuit based on ring oscillator output jitter and random telegraph noise. Based on two complementary signals as entropy sources, the possibility of the generated random numbers being cracked is reduced, and the post-processing module is omitted, which is of great significance in saving circuit scale, reducing energy consumption, and increasing the robustness of random numbers.
[0005] In order to solve the technical problem, the technical solution adopted by the present invention is: a dual entropy source true random number generator circuit based on ring oscillator output jitter and random telegraph noise, comprising: A ring oscillator entropy source extraction module, used to extract the random jitter of the ring oscillator as one of the entropy sources; A random telegraph noise entropy source extraction module, used to extract random telegraph noise as the second entropy source; A serial-to-parallel module, whose input end is respectively connected to the output end of the ring oscillator entropy source extraction module and the random telegraph noise entropy source extraction module, is used to receive the serial random jitter signal and the serial random telegraph noise signal extracted by the ring oscillator entropy source extraction module and the random telegraph noise entropy source extraction module, and convert the serial random jitter signal and the serial random telegraph noise signal into a parallel random jitter signal and a parallel random telegraph noise signal; A direct frequency synthesizer module, whose input end is connected to the output end of the serial-to-parallel module, is used to receive the parallel random jitter signal and the parallel random telegraph noise signal output by the serial-to-parallel module as its frequency control word or phase control word, and output high and low level signals according to the input signal; The XOR gating module has an input end connected to the output end of the direct frequency synthesizer and is used to perform XOR gating on the output signal of the direct frequency synthesizer to generate a true random number.
[0006] Furthermore, each direct frequency synthesizer in the direct frequency synthesizer module includes a synchronization register I, a phase accumulator, a phase accumulator register, a synchronization register II and an accumulator II, the input end of the synchronization register I is connected to the frequency control word, the output end of the synchronization register I is connected to the input end of the phase accumulator register through the phase accumulator, the output end of the phase accumulator register is connected to an input end of the accumulator II, the input end of the synchronization register II is connected to the phase control word, the output end of the synchronization register II is connected to another input end of the accumulator II, the output end of the accumulator II is connected to the address end of the waveform data table, the waveform data table stores binary data, and the waveform data table outputs corresponding binary high and low level signals according to the data at the address end; the clock signal is respectively connected to the clock ends of the synchronization register I, the phase accumulator register and the synchronization register II, and the frequency control word, the phase control word and the parallel random jitter signal and the parallel random telegraph noise signal correspond one to one or cross-correspond.
[0007] Further, the direct frequency synthesizer module includes a plurality of direct frequency synthesizers arranged in parallel.
[0008] Furthermore, the ring oscillator entropy source extraction module includes multiple ring oscillation chains and XOR units, each ring oscillation chain is composed of several inverters connected in the first place, the output of each ring oscillator is connected to the XOR unit, and the outputs of multiple ring oscillators generate one signal after XOR.
[0009] Furthermore, the random telegraph noise entropy source extraction module includes a random telegraph noise device, a current amplification circuit, a voltage follower, a hysteresis comparator and a voltage comparator connected in sequence.
[0010] Furthermore, the random telegraph noise entropy source extraction module also includes a de-biasing circuit, which is a D flip-flop. The clock input end of the D flip-flop is connected to the digitized random telegraph noise signal output by the voltage comparator, the signal input end of the D flip-flop is connected to the inverting output end of the D flip-flop, and the output end of the D flip-flop provides a random telegraph noise signal with uniform high and low levels for the subsequent stage.
[0011] Furthermore, the number of bits of the parallel data output by the serial-to-parallel module is greater than or equal to the number of bits of the frequency and phase control words of the direct frequency synthesizer.
[0012] Furthermore, the random telegraph noise device is a transistor or a memristor, the driving voltage range of the random telegraph noise device is 0.1V~1V, the output current range is 50nA~500nA, and the ratio of the output current jump amplitude to the total current size ranges from 0.1%~5%.
[0013] Furthermore, the random telegraph noise entropy source extraction module is driven by a DC power supply.
[0014] Furthermore, the XOR gating module includes an XOR unit and a gating unit composed of a D flip-flop, the input of the XOR unit is connected to the multiple outputs of the direct frequency synthesizer module, the output of the XOR unit is connected to the signal input end of the D flip-flop, the clock input end of the D flip-flop is connected to the clock signal, and the D flip-flop outputs a true random number signal.
[0015] Beneficial effects of the present invention: The present invention extracts random telegraph noise and random jitter of a ring oscillator and digitizes them, and uses the sequences generated by these two entropy sources as the phase and frequency control words of a direct digital synthesizer, so that the output of a multi-channel direct digital synthesizer is a signal of time-varying frequency and phase, and then these signals are XOR-selected to obtain the final output. The use of two entropy sources greatly reduces the possibility of the generated random numbers being cracked. A complex mapping relationship is constructed by controlling the frequency and phase control words of a direct frequency synthesizer by mixing signals from multiple entropy sources, and the post-processing module is omitted. This is of great significance in saving circuit scale, reducing energy consumption, and increasing the robustness of random numbers. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a functional block diagram of the true random number generator described in Example 1; Figure 2 Schematic diagram of the random telegraph noise signal in Example 1, (a) is a schematic diagram of the original random telegraph noise signal, (b) is a schematic diagram of the digitized random telegraph noise signal; Figure 3 This is a schematic diagram of a random telegraph noise entropy source extraction module in Example 1; Figure 4This is a schematic diagram of the entropy source extraction module of the ring oscillator in Example 1; Figure 5 Schematic diagram of the depolarization circuit in Example 1; Figure 6 Schematic diagram of the direct frequency synthesizer circuit in Example 1; Figure 7 It is a schematic diagram of the one-to-one correspondence between the frequency control word, the phase control word, the parallel random jitter signal, and the parallel random telegraph noise signal; Figure 8 It is a schematic diagram of the cross correspondence between the frequency control word, the phase control word, the parallel random jitter signal, and the parallel random telegraph noise signal; Fig. 9 It is a 512×512 bitmap composed of random numbers generated in Example 1. DETAILED DESCRIPTION
[0017] The present invention will be further described below in conjunction with the accompanying drawings and specific implementations.
[0018] Example 1 This embodiment discloses a dual entropy source true random number generator circuit based on a ring oscillator and random telegraph noise, such as Figure 1 As shown, including: A ring oscillator entropy source extraction module, used to extract the random jitter of the ring oscillator as one of the entropy sources; A random telegraph noise entropy source extraction module, used to extract random telegraph noise as the second entropy source; A serial-to-parallel module, whose input end is respectively connected to the output end of the ring oscillator entropy source extraction module and the random telegraph noise entropy source extraction module, is used to receive the serial random jitter signal and the serial random telegraph noise signal extracted by the ring oscillator entropy source extraction module and the random telegraph noise entropy source extraction module, and convert the serial random jitter signal and the serial random telegraph noise signal into a parallel random jitter signal and a parallel random telegraph noise signal; A direct frequency synthesizer module, whose input end is connected to the output end of the serial-to-parallel module, is used to receive the parallel random jitter signal and the parallel random telegraph noise signal output by the serial-to-parallel module as its frequency control word or phase control word, and output high and low level signals according to the input signal; The XOR gating module has an input end connected to the output end of the direct frequency synthesizer and is used to perform XOR gating on the output signal of the direct frequency synthesizer to generate a true random number.
[0019] Figure 1In the figure, the RTN (Random telegraph noise, RTN) signal represents random telegraph noise, which is extracted by the random telegraph noise entropy source extraction module, the RO (Ring oscillator, RO) signal represents the random jitter signal generated by the ring oscillator, which is extracted by the ring oscillator entropy source extraction module, F-word represents the frequency control word, P-word represents the phase control word, and P1, P2, P3, P4, and P5 represent parallel signals.
[0020] like Figure 3 As shown, the ring oscillator entropy source extraction module includes three ring oscillator chains and an XOR unit. Each ring oscillator chain consists of three inverters connected in the first place. The three ring oscillators are set in parallel, and their output ends are connected to the XOR unit. The outputs of the three ring oscillators are XORed to generate a signal. Using multiple identical ring oscillator chains can eliminate the influence of deterministic jitter and make the quality of entropy source output better.
[0021] like Figure 4 As shown, the random telegraph noise entropy source extraction module includes a random telegraph noise device, a current amplifier circuit, a voltage follower, a hysteresis comparator, a voltage comparator and a debiasing circuit connected in sequence.
[0022] Random telegraph noise devices include but are not limited to various types of transistors or memristors that can generate random telegraph noise, with an applied driving voltage range of 0.1V to 1V, a monitored output current range of 50nA to 500nA, and an output current jump amplitude accounting for a proportion of the total current range of 0.1% to 5%. The random telegraph noise entropy source extraction module is driven by a DC power supply.
[0023] By applying a suitable voltage to the random telegraph noise device to produce a fluctuating current change and connecting its output to the current amplifier circuit, the current amplifier circuit amplifies the signal current of the original device. The subsequent voltage follower prevents the previous and subsequent circuits from interfering with each other. The hysteresis comparator is used to digitize the signal. The final voltage comparator is used to further shape the digitized waveform.
[0024] like Figure 5 As shown, the debiasing circuit is a D flip-flop, the clock input of the D flip-flop is connected to the random telegraph noise output by the voltage comparator, the signal input of the D flip-flop is connected to the inverting output of the D flip-flop, and the output of the D flip-flop provides a high and low level uniform random telegraph noise signal for the subsequent stage. The debiasing circuit is connected to the digitized random telegraph noise to generate a more uniform signal of 01 and improve the quality of the random telegraph noise.
[0025] like Figure 6As shown, each direct frequency synthesizer in the direct frequency synthesizer module includes a synchronization register I, a phase accumulator, a phase accumulator register, a synchronization register II and an accumulator II, the input end of the synchronization register I is connected to the frequency control word, the two input ends of the phase accumulator are the outputs of the synchronization register I and the phase accumulator register, the other output end of the phase accumulator register is connected to an input end of the accumulator II, the input end of the synchronization register II is connected to the phase control word, the output end of the synchronization register II is connected to the other input end of the accumulator II, the output end of the accumulator II is connected to the address end of the waveform data table, the waveform data table stores binary data, and the waveform data table outputs corresponding binary high and low level signals according to the data at the address end; the clock signal is respectively connected to the clock ends of the synchronization register I, the phase accumulator register and the synchronization register II, and the frequency control word and the phase control word correspond crosswise with the parallel random jitter signal and the parallel random telegraph noise signal.
[0026] The input of the direct frequency synthesizer is the phase control word, the frequency control word and the clock signal, and the output is the high and low level signal. The data stored in the waveform data table is 01 data, and the address data provided by the front-stage circuit in the direct frequency synthesizer module, that is, the signal input to the frequency and phase control word, outputs the corresponding 01 high and low level signal. The direct frequency synthesizer module is composed of multiple direct frequency synthesizers, and each direct frequency synthesizer has the same structure and is arranged in parallel.
[0027] like Figure 7 As shown, the frequency control word and the phase control word correspond to the parallel random jitter signal and the parallel random telegraph noise signal one by one, wherein the ring oscillator signal is used as an entropy source to provide the frequency control word of the direct frequency synthesizer circuit, and the random telegraph noise signal is used as a seed entropy source to provide the phase control word. The random output (such as Figure 7 as shown).
[0028] In other embodiments, the frequency control word, the phase control word, the parallel random jitter signal, and the parallel random telegraph noise signal may also correspond crosswise. Figure 8 As shown, the parallel RTN signal can be used as the frequency control word of the direct digital synthesizer or the phase control word of the digital synthesizer. Similarly, the parallel RO signal can be used as the frequency control word of the direct digital synthesizer or the phase control word of the digital synthesizer. This cross-correspondence method can make the front-to-back mapping relationship more complex, which is conducive to achieving higher randomness and is difficult to crack.
[0029] The XOR gating module includes an XOR unit and a gating unit composed of a D flip-flop, the input of the XOR unit is connected to the multi-channel output of the direct frequency synthesizer module, the output of the XOR unit is connected to the signal input of the D flip-flop, the clock input of the D flip-flop is connected to the clock signal, and the D flip-flop outputs a true random number signal. The true random signal can still maintain good randomness without complex post-processing circuits.
[0030] In this embodiment, a memristor is selected as a random telegraph noise device. The principle of generating random telegraph noise is that when a constant voltage is applied, defects in the device capture and release electrons, resulting in a certain amplitude jump in the output current, forming random telegraph noise of random bits. Figure 1 (a) is a schematic diagram of the original random telegraph noise signal generated by the random telegraph noise device. It has a jump current and can therefore be used as a random telegraph noise device. This signal is an analog signal and needs to be digitized to form Figure 1 (b) The digital signal shown.
[0031] The memristor consists of four parts from top to bottom: top electrode, resistive switching layer, bottom electrode, and substrate. The top and bottom electrodes are 50nm TiN, the resistive switching layer is 3nm TiO and 10nm HfO, and the substrate is 500nm n-type highly doped Si (n-Si).
[0032] Pre-processing of memristor: Select a memristor device with random telegraph noise. Use an electrical instrument to test the memristor. First, apply a continuous increasing voltage from 0 to 3V, with a current limit of 100nA. Make the device form a conductive filament. Then apply a constant voltage of 0.5V and observe the current change. If there is a Figure 1 The jump current shown in (a) proves that the device can be used as a random telegraph noise generating device. The range of the jump signal generated by the memristor in Example 1 accounts for about 1% of the total current level.
[0033] In the random telegraph noise entropy source extraction module, a constant voltage of 0.5V is applied to the memristor to detect its current, and the subsequent current amplification, voltage following, hysteresis comparison, and debiasing circuits are combined to finally output something similar to Figure 1 (b) shows the digitized signal. The signal voltage complies with the LVCMOS25 voltage standard, that is, the high voltage is greater than or equal to 1.7V and the low voltage is less than or equal to 0.7V.
[0034] like Figure 3As shown, the ring oscillator entropy source extraction module includes three ring oscillator chains, each of which includes three inverters connected end to end, wherein the ring oscillator chains with the same structure are used to eliminate the influence of deterministic jitter. For example, if chain 1 generates deterministic jitter to the left, chain 2 generates deterministic jitter to the right, and the two cancel each other out.
[0035] like Figure 4 As shown, the de-biasing circuit is connected to the digitized random telegraph noise to generate a more uniform signal and improve the quality of the random telegraph noise.
[0036] like Figure 5 As shown, the direct digital synthesizer used in Example 1. The synthesizer frequency control word is 23 bits, the phase control word is 12 bits, the waveform data table uses 16-bit 01 data to represent high and low voltages, the frequency control word realizes the output of different frequencies by controlling the sampling interval of the waveform data table, and the phase control word changes its initial phase by controlling the initial sampling position of the waveform data table. The output is a binary signal controlled by the phase and frequency control words.
[0037] like Figure 6 As shown, the 1-channel random telegraph noise signal and 4-channel ring oscillator signals used in Example 1 are converted into parallel and then coordinately control the frequency and phase control words of the direct frequency synthesizer. The frequency control words 1, 2, 3, and 4 of the four direct frequency synthesizer circuits are respectively connected to the ring oscillator signals 1 to 4 output by the serial-to-parallel module, and the phase control words 1, 2, 3, and 4 are directly connected to the random telegraph noise signal, in order to make the mapping relationship more complex and to form an action relationship between the two signals to enhance randomness.
[0038] like Figure 1 As shown, the architecture diagram of the true random number generator, where the clock frequency is 200Mhz.
[0039] The true random numbers generated by the architecture described in this scheme pass all the random number tests of the National Institute of Standards and Technology (NIST) (international standard for random number testing), and the output random numbers are organized into a bitmap as shown below: Fig. 9 shown.
[0040] The two entropy sources of the random number generator described in this embodiment are a random telegraph noise entropy source and a ring oscillator entropy source. The combination of the two entropy sources complements each other's advantages. The ring oscillator entropy source makes up for the disadvantage of the low output frequency of the random telegraph noise entropy source, and the random telegraph noise entropy source makes up for the disadvantage of the ring oscillator entropy source being easily disturbed by factors such as power supply voltage. It is essentially equivalent to the output of the random telegraph noise gated ring oscillator. Since the two are combined in the form of XOR, they are not limited by the inherent frequency of the gate signal.
[0041] This embodiment provides a simple random number generator architecture with the characteristics of strong anti-interference ability, fast output rate, low power consumption, etc. The use of different entropy sources to generate random numbers greatly reduces the possibility of being cracked, and the two entropy sources have complementary advantages, which is of great significance to the fields of cryptography and security.
[0042] The above description is only the basic principle and preferred embodiments of the present invention. Improvements and substitutions made by those skilled in the art based on the present invention belong to the protection scope of the present invention.
Claims
1. A dual entropy source true random number generator circuit based on a ring oscillator and random telegraph noise, characterized in that: include: A ring oscillator entropy source extraction module, used to extract the random jitter of the ring oscillator as one of the entropy sources; A random telegraph noise entropy source extraction module, used to extract random telegraph noise as the second entropy source; A serial-to-parallel module, whose input end is respectively connected to the output end of the ring oscillator entropy source extraction module and the random telegraph noise entropy source extraction module, is used to receive the serial random jitter signal and the serial random telegraph noise signal extracted by the ring oscillator entropy source extraction module and the random telegraph noise entropy source extraction module, and convert the serial random jitter signal and the serial random telegraph noise signal into a parallel random jitter signal and a parallel random telegraph noise signal; A direct frequency synthesizer module, whose input end is connected to the output end of the serial-to-parallel module, is used to receive the parallel random jitter signal and the parallel random telegraph noise signal output by the serial-to-parallel module as its frequency control word or phase control word, and output high and low level signals according to the input signal; The XOR gating module has an input end connected to the output end of the direct frequency synthesizer and is used to perform XOR gating on the output signal of the direct frequency synthesizer to generate a true random number.
2. The dual entropy source true random number generator circuit based on a ring oscillator and random telegraph noise according to claim 1, characterized in that: Each direct frequency synthesizer in the direct frequency synthesizer module includes a synchronization register I, a phase accumulator, a phase accumulator register, a synchronization register II and an accumulator II, the input end of the synchronization register I is connected to the frequency control word, the output end of the synchronization register I is connected to the input end of the phase accumulator register through the phase accumulator, the output end of the phase accumulator register is connected to an input end of the accumulator II, the input end of the synchronization register II is connected to the phase control word, the output end of the synchronization register II is connected to the other input end of the accumulator II, the output end of the accumulator II is connected to the address end of the waveform data table, the waveform data table stores binary data, and the waveform data table outputs corresponding binary high and low level signals according to the data at the address end; The clock signals are connected to the clock ends of the synchronization register I, the phase accumulation register and the synchronization register II respectively, and the frequency control word and the phase control word correspond to the parallel random jitter signal and the parallel random telegraph noise signal one by one or cross correspond to each other.
3. The dual entropy source true random number generator circuit based on a ring oscillator and random telegraph noise according to claim 2, characterized in that: The direct frequency synthesizer module includes a plurality of direct frequency synthesizers arranged in parallel.
4. The dual entropy source true random number generator circuit based on a ring oscillator and random telegraph noise according to claim 1, characterized in that: The ring oscillator entropy source extraction module includes multiple ring oscillation chains and XOR units. Each ring oscillation chain is composed of several inverters connected in the first position. The output of each ring oscillator is connected to the XOR unit. The outputs of multiple ring oscillators generate a signal after XOR.
5. The dual entropy source true random number generator circuit based on a ring oscillator and random telegraph noise according to claim 1, characterized in that: The random telegraph noise entropy source extraction module comprises a random telegraph noise device, a current amplification circuit, a voltage follower, a hysteresis comparator and a voltage comparator which are connected in sequence.
6. The dual entropy source true random number generator circuit based on a ring oscillator and random telegraph noise according to claim 5, characterized in that: The random telegraph noise entropy source extraction module also includes a debiasing circuit, which is a D flip-flop. The clock input end of the D flip-flop is connected to the digitized random telegraph noise signal output by the voltage comparator, the signal input end of the D flip-flop is connected to the inverting output end of the D flip-flop, and the output end of the D flip-flop provides a random telegraph noise signal with uniform high and low levels for the subsequent stage.
7. The dual entropy source true random number generator circuit based on a ring oscillator and random telegraph noise according to claim 1, characterized in that: The number of bits of the parallel data output by the serial-to-parallel module is greater than or equal to the number of bits of the frequency and phase control words of the direct frequency synthesizer.
8. The dual entropy source true random number generator circuit based on a ring oscillator and random telegraph noise according to claim 1, characterized in that: The random telegraph noise device is a transistor or a memristor, etc. The driving voltage range of the random telegraph noise device is 0.1V~1V, the output current range is 50nA~500nA, and the ratio of the output current jump amplitude to the total current size ranges from 0.1%~5%.
9. The dual entropy source true random number generator circuit based on a ring oscillator and random telegraph noise according to claim 1 or 8, characterized in that: The random telegraph noise entropy source extraction module is driven by a DC power supply.
10. The dual entropy source true random number generator circuit based on a ring oscillator and random telegraph noise according to claim 1, characterized in that: The XOR gating module includes an XOR unit and a gating unit composed of a D flip-flop, the input of the XOR unit is connected to the multiple outputs of the direct frequency synthesizer module, the output of the XOR unit is connected to the signal input terminal of the D flip-flop, the clock input terminal of the D flip-flop is connected to the clock signal, and the D flip-flop outputs a true random number signal.
