CN100416492C - Random number generator and probability generator - Google Patents

Random number generator and probability generator Download PDF

Info

Publication number
CN100416492C
CN100416492C CNB021263345A CN02126334A CN100416492C CN 100416492 C CN100416492 C CN 100416492C CN B021263345 A CNB021263345 A CN B021263345A CN 02126334 A CN02126334 A CN 02126334A CN 100416492 C CN100416492 C CN 100416492C
Authority
CN
China
Prior art keywords
random number
output
mentioned
number generator
circuit
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.)
Expired - Lifetime
Application number
CNB021263345A
Other languages
Chinese (zh)
Other versions
CN1397871A (en
Inventor
山本博康
清水隆邦
A·维撒纳格
鲤渕美佐子
曾我龙司
志贺隆明
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.)
FDK Corp
Original Assignee
FDK Corp
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
Priority claimed from JP2001216704A external-priority patent/JP3487300B2/en
Priority claimed from JP2001217710A external-priority patent/JP3496664B2/en
Application filed by FDK Corp filed Critical FDK Corp
Publication of CN1397871A publication Critical patent/CN1397871A/en
Application granted granted Critical
Publication of CN100416492C publication Critical patent/CN100416492C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Manipulation Of Pulses (AREA)

Abstract

一种随机数发生装置,其特征在于由对应输入到2个输入部的信号的相位差确定输出状态(0或1)的触发器、使这2个输入信号中产生相位差的延迟部、通过上述输入信号来控制上述相位差以使得触发器输出的0或1的出现率按规定反复周期一定的反馈电路构成。

Figure 02126334

A random number generator characterized in that a flip-flop that determines an output state (0 or 1) corresponding to a phase difference of signals input to two input parts, a delay part that causes a phase difference between the two input signals, and a The above-mentioned input signal controls the above-mentioned phase difference so that the occurrence rate of 0 or 1 output by the flip-flop is constant in a predetermined repetition cycle.

Figure 02126334

Description

随机数发生装置和概率发生装置 Random number generator and probability generator

技术领域 technical field

本发明涉及一种适合于用于科学技术计算、游戏机或加密处理等中的随机数发生装置和使用该随机数发生装置构成的概率发生装置。而且,本发明涉及自动调整输入到触发器的2个输入信号的相位差以使得触发器输出的0或1的出现率一定的随机数发生装置,尤其涉及有效的相位调整部件。The present invention relates to a random number generating device suitable for use in scientific and technical calculations, game machines, encryption processing, etc., and a probability generating device formed using the random number generating device. Furthermore, the present invention relates to a random number generator that automatically adjusts the phase difference between two input signals input to a flip-flop so that the occurrence rate of 0 or 1 output by the flip-flop is constant, and particularly relates to an effective phase adjustment unit.

背景技术 Background technique

高度的科学技术计算和游戏机或加密处理等中随机数的使用是不可缺少的,近年来,对具有同一性(由于随机数,在出现率上不产生差异的情况)且不具有随机数出现的规律性、前后的相关性、周期性等的高性能自然随机数(本征随机数)的产生装置和概率发生装置的需要日益增加。The use of random numbers is indispensable for high-level scientific and technical calculations, game machines, encryption processing, etc., and in recent years, there are no random numbers that have identity (when there is no difference in the occurrence rate due to random numbers) and do not have random numbers There is an increasing need for high-performance natural random number (intrinsic random number) generators and probability generators with regularity, correlation, and periodicity.

并且,作为上述的自然随机数/概率发生装置,公知的是利用例如利用微弱放射线、电阻和二极管的热噪声或石英振荡器的振动等得到的随机的脉冲的情况。In addition, as the above-mentioned natural random number/probability generator, it is known to use random pulses obtained by, for example, weak radiation, thermal noise of resistors and diodes, or vibration of a quartz oscillator.

但是,利用根据上述自然现象的随机脉冲的随机数/概率发生电路中,包含很多像上述随机脉冲的发生源、信号的妨碍器、波形整形、同一性的适当化电路等的模拟要素,因此电路规模变大,变复杂,从而难以将它们装载为议题的逻辑LSI,对于今后更需期待的IC卡等超小型、薄型高技术设备中使用是不利的。由于LSI化困难,生产性恶化,成本增高。However, the random number/probability generation circuit using random pulses from the above-mentioned natural phenomena includes many analog elements such as the above-mentioned random pulse generation source, signal interrupter, waveform shaping, and identity optimization circuit. Therefore, the circuit Logic LSIs that become larger and more complex, making it difficult to mount them as an issue, are disadvantageous for use in ultra-small and thin high-tech devices such as IC cards that are expected to be expected in the future. Due to difficulty in making LSI, productivity deteriorates and cost increases.

尤其,利用热噪声的情况容易受到外部噪声和电源变动或温度等的影响,缺点是动作稳定性欠缺,利用放射线的情况由于即使它很微弱也担心放射线对环境产生影响,因此可使用的放射线量有限制,由此,难以应付短时间产生大量随机数的用途。In particular, when using thermal noise, it is easily affected by external noise, power supply fluctuations, or temperature, and the disadvantage is that the operation stability is lacking. When using radiation, there is concern about the impact of radiation on the environment even if it is weak. Therefore, the amount of radiation that can be used There is a limit, and thus, it is difficult to cope with the use of generating a large number of random numbers in a short time.

发明内容 Contents of the invention

本发明的目的是提供一种高性能且安全性高的随机数发生装置和概率发生装置,通过由数字电路的结构实现自然随机数的生成,解决了作为上述已有技术的问题的同一性、规律性、相关性、周期性等问题。The object of the present invention is to provide a high-performance and high-security random number generator and probability generator, by realizing the generation of natural random numbers by the structure of a digital circuit, which solves the problems of the above-mentioned prior art. Regularity, correlation, periodicity and other issues.

本发明的另一目的是提供一种高性能的随机数发生装置和概率发生装置,解决了上述已有技术的问题,实现LSI装载的小型、薄型化而利于生产,同时在性能方面,也不产生同一性、规律性、相关性、周期性等问题。Another object of the present invention is to provide a high-performance random number generator and probability generator, which solves the above-mentioned problems in the prior art, realizes the miniaturization and thinning of LSI loading, and facilitates production. Issues such as identity, regularity, correlation, and periodicity arise.

本发明的再一目的是提供高速且高性能的随机数发生装置。Another object of the present invention is to provide a high-speed and high-performance random number generator.

本发明的又一目的是提供一种1比特随机数发生装置和多比特随机数发生装置以及概率发生装置,可简单地检验随机数数据的出现同一性并提高可靠性。Another object of the present invention is to provide a 1-bit random number generator, a multi-bit random number generator and a probability generator, which can easily check the appearance identity of random number data and improve reliability.

这里,作为根据输入到2个输入部的信号的相位差确定输出的状态(0或1)的触发器,已知有D型触发器。Here, a D-type flip-flop is known as a flip-flop that determines an output state (0 or 1) based on a phase difference between signals input to two input units.

该D型触发器如图13所示,是具有作为输入部的时钟端子CLK和数据端子D,如图14(a)、14(b)所示的输入输出波形那样,根据CLK输入上升沿时数据端子D的状态(0或1)确定输出Q和Q(Q:Q的反转输出)的状态的所谓的边缘触发型触发器。As shown in FIG. 13, this D-type flip-flop has a clock terminal CLK and a data terminal D as input parts. As shown in the input and output waveforms shown in FIGS. 14(a) and 14(b), when the rising edge of CLK The state (0 or 1) of the data terminal D determines the state of the outputs Q and Q (Q: an inverted output of Q), a so-called edge-triggered type flip-flop.

这里,从图14(a)或图14(b)的状态使CLK信号的上升沿时间和D信号的上升沿时间的差(相位差)Δt接近0时,如图14(c)所示,存在触发器输出Qn、/Qn不确定的相位差范围。Here, when the difference (phase difference) Δt between the rising edge time of the CLK signal and the rising edge time of the D signal is approached to 0 from the state of FIG. 14(a) or FIG. 14(b), as shown in FIG. 14(c), There is a phase difference range in which the flip-flop outputs Qn and /Qn are uncertain.

本发明积极利用这种触发器的不确定动作来生成自然随机数。The present invention actively exploits the non-deterministic behavior of such triggers to generate natural random numbers.

<本发明的第一形式><First Form of the Invention>

即,技术方案1所述的随机数发生装置,其特征在于具有对应输入到2个输入部的信号的相位差确定输出状态(0或1)的触发器;通过将上述输入信号延迟数级来输出的延迟电路和对应选择输入选择延迟输出之一的选择电路,使这2个输入信号中产生相位差的延迟部;和反馈电路,具有:计测上述输入信号的规定的反复周期的第一计数器;计测每个反复周期中上述触发器输出的0或1的出现数的第二计数器;按反复周期保持该第二计数器的计测输出的寄存器;产生用于设定上述触发器输出的0或1的出现率的比较数据的常数设定器;比较上述寄存器的输出数据和上述比较数据的大小的比较器;根据该比较器的比较输出产生上述选择电路的选择信号的可逆计数器,并通过上述输入信号来控制上述相位差以使得触发器输出的0或1的出现率按规定反复周期一定的反馈电路。That is, the random number generator described in technical solution 1 is characterized in that there is a flip-flop that determines the output state (0 or 1) corresponding to the phase difference of the signals input to the two input parts; The output delay circuit and the selection circuit corresponding to the selected input selects one of the delayed outputs to generate a phase difference between the two input signals; and the feedback circuit has: a first step for measuring a predetermined repetition period of the above-mentioned input signal a counter; a second counter that counts the number of occurrences of 0 or 1 output by the above-mentioned flip-flop in each repetition cycle; a register that holds the measurement output of the second counter in each repetition cycle; and generates a register for setting the output of the above-mentioned flip-flop A constant setter for comparison data of the occurrence rate of 0 or 1; a comparator for comparing the output data of the above-mentioned register with the size of the above-mentioned comparison data; a reversible counter for generating a selection signal of the above-mentioned selection circuit according to the comparison output of the comparator, and A feedback circuit that controls the above-mentioned phase difference through the above-mentioned input signal so that the occurrence rate of 0 or 1 output by the flip-flop is constant in a predetermined repetition period.

上述技术方案所述的结构中,关于随机数的产生,全部用数字电路实现具有同一型、且不具有规律性、相关性、周期性的自然随机数的发生装置。通过适当设定输入信号的反复周期和延迟部的设定相位差的分解能,可高速生成大量随机数。而且,是数字电路结构,容易应对LSI化。In the structure described in the above technical solution, regarding the generation of random numbers, all digital circuits are used to realize the generators of natural random numbers with the same type and no regularity, correlation, or periodicity. By appropriately setting the repetition period of the input signal and the resolution of the set phase difference of the delay unit, a large number of random numbers can be generated at high speed. Moreover, it is a digital circuit structure, and it is easy to adapt to LSI.

根据技术方案4所述的随机数发生装置,其特征在于作为上述第一计数器中设定的反复周期的设定数据和上述比较器的比较数据,使用上述触发器输出的随机数或加密该随机数构成的随机数。According to the random number generator described in technical solution 4, it is characterized in that as the setting data of the repetition cycle set in the above-mentioned first counter and the comparison data of the above-mentioned comparator, the random number output by the above-mentioned trigger is used or the random number is encrypted. A random number composed of numbers.

本结构中,与随机数的生成有关的周期性完全丧失。In this configuration, the periodicity associated with the generation of random numbers is completely lost.

根据技术方案5所述的随机数发生装置,其特征在于具有和技术方案3所述的随机数发生装置相同结构的辅助随机数发生装置,作为上述第一计数器中设定的反复周期的设定数据和上述比较器的比较数据,使用上述辅助随机数发生装置产生的随机数。According to the random number generating device described in technical solution 5, it is characterized in that there is an auxiliary random number generating device having the same structure as the random number generating device described in technical solution 3, as the setting of the repetition period set in the first counter The data and the comparison data of the above-mentioned comparator use the random number generated by the above-mentioned auxiliary random number generator.

根据技术方案6所述的随机数发生装置,其特征在于具有和技术方案3所述的随机数发生装置相同结构的辅助随机数发生装置,作为上述第一计数器中设定的反复周期的设定数据和上述比较器的比较数据,使用上述辅助随机数发生装置产生的随机数和对上述随机数发生装置产生的随机数进行加密构成的随机数。According to the random number generator described in technical solution 6, it is characterized in that there is an auxiliary random number generator with the same structure as the random number generator described in technical solution 3, as the setting of the repetition period set in the first counter The data and the comparison data of the comparator use a random number generated by the auxiliary random number generator and a random number obtained by encrypting the random number generated by the random number generator.

技术方案5和技术方案6所述的结构中,来自辅助随机数发生装置的随机数数据都不输出到外部(随机数发生装置以外),因此生成的随机数的性质、倾向、周期性等不可预测,由此完全为自然随机数。In the structures described in claim 5 and claim 6, none of the random number data from the auxiliary random number generator is output to the outside (other than the random number generator), so the nature, tendency, periodicity, etc. of the generated random numbers cannot be determined. Predictions are thus completely natural random numbers.

根据技术方案7所述的随机数发生装置,其特征在于向上述触发器的输入信号线附加波形整形电路而构成。The random number generator according to claim 7 is characterized in that a waveform shaping circuit is added to the input signal line of the flip-flop.

通过钝化波形整形生成的输入信号,扩大触发器的不确定动作范围,容易生成随机数。By blunting the input signal generated by waveform shaping, the uncertain action range of the flip-flop is expanded, and random numbers are easily generated.

根据技术方案8所述的随机数发生装置,其特征在于具有在接通电源时将上述比较器的比较数据设定为规定期间0的初始控制电路。The random number generator according to claim 8 is characterized by comprising an initial control circuit which sets the comparison data of the comparator to 0 for a predetermined period when the power is turned on.

由此,电源接通开始到生成适当的随机数的期间缩短。This shortens the period from when the power is turned on to when an appropriate random number is generated.

根据技术方案9所述的随机数发生装置,其特征在于作为上述触发器,使用D型触发器或R-S触发器。The random number generator according to technical solution 9 is characterized in that a D-type flip-flop or an R-S flip-flop is used as the flip-flop.

根据技术方案10所述的随机数发生装置,其特征在于并列配置多个技术方案1所述的随机数发生装置。构成该并列型的随机数发生装置的各个随机数发生装置之间毫无关系。各个随机数发生装置也没有规律性、相关性、周期性。The random number generator according to technical solution 10 is characterized in that a plurality of random number generators according to technical solution 1 are arranged in parallel. There is no relationship between the random number generators constituting this parallel type random number generator. Each random number generator has no regularity, correlation or periodicity.

根据技术方案11所述的概率发生装置,其特征在于具有技术方案1所述的随机数发生装置。The probability generating device according to technical solution 11 is characterized by having the random number generating device described in technical solution 1.

如上所述,该随机数发生装置具有同一型并且没有规律性、相关性、周期性,因此整体的概率分布相同。As described above, the random number generators have the same type and have no regularity, correlation, or periodicity, so the overall probability distribution is the same.

<第二实施形式><Second Embodiment>

如上所述,作为根据输入到2个输入部的信号的相位差确定输出的状态(0或1)的触发器,已知有D型触发器。该D型触发器如图13所示,是具有作为输入部的时钟端子CLK和数据端子D,根据CLK输入上升沿时数据端子D的状态(0或1)确定输出Q和Q(Q:Q的反转输出)的状态的所谓的边缘触发型触发器。As described above, a D-type flip-flop is known as a flip-flop that determines an output state (0 or 1) based on a phase difference between signals input to two input units. As shown in Figure 13, the D-type flip-flop has a clock terminal CLK and a data terminal D as the input part, and the output Q and Q are determined according to the state (0 or 1) of the data terminal D when the rising edge of CLK is input (Q: Q The state of the inverted output) is a so-called edge-triggered flip-flop.

这里,从图14(a)或图14(b)的状态使CLK信号的上升沿时间和D信号的上升沿时间的差(相位差)Δt接近0时,如图14(c)所示,存在触发器输出Qn、/Qn不确定的相位差范围。并且该触发器的不确定动作范围在输入信号的抖动增大时扩大,更容易生成随机数。Here, when the difference (phase difference) Δt between the rising edge time of the CLK signal and the rising edge time of the D signal is approached to 0 from the state of FIG. 14(a) or FIG. 14(b), as shown in FIG. 14(c), There is a phase difference range in which the flip-flop outputs Qn and /Qn are uncertain. In addition, the uncertain operation range of the flip-flop expands when the jitter of the input signal increases, making it easier to generate random numbers.

本发明增大上述输入信号的抖动,积极利用此时的触发器的不确定动作来生成自然随机数。The present invention increases the jitter of the above-mentioned input signal, and actively utilizes the uncertain operation of the flip-flop at this time to generate a natural random number.

即,根据技术方案12所述的随机数发生装置,由输出1比特的串行随机数RND的触发器和在该触发器输入(CLK信号)间提供相位差的2系统延迟电路,和计测CLK信号的规定反复周期,并且监视在该规定周期中的触发器输出(随机数数据RND)的1或0的数目,并为使其出现率维持为一定值(例如,50%)而进行自动调整上述延迟电路的延迟时间的反馈控制的相位控制电路构成,其特征在于在上述触发器输入线上附加由噪声发生源、放大该噪声的放大电路、通过该放大噪声信号使输入信号产生抖动的混频电路构成的抖动生成电路。That is, according to the random number generator described in claim 12, a flip-flop outputting a 1-bit serial random number RND, a 2-system delay circuit providing a phase difference between the flip-flop inputs (CLK signal), and a measurement The specified repetition period of the CLK signal, and monitor the number of 1s or 0s of the trigger output (random number data RND) in the specified period, and automatically perform an automatic operation to maintain its occurrence rate at a certain value (for example, 50%). The feedback control phase control circuit configuration for adjusting the delay time of the above-mentioned delay circuit is characterized in that a noise generating source, an amplifying circuit for amplifying the noise, and a device for jittering the input signal by the amplified noise signal are added to the input line of the above-mentioned trigger. A jitter generating circuit composed of a mixing circuit.

根据技术方案13所述的随机数发生装置,其特征在于上述触发器的两个输入线上附加上述抖动生成电路。The random number generating device according to technical solution 13 is characterized in that the above-mentioned jitter generating circuit is added to the two input lines of the above-mentioned flip-flop.

根据技术方案14所述的随机数发生装置,其特征在于上述触发器的某一个输入线上附加上述抖动生成电路,另一输入线上附加延迟时间校正用的积分电路。The random number generator according to claim 14 is characterized in that the jitter generating circuit is added to one input line of the flip-flop, and an integrating circuit for delay time correction is added to the other input line.

这里技术方案12到技术方案14所述结构中,输入到触发器的输入信号产生抖动,扩大触发器的不确定动作范围。由此,容易生成具有同一性并且不具有规律性、相关性和周期性的完全自然随机数。Here, in the structures described in the technical solution 12 to the technical solution 14, the input signal input to the flip-flop generates jitter, which expands the uncertain action range of the flip-flop. Thus, it is easy to generate completely natural random numbers that have identity and do not have regularity, correlation, and periodicity.

根据技术方案15所述的随机数发生装置,其特征在于具有按上述输入信号的反复周期闩锁上述抖动生成电路的输出的锁存部件。The random number generator according to claim 15 is characterized in that it includes a latch means for latching the output of the jitter generating circuit at a repetition period of the input signal.

本结构中,1次的随机数生成中得到1次的输入信号,稳定随机数的生成动作。In this configuration, one input signal is obtained in one random number generation, and the random number generation operation is stabilized.

根据技术方案16所述的随机数发生装置由输出1比特的串行随机数RND的触发器和在该触发器输入(CLK信号)间提供相位差的2系统延迟电路,在上述触发器输入线上,由噪声发生源、放大该噪声的放大电路、通过该放大噪声信号使输入信号产生抖动的混频电路构成的抖动生成电路,和计测CLK信号的规定反复周期,并且监视在该规定周期中的触发器输出(随机数数据RND)的1或0的数目,并为使其出现率维持为一定值(例如,50%)而进行自动调整上述延迟电路的延迟时间的反馈控制的相位控制电路构成,其特征在于在上述触发器的数据输入线上,附加将上述2个输入信号的相位差检出的栅电路、由各栅电路输出接通/切断的P沟道晶体管和N沟道晶体管的串联电路和连接于其输出侧的RC积分电路构成的相位-电压变换电路。According to the random number generating device described in technical solution 16, a flip-flop outputting a 1-bit serial random number RND and a 2-system delay circuit providing a phase difference between the flip-flop inputs (CLK signal), the above-mentioned flip-flop input line Above, the jitter generating circuit is composed of a noise source, an amplifying circuit for amplifying the noise, a mixing circuit for jittering the input signal by amplifying the noise signal, and measuring the specified repetition cycle of the CLK signal, and monitoring the specified cycle The number of 1s or 0s in the flip-flop output (random number data RND), and the phase control of the feedback control that automatically adjusts the delay time of the above-mentioned delay circuit in order to maintain its occurrence rate at a constant value (for example, 50%) The circuit configuration is characterized in that on the data input line of the above-mentioned flip-flop, a gate circuit for detecting the phase difference of the above-mentioned two input signals, a P-channel transistor and an N-channel transistor for turning on/off the outputs of each gate circuit are added. A phase-voltage conversion circuit composed of a series circuit of transistors and an RC integrating circuit connected to its output side.

本结构中,相位-电压变换电路的输出上产生与连接于它的半导体元件(例如图39中缓冲器)的阈值电压大致相等的电压,自动调整2个输入信号的相位差(即相位-电压变换电路的输出)使得触发器输出的1或0的出现率一定。In this structure, the output of the phase-voltage conversion circuit generates a voltage approximately equal to the threshold voltage of the semiconductor element (such as the buffer in Figure 39) connected to it, and automatically adjusts the phase difference between the two input signals (that is, the phase-voltage The output of the conversion circuit) makes the occurrence rate of 1 or 0 output by the flip-flop constant.

