JP4837549B2 - Physical random number generator and physical random number generator - Google Patents

Physical random number generator and physical random number generator Download PDF

Info

Publication number
JP4837549B2
JP4837549B2 JP2006354453A JP2006354453A JP4837549B2 JP 4837549 B2 JP4837549 B2 JP 4837549B2 JP 2006354453 A JP2006354453 A JP 2006354453A JP 2006354453 A JP2006354453 A JP 2006354453A JP 4837549 B2 JP4837549 B2 JP 4837549B2
Authority
JP
Japan
Prior art keywords
circuit
random number
output
physical random
comparison
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 - Fee Related
Application number
JP2006354453A
Other languages
Japanese (ja)
Other versions
JP2008165500A (en
Inventor
博康 山本
隆邦 清水
ビターナゲ アナンダ
義保 田村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FDK Corp
Inter University Research Institute Corp Research Organization of Information and Systems
Original Assignee
FDK Corp
Inter University Research Institute Corp Research Organization of Information and Systems
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FDK Corp, Inter University Research Institute Corp Research Organization of Information and Systems filed Critical FDK Corp
Priority to JP2006354453A priority Critical patent/JP4837549B2/en
Publication of JP2008165500A publication Critical patent/JP2008165500A/en
Application granted granted Critical
Publication of JP4837549B2 publication Critical patent/JP4837549B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、各種の用途に用いて好適な物理乱数発生器に関するものであり、その具体的な用途として、シミュレーション(例えば、確率モデルシミュレーション、マルコフ連鎖モンテカルロ法、粒子フィルタ)、セキュリティ(例えば、共通鍵暗号の鍵、認証鍵、認証用乱数、量子暗号の鍵)、ゲーム機(例えば、アミューズメント、アーケードゲーム、パソコンゲーム、シミュレーションゲーム)、コンピュータグラフィックス等が挙げられる。   The present invention relates to a physical random number generator suitable for various uses, and specific examples of the use include simulation (eg, stochastic model simulation, Markov chain Monte Carlo method, particle filter), security (eg, common) Key encryption key, authentication key, authentication random number, quantum encryption key), game machine (for example, amusement, arcade game, personal computer game, simulation game), computer graphics, and the like.

近年、通信技術の進歩や個人情報、電子取引等の取り扱いにより、大量のデータを暗号化処理したり認証したりするために、セキュリティ通信分野等において高速で高品位な乱数が必要とされており、また、数値シミュレーションにおいても、CPUの高速化や並列処理の進歩、高精度高効率の追求等により、さらなる大量のデータを処理できるようになったため、高速で高品位の大量な乱数が必要とされている。   In recent years, high-speed and high-quality random numbers are required in the security communication field, etc. to encrypt and authenticate large amounts of data due to advances in communication technology, handling of personal information, electronic transactions, etc. Also, in numerical simulations, it has become possible to process a larger amount of data due to CPU speedup, advances in parallel processing, pursuit of high accuracy and high efficiency, etc., requiring a large amount of random numbers at high speed and high quality. Has been.

乱数には、アルゴリズム(計算)により生成される疑似乱数と、自然界の物理現象を利用して生成される物理乱数(真性乱数)とがある。
疑似乱数は計算により生成されるため高速化が容易であるが、初期値を与えたアルゴリズムで算出されることから再現性が有り、初期値やアルゴリズムから乱数列が予測され易いという欠点がある。加えて、疑似乱数は乱数列に周期性を有するため、セキュリティやシミュレーション等の分野での使用には不向きな場合がある。
他方、物理乱数は、半導体内部の熱雑音に代表されるランダムな物理現象を利用して生成されるため、疑似乱数のような初期値やアルゴリズムは不要であり、且つ、乱数列に周期性がないことから、乱数を予測することは不可能であり、よって、予測の困難さを必要とするセキュリティ通信分野や再現性のない真の乱数を必要とする統計シミュレーション分野等においては、物理乱数の需要が急増している。
The random number includes a pseudo random number generated by an algorithm (calculation) and a physical random number (intrinsic random number) generated using a physical phenomenon in the natural world.
Since the pseudo-random number is generated by calculation, it is easy to increase the speed. However, since the pseudo-random number is calculated by the algorithm given the initial value, there is a drawback that the random number sequence is easily predicted from the initial value and the algorithm. In addition, since pseudorandom numbers have periodicity in a random number sequence, they may not be suitable for use in fields such as security and simulation.
On the other hand, since physical random numbers are generated using random physical phenomena represented by thermal noise inside the semiconductor, initial values and algorithms such as pseudo-random numbers are unnecessary, and the random number sequence has periodicity. Therefore, it is impossible to predict random numbers.Therefore, physical random numbers are not used in security communication fields that require difficulty in prediction or statistical simulation fields that require non-reproducible true random numbers. Demand is increasing rapidly.

物理乱数は、乱数源としてダイオードやトランジスタ等で発生する電気的ノイズをフィルター回路、増幅回路、A/D変換器等を通してデータ化(2値化)する方式が主流である(例えば、特許文献1、特許文献2)。
特開平11−085472号公報 特開2002−41281号公報
As for physical random numbers, a method of digitizing (binarizing) electrical noise generated by a diode, a transistor or the like as a random number source through a filter circuit, an amplifier circuit, an A / D converter, or the like (for example, Patent Document 1). Patent Document 2).
Japanese Patent Laid-Open No. 11-085472 JP 2002-41281 A

ところで、物理乱数を高速に生成するためには、乱数源となる電気的ノイズを高速に発生させて増幅し、確実にデータ化できる高速回路が必要であるが、回路の高速化には多大なコストと高度な回路技術が要求されるため(通常、乱数の生成速度は、使用するA/D変換器の性能に大きく影響される)、低コストで手軽に高速の物理乱数を得ることは困難であった。
また、高速化することにより、乱数源が不安定になったり、ノイズの計測精度が低下したりして、生成される物理乱数の品質が低下する場合もある。
By the way, in order to generate a physical random number at a high speed, a high-speed circuit capable of generating and amplifying electrical noise as a random number source at a high speed and converting it into data reliably is necessary. Because cost and advanced circuit technology are required (usually, the random number generation speed is greatly affected by the performance of the A / D converter used), it is difficult to obtain high-speed physical random numbers easily at low cost. Met.
In addition, by increasing the speed, the random number source may become unstable or noise measurement accuracy may decrease, and the quality of the generated physical random number may decrease.

本発明は、このような問題点に鑑み成されたもので、高品位の物理乱数を高速に生成できる安価で信頼性の高い物理乱数生発生器および物理乱数発生装置を提供することを目的としている。 The present invention has been made in view of such problems, aims to provide highly reliable physical random number producing generator and a physical random number generation equipment at low cost to the physical high quality random numbers can be generated at high speed It is said.

