JPH0457407A - Parallel generating circuit for serial pn patterns and configuration method for said circuit - Google Patents

Parallel generating circuit for serial pn patterns and configuration method for said circuit

Info

Publication number
JPH0457407A
JPH0457407A JP2166878A JP16687890A JPH0457407A JP H0457407 A JPH0457407 A JP H0457407A JP 2166878 A JP2166878 A JP 2166878A JP 16687890 A JP16687890 A JP 16687890A JP H0457407 A JPH0457407 A JP H0457407A
Authority
JP
Japan
Prior art keywords
registers
circuit
output
stage
number vector
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
JP2166878A
Other languages
Japanese (ja)
Inventor
Hiroyuki Kasahara
弘之 笠原
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2166878A priority Critical patent/JPH0457407A/en
Publication of JPH0457407A publication Critical patent/JPH0457407A/en
Pending legal-status Critical Current

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PURPOSE:To output a serial PN pattern of an optional degree in parallel at an optional width by forming a degree (n) feedback shift register circuit with n-stages of shift registers and an EOR circuit exclusively ORing an output of the final stage register and an output of the m-th stage and applying the EOR to the 1st stage register. CONSTITUTION:An nXn-dimension square matrix expressing the relation between an n-dimension numerical vector comprising each input of n-set of registers in an n-stages of feedback shift registers and an n-dimension numerical vector comprising each output is obtained and a square matrix being the I-th power of the nXn-dimension square matrix is obtained, and each square matrix being the p-th power of the nXn-dimension square matrix is obtained by each value (p) satisfying equation of J>=p>=I+1. Moreover, a matrix of (n+J-1)-rows and n-columns whose 1st-n-th row element is that of the nXn-dimension square matrix is obtained. Then circuits each relating each input to each output of each of the n-sets of registers as to each (p) in a range of J>=p>=I+1 are formed and a selector is provided, which selects only a circuit corresponding to the designated value (p) and makes required connection.

Description

【発明の詳細な説明】 〔概 要〕 直列PNパターン(擬似ランダムパターン)を並列に発
生する直列PNパターン並列発生回路に関し、 任意の次数の直列PNパターンを任意の幅で並列に出力
することができ、且つ、この幅を、該PNパターンの次
数より大きいか、または、以下の指定された範囲で可変
にできるように構成することを目的とし、 p、 n、 m、  IおよびJをn≧J≧p≧I、 
 n〉mを満足する自然数とするとき、n個のレジスタ
からなるn段のシフトレジスタと、前記シフトレジスタ
における最終段のレジスタ出力と第m段目のレジスタ出
力との排他的論理和を第1段目のレジスタに印加するE
OR回路とを有してなるn次の帰還型シフトレジスタ回
路におけるn個のレジスタの各々の入力の値からなるn
次元の数ベクトルと、該n個のレジスタの各々の出力の
値からなるn次元の数ベクトルとの関係を表現するn×
n次元の正方行列を1乗した正方行列、および、前記J
≧p≧I+1を満足するpの各位について、前記正方行
列をp乗した正方行列を元にして、前記J≧p≧I+1
を満足するpの各位について、前記p乗した正方行列各
々の第n行目の行ベクトルαpを、それぞれ、n+p−
1行成分とするn+J−I行n列の行列を形成して、n
個のレジスタの各々の入力の値からなるn次元の数ベク
トルと、該n個のレジスタの各々の出力の値からなるn
次元の数ベクトルとの関係が前記n+J−I行n列の行
列の第p行〜第p+n−1行成分から構成されるn×n
行列によって表現されるように各レジスタの入力および
出力を互いに接続する回路を、前記n個のレジスタを共
通に用いて、前記J≧p≧I+1の範囲のpの各位につ
いて有し、前記n個のレジスタの各レジスタの入力およ
び出力を前記J≧p≧I+1の範囲のpの各位について
互いに接続する回路のうち、指定されたpに対応する回
路のみを選択して接続するセレクタを有してなるように
構成する。
[Detailed Description of the Invention] [Summary] Regarding a series PN pattern parallel generation circuit that generates series PN patterns (pseudo-random patterns) in parallel, it is possible to output series PN patterns of any order in parallel with any width. The purpose is to configure the width to be larger than the order of the PN pattern or to be variable within the following specified range, with p, n, m, I and J set to n≧ J≧p≧I,
When n>m is a natural number that satisfies E to be applied to the register in the first row
n consisting of the input values of each of n registers in an n-th order feedback shift register circuit comprising an OR circuit.
n× expressing the relationship between a dimensional number vector and an n-dimensional number vector consisting of the output values of each of the n registers.
A square matrix obtained by raising an n-dimensional square matrix to the first power, and the above J
For each position of p that satisfies ≧p≧I+1, based on the square matrix obtained by raising the square matrix to the pth power, the above J≧p≧I+1
For each position of p that satisfies
Form a matrix of n+J-I rows and n columns with one row element, and
an n-dimensional number vector consisting of the input values of each of the n registers, and an n-dimensional number vector consisting of the output value of each of the n registers;
The relationship with the dimension vector is n×n composed of the pth row to p+n−1 row elements of the n+J−I row n column matrix.
A circuit that connects the input and output of each register to each other as represented by a matrix is provided for each position of p in the range of J≧p≧I+1 using the n registers in common, and Of the circuits that connect the inputs and outputs of each register of the registers to each other for each position of p in the range of J≧p≧I+1, the selector selects and connects only the circuit corresponding to a specified p. Configure it so that

〔産業上の利用分野〕[Industrial application field]

本発明は、直列PNパターン(擬似ランダムパターン)
を並列に発生する直列PNパターン並列発生回路に関す
る。
The present invention uses a serial PN pattern (pseudorandom pattern)
This invention relates to a series PN pattern parallel generation circuit that generates PN patterns in parallel.

直列PNパターン(擬似ランダムパターン)を発生する
ためには、n次の生成多項式 に基づく、周期2″−1のM系列発生回路が用いられて
いるが、このPNパターンをシリアルに発生させるため
には、発生させる回路も、このシリアル出力に等しいビ
ットレートで動作する必要があり、実現が困難となった
り、高速動作のために電力消費の大きい回路構成を用い
る必要が生ずる。
In order to generate a serial PN pattern (pseudo-random pattern), an M-sequence generation circuit with a period of 2''-1 based on an n-th order generator polynomial is used. In this case, the circuit that generates the serial output must also operate at a bit rate equal to this serial output, which may be difficult to implement or require the use of a circuit configuration that consumes a large amount of power in order to operate at high speed.

そのため、パラレル/シリアル変換することにより直列
PNパターンの所定の長さの部分に等しくなるような並
列パターンを発生した後、この並列パターンをパラレル
/シリアル変換することにより、目的の直列パターンを
得る技術が知られている。これにより、擬似ランダムパ
ターンの発生回路の動作速度は上記の並列パターンの幅
に等しい倍数だけ遅くすることができる。
Therefore, the technique is to generate a parallel pattern that is equal to a predetermined length of a serial PN pattern by performing parallel/serial conversion, and then to obtain the desired serial pattern by performing parallel/serial conversion on this parallel pattern. It has been known. Thereby, the operating speed of the pseudo-random pattern generation circuit can be slowed down by a multiple equal to the width of the parallel pattern.

このような直列PNパターン(擬似ランダムパターン)
を並列に発生する直列PNパターン並列発生回路は、使
用目的に応じて任意の次数のPNパターンを任意の幅(
並列度)で出力する回路を構成することができることが
望まれており、さらに、このような回路をLSI化する
場合には、同一の回路において並列度を容易に変更でき
ることが望ましい。
Such a series PN pattern (pseudorandom pattern)
The series PN pattern parallel generation circuit generates PN patterns of any order in parallel with any width (
It is desirable to be able to configure a circuit that outputs data with parallelism (degree of parallelism), and furthermore, when such a circuit is to be integrated into an LSI, it is desirable to be able to easily change the degree of parallelism in the same circuit.

〔従来の技術および発明が解決しようとする課題〕従来
の技術において、直列PNパターン(擬似ランダムパタ
ーン)を並列に発生する直列PNパターン並列発生回路
を構成する第1の方法は、並列出力の幅(並列度)pが
p=2kを満たすときにのみ用いられるもので、生成多
項式の次数をnとするとき、2” /pビットづつ直列
パターンの位相をずらしたp個の同−M系列を並列に設
けることによるものである。
[Prior art and problems to be solved by the invention] In the conventional technology, the first method of configuring a series PN pattern parallel generation circuit that generates series PN patterns (pseudorandom patterns) in parallel is to (Parallelism degree) This is used only when p satisfies p=2k, and when the degree of the generator polynomial is n, p identical −M sequences with the phase of the serial pattern shifted by 2”/p bits are used. This is by providing them in parallel.

また、第2の方法は、p≦n (pがn以下)のときに
のみ用いられ、n次の生成多項式Xh+X″1±1  
(1<m<n)に基づく、周期2111のM系列発生回
路を構成するn個のフリップフロップ回路各々のデータ
入力d+  (i=1〜n)を要素とする数ベクトルd
と、各々のデータ出力Ql  (1=1〜n)を要素と
する数ベクトルqとの関係をd=Aqで表すn次の正方
行列Aを基に、A’を計算し、各々のデータ入力di 
(1=1〜n)を要素とする数ベクトルdと、各々のデ
ータ出力qt(i=1〜n)を要素とする数ベクトルq
との関係がd = AP qで表わされる回路を構成し
、この回路を構成するn個のフリップフロップ回路のう
ち任意の連続するp個のフリップフロップ回路の出力を
並列に取り出すことによるものである。
In addition, the second method is used only when p≦n (p is less than or equal to n), and the n-th order generator polynomial Xh+X″1±1
(1<m<n), a number vector d whose elements are data inputs d+ (i=1 to n) of each of n flip-flop circuits constituting an M-sequence generation circuit with a period of 2111
A' is calculated based on the n-th order square matrix A where d=Aq represents the relationship between the number vector q whose elements are each data output Ql (1=1 to n), and each data input di
A number vector d whose elements are (1=1 to n) and a number vector q whose elements are each data output qt (i=1 to n)
This is done by constructing a circuit whose relationship is expressed by d = AP q, and taking out in parallel the outputs of any p consecutive flip-flop circuits among the n flip-flop circuits that constitute this circuit. .

しかしながら、従来は、同一の回路において並列度を容
易に変更できる技術は存在しなかった。
However, in the past, there was no technology that could easily change the degree of parallelism in the same circuit.

さらに、上記の第1および第2の方法によっては、それ
ぞれ、p’=2にの場合、および、p≦nの場合につい
ては、直列PNパターン(擬似ランダムパターン)を並
列に発生する直列PNパターン並列発生回路を構成する
ことができるが、それ以外の任意のpについて直列PN
パターン(擬似ランダムパターン)を並列に発生する直
列PNパターン並列発生回路を構成することはできない
という問題があった。
Furthermore, depending on the first and second methods described above, in the case of p'=2 and the case of p≦n, a series PN pattern that generates a series PN pattern (pseudorandom pattern) in parallel, respectively. A parallel generation circuit can be constructed, but a series PN for any other p
There is a problem in that it is not possible to construct a series PN pattern parallel generation circuit that generates patterns (pseudo-random patterns) in parallel.

本発明は、上記の問題点に鑑み、なされたもので、任意
の次数の直列PNパターンを任意の幅で並列に出力する
ことができ、且つ、この幅を、該PNパターンの次数よ
り大きいか、または、以下の指定された範囲で可変にで
きるように構成することができる直列PNパターン並列
発生回路を提供すること、および該直列PNパターン並
列発生回路の構成方法を提供することを目的とするもの
である。
The present invention has been made in view of the above-mentioned problems, and it is possible to output serial PN patterns of any order in parallel with any width, and to set this width to be larger than the order of the PN pattern. Alternatively, it is an object of the present invention to provide a series PN pattern parallel generation circuit that can be configured to be variable within the following specified range, and to provide a method for configuring the series PN pattern parallel generation circuit. It is something.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は、本発明の第1の形態による直列PNパターン
並列発生回路の構成方法の基本手順を示す図である。本
発明の第1の形態においては、p。
FIG. 1 is a diagram showing the basic procedure of a method for configuring a series PN pattern parallel generation circuit according to a first embodiment of the present invention. In the first form of the invention, p.

n、m、IおよびJをn≧J≧p≧I、n>mを満足す
る自然数とする。
Let n, m, I, and J be natural numbers satisfying n≧J≧p≧I and n>m.

第1図において、(1)は、n個のレジスタからなるn
段のシフトレジスタと、前記シフトレジスタにおける最
終段のレジスタ出力と第m段目のレジスタ出力との排他
的論理和を第1段目のレジスタに印加するEOR回路と
を有してなるn次の帰還型シフトレジスタ回路を構成す
る第1のステップ、(2)は、前記n段の帰還型シフト
レジスタにおけるn個のレジスタの各々の入力の値から
なるn次元の数ベクトルと、該n個のレジスタの各々の
出力の値からなるn次元の数ベクトルとの関係を表現す
るn×n次元の正方行列を求める第2のステップ、 (3)は、前記正方行列を1乗した正方行列を求め、前
記j≧p≧I+lを満足するpの各位について、前記正
方行列をp乗した正方行列を求める第3のステップ、 (4)は、前記J≧p≧I+1を満足するpの各値につ
いて、前Ep乗した正方行列各々の第n行目の行ベクト
ルαpを求めて、該J≧p≧I+1の範囲の行ベクトル
αpを、それぞれ、n+p −y11成分とし、前記n
×n次元の正方行列を1〜n行成分とするn+J−I行
n列の行列を形成する第4のステップ、そして、 (5)および(6)は、n個のレジスタの各々の入力の
値からなるn次元の数ベクトルと、該n個のレジスタの
各々の出力の値からなるn次元の数ベクトルとの関係が
前記n+J−I行n列の行列の第p行〜第p+n−1行
成分から構成されるn×n行列によって表現されるよう
に各レジスタの入力および出力を互いに接続する回路を
、前記n個のレジスタを共通に用いて、前記J≧p≧I
+1の範囲の各pの値について構成する第5のステップ
、および、 前記n個のレジスタの各レジスタの入力および出力を前
記J≧p≧I+1の範囲の各pの値について互いに接続
する回路のうち、指定されたpに対応する回路のみを選
択して接続するセレクタを設ける第6のステップを示す
ものである。
In FIG. 1, (1) is n consisting of n registers.
an n-th stage shift register, and an EOR circuit that applies an exclusive OR of the final stage register output and the m-th stage register output in the shift register to the first stage register. The first step (2) of configuring the feedback shift register circuit is to obtain an n-dimensional number vector consisting of the input values of each of the n registers in the n-stage feedback shift register; The second step is to obtain an n×n-dimensional square matrix that expresses the relationship with the n-dimensional number vector consisting of the value of each output of the register. (3) is to obtain a square matrix that is the square matrix raised to the first power. , a third step of calculating a square matrix obtained by raising the square matrix to the p power for each position of p that satisfies the above j≧p≧I+l; (4) is for each value of p that satisfies the above J≧p≧I+1; , the n-th row vector αp of each of the square matrices raised to the power of Ep is determined, and each of the row vectors αp in the range of J≧p≧I+1 is set to n+p −y11 components, and the n
The fourth step is to form an n+J-I row and n column matrix with xn-dimensional square matrix as 1 to n row elements, and (5) and (6) are The relationship between the n-dimensional number vector consisting of values and the n-dimensional number vector consisting of the output values of each of the n registers is the pth row to p+n-1 of the n+J-I row n column matrix. By using the n registers in common, a circuit that connects the input and output of each register to each other as represented by an n×n matrix composed of row components, and the J≧p≧I
a fifth step of configuring for each value of p in the range J≧p≧I+1, and connecting the input and output of each of the n registers to each other for each value of p in the range J≧p≧I+1; The sixth step is to provide a selector that selects and connects only the circuit corresponding to the specified p.

第2図は、本発明の第2の形態による直列PNパターン
並列発生回路の構成方法の基本手順を示す図である。本
発明の第2の形態においては、N。
FIG. 2 is a diagram showing the basic procedure of a method for configuring a series PN pattern parallel generation circuit according to a second embodiment of the present invention. In a second form of the invention, N.

p、 n、 m、  IおよびJをN≧J≧p≧I>n
>mを満足する自然数とする。
p, n, m, I and J as N≧J≧p≧I>n
>M is a natural number that satisfies.

第2図において、(1)は、n個のレジスタからなるn
段のシフトレジスタと、前記シフトレジスタにおける最
終段のレジスタ出力と第m段目のレジスタ出力との排他
的論理和を第1段目のレジスタに印加するEOR回路と
を有してなるn次の帰還型シフトレジスタ回路、および
、前記n段のシフトレジスタの最終段のレジスタの出力
に直列に接続され、N−n個のレジスタからなるN−n
段のシフトレジスタから構成されるN段の帰還型シフト
レジスタを構成する第1のステップ、〔2〕は、前記N
段の帰還型シフトレジスタにおけるN個のレジスタの各
々の入力の値からなるN次元の数ベクトルと、該N個の
レジスタの各々の出力の値からなるN次元の数ベクトル
との関係を表現するN×N次元の正方行列を求約る第2
のステップ、 (3)は、前記正方行列を1乗した正方行列を求め、前
記J≧p≧I+1を満足するpの各位について、前記正
方行列をp乗した正方行列を求める第3のステップ、 (4)は、前記J≧p≧I+1を満足するpの各位につ
いて、前記p乗した正方行列各々の第n行目の行ベクト
ルαpを求めて、該J≧p≧I+1の範囲の行ベクトル
αpを、それぞれ、N+p−1行成分とし、前記N×N
次元の正方行列を1〜N行成分とするN十J−I行N列
の行列を形成する第4のステップ、そして、 (5)および(6)は、N個のレジスタの各々の入力の
値からなるN次元の数ベクトルと、該N個のレジスタの
各々の出力の値からなるN次元の数ベクトルとの関係が
前記N+J−4行N列の行列の第p行〜第p+N−1行
成分から構成されるN×N行列によって表現されるよう
に各レジスタの入力および出力を互いに接続する回路を
、前記N個のレジスタを共通に用いて、前記J≧p≧I
+1の範囲のpの各位について構成する第5のステップ
、および、 前記N個のレジスタの各レジスタの入力および出力を前
記J≧p≧I+1の範囲のpの各位について互いに接続
する回路のうち、指定されたpに対応する回路のみを選
択して接続するセレクタを設ける第6のステップを示す
ものである。
In FIG. 2, (1) is n consisting of n registers.
an n-th stage shift register, and an EOR circuit that applies an exclusive OR of the final stage register output and the m-th stage register output in the shift register to the first stage register. A feedback shift register circuit, and an N-n circuit connected in series to the output of the last stage register of the n-stage shift registers, and consisting of N-n registers.
The first step [2] of configuring the N-stage feedback shift register composed of the N-stage shift registers includes the N-stage shift register.
Expresses the relationship between an N-dimensional number vector consisting of the input values of each of the N registers in a stage feedback shift register and an N-dimensional number vector consisting of the output values of each of the N registers. The second step to calculate an N×N-dimensional square matrix
Step (3) is a third step of obtaining a square matrix that is the square matrix raised to the 1st power, and for each position of p that satisfies the above J≧p≧I+1, a square matrix that is the square matrix raised to the p power. (4) calculates the row vector αp of the nth row of each square matrix raised to the p power for each position of p that satisfies J≧p≧I+1, and calculates the row vector αp in the range of J≧p≧I+1. Let αp be N+p−1 row components, respectively, and the N×N
The fourth step is to form a matrix of N0J-I rows and N columns with 1 to N row elements as a dimensional square matrix, and (5) and (6) are the inputs of each of the N registers. The relationship between the N-dimensional number vector consisting of the values and the N-dimensional number vector consisting of the output values of each of the N registers is the pth row to p+N-1 of the N+J-4 rows and N columns matrix. A circuit that connects the input and output of each register to each other as expressed by an N×N matrix composed of row components is formed using the N registers in common, and the J≧p≧I
a fifth step configured for each position of p in the range of +1, and a circuit that connects the input and output of each register of the N registers to each other for each position of p in the range of J≧p≧I+1, This shows the sixth step of providing a selector that selects and connects only the circuit corresponding to the specified p.

なお、本発明の第1および第2の形態において、上記の
行列と数ベクトルとの演算において、加算は排他的論理
和としている。
In addition, in the first and second embodiments of the present invention, in the above-mentioned operation between the matrix and the number vector, addition is performed using exclusive OR.

〔作 用〕[For production]

第3図は、n次の生成多項式X” +XI″−’ + 
1(1<m<n)に基づく、周期2″−1のM系列発生
回路の1例としてn次の生成多項式x” +x’+1に
基づく、周期2”−1のM系列発生回路(帰還型シフト
レジスタ回路)の構成を示すものである。第3図におい
て、1□、12.・・・In−2+1、.、1□は、そ
れぞれ、ラッチ回路(レジスタ)、そして、2はEOR
回路であり、各ラッチ回路において、di  (i=l
〜n)はデータ入力端子、そして、Qi(i=1〜n)
は出力端子を示す。
Figure 3 shows the n-th order generator polynomial X"+XI"-' +
1 (1<m<n), an M-sequence generation circuit with a period of 2''-1 (feedback In Fig. 3, 1□, 12. . . In-2+1, ., 1□ are latch circuits (registers), and 2 is an EOR.
circuit, and in each latch circuit, di (i=l
~n) is a data input terminal, and Qi (i=1~n)
indicates an output terminal.

生成多項式X” + X’ + 11:基ツキ、EOR
回路2によって、n−1段目のラッチ回路12の出力q
2およびn段目のラッチ回路11の出力q1の排他的論
理和が演算され、第1段目のラッチ回路1゜のデータ入
力dnに印加されている。
Generator polynomial X" + X' + 11: Base, EOR
By the circuit 2, the output q of the n-1st stage latch circuit 12
The exclusive OR of the outputs q1 of the second and nth stage latch circuits 11 is calculated and applied to the data input dn of the first stage latch circuit 1°.

第4図は、上記の本発明の第2のステップ2によって第
2図のn段の帰還型シフトレジスタ回路の最終段のレジ
スタの出力に直列にp−n個のラッチ回路(レジスタ)
からなるp−n段のシフトレジスタを接続した回路に等
価な、p段の帰還型シフトレジスタ回路の構成を示すも
のである。第4図において、IZ+1’2+・・・1′
、−は、それぞれ、上記のp−n段のシフトレジスタを
構成するp−n個のラッチ回路である。
FIG. 4 shows that pn latch circuits (registers) are connected in series to the output of the final stage register of the n-stage feedback shift register circuit of FIG. 2 by the second step 2 of the present invention.
This figure shows the configuration of a p-stage feedback shift register circuit, which is equivalent to a circuit in which pn-stage shift registers are connected. In Figure 4, IZ+1'2+...1'
, - are pn latch circuits constituting the above pn stage shift register, respectively.

第5図は、第3図に1例を示すようなn段の帰還型シフ
トレジスタ回路を構成するp個のレジスタの各々の入力
値を要素とする数ベクトルと、該p個のレジスタの各々
の出力値を要素とする数ベクトルとの関係を示す正方行
列、あるいは、第4図に1例を示すようなp段の帰還型
シフトレジスタ回路を構成するp個のレジスタの各々の
入力値を要素とする数ベクトルと、該p個のレジスタの
各々の8カ値を要素とする数ベクトルとの関係を示す正
方行列を示す図である。第5図において、Nは上記のn
またはpを示す。第5図は、N段の帰還型シフトレジス
タ回路を構成するN個のレジスタ、.12.・・・1□
2+lN−1+INの各々の入力値をd1、d2.  
・・・dNとし、該p個のレジスタ11+  12+・
・・I W−2+  I N−1+  l )’の各々
の出力値をq1、q2.  ・・・qNとして、これら
の入力値di、d2.  ・・・dNを要素とする数ベ
クトルdと、これらの出力値q、q2゜・・・qNを要
素とする数ベクトルqとの関係を示す正方行列を表現す
る方法を示すものである。
FIG. 5 shows a number vector whose elements are the input values of each of p registers constituting an n-stage feedback shift register circuit, an example of which is shown in FIG. A square matrix showing the relationship with a number vector whose elements are the output values of FIG. 7 is a diagram showing a square matrix showing the relationship between a number vector having elements and a number vector having eight values of each of the p registers as elements; In FIG. 5, N is the above n
or p. FIG. 5 shows N registers, . 12.・・・1□
The input values of 2+lN-1+IN are d1, d2 .
...dN, and the p registers 11+ 12+.
... I W-2+ I N-1+ l )' are expressed as q1, q2 . ...qN, these input values di, d2 . This shows a method of expressing a square matrix showing the relationship between a number vector d whose elements are dN and a number vector q whose elements are these output values q, q2°...qN.

第5図の表現方法においては、上記の正方行列は、n次
の生成多項式X″+X″−” + 1に基づく、周期2
″−1のM系列発生回路(帰還型シフトレジスタ回路)
においては、1≦i≦N (Nはnまたはp)として、
1段目のレジスタの出力qlはi−1段目のレジスタの
入力d1−1として印加されるので互いに等しく、また
、m段目のレジスタの出力とn段目のレジスタの出力と
の排他的論理和が1段目のレジスタの入力として印加さ
れるので、(c1、C2,・・・・cN)= (cl。
In the representation method shown in FIG. 5, the above square matrix has a period of 2 based on the n-th order generator polynomial
″-1 M-sequence generation circuit (feedback shift register circuit)
In, 1≦i≦N (N is n or p),
The output ql of the first stage register is applied as the input d1-1 of the i-1th stage register, so they are equal to each other, and the output of the mth register and the output of the nth stage register are exclusive. Since the logical sum is applied as an input to the first stage register, (c1, C2, . . . cN) = (cl.

C2,−・−−cp)= (0,・・・0,1,0゜・
・0. 、 0・・・0)、または、(cl。
C2,---cp) = (0,...0,1,0゜・
・0. , 0...0), or (cl.

C2,・−−−CN)=(C1,C2,・・・・cn)
 = (1,O,・・0.、0. ・・O)と表される
。ここで、「1」となるのは、第3図の場合、n行m+
1列の要素およびn行1列の要素である。例えば、生成
多項式X″+x’+1に基づく、周期2”−1のM系列
発生回路(帰還型シフトレジスタ回路)の場合、(CI
、C2,・・・・CN)=(c1、C2,・・・・cp
)=(1,1,0・・・0)と表される。ここで、「1
」となるのは、n行1列の要素およびn行2列の要素で
ある。また、第4図の場合、p行p−n+m+1列の要
素およびp行p−n+1列の要素である。例えば、生成
多項式x” +x’ +1に基づく、周期2h−1のM
系列発生回路(帰還型シフトレジスタ回路)の場合、(
C1,C2゜・・・cN)= (C1,C2,・・=c
n)=(0,・・・0.1,、0・・・0)と表される
。ここで、「1」となるのは、p行p−n+2列の要素
およびp行pn+1列の要素である。
C2, ---CN) = (C1, C2, ...cn)
= (1, O, . . . 0., 0. . . O). Here, in the case of FIG. 3, "1" is n row m+
An element in one column and an element in n rows and one column. For example, in the case of an M-sequence generation circuit (feedback shift register circuit) with a period of 2''-1 based on the generator polynomial X''+x'+1, (CI
, C2,...CN) = (c1, C2,...cp
) = (1, 1, 0...0). Here, "1
'' are the elements in row n and column 1 and the element in row n and column 2. Moreover, in the case of FIG. 4, these are the elements in p rows and p-n+m+1 columns and the elements in p rows and p-n+1 columns. For example, M of period 2h−1 based on the generator polynomial
In the case of a sequence generation circuit (feedback type shift register circuit), (
C1, C2゜...cN) = (C1, C2,...=c
n)=(0,...0.1,,0...0). Here, "1" is the element in p row and p-n+2 column and the element in p row and pn+1 column.

また、第4図の場合、クロックの第tサイクルにおける
数ベクトルd (t)とクロックの第t−1サイクルに
おける数ベクトルQ (t+1)との間には、q (t
+1)=d (t)の関係があり、クロックの第tサイ
クルにおける数ベクトルq(1)とクロックの第t−1
サイクルにおける数ベクトルq(t−1)との間には、
q  (t) =Aq(t−1)の関係があるので、q
 (t) =Atq(0)の関係が成り立つ。ここで、
B=A’、そして、r (t)=q  (p*t)とお
くと、r(t)=Btr  (0)=A”tQ (0)
=Q (p*t)となるので、Q (t)ばかりでなく
、r  (t)も第4図の回路の発生系列上にある。そ
して、r(t+1)=q (p* (t+1))もまた
第4図の回路の発生系列上にあり、r (t+1) =
q(p* (t+1))=Br (t)= (A’)q
(p*t)であるので、r (t+1)=Q (p*(
t+1))の各要素はr (t)=q (p*t)の各
要素に対して、その発生系列上でpタイムスロット遷移
している。ここで、第5図の表現方法においては、数ベ
クトルr (t)の1番目の要素rl(t)は、p番目
の要素rp (t)からpタイムスロット遷移している
ので、数ベクトルr(1)の1番目の要素rl(t)は
、次のサイクルノ数ベクトルr (t+1)のp番目の
要素rp(t+1)に発生系列上で連続している。した
がって、数ベクトルr (t)のp個の要素をrp(1
)→rl(t)の方向に多重化(パラレル・シリアル変
換)すれば、元の発生系列が得られる。
In addition, in the case of FIG. 4, between the number vector d (t) in the t-th cycle of the clock and the number vector Q (t+1) in the t-1th cycle of the clock, there is q (t
+1) = d (t), and the number vector q(1) at the tth cycle of the clock and the t-1th cycle of the clock
Between the number vector q(t-1) in the cycle,
Since there is a relationship of q (t) = Aq (t-1), q
The relationship (t)=Atq(0) holds true. here,
If we set B=A' and r (t)=q (p*t), then r(t)=Btr (0)=A''tQ (0)
=Q (p*t), so not only Q (t) but also r (t) is on the generation sequence of the circuit of FIG. Then, r(t+1)=q(p*(t+1)) is also on the generation sequence of the circuit in FIG. 4, and r(t+1)=
q(p*(t+1))=Br(t)=(A')q
(p*t), so r (t+1)=Q (p*(
Each element of t+1)) undergoes p time slot transitions on its generation sequence for each element of r (t)=q (p*t). Here, in the representation method shown in FIG. 5, the first element rl(t) of the number vector r (t) has undergone p time slot transitions from the p-th element rp (t), so the number vector r The first element rl(t) in (1) is continuous on the generation sequence to the pth element rp(t+1) of the next cycle number vector r(t+1). Therefore, p elements of the number vector r (t) are divided into rp(1
)→rl(t) (parallel/serial conversion), the original generation sequence can be obtained.

第1図または第2図の(4)に示されたN+J−I行N
列行列Xの第p行〜第p+N−1行成分から構成される
N×N行列は、前記J≧p≧工の範囲のpの各位につい
てA’に等しい。さらに、第1図または第2図の(5)
に示された式y=xqの第p行〜第p+N−1行成分は
、前記J≧p≧Iの範囲のpの各位についてp個のレジ
スタの入力と出力との関係を示す式d=A’qに等しく
なっている。
N+J-I row N shown in Figure 1 or (4) in Figure 2
The N×N matrix composed of the p-th to p+N-1 row elements of the column matrix X is equal to A' for each position of p in the range of J≧p≧E. Furthermore, (5) in Figure 1 or Figure 2
The components of the pth row to the p+N-1th row of the formula y=xq shown in the formula d= represent the relationship between the input and output of p registers for each position of p in the range of J≧p≧I. It is equal to A'q.

したがって、前記J≧p≧Iの範囲のpの各位について
、第1図または第2図の(5)に示された式y=xqの
第p行〜第p+N−1行成分によって示されるようにp
個のレジスタの入力と出力との接続を行う回路を構成す
れば、直列PNパターンを並列度pで出力する回路が実
現される。さらに、ここで、J≧p≧工の範囲のpの各
位について前記N個のレジスタを共通にして、各レジス
タの入力および出力を前記J≧p≧I+1の範囲の各p
の値について互いに接続する回路のうち、指定されたp
に対応する回路のみを選択して接続するセレクタを設け
ることにより、セレクタの切り換えによって、J≧p≧
I+1の範囲で出力の並列度が可変な回路が実現できる
Therefore, for each position of p in the range J≧p≧I, as shown by the p-th row to p+N-1 row components of the equation y=xq shown in (5) of FIG. 1 or FIG. ni p
By configuring a circuit that connects the inputs and outputs of these registers, a circuit that outputs serial PN patterns with a degree of parallelism p can be realized. Furthermore, here, the N registers are made common for each position of p in the range of J≧p≧T, and the input and output of each register are set for each of the points of p in the range of J≧p≧I+1.
Of the circuits connected to each other for the value of p
By providing a selector that selects and connects only the circuit corresponding to J≧p≧
A circuit whose output parallelism can be varied within the range of I+1 can be realized.

第6図は、このようにして構成される直列PNパターン
並列発生回路の一般構成を示すものである。第6図にお
いて、FF11〜FFNは、上記のn個のレジスタ、1
00は、第1図または第2図の(5)式にしたがって、
レジスタFF11〜FFNの出力q1、q2.  ・・
・qNからJ≧p≧工十1の範囲の全てのpの値につい
て各レジスタへの入力値となる値y、y2.  ・・・
yN+J−■を発生する回路、そして、5EL11〜5
ELNは、上記のセレクタであって、各レジスタに入力
する値を、指定された並列度pの値に応じて、上記のy
1、  y2.  ・・・yN+J−Iの中から選択し
て対応するレジスタに印加するものである。
FIG. 6 shows the general configuration of the series PN pattern parallel generation circuit constructed in this manner. In FIG. 6, FF11 to FFN are the above n registers, 1
00 is according to equation (5) in FIG. 1 or 2,
Outputs q1, q2 . of registers FF11 to FFN.・・・
・Values y, y2 . which are input values to each register for all p values in the range from qN to J≧p≧1 ...
A circuit that generates yN+J-■, and 5EL11 to 5
ELN is the selector mentioned above, and selects the value input to each register according to the value of the specified degree of parallelism p.
1, y2. ...yN+J-I is selected and applied to the corresponding register.

〔実施例〕〔Example〕

〔本発明の第1の実施例〕 本発明の第1の実施例においては、PNパターンの次数
に対する要求がn=5であって、並列度pを1≦p≦5
の範囲で可変にする直列PNパターン発生回路を構成す
る手順の1例、および、構成された直列PNパターン発
生回路を示す。
[First embodiment of the present invention] In the first embodiment of the present invention, the requirement for the order of the PN pattern is n=5, and the degree of parallelism p is 1≦p≦5.
An example of a procedure for configuring a series PN pattern generation circuit that is variable within the range of 1 and the constructed series PN pattern generation circuit are shown below.

第7図は、本発明の第1の実施例において直列PNパタ
ーン並列発生回路を構成するた於に用いる帰還型シフト
レジスタ回路の構成を示すものである。第7図の構成は
、生成多項式X5+X2+1に基づく、周期25−1の
M系列発生回路(帰還型シフトレジスタ回路)を示すも
のであり、FF1〜FF5は、それぞれ、フリップフロ
ップ回路であって、入力diおよび出力qi  (i=
1〜5)を有する。
FIG. 7 shows the configuration of a feedback shift register circuit used to construct a serial PN pattern parallel generation circuit in the first embodiment of the present invention. The configuration of FIG. 7 shows an M-sequence generation circuit (feedback type shift register circuit) with a period of 25-1 based on the generating polynomial X5+X2+1, and FF1 to FF5 are flip-flop circuits, respectively, and input di and output qi (i=
1 to 5).

第7図の構成において、第5図のように、レジスタ(フ
リップフロップ回路)の入力値を要素とする数ベクトル
dと、出力値を要素とする数ベクトルqとの関係を表現
する行列Aは、第8図に示される。次に、本発明の第1
の形態の手順(第1図)に従い、行列Xを求する。上記
のように、■=1≦p≦5=Jであるので、行列Xの第
1〜5行は行列Aに等しい。そして、行列Xの第6行は
行列A2の第5行に等しく、行列Xの第7行は行列A3
の第5行に等しく、行列Xの第8行は行列A4の第5行
に等しく、行列Xの第9行は行列A5の第5行に等しい
ので、結局、第8図に示されるように行列Xが得られる
。第8図の行列Xにおいても、その第2〜6行は行列A
2に等しく、その第3〜7行は行列A3に等しく、その
第4〜8行は行列A4に等しく、その第5〜9行は行列
A5に等しい。゛さらに、本発明の第1の形態の手順(
第1図(5))に従い、y=xqを演算すると、第8図
の右側に示される関係が得られる。本発明により、第8
図の関係式の第1〜5行は式d=Aqに等しい。そして
、第8図の関係式の第2〜6行は式d=A’ qに等し
く、第8図の関係式の第3〜7行は式d=A3 qに等
しく、第8図の関係式の第4〜8行は式d=A’、qに
等しく、第8図の関係式の第5〜9行は式d=A5 q
に等しい。
In the configuration shown in FIG. 7, as shown in FIG. 5, a matrix A expressing the relationship between a number vector d whose elements are input values of a register (flip-flop circuit) and a number vector q whose elements are output values is , shown in FIG. Next, the first aspect of the present invention
The matrix X is obtained according to the procedure of the form (FIG. 1). As described above, since ■=1≦p≦5=J, the first to fifth rows of matrix X are equal to matrix A. And the 6th row of matrix X is equal to the 5th row of matrix A2, and the 7th row of matrix X is equal to matrix A3
The 8th row of the matrix X is equal to the 5th row of the matrix A4, and the 9th row of the matrix X is equal to the 5th row of the matrix A5. A matrix X is obtained. Also in the matrix X in FIG. 8, the 2nd to 6th rows are matrix A
2, its third to seventh rows are equal to matrix A3, its fourth to eighth rows are equal to matrix A4, and its fifth to ninth rows are equal to matrix A5.゛Furthermore, the procedure of the first form of the present invention (
By calculating y=xq according to (5) in FIG. 1, the relationship shown on the right side of FIG. 8 is obtained. According to the present invention, the eighth
The first to fifth lines of the relational expression in the figure are equal to the expression d=Aq. The 2nd to 6th lines of the relational expression in FIG. 8 are equal to the equation d=A' q, and the 3rd to 7th lines of the relational expression in FIG. The 4th to 8th lines of the equation are equal to the equation d=A', q, and the 5th to 9th lines of the relational equation in FIG. 8 are the equation d=A5 q
be equivalent to.

すなわち、ここで、5個のレジスタを共通にするとき、
式d=Aq (第8図の関係式の第1〜5行)の関係が
成立するように5個のレジスタの入出力間を接続すると
、第7図の構成から得られる直列PNパターンの並列度
1 (すなわち、これは第7図の構成のシリアル出力に
等しいので、これ自体は実用上意味はない)の出力が得
られ、式d=A2q (第8図の関係式の第2〜6行)
の関係が成立するように5個のレジスタの入出力間を接
続すると、第7図の構成から得られる直列PNパターン
の並列度2の出力が、連続する任意の2個のレジスタか
ら、得られ、式d=A3q (第8図の関係式の第3〜
7行)の関係が成立するように5個のレジスタの入出力
間を接続すると、第7図の構成から得られる直列PNパ
ターンの並列度3の出力が、連続する任意の3個のレジ
スタから得られ、式d=A’ q (第8図の関係式の
第4〜8行)の関係が成立するように5個のレジスタの
入8力間を接続すると、第7図の構成から得られる直列
PNパターンの並列度4の出力が、連続する任意の4個
のレジスタから得られ、式d=AS q(第8図の関係
式の第5〜9行)の関係が成立するように5個のレジス
タの入出力間を接続すると、第7図の構成から得られる
直列PNパターンの並列度5の出力が5個のレジスタか
ら得られる。ここで、上記の連続するレジスタからの出
力においてM系列の直列PNパターンの各ピットが並ぶ
順は、数ベクトルqの要素に対応する第7図の構成のレ
ジスタ(フリップフロップ回路)を流れるデータの順に
対応して、Q5.Q4.  ・・・qlの順である。
That is, here, when making five registers common,
If the inputs and outputs of the five registers are connected so that the relationship of the formula d = Aq (rows 1 to 5 of the relational formula in Figure 8) is established, the parallel series PN pattern obtained from the configuration in Figure 7 An output of degree 1 (that is, this is equivalent to the serial output of the configuration shown in FIG. 7, so it has no practical meaning in itself) is obtained, and the equation d=A2q (2nd to 6th of the relational expressions in FIG. 8) is obtained. line)
If the inputs and outputs of the five registers are connected so that the following relationship holds true, the output of the serial PN pattern obtained from the configuration shown in Fig. 7 with a degree of parallelism of 2 can be obtained from any two consecutive registers. , formula d=A3q (the third to the relational formulas in Figure 8)
If the input and output of the five registers are connected so that the relationship (7 rows) is established, the output of the serial PN pattern obtained from the configuration shown in Figure 7 with a degree of parallelism of 3 will be output from any three consecutive registers. By connecting the 8 inputs of the 5 registers so that the relationship of the equation d=A' q (lines 4 to 8 of the relational equation in Fig. 8) is established, we obtain the result from the configuration shown in Fig. 7. The parallelism degree 4 output of the serial PN pattern obtained by When the inputs and outputs of the five registers are connected, outputs of the serial PN pattern with a degree of parallelism of 5 obtained from the configuration shown in FIG. 7 can be obtained from the five registers. Here, the order in which the pits of the M-sequence serial PN pattern are lined up in the output from the above-mentioned consecutive registers is determined by the order of the data flowing through the register (flip-flop circuit) with the configuration shown in FIG. 7 corresponding to the elements of the number vector q. Corresponding in order, Q5. Q4. ...The order is ql.

さらに、本発明により、上記の5個のレジスタの入出力
間の接続に関する上記の5種類の接続の何れかを並列度
の指定に応じて切り換えるセレクタを設ける。その結果
は第9図に示されている。
Further, according to the present invention, a selector is provided for switching any one of the five types of connections between the input and output of the five registers in accordance with the designation of the degree of parallelism. The results are shown in FIG.

第9図において、破線101内の構成は、上記の第8図
の関係式から得られる5種類の接続を得るために、5個
のレジスタの出力q、q2.  ・・・q5から第8図
の関係式の右辺の9要素に対応する8カを得るものであ
る。ここで、前述のように、行列と数ベクトルとの演算
において加算は排他的論理和としているので、各加算は
EOR回路によって実現されている。第9図のセレクタ
5EL12は、並列度pが1〜5の何れかに応じて、回
路101の8力のうち、それぞれ、y1、・・・y5を
選択してフリップフロップ回路FF12のデータ入力d
1に印加し、第9図のセレクタ5EL22は、並列度p
が1〜5の何れかに応じて、回路101の出力のうち、
それぞれ、y2.・・・y6を選択してフリップフロッ
プ回路FF22のデータ入力d2に印加し、第9図のセ
レクタ5EL32は、並列度pが1〜5の何れかに応じ
て、回路101の出力のうち、それぞれ、y3.・・・
ylを選択してフリップフロップ回路FF32のデータ
入力d3に印加し、第9図のセレクタ5EL42は、並
列度pが1〜5の何れかに応じて、回路101の出力の
うち、それぞれ、y4.・・・y8を選択してフリップ
フロップ回路FF42のデータ入力d4に印加し、第9
図のセレクタ5EL52は、並列度pが1〜5の何れか
に応じて、回路101の出力のうち、それぞれ、y5.
・・・y9を選択してフリップフロップ回路FF52の
データ入力d5に印加する。こうして、第9図の構成に
おいては、並列度pの指定に応じて、上記の式d=Aq
、式d=A2q、式d=A3q。
In FIG. 9, the configuration within the dashed line 101 consists of the outputs q, q2, . . . . 8 forces corresponding to the 9 elements on the right side of the relational expression in FIG. 8 are obtained from q5. Here, as described above, since addition is performed using exclusive OR in the calculation of a matrix and a number vector, each addition is realized by an EOR circuit. The selector 5EL12 in FIG. 9 selects y1, .
1, and the selector 5EL22 in FIG.
Among the outputs of the circuit 101, depending on which of 1 to 5,
respectively, y2. ...y6 is selected and applied to the data input d2 of the flip-flop circuit FF22, and the selector 5EL32 in FIG. ,y3. ...
y1 is selected and applied to the data input d3 of the flip-flop circuit FF32, and the selector 5EL42 in FIG. 9 selects y4. ... Select y8 and apply it to the data input d4 of the flip-flop circuit FF42, and
The selector 5EL52 in the figure selects y5.
...y9 is selected and applied to the data input d5 of the flip-flop circuit FF52. In this way, in the configuration of FIG. 9, depending on the specification of the degree of parallelism p, the above equation d=Aq
, formula d=A2q, formula d=A3q.

式d=A’ C1,および、式d=A5qの何れかの関
係が成立するように5個のレジスタの入出力間が接続さ
れる。第9図の構成において、多重化順序とじてに示さ
れるように、上記の連続するレジスタからの出力におい
てM系列の直列PNパターンの各ビットが並ぶ順は、数
ベクトルqの要素に対応する第7図の構成のレジスタ(
フリップフロップ回路)を流れるデータの順に対応して
、q5゜q4.・・・qlの順である。なお、この順序
は循環的に入替えてもよい。こうして、これらの並列出
力を上記の順に多重化すれば、25−1の周期を有する
5次の直列PNパターンが得られる。
The inputs and outputs of the five registers are connected so that either of the following relationships: d=A'C1 and d=A5q hold true. In the configuration of FIG. 9, as shown in the multiplexing order, the order in which each bit of the M series of serial PN patterns is arranged in the output from the consecutive registers is the order in which each bit corresponds to the element of the number vector q. Registers with the configuration shown in Figure 7 (
q5° | q4 . ...The order is ql. Note that this order may be changed cyclically. Thus, by multiplexing these parallel outputs in the above order, a 5th order series PN pattern having a period of 25-1 is obtained.

〔本発明の第2の実施例〕 本発明の第2の実施例においては、PNパターンの次数
に対する要求がn=7であって、並列度pを4≦p≦6
の範囲で可変にする直列PNパターン発生回路を構成す
る手順の1例、および、構成された直列PNパターン発
生回路を示す。
[Second Embodiment of the Present Invention] In the second embodiment of the present invention, the requirement for the order of the PN pattern is n=7, and the degree of parallelism p is 4≦p≦6.
An example of a procedure for configuring a series PN pattern generation circuit that is variable within the range of 1 and the constructed series PN pattern generation circuit are shown below.

第10図は、本発明の第2の実施例において直列PNパ
ターン並列発生回路を構成するたtに用いる帰還型シフ
トレジスタ回路の構成を示すものである。第10図の構
成は、生成多項式x’ +x’+1に基づく、周期27
−1のM系列発生回路(帰還型シフトレジスタ回路)を
示すものであり、FFI〜FF7は、それぞれ、フリッ
プフロップ回路であって、入力diおよび出力qi  
(i=1〜7)を有する。
FIG. 10 shows the configuration of a feedback shift register circuit used for constructing a serial PN pattern parallel generation circuit in a second embodiment of the present invention. The configuration in FIG. 10 is based on the generator polynomial x'+x'+1, with period 27
-1 M sequence generation circuit (feedback type shift register circuit), FFI to FF7 are flip-flop circuits, respectively, and input di and output qi
(i=1 to 7).

第10図の構成において、第5図のように、レジスタ 
(フリップフロップ回路)の入力値を要素とする数ベク
トルdと、出力値を要素とする数ベクトルqとの関係を
表現する行列Aは、第11図に示される。次に、本発明
の第1の形態の手順(第1図)に従い、行列Xを求める
。上記のように、I=4≦p≦6=Jであるので、行列
Xの第1〜7行は行列A4に等しい。そして、行列Xの
第8行は行列A5の第7行に等しく、行列Xの第9行は
行列A6の第7行に等しいので、結局、第11図に示さ
れるように行列Xが得られる。第11図の行列Xにおい
ても、その第2〜8行は行列A5に等しく、その第3〜
9行は行列A6に等しい。さらに、本発明の第1の形態
の手順(第1図(5))に従い、y=xqを演算すると
、第11図の右側に示される関係が得られる。本発明に
より、第11図の関係式の第1〜7行は式d=A’ q
に等しい。そして、第11図の関係式の第2〜8行は式
d−A5 qに等しく、第11図の関係式の第3〜9行
は式d=A6 qに等しい。
In the configuration of FIG. 10, as shown in FIG.
A matrix A expressing the relationship between a number vector d whose elements are the input values of the (flip-flop circuit) and a number vector q whose elements are the output values is shown in FIG. Next, the matrix X is determined according to the procedure of the first embodiment of the present invention (FIG. 1). As mentioned above, since I=4≦p≦6=J, the first to seventh rows of matrix X are equal to matrix A4. Then, the 8th row of matrix X is equal to the 7th row of matrix A5, and the 9th row of matrix . Also in the matrix X in FIG. 11, the 2nd to 8th rows are equal to matrix A5, and
9 rows is equal to matrix A6. Furthermore, when y=xq is calculated according to the procedure of the first embodiment of the present invention (FIG. 1 (5)), the relationship shown on the right side of FIG. 11 is obtained. According to the present invention, the first to seventh lines of the relational expression in FIG. 11 are the expression d=A' q
be equivalent to. The 2nd to 8th lines of the relational expression in FIG. 11 are equal to the equation d-A5 q, and the 3rd to 9th lines of the relational equation in FIG. 11 are equal to the equation d=A6 q.

すなわち、ここで、7個のレジスタを共通にするとき、
式d=A’ q (第11図の関係式の第1〜7行)の
関係が成立するように7個のレジスタの入出力間を接続
すると、第10図の構成から得られる直列PNパターン
の並列度4の出力が、連続する任意の4個のレジスタか
ら得られ、式d=A5q(第11図の関係式の第2〜8
行)の関係が成立するように7個のレジスタの入出力間
を接続すると、第10図の構成から得られる直列PNパ
ターンの並列度5の出力が、連続する任意の5個のレジ
スタから、得られ、式d=A6q (第11図の関係式
の第3〜9行)の関係が成立するように7個のレジスタ
の入出力間を接続すると、第10図の構成から得られる
直列PNパターンの並列度6の出力が、連続する任意の
6個のレジスタから得られる。ここで、上記の連続する
レジスタからの出力においてM系列の直列PNパターン
の各ビットが並ぶ順は、数ベクトルqの要素に対応する
第10図の構成のレジスタ(フリップフロップ回路)を
流れるデータの順に対応して、Q?。
That is, here, when making seven registers common,
If the inputs and outputs of the seven registers are connected so that the relationship of the formula d=A' q (lines 1 to 7 of the relational formula in Figure 11) is established, the series PN pattern obtained from the configuration in Figure 10 is obtained. An output with a degree of parallelism of 4 is obtained from any four consecutive registers, and the equation d=A5q (2nd to 8th of the relational equations in FIG. 11)
If the inputs and outputs of the seven registers are connected so that the relationship (row) is established, the output of the serial PN pattern obtained from the configuration shown in FIG. By connecting the inputs and outputs of the seven registers so that the relationship of formula d = A6q (lines 3 to 9 of the relational formula in Figure 11) is established, the series PN obtained from the configuration in Figure 10 is obtained. Outputs with a pattern parallelism of 6 are obtained from any six consecutive registers. Here, the order in which each bit of the M-sequence serial PN pattern is arranged in the output from the above-mentioned consecutive registers is determined by the order of the data flowing through the register (flip-flop circuit) having the configuration shown in FIG. 10 corresponding to the element of the number vector q. Corresponding in order, Q? .

q6.  ・・・qlの順である。q6. ...The order is ql.

さらに、本発明により、上記の7個のレジスタの入出力
間の接続に関する上記の3種類の接続の何れかを並列度
の指定に応じて切り換えるセレクタを設ける。その結果
は第12図に示されている。
Further, according to the present invention, a selector is provided for switching any one of the three types of connections between the input and output of the seven registers according to the designation of the degree of parallelism. The results are shown in FIG.

第12図において、破線102内の構成は、上記の第1
1図の関係式から得られる3種類の接続を得るために、
7個のレジスタの出力q1、q2゜・・・qlから第1
1図の関係式の右辺の9要素に対応する出力を得るもの
である。ここで、前述のように、行列と数ベクトルとの
演算において加算は排他的論理和としているので、各加
算はEOR回路によって実現されている。第12図のセ
レクタ5EL13は、並列度pが4〜6の何れかに応じ
て、回路102の出力のうち、それぞれ、y1、・・・
y3を選択してフリップフロップ回路FF13のデータ
入力d1に印加し、第12図のセレクタ5EL23は、
並列度pが4〜6の何れかに応じて、回路102の出力
のうち、それぞれ、y2.  ・・・y4を選択してフ
リップフロップ回路FF23のデータ入力d2に印加し
、第12図のセレクタ5EL33は、並列度pが4〜6
の何れかに応じて、回路102の出力のうち、それぞれ
、y3.・・・y5を選択してフリップフロップ回路F
F33のデータ入力d3に印加し、第12図のセレクタ
5EL43は、並列度pが4〜6の何れかに応じて、回
路102の出力のうち、それぞれ、y4.・・・y6を
選択してフリップフロップ回路FF43のデータ入力d
4に印加し、第12図のセレクタ5EL53は、並列度
pが4〜6の何れかに応じて、回路102の出力のうち
、それぞれ、y5.・・・ylを選択してフリップフロ
ップ回路FF53のデータ入力d5に印加する。こうし
て、第12図の構成においては、並列度pの指定に応じ
て、上記の式d=A’ C1、式d=AS q、および
、式d=A” qの何れかの関係が成立するように7個
のレジスタの入出力間が接続される。第12図の構成に
おいて、多重化順序とじてに示されるように、上記の連
続するレジスタからの出力においてM系列の直列PNパ
ターンの各ビットが並ぶ順は、数ベクトルqの要素に対
応する第10図の構成のレジスタ(フリップフロップ回
路)を流れるデータの順に対応して、ql。
In FIG. 12, the configuration within the broken line 102 is the first configuration described above.
In order to obtain the three types of connections obtained from the relational expression in Figure 1,
The first output from the seven registers q1, q2゜...ql
Outputs corresponding to the nine elements on the right side of the relational expression in FIG. 1 are obtained. Here, as described above, since addition is performed using exclusive OR in the calculation of a matrix and a number vector, each addition is realized by an EOR circuit. The selector 5EL13 in FIG. 12 selects the outputs of the circuit 102, y1, .
y3 is selected and applied to the data input d1 of the flip-flop circuit FF13, and the selector 5EL23 in FIG.
Depending on whether the degree of parallelism p is 4 to 6, the outputs of the circuit 102 are y2. . . . y4 is selected and applied to the data input d2 of the flip-flop circuit FF23, and the selector 5EL33 in FIG.
y3 . ...Select y5 and flip-flop circuit F
F33 is applied to the data input d3, and the selector 5EL43 in FIG. 12 selects y4. ...Select y6 and input data d of flip-flop circuit FF43
4, and the selector 5EL53 in FIG. 12 selects y5. ...yl is selected and applied to the data input d5 of the flip-flop circuit FF53. In this way, in the configuration shown in FIG. 12, depending on the specification of the degree of parallelism p, any of the relationships among the above equations d=A' C1, d=AS q, and d=A'' q hold true. The inputs and outputs of the seven registers are connected as shown in FIG. The order in which the bits are arranged is ql, which corresponds to the order of data flowing through the register (flip-flop circuit) having the configuration shown in FIG. 10, which corresponds to the elements of the number vector q.

Q6.  ・・・qlの順である。なお、この順序は循
環的に入替えてもよい。こうして、これらの並列出力を
上記の順に多重化すれば、27−1の周期を有する7次
の直列PNパターンが得られる。
Q6. ...The order is ql. Note that this order may be changed cyclically. Thus, by multiplexing these parallel outputs in the above order, a 7th order series PN pattern having a period of 27-1 is obtained.

〔本発明の第3の実施例〕 本発明の第3の実施例においては、PNパターンの次数
に対する要求がn=7であって、並列度pを8≦p≦9
の範囲で可変にする直列PNパターン発生回路を構成す
る手順の1例、および、構成された直列PNパターン発
生回路を示す。
[Third Embodiment of the Present Invention] In the third embodiment of the present invention, the requirement for the order of the PN pattern is n=7, and the degree of parallelism p is 8≦p≦9.
An example of a procedure for configuring a series PN pattern generation circuit that is variable within the range of 1 and the constructed series PN pattern generation circuit are shown below.

第13図は、本発明の第3の実施例において直列PNパ
ターン並列発生回路を構成するたtに用いる帰還型シフ
トレジスタ回路の構成を示すものである。第13図の構
成は、生成多項式x7+x’+1に基づく、周期27−
1のM系列発生回路(帰還型シフトレジスタ回路)の出
力側に直列に2ビツトのシフトレジスタを接続してなる
ものであり、FF15〜FF95は、それぞれ、フリッ
プフロップ回路であって、入力diおよび出力qi  
(i=1〜9)を有する。
FIG. 13 shows the configuration of a feedback shift register circuit used for constructing a serial PN pattern parallel generation circuit in a third embodiment of the present invention. The configuration in FIG. 13 is based on the generator polynomial x7+x'+1, with a period of 27−
A 2-bit shift register is connected in series to the output side of the M-sequence generation circuit (feedback type shift register circuit) No. 1, and FF15 to FF95 are flip-flop circuits, respectively, and inputs di and output qi
(i=1 to 9).

第13図の構成において、第5図のように、レジスタ(
フリップフロップ回路)の入力値を要素とする数ベクト
ルdと、出力値を要素とする数ベクトルqとの関係を表
現する行列Aは、第14図に示される。次に、本発明の
第2の形態の手順(第2図)に従い、行列Xを求める。
In the configuration of FIG. 13, as shown in FIG.
A matrix A expressing the relationship between a number vector d whose elements are input values of a flip-flop circuit and a number vector q whose elements are output values is shown in FIG. Next, the matrix X is determined according to the procedure of the second embodiment of the present invention (FIG. 2).

上記のように、■=8≦p≦9=Jであるので、行列X
の第1〜9行は行列A8に等しい。そして、行列Xの第
10行は行列A9の第9行に等しいので、結局、第14
図に示されるように行列Xが得られる。第14図の行列
Xにおいても、その第2〜10行は行列A9に等しい。
As mentioned above, since ■=8≦p≦9=J, the matrix
The first to ninth rows of are equal to matrix A8. Then, since the 10th row of matrix X is equal to the 9th row of matrix A9, the 14th row
A matrix X is obtained as shown in the figure. The second to tenth rows of matrix X in FIG. 14 are also equal to matrix A9.

さらに、本発明の第2の形態の手順(第1図(5))に
従い、y=xqを演算すると、第14図の右側に示され
る関係が得られる。
Furthermore, when y=xq is calculated according to the procedure of the second embodiment of the present invention ((5) in FIG. 1), the relationship shown on the right side of FIG. 14 is obtained.

本発明により、第14図の関係式の第1〜9行は式d=
A8qに等しい。そして、第14図の関係式の第2〜1
0行は式d=A9 (lに等しい。
According to the present invention, the first to ninth lines of the relational expression in FIG. 14 are replaced by the expression d=
Equal to A8q. Then, 2nd to 1st of the relational expressions in FIG.
Row 0 is the formula d=A9 (equal to l.

すなわち、ここで、9個のレジスタを共通にするとき、
式d=A” q (第14図の関係式の第1〜9行)の
関係が成立するように9個のレジスタの入出力間を接続
すると、第13図の構成から得られる直列PNパターン
の並列度8の出力が、連続する任意の8個のレジスタか
ら得られ、式d=A’ q (第14図の関係式の第2
〜10行)の関係が成立するように9個のレジスタの入
出力間を接続すると、第13図の構成から得られる直列
PNパターンの並列度9の出力が、連続する9個のレジ
スタから得られる。ここで、上記の連続するレジスタか
らの出力においてM系列の直列PNパターンの各ビット
が並ぶ順は、数ベクトルqの要素に対応する第13図の
構成のレジスタ(フリップフロップ回路)を流れるデー
タの順に対応して、q9.q8.  ・・・qlの順で
ある。
That is, here, when making nine registers common,
If the inputs and outputs of the nine registers are connected so that the relationship of the formula d=A''q (lines 1 to 9 of the relational formula in Figure 14) is established, the series PN pattern obtained from the configuration in Figure 13 is obtained. An output with a parallelism of 8 is obtained from any eight consecutive registers, and the equation d=A' q (the second relational expression in FIG.
By connecting the inputs and outputs of the nine registers so that the relationship (from rows 10 to 10) holds, the output of the serial PN pattern with a degree of parallelism of 9 obtained from the configuration shown in Fig. 13 is obtained from the nine consecutive registers. It will be done. Here, the order in which each bit of the M-series serial PN pattern is arranged in the output from the above-mentioned consecutive registers is determined by the order in which the bits of the M-sequence serial PN pattern are arranged according to the data flowing through the register (flip-flop circuit) having the configuration shown in FIG. 13 corresponding to the element of the number vector q. Corresponding in order, q9. q8. ...The order is ql.

さらに、本発明により、上記の9個のレジスタの入出力
間の接続に関する上記の2種類の接続の何れかを並列度
の指定に応じて切り換えるセレクタを設ける。その結果
は第15図に示されている。
Further, according to the present invention, a selector is provided for switching between the two types of connections between the input and output of the nine registers according to the designation of the degree of parallelism. The results are shown in FIG.

第15図において、破線103内の構成は、上記の第1
4図の関係式から得られる2種類の接続を得るために、
9個のレジスタの出力Q1、Q2゜・・・q9から第1
4図の関係式の右辺の10要素に対応する出力を得るも
のである。ここで、前述のように、行列と数ベクトルと
の演算において加算は排他的論理和としているので、各
加算はEOR回路によって実現されている。第15図の
セレクタ5EL14は、並列度pが8および9の何れか
に応じて、回路103の出力のうち、それぞれ、ylお
よびy2を選択してフリップフロップ回路FF14のデ
ータ入力d1に印加し、第15図のセレクタ5EL24
は、並列度pが8および9の何れかに応じて、回路10
3の出力のうち、それぞれ、y2およびy3を選択して
フリップフロップ回路FF24のデータ入力d2に印加
し、第15図のセレクタ5EL34は、並列度pが8お
よび9の何れかに応じて、回路103の出力のうち、そ
れぞれ、y3およびy4を選択してフリップフロップ回
路FF34のデータ入力d3に印加し、第15図のセレ
クタ5EL44は、並列度pが8および9の何れかに応
じて、回路103の出力のうち、それぞれ、y4および
y5を選択してフリップフロップ回路FF44のデータ
入力d4に印加し、第15図のセレクタ5EL54は、
並列度pが8および9の何れかに応じて、回路103の
出力のうち、それぞれ、y5およびy6を選択してフリ
ップフロップ回路FF54のデータ入力d5に印加し、
第15図のセレクタ5EL64は、並列度pが8および
9の何れかに応じて、回路103の出力のうち、それぞ
れ、y6およびylを選択してフリップフロップ回路F
F64のデータ入力d6に印加し、第15図のセレクタ
5EL74は、並列度pが8および9の何れかに応じて
、回路103の出力のうち、それぞれ、ylおよびy8
を選択してフリップフロップ回路FF74のデータ入力
d7に印加し、第15図のセレクタ5EL84は、並列
度pが8および9の何れかに応じて、回路103の出力
のうち、それぞれ、y8およびy9を選択してフリップ
フロップ回路FF84(Df−夕入力d8に印加し、第
15rl!J(7)セレクタ5EL94は、並列度pが
8および9の何れかに応じて、回路103の出力のうち
、それぞれ、y9およびylOを選択してフリップフロ
ップ回路FF94のデータ入力d9に印加する。
In FIG. 15, the configuration within the broken line 103 is the first configuration described above.
In order to obtain the two types of connections obtained from the relational expression in Figure 4,
Outputs of nine registers Q1, Q2゜...q9 to the first
Outputs corresponding to the 10 elements on the right side of the relational expression in FIG. 4 are obtained. Here, as described above, since addition is performed using exclusive OR in the calculation of a matrix and a number vector, each addition is realized by an EOR circuit. The selector 5EL14 in FIG. 15 selects yl and y2 from the outputs of the circuit 103 depending on whether the degree of parallelism p is 8 or 9 and applies them to the data input d1 of the flip-flop circuit FF14, Selector 5EL24 in Figure 15
is the circuit 10 depending on whether the degree of parallelism p is 8 or 9.
Out of the outputs of 3, y2 and y3 are selected and applied to the data input d2 of the flip-flop circuit FF24, and the selector 5EL34 in FIG. Out of the outputs of 103, y3 and y4 are respectively selected and applied to the data input d3 of the flip-flop circuit FF34, and the selector 5EL44 in FIG. Out of the outputs of 103, y4 and y5 are selected and applied to the data input d4 of the flip-flop circuit FF44, and the selector 5EL54 in FIG.
Depending on whether the degree of parallelism p is 8 or 9, y5 and y6 are selected from among the outputs of the circuit 103 and applied to the data input d5 of the flip-flop circuit FF54,
The selector 5EL64 in FIG. 15 selects y6 and yl from the outputs of the circuit 103 depending on whether the degree of parallelism p is 8 or 9, respectively, and selects the flip-flop circuit F.
F64 data input d6, selector 5EL74 in FIG.
is selected and applied to the data input d7 of the flip-flop circuit FF74, and the selector 5EL84 in FIG. is selected and applied to the flip-flop circuit FF84 (Df-1 input d8), and the 15th rl! y9 and ylO are selected and applied to the data input d9 of the flip-flop circuit FF94, respectively.

こうして、第15図の構成においては、並列度pの指定
に応じて、上記の式d=A” q、および、式d=A9
qの何れかの関係が成立するように9個のレジスタの入
出力間が接続される。第15図の構成において、多重化
順序とじてに示されるように、上記の連続するレジスタ
からの出力においてM系列の直列PNパターンの各ビッ
トが並ぶ順は、数ベクトルqの要素に対応する第13図
の構成のレジスタ (フリップフロップ回路)を流れる
データの順に対応して、q9.q8.  ・・・qlの
順である。なお、この順序は循環的に入替えてもよい。
In this way, in the configuration shown in FIG. 15, depending on the specification of the degree of parallelism p, the above equations d=A''q and d=A9
The inputs and outputs of the nine registers are connected so that any one of the relationships q holds true. In the configuration of FIG. 15, as shown in the multiplexing order, the order in which each bit of the M series of serial PN patterns is arranged in the output from the consecutive registers is the order in which each bit corresponds to the element of the number vector q. Corresponding to the order of data flowing through the register (flip-flop circuit) having the configuration shown in FIG. 13, q9. q8. ...The order is ql. Note that this order may be changed cyclically.

こうして、これらの並列出力を上記の順に多重化すれば
、27−1の周期を有する7次の直列PNパターンが得
られる。
Thus, by multiplexing these parallel outputs in the above order, a 7th order series PN pattern having a period of 27-1 is obtained.

〔応用例〕[Application example]

第16図は、本発明による直列PNパターン並列発生回
路の応用例を示すものである。第16図は、並列度8の
並列入力データd1、d2.  ・・・d8を多重化し
てシリアルに伝送する際に、シリアルデータをシリアル
なPNパターンによってスクランブルする代わりに、多
重化する前の並列度8の並列入力データdi、d2. 
 ・・・d8を、第16図の直列PNパターン並列発生
回路113の並列出力r1〜r8によって、それぞれス
クランブルする(排他的論理和をとる)。前述のように
、本発明による直列PNパターン並列発生回路113の
並列出力r1〜r8は、パラレル/シリアル変換するこ
とにより直列PNパターンの所定の長さの部分に等しく
なるような並列パターンであり、さらに、第16図の並
列入力データdl。
FIG. 16 shows an example of application of the series PN pattern parallel generation circuit according to the present invention. FIG. 16 shows parallel input data d1, d2 . When multiplexing and serially transmitting d8, instead of scrambling the serial data with a serial PN pattern, the parallel input data di, d2 .
. . d8 are scrambled (exclusive ORed) using the parallel outputs r1 to r8 of the serial PN pattern parallel generation circuit 113 shown in FIG. 16, respectively. As described above, the parallel outputs r1 to r8 of the serial PN pattern parallel generation circuit 113 according to the present invention are parallel patterns that become equal to a predetermined length portion of the serial PN pattern by performing parallel/serial conversion, Furthermore, parallel input data dl in FIG.

d2.  ・・・d8は、上記のスクランブルの後、多
重化回路において多重化されるので、シリアルデータを
シリアルなPNパターンによってスクランブルしたもの
と同一のシリアルデータが、第16図の構成によって得
られる。
d2. . . d8 is multiplexed in the multiplexing circuit after the above scrambling, so that the same serial data as serial data scrambled with a serial PN pattern can be obtained with the configuration shown in FIG.

〔発明の効果〕〔Effect of the invention〕

本発明の直列PNパターン並列発生回路によれば、任意
の次数の直列PNパターンを任意の幅で並列に出力する
ことができ、且つ、この幅を、該PNパターンの次数よ
り大きいか、または、以下の指定された範囲で可変にで
きるように構成することができる。
According to the series PN pattern parallel generation circuit of the present invention, it is possible to output serial PN patterns of any order in parallel with any width, and this width is greater than the order of the PN pattern, or It can be configured to be variable within the specified range below.

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

第1図は、本発明の第1の形態による直列PNパターン
並列発生回路の構成方法の基本手順を示す図、 第2図は、本発明の第2の形態による直列PNパターン
並列発生回路の構成方法の基本手順を示す図、 第3図は、n段の帰還型シフトレジスタ回路の構成を示
す図、 第4図は、n段の帰還型シフトレジスタ回路の最終段の
レジスタの出力に直列にp−n個のレジスタからなるp
−n段のシフトレジスタを接続してなるp段の帰還型シ
フトレジスタ回路の構成を示す図、 第5図は、第3図に1例を示すようなn段の帰還型シフ
トレジスタ回路を構成するp個のレジスタの各々の入力
値を要素とする数ベクトルと、該p個のレジスタの各々
の出力値を要素とする数ベクトルとの関係を示す正方行
列、あるいは、第4図に1例を示すようなp段の帰還型
シフトレジスタ回路を構成するp個のレジスタの各々の
入力値を要素とする数ベクトルと、該p個のレジスタの
各々の出力値を要素とする数ベクトルとの関係を示す正
方行列を示す図、 第6図は、本発明によって構成される直列PNパターン
並列発生回路の一般構成を示す図、第7図は、本発明の
第1の実施例において直列PNパターン並列発生回路を
構成するた島に用いる帰還型シフトレジスタ回路の構成
を示す図、第8図は、本発明の第1の実施例における行
列XおよびAを示す図、 第9図は、本発明の第1の実施例における直列PNパタ
ーン並列発生回路の構成を示す図、第10図は、本発明
の第2の実施例において直列PNパターン並列発生回路
を構成するために用いる帰還型シフトレジスタ回路の構
成を示す図、第11図は、本発明の第2の実施例におけ
る行列XおよびAを示す図、 第12図は、本発明の第2の実施例における直列PNパ
ターン並列発生回路の構成を示す図、第13図は、本発
明の第3の実施例において直列PNパターン並列発生回
路を構成するために用いる帰還型シフトレジスタ回路の
構成を示す図、第14図は、本発明の第3の実施例にお
ける行列XおよびAを示す図、 第15図は、本発明の第3の実施例における直列PNパ
ターン並列発生回路の構成を示す図、そして、 第16図は、本発明の直列PNパターン並列発生回路の
応用の1例を示す図である。 〔符号の説明〕 FFI〜FF9.FF11〜FFN、FF12〜FF5
2.FF13〜FF73.FF14〜FF94.FF1
5〜FF95  レジスタ (フリップフロップ回路)
、 5EL11 〜5ELN、5EL12〜5EL52.5
EL13〜5EL73,5EL14〜5EL94  セ
レクタ、 2.21,22.31〜35.41〜46゜1〜59−
・EOR回路、 113 直列PNパターン並列発生回路、110 多重
化回路。
FIG. 1 is a diagram showing the basic procedure for configuring a series PN pattern parallel generation circuit according to a first embodiment of the present invention, and FIG. 2 is a diagram showing the configuration of a series PN pattern parallel generation circuit according to a second embodiment of the present invention. Figure 3 is a diagram showing the configuration of an n-stage feedback shift register circuit; Figure 4 is a diagram showing the basic steps of the method; Figure 4 is a diagram showing the configuration of an n-stage feedback shift register circuit; p consisting of p−n registers
-A diagram showing the configuration of a p-stage feedback shift register circuit formed by connecting n-stage shift registers; FIG. 5 shows the configuration of an n-stage feedback shift register circuit, an example of which is shown in FIG. 3. A square matrix showing the relationship between a number vector whose elements are the input values of each of the p registers and a number vector whose elements are the output values of each of the p registers, or an example shown in Fig. 4. A number vector whose elements are the input values of each of the p registers constituting a p-stage feedback shift register circuit such as shown in FIG. FIG. 6 is a diagram showing a general configuration of a series PN pattern parallel generation circuit constructed according to the present invention, and FIG. FIG. 8 is a diagram showing the configuration of a feedback shift register circuit used in a parallel generator circuit, FIG. 8 is a diagram showing matrices X and A in the first embodiment of the present invention, and FIG. 9 is a diagram showing the matrix X and A in the first embodiment of the invention. FIG. 10 is a diagram showing the configuration of the serial PN pattern parallel generation circuit in the first embodiment of the present invention, and FIG. 10 is a feedback shift register circuit used to configure the series PN pattern parallel generation circuit in the second embodiment of the present invention. 11 is a diagram showing the matrix X and A in the second embodiment of the present invention. FIG. 12 is a diagram showing the configuration of the series PN pattern parallel generation circuit in the second embodiment of the present invention. FIG. 13 is a diagram showing the configuration of a feedback shift register circuit used to configure a series PN pattern parallel generation circuit in the third embodiment of the present invention, and FIG. 15 is a diagram showing the configuration of the series PN pattern parallel generation circuit in the third embodiment of the present invention, and FIG. FIG. 3 is a diagram showing an example of an application of a PN pattern parallel generation circuit. [Explanation of symbols] FFI to FF9. FF11~FFN, FF12~FF5
2. FF13~FF73. FF14-FF94. FF1
5~FF95 register (flip-flop circuit)
, 5EL11 ~ 5ELN, 5EL12 ~ 5EL52.5
EL13~5EL73, 5EL14~5EL94 Selector, 2.21, 22.31~35.41~46°1~59-
- EOR circuit, 113 series PN pattern parallel generation circuit, 110 multiplexing circuit.

Claims (1)

【特許請求の範囲】 1、p、n、m、IおよびJをn≧J≧p≧I、n>m
を満足する自然数とするとき、 n個のレジスタからなるn段のシフトレジスタと、前記
シフトレジスタにおける最終段のレジスタ出力と第m段
目のレジスタ出力との排他的論理和を第1段目のレジス
タに印加するEOR回路とを有してなるn次の帰還型シ
フトレジスタ回路におけるn個のレジスタの各々の入力
の値からなるn次元の数ベクトルと、該n個のレジスタ
の各々の出力の値からなるn次元の数ベクトルとの関係
を表現するn×n次元の正方行列をI乗した正方行列、
および、前記J≧p≧I+1を満足するpの各値につい
て、前記正方行列をp乗した正方行列を元にして、前記
J≧p≧I+1を満足するpの各値について、前記p乗
した正方行列各々の第n行目の行ベクトルα_pを、そ
れぞれ、n+p−1行成分とし、前記n×n次元の正方
行列を1〜n行成分とするn+J−I行n列の行列を形
成して、 n個のレジスタ(FF11〜FFN)の各々の入力の値
からなるn次元の数ベクトルと、該n個のレジスタの各
々の出力の値からなるn次元の数ベクトルとの関係が前
記n+J−I行n列の行列の第p行〜第p+n−1行成
分から構成されるn×n行列によって表現されるように
各レジスタの入力および出力を互いに接続する回路(1
00)を、前記n個のレジスタ(FF11〜FFN)を
共通に用いて、前記J≧p≧I+1の範囲のpの各値に
ついて有し、 前記n個のレジスタ(FF11〜FFN)の各レジスタ
の入力および出力を前記J≧p≧I+1の範囲のpの各
値について互いに接続する回路(100)のうち、指定
されたpに対応する回路のみを選択して接続するセレク
タ(SEL11〜SELN)を有してなることを特徴と
する直列PNパターン並列発生回路。 2、前記正方行列と数ベクトルとの演算の際に、加算は
排他的論理和により行い、該加算に対応する接続はEO
R回路により行う請求項1記載の直列PNパターン並列
発生回路。3、前記入力の値からなる数ベクトルは、前
記n段の帰還型シフトレジスタにおけるデータの流れの
順、または逆順に対応して前記n個のレジスタの各々の
入力の値を要素として構成され、前記出力の値からなる
数ベクトルは、前記n段の帰還型シフトレジスタにおけ
る前記データの流れの順、または逆順に対応して前記n
個のレジスタの各々の出力の値を要素として構成される
請求項1記載の直列PNパターン並列発生回路。 4、p、n、m、IおよびJをn≧J≧p≧I、n>m
を満足する自然数とするとき、 n個のレジスタからなるn段のシフトレジスタと、前記
シフトレジスタにおける最終段のレジスタ出力と第m段
目のレジスタ出力との排他的論理和を第1段目のレジス
タに印加するEOR回路とを有してなるn次の帰還型シ
フトレジスタ回路を構成する第1のステップ(1)と、 前記n段の帰還型シフトレジスタにおけるn個のレジス
タの各々の入力の値からなるn次元の数ベクトルと、該
n個のレジスタの各々の出力の値からなるn次元の数ベ
クトルとの関係を表現するn×n次元の正方行列を求め
る第2のステップ(2)と、 前記正方行列をI乗した正方行列を求め、前記J≧p≧
I+1を満足するpの各値について、前記正方行列をp
乗した正方行列を求める第3のステップ(3)と、 前記J≧p≧I+1を満足するpの各値について、前記
p乗した正方行列各々の第n行目の行ベクトルα_pを
求めて、該J≧p≧I+1の範囲の行ベクトルα_pを
、それぞれ、n+p−1行成分とし、前記n×n次元の
正方行列を1〜n行成分とするn+J−I行n列の行列
を形成する第4のステップ(4)と、 n個のレジスタの各々の入力の値からなるn次元の数ベ
クトルと、該n個のレジスタの各々の出力の値からなる
n次元の数ベクトルとの関係が前記n+J−I行n列の
行列の第p行〜第p+n−1行成分から構成されるn×
n行列によって表現されるように各レジスタの入力およ
び出力を互いに接続する回路を、前記n個のレジスタを
共通に用いて、前記J≧p≧I+1の範囲のpの各値に
ついて構成する第5のステップ(5)と、 前記n個のレジスタの各レジスタの入力および出力を前
記J≧p≧I+1の範囲のpの各値について互いに接続
する回路のうち、指定されたpに対応する回路のみを選
択して接続するセレクタを設ける第6のステップ(6)
とを有することを特徴とする直列PNパターン並列発生
回路の構成方法。 5、前記正方行列と数ベクトルとの演算の際に、加算は
排他的論理和により行い、該加算に対応する接続はEO
R回路により行う請求項4記載の直列PNパターン並列
発生回路の構成方法。 6、前記入力の値からなる数ベクトルは、前記n段の帰
還型シフトレジスタにおけるデータの流れの順、または
逆順に対応して前記n個のレジスタの各々の入力の値を
要素として構成され、前記出力の値からなる数ベクトル
は、前記n段の帰還型シフトレジスタにおける前記デー
タの流れの順、または逆順に対応して前記n個のレジス
タの各々の出力の値を要素として構成される請求項1記
載の直列PNパターン並列発生回路の構成方法。 7、N、p、n、m、IおよびJをN≧J≧p≧I>n
>mを満足する自然数とするとき、n個のレジスタから
なるn段のシフトレジスタと、前記シフトレジスタにお
ける最終段のレジスタ出力と第m段目のレジスタ出力と
の排他的論理和を第1段目のレジスタに印加するEOR
回路とを有してなるn次の帰還型シフトレジスタ回路、
および、前記n段のシフトレジスタの最終段のレジスタ
の出力に直列に接続され、N−n個のレジスタからなる
N−n段のシフトレジスタから構成されるN段の帰還型
シフトレジスタにおけるN個のレジスタの各々の入力の
値からなるN次元の数ベクトルと、該N個のレジスタの
各々の出力の値からなるN次元の数ベクトルとの関係を
表現するN×N次元の正方行列をI乗した正方行列、お
よび、前記J≧p≧I+1を満足するpの各値について
、前記正方行列をp乗した正方行列を元にして、前記J
≧p≧I+1を満足するpの各値について、前記p乗し
た正方行列各々の第p行目の行ベクトルα_pを、それ
ぞれ、N+p−1行成分とし、前記N×N次元の正方行
列を1〜N行成分とするN+J−I行N列の行列を形成
して、 N個のレジスタ(FF11〜FFN)の各々の入力の値
からなるN次元の数ベクトルと、該N個のレジスタ(F
F11〜FFN)の各々の出力の値からなるN次元の数
ベクトルとの関係が前記N+J−I行N列の行列の第p
行〜第p+N−1行成分から構成されるN×N行列によ
って表現されるように各レジスタの入力および出力を互
いに接続する回路を、前記N個のレジスタ(FF11〜
FFN)を共通に用いて、前記J≧p≧I+1の範囲の
pの各値について有し、 前記N個のレジスタ(FF11〜FFN)の各レジスタ
の入力および出力を前記J≧p≧I+1の範囲のpの各
値について互いに接続する回路のうち、指定されたpに
対応する回路のみを選択して接続するセレクタ(SEL
11〜SELN)を有してなることを特徴とする直列P
Nパターン並列発生回路。 8、前記正方行列と数ベクトルとの演算の際に、加算は
排他的論理和により行い、該加算に対応する接続はEO
R回路により行う請求項7記載の直列PNパターン並列
発生回路。9、前記入力の値からなる数ベクトルは、前
記p段の帰還型シフトレジスタにおけるデータの流れの
順、または逆順に対応して前記p個のレジスタの各々の
入力の値を要素として構成され、前記出力の値からなる
数ベクトルは、前記p段の帰還型シフトレジスタにおけ
る前記データの流れの順、または逆順に対応して前記p
個のレジスタの各々の出力の値を要素として構成される
請求項7記載の直列PNパターン並列発生回路。 10、N、p、n、m、IおよびJをN≧J≧p≧I>
n>mを満足する自然数とするとき、n個のレジスタか
らなるn段のシフトレジスタと、前記シフトレジスタに
おける最終段のレジスタ出力と第m段目のレジスタ出力
との排他的論理和を第1段目のレジスタに印加するEO
R回路とを有してなるn次の帰還型シフトレジスタ回路
、および、前記n段のシフトレジスタの最終段のレジス
タの出力に直列に接続され、N−n個のレジスタからな
るN−n段のシフトレジスタから構成されるN段の帰還
型シフトレジスタを構成する第1のステップ(1)と、 前記N段の帰還型シフトレジスタにおけるN個のレジス
タの各々の入力の値からなるN次元の数ベクトルと、該
N個のレジスタの各々の出力の値からなるN次元の数ベ
クトルとの関係を表現するN×N次元の正方行列を求め
る第2のステップ(2)と、 前記正方行列をI乗した正方行列を求め、前記J≧p≧
I+1を満足するpの各値について、前記正方行列をp
乗した正方行列を求める第3のステップ(3)と、 前記J≧p≧I+1を満足するpの各値について、前記
p乗した正方行列各々の第n行目の行ベクトルα_pを
求めて、該J≧p≧I+1の範囲の行ベクトルα_pを
、それぞれ、N+p−1行成分とし、前記N×N次元の
正方行列を1〜N行成分とするN+J−I行N列の行列
を形成する第4のステップ(4)と、 N個のレジスタの各々の入力の値からなるN次元の数ベ
クトルと、該N個のレジスタの各々の出力の値からなる
N次元の数ベクトルとの関係が前記N+J−I行N列の
行列の第p行〜第p+N−1行成分から構成されるN×
N行列によって表現されるように各レジスタの入力およ
び出力を互いに接続する回路を、前記N個のレジスタを
共通に用いて、前記J≧p≧I+1の範囲のpの各値に
ついて構成する第5のステップ(5)と、 前記N個のレジスタの各レジスタの入力および出力を前
記J≧p≧I+1の範囲のpの各値について互いに接続
する回路のうち、指定されたpに対応する回路のみを選
択して接続するセレクタを設ける第6のステップ(6)
とを有することを特徴とする直列PNパターン並列発生
回路の構成方法。 11、前記正方行列と数ベクトルとの演算の際に、加算
は排他的論理和により行い、該加算に対応する接続はE
OR回路により行う請求項10記載の直列PNパターン
並列発生回路の構成方法。 12、前記入力の値からなる数ベクトルは、前記p段の
帰還型シフトレジスタにおけるデータの流れの順、また
は逆順に対応して前記p個のレジスタの各々の入力の値
を要素として構成され、前記出力の値からなる数ベクト
ルは、前記p段の帰還型シフトレジスタにおける前記デ
ータの流れの順、または逆順に対応して前記p個のレジ
スタの各々の出力の値を要素として構成される請求項1
0記載の直列PNパターン並列発生回路の構成方法。
[Claims] 1, p, n, m, I and J, n≧J≧p≧I, n>m
is a natural number that satisfies, then the exclusive OR of an n-stage shift register consisting of n registers, the register output of the final stage and the register output of the m-th stage in the shift register is calculated as the first-stage register output. an n-dimensional number vector consisting of the input values of each of the n registers in an n-dimensional feedback shift register circuit comprising an EOR circuit that applies an signal to the register; A square matrix that is the Ith power of an n×n-dimensional square matrix that expresses the relationship with an n-dimensional number vector consisting of values,
And, for each value of p that satisfies J≧p≧I+1, based on the square matrix that is the square matrix raised to the pth power, for each value of p that satisfies the above J≧p≧I+1, the square matrix is raised to the pth power. The n-th row vector α_p of each square matrix has n+p-1 row elements, and the n×n-dimensional square matrix has 1 to n row elements to form an n+J-I row and n-column matrix. Then, the relationship between the n-dimensional number vector consisting of the input values of each of the n registers (FF11 to FFN) and the n-dimensional number vector consisting of the output value of each of the n registers is the above n+J. - A circuit (1
00) for each value of p in the range of J≧p≧I+1 using the n registers (FF11 to FFN) in common, and each register of the n registers (FF11 to FFN) Selectors (SEL11 to SELN) that select and connect only the circuit corresponding to a specified p from the circuits (100) that connect the input and output of to each other for each value of p in the range of J≧p≧I+1. 1. A series PN pattern parallel generation circuit comprising: 2. When calculating the square matrix and the number vector, addition is performed by exclusive OR, and the connection corresponding to the addition is EO
2. The series PN pattern parallel generation circuit according to claim 1, which is implemented by an R circuit. 3. The number vector consisting of the input values is configured with the input values of each of the n registers as elements corresponding to the order or reverse order of data flow in the n-stage feedback shift register, A number vector consisting of the output values is set in the n-stages corresponding to the order or reverse order of the data flow in the n-stage feedback shift register.
2. The serial PN pattern parallel generation circuit according to claim 1, wherein the serial PN pattern parallel generation circuit is constructed by using the output values of each of the registers as elements. 4, p, n, m, I and J, n≧J≧p≧I, n>m
is a natural number that satisfies, then the exclusive OR of an n-stage shift register consisting of n registers, the register output of the final stage and the register output of the m-th stage in the shift register is calculated as the first-stage register output. a first step (1) of configuring an n-th feedback shift register circuit comprising an EOR circuit that applies an voltage to the register; Second step (2) of finding an n×n dimensional square matrix expressing the relationship between the n-dimensional number vector consisting of the values and the n-dimensional number vector consisting of the output values of each of the n registers. Then, obtain a square matrix by raising the square matrix to the I power, and satisfy the above J≧p≧
For each value of p that satisfies I+1, let the square matrix be p
The third step (3) is to obtain a square matrix raised to the power of Each of the row vectors α_p in the range of J≧p≧I+1 has n+p−1 row elements, and the n×n-dimensional square matrix has 1 to n row elements to form an n+J−I row and n column matrix. The fourth step (4) is the relationship between the n-dimensional number vector consisting of the input value of each of the n registers and the n-dimensional number vector consisting of the output value of each of the n registers. n× composed of the pth row to p+n−1 row elements of the n+J−I row n column matrix;
A fifth circuit that connects the inputs and outputs of each register to each other as represented by an n matrix is configured for each value of p in the range of J≧p≧I+1 by using the n registers in common. step (5), and among the circuits that connect the inputs and outputs of each of the n registers to each other for each value of p in the range of J≧p≧I+1, only the circuit that corresponds to the specified p. The sixth step (6) is to provide a selector to select and connect
A method of configuring a series PN pattern parallel generation circuit, comprising: 5. When calculating the square matrix and the number vector, addition is performed by exclusive OR, and the connection corresponding to the addition is EO
5. The method of configuring a series PN pattern parallel generation circuit according to claim 4, wherein the method is performed using an R circuit. 6. The number vector consisting of the input values is configured with the input values of each of the n registers as elements corresponding to the order or reverse order of data flow in the n-stage feedback shift register, The number vector consisting of the output values is configured with the output values of each of the n registers as elements corresponding to the order or reverse order of the data flow in the n-stage feedback shift register. A method of configuring a series PN pattern parallel generation circuit according to item 1. 7, N, p, n, m, I and J, N≧J≧p≧I>n
> When m is a natural number satisfying, the first stage is an exclusive OR of an n-stage shift register consisting of n registers, the register output of the final stage in the shift register, and the register output of the m-th stage. EOR applied to eye register
an n-order feedback shift register circuit comprising a circuit;
and an N-stage feedback shift register that is connected in series to the output of the final stage register of the n-stage shift register, and that is composed of an N-n stage shift register including N-n registers. Let I be an N×N square matrix that expresses the relationship between an N-dimensional number vector consisting of the input values of each of the registers and an N-dimensional number vector consisting of the output values of each of the N registers. For each value of p that satisfies J≧p≧I+1, the J
For each value of p that satisfies ≧p≧I+1, the p-th row vector α_p of each of the p-th power square matrices is set as the N+p-1 row element, and the N×N-dimensional square matrix is A matrix of N+J-I rows and N columns with ~N row components is formed, and an N-dimensional number vector consisting of the input values of each of the N registers (FF11 to FFN) and the N registers (FF11 to FFN) are formed.
The relationship with the N-dimensional number vector consisting of the output values of each of F11 to FFN) is the p-th
The N registers (FF11 to
FFN) is used in common for each value of p in the range of J≧p≧I+1, and the input and output of each of the N registers (FF11 to FFN) is set to the value of J≧p≧I+1. A selector (SEL) that selects and connects only the circuit corresponding to the specified p among the circuits connected to each other for each value of p in the range.
11 to SELN)
N pattern parallel generation circuit. 8. When calculating the square matrix and the number vector, addition is performed by exclusive OR, and the connection corresponding to the addition is EO
8. The series PN pattern parallel generation circuit according to claim 7, which is implemented by an R circuit. 9. The number vector consisting of the input values is configured with input values of each of the p registers as elements corresponding to the order or reverse order of data flow in the p-stage feedback shift register, A number vector consisting of the output values is set in the p-stage corresponding to the order or reverse order of the data flow in the p-stage feedback shift register.
8. The serial PN pattern parallel generation circuit according to claim 7, wherein the serial PN pattern parallel generation circuit is constructed using the output values of each of the registers as elements. 10, N, p, n, m, I and J, N≧J≧p≧I>
When n is a natural number satisfying n>m, the exclusive OR of an n-stage shift register consisting of n registers, the register output of the final stage in the shift register, and the register output of the m-th stage is expressed as the first EO applied to the register in the first row
an n-th order feedback shift register circuit comprising an R circuit; and an N-n stage consisting of N-n registers connected in series to the output of the final stage register of the n-stage shift register. a first step (1) of configuring an N-stage feedback shift register consisting of shift registers; a second step (2) of obtaining an N×N-dimensional square matrix expressing the relationship between the number vector and the N-dimensional number vector consisting of the output values of each of the N registers; Find a square matrix raised to the I power, and satisfy the above J≧p≧
For each value of p that satisfies I+1, let the square matrix be p
The third step (3) is to obtain a square matrix raised to the power of Each of the row vectors α_p in the range of J≧p≧I+1 has N+p−1 row components, and the N×N-dimensional square matrix has 1 to N row components to form an N+J−I row and N matrix. The fourth step (4) is the relationship between the N-dimensional number vector consisting of the input values of each of the N registers and the N-dimensional number vector consisting of the output values of each of the N registers. N× composed of the pth row to p+N−1 row elements of the N+J−I row N column matrix
A fifth circuit configured for each value of p in the range of J≧p≧I+1, using the N registers in common, and forming a circuit that connects the inputs and outputs of each register to each other as represented by an N matrix. step (5), and among the circuits that connect the inputs and outputs of each of the N registers to each other for each value of p in the range of J≧p≧I+1, only the circuit that corresponds to the specified p. The sixth step (6) is to provide a selector to select and connect
A method of configuring a series PN pattern parallel generation circuit, comprising: 11. When calculating the square matrix and the number vector, addition is performed by exclusive OR, and the connection corresponding to the addition is E.
11. The method of configuring a series PN pattern parallel generation circuit according to claim 10, wherein the method is performed using an OR circuit. 12. The number vector consisting of the input values is configured with the input values of each of the p registers as elements corresponding to the order or reverse order of data flow in the p-stage feedback shift register, The number vector consisting of the output values is configured with the output values of each of the p registers as elements corresponding to the order or reverse order of the data flow in the p-stage feedback shift register. Item 1
A method of configuring a series PN pattern parallel generation circuit as described in 0.
JP2166878A 1990-06-27 1990-06-27 Parallel generating circuit for serial pn patterns and configuration method for said circuit Pending JPH0457407A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2166878A JPH0457407A (en) 1990-06-27 1990-06-27 Parallel generating circuit for serial pn patterns and configuration method for said circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2166878A JPH0457407A (en) 1990-06-27 1990-06-27 Parallel generating circuit for serial pn patterns and configuration method for said circuit

Publications (1)

Publication Number Publication Date
JPH0457407A true JPH0457407A (en) 1992-02-25

Family

ID=15839297

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2166878A Pending JPH0457407A (en) 1990-06-27 1990-06-27 Parallel generating circuit for serial pn patterns and configuration method for said circuit

Country Status (1)

Country Link
JP (1) JPH0457407A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0680172A2 (en) * 1994-04-27 1995-11-02 Ntt Mobile Communications Network Inc. Code sequence generator
JP2003508953A (en) * 1999-08-31 2003-03-04 クゥアルコム・インコーポレイテッド Method and apparatus for generating multiple bits of a pseudo-noise sequence at each clock pulse by calculating bits in parallel
EP1047221A3 (en) * 1999-04-21 2003-08-27 Matsushita Electric Industrial Co., Ltd. PN code generator, communication unit using the PN code generator, communication system, and PN code generation method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0680172A2 (en) * 1994-04-27 1995-11-02 Ntt Mobile Communications Network Inc. Code sequence generator
EP0680172A3 (en) * 1994-04-27 1996-03-06 Nippon Telegraph & Telephone Code sequence generator.
US5596516A (en) * 1994-04-27 1997-01-21 Ntt Mobile Communications Network Inc. Code sequence generator
EP1047221A3 (en) * 1999-04-21 2003-08-27 Matsushita Electric Industrial Co., Ltd. PN code generator, communication unit using the PN code generator, communication system, and PN code generation method
JP2003508953A (en) * 1999-08-31 2003-03-04 クゥアルコム・インコーポレイテッド Method and apparatus for generating multiple bits of a pseudo-noise sequence at each clock pulse by calculating bits in parallel

Similar Documents

Publication Publication Date Title
US5105376A (en) Linear feedback shift registers
US5434807A (en) Parallel pseudo-random pattern generating method and pseudo-random pattern generator using the same
US8401180B2 (en) Non-linear data converter, encoder and decoder
JPH0326859B2 (en)
US5574673A (en) Parallel architecture for generating pseudo-random sequences
JPH0457407A (en) Parallel generating circuit for serial pn patterns and configuration method for said circuit
US20090254333A1 (en) LFSR Emulation
JPH0454720A (en) Serial pn pattern parallel generating circuit and constitution method for the circuit
US4032764A (en) Means and method for generating permutations of a square
TWI662471B (en) Multi-bit true random number generation device and generation method thereof
JPS6186872A (en) Apparatus for real time processing of digital signal by folding
JP4595055B2 (en) Galois field α multiplication circuit and arithmetic circuit
EP0431416A2 (en) Apparatus and method for accessing a cyclic redundancy error check code generated in parallel
JPS63286933A (en) Digital serial/parallel multiplier
JP3618554B2 (en) Code generation method and code generation apparatus
CN115473626A (en) Parallelized, scalable linear feedback shift register
JP2000298577A (en) Random number generation device
JPH0398346A (en) Cell synchronization circuit
JPS61193183A (en) Random number generation circuit
JPH04292018A (en) Variable crc generation circuit
JP3017203B1 (en) Binary-decimal conversion circuit and method
SU1010622A1 (en) Generator of pseudo-random numbers
JP2968629B2 (en) Maximum period sequence code generation circuit
JP2000099313A (en) Multiplier
JP3241642B2 (en) Binary-decimal conversion circuit