根据技术方案17所述的随机数发生装置,其特征在于上述相位-电压变换电路具有仅在容许动作时动作的使能部件。The random number generator according to claim 17 is characterized in that the phase-voltage conversion circuit has an enabling unit that operates only when operation is permitted.

本结构中,仅在需要随机数时发出动作许可信号,使得可自由控制电路的激活期间,从而实现节电。In this structure, an action permission signal is issued only when a random number is needed, so that the activation period of the circuit can be freely controlled, thereby realizing power saving.

根据技术方案18所述的随机数发生装置,其特征在于上述相位-电压变换电路的输出上附加由噪声发生源、放大该噪声的放大电路、通过该放大噪声信号使输入信号产生抖动的混频电路构成的抖动生成电路。According to the random number generator described in technical solution 18, it is characterized in that the output of the above-mentioned phase-voltage conversion circuit is added with a noise generating source, an amplifying circuit for amplifying the noise, and a frequency mixing device for dithering the input signal through the amplified noise signal. The circuit constitutes the jitter generation circuit.

本结构中,积极增加触发器输出的1或0的出现概率的不确定因素。因此,容易生成具有同一型并且不具有规律性、相关性和周期性的更稳定的自然随机数。In this structure, the uncertainty factor of the occurrence probability of 1 or 0 of the flip-flop output is positively increased. Therefore, it is easy to generate more stable natural random numbers that have the same type and do not have regularity, correlation, and periodicity.

根据技术方案19所述的随机数发生装置,其特征在于具有仅在容许动作时动作的使能部件。The random number generator according to claim 19 is characterized in that it includes enabling means that operates only when the operation is permitted.

本结构中,仅在需要随机数时发出动作许可信号,使得可自由控制电路的激活期间,从而实现节电。In this structure, an action permission signal is issued only when a random number is needed, so that the activation period of the circuit can be freely controlled, thereby realizing power saving.

根据技术方案20所述的随机数发生装置,其特征在于上述混频电路由积分电路、分别以该积分输出信号和上述放大噪声信号为输入的串联P沟道晶体管电路和串联N沟道晶体管电路的串联连接电路构成。According to the random number generating device described in technical solution 20, it is characterized in that the above-mentioned mixing circuit is composed of an integrating circuit, a series-connected P-channel transistor circuit and a series-connected N-channel transistor circuit which respectively use the integral output signal and the above-mentioned amplified noise signal as inputs The series connection circuit constitutes.

根据技术方案21所述的随机数发生装置,其特征在于上述混频电路由以上述放大噪声信号和上述输入信号的合成信号为输入的N沟道晶体管电路和P沟道晶体管电路的串联晶体管电路构成。According to the random number generator described in technical solution 21, it is characterized in that the above-mentioned mixing circuit is composed of a series transistor circuit of an N-channel transistor circuit and a P-channel transistor circuit that takes the composite signal of the above-mentioned amplified noise signal and the above-mentioned input signal as an input. constitute.

根据技术方案22所述的随机数发生装置,,由输出1比特的串行随机数RND的R-S触发器和在该R-S触发器的输入间给予相位差的2系统的延迟电路,和计测CLK信号的规定反复周期,并且监视在该规定周期中的触发器输出(随机数数据RND)的1或0的数目,并为使其出现率维持为一定值(例如,50%)而进行自动调整上述延迟电路的延迟时间的反馈控制的相位控制电路构成,其特征在于分别在构成上述R-S触发器的内部晶体管电路的R侧栅电路或S侧栅电路的电源侧上串联连接P沟道晶体管,在GND侧上串联连接N沟道晶体管,并且在上述P沟道晶体管和N沟道晶体管的输入上连接噪声发生源和放大该噪声的放大电路,通过该放大噪声信号变化一方的上述栅电路的阈值电压。According to the random number generator described in claim 22, an R-S flip-flop that outputs a 1-bit serial random number RND, a delay circuit of two systems that gives a phase difference between the inputs of the R-S flip-flop, and a measurement CLK The specified repetition period of the signal, and monitor the number of 1 or 0 of the trigger output (random number data RND) in the specified period, and automatically adjust to maintain its occurrence rate at a certain value (for example, 50%) The phase control circuit configuration of the feedback control of the delay time of the above-mentioned delay circuit is characterized in that a P-channel transistor is connected in series on the power supply side of the R-side gate circuit or the S-side gate circuit of the internal transistor circuit constituting the above-mentioned R-S flip-flop, An N-channel transistor is connected in series on the GND side, and a noise generating source and an amplifying circuit for amplifying the noise are connected to the input of the above-mentioned P-channel transistor and the N-channel transistor, and the noise signal is changed by the amplified side of the above-mentioned gate circuit. threshold voltage.

根据技术方案23所述的随机数发生装置,由输出1比特的串行随机数RND的R-S触发器和在该R-S触发器的输入间给予相位差的2系统的延迟电路,和计测CLK信号的规定反复周期,并且监视在该规定周期中的触发器输出(随机数数据RND)的1或0的数目,并为使其出现率维持为一定值(例如,50%)而进行自动调整上述延迟电路的延迟时间的反馈控制的相位控制电路构成,其特征在于分别在构成上述R-S触发器的内部晶体管电路的R侧栅电路或S侧栅电路的电源侧上串联连接P沟道晶体管,在GND侧上串联连接N沟道晶体管,并且在上述P沟道晶体管和N沟道晶体管的输入上连接噪声发生源和放大该噪声的放大电路,通过该放大噪声信号变化双方的上述栅电路的阈值电压。According to the random number generator described in claim 23, an R-S flip-flop that outputs a 1-bit serial random number RND, a delay circuit of two systems that gives a phase difference between the inputs of the R-S flip-flop, and a measurement CLK signal The specified repetition period, and monitor the number of 1 or 0 of the trigger output (random number data RND) in the specified period, and automatically adjust the above-mentioned The phase control circuit configuration of the feedback control of the delay time of the delay circuit is characterized in that a P-channel transistor is connected in series on the power supply side of the R-side gate circuit or the S-side gate circuit of the internal transistor circuit constituting the above-mentioned R-S flip-flop respectively, An N-channel transistor is connected in series on the GND side, and a noise generating source and an amplifying circuit for amplifying the noise are connected to the input of the above-mentioned P-channel transistor and N-channel transistor, and the threshold value of the above-mentioned gate circuit of both sides is changed by the amplified noise signal. Voltage.

R-S触发器中,R侧输入信号和S侧输入信号的上升沿的相位差接近于0时,产生亚稳现象。产生该现象时,触发器输出确定之前需要时间,一定时间后的输出状态保持0或1或阈值电压,或者为振荡状态。这里,技术方案22和技术方案23所述结构中,通过改变R侧和/或S侧栅电路的阈值电压,可从亚稳状态即时进入到1或0的稳定状态。并且,自动调整2个输入信号的相位差使得该触发器输出的1或0的出现率保持一定。In the R-S flip-flop, when the phase difference between the rising edges of the R-side input signal and the S-side input signal is close to 0, a metastable phenomenon occurs. When this phenomenon occurs, it takes time until the trigger output is confirmed, and the output state after a certain period of time remains 0 or 1 or the threshold voltage, or is in an oscillating state. Here, in the structures described in the technical solution 22 and the technical solution 23, by changing the threshold voltage of the R-side and/or S-side gate circuit, the metastable state can be instantly entered into a stable state of 1 or 0. Moreover, the phase difference between the two input signals is automatically adjusted so that the occurrence rate of 1 or 0 output by the flip-flop remains constant.

根据技术方案24所述的随机数发生装置,其特征在于上述放大电路由电容器和电阻构成的串联输入电路和P沟道晶体管和N沟道晶体管的串联电路构成,并且该晶体管电路的输入-输出之间插入电阻。According to the random number generator described in technical solution 24, it is characterized in that the above-mentioned amplifying circuit is composed of a series input circuit composed of a capacitor and a resistor and a series circuit of a P-channel transistor and an N-channel transistor, and the input-output of the transistor circuit Insert a resistor between them.

根据技术方案25所述的随机数发生装置,其特征在于上述放大电路由电容器和电阻构成的串联输入电路和P沟道晶体管和N沟道晶体管的串联电路构成,并且该晶体管电路的输入-输出之间并联插入电容器和电阻。According to the random number generator described in technical solution 25, it is characterized in that the amplifying circuit is composed of a series input circuit composed of a capacitor and a resistor and a series circuit of a P-channel transistor and an N-channel transistor, and the input-output of the transistor circuit A capacitor and a resistor are inserted in parallel between them.

根据技术方案26所述的随机数发生装置,其特征在于多级串联连接上述放大电路构成。According to the random number generating device described in technical solution 26, it is characterized in that the amplifier circuits are connected in series in multiple stages.

根据技术方案27所述的随机数发生装置,其特征在于上述噪声发生源串联连接P沟道晶体管和N沟道晶体管的同时,使输入-输出之间短路而构成。The random number generator according to claim 27 is characterized in that the noise generating source is configured by connecting a P-channel transistor and an N-channel transistor in series, and short-circuiting between an input and an output.

根据技术方案28所述的随机数发生装置,其特征在于上述噪声发生源串联连接P沟道晶体管和N沟道晶体管的同时,在输入-输出之间插入电阻而构成。The random number generator according to claim 28 is characterized in that the noise generator is configured by connecting a P-channel transistor and an N-channel transistor in series, and inserting a resistor between the input and the output.

根据技术方案29所述的随机数发生装置,其特征在于上述噪声发生源串联连接P沟道晶体管和N沟道晶体管,在输入-输出之间插入电阻的同时,在输入-GND之间插入电阻和电容器构成的串联电路而构成。According to the random number generating device described in technical solution 29, it is characterized in that the above-mentioned noise generating source is connected in series with a P-channel transistor and an N-channel transistor, and a resistor is inserted between the input and the output while inserting a resistor between the input and GND. A series circuit composed of a capacitor and a capacitor is formed.

根据技术方案30所述的随机数发生装置,其特征在于上述噪声发生源串联连接P沟道晶体管和N沟道晶体管,在输入-输出之间插入电阻的同时,在输入-电源之间插入电阻和电容器构成的串联电路而构成。According to the random number generating device described in technical solution 30, it is characterized in that the above-mentioned noise generating source is connected in series with a P-channel transistor and an N-channel transistor, and a resistor is inserted between the input and the output while a resistor is inserted between the input and the power supply. A series circuit composed of a capacitor and a capacitor is formed.

根据技术方案31所述的随机数发生装置,其特征在于上述噪声发生源在使N沟道晶体管的输入-输出之间短路的同时,在输出-电源之间插入电阻而构成。The random number generator according to claim 31 is characterized in that the noise generating source is configured by short-circuiting between the input and the output of the N-channel transistor and inserting a resistor between the output and the power supply.

根据技术方案32所述的随机数发生装置,其特征在于上述噪声发生源分别在N沟道晶体管的输入-输出之间和输出-电源之间插入电阻而构成。The random number generator according to claim 32 is characterized in that the noise generators are configured by inserting resistors between the input and output of the N-channel transistor and between the output and the power supply.

根据技术方案33所述的随机数发生装置,其特征在于上述噪声发生源使P沟道晶体管的输入-输出之间短路的同时,输出-GND之间插入电阻而构成。The random number generator according to claim 33 is characterized in that the noise generating source short-circuits between the input and output of the P-channel transistor and inserts a resistor between the output and GND.

根据技术方案34所述的随机数发生装置,其特征在于上述噪声发生源分别在P沟道晶体管的输入-输出之间和输出-GND之间插入电阻而构成。The random number generating device according to claim 34 is characterized in that the noise generating sources are configured by inserting resistors between input and output and between output and GND of the P-channel transistor, respectively.

这里,在上述技术方案27到技术方案34所述的结构中,作为噪声发生源利用处于激活状态的电路元件(晶体管、电阻、电容器、或它们的组合)产生的微弱的热噪声,因此通过简单电路结构可非常廉价地实现。Here, in the structures described in the above-mentioned technical solution 27 to technical solution 34, weak thermal noise generated by circuit elements (transistors, resistors, capacitors, or combinations thereof) in an active state is used as a noise generation source, so by simply The circuit structure can be realized very cheaply.

根据技术方案35所述的概率发生装置,其特征在于使用根据技术方案12所述的随机数发生装置构成。The probability generating device according to technical solution 35 is characterized in that it is composed of the random number generating device according to technical solution 12.

本结构中,随机数发生装置通过具有同一性、不具有规律性、相关性、周期性可实现理想的概率发生装置。若用于加密通信等,则可进行在保密方面有利的通信。In this structure, the random number generating device can realize an ideal probability generating device by having identity, irregularity, correlation and periodicity. If used for encrypted communication, etc., it becomes possible to perform communication which is advantageous in terms of security.

<发明的第三形式><The third form of invention>

如上所述,作为根据输入到2个输入部的信号的相位差确定输出的状态(0或1)的触发器,已知有D型触发器。As described above, a D-type flip-flop is known as a flip-flop that determines an output state (0 or 1) based on a phase difference between signals input to two input units.

该D型触发器如图13所示,是具有作为输入部的时钟端子CLK和数据端子D,根据CLK输入上升沿时数据端子D的状态(0或1)确定输出Q和Q(Q:Q的反转输出)的状态的所谓的边缘触发型触发器。As shown in Figure 13, the D-type flip-flop has a clock terminal CLK and a data terminal D as the input part, and the output Q and Q are determined according to the state (0 or 1) of the data terminal D when the rising edge of CLK is input (Q: Q The state of the inverted output) is a so-called edge-triggered flip-flop.

这里,从图14(a)或图14(b)的状态使CLK信号的上升沿时间和D信号的上升沿时间的差(相位差)Δt接近0时,如图14(c)所示,存在触发器输出Qn、/Qn不确定的相位差范围。并且该触发器的不确定动作范围在输入信号的抖动增大时扩大,更容易生成随机数。Here, when the difference (phase difference) Δt between the rising edge time of the CLK signal and the rising edge time of the D signal is approached to 0 from the state of FIG. 14(a) or FIG. 14(b), as shown in FIG. 14(c), There is a phase difference range in which the flip-flop outputs Qn and /Qn are uncertain. In addition, the uncertain operation range of the flip-flop expands when the jitter of the input signal increases, making it easier to generate random numbers.

本发明是积极利用这种触发器的不确定动作的随机数发生装置。The present invention is a random number generator that positively utilizes the uncertain operation of such triggers.

即,根据技术方案36所述的随机数发生装置,由根据2个输入信号的相位差确定输出的状态(0或1)的触发器、调整上述输入信号的相位的相位调整部、和反馈电路部,具有第一计数器,从输入信号时钟计测预先决定的反复周期[时钟数(2×m)]的1/2的值(m);第二计数器,计测在每个该反复周期中,上述触发器的输出的“1”(或“0”)的出现次数;寄存器,在每个反复周期中取入上述第二计数器的计数值并保存;常数设定器,用于在每次将该计数值设定在寄存器时,将上述第2计数器清零,并设定触发器输出的“1”(或“0”)的出现率;比较器,将上述寄存器的保存数据(n)和来自在上述常数设定器的比较数据(m),作与比较结果n>m或n=m或n<m对应的比较输出;第三计数器,以由上述比较输出设定的动作模式动作,将上述计数数据输出作为选择器的选择信号;并控制上述相位差使得上述选择器输出由选择信号选择的时钟信号的规定的延迟信号,上述触发器输出的0或1的出现率在规定的反复周期内收敛为一定值而构成,其特征在于上述相位调整部将由设有将输入的信号阶级地延迟输出的第1延迟和第2延迟、设有根据选择输入选择延迟输出之一的第1延迟器、控制上述选择输入的第3计数器构成的相位调整电路作为微调整部件,并在上述各个延迟输出,附加由第3延迟、第2选择器构成的粗调整部件、和由第4延迟、第3选择器构成的粗调整部件,设有指出输出上述第2选择器和第3选择器的选择动作的第4计数器、将微调整用的第1延迟和第2延迟的每1级的延迟时间设定为与粗调整用的第3延迟和第4延迟的延迟时间相比约1/20以下,实现相位调整幅度的扩大和相位调整时间的缩短。That is, according to the random number generator described in claim 36, a flip-flop that determines an output state (0 or 1) based on a phase difference between two input signals, a phase adjustment unit that adjusts the phase of the input signal, and a feedback circuit The part has a first counter that measures a value (m) of 1/2 of a predetermined repetition period [number of clocks (2×m)] from the input signal clock; a second counter that measures the value (m) in each repetition period , the number of occurrences of "1" (or "0") of the output of the above-mentioned flip-flop; the register, in each repetition cycle, fetches the count value of the above-mentioned second counter and saves; the constant setter is used for When the count value is set in the register, the second counter above is cleared, and the occurrence rate of "1" (or "0") output by the flip-flop is set; the comparator saves the data (n) Make a comparison output corresponding to the comparison result n>m or n=m or n<m with the comparison data (m) from the above-mentioned constant setter; the third counter operates in the operation mode set by the above-mentioned comparison output , outputting the above-mentioned count data as the selection signal of the selector; and controlling the above-mentioned phase difference so that the above-mentioned selector outputs a specified delay signal of the clock signal selected by the selection signal, and the occurrence rate of 0 or 1 output by the above-mentioned flip-flop is within the specified Converging to a constant value in the repeated cycle, it is characterized in that the above-mentioned phase adjustment part is provided with a first delay and a second delay for delaying the output of the input signal step by step, and a first delay for selecting one of the delay outputs according to the selection input. A phase adjustment circuit composed of a delayer and a third counter that controls the above-mentioned selection input is used as a fine adjustment part, and at each of the above-mentioned delayed outputs, a rough adjustment part composed of a third delay and a second selector, and a fourth delay, The coarse adjustment part constituted by the third selector is provided with a fourth counter indicating the selection operation of the above-mentioned second selector and third selector, and a delay of each stage of the first delay and the second delay for fine adjustment. The time is set to less than about 1/20 of the delay time of the third delay and the fourth delay for rough adjustment, so that the phase adjustment range can be enlarged and the phase adjustment time can be shortened.

根据技术方案37所述的随机数发生装置,其特征在于上述粗调整部件和微调整部件分别由将上述输入信号多级延迟并输出的延迟电路、根据选择输入选择延迟输出之一的选择电路和根据上述相位差控制上述选择输入的可逆计数器构成。The random number generator according to technical solution 37 is characterized in that the rough adjustment unit and the fine adjustment unit are respectively composed of a delay circuit that delays and outputs the input signal in multiple stages, a selection circuit that selects one of the delayed outputs according to the selection input, and An up-down counter that controls the above-mentioned selection input based on the above-mentioned phase difference is configured.

上述技术方案36或技术方案37所述的结构中,通过进行相位粗调整、微调整可扩大相位调整的范围和有效的进行相位调整。In the structure described in the technical solution 36 or the technical solution 37, the phase adjustment range can be enlarged and the phase adjustment can be effectively performed by performing rough phase adjustment and fine adjustment.

根据技术方案38所述的随机数发生装置,由根据2个输入信号的相位差确定输出的状态(0或1)的触发器、调整上述输入信号的相位的相位调整部、和反馈电路部,具有第一计数器,从输入信号时钟计测预先决定的反复周期[时钟数(2×m)]的1/2的值(m);第二计数器,计测在每个该反复周期中,上述触发器的输出的“1”(或“0”)的出现次数;寄存器,在每个反复周期中取入上述第二计数器的计数值并保存;常数设定器,用于在每次将该计数值设定在寄存器时,将上述第2计数器清零,并设定触发器输出的“1”(或“0”)的出现率;比较器,将上述寄存器的保存数据(n)和来自在上述常数设定器的比较数据(m),作与比较结果n>m或n=m或n<m对应的比较输出;第三计数器,以由上述比较输出设定的动作模式动作,将上述计数数据输出作为选择器的选择信号;并控制上述相位差使得上述选择器输出由选择信号选择的时钟信号的规定的延迟信号,上述触发器输出的0或1的出现率在规定的反复周期内收敛为一定值的反馈电路构成,其特征在于上述相位调整部由将上述输入信号多级延迟并输出的延迟电路、根据选择输入选择延迟输出之一的选择电路和根据上述相位差控制上述选择输入的可逆计数器构成,并且,具有对比0或1的出现率的正态分布和上述反复周期内的0或1的出现次数,根据该出现次数对应的上述正态分布的位置可改变上述可逆计数器的计数的控制电路,实现相位调整时间的缩短。According to the random number generator described in claim 38, a flip-flop that determines an output state (0 or 1) based on a phase difference between two input signals, a phase adjustment unit that adjusts the phase of the input signal, and a feedback circuit unit, It has a first counter that measures a value (m) of 1/2 of a predetermined repetition period [number of clocks (2×m)] from an input signal clock; a second counter that measures the above-mentioned The number of occurrences of "1" (or "0") of the output of the flip-flop; the register, in each repetition cycle, fetches the count value of the above-mentioned second counter and saves it; the constant setter is used for setting the When the count value is set in the register, the above-mentioned second counter is cleared, and the occurrence rate of "1" (or "0") output by the trigger is set; the comparator compares the saved data (n) of the above-mentioned register with the In the comparison data (m) of the above-mentioned constant setter, make a comparison output corresponding to the comparison result n>m or n=m or n<m; the third counter operates in the operation mode set by the above-mentioned comparison output, and The above-mentioned counting data is output as the selection signal of the selector; and the above-mentioned phase difference is controlled so that the above-mentioned selector outputs the specified delay signal of the clock signal selected by the selection signal, and the occurrence rate of 0 or 1 output by the above-mentioned flip-flop is within the specified repetition period A feedback circuit whose inner convergence is a constant value is characterized in that the phase adjustment unit is composed of a delay circuit that delays the input signal in multiple stages and outputs it, a selection circuit that selects one of the delayed outputs based on the selection input, and controls the selection based on the phase difference. The input reversible counter is composed, and has a normal distribution comparing the occurrence rate of 0 or 1 and the number of occurrences of 0 or 1 in the above-mentioned repeated cycle, and the above-mentioned reversible counter can be changed according to the position of the above-mentioned normal distribution corresponding to the number of occurrences The counting control circuit shortens the phase adjustment time.