すなわち、請求項1に記載の物理乱数発生器は、2組のノイズ源と、これらのノイズ源より発生する各々ノイズの直流分を除去して増幅する第1増幅回路と第2増幅回路と、前記第1増幅回路と前記第2増幅回路の各出力電圧を比較して0または1を出力する比較回路と、当該比較回路の出力を基準クロックに同期して保持し、物理乱数を得るフリップ・フロップと、前記比較回路の一方の入力に接続されて、当該比較回路のオフセット電圧を設定するオフセット電圧回路と、前記オフセット電圧回路を制御する一様化フィードバック回路とで構成されてなり、かつ前記一様化フィードバック回路は、前記フリップ・フロップ出力を保持するレジスターと、当該レジスターの出力に1を加算し、比較値を生成する加算器と、前記基準クロック数を計測する第1カウンターと、当該第1カウンターの計数値と前記加算器からの比較値より当該比較値の2倍の前記繰り返し周期を発生する第1比較器と、前記繰り返し周期毎に前記フリップ・フロップ出力の0または1の出現数を計測する第2カウンターと、前記第2カウンターの計数値と前記比較値とを比較して比較出力(計数値<比較値)または比較出力(計数値>比較値)を発生する第2比較器とを備えることにより、前記フリップ・フロップ出力の0または1の出現率が前記物理乱数で決まる繰り返し周期内で50%になるように前記オフセット電圧回路を制御するとともに、前記オフセット電圧回路は、前記第2比較器出力(計数値<比較値、計数値>比較値)に基づいて動作する2組のスイッチ回路と、当該スイッチ回路に接続された抵抗、コンデンサのCR回路を備え、前記スイッチ回路のオン動作により前記コンデンサの充放電を行う充放電回路と、当該充放電回路の出力を増幅してオフセット電圧を発生する第3増幅回路とで構成されることを特徴としている。 That is, the physical random number generator according to claim 1 includes two sets of noise sources, and a first amplifier circuit and a second amplifier circuit that remove and amplify each DC component of noise generated from these noise sources, A comparison circuit that compares the output voltages of the first amplification circuit and the second amplification circuit and outputs 0 or 1; a flip circuit that holds the output of the comparison circuit in synchronization with a reference clock and obtains a physical random number A flop, an offset voltage circuit connected to one input of the comparison circuit to set an offset voltage of the comparison circuit, and a uniformized feedback circuit for controlling the offset voltage circuit , and A uniform feedback circuit includes a register that holds the flip-flop output, an adder that adds 1 to the output of the register to generate a comparison value, and the reference clock A first counter for measuring the first counter, a first comparator for generating the repetition period twice as large as the comparison value from the count value of the first counter and the comparison value from the adder, and the flip for each repetition period A second counter that measures the number of occurrences of 0 or 1 on the flop output, and the comparison value (count value <comparison value) or comparison output (count value) by comparing the count value of the second counter with the comparison value The offset voltage circuit is controlled such that the occurrence rate of 0 or 1 of the flip-flop output is 50% within the repetition period determined by the physical random number. In addition, the offset voltage circuit includes two sets of switch circuits that operate based on the output of the second comparator (count value <comparison value, count value> comparison value), and the switch circuit. A charging / discharging circuit comprising a CR circuit of connected resistors and capacitors, and charging / discharging the capacitor by turning on the switch circuit; and a third amplifying circuit for amplifying an output of the charging / discharging circuit to generate an offset voltage is characterized in Rukoto is composed of a.

また、請求項2に記載の物理乱数発生器は、2組のノイズ源と、これらノイズ源より発生する各々ノイズの直流分を除去してノイズの差分を増幅する差動増幅回路と、前記差動増幅回路の出力電圧と基準電圧を比較して0または1を出力する比較回路と、前記比較回路の出力を基準クロックに同期して保持し、物理乱数を得るフリップ・フロップと、当該比較回路の基準電圧側の入力に接続され、前記比較回路のオフセット電圧を設定するオフセット電圧回路と、前記オフセット電圧回路を制御する一様化フィードバック回路とで構成されてなり、かつ前記一様化フィードバック回路は、前記フリップ・フロップ出力を保持するレジスターと、当該レジスターの出力に1を加算し、比較値を生成する加算器と、前記基準クロック数を計測する第1カウンターと、当該第1カウンターの計数値と前記加算器からの比較値より当該比較値の2倍の前記繰り返し周期を発生する第1比較器と、前記繰り返し周期毎に前記フリップ・フロップ出力の0または1の出現数を計測する第2カウンターと、前記第2カウンターの計数値と前記比較値とを比較して比較出力(計数値<比較値)または比較出力(計数値>比較値)を発生する第2比較器とを備えることにより、前記フリップ・フロップ出力の0または1の出現率が前記物理乱数で決まる繰り返し周期内で50%になるように前記オフセット電圧回路を制御するとともに、前記オフセット電圧回路は、前記第2比較器出力(計数値<比較値、計数値>比較値)に基づいて動作する2組のスイッチ回路と、当該スイッチ回路に接続された抵抗、コンデンサのCR回路を備え、前記スイッチ回路のオン動作により前記コンデンサの充放電を行う充放電回路と、当該充放電回路の出力を増幅してオフセット電圧を発生する第3増幅回路とで構成されることを特徴としている。 The physical random number generator according to claim 2 includes two sets of noise sources, a differential amplifier circuit that amplifies a noise difference by removing a direct current component of each noise generated from the noise sources, and the difference A comparison circuit that compares the output voltage of the dynamic amplifier circuit with a reference voltage and outputs 0 or 1, a flip-flop that holds the output of the comparison circuit in synchronization with a reference clock and obtains a physical random number, and the comparison circuit The offset voltage circuit that is connected to the reference voltage side input and sets the offset voltage of the comparison circuit, and the uniform feedback circuit that controls the offset voltage circuit , and the uniform feedback circuit Measures the register that holds the flip-flop output, an adder that adds 1 to the output of the register to generate a comparison value, and the reference clock number 1 counter, a first comparator for generating the repetition period twice as large as the comparison value from the count value of the first counter and the comparison value from the adder, and the flip-flop output for each repetition period A second counter that measures the number of occurrences of 0 or 1 and a comparison value (count value <comparison value) or comparison output (count value> comparison value) by comparing the count value of the second counter with the comparison value And a second comparator for controlling the offset voltage circuit so that the occurrence rate of 0 or 1 of the flip-flop output is 50% within a repetition period determined by the physical random number, and The offset voltage circuit includes two sets of switch circuits that operate based on the output of the second comparator (count value <comparison value, count value> comparison value) and a resistor connected to the switch circuit. , Is constituted by including a CR circuit of the capacitor, the charging and discharging circuit that performs charging and discharging of the capacitor by the on operation of the switching circuit, and the third amplifier circuit for generating an offset voltage by amplifying the output of the charging and discharging circuit It is characterized by that.

また、請求項に記載の発明は、請求項1または2に記載の物理乱数発生器において、前記比較回路の、前記オフセット電圧回路が接続される入力とは別の入力に、前記第3増幅回路と同じ構成の増幅回路を設けたことを特徴としている。 According to a third aspect of the present invention, in the physical random number generator according to the first or second aspect , the third amplification is connected to an input of the comparison circuit different from an input to which the offset voltage circuit is connected. An amplifier circuit having the same configuration as the circuit is provided.

また、請求項に記載の発明は、請求項1または2に記載の物理乱数発生器において、前記オフセット電圧回路は、前記第2比較器の出力(n<m、n>m)にて動作する可逆カウンターと、当該可逆カウンターの出力値をアナログ値に変換して前記オフセット電圧を発生するD/Aコンバータとで構成されることを特徴としている。 According to a fourth aspect of the present invention, in the physical random number generator according to the first or second aspect , the offset voltage circuit operates at an output (n <m, n> m) of the second comparator. And a D / A converter that converts the output value of the reversible counter into an analog value to generate the offset voltage.

また、請求項に記載の発明は、請求項2〜4の何れかに記載の物理乱数発生器において、前記繰り返し周期中において、前記第2比較器の出力(計数値<比較値)または、出力(計数値>比較値)の何れか一方が連続して所定回数出現したことを検出した時、異常信号を発生する異常検知手段を備えることを特徴としている。 The invention according to claim 5 is the physical random number generator according to any one of claims 2 to 4 , wherein the output of the second comparator (count value <comparison value) during the repetition period, or When detecting that any one of the outputs (count value> comparison value) has continuously appeared a predetermined number of times, an abnormality detection means for generating an abnormality signal is provided.

また、請求項に記載の発明は、請求項1〜5の何れかに記載の物理乱数発生器において、前記ノイズ源は、抵抗とツェナーダイオードの直列回路、または、定電流源に接続されたツェナーダイオード、または、PチャンネルMOSトランジスタとNチャンネルMOSトランジスタを直列に接続し、入出力間を短絡したトランジスタ回路で構成されることを特徴としている。 The invention according to claim 6 is the physical random number generator according to any one of claims 1 to 5 , wherein the noise source is connected to a series circuit of a resistor and a Zener diode or a constant current source. A Zener diode or a transistor circuit in which a P-channel MOS transistor and an N-channel MOS transistor are connected in series and the input and output are short-circuited is characterized.

また、請求項に記載の発明は、請求項1〜6の何れかに記載の物理乱数発生器において、シフトレジスターと、当該シフトレジスターの保持データの一部を入力データとすると共に、その他の一部をアドレスデータとする選択回路と、当該選択回路の出力と前記フリップ・フロップより出力された物理乱数との排他的論理和を行う排他的論理和回路とを備え、当該排他的論理和回路の出力を前記シフトレジスターの入力データとする一様化回路を備えることを特徴としている。 The invention according to claim 7 is the physical random number generator according to any one of claims 1 to 6 , wherein the shift register and a part of data held in the shift register are used as input data, A selection circuit having a part of the address data; and an exclusive OR circuit that performs an exclusive OR of an output of the selection circuit and a physical random number output from the flip-flop, and the exclusive OR circuit Is provided with a uniformizing circuit using the output of the shift register as input data of the shift register.

