JPS63204919A - Pseudo-random number generation circuit - Google Patents

Pseudo-random number generation circuit

Info

Publication number
JPS63204919A
JPS63204919A JP62037084A JP3708487A JPS63204919A JP S63204919 A JPS63204919 A JP S63204919A JP 62037084 A JP62037084 A JP 62037084A JP 3708487 A JP3708487 A JP 3708487A JP S63204919 A JPS63204919 A JP S63204919A
Authority
JP
Japan
Prior art keywords
pseudo
selection control
exclusive
selectors
flip
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.)
Pending
Application number
JP62037084A
Other languages
Japanese (ja)
Inventor
Toshihiro Yoshida
吉田 利弘
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP62037084A priority Critical patent/JPS63204919A/en
Publication of JPS63204919A publication Critical patent/JPS63204919A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To generate various pseudo-random numbers having different periods and generation systems in a same pseudo-random number generation circuit by altering the selection control signals of respective selectors so as to change the connection pattern of exclusive 'OR' elements and altering the feedback condition for the lowest rank flip flop in the respective states of flip flops connected in series. CONSTITUTION:At first the specified selection control signals are given to selection control signal input terminals 6a-6g and it is set, for example, that the selectors 5b, 5c and 5e select an (x) side and the selectors 5a, 5d, 5f and 5g select a (y) side. If other selection control signals are given to the selection control signal input terminals 6a-6g, the selectors 5a-5g are set in different selection patterns according to the selection control signals and the signal system of feedback signals which execute the feedback to the lowest rank flip flop 1a corresponding to the set selection patterns of the selectors 5a-5g is decided, so that the period and the generation system of the pseudo-random number outputted from the pseudo-random number output terminal 4 of the highest rank flip flop 1h are decided.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、大規模集積回路(LSI)のテスト時にテ
スト系列を発生する擬似乱数発生回路に関するものであ
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a pseudorandom number generation circuit that generates a test sequence when testing a large-scale integrated circuit (LSI).

[従来の技術] 第2図は例えば「日経エレクトロニクス 1983年6
月20日号」(日経マグロウヒル社発行)に示された従
来の擬似乱散発生回路を示すブロック図であり、図にお
いて、■a〜1hは直列に接続されたフリップフロップ
、2b、2c、2eはそのフリップフロップ1a〜1h
の適宜状態の排他的論理和をとって最下位フリップフロ
ップlaにフィードバックする排他的論理和素子、3は
フリップフロップ]a=1hのクロック信号が入力され
るクロック入力端子、4は最上位フリップフロップ1h
よりの擬似乱数出力端子である。これらフリップフロッ
プla〜!h及び排他的論理和素子2b、2c、2eに
よってリニア・フィードバック・シフトレジスタが形成
される。
[Prior art] Figure 2 is, for example, "Nikkei Electronics, June 1983.
It is a block diagram showing a conventional pseudo-scattering generation circuit shown in "Monthly 20th issue" (published by Nikkei McGraw-Hill), and in the figure, ■a to 1h are flip-flops connected in series, 2b, 2c, 2e are the flip-flops 1a to 1h
3 is a flip-flop] A clock input terminal to which the clock signal of a=1h is input; 4 is a top flip-flop 1h
This is a pseudo-random number output terminal. These flip-flops are la~! h and exclusive OR elements 2b, 2c, and 2e form a linear feedback shift register.

次に動作について説明する。8つのフリップフロップI
a〜Ihを直列に接続することによって、8ビツトのシ
フトレジスタが構成される。従って、クロック入力端子
3にクロック信号が入力されると、各フリップフロップ
Ia〜1gの状態は北位のフリップフロップ1b−1h
に順次シフトされてゆく。ここで、フリップフロップl
hとIeの出力は排他的論理和素子2eによって排他的
論理和がとられており、次いで、この排他的論理和素子
2eの出力はフリップフロップIcの出力と排他的論理
和2cによって排他的論理和がとられ、さらにこの排他
的論理和素子2Cの出力が排他的論理和素子2bによっ
てフリップフロップlbの出力との排他的論理和かとら
れている。そして、その排他的論理和素子2bの出力は
最下位フリップフロップIaの入力端子にフィードバッ
クされている。このようなフィードバックがかけられた
状態で、フリップフロップ1a〜1hにクロック入力端
子3より同じクロック信号を与えることによってフリッ
プフロップlaの入力端子には、その時のフリップフロ
ップlh、lc、Ibの状態に対応した信号が入力され
、それが上位のフリップフロップ1b−1hへ次々にシ
フトされてゆく。
Next, the operation will be explained. 8 flip flops I
By connecting a to Ih in series, an 8-bit shift register is constructed. Therefore, when a clock signal is input to the clock input terminal 3, the state of each flip-flop Ia to 1g is changed to the north flip-flop 1b to 1h.
will be shifted sequentially. Here, the flip-flop l
The outputs of h and Ie are subjected to an exclusive OR by an exclusive OR element 2e, and then the output of this exclusive OR element 2e is subjected to an exclusive OR by an exclusive OR with the output of the flip-flop Ic. The sum is taken, and the output of this exclusive OR element 2C is further exclusive ORed with the output of the flip-flop lb by an exclusive OR element 2b. The output of the exclusive OR element 2b is fed back to the input terminal of the lowest flip-flop Ia. With such feedback applied, by applying the same clock signal from the clock input terminal 3 to the flip-flops 1a to 1h, the input terminal of the flip-flop la receives the state of the flip-flops lh, lc, and Ib at that time. Corresponding signals are input and are successively shifted to upper flip-flops 1b-1h.

従って、フリップフロップ1hの擬似乱数出力端子4か
らは(2@−1)の周期をもつ擬似乱数が出力される。
Therefore, a pseudorandom number having a period of (2@-1) is output from the pseudorandom number output terminal 4 of the flip-flop 1h.

[発明が解決しようとする問題点] 従来の擬似乱数発生回路は以上のように構成されている
ので、発生される擬似乱数の周期と発生系列が固定され
てしまい、異なる周期と発生系列をもつ擬似乱数が必要
な場合には、それぞれについて所定のビット数のリニア
・フィードバック・シフトレジスタを用いて個別に擬似
乱数発生回路をつくる必要があるなどの問題点があった
[Problems to be solved by the invention] Since the conventional pseudo-random number generation circuit is configured as described above, the period and generation sequence of the generated pseudo-random numbers are fixed, and the period and generation sequence of the generated pseudo-random numbers are fixed. When pseudorandom numbers are required, there are problems such as the need to create separate pseudorandom number generation circuits using linear feedback shift registers each having a predetermined number of bits.

この発明は上記のような問題点を解消するためになされ
たもので、1つの擬似乱数発生回路で異なる周期と発生
系列をもつ擬似乱数の発生が可能な擬似乱数発生回路を
得ることを目的とする。
This invention was made to solve the above-mentioned problems, and its purpose is to obtain a pseudo-random number generation circuit that can generate pseudo-random numbers with different cycles and generation sequences using a single pseudo-random number generation circuit. do.

[問題点を解決するための手段] この発明に係る擬似乱数発生回路は、複数個のフリップ
フロップを直列に接続し、このフリップフロップの出力
端子を複数個用意された排他的論理和素子の一方の入力
端子にそれぞれ接続し、前記各排他的論理和素子の他方
の入力端子には、セレクタによって上位の排他的論理和
素子からの信号あるいはその排他的論理和素子をバイパ
スした信号のいずれかを選択して入力するとともに、最
下位のフリップフロップの入力端子には、セレクタによ
って最下位の排他的論理和素子からの信号あるいはその
排他的論理和素子をバイパスした信号のいずれかを選択
してフィードバックするものである。
[Means for Solving the Problems] A pseudo-random number generation circuit according to the present invention has a plurality of flip-flops connected in series, and the output terminal of the flip-flop is connected to one of the plurality of exclusive OR elements. The other input terminal of each exclusive OR element is connected to the input terminal of the exclusive OR element, and the selector receives either a signal from the upper exclusive OR element or a signal bypassing the exclusive OR element. At the same time, the selector selects and feeds back either the signal from the lowest exclusive OR element or the signal bypassing that exclusive OR element to the input terminal of the lowest flip-flop. It is something to do.

[作用] この発明における擬似乱数発生回路は、各セレクタの選
択制御信号を変化させると、排他的論理和素子の接続パ
ターンが変更され、直列接続されたフリップフロップの
それぞれの状態を最下位のフリップフロップへフィード
バックする条件が変わるため、前記セレクタへの選択制
御信号に対応して、異なる周期と発生系列をもつ擬似乱
数が発生する。
[Operation] In the pseudo-random number generation circuit of the present invention, when the selection control signal of each selector is changed, the connection pattern of the exclusive OR element is changed, and the state of each flip-flop connected in series is changed to the lowest flip-flop. Since the conditions for feeding back to the selector change, pseudorandom numbers with different cycles and generation sequences are generated in response to the selection control signal to the selector.

[実施例] 以下、この発明の一実施例を図について説明する。第1
図において、1a=1hは直列に接続されたフリップ7
0ツブ、2a〜2gはそれぞれ一方の入力端子が前記フ
リップフロップ1a〜1gの出力端子に接続されている
排他的論理和素子、3はクロック入力端子、4は擬似乱
数出力端子であり、前記排他的論理和素子2gの他方の
入力端子はフリップフロップlhの出力端子に接続され
ている。また、5b〜5gは下位の排他的論理和素子2
3〜2fの他方の入力端子に、排他的論理和素子2b〜
2gから出力された信号(X側)と、その排他的論理和
素子2b〜2gをバイパスした信号(y側)のいずれを
入力するかを選択するセレクタ、5aは排他的論理和素
子2aから出力された信号(X側)と、その排他的論理
和素子2aをバイパスした信号(y側)のいずれを最下
位のフリップフロップlaの入力端子にフィードバック
するかを選択するセレクタ、6a〜6gはこれらのセレ
クタ5a〜5gに選択制御信号を与える選択制御信号入
力端子である。
[Example] Hereinafter, an example of the present invention will be described with reference to the drawings. 1st
In the figure, 1a=1h is the flip 7 connected in series.
Numerals 0 and 2a to 2g are exclusive OR elements whose input terminals are respectively connected to the output terminals of the flip-flops 1a to 1g, 3 is a clock input terminal, and 4 is a pseudorandom number output terminal. The other input terminal of the logical OR element 2g is connected to the output terminal of the flip-flop lh. In addition, 5b to 5g are lower exclusive OR elements 2
Exclusive OR elements 2b to 2f are connected to the other input terminals of 3 to 2f.
A selector for selecting which of the signals output from 2g (X side) and the signal bypassing exclusive OR elements 2b to 2g (y side) is input; 5a is the output from exclusive OR element 2a. The selectors 6a to 6g select which of the input signal (X side) and the signal bypassing the exclusive OR element 2a (y side) is fed back to the input terminal of the lowest flip-flop la. This is a selection control signal input terminal that provides a selection control signal to the selectors 5a to 5g.

次に動作について説明する。擬似乱数の発生に先立って
、まず選択制御信号入力端子6a〜6gに所定の選択制
御信号を与え、例えば、セレクタ5b、5c、5eがX
側、セレクタ5a、5d。
Next, the operation will be explained. Prior to the generation of pseudo-random numbers, first a predetermined selection control signal is applied to the selection control signal input terminals 6a to 6g, and for example, the selectors 5b, 5c, and 5e
side, selectors 5a, 5d.

5f、5gがy側を選択するように設定する。これによ
ってフリップフロップIhとleの出力は排他的論理和
素子2eによって、また、この排他的論理和素子2eの
出力とフリップフロップlcの出力が排他的論理和2c
によって、さらにこの排他的論理和素子2cの出力とフ
リップフロップ1bが排他的論理和素子2bによって、
それぞれ排他的論理和がとられ、その排他的論理和素子
2bの出力は最下位フリップフロップ1aにフィードバ
ックされる。従って、この擬似乱数発生回路は第2図に
示す従来のものと同一の構成となり、クロック入力端子
3にクロック信号を入力すると、それと全く同様に動作
してフリップフロップlhの擬似乱数出力端子4から(
2”−1)の周期をもつ擬似乱数を出力する。
Set so that 5f and 5g select the y side. As a result, the outputs of the flip-flops Ih and le are combined with the exclusive OR element 2e, and the output of the exclusive OR element 2e and the output of the flip-flop lc are combined with the exclusive OR element 2c.
Furthermore, the output of this exclusive OR element 2c and the flip-flop 1b are combined by the exclusive OR element 2b,
An exclusive OR is taken for each, and the output of the exclusive OR element 2b is fed back to the lowest flip-flop 1a. Therefore, this pseudo-random number generation circuit has the same configuration as the conventional one shown in FIG. (
Outputs a pseudo-random number with a period of 2"-1).

また、選択選択入力端子6a〜6gに別の選択制御信号
を与えれば、その選択制御信号に応じてセレクタ5a〜
5gは異なる選択パターンに設定され、設定されたこの
セレクタ5a〜5gの選択パターンに対応して、最下位
のフリップフロップIaに帰還させるフィードバック信
号の信号系列が定まり、これによって最上位のフリップ
フロップ1hの擬似乱数出力端子4から出力される擬似
乱数の周期及び発生系列が決まる。
Further, if another selection control signal is applied to the selection input terminals 6a to 6g, the selectors 5a to 5g can be controlled according to the selection control signal.
5g is set to a different selection pattern, and a signal sequence of a feedback signal to be fed back to the lowest flip-flop Ia is determined in accordance with the set selection pattern of the selectors 5a to 5g. The period and generation sequence of the pseudorandom numbers output from the pseudorandom number output terminal 4 are determined.

なお、上記実施例では選択制御信号入力端子をセレクタ
とl対l対応で設けたものを示したが、選択制御信号入
力端子にエンコーダの出力、あるいはシフトレジスタの
出力から信号を与えるようにしてもよく、その場合、外
部端子を削減することができる。
In the above embodiment, the selection control signal input terminals are provided in l-to-l correspondence with the selectors, but the selection control signal input terminals may also be supplied with signals from the output of the encoder or the output of the shift register. Well, in that case, the external terminals can be reduced.

[発明の効果] 以上のように、この発明によれば各セレクタの選択制御
信号を変更することによって排他的論理和素子の接続パ
ターンを変え、直列接続されたフリップフロップの各状
態の最下位フリップフロップへのフィードバック条件を
変化させるように構成したので、前記セレクタへの選択
制御信号を変更するだけで、同一の擬似乱数発生回路に
よって、異なる周期と発生系列をもつ種々の擬似乱数を
発生させることができる効果がある。
[Effects of the Invention] As described above, according to the present invention, the connection pattern of the exclusive OR element is changed by changing the selection control signal of each selector, and the lowest flip-flop of each state of the flip-flops connected in series is changed. Since the configuration is configured to change the feedback conditions to the selector, it is possible to generate various pseudo-random numbers with different cycles and generation sequences using the same pseudo-random number generation circuit simply by changing the selection control signal to the selector. It has the effect of

【図面の簡単な説明】[Brief explanation of the drawing]

第11iiillはこの発明の一実施例による擬似乱数
発生回路を示すブロック図、第2図は従来の擬似乱数発
生回路を示すブロック図である。 1a=1hはフリップフロップ、2a〜2gは排他的論
理和素子、3はクロック入力端子、4は擬似乱数出力端
子、5a〜5gはセレクタ、6a〜6gは選択制御信号
入力端子。 なお、図中、同一符号は同一、又は相当部分を示す。 (外2名)
FIG. 11iii is a block diagram showing a pseudo-random number generation circuit according to an embodiment of the present invention, and FIG. 2 is a block diagram showing a conventional pseudo-random number generation circuit. 1a=1h are flip-flops, 2a to 2g are exclusive OR elements, 3 is a clock input terminal, 4 is a pseudorandom number output terminal, 5a to 5g are selectors, and 6a to 6g are selection control signal input terminals. In addition, in the figures, the same reference numerals indicate the same or equivalent parts. (2 others)

Claims (1)

【特許請求の範囲】[Claims] 直列に接続された複数個のフリップフロップと、入力端
子の一方に前記フリップフロップの出力端子が接続され
た複数個の排他的論理和素子と、前記排他的論理和素子
の他方の入力端子へ入力する信号を、上位の前記排他的
論理和素子をバイパスさせるか否かを選択するセレクタ
と、最下位の前記フリップフロップにフィードバックす
る信号を最下位の前記排他的論理和素子をバイパスさせ
るか否かを選択するセレクタと、これらのセレクタに選
択制御信号を与える選択制御信号入力端子とを備えた擬
似乱数発生回路。
a plurality of flip-flops connected in series; a plurality of exclusive OR elements each having an output terminal of the flip-flop connected to one of its input terminals; and an input to the other input terminal of the exclusive OR element. a selector for selecting whether or not to cause a signal to be fed back to the flip-flop at the lowest level to bypass the exclusive OR element at the lowest level; A pseudo-random number generation circuit includes selectors that select the , and a selection control signal input terminal that provides a selection control signal to these selectors.
JP62037084A 1987-02-20 1987-02-20 Pseudo-random number generation circuit Pending JPS63204919A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62037084A JPS63204919A (en) 1987-02-20 1987-02-20 Pseudo-random number generation circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62037084A JPS63204919A (en) 1987-02-20 1987-02-20 Pseudo-random number generation circuit

Publications (1)

Publication Number Publication Date
JPS63204919A true JPS63204919A (en) 1988-08-24

Family

ID=12487683

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62037084A Pending JPS63204919A (en) 1987-02-20 1987-02-20 Pseudo-random number generation circuit

Country Status (1)

Country Link
JP (1) JPS63204919A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7394755B2 (en) 2003-09-22 2008-07-01 Fujitsu Limited Semi-fixed circuit
JP2009265961A (en) * 2008-04-25 2009-11-12 Renesas Technology Corp Pseudorandom number generator and data communication apparatus
US7680282B2 (en) 2004-05-27 2010-03-16 Fujitsu Limited Signal processing circuit

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7394755B2 (en) 2003-09-22 2008-07-01 Fujitsu Limited Semi-fixed circuit
US7680282B2 (en) 2004-05-27 2010-03-16 Fujitsu Limited Signal processing circuit
JP2009265961A (en) * 2008-04-25 2009-11-12 Renesas Technology Corp Pseudorandom number generator and data communication apparatus
US8595275B2 (en) 2008-04-25 2013-11-26 Renesas Electronics Corporation Pseudorandom number generator and data communication apparatus

Similar Documents

Publication Publication Date Title
US4799004A (en) Transfer circuit for operation test of LSI systems
US4897837A (en) Test circuit having selective by pass arrangement for test data
US5268949A (en) Circuit for generating M-sequence pseudo-random pattern
US4340857A (en) Device for testing digital circuits using built-in logic block observers (BILBO's)
KR910006735A (en) Ease of Testing Circuits in Digital Integrated Circuits
KR870004384A (en) Signal processing circuit
US4933575A (en) Electric circuit interchangeable between sequential and combination circuits
CA1268550A (en) Apparatus providing improved diagnosability
JPH03252569A (en) Register circuit for scan pass
US4156819A (en) Master-slave flip-flop circuit
US4913557A (en) Intergrated logic circuit having testing function circuit formed integrally therewith
CA2238294C (en) Pn sequence generator with bidirectional shift register and eulerian-graph feedback circuit
JPS63204919A (en) Pseudo-random number generation circuit
GB2119976A (en) Shift circuit
US4813043A (en) Semiconductor test device
US5726998A (en) Partial scan path test of a semiconductor logic circuit
JPH0787040B2 (en) Shift register
GB2159287A (en) Integrated circuit testing arrangements
KR960019970A (en) Signal processing equipment
US5321641A (en) Pseudo random pattern generation circuit
US4998263A (en) Generation of trigger signals
KR100313202B1 (en) Test circuit for macro
Nagvajara et al. Pseudorandom testing for boundary-scan design with built-in self-test
JP2536135B2 (en) Serial / parallel conversion circuit
JP2805301B2 (en) Pseudo random noise code generator