本结构中,0或1的出现次数少的区域中,延迟输出的切换宽度增多,进行相位的粗调整,随着接近正态分布的中央将延迟输出的切换宽度减小来微调整相位。由此可有效进行相位调整。In this configuration, the switching width of the delayed output is increased in a region where the number of occurrences of 0 or 1 is small, and the phase is roughly adjusted, and the phase is finely adjusted by decreasing the switching width of the delayed output as it approaches the center of the normal distribution. This enables efficient phase adjustment.

根据技术方案39所述的随机数发生装置,其特征在于具有从电源接通时开始的一定期间中,使上述反复周期比通常动作时的反复周期短的初始控制电路。The random number generator according to claim 39 is characterized in that it includes an initial control circuit for making the repetition period shorter than the repetition period during normal operation for a certain period after the power is turned on.

由此,可缩短电压接通到生成适当的随机数的期间。Thereby, the period from when the voltage is turned on to when an appropriate random number is generated can be shortened.

根据技术方案40所述的随机数发生装置,其特征在于在上述触发器的两个输入线上附加噪声发生源和噪声/相位变换器。The random number generating device according to technical solution 40 is characterized in that a noise generating source and a noise/phase converter are added to the two input lines of the flip-flop.

根据技术方案41所述的随机数发生装置,其特征在于在上述触发器的一个输入线上附加噪声发生源和噪声/相位变换器。The random number generating device according to claim 41 is characterized in that a noise generating source and a noise/phase converter are added to one input line of the flip-flop.

技术方案40或技术方案41所述结构中,输入到触发器的信号产生抖动,触发器的不确定动作范围扩大。由此,可高速且高精度地生成具有同一性而不具有规律性和相关性以及周期性的更稳定的自然随机数。In the structure described in the technical solution 40 or the technical solution 41, the signal input to the flip-flop generates jitter, and the uncertain operation range of the flip-flop expands. As a result, more stable natural random numbers that have identity and do not have regularity, correlation, or periodicity can be generated at high speed and with high precision.

<发明的第四形式><Fourth Form of Invention>

本发明中,着眼于内置要提高作为1比特随机数发生装置、多比特随机数发生装置和概率发生装置的可靠性,可自己检验随机数数据的出现同一型的功能。In the present invention, the built-in function of improving the reliability as a 1-bit random number generator, multi-bit random number generator, and probability generator and allowing self-checking of the same type of occurrence of random number data is focused on.

即,根据本发明中技术方案42所述的1比特随机数发生装置,其特征在于具有输出0和1作为随机数数据的随机数发生器,备有对一定次数进行计数的第一计数器和对从上述随机数发生器输出的随机数数据的出现次数进行计数并生成次数数据的第二计数器,备有在第一计数器计数的每个周期中保持第二计数器的次数数据的寄存器,具有将该寄存器保持的次数数据作为检验数据输出的输出电路。That is, according to the 1-bit random number generating device described in technical solution 42 of the present invention, it is characterized in that there is a random number generator outputting 0 and 1 as random number data, and a first counter and a counter for counting a certain number of times are provided. The second counter that counts the number of appearances of the random number data output from the above-mentioned random number generator and generates the number of times data has a register that holds the number of times data of the second counter in each cycle of counting by the first counter, and has the The number of times data held by the register is used as an output circuit for checking data output.

本发明中根据技术方案43所述的1比特随机数发生装置,其特征在于替代技术方案42的上述输出电路,具有比较预先设定的上限比较数据和下限比较数据与寄存器中保持的数据并输出检验信号的比较器。According to the 1-bit random number generator described in technical solution 43 in the present invention, it is characterized in that it replaces the above-mentioned output circuit of technical solution 42, and has the function of comparing the preset upper limit comparison data and lower limit comparison data with the data held in the register and outputting A comparator that checks the signal.

本发明中根据技术方案44所述的1比特随机数发生装置,其特征在于具有输出0和1作为随机数数据的随机数发生器,备有保持从该随机数发生器输出的上次的随机数数据的数据保持器,备有比较上述随机数发生器输出的此次的随机数数据和上述数据保持器中保持的上次的随机数数据,在二者相同时输出计数增大信号,同时在二者不同时,输出计数清除信号的比较器,备有在从上述比较器接收计数增加信号时进行增加计数的同时,在从上述比较器接收计数清除信号时进行计数清除的计数器,备有将该计数器保持的数据作为检验数据输出的输出电路。According to the 1-bit random number generating device described in technical solution 44 in the present invention, it is characterized in that it has a random number generator that outputs 0 and 1 as random number data, and is equipped with the last random number output from the random number generator. The data holder of the number data is prepared to compare the current random number data output by the above random number generator with the last random number data held in the above data holder, and output a count increase signal when the two are the same, and at the same time When the two are different, the comparator that outputs the count clear signal is equipped with a counter that performs count clear when receiving the count clear signal from the comparator while counting up when receiving the count increase signal from the above-mentioned comparator. An output circuit that outputs the data held by the counter as check data.

本发明中根据技术方案45所述的1比特随机数发生装置,其特征在于具有输出0和1作为随机数数据的随机数发生器,备有保持从该随机数发生器输出的上次的随机数数据的数据保持器,备有比较上述随机数发生器输出的此次的随机数数据和上述数据保持器中保持的上次的随机数数据,在二者相同时输出计数增大信号,同时在二者不同时,输出计数清除信号的第一比较器,备有在从第一上述比较器接收计数增加信号时进行增加计数的同时,在从第一比较器接收计数清除信号时进行计数清除的计数器,备有保持该计数器的输出数据的寄存器,备有比较该寄存器的数据和上述计数器的输出数据,在后者比前者大时写出数据重写信号,同时在此外的情况下输出数据保持信号的第二比较器,备有控制成在从第二比较器接收数据重写信号时将上述计数器的输出数据写入上述寄存器,同时在从第二比较器接收数据保持信号时保持上述寄存器的数据的控制电路;备有将上述寄存器保持的数据作为检验数据输出的输出电路。According to the 1-bit random number generating device described in technical solution 45 in the present invention, it is characterized in that it has a random number generator that outputs 0 and 1 as random number data, and is equipped with a device that maintains the last random number output from the random number generator. The data holder of the number data is prepared to compare the current random number data output by the above random number generator with the last random number data held in the above data holder, and output a count increase signal when the two are the same, and at the same time When the two are not the same, the first comparator outputting the count clear signal is equipped with counting up when receiving the count increase signal from the first above-mentioned comparator, and performs count clearing when receiving the count clear signal from the first comparator. A counter with a register that holds the output data of the counter, and a data that compares the data of the register with the output data of the above-mentioned counter, writes a data rewrite signal when the latter is larger than the former, and outputs data in other cases A second comparator holding a signal, provided with control to write the output data of the above-mentioned counter into the above-mentioned register when receiving a data rewriting signal from the second comparator, while holding the above-mentioned register when receiving a data hold signal from the second comparator A control circuit for the data; an output circuit for outputting the data held by the above-mentioned registers as test data is provided.

本发明中根据技术方案46所述的1比特随机数发生装置,其特征在于替代技术方案45的上述输出电路,具有比较预先设定的比较数据和寄存器中保持的数据并输出检验信号的第三比较器。According to the 1-bit random number generator described in technical solution 46 in the present invention, it is characterized in that it replaces the above-mentioned output circuit of technical solution 45, and has a third device that compares the preset comparison data with the data held in the register and outputs the verification signal. Comparators.

本发明中根据技术方案47所述的一种1比特随机数发生装置,其特征在于具有输出0和1作为随机数数据的随机数发生器,备有对一定次数进行计数的第一计数器,备有保持从上述随机数发生器输出的上次的随机数数据的数据保持器,备有比较上述随机数发生器输出的此次的随机数数据和上述数据保持器中保持的上次的随机数数据,在二者相同时输出计数增大信号,同时在二者不同时,输出计数清除信号的比较器,备有在从上述比较器接收计数增加信号时进行增加计数的同时,在从上述比较器接收计数清除信号时进行计数清除的第二计数器,备有解码第二计数器的输出数据并按各信号长度输出的解码器,备有按各信号长度对该解码器的输出数据进行分别计数的多个第三计数器,备有按第一计数器计数的每一定次数分别保持第三计数器的每一个的输出数据的多个寄存器,备有控制成根据按第一计数器计数的每一定次数的信号和上述比较器的输出数据从上述各寄存器输出检验数据的控制电路。According to a kind of 1-bit random number generating device described in technical solution 47 in the present invention, it is characterized in that it has a random number generator that outputs 0 and 1 as random number data, and is equipped with a first counter that counts a certain number of times. There is a data holder for holding the last random number data output from the above random number generator, and a data holder for comparing the current random number data output by the above random number generator with the last random number held in the above data holder Data, when the two are the same, output the count increase signal, and at the same time, when the two are different, the comparator that outputs the count clear signal. A second counter for counting and clearing when the counter receives a count clear signal, a decoder for decoding the output data of the second counter and outputting it according to the length of each signal, and a device for separately counting the output data of the decoder according to the length of each signal A plurality of third counters are provided with a plurality of registers for respectively holding the output data of each of the third counters every certain number of times counted by the first counter, and are provided with signals and The output data of the above-mentioned comparator is a control circuit for outputting verification data from each of the above-mentioned registers.

本发明中根据技术方案48所述的1比特随机数发生装置,其特征在于附加选择寄存器的输出数据并输出的选择电路。The 1-bit random number generator according to claim 48 of the present invention is characterized in that a selection circuit for selecting and outputting the output data of the register is added.

本发明中根据技术方案49所述的多比特随机数发生装置,其特征在于并列连接多个技术方案42所述的1比特随机数发生装置,附加按每1比特选择并输出从这些1比特随机数发生装置输出的检验数据的选择电路。According to the multi-bit random number generator described in technical solution 49 in the present invention, it is characterized in that a plurality of 1-bit random number generators described in technical solution 42 are connected in parallel, and additionally select and output from these 1-bit random numbers by every 1 bit. The selection circuit of the test data output by the digital generator.

本发明中根据技术方案50所述的多比特随机数发生装置,其特征在于并列连接多个技术方案42所述的1比特随机数发生装置,附加按每1比特选择并输出从这些1比特随机数发生装置输出的检验信号的选择电路。According to the multi-bit random number generator described in technical solution 50 in the present invention, it is characterized in that a plurality of 1-bit random number generators described in technical solution 42 are connected in parallel, additionally select and output from these 1-bit random numbers by every 1 bit The selection circuit of the test signal output by the digital generator.

本发明中根据技术方案51所述的概率发生装置,其特征在于具有技术方案42所述的1比特随机数发生装置,备有将从该1比特随机数发生装置输出的随机数数据从串行数据变换为并行数据的移位寄存器,备有对一定的并行数据的比特长度进行计数的计数器,备有按该计数器计数的每个周期保持上述移位寄存器的并行数据的寄存器,备有比较预先设定的概率上限数据和概率下限数据与上述寄存器中保持的并行数据并输出概率信号的比较器。According to the probability generating device described in technical solution 51 in the present invention, it is characterized in that it has the 1-bit random number generating device described in technical solution 42, and is equipped with the random number data output from the 1-bit random number generating device from the serial A shift register for converting data into parallel data, a counter for counting the bit length of certain parallel data, a register for holding the parallel data of the above-mentioned shift register for each cycle counted by the counter, and a comparison pre-set The set probability upper limit data and probability lower limit data and the parallel data held in the above-mentioned registers are used to output the comparator of the probability signal.

本发明中根据技术方案52所述的概率发生装置,其特征在于具有技术方案49所述的多比特随机数发生装置,备有比较预先设定的概率上限数据和概率下限数据与从上述多比特随机数发生装置输出的随机数数据并输出概率信号的比较器。According to the probability generating device described in technical solution 52 in the present invention, it is characterized in that it has the multi-bit random number generating device described in technical solution 49, and it is equipped with the probability upper limit data and probability lower limit data set in advance to compare with the above-mentioned multi-bit random number generating device. Random number data output by the random number generator and a comparator that outputs a probability signal.

这些结构中,作为数据保持器的代表例举出D型触发器,作为比较器的代表例,举出异或逻辑和元件(EXCLUSIVE-OR元件)。并且,通过采用这种结构,可自己检验随机数数据的出现同一性,使用者不需要进行统计处理。Among these structures, a typical example of a data holder is a D-type flip-flop, and a typical example of a comparator is an exclusive-OR logic sum element (EXCLUSIVE-OR element). Furthermore, by adopting such a structure, the appearance identity of the random number data can be checked by itself, and the user does not need to perform statistical processing.

为方便起见,括弧中的符号表示图中对应的部件,因此本发明不限于图中的记载。For convenience, symbols in parentheses indicate corresponding components in the figure, so the present invention is not limited to the description in the figure.

附图的简要说明Brief description of the drawings

图1~图14表示本发明的第一形式。这些图中,1 to 14 show a first form of the present invention. In these figures,

图1是表示本发明的随机数发生装置的第一实施例的电路图;Fig. 1 is the circuit diagram representing the first embodiment of the random number generator of the present invention;

图2与图1相同,但表示随机数发生装置的第二实施例的电路图;Fig. 2 is identical with Fig. 1, but represents the circuit diagram of the second embodiment of random number generator;

图3是表示随机数发生装置的第三实施例的电路图;Fig. 3 is a circuit diagram representing a third embodiment of a random number generator;

图4是表示随机数发生装置的第四实施例的电路图;Fig. 4 is a circuit diagram representing a fourth embodiment of a random number generator;

图5是表示随机数发生装置的第五实施例的电路图;Fig. 5 is a circuit diagram representing a fifth embodiment of a random number generator;

图6是表示附加了波形整形电路的本发明的随机数发生装置的部件电路图;Fig. 6 is a component circuit diagram showing the random number generator of the present invention to which a waveform shaping circuit is added;

图7是表示具体的波形整形电路的图;FIG. 7 is a diagram showing a specific waveform shaping circuit;

图8是表示图7的波形整形电路的输入输出波形的图;Fig. 8 is a diagram showing input and output waveforms of the waveform shaping circuit of Fig. 7;

图9是表示附加初始控制电路的本发明的随机数发生装置的部件电路图;Fig. 9 is a component circuit diagram of the random number generating device of the present invention representing an additional initial control circuit;

图10是表示使用R-S触发器的本发明的随机数发生装置的部件电路图;Fig. 10 is a component circuit diagram showing the random number generator of the present invention using an R-S flip-flop;

图11是本发明的并列型随机数发生装置的框图;Fig. 11 is a block diagram of the parallel type random number generator of the present invention;

图12是表示本发明的概率发生装置的概率分布的图;Fig. 12 is a diagram showing the probability distribution of the probability generating device of the present invention;

图13是表示D型触发器的图;FIG. 13 is a diagram showing a D-type flip-flop;

图14是表示图13的D型触发器的输入输出波形的图;Fig. 14 is a diagram showing input and output waveforms of the D-type flip-flop of Fig. 13;

图15~图47表示本发明的第二实施形式。这些图中,15 to 47 show a second embodiment of the present invention. In these figures,

图15是表示本发明的第二形式的随机数发生装置的第一实施例的图;Fig. 15 is a diagram showing a first embodiment of a second form of random number generator of the present invention;

图16是表示与上述随机数发生装置(图15)不同的构成的图;Fig. 16 is a diagram showing a configuration different from that of the above-mentioned random number generator (Fig. 15);

图17是表示本发明的抖动生成电路的结构的图;FIG. 17 is a diagram showing the configuration of the jitter generating circuit of the present invention;

图18是表示本发明的抖动生成电路的与图17不同的结构的图;FIG. 18 is a diagram showing a configuration different from FIG. 17 of the jitter generating circuit of the present invention;

图19是表示抖动生成中的输入输出波形的图;FIG. 19 is a diagram showing input and output waveforms during jitter generation;

图20是表示本发明的噪声发生源的构成的图;Fig. 20 is a diagram showing the structure of the noise generating source of the present invention;

图21是表示本发明的噪声发生源的与图20不同的结构的图;Fig. 21 is a diagram showing a structure different from that of Fig. 20 of the noise generating source of the present invention;

图22是表示本发明的噪声发生源的与图21不同的结构的图;Fig. 22 is a diagram showing a structure different from that of Fig. 21 of the noise generating source of the present invention;

图23是表示本发明的噪声发生源的与图22不同的结构的图;Fig. 23 is a diagram showing a structure different from that of Fig. 22 of the noise generating source of the present invention;

图24是表示本发明的噪声发生源的与图23不同的结构的图;Fig. 24 is a diagram showing a structure different from that of Fig. 23 of the noise generating source of the present invention;

图25是表示本发明的噪声发生源的与图24不同的结构的图;Fig. 25 is a diagram showing a structure different from that of Fig. 24 of the noise generating source of the present invention;

图26是表示本发明的噪声发生源的与图25不同的结构的图;Fig. 26 is a diagram showing a structure different from that of Fig. 25 of the noise generating source of the present invention;

图27是表示本发明的噪声发生源的与图26不同的结构的图;Fig. 27 is a diagram showing a structure different from that of Fig. 26 of the noise generating source of the present invention;

图28是表示本发明的放大电路的结构的图;Fig. 28 is a diagram showing the structure of the amplifier circuit of the present invention;

图29是表示本发明的放大电路的与图28不同的结构的图;Fig. 29 is a diagram showing a structure different from that of Fig. 28 of the amplifier circuit of the present invention;

图30是表示本发明的抖动生成电路的图;FIG. 30 is a diagram showing a dither generating circuit of the present invention;

图31是表示本发明的抖动生成电路的与图30不同的结构的图;FIG. 31 is a diagram showing a configuration different from FIG. 30 of the jitter generating circuit of the present invention;

图32是表示本发明的抖动生成电路的与图31不同的结构的图;FIG. 32 is a diagram showing a configuration different from FIG. 31 of the jitter generation circuit of the present invention;

图33是表示本发明的抖动生成电路的与图32不同的结构的图;FIG. 33 is a diagram showing a configuration different from FIG. 32 of the jitter generation circuit of the present invention;

图34是表示本发明的抖动生成电路的与图33不同的结构的图;FIG. 34 is a diagram showing a configuration different from FIG. 33 of the jitter generation circuit of the present invention;

图35是表示本发明的抖动生成电路的与图34不同的结构的图;FIG. 35 is a diagram showing a configuration different from FIG. 34 of the jitter generation circuit of the present invention;

图36是表示本发明的抖动生成电路的与图35不同的结构的图;FIG. 36 is a diagram showing a configuration different from FIG. 35 of the jitter generation circuit of the present invention;

图37是表示附加锁存电路的本发明的随机数发生装置的部件电路;Fig. 37 is a component circuit of the random number generator of the present invention showing an additional latch circuit;

图38是表示附加锁存电路的本发明的随机数发生装置的与图37不同的部件电路图;FIG. 38 is a circuit diagram of parts different from FIG. 37 of the random number generator of the present invention with a latch circuit added;

图39表示本发明的第二形式的随机数发生装置的第二实施例的图;Fig. 39 represents the figure of the second embodiment of the random number generator of the second form of the present invention;

图40是表示本发明的相位-电压变换电路的图;Fig. 40 is a diagram showing a phase-voltage conversion circuit of the present invention;

图41(a)和图41(b)是表示图40的相位-电压变换电路的图;FIG. 41(a) and FIG. 41(b) are diagrams representing the phase-voltage conversion circuit of FIG. 40;

图42是表示本发明的相位-电压变换电路的与图40不同的结构的图;Fig. 42 is a diagram showing a configuration different from that of Fig. 40 of the phase-voltage conversion circuit of the present invention;

图43是表示本发明的上述第二实施例的随机数发生装置的与图39不同的结构图;FIG. 43 is a structural diagram different from FIG. 39 showing the random number generator of the second embodiment of the present invention;

图44是表示本发明的随机数发生装置的第三实施例的图;Fig. 44 is a diagram showing a third embodiment of the random number generator of the present invention;

图45是表示R-S触发器的内部结构的图;Fig. 45 is a diagram showing the internal structure of the R-S flip-flop;

图46是表示本发明的上述第二形式的第三实施例的R-S触发器的内部结构的图;Fig. 46 is a diagram showing the internal structure of the R-S flip-flop of the third embodiment of the above-mentioned second form of the present invention;

图47是表示本发明的第三实施例的与图46不同的R-S触发器的内部结构的图;FIG. 47 is a diagram showing the internal structure of an R-S flip-flop different from FIG. 46 according to the third embodiment of the present invention;

图48~图54表示本发明的第三实施形式。这些图中,48 to 54 show a third embodiment of the present invention. In these figures,

图48是表示本发明的第三实施形式的第一实施例的随机数发生装置的结构图;Fig. 48 is a block diagram showing the random number generator of the first embodiment of the third embodiment of the present invention;

图49是表示上述第一实施例的随机数发生装置的与图48不同的结构的图;FIG. 49 is a diagram showing a configuration different from that of FIG. 48 of the random number generator of the first embodiment;

图50是表示第二实施例的随机数发生装置的结构图;Fig. 50 is a structural diagram showing a random number generator of the second embodiment;

图51是表示相位调整时的粗调整和微调整的动作范围的图;Fig. 51 is a diagram showing the operating ranges of rough adjustment and fine adjustment during phase adjustment;

图52是表示第三实施例的随机数发生装置的结构图;Fig. 52 is a structural diagram showing a random number generator of the third embodiment;

图53是表示具有同一性的随机数的正态分布的图;Fig. 53 is a graph representing a normal distribution of random numbers having identity;

图54是分割加权图53的正态分布的图;Figure 54 is a graph of the normal distribution of the segmentation weighted map 53;

图55~图67表示本发明的第四形式,这些图中,55 to 67 show a fourth form of the present invention. In these figures,

图55是表示本发明的1比特随机数发生装置的第一实施例的电路图;Fig. 55 is a circuit diagram showing the first embodiment of the 1-bit random number generator of the present invention;

图56是表示本发明的1比特随机数发生装置的第二实施例的电路图;Fig. 56 is a circuit diagram showing the second embodiment of the 1-bit random number generator of the present invention;

图57是表示本发明的1比特随机数发生装置的第三实施例的电路图;Fig. 57 is a circuit diagram showing a third embodiment of the 1-bit random number generator of the present invention;

图58是表示本发明的1比特随机数发生装置的第四实施例的电路图;Fig. 58 is a circuit diagram showing a fourth embodiment of the 1-bit random number generator of the present invention;

图59是表示本发明的1比特随机数发生装置的第五实施例的电路图;Fig. 59 is a circuit diagram showing a fifth embodiment of the 1-bit random number generator of the present invention;

图60是表示本发明的1比特随机数发生装置的第六实施例的电路图;Fig. 60 is a circuit diagram representing the sixth embodiment of the 1-bit random number generator of the present invention;

图61是表示本发明的1比特随机数发生装置的第七实施例的电路图;Fig. 61 is a circuit diagram showing the seventh embodiment of the 1-bit random number generator of the present invention;

图62是表示本发明的多比特随机数发生装置的第一实施例的电路图;Fig. 62 is a circuit diagram showing the first embodiment of the multi-bit random number generator of the present invention;

图63是表示本发明的多比特随机数发生装置的第二实施例的电路图;Fig. 63 is a circuit diagram representing the second embodiment of the multi-bit random number generator of the present invention;

图64是表示本发明的概率发生装置的第一实施例的电路图;Fig. 64 is a circuit diagram showing the first embodiment of the probability generating device of the present invention;

图65是表示本发明的概率发生装置的第二实施例的电路图;Fig. 65 is a circuit diagram representing the second embodiment of the probability generating device of the present invention;

图66是表示本发明的概率发生装置的第三实施例的电路图;Fig. 66 is a circuit diagram showing the third embodiment of the probability generating device of the present invention;

图67是表示本发明的概率发生装置的第四实施例的电路图。Fig. 67 is a circuit diagram showing a fourth embodiment of the probability generating device of the present invention.

实施发明的最佳形式Best form for carrying out the invention

<第一形式的实施例><Example of the first form>

首先根据图1到图12说明本发明的随机数发生装置和概率发生装置的实施形式。Firstly, the implementation forms of the random number generator and the probability generator of the present invention will be described with reference to FIGS. 1 to 12 .

图1是表示随机数发生装置的电路图。FIG. 1 is a circuit diagram showing a random number generator.

如图1所示,第一实施例的随机数发生装置110由触发器101和延迟部102以及反馈电路103构成。As shown in FIG. 1 , the random number generator 110 of the first embodiment is composed of a flip-flop 101 , a delay section 102 and a feedback circuit 103 .

这里,作为上述触发器101可使用具有根据输入到2个输入部的输入信号(CLOCK)的相位差确定输出的状态(0或1)的功能的触发器,本实施例中,信号输入中使用具有时钟端子CLK和数据端子D的图13所示的D型触发器。Here, as the above-mentioned flip-flop 101, a flip-flop having a function of determining the output state (0 or 1) according to the phase difference of the input signal (CLOCK) input to the two input parts can be used. In this embodiment, the signal input is used A D-type flip-flop shown in FIG. 13 having a clock terminal CLK and a data terminal D.

上述延迟部102具有多个延迟输出端子,由串联连接的2个延迟电路117,118(延迟线)和根据选择输入选择该延迟输出之一的选择电路119(选择器)构成,上述2个延迟电路117,118的连接点(延迟中间点)连接于上述D型触发器101的时钟端子CLK,同时选择电路119的输出连接于数据端子D,D型触发器101中输入的2个信号的上升沿时间的相位差可任意调整。The delay section 102 has a plurality of delay output terminals, and is composed of two delay circuits 117, 118 (delay lines) connected in series and a selection circuit 119 (selector) for selecting one of the delay outputs according to a selection input. The connection point (delay intermediate point) of the circuits 117, 118 is connected to the clock terminal CLK of the above-mentioned D-type flip-flop 101, while the output of the selection circuit 119 is connected to the data terminal D, and the rise of the two signals input in the D-type flip-flop 101 The phase difference along the time can be adjusted arbitrarily.

上述反馈电路103由第一计数器111、第二计数器112、寄存器114、常数设定器116、比较器115和可逆计数器113(上/下计数器)构成。The feedback circuit 103 described above is constituted by a first counter 111, a second counter 112, a register 114, a constant setter 116, a comparator 115, and an up/down counter 113 (up/down counter).

第一计数器111计测输入信号CLOCK的预定的反复周期(CLOCK数(2×m)),第二计数器112在每个该反复周期中计测上述触发器输出的1(或0)的出现数。寄存器114在每个反复周期取入并保持第二计数器112的计数值。另外,每次计数值设置在寄存器114中时就将第二计数器112清零。常数设定器116输出用于设定触发器输出1(或0)的出现率的比较数据。本实施例中,预先设定为输出上述反复周期(CLOCK数(2×m))的1/2的值(m)。比较器115比较寄存器114的保持数据(n)和来自常数设定器116的比较数据(m),对应比较结果(n>m)或(n=m)或(n<m)产生比较输出。可逆计数器113按根据来自上述比较器115的比较输出设定的动作模式动作,将该计数数据作为下级选择电路119的选择信号s输出。并且,如上所述,选择电路119输出选择信号s选择的原CLOCK信号的规定延迟信号。The first counter 111 counts a predetermined repetition period (CLOCK number (2×m)) of the input signal CLOCK, and the second counter 112 counts the number of occurrences of 1 (or 0) output by the above-mentioned flip-flop in each repetition period. . The register 114 fetches and holds the count value of the second counter 112 every iteration cycle. In addition, the second counter 112 is cleared every time the count value is set in the register 114 . The constant setter 116 outputs comparison data for setting the occurrence rate of flip-flop output 1 (or 0). In this embodiment, it is preset to output a value (m) of 1/2 of the above-mentioned repetition period (number of clocks (2×m)). The comparator 115 compares the hold data (n) of the register 114 with the comparison data (m) from the constant setter 116, and generates a comparison output corresponding to the comparison result (n>m) or (n=m) or (n<m). The up-down counter 113 operates in an operation mode set based on the comparison output from the comparator 115 , and outputs the count data as a selection signal s of the lower-stage selection circuit 119 . Furthermore, as described above, the selection circuit 119 outputs a predetermined delay signal of the original CLOCK signal selected by the selection signal s.

即,根据上述结构,可逆计数器对应寄存器114的输出数据(n)和来自该常数设定器116的输出数据(m)的比较输出在每个反复周期进行上/下动作(例如n>m时进行向上计数,在n<m时进行向下计数),自动校正输入到D型触发器101的数据端子D的CLOCK信号的上升沿时间使得比较器115的比较输出收敛在n=m(n=m时计数动作停止,CLOCK信号的相位差维持一定)。具体说,如图14(c)所示,控制为CLK信号的上升沿和D信号的上升沿的相位差Δt接近0。由此,D型触发器101的输出上得到0和1的出现率常常维持50%的有同一性的1比特的串行随机数数据OUT。That is, according to the above-mentioned structure, the comparison output of the output data (n) of the up-down counter corresponding to the register 114 and the output data (m) from the constant setter 116 performs an up/down operation in each repetition cycle (for example, when n>m Carry out counting up, carry out counting down when n<m), automatic correction is input to the rising edge time of the CLOCK signal of the data terminal D of D-type flip-flop 101 so that the comparison output of comparator 115 converges on n=m (n= The counting action stops at m, and the phase difference of the CLOCK signal remains constant). Specifically, as shown in FIG. 14( c ), the phase difference Δt between the rising edge of the CLK signal and the rising edge of the D signal is controlled to be close to zero. As a result, the output of the D-type flip-flop 101 obtains 1-bit serial random number data OUT in which the occurrence rate of 0 and 1 is always maintained at 50%.

本实施例中,常数设定器116中设定的比较数据设定为第一计数器111的反复周期的1/2(即,m),但通过改变该m值,可将D型触发器输出的0或1的出现率设定在50%以外。例如,将m设定在反复周期的1/5,则0或1的出现率为20%。In this embodiment, the comparison data set in the constant setter 116 is set to 1/2 (namely, m) of the repetition period of the first counter 111, but by changing the value of m, the D-type flip-flop can output The occurrence rate of 0 or 1 is set outside 50%. For example, if m is set at 1/5 of the repetition period, then the occurrence rate of 0 or 1 is 20%.

但是,上述第一实施例中,第一计数器111的反复周期常常固定为一定(2×m),因此生成的随机数有可能表示出几个周期的倾向。下面,图2到图5所示的第二到第四实施例是使这种随机数的周期性完全丧失的方法。However, in the first embodiment described above, the repetition cycle of the first counter 111 is always fixed (2×m), so the generated random number may show a tendency of several cycles. Next, the second to fourth embodiments shown in FIGS. 2 to 5 are methods for completely losing the periodicity of such random numbers.

首先图2所示的第二实施例是替代上述的常数设定器116而新设置移位寄存器121、加法器122、比较器123等,将在每一反复周期输出的随机数列作为下一反复周期的设定数据(2×m)和比较器115的比较数据(m)的实施例。上述加法器122位将随机数列用作上述设定数据和比较数据而将输出随机数(0~m-1)的范围加1变更为(1~m)的范围。新的比较器123从第一计数器111的计数数据(A)和加法器122的输出数据(m)产生反复周期(2×m)。First of all, the second embodiment shown in FIG. 2 replaces the above-mentioned constant setter 116 and newly installs a shift register 121, an adder 122, a comparator 123, etc., and the random number sequence output in each repetition cycle is used as the next iteration. Example of cycle setting data (2×m) and comparison data (m) of the comparator 115 . The 122-bit adder adds 1 to the range of the output random number (0 to m-1) and changes it to the range of (1 to m) using the random number sequence as the setting data and comparison data. The new comparator 123 generates a repetition period (2×m) from the count data (A) of the first counter 111 and the output data (m) of the adder 122 .

接着,图3所示的第三实施例是向上述第二实施例追加加密电路124,将输出的随机数进行加密后用作上述设定数据和比较数据的实施例。还有,所谓加密是相互逻辑运算多个数据线的任意数据(例如异或逻辑和、异或逻辑和和异或逻辑和之间的异或逻辑和等)变换为与原数据不同的数据,图3中,移位寄存器121的输出数据16比特由加密电路124变换为8比特的数据。Next, the third embodiment shown in FIG. 3 is an embodiment in which an encryption circuit 124 is added to the above-mentioned second embodiment, and the output random number is encrypted and used as the above-mentioned setting data and comparison data. In addition, the so-called encryption is to transform any data of multiple data lines of mutual logical operation (for example, XOR logic sum, XOR logic sum and XOR logic sum between XOR logic sum, etc.) into data different from the original data, In FIG. 3 , the 16-bit output data of the shift register 121 is converted into 8-bit data by the encryption circuit 124 .

根据这些第二、第三实施例,产生随机数时逐渐改变反复周期,因此生成的随机数的周期性完全消除。According to these second and third embodiments, the repetition cycle is gradually changed when generating random numbers, so that the periodicity of the generated random numbers is completely eliminated.

接着,图4所示的第四实施例是附加校正上述第二实施例的随机数发生装置的辅助随机数发生装置104,将该辅助随机数发生装置104生成的随机数列与上述同样用作反复周期的设定数据(2×m)和比较器115的比较数据(m)的实施例,图5所示的第五实施例是将上述第三实施例的随机数发生装置附加为辅助随机数发生装置105,将辅助随机数发生装置105的输出和随机数发生装置110自身的输出进行加密的实施例。Next, the fourth embodiment shown in FIG. 4 is an auxiliary random number generator 104 that additionally corrects the random number generator of the above-mentioned second embodiment, and the random number sequence generated by the auxiliary random number generator 104 is used as an iterative In the embodiment of the setting data (2×m) of the period and the comparison data (m) of the comparator 115, the fifth embodiment shown in FIG. 5 is to add the random number generator of the third embodiment above as an auxiliary random number The generator 105 is an embodiment of encrypting the output of the auxiliary random number generator 105 and the output of the random number generator 110 itself.

根据这些第四、第五实施例,成为上述设定数据和比较数据的辅助随机数发生装置104、105的随机数用于随机数发生装置110的内部电路,不向外部输出,因此第三者不可能预测随机数的性质、倾向、周期性,从而得到完全的自然随机数。According to these fourth and fifth embodiments, the random numbers of the auxiliary random number generators 104, 105 used as the above-mentioned setting data and comparison data are used in the internal circuit of the random number generator 110, and are not output to the outside, so the third party It is impossible to predict the nature, tendency, and periodicity of random numbers, so as to obtain completely natural random numbers.

图6是表示附加波形整形电路125的随机数发生装置的部件电路。这样,D型触发器101的输入线(D端子和CLK端子)上附加波形整形电路125强制钝化各输入信号的边缘时,更容易生成随机数。FIG. 6 is a circuit diagram showing components of the random number generator with the waveform shaping circuit 125 added. In this way, when the waveform shaping circuit 125 is added to the input lines (D terminal and CLK terminal) of the D-type flip-flop 101 to forcibly blunt the edges of each input signal, it is easier to generate random numbers.

图7表示输入输出的栅之间插入电阻R和电容器C构成的积分电路而构成的上述波形整形电路125。如图8(a)所示的输入输出波形那样,栅的阈值电压和积分波形的交点上在输出波形中产生抖动Δj。图8(b)表示阈值电压和积分波形的交点部的斜率λ和抖动Δj的关系,但该斜率λ(即信号钝化)增大时,抖动Δj也增大。即,该抖动Δj的大小扩大触发器的不确定动作范围,结果更容易生成随机数。FIG. 7 shows the above-mentioned waveform shaping circuit 125 configured by inserting an integrating circuit composed of a resistor R and a capacitor C between input and output gates. As with the input and output waveforms shown in FIG. 8( a ), jitter Δj occurs in the output waveform at the intersection of the threshold voltage of the gate and the integral waveform. FIG. 8( b ) shows the relationship between the slope λ and the jitter Δj at the intersection of the threshold voltage and the integrated waveform. However, when the slope λ (that is, signal blunting) increases, the jitter Δj also increases. That is, the magnitude of the jitter Δj increases the uncertain operation range of the flip-flop, and as a result, it becomes easier to generate random numbers.

作为涉及的波形整形电路125,不仅是上述电阻R和电容器C构成,例如可通过线圈和电容器构成。The waveform shaping circuit 125 is not only composed of the above-mentioned resistor R and capacitor C, but may be composed of, for example, a coil and a capacitor.

如图9所示,上述的第二到第五实施例中,比较数据用的随机数输出线上附加初始化期间设定电路126a和栅电路126b构成的初始控制电路126,电源接通时仅在规定的反复周期期间将该比较数据强制设为0。通过这种比较数据的初始化,电源接通时可有效进行输入信号的相位校正动作,从电源接通到得到适当随机数的过渡期间为最小。As shown in FIG. 9, in the above-mentioned second to fifth embodiments, the initial control circuit 126 composed of an initialization period setting circuit 126a and a gate circuit 126b is added to the random number output line used for comparison data. This comparison data is forcibly set to 0 during the specified repetition period. By initialization of such comparison data, the phase correction operation of the input signal can be effectively performed when the power is turned on, and the transition period from power-on to obtaining an appropriate random number is minimized.

以上说明的实施例中,作为随机数发生用的触发器,使用D型触发器,但本发明不限于此,可使用具有与此相同功能的触发器。例如,作为其他例子图10表示出使用R-S触发器的结构。根据图10,延迟电路117和118的连接点连接R-S触发器101的设置输入,选择电路119的输出连接R-S触发器101的复位输入。In the embodiments described above, a D-type flip-flop was used as a flip-flop for random number generation, but the present invention is not limited thereto, and a flip-flop having the same function as this can be used. For example, FIG. 10 shows a structure using an R-S flip-flop as another example. According to FIG. 10 , the connection point of the delay circuits 117 and 118 is connected to the set input of the R-S flip-flop 101 , and the output of the selection circuit 119 is connected to the reset input of the R-S flip-flop 101 .

如图11所示,上述的串行类型的随机数发生装置110并列配置P个,使得可构成P比特结构的并列型随机数发生装置120。该并列型随机数发生装置120中各个随机数发生装置110之间不存在任何关系。As shown in FIG. 11 , P pieces of the aforementioned serial type random number generators 110 are arranged in parallel, so that a parallel random number generator 120 with a P-bit structure can be formed. There is no relationship between each random number generator 110 in the parallel random number generator 120 .

接着说明使用本发明的随机数发生装置构成的概率发生装置。Next, a probability generating device constructed using the random number generating device of the present invention will be described.

图12中表示P(比特)构成的概率发生装置的概率分布。上述并列型随机数发生装置将每个随机数发生装置中1或0的出现率常常校正为例如50%。各个随机数发生装置110具有同一性而不具有规律性、相关性和周期性,因此整体的概率分布相同。FIG. 12 shows the probability distribution of the probability generating means constituted by P (bits). The above-mentioned parallel type random number generator often corrects the occurrence rate of 1 or 0 in each random number generator to, for example, 50%. Each random number generating device 110 has identity but not regularity, correlation and periodicity, so the overall probability distribution is the same.

这里,对该随机数发生装置的相同的输出数据整体都设定图12的斜线所示的任意范围数据(r1,r2),使得用下式可生成概率。Here, the arbitrary range data (r1, r2) indicated by hatching in FIG. 12 is set for the same output data of the random number generator as a whole, so that the probability can be generated by the following equation.

P0=(r2-r1+1)/2P P0=(r2-r1+1)/ 2P

因此,通过适当设定范围数据(r1~r2)可得到任意概率。Therefore, arbitrary probabilities can be obtained by appropriately setting the range data (r1 to r2).

如以上说明那样,用数字电路可实现具有同一性而不具有规律性、相关性和周期性的自然随机数发生装置和概率发生装置。若是数字电路结构,则容易应对LSI化,有利于生产,可对科学技术计算、游戏机、加密处理等广泛的领域的用途高速廉价地提供大量随机数和概率数据。As explained above, a natural random number generator and a probability generator having identity without regularity, correlation and periodicity can be realized by using digital circuits. If it is a digital circuit structure, it is easy to adapt to LSI, which is beneficial to production, and can provide a large amount of random numbers and probability data at high speed and low cost for applications in a wide range of fields such as scientific and technical calculations, game machines, and encryption processing.

由于外部噪声、温度、电源变动等外部因素影响小,可得到稳定的动作。而且,有利于对环境的安全性,不会有因一次使用后报废等而使报废部分产生问题。Stable operation can be obtained because external factors such as external noise, temperature, and power fluctuation are small. Furthermore, it contributes to the safety of the environment, and there is no problem with discarded parts due to discarding after a single use.

<第二形式的实施例><Example of the second form>

下面根据图15~图47说明本发明的第二形式的随机数发生装置和概率发生装置的实施例。Embodiments of the random number generating device and the probability generating device of the second form of the present invention will be described below with reference to FIGS. 15 to 47 .

首先说明本发明的第一实施例,如图15所示,第一实施例的随机数发生装置210由输出1比特的串行随机数RND的触发器201、对该触发器输入(CLK信号)提供相位差的2系统延迟电路202,203、对各延迟电路202,203附加的抖动生成电路204,204、调整上述延迟电路203的延迟时间的相位控制电路205构成。First, the first embodiment of the present invention is described. As shown in FIG. 15 , the random number generator 210 of the first embodiment is input (CLK signal) Two system delay circuits 202, 203 for providing a phase difference, jitter generation circuits 204, 204 added to the respective delay circuits 202, 203, and a phase control circuit 205 for adjusting the delay time of the delay circuit 203 are constituted.

上述相位控制电路205计测CLK信号的规定的反复周期,同时进行自动调整上述延迟电路203的延迟时间的反馈控制,监视该规定周期内的触发器输出(随机数RND)的1或0的数目,使得其出现率维持在一定值(例如50%),结果关于本发明的第一实施例,如图14(c)所示,按输入到触发器201的2个输入信号的相位差Δt接近0来动作。The phase control circuit 205 measures a predetermined repetition period of the CLK signal, simultaneously performs feedback control for automatically adjusting the delay time of the delay circuit 203, and monitors the number of 1s or 0s output by the flip-flop (random number RND) within the predetermined period. , so that its occurrence rate is maintained at a certain value (for example, 50%). As a result, regarding the first embodiment of the present invention, as shown in FIG. 0 to act.

另外,最终级上附加的触发器206是使随机数数据RND的输出定时和CLK信号同步的锁存电路。Also, the flip-flop 206 added at the final stage is a latch circuit for synchronizing the output timing of the random number data RND with the CLK signal.

这里,作为上述触发器201,可使用具有根据输入信号的相位差确定输出的状态(0或1)的边缘触发型的触发器,本实施例中,使用具有CLK端子和D端子的D型触发器,同时通过下面所述的抖动生成电路204在输入信号中诱发相位抖动积极引起不确定动作。Here, as the above-mentioned flip-flop 201, an edge trigger type flip-flop having an output state (0 or 1) determined according to a phase difference of an input signal can be used. In this embodiment, a D-type flip-flop having a CLK terminal and a D terminal is used. device while actively causing indeterminate behavior by inducing phase jitter in the input signal through the jitter generation circuit 204 described below.

如图17所示,上述抖动生成电路204由噪声发生源207、将产生的微弱的噪声功率放大的放大电路208、通过放大的噪声信号使输入信号产生抖动的混频电路209构成。As shown in FIG. 17, the jitter generating circuit 204 is composed of a noise generating source 207, an amplifier circuit 208 for amplifying the generated weak noise power, and a mixing circuit 209 for dithering an input signal by the amplified noise signal.

图17的抖动生成电路204上装载的混频电路209是将串联连接的P沟道MOS晶体管Q4,Q3的电路和串联连接的N沟道MOS晶体管Q2,Q1的电路串联连接(级联)构成,各串联晶体管电路内,晶体管Q4和Q1的栅上连接上述放大电路208的输出,同时晶体管Q3和Q2的栅上连接电阻R和电容器C构成的积分电路212的输出。另外,输入IN上连接上述延迟电路202或延迟电路203的输出。The mixer circuit 209 mounted on the jitter generation circuit 204 in FIG. 17 is configured by connecting a circuit of P-channel MOS transistors Q4 and Q3 connected in series and a circuit of N-channel MOS transistors Q2 and Q1 connected in series (cascaded). In each series transistor circuit, the gates of transistors Q4 and Q1 are connected to the output of the amplifying circuit 208, while the gates of transistors Q3 and Q2 are connected to the output of the integration circuit 212 composed of resistor R and capacitor C. In addition, the output of the above-mentioned delay circuit 202 or delay circuit 203 is connected to the input IN.

上述电路结构中,如图19所示,放大的噪声信号输入到晶体管Q4和Q1的栅上,从而相对延迟CLK信号的积分输出波形变动晶体管Q3,Q2的阈值电压,使输出OUT产生抖动Δj。该抖动Δj的大小扩大到后级的触发器201的不确定动作范围。In the above circuit structure, as shown in Figure 19, the amplified noise signal is input to the gates of transistors Q4 and Q1, so that the threshold voltages of transistors Q3 and Q2 are changed relative to the integrated output waveform of the delayed CLK signal, causing the output OUT to jitter Δj. The magnitude of this jitter Δj extends to the uncertain operation range of the flip-flop 201 in the subsequent stage.

作为混频电路209,除图17的实施例外,可采用图18所示的结构。图18的实施例由P沟道MOS晶体管Q2和N沟道晶体管Q1的串联电路构成,各栅上放大电路208的输出和来自输入IN的延迟CLK信号分别经电容器C和电阻R连接。As the mixing circuit 209, in addition to the embodiment shown in Fig. 17, the configuration shown in Fig. 18 can be employed. The embodiment of FIG. 18 is composed of a series circuit of P-channel MOS transistor Q2 and N-channel transistor Q1. The output of each gate amplifier circuit 208 and the delayed CLK signal from input IN are respectively connected through capacitor C and resistor R.

因此,上述电路结构中,放大的噪声信号和通过延迟电路相位调整的CLK信号由电容器C合成并输入到晶体管Q2,Q1的栅上,与图17的情况相同,得到具有相同抖动Δj的输出OUT。Therefore, in the above circuit structure, the amplified noise signal and the phase-adjusted CLK signal passed through the delay circuit are synthesized by the capacitor C and input to the gates of the transistors Q2 and Q1, which is the same as the situation in Figure 17, and the output OUT with the same jitter Δj is obtained .

接着说明上述噪声发生源207的构成。Next, the configuration of the above-mentioned noise generating source 207 will be described.

图20~图27表示噪声发生源207的具体电路结构。20 to 27 show specific circuit configurations of the noise generating source 207 .

图20是串联连接P沟道MOS晶体管Q2和N沟道MOS晶体管Q1,把栅-输出之间短路的结构。图21是图20中在栅-输出之间插入电阻R2。图22是串联连接P沟道MOS晶体管Q2和N沟道MOS晶体管Q1,把栅-输出之间插入电阻R2的同时,在栅-GND之间插入电阻R1和电容器C1构成的RC串联电路的结构。图23是在将图22中的上述RC串联电路插入在栅-电源之间的结构。图24是短路N沟道MOS晶体管Q1的栅-输出,在输出-电源之间插入电阻R1的结构。图25是在图24中在栅-输出之间插入电阻R2的结构。图26是短路P沟道MOS晶体管Q1的栅-输出之间,在输出-GND之间插入电阻R1的结构。图27是在图26中在栅-输出之间插入电阻R2的结构。FIG. 20 shows a structure in which a P-channel MOS transistor Q2 and an N-channel MOS transistor Q1 are connected in series, and the gate-output is short-circuited. FIG. 21 is the resistor R2 inserted between the gate and the output in FIG. 20 . Figure 22 is a structure of connecting a P-channel MOS transistor Q2 and an N-channel MOS transistor Q1 in series, inserting a resistor R2 between the gate and the output, and inserting a resistor R1 and a capacitor C1 between the gate and GND. . FIG. 23 is a structure in which the above-mentioned RC series circuit in FIG. 22 is inserted between the gate and the power supply. FIG. 24 is a structure in which the gate-output of the N-channel MOS transistor Q1 is short-circuited, and a resistor R1 is inserted between the output and the power supply. FIG. 25 is a structure in which a resistor R2 is inserted between the gate and the output in FIG. 24 . FIG. 26 is a structure in which the gate-output of the P-channel MOS transistor Q1 is short-circuited, and a resistor R1 is inserted between the output and GND. FIG. 27 is a structure in which a resistor R2 is inserted between the gate and the output in FIG. 26 .

上述实施例中,利用处于激活状态的电路元件(晶体管、电阻、电容器或其组合)产生的微弱的热噪声,可实现廉价的噪声源。得到外部噪声和电源变动等的影响小、稳定的动作的同时,不利用放射线源,因此对环境的安全性有利,不会因一次使用后报废等使报废部分产生问题。In the above embodiments, an inexpensive noise source can be realized by utilizing the weak thermal noise generated by the active circuit elements (transistors, resistors, capacitors or combinations thereof). While obtaining stable operation with little influence from external noise and power supply fluctuations, it does not use a radiation source, so it is beneficial to environmental safety, and there is no problem with scrapped parts due to scrapping after one use.

图28所示的放大电路208由电容器C1和电阻R1构成的串联输入电路(高通滤波器)和P沟道MOS晶体管Q2和N沟道MOS晶体管Q1的串联电路构成,图29所示的放大电路208是在图28中在返回电阻R2上并联连接电容器C2来形成低通滤波器的结构。虽未示出,但这些放大电路208的输入IN上连接上述噪声发生源207的输出,输出OUT连接上述混频电路209。The amplifying circuit 208 shown in FIG. 28 is composed of a series input circuit (high-pass filter) composed of a capacitor C1 and a resistor R1, and a series circuit of a P-channel MOS transistor Q2 and an N-channel MOS transistor Q1. The amplifying circuit shown in FIG. 29 208 is a configuration in which a capacitor C2 is connected in parallel to the return resistor R2 in FIG. 28 to form a low-pass filter. Although not shown, the input IN of these amplifier circuits 208 is connected to the output of the noise generator 207 , and the output OUT is connected to the mixer circuit 209 .

上述结构的放大电路208中,对应上述的噪声发生源207的各结构设定上述高通滤波器和低通滤波器的特性,实现适当特性的放大器。In the amplifier circuit 208 configured as described above, the characteristics of the high-pass filter and the low-pass filter described above are set corresponding to the respective configurations of the noise generating source 207 described above, thereby realizing an amplifier with appropriate characteristics.

接着根据图30~图36说明抖动生成电路204的具体电路结构。这些也通过上述的噪声发生源207、放大电路208和混频电路209的组合构成,下面所示的为其中的表征性例子。因此,本发明不限于这些电路例子。Next, a specific circuit configuration of the jitter generation circuit 204 will be described with reference to FIGS. 30 to 36 . These are also constituted by combinations of the above-described noise generating source 207, amplifier circuit 208, and frequency mixing circuit 209, of which representative examples are shown below. Therefore, the present invention is not limited to these circuit examples.

图30是图17的结构的抖动生成电路204由图20所示的噪声发生源207和图28所示的放大电路208的组合构成。图31是图30中将放大电路208串联连接2级构成的电路例子。FIG. 30 shows that the jitter generating circuit 204 having the configuration shown in FIG. 17 is composed of a combination of the noise generating source 207 shown in FIG. 20 and the amplifier circuit 208 shown in FIG. 28 . FIG. 31 is a circuit example in FIG. 30 in which amplifier circuits 208 are connected in series in two stages.

图32是在图31中在噪声发生源207和放大电路208以及混频电路209的各电源侧连接P沟道MOS晶体管Q14,Q24,Q34,Q46构成的开关电路214.在各接地侧上连接N沟道MOS晶体管Q11,Q21,Q31,Q41构成的开关电路215,通过来自外部的动作许可信号ENABLE开/关这些开关电路214,215,具体说,通过仅在需要随机数时对各电路供电使抖动生成电路204动作的结构。Fig. 32 is in Fig. 31, connects the switch circuit 214 that P channel MOS transistor Q14, Q24, Q34, Q46 constitute on each power supply side of noise generation source 207 and amplifier circuit 208 and mixer circuit 209. Connect on each ground side The switch circuit 215 composed of N-channel MOS transistors Q11, Q21, Q31, and Q41 turns on/off these switch circuits 214, 215 according to the operation permission signal ENABLE from the outside, and specifically, supplies power to each circuit only when a random number is required. A configuration for operating the dither generation circuit 204 .

这样,通过使能功能可自由限制电路的激活期间,不浪费无用的功率,实现随机数发生装置的低功耗。In this way, the activation period of the circuit can be freely limited through the enabling function, so that useless power is not wasted, and low power consumption of the random number generator is realized.

图33~图36是基于图18的结构的抖动生成电路204,各噪声发生源207和放大电路208的组合形式与上述的图30~图32的情况相同,因此这里省略说明。33 to 36 show the jitter generating circuit 204 based on the configuration of FIG. 18 , and the combinations of the noise generating sources 207 and the amplifier circuits 208 are the same as those in FIGS. 30 to 32 described above, so descriptions are omitted here.

上面说明了抖动生成电路204的实施例,但本发明中该抖动生成电路204除向上述触发器201的两个输入线(CLK端子和D端子)附加的图15的随机数发生装置210的结构外,可以是仅将该抖动生成电路204附加于触发器201的一个输入线(本实施例中是D端子侧)的图16的结构,由此,得到与图15的结构相同的效果。The embodiment of the jitter generation circuit 204 has been described above, but in the present invention, the jitter generation circuit 204 is divided into the structure of the random number generator 210 of FIG. In addition, the structure of FIG. 16 in which the jitter generating circuit 204 is added to only one input line of the flip-flop 201 (the D terminal side in this embodiment) may be used, thereby obtaining the same effect as the structure of FIG. 15 .

此时,为配合输入端子二者的输入定时,另一输入线(本实施例中为CLK端子)上附加校正由抖动生成电路204造成的延迟时间的RC积分电路213(相当于图17的积分电路212的时间常数)。At this time, in order to match the input timing of the two input terminals, an RC integration circuit 213 (equivalent to the integration in FIG. time constant of circuit 212).

但是,在抖动生成电路204中,产生如下的不恰当:混频电路209的输出上产生积分波形输入产生的振动,触发器201的输入端子上在1次的随机数生成周期内输入多次的输入信号。However, in the jitter generating circuit 204, the following inappropriateness occurs: the output of the mixing circuit 209 generates vibration due to the input of the integral waveform, and the input terminal of the flip-flop 201 inputs a number of times in one random number generation cycle. input signal.

因此,本实施例中,如图37,38所示,抖动生成电路204的后级上设置在CLK信号的两缘(上升沿/下降沿)动作(设置/复位)的R-S触发器211,混频电路209的输出OUT用CLK信号闩锁。由此,触发器201上可输入没有振动的信号,可进行稳定的随机数生成。另外,图38的结构中,对于积分电路213,也在后级的缓冲器输出上产生振动,因此附加R-S触发器211。Therefore, in this embodiment, as shown in FIGS. 37 and 38 , an R-S flip-flop 211 that operates (sets/resets) on both edges (rising edge/falling edge) of the CLK signal is provided on the rear stage of the jitter generating circuit 204, mixing The output OUT of the frequency circuit 209 is latched with the CLK signal. Accordingly, a signal without vibration can be input to the flip-flop 201, and stable random number generation can be performed. In addition, in the configuration of FIG. 38 , since the integrating circuit 213 also oscillates at the buffer output of the subsequent stage, an R-S flip-flop 211 is added.

以上说明的实施例中,作为随机数发生用的触发器211,使用D型触发器201,但本发明不限于此,可以是与此具有相同功能的触发器,例如可使用R-S触发器。In the embodiment described above, the D-type flip-flop 201 is used as the random number generating flip-flop 211, but the present invention is not limited to this, and a flip-flop having the same function as this may be used, for example, an R-S flip-flop may be used.

接着说明本发明的第二形式的第二实施例。Next, a second embodiment of the second form of the present invention will be described.

如图39所示,第二实施例的随机数发生装置210由输出1比特的串行随机数RND的D型触发器218和2系统的延迟电路202,203以及相位-电压变换电路217与未示出的相位控制电路205(参考图15,16)构成。As shown in FIG. 39, the random number generator 210 of the second embodiment consists of a D-type flip-flop 218 that outputs a 1-bit serial random number RND, and 2 system delay circuits 202, 203, and a phase-voltage conversion circuit 217. The shown phase control circuit 205 (refer to FIGS. 15 and 16 ) is configured.

这里,上述相位-电压变换电路217是将延迟电路202,203的延迟输出信号的相位差变换为电压的电路,如图40的内部电路所示,由检测输入IN(CLK)和输入IN(D)的相位差的栅电路、通过各栅电路输出接通/断开的P沟道MOS晶体管Q2和N沟道MOS晶体管Q1的串联电路以及在其输出侧上连接的RC积分电路构成。Here, the above-mentioned phase-voltage conversion circuit 217 is a circuit that converts the phase difference of the delayed output signals of the delay circuits 202, 203 into a voltage. As shown in the internal circuit of FIG. 40, the detection input IN (CLK) and the input IN (D ), a series circuit of a P-channel MOS transistor Q2 and an N-channel MOS transistor Q1 that output ON/OFF through each gate circuit, and an RC integrating circuit connected to the output side thereof.

上述结构的相位-电压变换电路217如图41(a)所示,IN(D)的相位比IN(CLK)靠前时,仅在该相位差部分接通P沟道MOS晶体管Q2(其间断开N沟道MOS晶体管Q1),经电阻R对电容器C充电,使缓冲器的输入电压v(th)上升来动作。如图41(b)所示,IN(D)的相位比IN(CLK)滞后时,仅在该相位差部分接通N沟道MOS晶体管Q1(其间断开P沟道MOS晶体管Q2),经电阻R对电容器C放电,使缓冲器的输入电压v(th)下降来动作。In the phase-voltage conversion circuit 217 having the above-mentioned structure, as shown in FIG. Turn on the N-channel MOS transistor Q1), charge the capacitor C through the resistor R, and increase the input voltage v(th) of the buffer to operate. As shown in FIG. 41(b), when the phase of IN(D) lags behind IN(CLK), the N-channel MOS transistor Q1 is turned on only at this phase difference (while the P-channel MOS transistor Q2 is turned off). The resistor R discharges the capacitor C to lower the input voltage v(th) of the buffer to operate.

因此,该相位-电压变换电路217的输出上产生与连接于其的缓冲器的阈值电压大致相等的电压v(th),由2个输入,IN(CLK)和IN(D)相位差生成的该输出电压的变动通过与缓冲器的阈值电压的关系而数字信号化并输入到触发器218的D端子,在输出上得到与CLK信号同步的1比特的随机数数据RND。然后,该随机数数据RND由上述相位控制电路205监视,自动调整2个输入信号的相位差(即相位-电压变换电路217的输出),使得触发器输出1或0的出现率一定(例如为50%)。Therefore, a voltage v(th) substantially equal to the threshold voltage of the buffer connected thereto is generated at the output of the phase-voltage conversion circuit 217, which is generated by the phase difference between two inputs, IN(CLK) and IN(D). The fluctuation of the output voltage is converted into a digital signal based on the relationship with the threshold voltage of the buffer, and input to the D terminal of the flip-flop 218, and 1-bit random number data RND synchronized with the CLK signal is outputted. Then, the random number data RND is monitored by the above-mentioned phase control circuit 205, and the phase difference between the two input signals (that is, the output of the phase-voltage conversion circuit 217) is automatically adjusted so that the occurrence rate of the flip-flop output 1 or 0 is constant (for example, 50%).

虽未示出,但图39中,通过RC积分电路后面串联连接电阻,电阻发出的噪声更有效地进行v(th)的变动引起的下级元件的阈值动作。Although not shown, in FIG. 39 , by connecting a resistor in series behind the RC integrating circuit, the noise generated by the resistor can more effectively perform the threshold value operation of the lower-stage element caused by the fluctuation of v(th).

另外,图39中,相位-电压变换电路217和触发器218之间插入缓冲器,但可不插入缓冲器而直接连接于触发器218的D端子。此时,相位-电压变换电路217的输出电压v(th)大致自动调整到D端子的阈值电压。In addition, in FIG. 39 , a buffer is inserted between the phase-voltage conversion circuit 217 and the flip-flop 218 , but it may be directly connected to the D terminal of the flip-flop 218 without interposing a buffer. At this time, the output voltage v(th) of the phase-voltage conversion circuit 217 is almost automatically adjusted to the threshold voltage of the D terminal.

替代上述缓冲器而使用比较器,可以是通过比较该输出电压v(th)和基准电压可得到数字信号的结构。A comparator may be used instead of the above buffer, and a digital signal may be obtained by comparing the output voltage v(th) with a reference voltage.

如图42所示,相位-电压变换电路217的串联晶体管电路上附加P沟道MOS晶体管Q4和N沟道MOS晶体管Q5,通过来自外部的动作许可信号ENABLE在必要时间以外停止电路动作,可实现低功耗。As shown in FIG. 42, a P-channel MOS transistor Q4 and an N-channel MOS transistor Q5 are added to the series transistor circuit of the phase-voltage conversion circuit 217, and the operation of the circuit is stopped outside the necessary time by the operation permission signal ENABLE from the outside. low power consumption.

图43是在相位-电压变换电路217的输出侧连接抖动生成电路204的结构。该抖动生成电路204是由噪声发生源207、放大电路208和混频电路209构成的图17、图18的结构,这里省略说明。FIG. 43 shows a configuration in which the jitter generation circuit 204 is connected to the output side of the phase-voltage conversion circuit 217 . The jitter generating circuit 204 has the configurations shown in FIGS. 17 and 18 composed of a noise generating source 207, an amplifier circuit 208, and a frequency mixing circuit 209, and description thereof will be omitted here.

连接抖动生成电路204、使阈值电压V(th)产生抖动,使得触发器输出中出现0或1的概率不稳定要素积极增加,由此容易生成具有同一性而不具有规律性、相关性和周期性的稳定的自然随机数。Connect the jitter generating circuit 204 to jitter the threshold voltage V(th), so that the probability of occurrence of 0 or 1 in the flip-flop output is positively increased, and thus it is easy to generate an identity without regularity, correlation, and cycle. A stable natural random number.

接着说明本发明的第二形式的第三实施例。Next, a third embodiment of the second form of the present invention will be described.

如图44所示,第三实施例的随机数发生装置由输出1比特的串行随机数RND的R-S型触发器216和连接该R-S型触发器216的S端子和R端子的延迟电路202,203以及未示出的相位控制电路205(参考图15,16)构成。As shown in Figure 44, the random number generator of the third embodiment consists of an R-S type flip-flop 216 that outputs a 1-bit serial random number RND and a delay circuit 202 that connects the S terminal and the R terminal of the R-S type flip-flop 216, 203 and an unshown phase control circuit 205 (refer to FIGS. 15 and 16).

这里,图45表示出N沟道MOS晶体管和P沟道MOS晶体管构成的上述R-S型触发器的内部电路,通过晶体管Q1~Q4构成S侧的NAND栅电路,通过晶体管Q5~Q8构成R侧的NAND栅电路。Here, FIG. 45 shows the internal circuit of the above-mentioned R-S flip-flop composed of N-channel MOS transistors and P-channel MOS transistors. The NAND gate circuit on the S side is formed by transistors Q1-Q4, and the NAND gate circuit on the R-side is formed by transistors Q5-Q8. NAND gate circuit.

例如,R-S型触发器这种边缘触发型的触发器中,S侧输入信号和R侧输入信号的上升沿的相位差接近0时,已知产生亚稳现象,该现象产生时,到触发器输出确定之前需要时间,一定时间后的输出状态保持0或1或阈值电压或为振荡状态之一。本实施例是积极利用该亚稳现象生成自然随机数。For example, in an edge-triggered flip-flop such as an R-S flip-flop, when the phase difference between the rising edges of the S-side input signal and the R-side input signal is close to 0, it is known that metastable phenomenon occurs. When this phenomenon occurs, the flip-flop It takes time before the output is determined, and the output state after a certain period of time remains 0 or 1 or the threshold voltage or is one of the oscillating states. This embodiment actively utilizes this metastable phenomenon to generate natural random numbers.

即,本实施例中,如图46所示,在图45的电路结构中,S侧的NAND栅电路的电源Vcc侧上串联连接P沟道MOS晶体管Q10,GND侧上串联连接N沟道MOS晶体管Q9的同时,在这些晶体管Q9,Q10的栅上连接噪声发生源207和放大电路208,通过该放大噪声信号改变S侧的NAND栅电路的阈值电压。此外,端子S上连接延迟电路202的输出、端子R上连接延迟电路203的输出。图47是在S侧、R侧二者的NAND栅电路上附加上述电路,分别输入放大噪声信号的结构。That is, in this embodiment, as shown in FIG. 46, in the circuit structure of FIG. 45, a P-channel MOS transistor Q10 is connected in series to the power supply Vcc side of the NAND gate circuit on the S side, and an N-channel MOS transistor Q10 is connected in series to the GND side. At the same time as the transistor Q9, the gates of these transistors Q9 and Q10 are connected with a noise generator 207 and an amplifier circuit 208, and the threshold voltage of the NAND gate circuit on the S side is changed by the amplified noise signal. In addition, the output of the delay circuit 202 is connected to the terminal S, and the output of the delay circuit 203 is connected to the terminal R. FIG. 47 shows a structure in which the above-mentioned circuit is added to the NAND gate circuits of both the S side and the R side, and the amplified noise signals are respectively input.

上述结构中,通过改变NAND栅电路的阈值电压,可将触发器输出从亚稳状态即时地改变为1或0的稳定状态。并且,随机数数据RND由上述相位控制电路205监视,自动调整2个输入信号的相位差,使得触发器输出1或0的出现率一定(例如为50%)。In the above structure, by changing the threshold voltage of the NAND gate circuit, the flip-flop output can be instantly changed from a metastable state to a stable state of 1 or 0. In addition, the random number data RND is monitored by the phase control circuit 205, and the phase difference between the two input signals is automatically adjusted so that the occurrence rate of flip-flop output 1 or 0 is constant (for example, 50%).

以上说明的第三实施例中,作为随机数发生用的触发器(引起亚稳现象的触发器)使用R-S触发器216,但本发明不限于此,用除此以外的触发器(例如D型触发器等)可实现同样功能。In the third embodiment described above, the R-S flip-flop 216 is used as a flip-flop (a flip-flop causing a metastable phenomenon) for random number generation, but the present invention is not limited thereto. Trigger, etc.) can achieve the same function.

虽未示出,但上述的第一到第三实施例的串行随机数发生装置210可并列配置P个,从而构成各个随机数发生装置210之间不存在任何相互关系的P比特结构的并列型随机数发生装置。Although not shown, the serial random number generators 210 of the above-mentioned first to third embodiments can be arranged in parallel, so as to form a parallel arrangement of P-bit structures without any mutual relationship among the random number generators 210 random number generator.

使用上述的串行型的随机数发生装置和并列型随机数发生装置构成概率发生装置,则可生成具有同一性而不具有规律性、相关性和周期性的理想的概率。By using the above-mentioned serial type random number generator and parallel type random number generator to form a probability generator, it is possible to generate ideal probabilities that have identity but do not have regularity, correlation, and periodicity.

如上所述,本发明的各电路使用MOS晶体管构成数字结构,因此容易应对LSI化,有利于生产,可对科学技术计算、游戏机、加密处理等广泛的领域的用途高速廉价地提供大量随机数和概率数据。As mentioned above, each circuit of the present invention uses MOS transistors to form a digital structure, so it is easy to adapt to LSI, which is beneficial to production, and can provide a large number of random numbers at high speed and low cost for applications in a wide range of fields such as scientific and technical calculations, game machines, and encryption processing. and probability data.

如上说明,根据本发明,生成随机数的触发器的输入线上附加抖动生成电路,因此通过输入信号的抖动,扩大了触发器的不确定动作范围,容易生成随机数,其结果可实现具有同一性而不具有规律性、相关性和周期性的更稳定的自然随机数的发生装置。As explained above, according to the present invention, the jitter generation circuit is added to the input line of the flip-flop that generates the random number, so the uncertain operation range of the flip-flop is expanded by the jitter of the input signal, and the random number is easily generated. A more stable natural random number generator that does not have regularity, correlation, and periodicity.

作为另外的结构,将相位调整变换为电压,利用电路元件的阈值电压将该电压变动数字化产生随机数,因此可实现具有同一性而不具有规律性、相关性和周期性的更稳定的自然随机数的发生装置。As another structure, the phase adjustment is converted into a voltage, and the voltage variation is digitized using the threshold voltage of the circuit element to generate a random number, so that a more stable natural randomness with identity rather than regularity, correlation, and periodicity can be realized. number generator.

作为其他结构,通过利用触发器的亚稳现象产生随机数,从而可实现具有同一性而不具有规律性、相关性和周期性的更稳定的自然随机数的发生装置。As another configuration, by utilizing the metastable phenomenon of flip-flops to generate random numbers, a more stable natural random number generator having identity without regularity, correlation, and periodicity can be realized.

通过利用该结构的随机数发生装置,可实现理想的概率发生装置,可积极有效地参与科学技术计算、游戏机或加密处理等具有保密性的高技术产业。By using the random number generating device of this structure, an ideal probability generating device can be realized, and it can actively and effectively participate in high-tech industries with confidentiality such as scientific and technical calculations, game machines, and encryption processing.

<发明的第三形式><The third form of invention>

下面根据附图说明本发明的第三实施形式的随机数发生装置的实施例。An example of a random number generating device according to the third embodiment of the present invention will be described below with reference to the drawings.

如图48所示,第一实施例的随机数发生装置310基本包括触发器301、相位调整部302和反馈电路303。As shown in FIG. 48 , the random number generator 310 of the first embodiment basically includes a flip-flop 301 , a phase adjustment section 302 and a feedback circuit 303 .

这里,作为上述触发器301,可使用具有通过输入到2个输入部的输入信号(CLOCK)的相位差确定输出的状态(0或1)的功能的触发器,本实施例中,为信号输入使用,而使用具有时钟端子CLK和数据端子D的上述实施例的图13所示的D型触发器。Here, as the above-mentioned flip-flop 301, a flip-flop having a function of determining the state (0 or 1) of the output by the phase difference of the input signal (CLOCK) input to the two input parts can be used. In this embodiment, it is a signal input Instead, the D-type flip-flop shown in FIG. 13 of the above-described embodiment having a clock terminal CLK and a data terminal D is used.

上述相位调整部302由串联连接并产生分级地增加延迟量的多个延迟输出的2个延迟电路317,318(第一延迟317、第二延迟318)、根据选择输入选择该延迟输出之一的选择电路319(选择器319)和控制该选择输入的可逆计数器313(第三计数器313)构成,上述第一延迟317和第二延迟318的连接点(成为延迟中间点)经第一噪声/相位变换器320连接于上述触发器301的时钟端子CLk的同时,选择器319的输出经第二噪声/相位变换器321连接于数据端子D,输入到触发器301的2个输入信号的上升沿时间的相位差可任意调整。The phase adjustment unit 302 is composed of two delay circuits 317, 318 (first delay 317, second delay 318) that are connected in series and generate a plurality of delay outputs that increase the delay amount in stages, and select one of the delay outputs according to the selection input. The selection circuit 319 (selector 319) and the up-down counter 313 (third counter 313) controlling the selection input are constituted. While the converter 320 is connected to the clock terminal CLk of the flip-flop 301, the output of the selector 319 is connected to the data terminal D through the second noise/phase converter 321, and the rising edge time of the two input signals input to the flip-flop 301 is The phase difference can be adjusted arbitrarily.

上述2个噪声/相位变换器320,321是为了使上述触发器输入中产生抖动,将来自利用处于激活状态的电路元件(例如晶体管、电阻、电容器等)产生的微弱的热噪声的噪声发生源322,323的噪声与延迟输出合成的电路。因此,扩大触发器301的不确定动作范围,容易生成具有同一性而不具有规律性、相关性和周期性的完全自然的随机数。The above-mentioned two noise/phase converters 320 and 321 are to generate jitter in the input of the above-mentioned flip-flop, and generate noise from weak thermal noise generated by active circuit elements (such as transistors, resistors, capacitors, etc.) 322,323 noise and delay output synthesis circuit. Therefore, expanding the uncertain operation range of the flip-flop 301 makes it easy to generate completely natural random numbers that have identity but do not have regularity, correlation, and periodicity.

该噪声/相位变换器未必附加于触发器301的CLK端子和D端子二者,如图49所示的随机数发生装置310所示,可在触发器301的某一输入线(图49中为D端子)上附加,得到同样效果。This noise/phase converter is not necessarily added to both the CLK terminal and the D terminal of the flip-flop 301. As shown in the random number generator 310 shown in FIG. D terminal) to get the same effect.

上述反馈电路303由第一计数器311、第二计数器312、寄存器314、比较器315和常数设定器316构成。The above-mentioned feedback circuit 303 is composed of a first counter 311 , a second counter 312 , a register 314 , a comparator 315 and a constant setter 316 .

第一计数器311从输入信号CLOCK计测预定的反复周期(CLOCK数(2×m)),第二计数器312在每个该反复周期中计测上述触发器输出的1(或0)的出现数。寄存器314在每个反复周期取入并保持第二计数器312的计数值。另外,每次计数值设置在寄存器314中时就将第二计数器312清零。常数设定器316输出用于设定触发器输出1(或0)的出现率的比较数据。本实施例中,预先设定为输出上述反复周期(CLOCK数(2×m))的1/2的值(m)。比较器315比较寄存器314的保持数据(n)和来自常数设定器316的比较数据(m),对应比较结果(n>m)或(n=m)或(n<m)产生比较输出。第三计数器113按根据来自上述比较器315的比较输出设定的动作模式动作,将该计数数据作为选择电路319的选择信号输出。并且,如上所述,选择电路319输出通过选择信号选择的CLOCK信号的规定延迟信号。The first counter 311 measures a predetermined repetition period (number of CLOCKs (2×m)) from the input signal CLOCK, and the second counter 312 counts the number of occurrences of 1 (or 0) output by the above-mentioned flip-flop in each repetition period. . The register 314 fetches and holds the count value of the second counter 312 in each iteration cycle. In addition, the second counter 312 is cleared every time the count value is set in the register 314 . The constant setter 316 outputs comparison data for setting the occurrence rate of flip-flop output 1 (or 0). In this embodiment, it is preset to output a value (m) of 1/2 of the above-mentioned repetition period (number of clocks (2×m)). The comparator 315 compares the hold data (n) of the register 314 with the comparison data (m) from the constant setter 316, and generates a comparison output corresponding to the comparison result (n>m) or (n=m) or (n<m). The third counter 113 operates in an operation mode set based on the comparison output from the comparator 315 , and outputs the count data as a selection signal of the selection circuit 319 . Also, as described above, the selection circuit 319 outputs a predetermined delay signal of the CLOCK signal selected by the selection signal.

即,根据上述结构,第三计数器313对应寄存器314的输出数据(n)和来自该常数设定器316的输出数据(m)的比较输出在每个反复周期进行上/下动作(例如n>m时进行向上计数(+1),在n<m时进行向下计数(-1)),自动校正输入到触发器301的数据端子D的CLOCK信号的上升沿时间使得比较器15的比较输出收敛在n=m(n=m时计数动作停止(±0),CLOCK信号的相位差维持一定)。具体说,如图14(c)所示,控制为CLK信号的上升沿和D信号的上升沿的相位差Δt接近0。由此,触发器301的输出上得到0和1的出现率常常维持50%的有同一性的1比特的串行随机数数据OUT。That is, according to the above-mentioned structure, the comparison output of the output data (n) of the corresponding register 314 of the third counter 313 and the output data (m) from the constant setter 316 carries out an up/down action (such as n> Count up (+1) when m, and count down (-1) when n<m), and automatically correct the rising edge time of the CLOCK signal input to the data terminal D of the flip-flop 301 to make the comparison output of the comparator 15 Converge at n=m (when n=m, the counting operation stops (±0), and the phase difference of the CLOCK signal remains constant). Specifically, as shown in FIG. 14( c ), the phase difference Δt between the rising edge of the CLK signal and the rising edge of the D signal is controlled to be close to zero. As a result, the output of the flip-flop 301 is obtained as 1-bit serial random number data OUT in which the occurrence rate of 0 and 1 is always maintained at 50%.

上面是随机数发生装置310的基本动作,但本实施例中,上述第一计数器311上连接初始控制电路324,从电源接通到一定时钟数强制将第一计数器311的通常动作时的计数设定值(2×m)设为m=1。从而电源接通时,可有效地将概率收敛在1/2,可缩短相位调整期间。The above is the basic operation of the random number generator 310, but in this embodiment, the initial control circuit 324 is connected to the above-mentioned first counter 311, and the counting during the normal operation of the first counter 311 is forced to be set from the power supply to a certain number of clocks. The fixed value (2×m) is set to m=1. Therefore, when the power is turned on, the probability can be effectively converged to 1/2, and the phase adjustment period can be shortened.

接着根据图50说明第二实施例。Next, a second embodiment will be described based on FIG. 50 .

本实施例的随机数发生装置310的基本结构与图48同样,由触发器301、相位调整部302和反馈电路303构成,但相位调整部302的结构与图48不同。The basic structure of the random number generator 310 of this embodiment is the same as that of FIG. 48 , consisting of a flip-flop 301 , a phase adjustment unit 302 and a feedback circuit 303 , but the structure of the phase adjustment unit 302 is different from that of FIG. 48 .

即,本结构是将第三计数器313、第一选择器319、第一延迟317、第二延迟318构成的相位调整电路用作微调整部件,各个延迟输出上附加第三延迟331、第二选择器332构成的粗调整部件和第四延迟333、第三选择器334构成的粗调整部件,上述第二选择器332和第三选择器334的选择动作由第四计数器330的输出指定。因此,微调整用的第一延迟317和第二延迟318的每一节距(step)的延迟时间与粗调整用的第三延迟331和第四延迟333的延迟时间相比设定在约1/20以下。该第四计数器330由比较器315的比较输出控制,其计数动作与第三计数器313的情况相同。That is, in this structure, the phase adjustment circuit composed of the third counter 313, the first selector 319, the first delay 317, and the second delay 318 is used as a fine-tuning component, and the third delay 331, the second selector The coarse adjustment unit constituted by the controller 332 and the coarse adjustment unit constituted by the fourth delay 333 and the third selector 334, the selection actions of the second selector 332 and the third selector 334 are specified by the output of the fourth counter 330. Therefore, the delay time per step of the first delay 317 and the second delay 318 for fine adjustment is set at about 1 compared with the delay time of the third delay 331 and the fourth delay 333 for rough adjustment. /20 or less. The fourth counter 330 is controlled by the comparison output of the comparator 315 , and its counting operation is the same as that of the third counter 313 .

下面参考图51和表1说明图50所示的随机数发生装置310进行的相位的粗调整动作和微调整动作。另外,图51表示相位调整时的粗调整和微调整的动作范围,表1表示此时的第三计数器313和第四计数器330的动作表。这里,微调整范围为(0~r×(g-1)),粗调整范围为(-s×(h)~s×(h-1))。Next, the rough adjustment operation and the fine adjustment operation of the phase performed by the random number generator 310 shown in FIG. 50 will be described with reference to FIG. 51 and Table 1. FIG. In addition, FIG. 51 shows the operation ranges of rough adjustment and fine adjustment during phase adjustment, and Table 1 shows the operation table of the third counter 313 and the fourth counter 330 at this time. Here, the fine adjustment range is (0˜r×(g−1)), and the rough adjustment range is (−s×(h)˜s×(h−1)).

在初始状态,粗调整用的第四计数器330的计数值(SN)和微调整用的第三计数器313的计数值(RN)都为0。通过初始控制电路324在电源接通时将第一计数器311的(m)强制地在一定时钟数(图51中相位调整宽度tdw,即2×(2×g+h)时钟数)中控制为m=1,因此一定期间中第三计数器313根据比较器315的比较输出每2个时钟地进行计数动作(+1或±0或-1)。其间,第四计数器330根据比较器315的比较输出和上述第三计数器313的状态进行计数动作(+1或±0或-1)。In the initial state, the count value (SN) of the fourth counter 330 for rough adjustment and the count value (RN) of the third counter 313 for fine adjustment are both zero. The (m) of the first counter 311 is forcibly controlled within a certain number of clocks (the phase adjustment width tdw in FIG. 51 , that is, 2×(2×g+h) number of clocks) by the initial control circuit 324 when the power is turned on. Since m=1, the third counter 313 performs a counting operation (+1 or ±0 or −1) every two clocks based on the comparison output of the comparator 315 during a certain period. Meanwhile, the fourth counter 330 performs a counting operation (+1 or ±0 or −1) according to the comparison output of the comparator 315 and the state of the above-mentioned third counter 313 .

首先,(1)最终调整的相位点位于图51中的a1时,电源接通时,第三计数器313通过比较器315的比较输出(n<m)每2个时钟从0向上计数到(g-1)。First, (1) when the final adjusted phase point is at a1 in Figure 51, when the power is turned on, the third counter 313 counts up from 0 to (g -1).

第三计数器313向上计数到RN=(g-1)时,下一2个时钟里第四计数器330在每2个时钟中以比较器315的比较输出(n<m)和上述第三计数器313的RN=(g-1)的状态为条件从0向上计数到(h-1),成为SN=(h-2)。这里,SN=(h-2)的状态是对应于图51中相位设定点a1的粗调整节距位置,与此相应的微调整范围为图51中的(A)范围(0~r×(g-1))。该计数动作中,第三计数器313的RN=(g-1)的状态在初始控制电路324的控制下强制保持。When the 3rd counter 313 counts up to RN=(g-1), the 4th counter 330 in every 2 clocks with the comparative output (n<m) of comparator 315 and above-mentioned 3rd counter 313 The condition of RN=(g-1) counts up from 0 to (h-1), and becomes SN=(h-2). Here, the state of SN=(h-2) is the coarse adjustment pitch position corresponding to the phase set point a1 in Fig. 51, and the corresponding fine adjustment range is the range (A) in Fig. 51 (0~r× (g-1)). In this counting operation, the state of RN=(g−1) of the third counter 313 is forcibly maintained under the control of the initial control circuit 324 .

接着第三计数器313为RN=(g-1)、第四计数器330为SN=(h-2)的状态下,通过比较器315的比较输出(n>m)第三计数器313每2个时钟向上计数,逐渐接近相位设定点a1,自动调整相位使得触发器输出的1的出现率收敛在1/2,最终停留在上述相位设定点a1的相位前后。Then the third counter 313 is RN=(g-1), the fourth counter 330 is under the state of SN=(h-2), by the comparison output (n>m) of the comparator 315, the third counter 313 every 2 clocks Count up, gradually approach the phase set point a1, automatically adjust the phase so that the occurrence rate of 1 of the flip-flop output converges to 1/2, and finally stay at the phase before and after the above phase set point a1.

(2)最终调整的相位为a2的情况下,初始状态中,SN=(0)、RN=(0)。第三计数器313在RN=(0)时,通过比较器315的比较输出(n>m)在下一2个时钟里从(0)向下计数到(-2),为SN=(-2)。这里,SN=(-2)的状态是对应于图51中相位设定点a2的粗调整节距位置(-s×2),微调整范围为图51中的(B)范围(0~r×(g-1))。该计数动作中,第三计数器313的RN=(0)的状态在初始控制电路324的控制下强制保持。(2) When the final adjusted phase is a2, in the initial state, SN=(0), RN=(0). The third counter 313 counts down from (0) to (-2) in the next 2 clocks by the comparison output (n>m) of the comparator 315 when RN=(0), which is SN=(-2) . Here, the state of SN=(-2) is the coarse adjustment pitch position (-s×2) corresponding to the phase set point a2 in Figure 51, and the fine adjustment range is the range (B) in Figure 51 (0~r ×(g-1)). In this counting operation, the state of RN=(0) of the third counter 313 is forcibly held under the control of the initial control circuit 324 .

接着从第三计数器313为RN=(0)、第四计数器330为SN=(-2)的状态开始,通过比较器315的比较输出(n<m)第三计数器313每2个时钟向上计数,逐渐接近相位设定点a2,自动调整使得最终触发器输出的1的出现率收敛在1/2,停留在上述相位设定点a2的相位前后。Then from the state that the third counter 313 is RN=(0), the fourth counter 330 is SN=(-2), the third counter 313 counts up every 2 clocks by the comparison output (n<m) of the comparator 315 , gradually approaching the phase setpoint a2, and automatically adjusting so that the occurrence rate of 1 of the final flip-flop output converges to 1/2, staying before and after the phase of the above-mentioned phase setpoint a2.

接着(3)通过初始控制动作调整到相位设定点为a1或a2以后的通常动作中,如表1所示,第三计数器313在RN=(0)或RN=(g-1)以外的时候,第一计数器311设定的m(例如m=250)的一定期间(2×m的每个时钟)里根据比较器315的比较输出进行计数动作(+1、±0、-1)。Then (3) through the initial control action to adjust to the normal action after the phase set point is a1 or a2, as shown in Table 1, the third counter 313 is at a value other than RN=(0) or RN=(g-1). At this time, the counting operation (+1, ±0, -1) is performed based on the comparison output of the comparator 315 within a certain period (per clock of 2×m) set by the first counter 311 of m (for example, m=250).

RN=(0)时,第三计数器313根据比较器315的比较输出进行(+1、±0、RN=(g-1))的计数动作,第四计数器330在第三计数器313移动到RN=(g-1)时设定为-1。When RN=(0), the third counter 313 carried out the counting action of (+1, ± 0, RN=(g-1)) according to the comparison output of the comparator 315, and the fourth counter 330 moved to RN at the third counter 313 =(g-1) is set to -1.

RN=(g-1)时,第三计数器313根据比较器315的比较输出进行(+1、±0、RN=(g-1))的计数动作,第四计数器330在第三计数器313移动到RN=(0)时设定为+1。During RN=(g-1), the 3rd counter 313 carries out (+1,±0, RN=(g-1)) counting operation according to the comparative output of comparator 315, and the 4th counter 330 moves in the 3rd counter 313 Set to +1 when RN=(0).

如上所述,首先将相位大致调整到规定相位(粗调整),之后在最终调整的相位设定点上进行微调整。由此,有效进行高精度的相位调整,通过反馈控制可高速进行相位调整。通过设置粗调整部件,用少延迟节距的结构可得到宽的相位调整宽度,可减少构成相位调整部302的电路部件。As described above, the phase is first roughly adjusted to the specified phase (coarse adjustment), followed by fine adjustment at the final adjusted phase set point. Thus, high-precision phase adjustment is effectively performed, and high-speed phase adjustment can be performed by feedback control. By providing a rough adjustment part, a wide phase adjustment width can be obtained with a structure having a small delay pitch, and the number of circuit parts constituting the phase adjustment unit 302 can be reduced.

表1Table 1

Figure C0212633400341
Figure C0212633400341

接着根据图52~图54说明第三实施例。Next, a third embodiment will be described with reference to FIGS. 52 to 54 .

这里,图53是对通过具有同一性的随机数发生装置1,000次输出随机数时的1或0的出现次数画图得到的图,表示出正态分布。图54是按中心基准将该正态分布等间隔地进行8份分割,以中心为±0,总共对10个分割位置,在图54中从左端进行+5~-5的加权的情况。Here, FIG. 53 is a graph obtained by plotting the number of occurrences of 1 or 0 when random numbers are output 1,000 times by an identical random number generator, and shows a normal distribution. FIG. 54 shows the case where the normal distribution is divided into 8 equal intervals based on the center, and the center is ±0. A total of 10 division positions are weighted from +5 to -5 from the left end in FIG. 54 .

图52所示的随机数发生装置310是多种改变图48的随机数发生装置310的比较器315的比较形式的同时,在该输出上连接控制电路340而构成的。本实施例中,与寄存器314的内容(n)比较的比较器315的比较数据作为图54所示的正态分布的多分割位置数据(m+4×k)~(m-4×k),即刻输出上述出现次数的计数对应于正态分布的哪个分割位置。The random number generator 310 shown in FIG. 52 is configured by changing the comparison form of the comparator 315 of the random number generator 310 in FIG. 48 in various ways, and connecting the control circuit 340 to the output. In this embodiment, the comparison data of the comparator 315 compared with the content (n) of the register 314 is multi-segmented position data (m+4×k)~(m-4×k) shown in FIG. 54 , immediately output which split position of the normal distribution the above count of occurrences corresponds to.

上述控制电路340通过比较器315的比较输出((n>m+4×k)~(n>(m-4×k))判断与分割位置数据对应的加权(-5~+5),将与此分别对应的计数设定到第三计数器313中。第三计数器313进行对应加权的计数动作,通过选择器319控制延迟输出的切换宽度(切换节距数)。例如,加权为(-4)时,第三计数器313用一次动作反复4次向下计数,加权为(+3)时,用一次动作反复3次向上计数。加权为(0)时,停止计数动作。The control circuit 340 judges the weight (-5 to +5) corresponding to the divided position data from the comparison output ((n>m+4*k)~(n>(m-4*k)) of the comparator 315, and sets The count corresponding to this is respectively set in the third counter 313. The third counter 313 carries out the counting action of corresponding weighting, controls the switching width (switching pitch number) of delay output by the selector 319. For example, weighting is (-4 ), the third counter 313 repeatedly counts down 4 times with one action, and counts up three times with one action when the weight is (+3). When the weight is (0), stop the counting action.

这样,本结构中,在0或1的出现次数少的正态分布区域(例如图54中出现次数为450或550附近),通过加权增大延迟输出的切换宽度,进行相位的粗调整,随着接近正态分布的中心(图54中的出现次数为500附近),减小延迟输出的切换宽度,进行相位微调整。由此可有效进行相位调整。In this way, in this structure, in the normal distribution area where the number of occurrences of 0 or 1 is small (for example, the number of occurrences in Figure 54 is around 450 or 550), the switching width of the delayed output is increased by weighting, and the phase is roughly adjusted. Close to the center of the normal distribution (the number of occurrences in Figure 54 is around 500), reduce the switching width of the delayed output, and perform fine adjustment of the phase. This enables efficient phase adjustment.

以上说明的第一到第三实施例中,作为随机数产生用的触发器,使用D型触发器,但本发明不限于此,可使用具有与此相同功能的触发器,如可使用R-S触发器等。In the first to third embodiments described above, as the flip-flop used for random number generation, a D-type flip-flop is used, but the present invention is not limited thereto, and a flip-flop with the same function as this can be used, such as an R-S trigger device etc.

本发明的串行随机数发生装置310可并列配置P个,从而构成P比特结构的并列型随机数发生装置。P serial random number generators 310 of the present invention can be arranged in parallel to form a parallel random number generator with a P-bit structure.

使用上述的串行型的随机数发生装置和并列型随机数发生装置可实现不具有规律性、相关性和周期性的高速高性能的概率发生装置。A high-speed, high-performance probability generator that does not have regularity, correlation, and periodicity can be realized by using the above-mentioned serial random number generator and parallel random number generator.

如上所述,根据本发明,通过反馈控制进行相位调整中,相位调整部设置粗调整部件和微调整部件,因此可有效进行相位调整,实现随机数产生的高速化。通过设置粗调整部件,用小的延迟节距结构得到宽的相位调整宽度,从而可减少电路部件。As described above, according to the present invention, in performing phase adjustment by feedback control, the phase adjustment unit is provided with rough adjustment means and fine adjustment means, so phase adjustment can be effectively performed and random number generation can be performed at a higher speed. By setting the rough adjustment part, a wide phase adjustment width can be obtained with a small delay pitch structure, thereby reducing circuit parts.

根据本发明,对比随机数0或1的出现率的正态分布和实际的出现次数,对应相应出现次数对应的正态分布的位置可改变相位调整宽度,从而与上述同样有效进行相位调整,实现随机数发生的高速化。According to the present invention, comparing the normal distribution of the occurrence rate of the random number 0 or 1 with the actual number of occurrences, the position of the normal distribution corresponding to the corresponding number of occurrences can change the phase adjustment width, thereby effectively performing phase adjustment as above, and realizing Speed up random number generation.

<本发明的第四实施形式><Fourth Embodiment of the Invention>

图55~图67表示本发明的第四实施形式。下面参考附图说明本发明的第四实施形式。55 to 67 show a fourth embodiment of the present invention. A fourth embodiment of the present invention will be described below with reference to the drawings.

图55是表示本发明的1比特随机数发生装置的第一实施例的电路图。Fig. 55 is a circuit diagram showing a first embodiment of the 1-bit random number generator of the present invention.

如图55所示,该1比特随机数发生装置401是随机数发生器402、第一计数器403、第二计数器404、寄存器405和输出电路406构成的检验数据输出类型,随机数发生器402中输入同步信号时,作为随机数数据从随机数发生器402输出0或1。此时,随机数发生器402的输入信号也输入第一计数器403中,第一计数器403对一定次数计数并输出到第二计数器404和寄存器405。另一方面,第二计数器404对从随机数发生器402输出的随机数数据的出现次数计数并生成次数数据。并且寄存器405按第一计数器403计数的每个周期保持第二计数器404的次数数据,输出电路406将寄存器405中保持的次数数据作为检验数据串行或并行输出。As shown in Figure 55, the 1-bit random number generator 401 is a test data output type composed of a random number generator 402, a first counter 403, a second counter 404, a register 405 and an output circuit 406, and the random number generator 402 When a synchronization signal is input, 0 or 1 is output from the random number generator 402 as random number data. At this time, the input signal of the random number generator 402 is also input into the first counter 403 , and the first counter 403 counts a certain number of times and outputs it to the second counter 404 and the register 405 . On the other hand, the second counter 404 counts the number of occurrences of the random number data output from the random number generator 402 and generates the number data. And the register 405 holds the count data of the second counter 404 for each cycle counted by the first counter 403 , and the output circuit 406 outputs the count data held in the register 405 as verification data serially or in parallel.

因此,该1比特随机数发生装置401中,使用者不进行麻烦而且复杂的统计处理可自己检验随机数数据的出现同一性。Therefore, in the 1-bit random number generator 401, the user can check the appearance identity of the random number data by himself without performing troublesome and complicated statistical processing.

图56是表示本发明的1比特随机数发生装置的第二实施例的电路图。Fig. 56 is a circuit diagram showing a second embodiment of the 1-bit random number generator of the present invention.

如图56所示,该1比特随机数发生装置424是随机数发生器402、第一计数器403、第二计数器404、寄存器405和比较器407构成的检验信号输出类型,随机数发生器402中输入同步信号时,作为随机数数据从随机数发生器402输出0或1。此时,随机数发生器402的输入信号也输入第一计数器403中,第一计数器403对一定次数计数。另一方面,第二计数器404对从随机数发生器402输出的随机数数据的出现次数计数并生成次数数据。并且寄存器405按第一计数器403计数的每个周期保持第二计数器404的次数数据。另外,比较器407比较寄存器405中保持的数据和预定的上限比较数据和下限比较数据,在寄存器405中的数据位于上限比较数据和下限比较数据之间时,输出表示随机数数据的出现同一性高的检验信号,此外的情况下,输出表示随机数数据的出现同一性低的检验信号。As shown in Figure 56, the 1-bit random number generator 424 is a test signal output type composed of a random number generator 402, a first counter 403, a second counter 404, a register 405 and a comparator 407. In the random number generator 402 When a synchronization signal is input, 0 or 1 is output from the random number generator 402 as random number data. At this time, the input signal of the random number generator 402 is also input into the first counter 403, and the first counter 403 counts a certain number of times. On the other hand, the second counter 404 counts the number of occurrences of the random number data output from the random number generator 402 and generates the number data. And the register 405 holds the data of the number of times of the second counter 404 for each cycle counted by the first counter 403 . In addition, the comparator 407 compares the data held in the register 405 with the predetermined upper limit comparison data and lower limit comparison data, and when the data in the register 405 is between the upper limit comparison data and the lower limit comparison data, the output represents the occurrence identity of the random number data If the check signal is high, otherwise, a check signal indicating that the occurrence identity of the random number data is low is output.

因此,该1比特随机数发生装置424中,使用者不进行麻烦而且复杂的统计处理可自己检验随机数数据的出现同一性。Therefore, in the 1-bit random number generator 424, the user can check the appearance identity of the random number data by himself without performing troublesome and complicated statistical processing.

图57是表示本发明的1比特随机数发生装置的第三实施例的电路图。Fig. 57 is a circuit diagram showing a third embodiment of the 1-bit random number generator of the present invention.

该1比特随机数发生装置401根据的原理如下:由于若随机数发生器402的输出一样则输出0或1的概率为1/2,因此各个数字连续k次出现的概率为(1/2)k,例如连续30次出现相同的数字的概率为1/1073741824(即几乎为零),因此若连续30次出现相同的数字,则判断为该随机数发生器2不正常。The principle that this 1-bit random number generator 401 is based on is as follows: because if the output of the random number generator 402 is the same, the probability of outputting 0 or 1 is 1/2, so the probability that each number appears k times in a row is (1/2) k , for example, the probability that the same number appears 30 times in a row is 1/1073741824 (that is, almost zero), so if the same number appears 30 times in a row, it is determined that the random number generator 2 is abnormal.

即,如图57所示,该1比特随机数发生装置401是随机数发生器402、D型触发器等的数据保持器408、异或逻辑和元件等的比较器409、计数器410和输出电路406构成的检验数据输出类型,随机数发生器402中输入同步信号时,作为随机数数据从随机数发生器402输出0或1。此时,随机数发生器402的输入信号和输出信号也输入数据保持器408中,数据保持器408保持从随机数发生器402输出的上次的随机数数据并输出到比较器409。比较器409中也输入随机数发生器402的输出信号,比较器409比较从随机数发生器402输出的此次的随机数数据和数据保持器408保持的上次的随机数数据,在二者相同时向计数器410输出向上计数信号,同时二者不同时向计数器410输出计数清除信号。然后计数器410中也输入随机数发生器402的输入信号,计数器410将该数据输出到输出电路406,输出电路406将该数据作为同一信号长度的检验数据串行或并行地依次输出。That is, as shown in FIG. 57, the 1-bit random number generator 401 is a random number generator 402, a data holder 408 such as a D-type flip-flop, a comparator 409 such as an exclusive OR logic sum element, a counter 410, and an output circuit The verification data output type constituted by 406, when a synchronization signal is input to the random number generator 402, 0 or 1 is output from the random number generator 402 as random number data. At this time, the input signal and output signal of the random number generator 402 are also input to the data holder 408 , and the data holder 408 holds the last random number data output from the random number generator 402 and outputs it to the comparator 409 . The output signal of the random number generator 402 is also input in the comparator 409, and the comparator 409 compares the current random number data output from the random number generator 402 with the last random number data held by the data holder 408, and between the two When they are the same, they output a count-up signal to the counter 410 , and at the same time, they do not output a count-clear signal to the counter 410 at the same time. Then the input signal of the random number generator 402 is also input into the counter 410, and the counter 410 outputs the data to the output circuit 406, and the output circuit 406 sequentially outputs the data as verification data of the same signal length serially or in parallel.

因此,该1比特随机数发生装置401中,通过输出的相同信号长度的检验数据容易进行检验随机数的同一性的统计处理。Therefore, in the 1-bit random number generator 401, the statistical processing for checking the identity of random numbers can be easily performed by outputting the check data of the same signal length.

图58是表示本发明的1比特随机数发生装置的第四实施例的电路图。Fig. 58 is a circuit diagram showing a fourth embodiment of the 1-bit random number generator of the present invention.

如图58所示,该1比特随机数发生装置401是随机数发生器402、D型触发器等的数据保持器408、异或逻辑和元件等的第一比较器411、计数器410、寄存器412、异或逻辑和元件等的第二比较器413、控制电路414和输出电路415构成的检验数据输出类型,随机数发生器402中输入同步信号时,作为随机数数据从随机数发生器402输出0或1。此时,随机数发生器402的输入信号和输出信号也输入数据保持器408中,数据保持器408保持从随机数发生器402输出的上次的随机数数据并输出到第一比较器411。第一比较器411中也输入随机数发生器402的输出信号,第一比较器411比较从随机数发生器402输出的此次的随机数数据和数据保持器408保持的上次的随机数数据,在二者相同时向计数器410输出向上计数信号,同时二者不同时向计数器410输出计数清除信号。然后计数器410中也输入随机数发生器402的输入信号,计数器410将该数据输出到第二比较器413,第二比较器413比较寄存器412的数据和计数器410的输出数据,在后者比前者大的时,向控制电路414输出数据重写信号的同时,在此外的时候向控制电路414输出数据保持信号。控制电路414控制成在接收数据重写信号时将计数器410的输出数据写入寄存器412中的同时,在接收数据保持信号时保持寄存器412的数据,输出电路415将寄存器412中保持的数据作为最长的同一信号长度的检验数据串行或并行地依次输出。As shown in FIG. 58, the 1-bit random number generator 401 is a random number generator 402, a data holder 408 such as a D-type flip-flop, a first comparator 411 such as an XOR logic sum element, a counter 410, and a register 412. , the second comparator 413, the control circuit 414 and the output circuit 415 constituted by the exclusive OR logic and elements, etc., when the synchronization signal is input in the random number generator 402, it is output from the random number generator 402 as random number data 0 or 1. At this time, the input signal and output signal of the random number generator 402 are also input into the data holder 408 , and the data holder 408 holds the last random number data output from the random number generator 402 and outputs it to the first comparator 411 . The output signal of the random number generator 402 is also input in the first comparator 411, and the first comparator 411 compares the current random number data output from the random number generator 402 with the last random number data held by the data holder 408 , output a count up signal to the counter 410 when the two are the same, and simultaneously output a count clear signal to the counter 410 when the two are not at the same time. Then the input signal of the random number generator 402 is also input in the counter 410, and the counter 410 outputs the data to the second comparator 413, and the second comparator 413 compares the data of the register 412 and the output data of the counter 410, and the latter compares the former When it is large, a data rewrite signal is output to the control circuit 414 , and a data hold signal is output to the control circuit 414 at other times. The control circuit 414 is controlled to write the output data of the counter 410 into the register 412 when receiving the data rewriting signal, and hold the data of the register 412 when receiving the data hold signal, and the output circuit 415 uses the data held in the register 412 as the last Long test data of the same signal length are sequentially output in series or in parallel.

因此,该1比特随机数发生装置401中,通过输出的最长的相同信号长度的检验数据容易进行检验随机数的同一性的统计处理。Therefore, in the 1-bit random number generator 401, statistical processing for checking the identity of random numbers can be easily performed by the longest output check data of the same signal length.

图59是表示本发明的1比特随机数发生装置的第五实施例的电路图。Fig. 59 is a circuit diagram showing a fifth embodiment of the 1-bit random number generator of the present invention.

如图59所示,该1比特随机数发生装置524是随机数发生器402、D型触发器等的数据保持器408、异或逻辑和元件等的第一比较器411、计数器410、寄存器412、异或逻辑和元件等的第二比较器413、控制电路414和异或逻辑和元件等的第三比较器416构成的检验信号输出类型,随机数发生器402中输入同步信号时,作为随机数数据从随机数发生器402输出0或1。此时,随机数发生器402的输入信号和输出信号也输入数据保持器408中,数据保持器408保持从随机数发生器402输出的上次的随机数数据并输出到第一比较器411。第一比较器411中也输入随机数发生器402的输出信号,第一比较器411比较从随机数发生器402输出的此次的随机数数据和数据保持器408保持的上次的随机数数据,在二者相同时向计数器410输出向上计数信号,同时二者不同时向计数器410输出计数清除信号。然后计数器410中也输入随机数发生器402的输入信号,计数器410将该数据输出到第二比较器413,第二比较器413比较寄存器412的数据和计数器410的输出数据,在后者比前者大的时,向控制电路414输出数据重写信号的同时,在此外的时候向控制电路414输出数据保持信号。控制电路414控制成在接收数据重写信号时将计数器410的输出数据写入寄存器412中的同时,在接收数据保持信号时保持寄存器412的数据,第三比较器416比较寄存器412中保持的数据和预定的比较数据并依次输出最长的同一信号长度的检验信号。As shown in FIG. 59 , the 1-bit random number generator 524 is a random number generator 402, a data holder 408 such as a D-type flip-flop, a first comparator 411, a counter 410, and a register 412 such as an XOR logic sum element, etc. , the second comparator 413 of XOR logic and elements, the control circuit 414 and the third comparator 416 of XOR logic and elements, etc. constitute the inspection signal output type, when the synchronization signal is input in the random number generator 402, as a random The number data is output from the random number generator 402 as 0 or 1. At this time, the input signal and output signal of the random number generator 402 are also input into the data holder 408 , and the data holder 408 holds the last random number data output from the random number generator 402 and outputs it to the first comparator 411 . The output signal of the random number generator 402 is also input in the first comparator 411, and the first comparator 411 compares the current random number data output from the random number generator 402 with the last random number data held by the data holder 408 , output a count up signal to the counter 410 when the two are the same, and simultaneously output a count clear signal to the counter 410 when the two are not at the same time. Then the input signal of the random number generator 402 is also input in the counter 410, and the counter 410 outputs the data to the second comparator 413, and the second comparator 413 compares the data of the register 412 and the output data of the counter 410, and the latter compares the former When it is large, a data rewrite signal is output to the control circuit 414 , and a data hold signal is output to the control circuit 414 at other times. The control circuit 414 is controlled to write the output data of the counter 410 into the register 412 while receiving the data rewriting signal, and hold the data of the register 412 when receiving the data hold signal, and the third comparator 416 compares the data held in the register 412 Compare the data with the predetermined one and output the longest inspection signal with the same signal length in sequence.

因此,该1比特随机数发生装置424中,使用者不进行麻烦而且复杂的统计处理可自己检验随机数数据的出现同一性。Therefore, in the 1-bit random number generator 424, the user can check the appearance identity of the random number data by himself without performing troublesome and complicated statistical processing.

图60是表示本发明的1比特随机数发生装置的第六实施例的电路图。Fig. 60 is a circuit diagram showing a sixth embodiment of the 1-bit random number generator of the present invention.

如图60所示,该1比特随机数发生装置401是随机数发生器402、D型触发器等的数据保持器408、异或逻辑和元件等的比较器409、第一计数器417、第二计数器418、解码器419、多个(n个)第三计数器420、多个(n个)寄存器421和控制电路422构成的检验数据输出类型,随机数发生器402中输入同步信号时,作为随机数数据从随机数发生器402输出0或1。此时,对按第一计数器417计数的一定次数的各相同信号长度(1~n)的出现率进行计数,按第一计数器417计数的每一定次数写入寄存器421,依次输出各相同信号长度的分布。As shown in FIG. 60, the 1-bit random number generator 401 is a random number generator 402, a data holder 408 such as a D-type flip-flop, a comparator 409 such as an XOR logic sum element, a first counter 417, a second Counter 418, decoder 419, a plurality of (n) the 3rd counter 420, a plurality of (n) register 421 and the check data output type that control circuit 422 forms, when input synchronous signal in random number generator 402, as random The number data is output from the random number generator 402 as 0 or 1. At this moment, the occurrence rate of each identical signal length (1~n) counted by the first counter 417 is counted, every fixed number of times counted by the first counter 417 is written into the register 421, and each identical signal length is output sequentially. Distribution.

即,随机数发生器402的输入信号和输出信号也输入数据保持器408中,数据保持器408保持从随机数发生器402输出的上次的随机数数据并输出到比较器409。比较器409中也输入随机数发生器402的输出信号,比较器409比较从随机数发生器402输出的此次的随机数数据和数据保持器408保持的上次的随机数数据,在二者相同时向控制电路422输出向上计数信号,同时二者不同时向控制电路422输出计数清除信号。另一方面,随机数发生器402的输入信号也输入第一计数器417和控制电路422中,第一计数器417计数一定次数并输出到控制电路422。另外,随机数发生器402的输入信号也输入第二计数器418中,第二计数器418从比较器409接收向上计数信号时进行向上计数并输出到解码器419,同时,从比较器409接收计数清除信号时进行计数清除并输出到解码器419。进行接收的解码器419解码第二计数器418的输出数据并按每个信号长度输出到第三计数器420的每一个,各个计数器420对该输出数据计数并输出到各个寄存器421中。然后,各个寄存器421在控制电路422的控制下,根据比较器409的输出数据和第一计数器417计数的每一定次数的信号串行或并行依次输出相同信号长度的检验数据。That is, the input signal and output signal of the random number generator 402 are also input to the data holder 408 , and the data holder 408 holds the last random number data output from the random number generator 402 and outputs it to the comparator 409 . The output signal of the random number generator 402 is also input in the comparator 409, and the comparator 409 compares the current random number data output from the random number generator 402 with the last random number data held by the data holder 408, and between the two When they are the same, they output a count-up signal to the control circuit 422 , and at the same time, they output a count-clear signal to the control circuit 422 at the same time. On the other hand, the input signal of the random number generator 402 is also input into the first counter 417 and the control circuit 422 , and the first counter 417 counts a certain number of times and outputs it to the control circuit 422 . In addition, the input signal of the random number generator 402 is also input in the second counter 418, and the second counter 418 counts up when receiving the count-up signal from the comparator 409 and outputs it to the decoder 419. signal, the count is cleared and output to the decoder 419 . The receiving decoder 419 decodes the output data of the second counter 418 and outputs it to each of the third counters 420 for each signal length, and each counter 420 counts the output data and outputs it to each register 421 . Then, under the control of the control circuit 422 , each register 421 sequentially outputs verification data of the same signal length in series or in parallel according to the output data of the comparator 409 and the signal counted by the first counter 417 every certain number of times.

因此,该1比特随机数发生装置424中,通过输出的各计数(检验数据)容易进行检验随机数的同一性的统计处理。Therefore, in the 1-bit random number generator 424, statistical processing for checking the identity of random numbers can be easily performed by each output count (check data).

图61表示本发明的1比特随机数发生装置的第七实施例的电路图。Fig. 61 is a circuit diagram showing a seventh embodiment of the 1-bit random number generator of the present invention.

如图61所示,该1比特随机数发生装置1是随机数发生器402、D型触发器等的数据保持器408、异或逻辑和元件等的比较器409、第一计数器417、第二计数器418、解码器419、多个(n个)第三计数器420、多个(n个)寄存器421和控制电路422以及选择电路423构成的检验数据输出类型,随机数发生器402中输入同步信号时,作为随机数数据从随机数发生器402输出0或1。此时,对按第一计数器417计数的一定次数的各相同信号长度(1~n)的出现率进行计数,按第一计数器417计数的每一定次数写入寄存器421,依次向来自外部的选择数据选择的选择电路423输出各相同信号长度的分布。As shown in FIG. 61, the 1-bit random number generator 1 is a random number generator 402, a data holder 408 such as a D-type flip-flop, a comparator 409 such as an XOR logic sum element, a first counter 417, a second Counter 418, decoder 419, multiple (n) third counters 420, multiple (n) registers 421, control circuit 422 and selection circuit 423 constitute the inspection data output type, input synchronous signal in random number generator 402 , 0 or 1 is output from the random number generator 402 as random number data. At this time, count the occurrence rates of each identical signal length (1-n) counted by the first counter 417 for a certain number of times, write the register 421 for every certain number of times counted by the first counter 417, and sequentially send to the selection from the outside. The selection circuit 423 for data selection outputs distributions of the same signal lengths.

即,随机数发生器402的输入信号和输出信号也输入数据保持器408中,数据保持器408保持从随机数发生器402输出的上次的随机数数据并输出到比较器409。比较器409中也输入随机数发生器402的输出信号,比较器409比较从随机数发生器402输出的此次的随机数数据和数据保持器408保持的上次的随机数数据,在二者相同时向控制电路422输出向上计数信号,同时二者不同时向控制电路422输出计数清除信号。另一方面,随机数发生器402的输入信号也输入第一计数器417和控制电路422中,第一计数器417计数一定次数并输出到控制电路422。另外,随机数发生器402的输入信号也输入第二计数器418中,第二计数器418从比较器409接收向上计数信号时进行向上计数并输出到解码器419,同时,从比较器409接收计数清除信号时进行计数清除并输出到解码器419。进行接收的解码器419解码第二计数器418的输出数据并按每个信号长度输出到第三计数器420的每一个,各个计数器420对该输出数据计数并输出到各个寄存器421中。然后,各个寄存器421在控制电路422的控制下,根据比较器409的输出数据和第一计数器417计数的每一定次数的信号依次向选择电路423串行或并行输出相同信号长度的检验数据。选择电路423中从外部输入选择数据时,选择电路423根据该选择数据适当选择并输出寄存器421的输出数据。That is, the input signal and output signal of the random number generator 402 are also input to the data holder 408 , and the data holder 408 holds the last random number data output from the random number generator 402 and outputs it to the comparator 409 . The output signal of the random number generator 402 is also input in the comparator 409, and the comparator 409 compares the current random number data output from the random number generator 402 with the last random number data held by the data holder 408, and between the two When they are the same, they output a count-up signal to the control circuit 422 , and at the same time, they output a count-clear signal to the control circuit 422 at the same time. On the other hand, the input signal of the random number generator 402 is also input into the first counter 417 and the control circuit 422 , and the first counter 417 counts a certain number of times and outputs it to the control circuit 422 . In addition, the input signal of the random number generator 402 is also input in the second counter 418, and the second counter 418 counts up when receiving the count-up signal from the comparator 409 and outputs it to the decoder 419. signal, the count is cleared and output to the decoder 419 . The receiving decoder 419 decodes the output data of the second counter 418 and outputs it to each of the third counters 420 for each signal length, and each counter 420 counts the output data and outputs it to each register 421 . Then, under the control of the control circuit 422 , each register 421 sequentially outputs check data of the same signal length to the selection circuit 423 in series or in parallel according to the output data of the comparator 409 and the signal counted by the first counter 417 every certain number of times. When selection data is input to the selection circuit 423 from the outside, the selection circuit 423 appropriately selects and outputs the output data of the register 421 based on the selection data.

因此,该1比特随机数发生装置401中,通过输出的相同信号长度的分布数据容易进行检验随机数的同一性的统计处理。Therefore, in the 1-bit random number generator 401, statistical processing for checking the identity of random numbers can be easily performed by outputting distribution data of the same signal length.

图62表示本发明的多比特随机数发生装置的第一实施例的电路图。Fig. 62 shows a circuit diagram of the first embodiment of the multi-bit random number generator of the present invention.

如图62所示,该多比特随机数发生装置425是并排连接多个(n个)上述检验数据输出型的1比特随机数发生装置401并对其附加选择电路426的结构,选择电路426中从外部输入选择数据时,选择电路426根据该选择数据每比特地选择输出从1比特随机数发生装置401输出的检验数据。As shown in FIG. 62, this multi-bit random number generator 425 is a structure in which a plurality (n) of the 1-bit random number generators 401 of the test data output type are connected in parallel and a selection circuit 426 is added to it. In the selection circuit 426 When selection data is input from the outside, the selection circuit 426 selects and outputs the check data output from the 1-bit random number generator 401 bit by bit based on the selection data.

因此该多比特随机数发生装置425中,通过输出的同一性检验数据,容易进行检验随机数的同一性的统计处理。Therefore, in this multi-bit random number generator 425, statistical processing for checking the identity of random numbers can be easily performed by the output identity check data.

图63表示本发明的多比特随机数发生装置的第二实施例的电路图。Fig. 63 shows a circuit diagram of the second embodiment of the multi-bit random number generator of the present invention.

如图63所示,该多比特随机数发生装置425是并排连接多个(n个)上述检验信号输出型的1比特随机数发生装置424并对其附加选择电路427的结构,选择电路427中从外部输入选择数据时,选择电路427根据该选择数据每比特地选择输出从1比特随机数发生装置424输出的检验信号。As shown in FIG. 63, this multi-bit random number generator 425 is a structure in which a plurality (n) of the 1-bit random number generators 424 of the test signal output type are connected side by side and a selection circuit 427 is added to it. In the selection circuit 427 When selection data is input from the outside, the selection circuit 427 selects and outputs the check signal output from the 1-bit random number generator 424 bit by bit based on the selection data.

因此该多比特随机数发生装置425中,使用者不进行麻烦而且复杂的统计处理可自己检验随机数数据的出现同一性。Therefore, in the multi-bit random number generator 425, the user can check the appearance identity of the random number data by himself without performing troublesome and complicated statistical processing.

图64表示本发明的概率发生装置的第一实施例的电路图。Fig. 64 shows a circuit diagram of the first embodiment of the probability generating device of the present invention.

如图64所示,该概率发生装置430由上述检验数据输出型的1比特随机数发生装置401、移位寄存器431、计数器432、寄存器433和比较器434构成,从1比特随机数发生装置401输出的随机数数据输入到移位寄存器431中,移位寄存器431将该随机数数据从串行数据变换为并行数据并输出到寄存器433。另一方面,1比特随机数发生装置401的输入信号也输入到计数器432中,计数器432对一定的并行数据的比特长度计数并输出到寄存器433。这样,寄存器433按计数器432计数的每个周期保持移位寄存器431的并行数据。之后,比较器434比较寄存器433中保持的数据与预定的概率上限数据和概率下限数据,在寄存器433内的数据位于概率上限数据和概率下限数据之间时输出″命中″,在此外的情况下输出″偏离″的概率信号。As shown in FIG. 64, the probability generating device 430 is composed of the above-mentioned 1-bit random number generating device 401 of the test data output type, a shift register 431, a counter 432, a register 433, and a comparator 434. From the 1-bit random number generating device 401 The output random number data is input to the shift register 431 , and the shift register 431 converts the random number data from serial data to parallel data and outputs it to the register 433 . On the other hand, the input signal of the 1-bit random number generator 401 is also input to the counter 432 , and the counter 432 counts the bit length of certain parallel data and outputs it to the register 433 . Thus, the register 433 holds the parallel data of the shift register 431 every cycle counted by the counter 432 . Afterwards, the comparator 434 compares the data held in the register 433 with predetermined probability upper limit data and probability lower limit data, and outputs "hit" when the data in the register 433 is between the probability upper limit data and the probability lower limit data, in other cases A probability signal of "deviation" is output.

因此该概率发生装置430中,使用者不进行麻烦而且复杂的统计处理可检验随机数数据的出现同一性,从而容易评价概率的可靠性。Therefore, in the probability generating device 430, the user can check the appearance identity of the random number data without performing troublesome and complicated statistical processing, thereby easily evaluating the reliability of the probability.

图65表示本发明的概率发生装置的第二实施例的电路图。Fig. 65 shows a circuit diagram of the second embodiment of the probability generating device of the present invention.

如图65所示,该概率发生装置430由上述检验信号输出型的1比特随机数发生装置424、移位寄存器431、计数器432、寄存器433和比较器434构成,从1比特随机数发生装置424输出的随机数数据输入到移位寄存器431中,移位寄存器431将该随机数数据从串行数据变换为并行数据并输出到寄存器433。另一方面,1比特随机数发生装置424的输入信号也输入到计数器432中,计数器432对一定的并行数据的比特长度计数并输出到寄存器433。这样,寄存器433按计数器432计数的每个周期保持移位寄存器431的并行数据。之后,比较器434比较寄存器433中保持的数据与预定的概率上限数据和概率下限数据,在寄存器433内的数据位于概率上限数据和概率下限数据之间时输出″命中″,在此外的情况下输出″偏离″的概率信号。As shown in FIG. 65, the probability generator 430 is composed of the above-mentioned 1-bit random number generator 424 of the check signal output type, a shift register 431, a counter 432, a register 433, and a comparator 434. From the 1-bit random number generator 424 The output random number data is input to the shift register 431 , and the shift register 431 converts the random number data from serial data to parallel data and outputs it to the register 433 . On the other hand, the input signal of the 1-bit random number generator 424 is also input to the counter 432 , and the counter 432 counts the bit length of certain parallel data and outputs it to the register 433 . Thus, the register 433 holds the parallel data of the shift register 431 every cycle counted by the counter 432 . Afterwards, the comparator 434 compares the data held in the register 433 with predetermined probability upper limit data and probability lower limit data, and outputs "hit" when the data in the register 433 is between the probability upper limit data and the probability lower limit data, in other cases A probability signal of "deviation" is output.

因此该概率发生装置430中,使用者不进行麻烦而且复杂的统计处理可检验随机数数据的出现同一性,从而容易评价概率的可靠性。Therefore, in the probability generating device 430, the user can check the appearance identity of the random number data without performing troublesome and complicated statistical processing, thereby easily evaluating the reliability of the probability.

图66表示本发明的概率发生装置的第三实施例的电路图。图67表示本发明的概率发生装置的第四实施例的电路图。Fig. 66 shows a circuit diagram of the third embodiment of the probability generating device of the present invention. Fig. 67 shows a circuit diagram of the fourth embodiment of the probability generating device of the present invention.

如图66和图67所示,这些概率发生装置430由上述多比特随机数发生装置425和比较器435构成,从多比特随机数发生装置425输出的随机数数据(并行数据)输入到比较器435中,比较器435比较这些随机数数据与预定的概率上限数据和概率下限数据,在随机数数据位于概率上限数据和概率下限数据之间时输出″命中″,在此外的情况下输出″偏离″的概率信号。As shown in FIG. 66 and FIG. 67, these probability generators 430 are composed of the above-mentioned multi-bit random number generator 425 and a comparator 435, and the random number data (parallel data) output from the multi-bit random number generator 425 is input to the comparator In 435, the comparator 435 compares these random number data with the predetermined upper limit data of probability and the lower limit data of probability, and outputs "hit" when the random number data is between the upper limit data of probability and the lower limit data of probability, and outputs "deviation" in other cases. "Probability signal.

因此该概率发生装置430中,使用者不进行麻烦而且复杂的统计处理可检验随机数数据的出现同一性,从而容易评价概率的可靠性。Therefore, in the probability generating device 430, the user can check the appearance identity of the random number data without performing troublesome and complicated statistical processing, thereby easily evaluating the reliability of the probability.

如上所述,根据本发明的上述实施例,可自己检验随机数数据的出现同一性,使用者不需要进行统计处理,从而可提供轻松地检验随机数数据的出现同一性并可提高可靠性的1比特随机数发生装置。As described above, according to the above-described embodiments of the present invention, the identity of appearance of random number data can be checked by itself, and the user does not need to perform statistical processing, thereby providing a method for easily checking the identity of appearance of random number data and improving reliability. 1 bit random number generator.

可自己检验随机数数据的出现同一性,使用者不需要进行统计处理,从而可提供轻松地检验随机数数据的出现同一性并可提高可靠性的多比特随机数发生装置。The appearance identity of the random number data can be checked by itself, and the user does not need to perform statistical processing, thereby providing a multi-bit random number generator that can easily check the appearance identity of the random number data and can improve reliability.

另外,根据本发明中技术方案51的发明,可自己检验随机数数据的出现同一性,使用者不需要进行统计处理,从而可提供轻松地检验随机数数据的出现同一性并可提高可靠性的概率发生装置。In addition, according to the invention of technical solution 51 in the present invention, the appearance identity of the random number data can be checked by itself, and the user does not need to perform statistical processing, thereby providing a method for easily checking the appearance identity of the random number data and improving reliability. Probability Generator.

Claims (13)

1. random number generator is characterized in that comprising:
Trigger, correspondence are input to the phase differential of the signal of 2 input parts and determine output state 0 or 1;
Delay portion possesses by above-mentioned input signal being postponed several grades of delay circuits of exporting and corresponding selection and imports the selection circuit of one of selection delay output, and makes 2 input signals produce phase differential; With
Feedback circuit wherein, has:
First counter in the cycle repeatedly of the regulation of the above-mentioned input signal of instrumentation,
Instrumentation each repeatedly second counter of 0 or 1 of above-mentioned trigger output appearance number in the cycle,
By cycle repeatedly keep the instrumentation output of this second counter register,
Generation be used to set above-mentioned trigger output 0 or 1 occurrence rate comparing data the constant setting apparatus,
The comparer of the output data of more above-mentioned register and the size of above-mentioned comparing data,
Produce the up-down counter of the selection signal of above-mentioned selection circuit, also according to the relatively output of this comparer
By above-mentioned input signal control above-mentioned phase differential so that 0 or 1 occurrence rate of trigger output in accordance with regulations repeatedly the cycle certain.
2. random number generator according to claim 1, it is characterized in that as the setting data in the cycle of setting in above-mentioned first counter repeatedly and the comparing data of above-mentioned comparer, use the random number of above-mentioned trigger output or encrypt the random number that this random number constitutes.
3. random number generator according to claim 1, it is characterized in that having auxiliary random number generator with the described random number generator same structure of claim 1, as the setting data in the cycle of setting in above-mentioned first counter repeatedly and the comparing data of above-mentioned comparer, the random number of using above-mentioned auxiliary random number generator to produce.
4. random number generator according to claim 1, it is characterized in that having auxiliary random number generator with the described random number generator same structure of claim 1, as the setting data in the cycle of setting in above-mentioned first counter repeatedly and the comparing data of above-mentioned comparer, use random number that above-mentioned auxiliary random number generator produces and the random number of the random number that above-mentioned random number generator produces being encrypted formation.
5. random number generator according to claim 1 is characterized in that constituting to the additional waveform shaping circuit of the input signal cable of above-mentioned trigger.
6. random number generator according to claim 1 is characterized in that having the initial control circuit that the comparing data of above-mentioned comparer is set at specified time limit 0 when energized.
7. random number generator according to claim 1 is characterized in that as above-mentioned trigger, uses D flip-flop or R-S trigger.
8. random number generator according to claim 1 is characterized in that disposing side by side the described random number generator of a plurality of claims 1.
9. a probability generator is characterized in that having the described random number generator of claim 1.
10. random number generator as claimed in claim 1 is characterized in that,
The additional shake generative circuit that constitutes by noise-producing source, the amplifying circuit that amplifies this noise, the mixting circuit that input signal produced shake by this amplifications noise signal on above-mentioned trigger incoming line.
11. random number generator according to claim 10 is characterized in that additional above-mentioned shake generative circuit on two incoming lines of above-mentioned trigger.
12. random number generator according to claim 10 is characterized in that additional above-mentioned shake generative circuit on some incoming lines of above-mentioned trigger, the integrating circuit that the additional delay time adjustment is used on another incoming line.
13. random number generator according to claim 10 is characterized in that having the latching sections by the output of the above-mentioned shake generative circuit of the breech lock of cycle repeatedly of above-mentioned input signal.
CNB021263345A 2001-07-17 2002-07-17 Random number generator and probability generator Expired - Lifetime CN100416492C (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
JP216704/01 2001-07-17
JP2001216704A JP3487300B2 (en) 2001-07-17 2001-07-17 1-bit random number generator, multi-bit random number generator, and probability generator
JP216704/2001 2001-07-17
JP2001217710A JP3496664B2 (en) 2001-07-18 2001-07-18 Random number generator
JP217710/01 2001-07-18
JP217710/2001 2001-07-18

Publications (2)

Publication Number Publication Date
CN1397871A CN1397871A (en) 2003-02-19
CN100416492C true CN100416492C (en) 2008-09-03

Family

ID=26618867

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021263345A Expired - Lifetime CN100416492C (en) 2001-07-17 2002-07-17 Random number generator and probability generator

Country Status (1)

Country Link
CN (1) CN100416492C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010266417A (en) * 2009-05-18 2010-11-25 Sony Corp Semiconductor integrated circuit, information processing apparatus and method, and program
CN108536423B (en) * 2017-03-03 2022-05-10 群联电子股份有限公司 Random data generating circuit, memory storage device and random data generating method
CN107957543A (en) * 2017-11-08 2018-04-24 天津国芯科技有限公司 A kind of test circuit for testing randomizer
WO2021142830A1 (en) * 2020-01-19 2021-07-22 京东方科技集团股份有限公司 Random number generation circuit, random number generation method, and electronic device
CN115065344B (en) * 2022-08-15 2022-11-04 山东华翼微电子技术股份有限公司 Low-power-consumption phase jitter physical random source circuit and working method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0580987A (en) * 1991-09-24 1993-04-02 Nec Corp Pseudo random number generating system
JPH08227682A (en) * 1995-02-22 1996-09-03 Akira Seto Measurement device for quantum stochastic process
CN1142721A (en) * 1994-11-15 1997-02-12 索尼公司 Signal communication system capable of recognizing reception of reception desired signal
CN1285987A (en) * 1997-11-10 2001-02-28 艾利森电话股份有限公司 Apparatus, and associated method, for generating a pseudo-random number

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0580987A (en) * 1991-09-24 1993-04-02 Nec Corp Pseudo random number generating system
CN1142721A (en) * 1994-11-15 1997-02-12 索尼公司 Signal communication system capable of recognizing reception of reception desired signal
JPH08227682A (en) * 1995-02-22 1996-09-03 Akira Seto Measurement device for quantum stochastic process
CN1285987A (en) * 1997-11-10 2001-02-28 艾利森电话股份有限公司 Apparatus, and associated method, for generating a pseudo-random number

Also Published As

Publication number Publication date
CN1397871A (en) 2003-02-19

Similar Documents

Publication Publication Date Title
US9052975B2 (en) Random number generator with ring oscillation circuit
US7243117B2 (en) Random number generator and probability generator
US8892616B2 (en) Device and method for generating a random bit sequence
JP3993717B2 (en) Semiconductor integrated circuit device
CN107038015B (en) High-speed true random number generator
JP4559985B2 (en) Random number generator
CN101174201B (en) Circuit and method of random value generator
US20140351305A1 (en) System And Method For Dynamic Tuning Feedback Control For Random Number Generator
US7315874B2 (en) Electronic circuit for random number generation
US6259283B1 (en) Clock doubler circuit and method
TW201430699A (en) Delay device, method, and random number generator using the same
US20130346459A1 (en) Method for generating random numbers
JP2005534249A (en) Switchable electronic circuit for random number generation
JP4800773B2 (en) Semiconductor device delay adjustment circuit and delay adjustment method
US8786347B1 (en) Delay circuits for simulating delays based on a single cycle of a clock signal
US20100128837A1 (en) System and a method for generating time bases in low power domain
CN100416492C (en) Random number generator and probability generator
JP2007207054A (en) Data processor
KR100806151B1 (en) Random number generator and probability generator
CN105242903A (en) Random number generation device and method
JP3487299B2 (en) Random number generator and probability generator
CN109558111B (en) True random number generating device based on metastable state characteristic of D trigger
CN109547005B (en) Conversion circuit
CN114846763A (en) Method for detecting disturbances in logic circuits and logic circuits for implementing the method
JP3446742B2 (en) Random number generator and probability generator

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term

Granted publication date: 20080903

CX01 Expiry of patent term