また、請求項に記載の物理乱数発生装置は、並列動作可能に配設された請求項1〜7の何れかに記載の複数の物理乱数発生器と、これら複数の物理乱数発生器の内の1つの物理乱数発生器の乱数出力と残りの物理乱数発生器の乱数出力のそれぞれと個々に排他的論理和を行う複数の排他的論理和回路とを備えることを特徴としている。 Further, a physical random number generator according to claim 8 is provided with a plurality of physical random number generators according to any one of claims 1 to 7 disposed so as to be capable of parallel operation, and among the plurality of physical random number generators. Each of the random number outputs of one physical random number generator and the random number outputs of the remaining physical random number generators is individually provided with a plurality of exclusive OR circuits for performing exclusive OR.

請求項1〜に記載の発明によれば、ノイズ源からのノイズを高価なA/D変換器を用いずに、増幅回路と比較回路によりデータ化(2値化)する構成としたので、外来ノイズ、電源変動、環境変化等に影響されることなく高品位の物理乱数を高速で生成できる物理乱数発生器を実現することができる。
また、一様化フィードバック回路を設け、乱数出力に基づき上記比較回路のオフセット電圧を調整して、乱数の0または1の出現率が50%になるように補正するようにしたので、一様性を有し、且つ、規則性や相関性や周期性を有しない高品位な物理乱数を高速で生成することができる。
さらに、請求項に記載のように、一様化回路を設けることにより、より一様性に優れる物理乱数を高速で生成することができる。
According to the first to seventh aspects of the present invention, since the noise from the noise source is converted into data (binarized) by the amplifier circuit and the comparison circuit without using an expensive A / D converter, It is possible to realize a physical random number generator capable of generating high-quality physical random numbers at high speed without being affected by external noise, power supply fluctuations, environmental changes, and the like.
Further, the uniform feedback circuit is provided, and the offset voltage of the comparison circuit is adjusted based on the random number output so that the appearance rate of the random number 0 or 1 is corrected to 50%. And high-quality physical random numbers that do not have regularity, correlation, or periodicity can be generated at high speed.
Furthermore, as described in claim 7 , by providing a uniformizing circuit, a physical random number with better uniformity can be generated at high speed.

また、請求項に記載の発明によれば、上記物理乱数発生器を多段に接続して並列動作させると共に、これら物理乱数発生器の各乱数出力を別の物理乱数発生器の乱数出力と排他的論理和を行うことにより、高品位の高速物理乱数を大量に生成できる物理乱数発生装置を実現することができる。 According to the invention described in claim 8 , the physical random number generators are connected in multiple stages and operated in parallel, and each random number output of these physical random number generators is excluded from the random number output of another physical random number generator. By performing a logical OR, it is possible to realize a physical random number generator capable of generating a large amount of high-quality high-speed physical random numbers.

以下、図面に基づいて本発明に係る物理乱数発生器の実施形態を説明する。   Embodiments of a physical random number generator according to the present invention will be described below with reference to the drawings.

図1は、本発明による物理乱数発生器の第1実施形態を示し、図2は各部の波形を示している。
図1、図2に示すように、本実施形態の物理乱数発生器10は、2組のノイズ源1a、1bと、これらのノイズ源1a、1bから発生するノイズA、ノイズBの直流分を除去して高周波成分を増幅する第1増幅回路2と第2増幅回路3と、これら第1増幅回路2と第2増幅回路3の出力電圧を相互に比較して0または1を出力する比較回路4と、この比較回路4の比較出力、0または1を基準クロックの立ち上がりに同期して逐次保持し、物理乱数を生成するDタイプのフリップ・フロップ5と、上記比較回路4の+入力にオフセット電圧vfbを供給するオフセット電圧回路7と、このオフセット電圧回路7のオフセット電圧vfbを調整する一様化フィードバック回路6とで構成されている。
FIG. 1 shows a first embodiment of a physical random number generator according to the present invention, and FIG. 2 shows waveforms of respective parts.
As shown in FIGS. 1 and 2, the physical random number generator 10 according to the present embodiment calculates two sets of noise sources 1a and 1b and the DC components of noise A and noise B generated from these noise sources 1a and 1b. A first amplifying circuit 2 and a second amplifying circuit 3 that remove and amplify high frequency components, and a comparison circuit that compares the output voltages of the first amplifying circuit 2 and the second amplifying circuit 3 with each other and outputs 0 or 1 4 and the comparison output of this comparison circuit 4, 0 or 1 is sequentially held in synchronization with the rising edge of the reference clock, and a D-type flip-flop 5 that generates a physical random number is offset to the + input of the comparison circuit 4 The offset voltage circuit 7 supplies the voltage vfb, and a uniform feedback circuit 6 that adjusts the offset voltage vfb of the offset voltage circuit 7.

ここで、上記したノイズ源1a、1bとしては、図9(a)に示すような、抵抗R1とツェナーダイオードD1の直列回路によるノイズ源、図9(b)のような、定電流源25に接続されたツェナーダイオードD1によるノイズ源、図9(c)のような、PチャンネルMOSトランジスタQ1とNチャンネルMOSトランジスタQ2を直列に接続(カスケード接続)し、その入出力間を短絡したトランジスタ回路で構成されるノイズ源等、様々なノイズ源を用いることができる。   Here, the noise sources 1a and 1b described above include a noise source by a series circuit of a resistor R1 and a Zener diode D1 as shown in FIG. 9A, and a constant current source 25 as shown in FIG. 9B. A noise source by the connected Zener diode D1, a transistor circuit in which a P-channel MOS transistor Q1 and an N-channel MOS transistor Q2 are connected in series (cascade connection) as shown in FIG. Various noise sources, such as a configured noise source, can be used.

一様化フィードバック回路6は、図3に示すように、レジスター11(例えば、シフトレジスター)、加算器12、第1比較器13、第1カウンター14、第2カウンター15、第2比較器16、制御回路17等で構成されている。   As shown in FIG. 3, the uniform feedback circuit 6 includes a register 11 (for example, a shift register), an adder 12, a first comparator 13, a first counter 14, a second counter 15, a second comparator 16, It consists of a control circuit 17 and the like.

図3、および図4のタイミング図に示すように、レジスター11は、上記フリップ・フロップ5からの乱数出力の一部を基準クロックに同期して順次保持し、その保持データの値(c)を、当一様化フィードバック回路6の繰り返し周期を設定するための周期設定値(c)とする。
加算器12は、この周期設定値(c)に1を加算して比較値(m=c+1)を生成し、この比較値(m)が第1比較器13の一方の比較入力に比較データ(2m−1)となるように入力される。この第1比較器13は、フィードバック制御の繰り返し周期を発生するための比較器であり、周期設定値(c)に1を加算するのは、レジスター11に保持される出力乱数(0〜m−1)の範囲を(1〜m)の範囲に変換するためである。
As shown in the timing diagrams of FIGS. 3 and 4, the register 11 sequentially holds a part of the random number output from the flip-flop 5 in synchronization with the reference clock, and stores the value (c) of the held data. The cycle setting value (c) for setting the repetition cycle of the uniformized feedback circuit 6 is used.
The adder 12 adds 1 to the period setting value (c) to generate a comparison value (m = c + 1), and the comparison value (m) is input to one comparison input of the first comparator 13 as comparison data ( 2m-1). The first comparator 13 is a comparator for generating a repetition period of feedback control, and 1 is added to the period set value (c) because the output random number (0 to m− This is because the range of 1) is converted to the range of (1 to m).

第1カウンター14は、基準クロックの数を計測し、その計数値を第1比較器13の他方の比較入力に入力して上記した比較データ(2m−1)と比較することにより、その比較出力として基準クロックの(2m)倍の繰り返し周期を有する一致信号(t=2m)を発生する。
また、この繰り返し周期(t)によって、上記したレジスター11および第1カウンターはリセットされ、リセット解除後、レジスター11による乱数保持動作と第1カウンター14による基準クロックの計側動作が新たに開始される。
本構成では、レジスター11に保持される乱数値に応じて、繰り返し周期(t)はランダムに変化する。
The first counter 14 measures the number of reference clocks, inputs the count value to the other comparison input of the first comparator 13 and compares it with the above-mentioned comparison data (2m-1), thereby comparing its comparison output. As a result, a coincidence signal (t = 2m) having a repetition period (2 m) times the reference clock is generated.
In addition, the register 11 and the first counter are reset by the repetition period (t), and after the reset is released, the random number holding operation by the register 11 and the reference clock measuring operation by the first counter 14 are newly started. .
In this configuration, the repetition period (t) changes randomly according to the random value held in the register 11.

第2カウンター15は、上記した繰り返し周期(t)毎に上記フリップ・フロップ5の乱数出力の1(または0)の出現数を計測し、その計数値(n)が第2比較器16の一方の比較入力に入力される。また、この第2比較器16の他方の比較入力には加算器12で生成された比較値(m)が入力されており、第2比較器16において計測値(n)と比較値(m)が比較され、その比較結果に応じた比較出力(n<m、n>m)が出力される。
比較出力(n<m、n>m)は制御回路17において電流増幅され、後述するオフセット電圧回路7のスイッチ回路Q1、Q2を駆動するための駆動信号Driv_pとDriv_nが出力される。
The second counter 15 measures the number of occurrences of 1 (or 0) of the random number output of the flip-flop 5 for each repetition period (t), and the count value (n) is one of the second comparators 16. Is input to the comparison input. Further, the comparison value (m) generated by the adder 12 is input to the other comparison input of the second comparator 16, and the measurement value (n) and the comparison value (m) are input to the second comparator 16. Are compared, and a comparison output (n <m, n> m) corresponding to the comparison result is output.
The comparison outputs (n <m, n> m) are current-amplified in the control circuit 17, and drive signals Drive_p and Drive_n for driving switch circuits Q1 and Q2 of the offset voltage circuit 7 described later are output.

オフセット電圧回路7は、図1に示すように、制御回路17から出力された駆動信号Driv_pとDriv_nにより動作する2組のスイッチ回路(PチャンネルMOSトランジスターQ1、NチャンネルMOSトランジスターQ2)と抵抗器R1、R2、およびコンデンサーC1のCR回路で成る充放電回路9と、この充放電回路9の出力を増幅してオフセット電圧vfbを発生するバッファ用の第3増幅回路8とで構成されている。   As shown in FIG. 1, the offset voltage circuit 7 includes two switch circuits (P-channel MOS transistor Q1 and N-channel MOS transistor Q2) operated by the drive signals Drive_p and Drive_n output from the control circuit 17, and a resistor R1. , R2 and a capacitor C1 CR circuit, and a buffer third amplifier circuit 8 for amplifying the output of the charge / discharge circuit 9 to generate an offset voltage vfb.

そして、図4に示すように、制御回路17より駆動信号Driv_pが出力されMOSトランジスターQ1がオンすると(この時、MOSトランジスターQ2はオフ)、電源VccよりMOSトランジスターQ1と抵抗R1を介してコンデンサーC1が充電され、その充電電圧によりオフセット電圧vfbが上昇する。また、制御回路17より駆動信号Driv_nが出力されMOSトランジスターQ2がオンすると(この時、MOSトランジスターQ1はオフ)、抵抗R2とMOSトランジスターQ2を介して、コンデンサーC1の電荷が電源Vee側へ放電され、オフセット電圧vfbは降下する。
オフセット電圧vfbを高くすると、比較回路4の比較出力の1の出現数が多くなり、0の出現数が少なくなる。逆に、オフセット電圧vfbを低くすると、1の出現数が少なくなり、0の出現数は多くなる。
Then, as shown in FIG. 4, when the drive signal Drive_p is output from the control circuit 17 and the MOS transistor Q1 is turned on (at this time, the MOS transistor Q2 is turned off), the capacitor C1 is supplied from the power source Vcc through the MOS transistor Q1 and the resistor R1. Is charged, and the offset voltage vfb increases due to the charging voltage. When the drive signal Drive_n is output from the control circuit 17 and the MOS transistor Q2 is turned on (at this time, the MOS transistor Q1 is turned off), the charge of the capacitor C1 is discharged to the power source Vee side via the resistor R2 and the MOS transistor Q2. The offset voltage vfb drops.
When the offset voltage vfb is increased, the number of occurrences of 1 in the comparison output of the comparison circuit 4 increases and the number of occurrences of 0 decreases. Conversely, when the offset voltage vfb is lowered, the number of occurrences of 1 decreases and the number of occurrences of 0 increases.

このように、一様化フィードバック回路6の制御により繰り返し周期(t)内に発生する乱数出力の1(または0)の数に応じて比較回路4の+入力側のオフセット電圧を調整し、比較回路4の比較出力、すなわち、0と1の出現状態を変化させることにより、フリップ・フロップ5からの乱数出力の1または0の出現率を確率的に50%に収束するように自動調整することができる。これにより、一様化された物理乱数の生成が可能となる。   As described above, the offset voltage on the + input side of the comparison circuit 4 is adjusted according to the number of 1 (or 0) of the random number output generated within the repetition period (t) by the control of the uniformizing feedback circuit 6, and the comparison is performed. By automatically changing the comparison output of the circuit 4, that is, the appearance state of 0 and 1, the appearance rate of 1 or 0 of the random number output from the flip-flop 5 is automatically adjusted so as to converge to 50% probabilistically. Can do. This makes it possible to generate a uniform physical random number.

また、本第1実施形態の物理乱数発生器10では、図1に替えて、図5に示すように、比較回路4の−入力側に上記したオフセット電圧回路7を構成する第3増幅回路8と同様の回路構成を設けることにより、比較回路4の入力形態を対称型とすることができ、これにより、上記第3増幅回路8を介して比較回路4の各入力に重畳される外来ノイズや電源ノイズ、或いは電源変動による波形歪み等を比較回路4において確実に相殺することができ、耐ノイズ性に優れる回路構成を実現することができる。尚、その他の回路構成は図1と全く同様である。   Further, in the physical random number generator 10 of the first embodiment, as shown in FIG. 5 instead of FIG. 1, the third amplifying circuit 8 constituting the offset voltage circuit 7 on the negative input side of the comparison circuit 4 is provided. By providing the same circuit configuration as that in FIG. 1, the input form of the comparison circuit 4 can be made symmetrical, so that the external noise superimposed on each input of the comparison circuit 4 via the third amplifier circuit 8 can be reduced. Power supply noise or waveform distortion due to power supply fluctuations can be reliably canceled out in the comparison circuit 4, and a circuit configuration with excellent noise resistance can be realized. Other circuit configurations are the same as those in FIG.

また、オフセット電圧回路7は、図1、図5に示すような、充放電回路9と第3増幅回路8の組み合わせ回路に替え、図6に示すように、可逆カウンター18(アップ・ダウンカウンター)とD/Aコンバータ19との組み合わせ回路で構成することもできる。   Further, the offset voltage circuit 7 is replaced with a combination circuit of the charge / discharge circuit 9 and the third amplifier circuit 8 as shown in FIGS. 1 and 5, and a reversible counter 18 (up / down counter) as shown in FIG. And a D / A converter 19 may be used.

上記構成のオフセット電圧回路7において、可逆カウンター18は、第2比較器16より比較出力(n<m、n>m)が出力された時に基準クロックに同期して動作する。すなわち、比較出力(n<m)が出力されると可逆カウンター18はカウントアップし、比較出力(n<m)にてカウントダウンするように動作する。
この可逆カウンター18のデジタル出力値はD/Aコンバータ19によりアナログ値に変換され、オフセット電圧vfbとして比較回路4の+入力に供給される。すなわち、可逆カウンター18のカウントアップによりオフセット電圧vfbが上昇し、可逆カウンター18のカウントダウンによりオフセット電圧vfbが降下するように動作する。可逆カウンター18は、繰り返し周期(t)毎にリセットされる。リセット解除後、可逆カウンター18は比較出力(n<m、n>m)に基づいてカウント動作を開始する。
In the offset voltage circuit 7 configured as described above, the reversible counter 18 operates in synchronization with the reference clock when a comparison output (n <m, n> m) is output from the second comparator 16. That is, when the comparison output (n <m) is output, the reversible counter 18 counts up and operates to count down at the comparison output (n <m).
The digital output value of the reversible counter 18 is converted to an analog value by the D / A converter 19 and supplied to the + input of the comparison circuit 4 as the offset voltage vfb. In other words, the offset voltage vfb increases as the reversible counter 18 counts up, and the offset voltage vfb decreases as the reversible counter 18 counts down. The reversible counter 18 is reset every repetition period (t). After the reset is released, the reversible counter 18 starts a counting operation based on the comparison output (n <m, n> m).

このように、本回路構成においても、一様化フィードバック回路6により繰り返し周期(t)内に発生する乱数出力の1(または0)の数に応じて比較回路4の+入力側のオフセット電圧を調整し、比較回路4の比較出力、すなわち、0と1の出現状態を変化させることにより、フリップ・フロップ5からの乱数出力、1または0の出現率を確率的に50%に自動調整することができる。   Thus, also in this circuit configuration, the offset voltage on the + input side of the comparison circuit 4 is set in accordance with the number of random output 1 (or 0) generated within the repetition period (t) by the uniformizing feedback circuit 6. By adjusting and changing the comparison output of the comparison circuit 4, that is, the appearance state of 0 and 1, the random number output from the flip-flop 5 and the appearance rate of 1 or 0 are automatically adjusted to 50% probabilistically. Can do.

また、本実施形態の物理乱数発生器10は、上記した一様化フィードバック回路6によるフィードバック制御の動作を監視する異常検知回路(異常検知手段)を備えている。   Further, the physical random number generator 10 of the present embodiment includes an abnormality detection circuit (abnormality detection means) that monitors the operation of feedback control by the uniformized feedback circuit 6 described above.

図7は、その一例を示し、第2比較器16の比較出力(n<m)または(n>m)が連続的に出力されることを検出する連続性検出器21と、比較出力(n<m)および(n>m)の連続回数を計測する第3カウンター22と、この第3カウンター22の計数値を予め定めた所定数(比較データ)と比較する第3比較器23とで構成され、何らかの理由で第3カウンター22の計数値が所定数を越えた場合に、第3比較器23より異常動作確認信号が出力される。   FIG. 7 shows an example, and a continuity detector 21 that detects that the comparison output (n <m) or (n> m) of the second comparator 16 is continuously output, and the comparison output (n A third counter 22 that measures the number of consecutive times <m) and (n> m) and a third comparator 23 that compares the count value of the third counter 22 with a predetermined number (comparison data) set in advance. When the count value of the third counter 22 exceeds a predetermined number for some reason, an abnormal operation confirmation signal is output from the third comparator 23.

図8は、異常検知回路の別の例を示し、オフセット電圧回路7の可逆カウンター18(アップ・ダウンカウンター)出力にオーバーフローを検出するオーバーフロー検出回路24を設けたものである。
可逆カウンター18に第2比較器16の比較出力(n<m)或いは比較出力(n>m)が連続的に入力され、カウントオーバーした場合に(例えば、可逆カウンター18が8ビット構成であれば、オーバーフローすることにより、カウンタ出力はFFH、或いは00Hとなる)、オーバーフロー検出回路24においてカウント出力FFH、或いは00Hが検知された場合に、異常動作確認信号が出力される。
FIG. 8 shows another example of the abnormality detection circuit, in which an overflow detection circuit 24 for detecting an overflow is provided at the output of the reversible counter 18 (up / down counter) of the offset voltage circuit 7.
When the comparison output (n <m) or comparison output (n> m) of the second comparator 16 is continuously input to the reversible counter 18 and the count is over (for example, if the reversible counter 18 has an 8-bit configuration) When the overflow is detected, the counter output becomes FFH or 00H.) When the overflow detection circuit 24 detects the count output FFH or 00H, an abnormal operation confirmation signal is output.

異常検知回路からの異常動作確認信号を監視し、物理乱数発生器10における回路動作の異常を素早く察知することにより、物理乱数発生器10にて生成される物理乱数の品質劣化を未然に防止することが可能となる。   By monitoring the abnormal operation confirmation signal from the abnormality detection circuit and quickly detecting an abnormality in the circuit operation in the physical random number generator 10, the quality deterioration of the physical random number generated by the physical random number generator 10 can be prevented in advance. It becomes possible.

図10は、本発明による物理乱数発生器の第2実施形態を示している。
第2実施形態による物理乱数発生器10は、第1増幅回路2と第2増幅回路3の代わりに1個の差動増幅回路26を用いたことを除き、図1に示す第1実施形態の物理乱数発生器10と同様である。
FIG. 10 shows a second embodiment of the physical random number generator according to the present invention.
The physical random number generator 10 according to the second embodiment is the same as that of the first embodiment shown in FIG. 1 except that one differential amplifier 26 is used instead of the first amplifier 2 and the second amplifier 3. The same as the physical random number generator 10.

第2実施形態の物理乱数発生器10では、差動増幅回路26により各々直流分を除去したノイズの差分が増幅され、その出力電圧が比較回路4において基準電圧と比較され、比較出力0または1が出力される。比較回路4の基準電圧は、オフセット電圧回路7の出力(オフセット電圧vfb)であり、第1実施形態と同様に、一様化フィードバック回路6を介してオフセット電圧vfbを調整することにより、乱数出力の1または0の出現率を確率的に50%に収束するように自動調整することができる。
尚、この場合も、図示しないが、図5と同様に、比較回路4の−入力側に第3増幅回路8と同様の回路を設けて、比較回路4の入力形態を対称型とすることにより、耐ノイズ性を向上することができる。
In the physical random number generator 10 of the second embodiment, the difference between noises obtained by removing each DC component is amplified by the differential amplifier circuit 26, and the output voltage thereof is compared with the reference voltage in the comparison circuit 4, and the comparison output 0 or 1 is output. Is output. The reference voltage of the comparison circuit 4 is the output of the offset voltage circuit 7 (offset voltage vfb), and by outputting the random number by adjusting the offset voltage vfb via the uniformizing feedback circuit 6 as in the first embodiment. The appearance rate of 1 or 0 can be automatically adjusted to converge to 50% stochastically.
In this case as well, although not shown, by providing a circuit similar to the third amplifier circuit 8 on the negative input side of the comparison circuit 4 and making the input form of the comparison circuit 4 symmetrical, as in FIG. , Noise resistance can be improved.

図11は、物理乱数の一様化回路30の構成を示し、排他的論理和回路33、シフトレジスター31、セレクター32(選択回路)とで構成されている。シフトレジスター31の保持データの一部はセレクター32の入力データとなり、その他の一部はアドレスデータとされている。
物理乱数発生器10(フリップ・フロップ5)にて生成された物理乱数は、排他的論理和回路33においてセレクター32の乱数出力との排他的論理和が行われると共に、シフトレジスター31のデータ入力に入力される。
FIG. 11 shows a configuration of a physical random number equalizing circuit 30, which includes an exclusive OR circuit 33, a shift register 31, and a selector 32 (selection circuit). Part of the data held in the shift register 31 is input data to the selector 32, and the other part is address data.
The physical random number generated by the physical random number generator 10 (flip-flop 5) is subjected to exclusive OR with the random number output of the selector 32 in the exclusive OR circuit 33 and also to the data input of the shift register 31. Entered.

このように、シフトレジスター31のデータ入力に入力される物理乱数は、その一部がアドレスデータとなって、自分自身の保持データをランダムに選択して出力するので、物理乱数発生器10からの乱数が偏りを持っていても、この一様化回路30にて一様化されることになるため、一様性に優れる物理乱数(一様化物理乱数)を得ることができる。   In this way, a part of the physical random number input to the data input of the shift register 31 becomes the address data, and the own stored data is selected and output at random. Even if the random numbers are biased, they are uniformed by the uniformizing circuit 30. Therefore, physical random numbers (uniform physical random numbers) with excellent uniformity can be obtained.

図12は、物理乱数発生器10を複数(P台)配設して並列動作させる多ビット出力の物理乱数発生装置40である。この物理乱数発生装置40は、上記したP台の物理乱数発生器10の他にさらなる一台の品位向上用の物理乱数発生器10を具備すると共に、各物理乱数出力に対応して設けたP個の排他的論理和回路41により、この(P+1台)目の品位向上用の物理乱数発生器10の乱数出力とP台の各物理乱数発生器10の乱数出力の排他的論理和が行なわれることにより、物理乱数の更なる品位向上が図られ、高品位の多ビット(Pビット)物理乱数(高品位物理乱数)を得ることができる。   FIG. 12 shows a multi-bit output physical random number generator 40 in which a plurality (P units) of physical random number generators 10 are arranged and operated in parallel. The physical random number generator 40 includes a physical random number generator 10 for improving quality in addition to the P physical random number generators 10 described above, and a P provided for each physical random number output. The exclusive OR circuit 41 performs exclusive OR of the random number output of the (P + 1) th physical random number generator 10 for improving the quality and the random number output of each of the P physical random number generators 10. As a result, the quality of the physical random number is further improved, and a high-quality multi-bit (P-bit) physical random number (high-quality physical random number) can be obtained.

尚、この物理乱数発生装置40は、図11に示した乱数一様化回路30を具備した物理乱数発生器10を用いることにより、優れた一様性を有するより高品位な多ビット物理乱数が得られるようになる。   The physical random number generator 40 uses the physical random number generator 10 provided with the random number uniformizing circuit 30 shown in FIG. 11 to provide a higher quality multi-bit physical random number having excellent uniformity. Can be obtained.

次に、図12の物理乱数発生装置40にて生成される物理乱数の一様性を検証する検証方法について説明する。   Next, a verification method for verifying the uniformity of physical random numbers generated by the physical random number generator 40 of FIG. 12 will be described.

第1の検証方法は、図12において複数(P+1)台の物理乱数発生器10から出力される各々乱数(一様化物理乱数(1〜P+1))を、図13に示すように、複数バイト(qバイト)乱数列として同時に取得し(例えば、装置搭載のメモリに保存しておく)、これら複数の乱数列(1〜P+1列)の内の任意の2列間について各バイト間の相関係数(r)を式1より算出し、得られた相関係数より各乱数列間の相関関係を検証する方法である。
表1は、相関関数(r)に対する相関関係の一例を示し、算出された相関関数(r)の0〜1の範囲値で表1に基づいて相関性の善し悪しを判断する。
In the first verification method, each random number (uniform physical random number (1 to P + 1)) output from a plurality of (P + 1) physical random number generators 10 in FIG. 12 is converted into a plurality of bytes as shown in FIG. (Q bytes) Acquired simultaneously as a random number sequence (for example, stored in a memory mounted on the device), and the correlation between each byte between any two of the plurality of random number sequences (1 to P + 1 columns) In this method, the number (r) is calculated from Equation 1, and the correlation between the random number sequences is verified from the obtained correlation coefficient.
Table 1 shows an example of the correlation with respect to the correlation function (r). Based on the range value of 0 to 1 of the calculated correlation function (r), whether the correlation is good or bad is determined.

Figure 0004837549
Figure 0004837549

次に第2の検証方法は、上記同様、図12において複数(P+1)台の物理乱数発生器10から出力される各々乱数(一様化物理乱数(1〜P+1))を、複数バイト同時に取得し、各乱数列(1〜P+1列)について任意のバイト間の相関計数(r)を式1より算出し、得られた相関係数より、表1に基づいて各乱数列における自己相関関係を検証する方法である。   Next, the second verification method obtains each random number (uniform physical random number (1 to P + 1)) output from a plurality of (P + 1) physical random number generators 10 in FIG. Then, for each random number sequence (1 to P + 1 sequence), the correlation coefficient (r) between arbitrary bytes is calculated from Equation 1, and the autocorrelation in each random number sequence is calculated based on Table 1 from the obtained correlation coefficient. It is a method to verify.

この検証方法では、図14に示すように、複数(P+1)台の物理乱数発生器10から出力される各々乱数の取得バイト数を(2×q)バイトとして、各乱数列について偶数番目のバイトと、奇数番目のバイト間の相関係数を求める方法、或いは、図15に示すように、複数(P+1)台の物理乱数発生器10から出力される各々乱数の取得バイト数を(q+s)として、各乱数列について(s)バイトおいたバイト間の相関関係を求める方法等を採用できる。   In this verification method, as shown in FIG. 14, even-numbered bytes are obtained for each random number sequence, where the number of acquired random numbers output from the (P + 1) physical random number generators 10 is (2 × q) bytes. And a method of obtaining a correlation coefficient between odd-numbered bytes, or, as shown in FIG. 15, the number of acquired bytes of each random number output from a plurality (P + 1) of physical random number generators 10 is (q + s) For each random number sequence, a method of obtaining a correlation between (s) bytes and the like can be adopted.

Figure 0004837549
Figure 0004837549

次に、第3の検証方法は、上記同様、図12において複数(P+1)台の物理乱数発生器10から出力される各々乱数(一様化物理乱数(1〜P+1))を、複数バイト同時に取得し、各乱数列1バイト度数のカイ自乗値(X2)を式2より算出すると共に、得られたカイ自乗値と有意水準値を比較して各乱数列における一様性を検証する方法である。
すなわち、例えば、検証基準として有意水準1%のカイ自乗値(X2)は310.475、有意水準5%のカイ自乗値(X2)は293.248とし、検証データ量(バイト量)に対して算出されたカイ自乗値が有意水準を下回るかを検証する。
Next, in the third verification method, as described above, each random number (uniform physical random number (1 to P + 1)) output from plural (P + 1) physical random number generators 10 in FIG. A method of acquiring and calculating the chi-square value (X 2 ) of each random number sequence 1-byte frequency from Equation 2, and comparing the obtained chi-square value and the significance level value to verify the uniformity in each random number sequence It is.
That is, for example, a significance level of 1% chi-squared value as the verification criteria (X 2) is 310.475, significance level of 5% of the chi-square value (X 2) is set to 293.248, the verification data amount (byte amount) Verify whether the calculated chi-square value is below the significance level.

Figure 0004837549
式2において、kは乱数を表現するビット数で8、nは乱数の数量でバイト数、piは乱数値iの出現確率(一様乱数の場合は全てのiについてpi=1/256)、xiは乱数値iの度数を示す。
Figure 0004837549
In Equation 2, k is the number of bits representing a random number, 8 is the number of random numbers and the number of bytes, pi is the appearance probability of the random value i (pi = 1/256 for all i in the case of uniform random numbers), xi represents the frequency of the random value i.

以上、本実施形態による検証方法では、各乱数列における乱数の検証をバイト単位で行ったが、複数ビット単位で行うことも勿論可能である。また、検証用データとして各物理乱数発生器10の出力乱数(一様化物理乱数(1〜P+1))を用いたが、複数(P個)の排他的論理和回路41の出力乱数(高品位物理乱数(1〜P))を検証用データとしても良い。   As described above, in the verification method according to the present embodiment, verification of random numbers in each random number sequence is performed in units of bytes, but of course, it is also possible to perform in units of multiple bits. Further, although the output random numbers (uniform physical random numbers (1 to P + 1)) of each physical random number generator 10 are used as the verification data, the output random numbers (high quality) of the plural (P pieces) exclusive OR circuits 41 are used. Physical random numbers (1 to P)) may be used as verification data.

当検証方法により、物理乱数発生装置40で生成される物理乱数の品質、すなわち、一様性、規則性や相関性や周期性の有無を効率良く容易に検証することができ、物理乱数の品質確保に大いに寄与できるものである。   With this verification method, it is possible to efficiently and easily verify the quality of the physical random number generated by the physical random number generator 40, that is, the presence or absence of uniformity, regularity, correlation, and periodicity. It can greatly contribute to securing.

本発明の第1実施形態による物理乱数発生器の構成を示す図。The figure which shows the structure of the physical random number generator by 1st Embodiment of this invention. 本発明の物理乱数発生器の各部の波形を示す図。The figure which shows the waveform of each part of the physical random number generator of this invention. 一様化フィードバック回路の構成を示す図。The figure which shows the structure of a uniform feedback circuit. 図3の一様化フィードバック回路の動作を示すタイミング図。FIG. 4 is a timing diagram illustrating the operation of the uniformized feedback circuit of FIG. 3. 本発明の第1実施形態による物理乱数発生器の図1とは別の構成を示す図。The figure which shows the structure different from FIG. 1 of the physical random number generator by 1st Embodiment of this invention. オフセット電圧回路の図1とは別の構成を示す図。The figure which shows the structure different from FIG. 1 of an offset voltage circuit. 異常検知回路の構成を示す図。The figure which shows the structure of an abnormality detection circuit. 異常検知回路の図7とは別の構成を示す図。The figure which shows the structure different from FIG. 7 of an abnormality detection circuit. ノイズ源の構成例を示す図。The figure which shows the structural example of a noise source. 本発明の第2実施形態による物理乱数発生器の構成を示す図。The figure which shows the structure of the physical random number generator by 2nd Embodiment of this invention. 乱数一様化回路の構成を示す図。The figure which shows the structure of a random number equalization circuit. 本発明の実施形態による物理乱数発生装置の構成を示す。1 shows a configuration of a physical random number generator according to an embodiment of the present invention. 本発明の物理乱数発生装置の検定用データを示す図。The figure which shows the data for a test | inspection of the physical random number generator of this invention. 本発明の物理乱数発生装置の自己相関検定用データを示す図。The figure which shows the data for autocorrelation tests of the physical random number generator of this invention. 本発明の物理乱数発生装置の図14とは別の自己相関検定用データを示す図。The figure which shows the data for autocorrelation tests different from FIG. 14 of the physical random number generator of this invention.

符号の説明Explanation of symbols

1a、1b ノイズ源
2 第1増幅回路
3 第2増幅回路
4 比較回路
5 フリップ・フロップ
6 一様化フィードバック回路
7 オフセット電圧回路
8 第3の増幅回路
9 充放電回路
10 物理乱数発生器
11 レジスター
12 加算器
14 第1カウンター
13 第1比較器
15 第2カウンター
16 第2比較器
18 可逆カウンター(アップ・ダウンカウンター)
19 D/Aコンバータ
26 差動増幅回路
30 一様化回路
31 シフトレジスター
32 選択回路(セレクター)
33、41 排他的論理和回路
40 物理乱数発生装置
Q1、Q2 スイッチ回路(MOSトランジスター)
1a, 1b Noise source 2 First amplifier circuit 3 Second amplifier circuit 4 Comparison circuit 5 Flip-flop 6 Uniform feedback circuit 7 Offset voltage circuit 8 Third amplifier circuit 9 Charge / discharge circuit 10 Physical random number generator 11 Register 12 Adder 14 First counter 13 First comparator 15 Second counter 16 Second comparator 18 Reversible counter (up / down counter)
19 D / A converter 26 Differential amplifier circuit 30 Uniform circuit 31 Shift register 32 Select circuit (selector)
33, 41 Exclusive OR circuit 40 Physical random number generators Q1, Q2 Switch circuit (MOS transistor)

Claims (8)

2組のノイズ源と、これらのノイズ源より発生する各々ノイズの直流分を除去して増幅する第1増幅回路と第2増幅回路と、前記第1増幅回路と前記第2増幅回路の各出力電圧を比較して0または1を出力する比較回路と、当該比較回路の出力を基準クロックに同期して保持し、物理乱数を得るフリップ・フロップと、前記比較回路の一方の入力に接続されて、当該比較回路のオフセット電圧を設定するオフセット電圧回路と、前記オフセット電圧回路を制御する一様化フィードバック回路とで構成されてなり、
かつ前記一様化フィードバック回路は、前記フリップ・フロップ出力を保持するレジスターと、当該レジスターの出力に1を加算し、比較値を生成する加算器と、前記基準クロック数を計測する第1カウンターと、当該第1カウンターの計数値と前記加算器からの比較値より当該比較値の2倍の前記繰り返し周期を発生する第1比較器と、前記繰り返し周期毎に前記フリップ・フロップ出力の0または1の出現数を計測する第2カウンターと、前記第2カウンターの計数値と前記比較値とを比較して比較出力(計数値<比較値)または比較出力(計数値>比較値)を発生する第2比較器とを備えることにより、前記フリップ・フロップ出力の0または1の出現率が前記物理乱数で決まる繰り返し周期内で50%になるように前記オフセット電圧回路を制御するとともに、
前記オフセット電圧回路は、前記第2比較器出力(計数値<比較値、計数値>比較値)に基づいて動作する2組のスイッチ回路と、当該スイッチ回路に接続された抵抗、コンデンサのCR回路を備え、前記スイッチ回路のオン動作により前記コンデンサの充放電を行う充放電回路と、当該充放電回路の出力を増幅してオフセット電圧を発生する第3増幅回路とで構成されることを特徴とする物理乱数発生器。
Two sets of noise sources, a first amplifier circuit and a second amplifier circuit for amplifying by removing a DC component of each noise generated from these noise sources, and outputs of the first amplifier circuit and the second amplifier circuit A comparison circuit that compares voltages and outputs 0 or 1; a flip-flop that holds the output of the comparison circuit in synchronization with a reference clock and obtains a physical random number; and one input of the comparison circuit The offset voltage circuit for setting the offset voltage of the comparison circuit, and a uniform feedback circuit for controlling the offset voltage circuit ,
The uniform feedback circuit includes a register that holds the flip-flop output, an adder that adds 1 to the output of the register to generate a comparison value, and a first counter that measures the number of reference clocks. A first comparator that generates the repetition period twice as large as the comparison value from the count value of the first counter and the comparison value from the adder; and 0 or 1 of the flip-flop output for each repetition period A second counter that counts the number of occurrences of the second counter, and compares the count value of the second counter with the comparison value to generate a comparison output (count value <comparison value) or a comparison output (count value> comparison value). 2 comparators so that the occurrence rate of 0 or 1 of the flip-flop output is 50% within a repetition period determined by the physical random number. It controls the circuit,
The offset voltage circuit includes two sets of switch circuits that operate based on the output of the second comparator (count value <comparison value, count value> comparison value), and a resistor and capacitor CR circuit connected to the switch circuit. the provided a charging and discharging circuit that performs charging and discharging of the capacitor by the on operation of the switching circuit, and wherein Rukoto and a third amplifier circuit for generating an offset voltage by amplifying the output of the charging and discharging circuit A physical random number generator.
2組のノイズ源と、これらノイズ源より発生する各々ノイズの直流分を除去してノイズの差分を増幅する差動増幅回路と、前記差動増幅回路の出力電圧と基準電圧を比較して0または1を出力する比較回路と、前記比較回路の出力を基準クロックに同期して保持し、物理乱数を得るフリップ・フロップと、当該比較回路の基準電圧側の入力に接続され、前記比較回路のオフセット電圧を設定するオフセット電圧回路と、前記オフセット電圧回路を制御する一様化フィードバック回路とで構成されてなり、
かつ前記一様化フィードバック回路は、前記フリップ・フロップ出力を保持するレジスターと、当該レジスターの出力に1を加算し、比較値を生成する加算器と、前記基準クロック数を計測する第1カウンターと、当該第1カウンターの計数値と前記加算器からの比較値より当該比較値の2倍の前記繰り返し周期を発生する第1比較器と、前記繰り返し周期毎に前記フリップ・フロップ出力の0または1の出現数を計測する第2カウンターと、前記第2カウンターの計数値と前記比較値とを比較して比較出力(計数値<比較値)または比較出力(計数値>比較値)を発生する第2比較器とを備えることにより、前記フリップ・フロップ出力の0または1の出現率が前記物理乱数で決まる繰り返し周期内で50%になるように前記オフセット電圧回路を制御するとともに、
前記オフセット電圧回路は、前記第2比較器出力(計数値<比較値、計数値>比較値)に基づいて動作する2組のスイッチ回路と、当該スイッチ回路に接続された抵抗、コンデンサのCR回路を備え、前記スイッチ回路のオン動作により前記コンデンサの充放電を行う充放電回路と、当該充放電回路の出力を増幅してオフセット電圧を発生する第3増幅回路とで構成されることを特徴とする物理乱数発生器。
Two sets of noise sources, a differential amplifier circuit that amplifies the difference in noise by removing the DC component of each noise generated from these noise sources, the output voltage of the differential amplifier circuit and the reference voltage are compared, and 0 Or a comparator circuit that outputs 1, a flip-flop that holds the output of the comparator circuit in synchronization with a reference clock and obtains a physical random number, and an input on the reference voltage side of the comparator circuit, An offset voltage circuit for setting an offset voltage, and a uniform feedback circuit for controlling the offset voltage circuit ,
The uniform feedback circuit includes a register that holds the flip-flop output, an adder that adds 1 to the output of the register to generate a comparison value, and a first counter that measures the number of reference clocks. A first comparator that generates the repetition period twice as large as the comparison value from the count value of the first counter and the comparison value from the adder; and 0 or 1 of the flip-flop output for each repetition period A second counter that counts the number of occurrences of the second counter, and compares the count value of the second counter with the comparison value to generate a comparison output (count value <comparison value) or a comparison output (count value> comparison value). 2 comparators so that the occurrence rate of 0 or 1 of the flip-flop output is 50% within a repetition period determined by the physical random number. It controls the circuit,
The offset voltage circuit includes two sets of switch circuits that operate based on the output of the second comparator (count value <comparison value, count value> comparison value), and a resistor and capacitor CR circuit connected to the switch circuit. the provided a charging and discharging circuit that performs charging and discharging of the capacitor by the on operation of the switching circuit, and wherein Rukoto and a third amplifier circuit for generating an offset voltage by amplifying the output of the charging and discharging circuit A physical random number generator.
前記比較回路の、前記オフセット電圧回路が接続される入力とは別の入力に、前記第3増幅回路と同じ構成の増幅回路を設けたことを特徴とする請求項1または請求項2に記載の物理乱数発生器。 The amplifier circuit having the same configuration as that of the third amplifier circuit is provided at an input different from the input to which the offset voltage circuit is connected of the comparison circuit. Physical random number generator. 前記オフセット電圧回路は、前記第2比較器の出力(n<m、n>m)にて動作する可逆カウンターと、当該可逆カウンターの出力値をアナログ値に変換してオフセット電圧を発生するD/Aコンバータとで構成されることを特徴とする請求項1または2に記載の物理乱数発生器。 The offset voltage circuit includes a reversible counter that operates at an output (n <m, n> m) of the second comparator, and a D / D that generates an offset voltage by converting an output value of the reversible counter into an analog value. physical random number generator according to claim 1 or 2, characterized in that composed of the a converter. 前記繰り返し周期中において、前記第2比較器の出力(計数値<比較値)または、出力(計数値>比較値)の何れか一方が連続して予め設定した回数出現したことを検出した時、異常信号を発生する異常検知手段を備えることを特徴とする請求項1ないしの何れかに記載の物理乱数発生器。 When it is detected that either one of the output of the second comparator (count value <comparison value) or the output (count value> comparison value) has continuously appeared in advance during the repetition period, The physical random number generator according to any one of claims 1 to 4 , further comprising abnormality detection means for generating an abnormality signal . 前記ノイズ源は、抵抗とツェナーダイオードの直列回路、または、定電流源に接続されたツェナーダイオード、または、PチャンネルMOSトランジスタとNチャンネルMOSトランジスタを直列に接続し、入出力間を短絡したトランジスタ回路で構成されることを特徴とする請求項1ないし5の何れかに記載の物理乱数発生器。 The noise source is a series circuit of a resistor and a Zener diode, a Zener diode connected to a constant current source, or a transistor circuit in which a P-channel MOS transistor and an N-channel MOS transistor are connected in series and the input and output are short-circuited. The physical random number generator according to claim 1 , wherein the physical random number generator is configured as follows. シフトレジスターと、当該シフトレジスターの保持データの一部を入力データとすると共に、その他の一部をアドレスデータとする選択回路と、当該選択回路の出力と前記フリップ・フロップより出力された物理乱数との排他的論理和を行う排他的論理和回路とを備え、当該排他的論理和回路の出力を前記シフトレジスターの入力データとする一様化回路を備えることを特徴とする請求項1ないし6の何れかに記載の物理乱数発生器。 A shift register, a selection circuit using a part of the data held in the shift register as input data and the other part as address data, an output of the selection circuit, and a physical random number output from the flip-flop of performing an exclusive OR and an exclusive OR circuit, the exclusive OR circuit outputs the claims 1 to 6, characterized in that it comprises the equalizing circuit that receives data of the shift registers A physical random number generator according to any one of the above. 並列動作可能に配設された請求項1ないし請求項7の何れかに記載の複数の物理乱数発生器と、これら複数の物理乱数発生器の内の1つの物理乱数発生器の乱数出力と残りの物理乱数発生器の乱数出力のそれぞれと個々に排他的論理和を行う複数の排他的論理和回路とを備えることを特徴とする物理乱数発生装置 A plurality of physical random number generators according to any one of claims 1 to 7, which are arranged so as to be capable of parallel operation, and random number output and remaining of one physical random number generator among the plurality of physical random number generators physical random number generator characterized by comprising each a plurality of exclusive OR circuits individually performing an exclusive OR of the physical random number generator a random number output.
JP2006354453A 2006-12-28 2006-12-28 Physical random number generator and physical random number generator Expired - Fee Related JP4837549B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006354453A JP4837549B2 (en) 2006-12-28 2006-12-28 Physical random number generator and physical random number generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006354453A JP4837549B2 (en) 2006-12-28 2006-12-28 Physical random number generator and physical random number generator

Publications (2)

Publication Number Publication Date
JP2008165500A JP2008165500A (en) 2008-07-17
JP4837549B2 true JP4837549B2 (en) 2011-12-14

Family

ID=39694912

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006354453A Expired - Fee Related JP4837549B2 (en) 2006-12-28 2006-12-28 Physical random number generator and physical random number generator

Country Status (1)

Country Link
JP (1) JP4837549B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5433686B2 (en) 2009-05-22 2014-03-05 株式会社東芝 Random number generation circuit and encryption circuit using the same
CN110838835B (en) * 2019-11-19 2023-04-28 天津津航计算技术研究所 Random signal generating circuit based on high-speed dynamic comparator
CN110808728B (en) * 2019-11-19 2023-10-20 天津津航计算技术研究所 Random signal generation method based on high-speed dynamic comparator
CN114461178A (en) * 2022-02-15 2022-05-10 清华大学 Random number generator, electronic device and operation method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2980576B2 (en) * 1997-09-12 1999-11-22 株式会社東芝 Physical random number generating apparatus and method, and physical random number recording medium
JP2004310314A (en) * 2003-04-04 2004-11-04 Fdk Corp Physical random number generating device
JP4148807B2 (en) * 2003-03-17 2008-09-10 株式会社ルネサステクノロジ Random number generator and information processing apparatus

Also Published As

Publication number Publication date
JP2008165500A (en) 2008-07-17

Similar Documents

Publication Publication Date Title
US11750361B2 (en) Clock period randomization for defense against cryptographic attacks
KR100668554B1 (en) Random number generator with ring oscillation circuit
US7797361B2 (en) System and method for generating random numbers using parity feedback
JP4893895B2 (en) Multi-bit sampling of oscillator jitter for random number generation
JP6034153B2 (en) Random number generator
US10146507B2 (en) Randomness test apparatus and method for random number generator
US8390313B2 (en) Semiconductor integrated circuit device
JP4837549B2 (en) Physical random number generator and physical random number generator
US20130191427A1 (en) Pseudo-noise generator
JP5670849B2 (en) Pseudorandom number generation device and pseudorandom number generation method
US9836280B2 (en) Arrangement and method for checking the entropy of a random number sequence
CN109656514B (en) Random number generation system and random number generation method thereof
EP1662375B1 (en) Random number generator and method for testing the generator
US20150199174A1 (en) Method for Checking an Output
US20090226007A1 (en) Mute circuit
WO2022048245A1 (en) Random number generation circuit
CN113258894B (en) Signal detection circuit and transmission equipment
JP4869879B2 (en) Semiconductor integrated circuit
EP2933719A1 (en) A digital method and device for generating true random numbers
Mao et al. Zero-bias true random number generator using LFSR-based scrambler
Lee et al. Metastability-based feedback method for enhancing fpga-based trng
WO2022048231A1 (en) Random number generating circuit
CN115145539A (en) Quantum random number generator and integrated circuit comprising same
JP6386904B2 (en) Random number generation apparatus and random number generation method
EP2372528A1 (en) Pseudo-noise generator

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091127

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110614

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110809

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110830

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110928

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141007

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4837549

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees