CN211653634U - Coarse grain size correction device for improving randomness of output sequence - Google Patents

Coarse grain size correction device for improving randomness of output sequence Download PDF

Info

Publication number
CN211653634U
CN211653634U CN202020594864.1U CN202020594864U CN211653634U CN 211653634 U CN211653634 U CN 211653634U CN 202020594864 U CN202020594864 U CN 202020594864U CN 211653634 U CN211653634 U CN 211653634U
Authority
CN
China
Prior art keywords
output sequence
charging
randomness
charging pipe
tube
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202020594864.1U
Other languages
Chinese (zh)
Inventor
朱伟华
谭军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiayuan Technology Co Ltd
Original Assignee
Jiayuan Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiayuan Technology Co Ltd filed Critical Jiayuan Technology Co Ltd
Priority to CN202020594864.1U priority Critical patent/CN211653634U/en
Application granted granted Critical
Publication of CN211653634U publication Critical patent/CN211653634U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The utility model provides a coarse grain size correcting device for improving the randomness of an output sequence, which relates to the field of network information safety and comprises a random number generator, wherein the random number generator comprises a charging tube and a finite state machine; the finite state machine is in communication connection with a charging pipe, and the charging pipe is a configurable charging pipe; the configurable charging pipe comprises a main charging pipe and n configuration pipes, and the main charging pipe is connected with the configuration pipes in parallel; the n is more than or equal to 1, the influence of various non-ideal factors on the randomness of an output sequence is eliminated through coarse-grained correction by using a configurable charging tube, and the probability of continuous 0 or 1 occurrence is reduced by turning on or off a corresponding configuration tube through correction each time, so that the system is in a balanced state; in addition, the correction strategy may also prevent overcorrection of the initial mismatch condition.

Description

Coarse grain size correction device for improving randomness of output sequence
Technical Field
The utility model relates to a network information security field especially relates to an improve coarse grain correction device of output sequence randomness.
Background
With the explosion development of the internet and the generation of concepts such as cloud computing and cloud storage, network information security is more and more important.
The generation of the true random number is based on natural physical phenomena, and according to different implementation methods, a true random number generator can be divided into three types, namely a discrete chaotic TRNG, an oscillator sampling TRNG and a thermal noise TRNG, wherein the discrete chaotic TRNG is based on a chaos theory of a nonlinear system, a complex switch network circuit is used in design, and high speed and low power consumption cannot be taken into consideration. Oscillator sampling TRNG converts the noise source into phase jitter of a high frequency ring oscillator and uses a low frequency clock for sampling, which has the disadvantage of insufficient randomness, requiring the introduction of additional noise and disturbances to increase the randomness of the output sequence. The thermal noise TRNG directly amplifies resistance thermal noise or MOS transistor channel thermal noise as a random source, and is most widely applied. A typical approach is to amplify the thermal noise of a pair of large resistors using a high-gain high-bandwidth differential amplifier and quantize the resulting samples with an analog-to-digital converter. As the process size decreases, the design of high gain high bandwidth amplifiers becomes more difficult, and non-ideal factors such as amplifier offset, substrate coupled noise, etc. will affect the randomness of the system output.
The utility model mainly relates to a RNG-1's digital physics noise source circuit, RNG-1 is a style of digital physics noise source circuit for produce true random number sequence, be the essential basic component in information security and the password product, if: the generation of session keys, device keys, and the setting of random numbers and various initial vectors in security protocols, all require the use of true random sequences, which are also widely used in other fields such as communications, measurements, acoustics, and the like.
The RNG-1 physical noise source can form an application system together with a CPU and an E2 PROM. It is widely used for key management in information security, i.e., generating keys, storing keys, and updating keys. The sequence of the physical noise source output in the system has good randomness. The CPU in the system is used for generating control signals of a physical noise source and an E2PROM chip, and the E2PROM is used for storing a random sequence output by the physical noise source chip under the control of the CPU. The E2PROM has the performance of repeated erasing and writing, so that the system can conveniently perform repeated key generation and storage operations, thereby realizing the key updating function. The system can realize the key management of the one-time pad. The method can be used for key management of military information transmission and network information transmission, and can also be used for manufacturing coded locks and the like.
The product index and the electrical characteristic parameters are as follows: working voltage: 3.3V (+ -10%), 5V, 3.3V. Sampling frequency: less than or equal to 20 MHz. Output rate: less than or equal to 20 Mbps. Dynamic characteristics: CLK-DATA propagation delay: less than or equal to 15 ns; DATA output transition time: less than or equal to 15 ns; output allowed time: less than or equal to 10 ns; output prohibition time: less than or equal to 10 ns. Power consumption: the working current is less than or equal to 20 mA; the sleep current is less than or equal to 300 muA. Temperature range: working temperature range: -40 ℃ to 85 ℃; storage temperature range: -55 ℃ to 125 ℃. The chip pin distribution diagram is shown in fig. 1, and the pin description of each pin is shown in the following table:
TABLE 1 Pin description
Figure BDA0002457808970000021
Typical applications include, as shown in fig. 2, a series resistor connected to the positive power supply VDD terminal of the chip to protect the circuit during testing and application, and a bypass capacitor of about 0.1uf is proposed to decouple the power supply.
The core circuit of the true random number generator is a typical structure of a true random number generator based on thermal noise, as shown in fig. 3. The device mainly comprises a thermal noise source, an amplifier and a comparator. Due to the existence of non-ideal factors such as input offset, limited bandwidth, substrate coupling, power supply voltage disturbance and temperature variation of the amplifier, a feedback loop and a post-processing module are required to be added in an actual circuit to increase the randomness of an output sequence. Since the thermal noise has a small amplitude, a high-gain amplifier needs to be designed, which undoubtedly increases the difficulty of designing the circuit and occupies most of the power consumption of the system. To obtain a larger gain, a positive feedback structure may be used in addition to the high gain amplifier.
The working process is shown in FIG. 4, M1-M4 form positive feedback; m5 and M6 tubes are charging tubes; m7 and M8 tubes are reset tubes. Fig. 6 is a timing diagram of the Reset signal Reset and the clock signal CLK. The specific working process of the circuit is as follows: when the rising edge of the Reset signal Reset arrives, the Reset transistors M7 and M8 are turned on, and the output nodes c and d are Reset to the ground GND. At the same time, CLK is low, and the charging tubes M5, M6 are conductive. Since the switch transistor M9 is a PMOS transistor, it can conduct high level, so that the potentials of the nodes a and b are equal. When the Reset falling edge and the CLK rising edge come, M5-M8 are turned off. When the falling edge of CLK comes again, M5 and M6 are turned on simultaneously, and ID1 and ID2 charge node capacitors Ca and Cb, respectively. Due to channel thermal noise of M5 and M6 tubes, charging currents ID1 and ID2 are not strictly equal. This will cause one of the M3, M4 tubes to turn on first reaching the threshold voltage | vth.p |. Under the positive feedback effect of M1-M4 tubes, the voltage difference between the c node and the d node is increased rapidly and reaches a stable state. When CLK finally returns to high level, the voltages of the nodes c and d are output by the buffer unit to obtain a random sequence.
It should be noted that the above is performed under ideal conditions without occurrence of transistor mismatch, power supply voltage disturbance, and the like. Under non-ideal conditions, for example, the width-to-length ratios of the M5 and M6 tubes are not completely equal due to process limitations, there is an inherent error in the charging currents ID1 and ID2 of the M5 and M6 tubes. This error causes the output to be biased towards some fixed result. If the equivalent thermal noise current of the transistor is less dominant than the error caused by mismatch, the randomness of the output sequence will be greatly reduced. When the circuits on the left side and the right side are completely matched, the disturbance of the power supply voltage VDD exists in the form of common mode noise, the charging currents ID1 and ID2 are increased or decreased by the same value, no influence is caused on the output result, and the output is only influenced by differential mode noise. However, when the circuits on the two sides are not completely symmetrical, the power supply voltage disturbance is converted into differential mode noise through circuit conduction, and the randomness of an output sequence is influenced. This condition can be addressed by reducing the mismatch of the transistors in the left and right side circuits. Other factors that may introduce error are temperature variations and device aging. To take maximum advantage of the randomness of the thermal noise source, static and dynamic errors in the structure need to be eliminated. This requires the introduction of a corresponding adjustment mechanism such that the amplitude of the equivalent noise is much larger than the sum of the errors introduced by the various non-ideal factors.
SUMMERY OF THE UTILITY MODEL
The utility model aims to provide a: aiming at the problems in the prior art, a coarse-grained correction device for improving the randomness of an output sequence is provided to eliminate the influence of various non-ideal factors on the randomness of the output sequence.
The utility model adopts the technical scheme as follows:
a coarse grain correction device for improving the randomness of an output sequence comprises a random number generator, a random number generator and a finite-state machine, wherein the random number generator comprises a charging tube and the random number generator further comprises the finite-state machine; the finite state machine is in communication connection with a charging pipe, and the charging pipe is a configurable charging pipe;
the configurable charging pipe comprises a main charging pipe and n configuration pipes, and the main charging pipe is connected with the configuration pipes in parallel;
and n is greater than or equal to 1.
Further, n is 4.
Furthermore, the configuration pipes of the configurable charging pipes are configuration pipes with different weights.
Furthermore, the configuration tubes of the configurable charging tube are all connected in series with one MOS tube, and the G pole of each MOS tube is respectively connected with a corresponding control signal conf [ n ]; and the G poles of the main charging tube and the G poles of the configuration tube are both connected with a clock signal.
Furthermore, the number of the configurable charging tubes is two, and the finite state machine is respectively connected with each configurable charging tube in a communication mode.
Further, a register is included in communication with the random number generator, and a 4-bit shift register is used to detect the successive 4-bit outputs and determine whether the output sequence is biased toward 0 or 1.
Since the technical scheme is adopted, the beneficial effects of the utility model are that: the problem in the prior art is solved, the configurable charging tube is used for eliminating the influence of various non-ideal factors on the randomness of an output sequence through coarse grain correction, and a corresponding configuration tube is switched on or off through correction each time so as to reduce the probability of continuous 0 or 1 occurrence and enable the system to be in a balanced state; in addition, the correction strategy may also prevent overcorrection of the initial mismatch condition.
Drawings
FIG. 1 is a schematic diagram of pin distribution of an RNG-1 chip;
FIG. 2 is a schematic diagram of an application circuit of the chip;
FIG. 3 is a block diagram of a true random number generator based on thermal noise;
FIG. 4 is a schematic diagram of a true random number generator circuit;
FIG. 5 is an overall block diagram of a true random number generator;
FIG. 6 is a timing diagram of clock and reset signals;
FIG. 7 is a configurable block diagram of coarse grain adjustment;
FIG. 8 is a chart of coarse grain corrected randomness tests;
fig. 9 is a flowchart of background correction.
Detailed Description
The present invention will be described in detail with reference to the accompanying drawings.
In order to make the objects, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It is known from the analysis of the prior art that the randomness of the output sequence is reduced by the factors such as the process and the power supply voltage disturbance. The circuit adopts coarse grain correction to eliminate the influence of various non-ideal factors on the randomness of an output sequence, the whole structure is shown as figure 5, and the circuit comprises a random number generator which comprises a charging tube and a finite-state machine; the finite state machine is connected with a charging tube in a communication way, the charging tube is a configurable charging tube, and the working steps are as follows:
step 1: performing coarse grain correction on the random source by adopting a configurable charging tube;
step 2: fine-grained correction is carried out on the random source;
and step 3: generating an output sequence, and detecting the randomness of the output sequence;
the configurable charging tube is adopted to carry out coarse grain correction, and due to mismatch between M5 and M6, the charging tubes M5 and M6 in FIG. 4 are replaced by the configurable structure shown in FIG. 7, the configurable charging tube is formed by connecting a main charging tube and four configuration tubes with different weights in parallel, specifically, the configuration tubes of the configurable charging tube are connected with an MOS tube in series, and G poles of the MOS tubes are respectively connected with corresponding control signals conf [ n ]; and the G poles of the main charging tube and the G poles of the configuration tube are both connected with a clock signal. The 4bit control signals conf _ M5[3:0] and conf _ M6[3:0] respectively control the on and off of the configuration tubes connected with M5 and M6 in parallel, so that the magnitude of the charging current on two sides is adjusted. If ID1 > ID2, ID1 — ID2 can be achieved by turning off several configuration tubes connected in parallel to M5 tubes or turning on several configuration tubes connected in parallel to M6 tubes. With the structure shown in fig. 7, the correctable mismatch range is up to ± 16%, and the correction step size is 1%. Mismatch range is 0% -5%, step length is 0.1%. Fig. 8 shows the results of the randomness test of the output sequence after coarse grain correction (measured in fig. 8 using only the frequency detection of NIST). The 6P value peaks in fig. 8 verify that the coarse grain correction has a correction step size of about 1%.
The adaptivity of the true random number generator is implemented by a finite state machine guarantee. As shown in FIG. 6, the 4-bit shift register is used herein to detect the continuous 4-bit output and determine whether the output sequence is biased to 0 or 1. If the number of 0 s in the continuous 4-bit output is more than 2, the output is considered to be inclined to 0, and a 2-bit flag signal flag is set to 10; if the number of 0 is less than 2, the output is considered to be 1, and flag is set to 01; if the number of 0 is just equal to 2, the system is considered to be in a balanced state, and flag is set to 00. When the system is in an unbalanced state, adjusting one of 4 configuration signals conf _ M5[3:0] and conf _ M6[3:0] every four clock cycles brings the system to a balanced state; when the system is in a balanced state, the configuration signal remains unchanged. It is noted that this way of correction does not lead to the situation where consecutive multi-bit 0 s or multi-bit 1 s are not available, but only slightly reduces the probability of this occurring.
The state transition diagram of the finite state machine is shown in fig. 9, and the finite state machine is respectively connected with each configurable charging tube in communication. Coarse grain correction is first performed when the chip is powered on. Depending on the detected output, one of the coarse-grain correction control signals conf _ M5[3:0] and conf _ M6[3:0] is subjected to a corresponding plus 1 or minus 1 operation every four clock cycles until a 10-01 or 01-10 inversion of the flag signal flag occurs. For example, at power-up, due to device mismatch, the outputs are all 0, and the flag signal flag is 10. Calibration is first performed by turning on the configuration tube of M5 until conf _ M5 is 0000. If flag is still equal to 10 at this time, the finite state machine performs correction by turning off the configuration pipe of M6 until the flag signal flips. The correction strategy may prevent overcorrection of the initial mismatch condition.
In the present invention, it is assumed that there is only a mismatch between M5 and M6. In reality, the mismatch between M1 and M2, and between M3 and M4 also reduces the randomness of the output. Their mismatch will cause the c and d nodes to produce a fixed difference when reset, thereby affecting the output result. Generally, the influence of M1 and M2 on randomness is smaller than the mismatch of M3-M5. Therefore, the matching errors of M1-M4 can be normalized to the matching errors of M5 and M6, namely, the mismatch of M1-M4 is equivalent to the mismatch of M5 and M6 under the same output condition, so that other correction modes are not needed.
And (3) simulating the whole true random number generator system consisting of the analog circuit part and the digital correction algorithm by adopting a Cadence spectrum-verilog hybrid simulator, wherein the working frequency of the system is 125 MHz. The simulation process adopts a 0.18 mu m CMOS process, and the working voltage is 1.8V. Artificially introducing 2% mismatch for the M1, M3, and M5 tubes, the initial output of the system is a sequence of all 1's. After the correction of the dynamic correction algorithm, the system enters a high-entropy area to obtain a required random number sequence. From the NIST test results of the output sequence, it passed all the test functions.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, as any modifications, equivalents, improvements and the like made within the spirit and principles of the present invention are intended to be included within the scope of the present invention.

Claims (6)

1. A coarse grain correction apparatus for improving randomness of an output sequence, comprising a random number generator including a charge tube, characterized in that: the random number generator further comprises a finite state machine; the finite state machine is in communication connection with a charging pipe, and the charging pipe is a configurable charging pipe;
the configurable charging pipe comprises a main charging pipe and n configuration pipes, and the main charging pipe is connected with the configuration pipes in parallel;
and n is greater than or equal to 1.
2. The coarse-grained correction device for improving randomness of an output sequence according to claim 1, characterized in that: and n is 4.
3. The coarse-grained correction device for improving randomness of an output sequence according to claim 1, characterized in that: the configuration pipes of the configurable charging pipes are configuration pipes with different weights.
4. The coarse-grained correction device for improving randomness of an output sequence according to claim 1, characterized in that: the configuration tubes of the configurable charging tube are all connected with an MOS tube in series, and the G pole of each MOS tube is respectively connected with a corresponding control signal conf [ n ]; and the G poles of the main charging tube and the G poles of the configuration tube are both connected with a clock signal.
5. The coarse-grained correction device for improving randomness of an output sequence according to claim 1, characterized in that: the number of the configurable charging tubes is two, and the finite-state machine is respectively in communication connection with the configurable charging tubes.
6. The coarse-grained correction device for improving randomness of an output sequence according to claim 1, characterized in that: the device also comprises a register which is in communication connection with the random number generator, a 4-bit shift register is adopted to detect continuous 4-bit output, and the output sequence is judged to be inclined to 0 or 1.
CN202020594864.1U 2020-04-20 2020-04-20 Coarse grain size correction device for improving randomness of output sequence Active CN211653634U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202020594864.1U CN211653634U (en) 2020-04-20 2020-04-20 Coarse grain size correction device for improving randomness of output sequence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202020594864.1U CN211653634U (en) 2020-04-20 2020-04-20 Coarse grain size correction device for improving randomness of output sequence

Publications (1)

Publication Number Publication Date
CN211653634U true CN211653634U (en) 2020-10-09

Family

ID=72689078

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202020594864.1U Active CN211653634U (en) 2020-04-20 2020-04-20 Coarse grain size correction device for improving randomness of output sequence

Country Status (1)

Country Link
CN (1) CN211653634U (en)

Similar Documents

Publication Publication Date Title
JP4938612B2 (en) Random number generator
CN107764431B (en) Chip core temperature detection circuit
CN110401443B (en) Metastable state detection elimination circuit of synchronous clock ADC circuit
US11983303B2 (en) Intrinsic data generation device, semiconductor device and authentication system
US7102381B2 (en) Adaptive termination for optimum signal detection
CN101751240B (en) True random number generator circuit for comparing thermal noises of equal resistors
CN211653634U (en) Coarse grain size correction device for improving randomness of output sequence
He et al. ASCH-PUF: A “Zero” Bit Error Rate CMOS Physically Unclonable Function With Dual-Mode Low-Cost Stabilization
CN212061135U (en) Device for improving randomness of output sequence
CN211577876U (en) Fine granularity correction device for improving randomness of output sequence
Ni et al. A reliable multi-information entropy Glitch PUF using schmitt trigger sampling method for IoT security
CN111538477B (en) Coarse granularity correction method for improving randomness of output sequence
CN116683897B (en) Comparator circuit, integrated circuit, and electronic device
CN113539334A (en) Measurement mechanism for physically unclonable functions
CN111538478A (en) Method for improving randomness of output sequence
CN111538476A (en) Fine-grained correction method for improving randomness of output sequence
CN113946882B (en) Schmitt trigger-based ultralow-power-consumption weak physical unclonable function circuit
CN109710015B (en) Gate delay stabilizing circuit and method
US20210328817A1 (en) Physically unclonable function with precharge through bit lines
Peng et al. A side-channel attack resistant AES with 500mbps, 1.92 pj/bit PVT variation tolerant true random number generator
Mao et al. Zero-bias true random number generator using LFSR-based scrambler
CN109634559B (en) True random number generator for resisting periodic noise by using comparator
Han et al. An Ultra-Low Power 3-T Chaotic Map based True Random Number Generator
US11038518B2 (en) Dynamic integration time adjustment of a clocked data sampler using a static analog calibration circuit
CN118337380A (en) Strong physical unclonable function circuit based on cyclic feedback reference voltage source array

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant