A true random number generator circuit that is insensitive to power supply voltage
By designing a true random number generator circuit that is insensitive to power supply voltage, and utilizing components such as a reference current source and a ring oscillator, the problem of the true random number generator being vulnerable to power injection attacks is solved, thereby improving the performance of the hardware security system and the unpredictability of random numbers.
Patent Information
- Application Number
- CN202311083901.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-25
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2043-08-25
AI Technical Summary
Existing true random number generators are vulnerable to power injection attacks, which can reduce entropy and affect the performance of hardware security systems.
A true random number generator circuit that is insensitive to power supply voltage was designed. It employs a reference current source, a ring oscillator, a clock shaping circuit, and a random number acquisition circuit. By outputting a bias current and oscillation signal that are independent of power supply voltage, the randomness of the ring oscillator is ensured to be unaffected by the power supply voltage.
It improves the resistance of the true random number generator to power injection attacks, ensures the performance of the hardware security system, and enhances the unpredictability and security of random numbers.
Smart Images

Figure CN117111886B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of hardware security integrated circuit design technology, specifically relating to a true random number generation circuit that is insensitive to power supply voltage. Background Technology
[0002] With the development of integrated circuits, the Internet, and the Internet of Things (IoT) industries, hardware security and information security issues have gradually gained attention. Random numbers are an indispensable part of information encryption; unpredictable and uncertain random numbers are needed for key generation and authentication. Random numbers are widely used in cryptography, such as as seeds for pseudo-random number generators to generate pseudo-random sequences and in encryption algorithms to generate keys. The randomness of random numbers is related to the security of information.
[0003] True random number generators extract random numbers from random processes, random noise, and microscopic fluctuations from a physics perspective, making them inherently more secure than pseudo-random number generators. Power injection attacks are a common attack method against true random number generators based on ring oscillators. This attack method locks the oscillation frequency of the ring oscillator by adding a noise signal several times higher than the ring oscillator frequency to the power supply, reducing clock jitter in the ring oscillator and thus reducing the entropy obtained by the true random number generator. Summary of the Invention
[0004] To address the aforementioned problems in related technologies, this invention provides a true random number generator circuit that is insensitive to power supply voltage. The technical problem to be solved by this invention is achieved through the following technical solution:
[0005] This invention provides a true random number generator circuit that is insensitive to power supply voltage, comprising:
[0006] A reference current source is used to output a bias current that is independent of the power supply voltage.
[0007] A ring oscillator is electrically connected to the output terminal of the reference current source and the control signal CLKB, and is used to output an oscillating voltage signal that can be automatically stopped, has a random number of cycles, and is insensitive to the power supply voltage, according to the bias current and the control signal CLKB; the control signal CLKB is the drive signal for the reset terminal of the ring oscillator.
[0008] A clock shaping circuit, electrically connected to the ring oscillator, is used to shape the oscillation voltage signal and output a full-swing oscillation voltage signal.
[0009] A random number acquisition circuit is electrically connected to the output terminal of the clock shaping circuit and the output terminal of the control signal CLK. It is used to quantize the number of cycles of the full-swing oscillation voltage signal according to the control signal CLK to generate random numbers. The control signal CLKB and the control signal CLK are out of phase.
[0010] The power supply voltage is electrically connected to the reference current source, the ring oscillator, the clock shaping circuit, and the random number acquisition circuit, and is used to supply power.
[0011] The present invention has the following beneficial technical effects:
[0012] The true random number generator circuit proposed in this invention is insensitive to power supply voltage. It uses a ring oscillator that is insensitive to power supply voltage, so that the power supply voltage does not affect the random entropy in the ring oscillator. This ensures that the true random number generator can extract entropy from the ring oscillator, thereby resisting power injection attacks on the true random number generator and improving the performance of the hardware security system.
[0013] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description
[0014] Figure 1 A schematic diagram of a true random number generator circuit that is insensitive to power supply voltage, provided in an embodiment of the present invention;
[0015] Figure 2 A schematic diagram of a random number acquisition circuit provided in an embodiment of the present invention;
[0016] Figure 3 A schematic diagram of the working waveform for extracting random numbers in an exemplary true random number generator circuit provided in an embodiment of the present invention;
[0017] Figure 4 A schematic diagram of a ring oscillator provided for an embodiment of the present invention;
[0018] Figure 5 A schematic diagram of a conventional differential delay unit provided in an embodiment of the present invention;
[0019] Figure 6 A schematic diagram of a resettable differential delay unit provided in an embodiment of the present invention;
[0020] Figure 7 Waveform diagrams of oscillation voltage signals generated by a common ring oscillator under different power supply voltages, provided in embodiments of the present invention;
[0021] Figure 8 The waveform diagrams show the oscillation voltage signals generated by the ring oscillator of this application under different power supply voltages, as provided in the embodiments of the present invention. Detailed Implementation
[0022] The present invention will be further described in detail below with reference to specific embodiments, but the implementation of the present invention is not limited thereto.
[0023] In the description of this invention, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0024] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. In addition, those skilled in the art can combine and integrate the different embodiments or examples described in this specification.
[0025] Although the invention has been described herein in conjunction with various embodiments, those skilled in the art will understand and implement other variations of the disclosed embodiments by reviewing the accompanying drawings, disclosure, and appended claims in carrying out the claimed invention. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.
[0026] Figure 1 This is a schematic diagram of a true random number generator circuit that is insensitive to power supply voltage, provided in an embodiment of the present invention. The circuit includes: a reference current source, a ring oscillator, a clock shaping circuit, a random number acquisition circuit, and a power supply voltage VDD (…). Figure 1 (Not shown in the image). The reference current source is used to output a bias current independent of the supply voltage, such as... Figure 1 I in P1 ~I P6 and I N1 ~I N6The ring oscillator is electrically connected to the output terminals of the reference current source and the control signal CLKB, respectively. It is used to output an oscillating voltage signal V that can automatically stop, has a random number of cycles, and is insensitive to the power supply voltage, based on the bias current and the control signal CLKB. P3 The control signal CLKB is the drive signal for the reset terminal START of the ring oscillator. The clock shaping circuit is electrically connected to the ring oscillator and is used to shape the oscillating voltage signal to output a full-swing oscillating voltage signal. The random number acquisition circuit is electrically connected to the output terminal OUTP of the clock shaping circuit and the output terminal of the control signal CLK, respectively. It is used to quantize the number of cycles of the full-swing oscillating voltage signal according to the control signal CLK to generate a random number RANDOM. The control signals CLKB and CLK are out of phase. The power supply voltage VDD is electrically connected to the reference current source, the ring oscillator, the clock shaping circuit, and the random number acquisition circuit, respectively, for power supply.
[0027] In some embodiments, such as Figure 2 As shown, the random number acquisition circuit includes a counter and a D flip-flop. The input of the counter is electrically connected to the output of the clock shaping circuit, the reset terminal is electrically connected to the output of the control signal CLKB, and the output terminal is electrically connected to the input of the D flip-flop. It is used to count the random number of cycles of a full-swing oscillating voltage signal. The data input of the D flip-flop is connected to the output of the counter, the clock input is connected to the output of the control signal CLK, and the output of the D flip-flop is used to output a random number.
[0028] Please see Figure 3 The true random number generator circuit in this invention operates as follows: When the control signal CLKB is low, the START terminal of the ring oscillator is low, the reset transistor in the resettable delay unit DLYB sets the non-inverting output terminal of DLYB to high and the inverting output terminal to low, and the count value COUNTER at the reset output terminal of the counter is 0; when the control signal CLKB changes from low to high, the driving signals injected simultaneously from DLY1 and DLY4 cause the ring oscillator to enter a metastable oscillation state; when the control signal CLKB is high, the ring oscillator automatically stops due to noise, and the counter counts the number of random oscillation cycles, assuming the value COUNTER is 4; when the control signal CLKB changes from high to low, the D flip-flop samples the output terminal of the counter and outputs the random number RANDOM.
[0029] In some embodiments, the ring oscillator includes: a differential delay unit DLYA, and a resettable differential delay unit DLYB with a reset terminal; the reset terminal is connected to the output terminal of the control signal CLKB; when the resettable delay unit DLYB is reset, its non-inverting output terminal is set to a high level and its inverting output terminal is set to a low level. The first inverting output terminal of the resettable differential delay unit DLYB is connected to the first non-inverting input terminal of the differential delay unit DLYA, and the first non-inverting input terminal of the resettable differential delay unit DLYB is connected to the first inverting input terminal of the differential delay unit DLYA; the first inverting input terminal of the resettable differential delay unit DLYB is connected to the first non-inverting output terminal of the differential delay unit DLYA, and the first inverting input terminal of the resettable differential delay unit DLYB is connected to the first non-inverting output terminal of the differential delay unit DLYA. The second inverting output terminal of the resettable differential delay unit DLYB is connected to the second non-inverting input terminal of the differential delay unit DLYA, and the second non-inverting output terminal of the resettable differential delay unit DLYB is connected to the second inverting input terminal of the differential delay unit DLYA; the second non-inverting input terminal of the resettable differential delay unit DLYB is connected to the second inverting output terminal of the differential delay unit DLYA, and the second inverting input terminal of the resettable differential delay unit DLYB is connected to the second non-inverting output terminal of the differential delay unit DLYA.
[0030] Specifically, the resettable differential delay unit DLYB includes: a first differential delay unit DLY1 with a reset terminal and a fourth differential delay unit DLY4 with a reset terminal; the differential delay unit DLYA includes: a second differential delay unit DLY2, a third differential delay unit DLY3, a fifth differential delay unit DLY5, and a sixth differential delay unit DLY6. The second differential delay unit DLY2, the third differential delay unit DLY3, the fifth differential delay unit DLY5, and the sixth differential delay unit DLY6 are all ordinary differential delay units. When the first differential delay unit DLY1 and the fourth differential delay unit DLY4 are reset, the non-inverting output terminals of the first differential delay unit DLY1 and the fourth differential delay unit DLY4 are high, and the inverting output terminals of the first differential delay unit DLY1 and the fourth differential delay unit DLY4 are low.
[0031] like Figure 4 As shown, the non-inverting input terminal of the first differential delay unit DLY1 and the inverting output terminal V of the sixth differential delay unit DLY6 are... N6 The connection is made between the inverting input of the first differential delay unit DLY1 and the non-inverting output V of the sixth differential delay unit DLY6. P6 The non-inverting output terminal VP1 of the first differential delay unit DLY1 is connected to the inverting input terminal of the second differential delay unit DLY2. The inverting output terminal V of the first differential delay unit DLY1 is connected to the non-inverting input terminal of the second differential delay unit DLY2. N1Connected to the non-inverting input of the second differential delay unit DLY2, and the non-inverting output V of the second differential delay unit DLY2. P2 The inverting input of the third differential delay unit DLY3 is connected to the inverting output of the second differential delay unit DLY2, V. N2 Connected to the non-inverting input of the third differential delay unit DLY3, the non-inverting output V of the third differential delay unit DLY3 is... P3 The inverting input of the fourth differential delay unit DLY4 is connected to the inverting output of the third differential delay unit DLY3, V. N3 Connected to the non-inverting input of the fourth differential delay unit DLY4, the non-inverting output V of the fourth differential delay unit DLY4... P4 The inverting input of the fifth differential delay unit DLY5 is connected to the inverting output of the fourth differential delay unit DLY4, V. N4 Connected to the non-inverting input of the fifth differential delay unit DLY5, the non-inverting output V of the fifth differential delay unit DLY5 is... P5 The inverting input of the sixth differential delay unit DLY6 is connected to the inverting output of the fifth differential delay unit DLY5, V. N5 The non-inverting input of the sixth differential delay unit DLY6 is connected to the output of the control signal CLKB, which is connected to the reset terminals R of the first differential delay unit DLY1 and the fourth differential delay unit DLY4. The reset terminals R of the first and fourth differential delay units DLY4 are the reset terminals START of the ring oscillator. (The diagram shows I...) P1 ~I P6 and I N1 ~I N6 This is the bias current. Figure 4 In the middle, V N1 This refers to the first inverting output of the resettable differential delay unit DLYB, and the non-inverting input of DLY2 is the first non-inverting input of the differential delay unit DLYA. P1 This refers to the first positive output terminal of the resettable differential delay unit DLYB mentioned above. The negative input terminal of DLY2 is the first inverting input terminal of the differential delay unit DLYA mentioned above. The positive input terminal of DLY4 is the first positive input terminal of the differential delay unit DLYB mentioned above. V N3 This is the first inverting output terminal of the aforementioned differential delay unit DLYA, and the negative inverting input terminal of DLY4 is the first inverting input terminal of the aforementioned resettable differential delay unit DLYB. V P3 This is the first positive-inverting output terminal of the aforementioned differential delay unit DLYA; V N4This is the second inverting output terminal of the resettable differential delay unit DLYB mentioned above, and the non-inverting input terminal of DLY5 is the second non-inverting input terminal of the differential delay unit DLYA mentioned above. V P4 This is the second positive output terminal of the resettable differential delay unit DLYB mentioned above. The negative input terminal of DLY5 is the second inverting input terminal of the differential delay unit DLYA mentioned above. The positive input terminal of DLY1 is the second positive input terminal of the resettable differential delay unit DLYB mentioned above. V N6 This is the second inverting output terminal of the aforementioned differential delay unit DLYA, and the negative inverting input terminal of DLY1 is the second inverting input terminal of the aforementioned resettable differential delay unit DLYB. V P6 This is the second positive-inverting output terminal of the aforementioned differential delay unit DLYA.
[0032] Specifically, the ring oscillator in this invention employs a six-stage differential delay unit structure, with each stage providing a 60° phase offset. A resettable delay unit DLYB is used to lock the initial state of the ring oscillator. When the control signal CLKB is low, the resettable delay unit DLYB locks its positive output to a high level. When the control signal CLKB changes from low to high, the resettable delay unit DLYB and the ordinary delay unit DLYA together form an even-stage ring oscillator, and the ring oscillator enters a metastable state. The control signal CLKB is simultaneously input to the ring oscillator from the positive and negative outputs of the first delay unit DLY1 and the fourth delay unit DLY4, constituting a metastable oscillation phenomenon. When the control signal CLKB is high, due to the presence of noise in the ring oscillator, the drive signals input from the first delay unit DLY1 and the fourth delay unit DLY4 have different delays. As time progresses, the duty cycle of the oscillation signal gradually approaches 100% or 0, the oscillation phenomenon disappears, and the ring oscillator enters a stable state. The randomness of noise in a ring oscillator causes the duration of metastable oscillations to be random, further resulting in a random number of cycles in which the ring oscillator enters a metastable oscillation state. The higher the oscillation frequency of the ring oscillator, the shorter the time required to escape the metastable oscillation state, and the greater the throughput of random numbers at the output. The greater the number of cycles in which the ring oscillator maintains the metastable oscillation state, the smaller the impact of process deviations, and the stronger the randomness.
[0033] In some embodiments, any one of the second differential delay unit DLY2, the third differential delay unit DLY3, the fifth differential delay unit DLY5, and the sixth differential delay unit DLY6 includes: a non-inverting input terminal V IP_A Inverting input terminal V IN_A , Non-inverting output terminal V OP_A Inverting output terminal V ON_AThe system consists of a first input pair, a first active load pair, and a first cross-coupled transistor. The source of the first input pair is connected to the power supply voltage VDD, and the drain of the first input pair is connected to the inverting output terminal VDD. ON_A and the positive output terminal V OP_A The gates of the first input pair transistors are respectively connected to the non-inverting input terminal V. IP_A and the inverting input V IN_A The first active load pair is connected to the power supply voltage VDD, and the gates of the first active load pair are respectively connected to the inverting output terminal VDD. ON_A and the positive output terminal V OP_A Connections: The source of the first cross-coupled transistor is connected to the power supply voltage VDD, and the drain and gate of the first cross-coupled transistor are respectively connected to the inverting output terminal VDD. ON_A and the positive output terminal V OP_A connect.
[0034] Specifically, the first input pair includes: transistor M p13 and transistor M p17 The first active load pair includes: transistor M p11 Transistor M p12 With transistor M p15 Transistor M p16 The first cross-coupled transistor includes: transistor M p10 and transistor M p14 .
[0035] For example, transistor M p10 ~ Transistor M p17 With power supply voltage VDD, non-inverting input terminal V IP_A Inverting input terminal V IN_A , Non-inverting output terminal V OP_A Inverting output terminal V ON_A The connection relationship between them is as follows Figure 5 As shown, transistor M p10 The source of the transistor M p11 The source of the transistor M p13 The source of the transistor M p14 The source of the transistor M p15 The source of the transistor M p17 The sources of both transistors are connected to the power supply voltage VDD; transistor M p10 Gate and transistor M p14 The drain of the transistor M p16 The drain of the transistor M p17 The drain of the transistor M p15 Gate, transistor M p16 The gate and non-inverting output terminal V OP_A Connection; Transistor M p10 The drain and transistor M p12The drain of the transistor M p13 The drain of the transistor M p11 Gate, transistor M p12 Gate, transistor M p14 The gate and inverting output terminal V ON_A Connection; Transistor M p11 The drain and transistor M p12 Source connection; transistor M p13 The gate and the non-inverting input terminal V IP_A Connection; Transistor M p17 The gate and the inverting input V IN_A Connection; Transistor M p15 The drain and transistor M p16 The source connection. I N_A and I P_A This is the output current.
[0036] Specifically, transistor M p10 ~ Transistor M p17 All are PMOS transistors. PMOS transistor M p13 and transistor M p17 M is the input pair of transistors for the differential delay unit DLYA. p13 and M p17 The aspect ratio of each transistor plays a decisive role in the output frequency of the ring oscillator. A larger aspect ratio results in a larger charging current for the parasitic capacitor, and thus a faster output oscillation frequency. (PMOS transistor M) p11 Transistor M p12 With transistor M p15 Transistor M p16 For active load pairs, the output oscillation frequency is mainly adjusted by regulating the discharge current of the parasitic capacitance. The larger the aspect ratio of the active load pair, the smaller the active resistance, the larger the current flowing through the active load, and the smaller the discharge current of the parasitic capacitance, resulting in a lower output oscillation frequency. PMOS transistor M... p10 Transistor M p14 For cross-coupled transistors, the larger the area, the larger the parasitic capacitances such as the gate capacitance, and consequently the lower the output oscillation frequency.
[0037] In some embodiments, the first differential delay unit DLY1 or the fourth differential delay unit DLY4 includes: a non-inverting input terminal V IP_B Inverting input terminal V IN_B , Non-inverting output terminal V OP_B Inverting output terminal V ON_B The transistors consist of a reset terminal R, a second input pair, a second active load pair, a second cross-coupled transistor, a reset transistor, and a dummy transistor. The source of the second input pair is connected to the power supply voltage VDD, and the drain of the second input pair is connected to the non-inverting output terminal VDD.OP_B and the inverting output terminal V ON_B The gates of the second input pair transistors are respectively connected to the non-inverting input terminal V. IP_B and the inverting input V IN_B The second active load pair is connected to the power supply voltage VDD, and the gate of the second active load pair is connected to the non-inverting output terminal VDD. OP_B and the inverting output terminal V ON_B The source of the second cross-coupled transistor is connected to the power supply voltage VDD, and the drain and gate of the second cross-coupled transistor are respectively connected to the non-inverting output terminal VDD. OP_B and the inverting output terminal V ON_B Connections: The gate of the reset transistor is connected to the output terminal of the control signal CLKB, serving as the reset terminal R. The reset transistor is also connected to the power supply voltage VDD, the ground potential GND, and the non-inverting output terminal V. OP_B and the inverting output terminal V ON_B Connections: The dummy transistor is connected to the power supply voltage VDD, the ground terminal GND, and the non-inverting output terminal VDD. OP_B and the inverting output terminal V ON_B connect.
[0038] Specifically, the second input pair includes: transistor M p21 and transistor M p25 The second active load pair includes: transistor M p19 Transistor M p20 With transistor M p23 Transistor M p24 The second cross-coupled transistor includes: transistor M p18 and transistor M p22 The reset transistor includes: transistor M p26 and transistor M p28 ;Dummy transistors include: transistor M p27 and transistor M p29 .
[0039] For example, transistor M p18 ~ Transistor M p29 With power supply voltage VDD, non-inverting input terminal V IP_B Inverting input terminal V IN_B , Non-inverting output terminal V OP_B Inverting output terminal V ON_B The connection relationship between them is as follows Figure 6 As shown, transistor M p18 The source of the transistor M p19 The source of the transistor M p21 The source of the transistor M p22 The source of the transistor M p23 The source of the transistor M p25 The source of the transistor Mp28 The source of the transistor M p29 The source of the transistor M p29 Gate, transistor M p27 The gates of transistors M are all connected to the power supply voltage VDD; p18 Gate and transistor M p23 Gate, transistor M p24 Gate, transistor M p22 The drain of the transistor M p24 The drain of the transistor M p25 The drain of the transistor M p27 The source of the transistor M p28 The drain and non-inverting output terminal V OP_B Connection; Transistor M p18 The drain and transistor M p19 Gate, transistor M p20 Gate, transistor M p22 Gate, transistor M p20 The drain of the transistor M p21 The drain of the transistor M P26 The source of the transistor M p29 The drain and inverting output terminal V ON_B Connection; Transistor M p19 The drain and transistor M p20 Source connection; transistor M p21 The gate and the non-inverting input terminal V IP_B Connection; Transistor M p23 The drain and transistor M p24 Source connection; transistor M p25 The gate and the inverting input V IN_B Connection; Transistor M P26 The drain of the transistor M P27 The drain of transistor M is connected to ground potential GND; P28 Gate, transistor M P26 The gate is connected to the output of the control signal CLKB, which serves as the reset terminal R. N_B and I P_B This is the output current.
[0040] Specifically, transistor M p18 ~ Transistor M p29 All are PMOS type transistors. Transistor M p21 and M p25 For the input pair of the resettable differential delay unit, transistor M p19 Transistor M p20 With transistor M p23 Transistor M p24 For an active load pair, transistor Mp18 Transistor M p22 It is a cross-coupled pair of transistors. The resettable differential delay unit (DLYB) differs from a conventional differential delay unit in that it includes a reset transistor M. p26 M p28 With dummy transistor M p27 M p29 Among them, when the control signal CLKB is low, transistor M p26 The absolute value of the gate-source voltage is greater than M. p26 The absolute value of the threshold voltage, at which point M p26 The function of turning on the transistor is to discharge the capacitor at the inverting output of the resettable differential delay unit, ensuring that the inverting output of the resettable differential delay unit is low when the control signal CLKB is low, and that transistor M is high when the control signal CLKB is high. p26 When the gate voltage is greater than or equal to the source voltage, M p26 When turned off, it no longer affects the inverting output; when the control signal CLKB is low, transistor M... p28 The absolute value of the gate-source voltage is greater than M. p28 Threshold voltage of transistor M p28 The function of turning on the transistor is to charge the capacitor at the non-inverting output of the resettable differential delay unit, ensuring that the non-inverting output of the resettable differential delay unit is high when the control signal CLKB is low; when the control signal CLKB is high, transistor M... p28 The gate voltage is equal to the source voltage, at which point M p28 When turned off, it no longer affects the non-inverting output. This is to ensure the reset transistor M... p26 This allows the inverting output terminal to discharge to near GND level, resetting transistor M. p28 This allows the non-inverting output to be charged to near VDD level, resetting transistor M. p26 M p28 The aspect ratio should be large enough to ensure sufficient charging and discharging current. (dummy transistor M) p27 M p29 Its function is to be equivalent to the reset transistor M. p26 M p28 The parasitic capacitance is such that the load capacitance of the non-inverting output terminal and the inverting output terminal of the differential delay unit DLYB is as consistent as possible.
[0041] The specific analysis of why the true random number generation circuit of this invention is insensitive to the power supply voltage VDD is as follows:
[0042] The sensitivity of the true random number generator circuit to the power supply voltage VDD mainly stems from the sensitivity of the ring oscillator's oscillation frequency to VDD. In this embodiment of the invention, the PMOS input pair of the ring oscillator's delay unit operates in the linear region, subthreshold region, or cutoff region. The oscillation swing of the ring oscillator is determined by the drain-source voltage drop V when the PMOS input pair operates in the linear region. DS The current I flowing through the transistor is determined when it operates in the linear region. D Voltage V between drain and source DS The relationship is as follows:
[0043]
[0044] Where μ is the carrier mobility, and C ox V is the capacitance per unit area of the gate oxide layer. GS V is the gate-source voltage of the transistor. TH The threshold voltage of the transistor. This represents the width-to-length ratio of the transistor. From formula (1), it can be seen that when I... D Drain-source voltage V, independent of power supply voltage DS It is also unrelated to the power supply voltage.
[0045] Drain-source voltage V DS For transistor current I D The derivative is:
[0046]
[0047] As can be seen from formula (2), when When it is a very large value, the drain-source voltage V DS For transistor current I D The derivative value is very small, that is, when the current I... D The change in drain-source voltage V DS The change is very small, and the swing value of the ring oscillator is the drain-source voltage V when the transistor is operating in the linear region. DS When the bias current changes little with the power supply voltage, the swing value of the ring oscillator is also relatively stable.
[0048] The frequency of a ring oscillator is mainly related to the number of stages and the delay of the delay units. When the number of stages in the ring oscillator is determined, the frequency f of the ring oscillator... osc Only related to the rise time t of the delay unit rise The fall time t of the delay unit fall related:
[0049]
[0050] The rise time t of the delay unit in formula (3) rise descent time tfall The frequency of the ring oscillator is mainly related to the charging / discharging current, load capacitance, and swing amplitude. Based on the above analysis, the swing amplitude is independent of the power supply voltage VDD; the load capacitance is determined by the device's parasitic capacitance and is independent of the power supply voltage VDD; the charging / discharging current is generated by the bias circuit and is also independent of the power supply voltage VDD. Since all related variables are independent of the power supply voltage VDD, the frequency of the ring oscillator is independent of the power supply voltage VDD.
[0051] The following simulation diagram explains the principle of the ring oscillator's insensitivity to power supply voltage. As shown in Figure 7, when the power supply voltage changes, the swing amplitude of a typical ring oscillator increases with the increase of the power supply voltage, which in turn causes the frequency of the oscillation voltage signal to increase with the increase of the power supply voltage; for example... Figure 8 As shown, when the power supply voltage changes, the output swing of the ring oscillator, which is insensitive to the power supply voltage, remains basically unchanged, making the frequency of the oscillation voltage signal also insensitive to the power supply voltage.
[0052] In summary, the true random number generation circuit that is insensitive to power supply voltage proposed in this embodiment of the invention resists power injection attacks on the true random number generator, thereby improving the performance of the hardware security system.
[0053] The above description, in conjunction with specific preferred embodiments, provides a further detailed explanation of the present invention. It should not be construed that the specific implementation of the present invention is limited to these descriptions. For those skilled in the art, various simple deductions or substitutions can be made without departing from the concept of the present invention, and all such modifications and substitutions should be considered within the scope of protection of the present invention.
Claims
1. A true random number generator circuit that is insensitive to power supply voltage, characterized in that, include: A reference current source is used to output a bias current that is independent of the power supply voltage. A ring oscillator, electrically connected to the output of the reference current source and the control signal CLKB, is used to output an oscillating voltage signal that can be automatically stopped, has a random number of cycles, and is insensitive to the power supply voltage, according to the bias current and the control signal CLKB; the control signal CLKB is the drive signal for the reset terminal of the ring oscillator; the ring oscillator adopts a six-stage differential delay unit structure, with each stage providing a 60° phase offset; A clock shaping circuit, electrically connected to the ring oscillator, is used to shape the oscillation voltage signal and output a full-swing oscillation voltage signal. A random number acquisition circuit is electrically connected to the output terminal of the clock shaping circuit and the output terminal of the control signal CLK. It is used to quantize the number of cycles of the full-swing oscillation voltage signal according to the control signal CLK to generate random numbers. The control signal CLKB and the control signal CLK are out of phase. The power supply voltage is electrically connected to the reference current source, the ring oscillator, the clock shaping circuit, and the random number acquisition circuit, and is used to supply power. The ring oscillator includes: a differential delay unit DLYA, and a resettable differential delay unit DLYB with a reset terminal; the reset terminal is connected to the output terminal of the control signal CLKB; the resettable differential delay unit DLYB includes: a first differential delay unit DLY1 with a reset terminal and a fourth differential delay unit DLY4 with a reset terminal; the differential delay unit DLYA includes: a second differential delay unit DLY2, a third differential delay unit DLY3, a fifth differential delay unit DLY5, and a sixth differential delay unit DLY6; the resettable delay unit DLYB is used to lock the initial state of the ring oscillator, and when the control signal CLKB is low, the resettable delay unit DLYB locks its positive output terminal. The control signal CLKB is set to a high level. When the control signal CLKB changes from a low level to a high level, the resettable delay unit DLYB and the differential delay unit DLYA together form an even-stage ring oscillator. The ring oscillator enters a metastable state. The control signal CLKB is simultaneously input to the ring oscillator from the positive and negative output terminals of the first differential delay unit DLY1 and the fourth differential delay unit DLY4, forming a metastable oscillation phenomenon. When the control signal CLKB is high, due to the presence of noise in the ring oscillator, the drive signals input from the first differential delay unit DLY1 and the fourth differential delay unit DLY4 have different delays. As time goes by, the duty cycle of the oscillation signal gradually tends to 100% or 0, and the ring oscillator enters a stable state. The sensitivity of the true random number generator circuit to the power supply voltage VDD is derived from the sensitivity of the ring oscillator's oscillation frequency to the power supply voltage VDD. The PMOS input pair of the ring oscillator's delay unit operates in the linear region, subthreshold region, or cutoff region. The oscillation swing of the ring oscillator is determined by the drain-source voltage when the PMOS input pair operates in the linear region. The current flowing through the transistor when it is operating in the linear region is determined. Voltage between drain and source The relationship is: ,in, For carrier mobility, The capacitance per unit area of the gate oxide layer. This is the gate-source voltage of the transistor. The threshold voltage of the transistor. The aspect ratio of the transistor; when The drain-source voltage when independent of the supply voltage It is also independent of the power supply voltage; the drain-source voltage Current flowing through the transistor The result of taking the derivative is: , Represents partial derivatives, express Compared to The partial derivatives, The drain conductance indicates that the swing value of the ring oscillator is relatively stable when the bias current changes little with the power supply voltage; when the number of stages of the ring oscillator is determined, the frequency of the ring oscillator is... Only with the rise time of the delay unit Fall time of the delay unit related: The swing value of the ring oscillator is independent of the power supply voltage VDD, and the frequency of the ring oscillator is independent of the power supply voltage VDD.
2. The true random number generator circuit that is insensitive to power supply voltage according to claim 1, characterized in that, The first inverting output terminal of the resettable differential delay unit DLYB is connected to the first non-inverting input terminal of the differential delay unit DLYA, and the first non-inverting output terminal of the resettable differential delay unit DLYB is connected to the first inverting input terminal of the differential delay unit DLYA; the first non-inverting input terminal of the resettable differential delay unit DLYB is connected to the first inverting output terminal of the differential delay unit DLYA, and the first inverting input terminal of the resettable differential delay unit DLYB is connected to the first non-inverting output terminal of the differential delay unit DLYA. The second inverting output terminal of the resettable differential delay unit DLYB is connected to the second non-inverting input terminal of the differential delay unit DLYA, and the second non-inverting output terminal of the resettable differential delay unit DLYB is connected to the second inverting input terminal of the differential delay unit DLYA; the second non-inverting input terminal of the resettable differential delay unit DLYB is connected to the second inverting output terminal of the differential delay unit DLYA, and the second inverting input terminal of the resettable differential delay unit DLYB is connected to the second non-inverting output terminal of the differential delay unit DLYA.
3. The true random number generator circuit that is insensitive to power supply voltage according to claim 2, characterized in that, The non-inverting input of the first differential delay unit DLY1 is connected to the inverting output of the sixth differential delay unit DLY6. The non-inverting input of the first differential delay unit DLY1 is connected to the non-inverting output of the sixth differential delay unit DLY6. The non-inverting output of the first differential delay unit DLY1 is connected to the inverting input of the second differential delay unit DLY2. The non-inverting output of the first differential delay unit DLY1 is connected to the non-inverting input of the second differential delay unit DLY2. The non-inverting output of the second differential delay unit DLY2 is connected to the inverting input of the third differential delay unit DLY3. The non-inverting output of the second differential delay unit DLY2 is connected to the non-inverting input of the third differential delay unit DLY3. The non-inverting output of the third differential delay unit DLY3 is connected to the fourth differential delay unit DLY6. The inverting input of delay unit DLY4 is connected; the inverting output of the third differential delay unit DLY3 is connected to the non-inverting input of the fourth differential delay unit DLY4; the non-inverting output of the fourth differential delay unit DLY4 is connected to the inverting input of the fifth differential delay unit DLY5; the inverting output of the fourth differential delay unit DLY4 is connected to the non-inverting input of the fifth differential delay unit DLY5; the non-inverting output of the fifth differential delay unit DLY5 is connected to the inverting input of the sixth differential delay unit DLY6; the inverting output of the fifth differential delay unit DLY5 is connected to the non-inverting input of the sixth differential delay unit DLY6; and the output of the control signal CLKB is connected to the reset terminal of the first differential delay unit DLY1 and the reset terminal of the fourth differential delay unit DLY4.
4. The true random number generator circuit that is insensitive to power supply voltage according to claim 3, characterized in that, When the first differential delay unit DLY1 and the fourth differential delay unit DLY4 are reset, the non-inverting output terminals of the first differential delay unit DLY1 and the fourth differential delay unit DLY4 are at a high level, and the inverting output terminals of the first differential delay unit DLY1 and the fourth differential delay unit DLY4 are at a low level.
5. The true random number generator circuit that is insensitive to power supply voltage according to claim 1, characterized in that, Any one of the differential delay units DLY2, DLY3, DLY5, and DLY6 includes: Non-inverting input V IP_A Inverting input terminal V IN_A , Non-inverting output terminal V OP_A Inverting output terminal V ON_A The first input pair, the first active load pair, and the first cross-coupled transistor; The source of the first input pair transistors is connected to the power supply voltage, and the drain of the first input pair transistors is connected to the inverting output terminal V. ON_A and the positive output terminal V OP_A The gates of the first input pair transistors are respectively connected to the non-inverting input terminal V. IP_A and the inverting input terminal V IN_A ; The first active load pair is connected to the power supply voltage, and the gates of the first active load pair are respectively connected to the inverting output terminal V. ON_A and the positive output terminal V OP_A connect; The source of the first cross-coupled transistor is connected to the power supply voltage, and the drain and gate of the first cross-coupled transistor are respectively connected to the inverting output terminal V. ON_A and the positive output terminal V OP_A connect.
6. The true random number generator circuit insensitive to power supply voltage according to claim 5, characterized in that, The first input pair includes: transistor M p13 and transistor M p17 The first active load pair includes: transistor M p11 Transistor M p12 With transistor M p15 Transistor M p16 The first cross-coupled transistor includes: transistor M p10 and transistor M p14 ; The transistor M p10 The source of the transistor M p11 The source of the transistor M p13 The source of the transistor M p14 The source of the transistor M p15 The source of the transistor M p17 The sources of all transistors are connected to the power supply voltage; the transistor M p10 The gate of the transistor M p14 The drain of the transistor M p16 The drain of the transistor M p17 The drain of the transistor M p15 The gate of the transistor M p16 The gate of the positive output terminal V OP_A Connection; the transistor M p10 The drain of the transistor M p12 The drain of the transistor M p13 The drain of the transistor M p11 The gate of the transistor M p12 The gate of the transistor M p14 The gate of the inverting output terminal V ON_A Connection; the transistor M p11 The drain of the transistor M p12 The source connection; the transistor M p13 The gate and the non-inverting input terminal V IP_A Connection; the transistor M p17 The gate and the inverting input terminal V IN_A Connection; the transistor M p15 The drain of the transistor M p16 The source connection.
7. The true random number generator circuit that is insensitive to power supply voltage according to claim 1, characterized in that, The first differential delay unit DLY1 or the fourth differential delay unit DLY4 includes: Non-inverting input V IP_B Inverting input terminal V IN_B , Non-inverting output terminal V OP_B Inverting output terminal V ON_B The components include: reset terminal R, second input pair transistors, second active load pair transistors, second cross-coupled transistor, reset transistor, and dummy transistor. The source of the second input transistor is connected to the power supply voltage, and the drain of the second input transistor is connected to the non-inverting output terminal V. OP_B and the inverting output terminal V ON_B The gates of the second input pair transistors are respectively connected to the non-inverting input terminal V. IP_B and the inverting input terminal V IN_B ; The second active load pair is connected to the power supply voltage, and the gates of the second active load pair are respectively connected to the non-inverting output terminal V. OP_B and the inverting output terminal V ON_B ; The source of the second cross-coupled transistor is connected to the power supply voltage, and the drain and gate of the second cross-coupled transistor are respectively connected to the positive output terminal V. OP_B and the inverting output terminal V ON_B connect; The gate of the reset transistor is connected to the output terminal of the control signal CLKB, serving as the reset terminal R. The reset transistor is also connected to the power supply voltage, the ground potential GND, and the positive output terminal V. OP_B and the inverting output terminal V ON_B connect; The dummy transistor is connected to the power supply voltage, the ground potential terminal GND, and the non-inverting output terminal V, respectively. OP_B and the inverting output terminal V ON_B connect.
8. The true random number generator circuit that is insensitive to power supply voltage according to claim 7, characterized in that, The second input pair includes: transistor M p21 and transistor M p25 The second active load pair includes: transistor M p19 Transistor M p20 With transistor M p23 Transistor M p24 The second cross-coupled transistor includes: transistor M p18 and transistor M p22 The reset transistor includes: transistor M p26 and transistor M p28 The dummy transistor includes: transistor M p27 and transistor M p29 ; The transistor M p18 The source of the transistor M p19 The source of the transistor M p21 The source of the transistor M p22 The source of the transistor M p23 The source of the transistor M p25 The source of the transistor M p28 The source of the transistor M p29 The source of the transistor M p29 The gate of the transistor M p27 The gates of all transistors are connected to the power supply voltage; the transistor M p18 The gate of the transistor M p23 The gate of the transistor M p24 The gate of the transistor M p22 The drain of the transistor M p24 The drain of the transistor M p25 The drain of the transistor M p27 The source of the transistor M p28 The drain of the positive output terminal V OP_B Connection; the transistor M p18 The drain of the transistor M p19 The gate of the transistor M p20 The gate of the transistor M p22 The gate of the transistor M p20 The drain of the transistor M p21 The drain of the transistor M P26 The source of the transistor M p29 The drain of the inverting output terminal V ON_B Connection; the transistor M p19 The drain of the transistor M p20 The source connection; the transistor M p21 The gate and the non-inverting input terminal V IP_B Connection; the transistor M p23 The drain of the transistor M p24 The source connection; the transistor M p25 The gate and the inverting input terminal V IN_B Connection; the transistor M P26 The drain of the transistor M P27 The drain of the transistor is connected to ground potential GND; the transistor M P28 The gate of the transistor M P26 The gate of is connected to the output terminal of the control signal CLKB, serving as the reset terminal R.
9. The true random number generator circuit that is insensitive to power supply voltage according to claim 8, characterized in that, The transistor M p18 ~ M p29 All are PMOS transistors.
10. The true random number generator circuit that is insensitive to power supply voltage according to claim 1, characterized in that, The random number acquisition circuit includes: a counter and a D flip-flop; The counter has its input terminal electrically connected to the output terminal of the clock shaping circuit, its reset terminal electrically connected to the output terminal of the control signal CLKB, and its output terminal electrically connected to the input terminal of the D flip-flop. It is used to count the random number of cycles of the full-swing oscillating voltage signal. The D flip-flop has its data input terminal connected to the output terminal of the counter, and its clock input terminal connected to the output terminal of the control signal CLK. The output terminal of the D flip-flop is used to output random numbers.
Citation Information
Patent Citations
High-speed true random number generator based on current starvation type ring oscillator
CN109783060A
Circuit and equipment of true random number generator
CN110336536A
