JP2000278099A - M-sequencies generating circuit and pn code generating circuit - Google Patents

M-sequencies generating circuit and pn code generating circuit

Info

Publication number
JP2000278099A
JP2000278099A JP8357599A JP8357599A JP2000278099A JP 2000278099 A JP2000278099 A JP 2000278099A JP 8357599 A JP8357599 A JP 8357599A JP 8357599 A JP8357599 A JP 8357599A JP 2000278099 A JP2000278099 A JP 2000278099A
Authority
JP
Japan
Prior art keywords
register
bit
circuit
output
value
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.)
Withdrawn
Application number
JP8357599A
Other languages
Japanese (ja)
Inventor
Satoru Araki
哲 荒木
Katsutoshi Ito
克俊 伊東
Yoshihito Shimazaki
良仁 島崎
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP8357599A priority Critical patent/JP2000278099A/en
Publication of JP2000278099A publication Critical patent/JP2000278099A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an M-sequencies generating circuit and a PN code generating circuit for easily generating a PN code (M-sequencies) with required code length. SOLUTION: An M-sequencies generating circuit 10 is provided with N bit shift registers 11 which shift and store each value, M pieces of XOR (exclusive logical sum) circuit 12 inserted between the shift registers 11 according to a generation polynomial, a register (register R) which stores the value in the final stage of the shift registers 11, and which has an initial value 0, an N bit counter (COUNT) 14 which counts the number of clocks in one cycle of the M-sequencies, an OR circuit 15 which calculates the logical sum of the values of each bit of the N bit counter 14, a register (register L) 16 which holds the value of the OR circuit 15, an NAND circuit 17 which calculates the negation of the logical product of the output value of the OR circuit 15 held in the register L and a value directly outputted from the OR circuit 15, a selector (MUL1) 18 which is controlled by the output of the OR circuit 15, and a selector (MUL2) 19 which is controlled by the output value of the OR circuit 15 held in the register L.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、M系列発生回路及
びPN符号発生回路に係り、詳細には、符号分割多元接
続(CDMA:Code Division Multiple Access)通信
方式を用いた移動体通信方式におけるM系列発生回路及
びPN符号発生回路に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to an M-sequence generator and a PN code generator, and more particularly, to an M-sequence generator in a mobile communication system using a code division multiple access (CDMA) communication system. The present invention relates to a sequence generation circuit and a PN code generation circuit.

【0002】[0002]

【従来の技術】近年、移動通信における周波数利用効率
を向上させるための技術の一つとして、CDMA方式に
関する研究及び開発が盛んに行われている。
2. Description of the Related Art In recent years, research and development on a CDMA system has been actively conducted as one of techniques for improving the frequency use efficiency in mobile communication.

【0003】このCDMAでは、拡散/逆拡散のプロセ
スにおいて多重化されている希望波以外の他の送信局な
どからの干渉信号を熱雑音と同様に扱うことにより、プ
ロセス利得(processing gain)に比例した数の送信局
が同じ周波数帯を同時に使用することが可能となってい
る。CDMΑでは、例えば直接拡散(DS:Direct Seq
uence)は、同一周波数を利用するユーザーなどの送信
局は疑似直交したコードで分離されている。
[0003] In this CDMA, an interference signal from a transmitting station other than a desired signal multiplexed in a spreading / despreading process is treated in the same manner as thermal noise, so that it is proportional to the processing gain. The same number of transmitting stations can use the same frequency band at the same time. In CDMΑ, for example, direct diffusion (DS: Direct Seq
uence), transmitting stations such as users using the same frequency are separated by pseudo orthogonal codes.

【0004】直接拡散(DS)では拡散変調で使用する
PN(pseudo noise:疑似雑音)系列が非常に重要な役
割を占める。PN系列には多様な作り方があるが、とり
わけM系列(Maximum Length Code:最長符号系列)
は、作り方が最も単純なこと、取り出される系列の乱れ
具合が真の乱数に近い性質を持つこと、さらにその性質
がよく解析されていることなどからよく利用されてい
る。実際のCDMAで用いるPN系列には、周期が等し
い2種類のM系列発生器を用意し、それらの出力を加算
することで得られるGOLD符号系列が用いられる。
In direct spreading (DS), a PN (pseudo noise) sequence used in spreading modulation plays a very important role. There are various ways to make the PN sequence, but especially the M sequence (Maximum Length Code).
Is often used because it is the simplest way to make it, the disorder of the extracted sequence has a property close to a true random number, and the property is well analyzed. As a PN sequence used in actual CDMA, a GOLD code sequence obtained by preparing two types of M-sequence generators having the same period and adding their outputs is used.

【0005】M系列は、n段のシフトレジスタとXOR
(exclusive OR:排他的論理和)から簡単に作り出すこ
とができる。
[0005] The M series is composed of an n-stage shift register and an XOR
(Exclusive OR).

【0006】また、あるビット単位で周期的に発生する
PN符号の1周期分のビット数を符号長という。例え
ば、符号長16のPN符号(M系列)発生器は、生成多
項式が次式(1)で与えられる場合、図22に示す構成
になることが知られている。
The number of bits in one cycle of a PN code periodically generated in a certain bit unit is called a code length. For example, it is known that a PN code (M sequence) generator having a code length of 16 has a configuration shown in FIG. 22 when a generator polynomial is given by the following equation (1).

【0007】[0007]

【数1】 図22は従来の内部XOR型のM系列発生器の構成を示
す図である。
(Equation 1) FIG. 22 is a diagram showing a configuration of a conventional internal XOR type M-sequence generator.

【0008】図22において、M系列発生器は、同一ク
ロックで動作する1ビットのシフトレジスタ(S0,S
1,S2,S3)内部に、XOR(排他的論理和)が設
けられた構成である。このM系列発生器は、帰還された
回路出力をシフトレジスタS3の途中の特定位置に設け
られた帰還タップを通してXORに入力し、XORでこ
れらデータの排他的論理和をとって次段のシフトレジス
タに出力する。シフトレジスタS0の右端からM系列が
出力される。
In FIG. 22, an M-sequence generator includes a 1-bit shift register (S0, S
1, S2, S3), an XOR (exclusive OR) is provided inside. The M-sequence generator inputs the circuit output that has been fed back to the XOR through a feedback tap provided at a specific position in the middle of the shift register S3. Output to The M sequence is output from the right end of the shift register S0.

【0009】シフトレジスタS0〜S4に初期値がセッ
トされると、クロック周期毎に各レジスタの値は次段の
レジスタにシフトされる。但し、S2レジスタの出力は
S0レジスタの出力との排他的論理和が求められてS1
レジスタに格納される。
When the initial values are set in the shift registers S0 to S4, the value of each register is shifted to the next register at every clock cycle. However, the exclusive OR of the output of the S2 register and the output of the S0 register is obtained,
Stored in a register.

【0010】上記シフトを続けると、シフトレジスタS
0に接続された出力端にPN符号が発生する。出力端に
発生するPN符号(M系列)は、15ビット毎に同じ符
号が繰り返される。
If the shift is continued, the shift register S
A PN code is generated at the output terminal connected to 0. The same code is repeated for every 15 bits of the PN code (M sequence) generated at the output end.

【0011】[0011]

【発明が解決しようとする課題】しかしながら、このよ
うな従来のPN符号(M系列)発生器にあっては、以下
のような問題点があった。 1.PN符号(M系列)発生器を拡散長16のCDMA
通信において使用する場合、要求されるPN符号(M系
列)の周期は16ビットであるのに対して、従来例では
15ビットの周期しか持たず、16ビットPN符号を生
成するためには、PN符号1周期の先頭または最後尾に
1ビットの0を挿入しなければならず、その挿入に関し
ての具体的回路は報告されていなかった。 2.従来例では、上記1ビットの挿入はPN符号1周期
の先頭または最後尾に限定されており、1周期内の任意
の位置に0を挿入することはできなかった。 3.上述の回路は、前記式(1)により表現される生成
多項式のみに対応しており、他の生成多項式を実現する
場合、新たに回路を設計し直す必要があった。 4.また、上述の回路は、拡散長16の場合にのみ対応
しており、他の拡散長のPN符号(M系列)発生器が要
求された場合、再度回路設計を行う必要があった。
However, such a conventional PN code (M-sequence) generator has the following problems. 1. PN code (M-sequence) generator with spread length 16 CDMA
When used in communication, the required period of the PN code (M-sequence) is 16 bits, whereas the conventional example has only a period of 15 bits. One bit of 0 must be inserted at the beginning or end of one code cycle, and no specific circuit for the insertion has been reported. 2. In the conventional example, the insertion of one bit is limited to the beginning or end of one period of the PN code, and 0 cannot be inserted at an arbitrary position within one period. 3. The above-described circuit supports only the generator polynomial expressed by the above equation (1), and when another generator polynomial is realized, it is necessary to redesign the circuit. 4. Further, the above-mentioned circuit corresponds only to the case of the spread length of 16, and when a PN code (M sequence) generator of another spread length is required, it is necessary to redesign the circuit.

【0012】本発明は、要求される符号長のPN符号
(M系列)を容易に発生することができるM系列発生回
路及びPN符号発生回路を提供することを目的とする。
An object of the present invention is to provide an M-sequence generation circuit and a PN code generation circuit that can easily generate a PN code (M sequence) having a required code length.

【0013】[0013]

【課題を解決するための手段】本発明に係るM系列発生
回路は、複数のシフトレジスタと、排他的論理和演算手
段とを備え、M系列を発生するM系列発生回路におい
て、それぞれの値をシフトして格納するNビットのシフ
トレジスタと、シフトレジスタ間に生成多項式に従って
挿入されたM個の排他的論理和演算手段と、M系列の1
周期のクロック数を計数するNビットカウンタと、Nビ
ットカウンタの各ビットの値の論理を取る第1の論理演
算手段と、シフトレジスタ間に挿入され、第1の論理演
算手段の出力によりシフトレジスタの値と入力値を選択
する第1の選択手段とを備えたことを特徴とする。
An M-sequence generating circuit according to the present invention comprises a plurality of shift registers and exclusive-OR operation means. An N-bit shift register for shifting and storing, M exclusive OR operation means inserted between the shift registers according to a generator polynomial,
An N-bit counter for counting the number of clocks in a cycle, a first logical operation means for calculating a logic value of each bit of the N-bit counter, and a shift register inserted between the shift registers and output from the first logical operation means And first selection means for selecting an input value.

【0014】本発明に係るM系列発生回路は、Nビット
カウンタと同数のビット数を持ち、外部より任意の値が
設定される第1のレジスタと、Nビットカウンタと第1
のレジスタの各ビットの論理を取る第2の論理演算手段
とを備え、第1の論理演算手段は、第2の論理演算手段
の出力値の論理を取るものであってもよい。
An M-sequence generating circuit according to the present invention has a first register having the same number of bits as an N-bit counter, and an arbitrary value set from outside, an N-bit counter and a first register.
And a second logical operation means for obtaining the logic of each bit of the register of the first logical operation means, and the first logical operation means may obtain the logic of the output value of the second logical operation means.

【0015】本発明に係るM系列発生回路は、シフトレ
ジスタより1つ少ないビット数を持ち、外部より任意の
値が設定される第2のレジスタと、第2のレジスタの各
ビットの論理を取る第3の論理演算手段とを備え、排他
的論理和演算手段は、シフトレジスタの値と第3の論理
演算手段の出力値の排他的論理和演算を行うものであっ
てもよい。
An M-sequence generation circuit according to the present invention has a second register having one less bit number than a shift register, and takes a logic of a second register to which an arbitrary value is externally set, and a logic of each bit of the second register. A third logical operation means may be provided, and the exclusive OR operation means may perform an exclusive OR operation of the value of the shift register and the output value of the third logical operation means.

【0016】本発明に係るM系列発生回路は、シフトレ
ジスタより1つ少ないビット数を持ち、外部より任意の
値が設定される第3のレジスタと、シフトレジスタ間に
挿入され、第3のレジスタの出力を制御信号として受
け、シフトレジスタの値を次段に出力するか任意のビッ
トのシフトレジスタとして出力するかを選択する第2の
選択手段とを備え、M系列の1周期のビット数を任意に
選択可能にしたものであってもよい。
The M-sequence generation circuit according to the present invention has a third register having one less bit number than the shift register and having an arbitrary value set externally, and a third register inserted between the shift register and the third register. As a control signal, and selecting whether to output the value of the shift register to the next stage or to output it as a shift register of an arbitrary bit. It may be arbitrarily selectable.

【0017】本発明に係るM系列発生回路は、複数のシ
フトレジスタと、XOR回路とを備え、M系列を発生す
るM系列発生回路において、それぞれの値をシフトして
格納するNビットのシフトレジスタと、シフトレジスタ
間に生成多項式に従って挿入されたM個のXOR回路
と、シフトレジスタの最終段の値を格納し、初期値0を
持つレジスタRと、M系列の1周期のクロック数を計数
するNビットカウンタと、Nビットカウンタの各ビット
の値の論理和を取るOR回路と、OR回路の値を保持す
るレジスタLと、レジスタLにより保持されたOR回路
出力値と直接OR回路から出力された値との論理積の否
定を取るNAND回路と、OR回路出力により制御され
る第1のセレクタと、レジスタLにより保持されたOR
回路出力値により制御される第2のセレクタとを備えた
ことを特徴とする。
An M-sequence generation circuit according to the present invention includes a plurality of shift registers and an XOR circuit. In an M-sequence generation circuit for generating an M-sequence, an N-bit shift register for shifting and storing respective values. And M XOR circuits inserted between the shift registers according to the generator polynomial, values of the last stage of the shift register are stored, a register R having an initial value of 0, and the number of clocks in one cycle of the M series are counted. An N-bit counter, an OR circuit that takes a logical sum of the values of the respective bits of the N-bit counter, a register L that holds the value of the OR circuit, an output value of the OR circuit held by the register L, and an output directly from the OR circuit. A NAND circuit that takes the negation of the logical product of the AND value, a first selector controlled by the output of the OR circuit, and an OR circuit held by the register L.
A second selector controlled by a circuit output value.

【0018】本発明に係るM系列発生回路は、複数のシ
フトレジスタと、XOR回路とを備え、M系列を発生す
るM系列発生回路において、それぞれの値をシフトして
格納し、任意の初期値が与えられるNビットのシフトレ
ジスタと、シフトレジスタ間に生成多項式に従って挿入
されたM個のXOR回路と、M系列の1周期のクロック
数を計数するNビットカウンタと、Nビットカウンタの
各ビットの値の論理和を取るOR回路と、OR回路の値
を保持するレジスタRSTと、OR回路の出力値により
制御される第1のセレクタとを備えたことを特徴とす
る。
An M-sequence generating circuit according to the present invention includes a plurality of shift registers and an XOR circuit. In an M-sequence generating circuit for generating an M-sequence, each value is shifted and stored, and an arbitrary initial value is set. , An M-bit XOR circuit inserted between the shift registers according to a generator polynomial, an N-bit counter for counting the number of clocks in one cycle of the M series, and an N-bit counter for each bit of the N-bit counter. An OR circuit for taking a logical sum of values, a register RST for holding a value of the OR circuit, and a first selector controlled by an output value of the OR circuit are provided.

【0019】本発明に係るM系列発生回路は、Nビット
カウンタと同数のビット数を持ち、外部より任意の値が
設定される第1のレジスタと、Nビットカウンタと第1
のレジスタの各ビットの論理積を取るM個のAND回路
とを備え、OR回路は、AND回路の出力値の論理和を
取るものであってもよい。
An M-sequence generation circuit according to the present invention has a first register having the same number of bits as an N-bit counter, and an arbitrary value set from outside, an N-bit counter and a first register.
M AND circuits that take the logical product of the respective bits of the registers of the AND circuit. The OR circuit may take the logical sum of the output values of the AND circuit.

【0020】本発明に係るM系列発生回路は、シフトレ
ジスタより1つ少ないビット数を持ち、外部より任意の
値が設定される第2のレジスタと、第2のレジスタの出
力を一方の入力として持つN−1個のAND回路と、N
−1個のAND回路出力を一方の入力として持つN−1
個のXOR回路とを備え、N−1個のXOR回路は、シ
フトレジスタの値とN−1個のAND回路の出力値の排
他的論理和演算を行うものであってもよい。
The M-sequence generating circuit according to the present invention has a second register which has one less bit number than the shift register and has an arbitrary value externally set, and an output of the second register as one input. N-1 AND circuits having
N-1 having -1 AND circuit output as one input
N-1 XOR circuits, and the N-1 XOR circuits may perform an exclusive OR operation of the value of the shift register and the output value of the N-1 AND circuits.

【0021】本発明に係るM系列発生回路は、シフトレ
ジスタより1つ少ないビット数を持ち、外部より任意の
値が設定される第3のレジスタと、シフトレジスタ間に
挿入され、第3のレジスタの出力を制御信号として受
け、シフトレジスタの値を次段に出力するか任意のビッ
トのシフトレジスタとして出力するかを選択するN−1
個のセレクタとを備え、M系列の1周期のビット数を任
意に選択可能にしたものであってもよい。
The M-sequence generating circuit according to the present invention has a third register having one less bit number than the shift register and having an arbitrary value set from the outside, and a third register inserted between the shift register and the third register. N-1 as a control signal, and selects whether to output the value of the shift register to the next stage or to output it as a shift register of an arbitrary bit.
May be provided so that the number of bits in one cycle of the M sequence can be arbitrarily selected.

【0022】本発明に係るPN符号発生回路は、M系列
を用いてPN符号を発生するPN符号発生回路におい
て、M系列は、請求項1乃至9の何れかに記載のM系列
発生回路により発生させることを特徴とする。
A PN code generation circuit according to the present invention is a PN code generation circuit for generating a PN code using an M sequence, wherein the M sequence is generated by the M sequence generation circuit according to any one of claims 1 to 9. It is characterized by making it.

【0023】上記PN符号は、周期が等しい2種類のM
系列発生回路を用いて、それらの出力を加算することで
得られるGOLD符号系列であってもよい。
The PN code has two types of M having the same period.
It may be a GOLD code sequence obtained by adding these outputs using a sequence generation circuit.

【0024】[0024]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態について説明する。 第1の実施形態 図1は本発明の第1の実施形態に係るM系列発生回路の
構成を示すブロック図であり、符号長16、前記式
(1)に示す生成多項式により得られるM系列発生器に
適用した例である。
Embodiments of the present invention will be described below with reference to the drawings. First Embodiment FIG. 1 is a block diagram showing a configuration of an M-sequence generating circuit according to a first embodiment of the present invention, which has a code length of 16, an M-sequence generation obtained by the generator polynomial shown in the above equation (1). This is an example applied to a vessel.

【0025】図1において、M系列発生回路10は、同
一クロックで動作し、それぞれの値をシフトして格納す
るNビット(ここでは4ビット)のシフトレジスタS
0,S1,S2,S3からなるシフトレジスタ11と、
シフトレジスタ11間に生成多項式に従って挿入された
M個のXOR回路12(排他的論理和演算手段)と、シ
フトレジスタ11の最終段の値を格納し、初期値0を持
つレジスタ(レジスタR)13と、M系列の1周期のク
ロック数を計数するNビット(ここでは4ビット)カウ
ンタ(COUNT)14と、Nビットカウンタ14の各
ビットの値の論理和を取るOR回路15と、OR回路1
5の値を保持するレジスタ(レジスタL)16と、レジ
スタLにより保持されたOR回路15出力値と直接OR
回路15から出力された値との論理積の否定を取るNA
ND回路17と、OR回路15出力により制御されるセ
レクタ(MUL1)18(第1の選択手段,第1のセレ
クタ)と、レジスタLにより保持されたOR回路15出
力値により制御されるセレクタ(MUL2)19(第2
のセレクタ)とから構成される。
In FIG. 1, an M-sequence generation circuit 10 operates on the same clock, and shifts and stores an N-bit (here, 4-bit) shift register S of each value.
A shift register 11 including 0, S1, S2, and S3;
M XOR circuits 12 (exclusive OR operation means) inserted between the shift registers 11 according to a generator polynomial, and a register (register R) 13 which stores the value of the last stage of the shift register 11 and has an initial value 0 An N-bit (here, 4-bit) counter (COUNT) 14 for counting the number of clocks in one cycle of the M sequence; an OR circuit 15 for taking the logical sum of the values of the respective bits of the N-bit counter 14;
5, a register (register L) 16 for holding the value of 5 and the output value of the OR circuit 15 held by the register L
NA for negating logical product with the value output from circuit 15
ND circuit 17, selector (MUL1) 18 controlled by the output of OR circuit 15 (first selection means, first selector), and selector (MUL2) controlled by the output value of OR circuit 15 held by register L ) 19 (second
Selector).

【0026】上記シフトレジスタS0,S1,S2,S
3、レジスタR及びレジスタLは、同一クロックで動作
する。
The shift registers S0, S1, S2, S
3. The register R and the register L operate on the same clock.

【0027】シフトレジスタS3の出力は、XOR回路
12の一方の入力に、XOR回路12の出力はシフトレ
ジスタS2の入力に、シフトレジスタS2の出力はシフ
トレジスタS1の入力に、シフトレジスタS1の出力は
セレクタMUL1の一方のデータ入力に、セレクタMU
L1の出力はシフトレジスタS0の入力に、シフトレジ
スタS0の出力は出力端PN_OUT及びレジスタRの
入力及びセレクタMUL2の一方の入力に、それぞれ接
続されている。
The output of the shift register S3 is supplied to one input of the XOR circuit 12, the output of the XOR circuit 12 is supplied to the input of the shift register S2, the output of the shift register S2 is supplied to the input of the shift register S1, and the output of the shift register S1. Is connected to one data input of the selector MUL1,
The output of L1 is connected to the input of the shift register S0, and the output of the shift register S0 is connected to the output terminal PN_OUT, the input of the register R, and one input of the selector MUL2.

【0028】レジスタRの出力は、セレクタMUL1の
他方の入力及びセレクタMUL2の他方の入力に接続さ
れている。
The output of the register R is connected to the other input of the selector MUL1 and the other input of the selector MUL2.

【0029】セレクタMUL1の制御信号としては、O
R回路15の出力信号が接続されており、セレクタMU
L1はOR回路15出力が1の時、シフトレジスタS1
の出力値を出力し、OR回路15出力が0の時はレジス
タRの値を出力する。
The control signal of the selector MUL1 is O
The output signal of the R circuit 15 is connected to the selector MU.
L1 is the shift register S1 when the output of the OR circuit 15 is 1.
The output value of the register R is output when the output of the OR circuit 15 is 0.

【0030】セレクタMUL2の出力は、シフトレジス
タS3の入力及びXOR回路12の他方の入力に接続さ
れ、セレクタMUL2の制御信号は、レジスタLの出力
に接続され、セレクタMUL2はレジスタL出力が0の
時、レジスタR出力を選択し、レジスタL出力が1の
時、シフトレジスタS0出力を選択する。
The output of the selector MUL2 is connected to the input of the shift register S3 and the other input of the XOR circuit 12. The control signal of the selector MUL2 is connected to the output of the register L. At this time, the output of the register R is selected, and when the output of the register L is 1, the output of the shift register S0 is selected.

【0031】NビットカウンタCOUNTは、上記各レ
ジスタと同じクロックでカウントアップされるカウンタ
であり、NビットカウンタCOUNTの各ビットは、O
R回路15の4つの入力となる。
The N-bit counter COUNT is a counter which counts up at the same clock as each of the above registers, and each bit of the N-bit counter COUNT is O
These are the four inputs of the R circuit 15.

【0032】OR回路15出力は、セレクタMUL1の
制御信号となるとともに、シフトレジスタS1〜S3の
イネーブル信号となり、OR回路15出力が1の時、シ
フトレジスタS1〜S3は書込み許可となり、OR回路
15出力が0の時、シフトレジスタS1〜S3は書込み
禁止となる。
The output of the OR circuit 15 becomes a control signal for the selector MUL1, and also becomes an enable signal for the shift registers S1 to S3. When the output of the OR circuit 15 is 1, the shift registers S1 to S3 are write-enabled, and the OR circuit 15 When the output is 0, the shift registers S1 to S3 are write-protected.

【0033】また、OR回路15出力は、NAND回路
17の一方の入力及びレジスタLの入力にも接続されて
いる。NAND回路17の他方の入力は、レジスタLの
出力に接続され、NAND回路17の出力はレジスタR
のイネーブル信号となり、NAND回路17出力が1の
時はレジスタRは書込み許可、NAND回路17出力が
0の時はレジスタRは書込み禁止となる。
The output of the OR circuit 15 is also connected to one input of the NAND circuit 17 and the input of the register L. The other input of the NAND circuit 17 is connected to the output of the register L, and the output of the NAND circuit 17 is
When the output of the NAND circuit 17 is 1, the register R is write-enabled, and when the output of the NAND circuit 17 is 0, the register R is write-disabled.

【0034】上記レジスタ(レジスタR)13、OR回
路15、レジスタ(レジスタL)16及びNAND回路
17は、全体として、Nビットカウンタ11の各ビット
の値の論理を取る第1の論理演算手段を構成する。
The register (register R) 13, the OR circuit 15, the register (register L) 16 and the NAND circuit 17 as a whole constitute a first logical operation means for taking the logic of each bit value of the N-bit counter 11. Constitute.

【0035】以下、上述のように構成されたM系列発生
回路10の動作を説明する。
Hereinafter, the operation of the M-sequence generation circuit 10 configured as described above will be described.

【0036】図2はM系列発生回路10の各部の動作を
示すタイミングチャートである。
FIG. 2 is a timing chart showing the operation of each part of the M-sequence generation circuit 10.

【0037】ここで、S0、S1、S2、S3の初期値
はそれぞれ1、1、1、1としている。
Here, the initial values of S0, S1, S2, and S3 are 1, 1, 1, and 1, respectively.

【0038】図2に示すように、NビットカウンタCO
UNT出力が0の時、各レジスタは初期状態で、次のク
ロックの立上がり(図2参照、以下同様)にてレジス
タRの初期値0がシフトレジスタS0に格納され、出力
PN_OUTは0となる。すなわち、ここで0が挿入さ
れている。
As shown in FIG. 2, an N-bit counter CO
When the UNT output is 0, each register is in the initial state, and the initial value 0 of the register R is stored in the shift register S0 at the next rising edge of the clock (see FIG. 2, the same applies hereinafter), and the output PN_OUT becomes 0. That is, 0 is inserted here.

【0039】次のクロックの立上がり()では、シフ
トレジスタS3にはレジスタRの値、シフトレジスタS
2にはレジスタRとシフトレジスタS3の排他的論理
和、シフトレジスタS1にはシフトレジスタS2の値、
シフトレジスタS0にはシフトレジスタS1の値がセレ
クタMUL1により選択されて入力される。
At the next rising edge of the clock (), the value of the register R and the value of the shift register S
2 is the exclusive OR of the register R and the shift register S3, the shift register S1 is the value of the shift register S2,
The value of the shift register S1 is selected and input to the shift register S0 by the selector MUL1.

【0040】以下同様にして、シフトレジスタS0〜S
3の値が更新され、NビットカウンタCOUNTの値が
再び0の時に、シフトレジスタS0〜S3の内部状態は
初期値と同じ1111となる。これより先では、PN_
OUTには16ビット周期の出力が続く。
Similarly, shift registers S0 to S0
When the value of 3 is updated and the value of the N-bit counter COUNT is 0 again, the internal state of the shift registers S0 to S3 becomes 1111, which is the same as the initial value. Beyond this, PN_
OUT is followed by a 16-bit cycle output.

【0041】以上説明したように、第1の実施形態に係
るM系列発生回路10は、それぞれの値をシフトして格
納するNビットのシフトレジスタ11と、シフトレジス
タ11間に生成多項式に従って挿入されたM個のXOR
回路12と、シフトレジスタ11の最終段の値を格納
し、初期値0を持つレジスタ(レジスタR)13と、M
系列の1周期のクロック数を計数するNビットカウンタ
(COUNT)14と、Nビットカウンタ14の各ビッ
トの値の論理和を取るOR回路15と、OR回路15の
値を保持するレジスタ(レジスタL)16と、レジスタ
Lにより保持されたOR回路15出力値と直接OR回路
15から出力された値との論理積の否定を取るNAND
回路17と、OR回路15出力により制御されるセレク
タ(MUL1)18と、レジスタLにより保持されたO
R回路15出力値により制御されるセレクタ(MUL
2)19とを備えて構成したので、要求される16ビッ
ト周期のM系列を容易に発生することができる。
As described above, the M-sequence generating circuit 10 according to the first embodiment shifts and stores each value in an N-bit shift register 11 and is inserted between the shift registers 11 in accordance with a generator polynomial. M XORs
A circuit 12, a register (register R) 13 that stores the value of the last stage of the shift register 11 and has an initial value 0,
An N-bit counter (COUNT) 14 that counts the number of clocks in one cycle of the system, an OR circuit 15 that takes the logical sum of the values of the respective bits of the N-bit counter 14, and a register (register L that holds the value of the OR circuit 15) ) 16 and a NAND for negating the logical product of the output value of the OR circuit 15 held by the register L and the value output directly from the OR circuit 15
Circuit 17, a selector (MUL1) 18 controlled by the output of the OR circuit 15, and the O held by the register L.
Selector (MUL) controlled by output value of R circuit 15
2) Since 19 is provided, it is possible to easily generate a required 16-bit cycle M sequence.

【0042】すなわち、要求されるPN符号(M系列)
の周期は16ビットの場合、従来例では15ビットの周
期しか持たず、16ビットPN符号を生成するために
は、PN符号1周期の先頭または最後尾に1ビットの0
を挿入しなければならなかったが、本実施形態では、図
1に示す回路構成で16ビット周期のM系列の発生が可
能となる。 第2の実施形態 図3は本発明の第2の実施形態に係るM系列発生回路の
構成を示すブロック図である。本実施形態に係るM系列
発生回路の説明にあたり前記図1と同一構成部分には同
一符号を付している。
That is, the required PN code (M sequence)
Has a period of only 15 bits in the conventional example in the case of 16 bits. In order to generate a 16-bit PN code, a one-bit 0 is added at the beginning or end of one period of the PN code.
However, in the present embodiment, it is possible to generate an M sequence having a 16-bit cycle with the circuit configuration shown in FIG. Second Embodiment FIG. 3 is a block diagram showing a configuration of an M-sequence generation circuit according to a second embodiment of the present invention. In the description of the M-sequence generation circuit according to the present embodiment, the same components as those in FIG. 1 are denoted by the same reference numerals.

【0043】図3において、M系列発生回路20は、N
ビット(4ビット)のシフトレジスタS0,S1,S
2,S3からなるシフトレジスタ11と、シフトレジス
タ11間に生成多項式に従って挿入されたM個のXOR
回路12と、M系列の1周期のクロック数を計数するN
ビット(4ビット)カウンタ(COUNT)14と、Nビ
ットカウンタ14の各ビットの値の論理和を取るOR回
路15と、リセット値に任意の値を指定でき、OR回路
15出力により制御されてリセット信号を出力するレジ
スタ(RST)21と、OR回路15出力により制御さ
れるセレクタ(MUL3)22(第1の選択手段,第1
のセレクタ)とから構成される。
In FIG. 3, M-sequence generation circuit 20 includes N
Bit (4 bit) shift registers S0, S1, S
2 and S3, and M XORs inserted between the shift registers 11 according to the generator polynomial
A circuit 12 for counting the number of clocks in one cycle of the M sequence N
A bit (4-bit) counter (COUNT) 14, an OR circuit 15 that takes the logical sum of the values of the respective bits of the N-bit counter 14, and an arbitrary value can be designated as the reset value, and the reset is controlled by the output of the OR circuit 15. A register (RST) 21 for outputting a signal, and a selector (MUL3) 22 (first selection means, first selection means) controlled by the output of the OR circuit 15
Selector).

【0044】上記シフトレジスタS0,S1,S2,S
3及びレジスタRSTは、同一クロックで動作する。
The shift registers S0, S1, S2, S
3 and the register RST operate on the same clock.

【0045】シフトレジスタS3の出力は、XOR回路
12の一方の入力に、XOR回路12の出力はシフトレ
ジスタS2の入力に、シフトレジスタS2の出力はシフ
トレジスタS1の入力に、シフトレジスタS1の出力は
セレクタMUL3の一方のデータ入力に、セレクタMU
L3の出力はシフトレジスタS0の入力に、シフトレジ
スタS0の出力は出力端PN_OUT及びシフトレジス
タS3の入力に、それぞれ接続されている。
The output of the shift register S3 is supplied to one input of the XOR circuit 12, the output of the XOR circuit 12 is supplied to the input of the shift register S2, the output of the shift register S2 is supplied to the input of the shift register S1, and the output of the shift register S1. Is connected to one data input of the selector MUL3,
The output of L3 is connected to the input of the shift register S0, and the output of the shift register S0 is connected to the output terminal PN_OUT and the input of the shift register S3.

【0046】NビットカウンタCOUNTは、上記各レ
ジスタと同じクロックでカウントアップされるカウンタ
であり、NビットカウンタCOUNTの各ビットはOR
回路15の4つの入力となり、OR回路15出力は、セ
レクタMUL3の制御信号、及びシフトレジスタS1〜
S3のイネーブル信号となる。
The N-bit counter COUNT is a counter that counts up at the same clock as the above registers, and each bit of the N-bit counter COUNT is ORed.
The four inputs of the circuit 15 and the output of the OR circuit 15 are the control signal of the selector MUL3 and the shift registers S1 to S1.
This becomes the enable signal of S3.

【0047】セレクタMUL3の他方の入力には論理0
が入力され、セレクタMUL3の制御信号にはOR回路
15出力が接続され、OR回路15出力が1の時はシフ
トレジスタS1の値を、OR回路15出力が0の時は論
理0を選択する。
A logic 0 is applied to the other input of the selector MUL3.
The output of the OR circuit 15 is connected to the control signal of the selector MUL3. When the output of the OR circuit 15 is 1, the value of the shift register S1 is selected, and when the output of the OR circuit 15 is 0, the logic 0 is selected.

【0048】OR回路15出力はまた、シフトレジスタ
S0〜S3と同じクロックで動作するレジスタRSTの
入力にも接続されており、レジスタRSTの出力はシフ
トレジスタS0〜S3のリセット入力に接続されてい
る。
The output of the OR circuit 15 is also connected to the input of a register RST operating at the same clock as the shift registers S0 to S3, and the output of the register RST is connected to the reset input of the shift registers S0 to S3. .

【0049】シフトレジスタS0〜S3は初期値を有
し、レジスタRSTからのリセット信号が入力された場
合は、常にクロックに同期して初期値を書込む。また、
シフトレジスタS1〜S3については、イネーブル信号
が1の時は書込み許可、0の時は書込み禁止である。
The shift registers S0 to S3 have initial values. When a reset signal from the register RST is input, the initial values are always written in synchronization with the clock. Also,
Regarding the shift registers S1 to S3, when the enable signal is 1, writing is permitted, and when it is 0, writing is prohibited.

【0050】以下、上述のように構成されたM系列発生
回路20の動作を説明する。
Hereinafter, the operation of the M-sequence generation circuit 20 configured as described above will be described.

【0051】図4はM系列発生回路20の各部の動作を
示すタイミングチャートである。
FIG. 4 is a timing chart showing the operation of each part of the M-sequence generation circuit 20.

【0052】ここで、シフトレジスタS0〜S3の初期
値は全て1で、リセット信号が入力された状態でクロッ
クの立上がりが入力されると、シフトレジスタS0〜S
3は全て初期化、すなわち1が書込まれる。
Here, the initial values of the shift registers S0 to S3 are all 1, and when the rising edge of the clock is input while the reset signal is input, the shift registers S0 to S3 are reset.
3 are all initialized, that is, 1 is written.

【0053】NビットカウンタCOUNT出力が0の
時、OR回路15出力は0となり、この時のクロックの
立上がり()にてシフトレジスタS0には0が書込ま
れ、同時にPN_OUTも0となる。また、同時に、レ
ジスタRST出力も0となり、次のクロックの立上がり
()にてシフトレジスタS0〜S3は全て初期化さ
れ、1が書込まれる。
When the output of the N-bit counter COUNT is 0, the output of the OR circuit 15 becomes 0. At the rising edge of the clock at this time, 0 is written into the shift register S0, and PN_OUT also becomes 0 at the same time. At the same time, the output of the register RST becomes 0, and all the shift registers S0 to S3 are initialized and 1 is written at the next rising edge of the clock ().

【0054】次のクロックの立上がり()から、シフ
トレジスタS3出力はシフトレジスタS0出力との排他
的論理和を取りシフトレジスタS2へ、シフトレジスタ
S2出力はシフトレジスタS1へ、シフトレジスタS1
出力はシフトレジスタS0へ、シフトレジスタS0出力
はシフトレジスタS3へそれぞれ入力され、PN_OU
Tには図4に示す系列が発生する。
From the next rising edge of the clock (), the output of the shift register S3 takes an exclusive OR with the output of the shift register S0 to obtain the shift register S2, the output of the shift register S2 to the shift register S1, and the shift register S1.
The output is input to the shift register S0, and the output of the shift register S0 is input to the shift register S3.
The series shown in FIG. 4 occurs in T.

【0055】再び、NビットカウンタCOUNT出力が
0の時のクロック立上がり()によりシフトレジスタ
S0に0が書込まれ、PN出力に0が挿入される。
Again, at the rising edge of the clock when the output of the N-bit counter COUNT is 0, 0 is written into the shift register S0 and 0 is inserted into the PN output.

【0056】以上説明したように、第2の実施形態に係
るM系列発生回路20は、Nビットのシフトレジスタ1
1と、シフトレジスタ11間に生成多項式に従って挿入
されたM個のXOR回路12と、M系列の1周期のクロ
ック数を計数するNビットカウンタ(COUNT)14
と、Nビットカウンタ14の各ビットの値の論理和を取
るOR回路15と、リセット値に任意の値を指定でき、
OR回路15出力により制御されてリセット信号を出力
するレジスタ(RST)21と、OR回路15出力によ
り制御されるセレクタ(MUL3)22とを備えて構成
したので、第1の実施形態より小規模な回路構成で16
ビット周期のM系列を発生することができる。これは、
リセット値に任意の値を指定できるレジスタが使用でき
る場合に有効である。 第3の実施形態 図5は本発明の第3の実施形態に係るM系列発生回路の
構成を示すブロック図である。本実施形態に係るM系列
発生回路の説明にあたり前記図1と同一構成部分には同
一符号を付している。
As described above, the M-sequence generation circuit 20 according to the second embodiment includes an N-bit shift register 1
1, M XOR circuits 12 inserted between the shift registers 11 in accordance with a generator polynomial, and an N-bit counter (COUNT) 14 for counting the number of clocks in one cycle of the M series.
And an OR circuit 15 that takes the logical sum of the values of the respective bits of the N-bit counter 14, and an arbitrary value can be designated as the reset value.
Since a register (RST) 21 controlled by the output of the OR circuit 15 and outputting a reset signal and a selector (MUL3) 22 controlled by the output of the OR circuit 15 are provided, the scale is smaller than that of the first embodiment. 16 in circuit configuration
An M sequence with a bit period can be generated. this is,
This is effective when a register that can specify an arbitrary value for the reset value can be used. Third Embodiment FIG. 5 is a block diagram showing a configuration of an M-sequence generation circuit according to a third embodiment of the present invention. In the description of the M-sequence generation circuit according to the present embodiment, the same components as those in FIG. 1 are denoted by the same reference numerals.

【0057】図5において、M系列発生回路30は、N
ビット(4ビット)のシフトレジスタS0,S1,S
2,S3からなるシフトレジスタ11と、シフトレジス
タ11間に生成多項式に従って挿入されたM個のXOR
(排他的論理和)回路12と、シフトレジスタ11の最
終段の値を格納し、初期値0を持つレジスタ(レジスタ
R)13と、M系列の1周期のクロック数を計数するN
ビット(4ビット)カウンタ(COUNT)14と、N
ビットカウンタCOUNTと同数のMビットを有するM
ビット(4ビット)レジスタ(MASK)31(第1の
レジスタ)と、MビットレジスタMASKとNビットカ
ウンタCOUNTの各ビットの論理積を取るM個(4
個)のAND回路10〜AND回路13からなるAND
回路32(第2の論理演算手段)と、AND回路32の
出力の論理和を取るOR回路15と、OR回路15の値
を保持するレジスタ(レジスタL)16と、レジスタL
により保持されたOR回路15出力値と直接OR回路1
5から出力された値との論理積の否定を取るNAND回
路17と、OR回路15出力により制御されるセレクタ
(MUL1)18と、レジスタLにより保持されたOR
回路15出力値により制御されるセレクタ(MUL2)
19とから構成される。
In FIG. 5, M-sequence generation circuit 30 includes N
Bit (4 bit) shift registers S0, S1, S
2 and S3, and M XORs inserted between the shift registers 11 according to the generator polynomial
(Exclusive OR) circuit 12, a register (register R) 13 which stores the value of the last stage of shift register 11 and has initial value 0, and N which counts the number of clocks in one cycle of M series.
Bit (4 bit) counter (COUNT) 14 and N
M having the same number of M bits as the bit counter COUNT
A bit (4-bit) register (MASK) 31 (first register) and M (4 bits) which take the logical product of the M-bit register MASK and each bit of the N-bit counter COUNT
AND) consisting of AND circuits 10 to 13
A circuit 32 (second logical operation means), an OR circuit 15 for taking a logical sum of outputs of the AND circuit 32, a register (register L) 16 for holding the value of the OR circuit 15, and a register L
The output value of the OR circuit 15 held by the
5, a NAND circuit 17 for negating the logical product with the value output from the selector 5, a selector (MUL1) 18 controlled by the output of the OR circuit 15, and the OR held by the register L.
Selector controlled by output value of circuit 15 (MUL2)
19.

【0058】NビットレジスタMASKは、4ビットレ
ジスタで、そのクロックは他のレジスタと同一でも、異
なっていてもよい。また、NビットレジスタMASK
は、図示しない外部回路から書込みが可能である。
The N-bit register MASK is a 4-bit register, and its clock may be the same as or different from other registers. Also, an N-bit register MASK
Can be written from an external circuit (not shown).

【0059】AND回路10〜AND回路13からなる
AND回路32は、論理和であり、AND回路10の入
力にはNビットカウンタCOUNTの第0ビット(LS
B:Least Significant Bit)とNビットレジスタMA
SKの第0ビット(LSB)が接続され、AND回路1
0の出力にはOR回路15の入力が接続されている。A
ND回路11〜AND回路13も同様に、Nビットカウ
ンタCOUNTとNビットレジスタMASKの同じビッ
トが接続され、その出力はOR回路15の入力に接続さ
れている。
The AND circuit 32 composed of the AND circuits 10 to 13 is a logical sum, and the input of the AND circuit 10 has the 0th bit (LS) of the N-bit counter COUNT.
B: Least Significant Bit) and N-bit register MA
The 0th bit (LSB) of SK is connected, and AND circuit 1
The input of the OR circuit 15 is connected to the output of 0. A
Similarly, the ND circuit 11 to the AND circuit 13 are connected to the same bit of the N-bit counter COUNT and the N-bit register MASK, and the output is connected to the input of the OR circuit 15.

【0060】以下、上述のように構成されたM系列発生
回路30の動作を説明する。
Hereinafter, the operation of the M-sequence generation circuit 30 configured as described above will be described.

【0061】図6はM系列発生回路30の各部の動作を
示すタイミングチャートである。
FIG. 6 is a timing chart showing the operation of each part of the M-sequence generation circuit 30.

【0062】シフトレジスタS0、S1、S2、S3の
初期値は、それぞれ1、1、1、1としている。また、
NビットレジスタMASKには、外部より予め最上位ビ
ットから順に0011がセットされている。
The initial values of the shift registers S0, S1, S2, S3 are 1, 1, 1, 1 respectively. Also,
0011 is set in the N-bit register MASK in advance from the most significant bit from the outside in advance.

【0063】OR回路15出力は、NビットカウンタC
OUNT出力が0の時、各レジスタは初期状態で、次の
クロックの立上がりよりシフトレジスタS0出力はシフ
トレジスタS3へ、シフトレジスタS3出力及びシフト
レジスタS0出力は排他的論理和を取りシフトレジスタ
S2へ、シフトレジスタS2出力はシフトレジスタS1
へ、シフトレジスタS1出力はシフトレジスタS0へそ
れぞれ入力され、以後同様の動作が繰り返され、PN符
号が生成される。
The output of the OR circuit 15 is an N-bit counter C
When the OUT output is 0, each register is in the initial state, and the shift register S0 output is shifted to the shift register S3 from the next rising edge of the clock, and the shift register S3 output and the shift register S0 output are exclusive ORed and shifted to the shift register S2. , The output of the shift register S2 is the shift register S1
The output of the shift register S1 is input to the shift register S0, and the same operation is repeated thereafter to generate a PN code.

【0064】NビットカウンタCOUNT出力が、Nビ
ットレジスタMASK値と同じ0011の時、次のクロ
ックの立上がり()でシフトレジスタS0にはレジス
タRの値が入力され、PN符号出力には0が挿入され
る。続くクロックの立上がり()では、シフトレジス
タS3にレジスタRの値が入力され、レジスタRにはシ
フトレジスタS0の値すなわち0が入力される。
When the output of the N-bit counter COUNT is 0011, which is the same as the value of the N-bit register MASK, the value of the register R is input to the shift register S0 at the next rising edge of the clock (), and 0 is inserted in the PN code output. Is done. At the next rising edge of the clock (), the value of the register R is input to the shift register S3, and the value of the shift register S0, that is, 0, is input to the register R.

【0065】以後のクロックでは再び、シフトレジスタ
S0出力はシフトレジスタS3へ、シフトレジスタS3
出力及びシフトレジスタS0出力は排他的論理和を取り
シフトレジスタS2へ、シフトレジスタS2出力はシフ
トレジスタS1へ、シフトレジスタS1出力はシフトレ
ジスタS0へそれぞれ入力され、以後同様の動作が繰り
返され、PN符号が生成される。
In the subsequent clock, the output of the shift register S0 is again sent to the shift register S3,
The output and the output of the shift register S0 are exclusive-ORed and input to the shift register S2, the output of the shift register S2 is input to the shift register S1, and the output of the shift register S1 is input to the shift register S0. A code is generated.

【0066】以上説明したように、第3の実施形態に係
るM系列発生回路30は、さらにNビットカウンタCO
UNTと同数のMビットを有するMビットレジスタ(M
ASK)31と、MビットレジスタMASKとNビット
カウンタCOUNTの各ビットの論理積を取るM個のA
ND回路10〜AND回路13からなるAND回路32
と、AND回路32の出力の論理和を取るOR回路15
とを備えて構成したので、16ビット周期で、任意の位
置に0を挿入したM系列を発生することができる。すな
わち、従来例では、1ビットの挿入はPN符号1周期の
先頭または最後尾に限定されており、1周期内の任意の
位置に0を挿入することはできなかったが、本実施形態
では、任意の位置に0を挿入したM系列を発生すること
ができる。 第4の実施形態 図7は本発明の第4の実施形態に係るM系列発生回路の
構成を示すブロック図である。本実施形態は、第2の実
施形態に係るM系列発生回路と第3の実施形態に係るM
系列発生回路を組み合わせたものである。本実施形態に
係るM系列発生回路の説明にあたり前記図3及び図5と
同一構成部分には同一符号を付している。
As described above, the M-sequence generation circuit 30 according to the third embodiment further includes an N-bit counter CO
An M-bit register (M bits) having the same number of M bits as UNT
ASK) 31 and M A's that take the logical product of M-bit register MASK and each bit of N-bit counter COUNT
AND circuit 32 including ND circuit 10 and AND circuit 13
And an OR circuit 15 that takes the logical sum of the output of the AND circuit 32
Thus, an M sequence in which 0 is inserted at an arbitrary position can be generated in a 16-bit cycle. That is, in the conventional example, insertion of one bit is limited to the beginning or end of one period of the PN code, and 0 cannot be inserted at an arbitrary position in one period. However, in the present embodiment, An M-sequence in which 0 is inserted at an arbitrary position can be generated. Fourth Embodiment FIG. 7 is a block diagram showing a configuration of an M-sequence generation circuit according to a fourth embodiment of the present invention. In this embodiment, the M-sequence generation circuit according to the second embodiment and the M-sequence generation circuit according to the third embodiment
This is a combination of a series generation circuit. In the description of the M-sequence generation circuit according to the present embodiment, the same components as those in FIGS. 3 and 5 are denoted by the same reference numerals.

【0067】図7において、M系列発生回路40は、N
ビット(4ビット)のシフトレジスタS0,S1,S
2,S3からなるシフトレジスタ11と、シフトレジス
タ11間に生成多項式に従って挿入されたM個のXOR
回路12と、M系列の1周期のクロック数を計数するN
ビット(4ビット)カウンタ(COUNT)14と、Nビ
ットカウンタCOUNTと同数のMビットを有するMビ
ット(4ビット)レジスタ(MASK)31と、Mビッ
トレジスタMASKとNビットカウンタCOUNTの各
ビットの論理積を取るM個のAND回路10〜AND回
路13からなるAND回路32と、AND回路32の出
力の論理和を取るOR回路15と、リセット値に任意の
値を指定でき、OR回路15出力により制御されてリセ
ット信号を出力するレジスタ(RST)21と、OR回
路15出力により制御されるセレクタ(MUL3)22
とから構成される。
In FIG. 7, M-sequence generation circuit 40 includes N
Bit (4 bit) shift registers S0, S1, S
2 and S3, and M XORs inserted between the shift registers 11 according to the generator polynomial
A circuit 12 for counting the number of clocks in one cycle of the M sequence N
A bit (4 bit) counter (COUNT) 14, an M bit (4 bit) register (MASK) 31 having the same number of M bits as the N bit counter COUNT, and a logic of each bit of the M bit register MASK and the N bit counter COUNT. An AND circuit 32 composed of M AND circuits 10 to 13 that take a product, an OR circuit 15 that takes a logical sum of outputs of the AND circuit 32, and an arbitrary value can be designated as a reset value. Register (RST) 21 which is controlled to output a reset signal, and selector (MUL3) 22 which is controlled by the output of OR circuit 15
It is composed of

【0068】NビットレジスタMASKは、4ビットレ
ジスタで、そのクロックは他のレジスタと同一でも、異
なっていてもよい。また、NビットレジスタMASK
は、図示しない外部回路から書込みが可能である。
The N-bit register MASK is a 4-bit register, and its clock may be the same as or different from other registers. Also, an N-bit register MASK
Can be written from an external circuit (not shown).

【0069】以下、上述のように構成されたM系列発生
回路40の動作を説明する。
Hereinafter, the operation of the M-sequence generation circuit 40 configured as described above will be described.

【0070】図8はM系列発生回路40の各部の動作を
示すタイミングチャートである。
FIG. 8 is a timing chart showing the operation of each part of M-sequence generation circuit 40.

【0071】ここで、シフトレジスタS0〜S3の初期
値は全て1で、リセット信号が入力された状態でクロッ
クの立上がりが入力されると、シフトレジスタS0〜S
3は全て初期化、すなわち1が書込まれる。
Here, the initial values of the shift registers S0 to S3 are all 1, and when the rising edge of the clock is input while the reset signal is input, the shift registers S0 to S3 are reset.
3 are all initialized, that is, 1 is written.

【0072】NビットカウンタCOUNT出力が3の
時、OR回路15出力は0となり、この時のクロックの
立上がり()にてシフトレジスタS0には0が書込ま
れ、同時にPN_OUTも0となる。また同時に、レジ
スタRST出力も0となり、次のクロックの立上がり
()にてシフトレジスタS0〜S3は全て初期化さ
れ、1が書込まれる。
When the output of the N-bit counter COUNT is 3, the output of the OR circuit 15 becomes 0, and at the rising edge of the clock at this time, 0 is written into the shift register S0, and PN_OUT also becomes 0 at the same time. At the same time, the output of the register RST becomes 0, and all the shift registers S0 to S3 are initialized and 1 is written at the next rising edge of the clock ().

【0073】次のクロックの立上がり()から、シフ
トレジスタS3出力はシフトレジスタS0出力との排他
的論理和を取りシフトレジスタS2へ、シフトレジスタ
S2出力はシフトレジスタS1へ、シフトレジスタS1
出力はシフトレジスタS0へ、シフトレジスタS0出力
はシフトレジスタS3へそれぞれ入力され、PN_OU
Tには図8に示す系列が発生する。
At the next rising edge of the clock (), the output of the shift register S3 takes an exclusive OR with the output of the shift register S0 to take the exclusive OR, the output of the shift register S2 goes to the shift register S1, and the shift register S1
The output is input to the shift register S0, and the output of the shift register S0 is input to the shift register S3.
The series shown in FIG. 8 occurs in T.

【0074】再び、NビットカウンタCOUNT出力が
3の時のクロックの立上がりでシフトレジスタS0に0
が書込まれ、PN出力に0が挿入される。
Again, at the rising edge of the clock when the output of the N-bit counter COUNT is 3, 0 is stored in the shift register S0.
Is written, and 0 is inserted into the PN output.

【0075】以上説明したように、第4の実施形態に係
るM系列発生回路40は、第2の実施形態に係るM系列
発生回路に、NビットカウンタCOUNTと同数のMビ
ットを有するMビットレジスタ(MASK)31と、M
ビットレジスタMASKとNビットカウンタCOUNT
の各ビットの論理積を取るM個のAND回路10〜AN
D回路13からなるAND回路32と、AND回路32
の出力の論理和を取るOR回路15とを備えて構成した
ので、16ビット周期で、任意の位置に0を挿入したM
系列を発生することができ、更に第3の実施形態より少
ないゲート数で発生器が実現できる。これは、リセット
値に任意の値を指定できるレジスタが使用できる場合に
有効である。 第5の実施形態 図9は本発明の第5の実施形態に係るM系列発生回路の
構成を示すブロック図である。本実施形態に係るM系列
発生回路の説明にあたり前記図5と同一構成部分には同
一符号を付している。
As described above, the M-sequence generation circuit 40 according to the fourth embodiment is different from the M-sequence generation circuit according to the second embodiment in that an M-bit register having the same number of M bits as the N-bit counter COUNT. (MASK) 31 and M
Bit register MASK and N-bit counter COUNT
AND circuits 10 to AN that take the logical product of each bit of
An AND circuit 32 comprising a D circuit 13;
And an OR circuit 15 that takes the logical sum of the outputs of the M.
A series can be generated, and a generator can be realized with a smaller number of gates than in the third embodiment. This is effective when a register that can specify an arbitrary value for the reset value can be used. Fifth Embodiment FIG. 9 is a block diagram showing a configuration of an M-sequence generation circuit according to a fifth embodiment of the present invention. In the description of the M-sequence generation circuit according to the present embodiment, the same components as those in FIG. 5 are denoted by the same reference numerals.

【0076】図9において、M系列発生回路50は、N
ビット(4ビット)のシフトレジスタS0,S1,S
2,S3からなるシフトレジスタ11と、シフトレジス
タ11より1個少ない数を有するN−1ビットレジスタ
(GEN)51(第2のレジスタ)と、N−1ビットレ
ジスタGEN出力を一方の入力として持つN−1個のA
ND回路52(第3の論理演算手段)と、シフトレジス
タ11間に挿入され、N−1個のAND回路52出力を
一方の入力として持つN−1個のXOR回路53(排他
的論理和演算手段)と、シフトレジスタ11の最終段の
値を格納し、初期値0を持つレジスタ(レジスタR)1
3と、M系列の1周期のクロック数を計数するNビット
(4ビット)カウンタ(COUNT)14と、Nビット
カウンタ14の各ビットの値の論理和を取るOR回路1
5と、OR回路15の値を保持するレジスタ(レジスタ
L)16と、レジスタLにより保持されたOR回路15
出力値と直接OR回路15から出力された値との論理積
の否定を取るNAND回路17と、OR回路15出力に
より制御されるセレクタ(MUL1)18と、レジスタ
Lにより保持されたOR回路15出力値により制御され
るセレクタ(MUL2)19とから構成される。
In FIG. 9, M-sequence generation circuit 50 includes N
Bit (4 bit) shift registers S0, S1, S
2, a shift register 11 consisting of S3, an N-1 bit register (GEN) 51 (second register) having one less number than the shift register 11, and an N-1 bit register GEN output as one input. N-1 A
N-1 XOR circuits 53 (exclusive OR operation) which are inserted between the ND circuit 52 (third logical operation means) and the shift register 11 and have N-1 AND circuit 52 outputs as one input. Means) and a register (register R) 1 which stores the value of the last stage of the shift register 11 and has an initial value 0.
3, an N-bit (4-bit) counter (COUNT) 14 for counting the number of clocks in one cycle of the M series, and an OR circuit 1 for taking the logical sum of the values of each bit of the N-bit counter 14
5, a register (register L) 16 holding the value of the OR circuit 15, and the OR circuit 15 held by the register L
A NAND circuit 17 for negating the logical product of the output value and the value output directly from the OR circuit 15, a selector (MUL1) 18 controlled by the output of the OR circuit 15, and an output of the OR circuit 15 held by the register L And a selector (MUL2) 19 controlled by a value.

【0077】上記シフトレジスタS0〜S3、レジスタ
R、レジスタLは同一クロックで動作するレジスタ、3
ビットレジスタGENはシフトレジスタS0〜S3と同
一または異なるクロックで動作する3ビットレジスタで
あり、図示しない外部から書込みが可能である。
The shift registers S0 to S3, the registers R and L are registers operating at the same clock,
The bit register GEN is a 3-bit register that operates with the same or different clock as the shift registers S0 to S3, and can be written from outside (not shown).

【0078】XOR回路0〜XOR回路2からなるXO
R回路53は、それぞれ排他的論理和であり、AND回
路0〜AND回路2からなるAND回路52は、それぞ
れ論理積である。また、NAND回路17は、論理積の
否定、セレクタMUL1、セレクタMUL2はセレク
タ、NビットカウンタCOUNTは4ビットカウンタ、
OR回路15は論理和である。
XO comprising XOR circuits 0 to 2
Each of the R circuits 53 is an exclusive OR, and each of the AND circuits 52 including the AND circuits 0 to 2 is a logical product. Also, the NAND circuit 17 performs a logical negation, the selector MUL1, the selector MUL2 is a selector, the N-bit counter COUNT is a 4-bit counter,
The OR circuit 15 is a logical sum.

【0079】シフトレジスタS3の出力は、XOR回路
2の一方の入力に、XOR回路2の出力はシフトレジス
タS2の入力に、シフトレジスタS2の出力はXOR回
路1の一方の入力に、XOR回路1の出力はシフトレジ
スタS1の入力に、シフトレジスタS1の出力はXOR
回路0の一方の入力に、XOR回路0の出力はセレクタ
MUL1の一方のデータ入力に、セレクタMUL1の出
力はシフトレジスタS0の入力に、シフトレジスタS0
の出力は出力端PN_OUT、レジスタRの入力及びセ
レクタMUL2の一方の入力に、それぞれ接続されてい
る。
The output of the shift register S3 is input to one input of the XOR circuit 2, the output of the XOR circuit 2 is input to the input of the shift register S2, the output of the shift register S2 is input to one input of the XOR circuit 1, and the XOR circuit 1 Is the input of the shift register S1, and the output of the shift register S1 is the XOR
The output of the XOR circuit 0 is input to one data input of the selector MUL1, the output of the selector MUL1 is input to the input of the shift register S0, the shift register S0
Are connected to the output terminal PN_OUT, the input of the register R, and one input of the selector MUL2.

【0080】レジスタRの出力は、セレクタMUL1の
他方の入力及びセレクタMUL2の他方の入力に接続さ
れ、セレクタMUL1の制御信号として、OR回路15
の出力信号が接続されており、セレクタMUL1はOR
回路15出力が1の時、シフトレジスタS1の出力値を
出力し、OR回路15出力が0の時はレジスタRの値を
出力する。
The output of the register R is connected to the other input of the selector MUL1 and the other input of the selector MUL2.
Are connected, and the selector MUL1 is connected to the OR
When the output of the circuit 15 is 1, the output value of the shift register S1 is output, and when the output of the OR circuit 15 is 0, the value of the register R is output.

【0081】セレクタMUL2の出力は、シフトレジス
タS3の入力及びAND回路0〜AND回路2の一方の
入力に接続され、セレクタMUL2の制御信号は、レジ
スタLの出力と接続され、セレクタMUL2はレジスタ
L出力が0の時、レジスタR出力を選択し、レジスタL
出力が1の時、シフトレジスタS0出力を選択する。
The output of the selector MUL2 is connected to the input of the shift register S3 and one of the inputs of the AND circuits 0 to 2, the control signal of the selector MUL2 is connected to the output of the register L, and the selector MUL2 is connected to the register L When the output is 0, the register R output is selected and the register L
When the output is 1, the shift register S0 output is selected.

【0082】3ビットレジスタGENの3ビット出力
は、それぞれAND回路0、AND回路1、AND回路
2の他方の入力に接続されている。
The 3-bit output of the 3-bit register GEN is connected to the other inputs of the AND circuits 0, 1, and 2, respectively.

【0083】NビットカウンタCOUNTは、上記各レ
ジスタと同じクロックでカウントアップされるカウンタ
で、NビットカウンタCOUNTの各ビットはOR回路
15の4つの入力となり、OR回路15出力はセレクタ
MUL1の制御信号となるとともに、シフトレジスタS
1〜S3のイネーブル信号となり、OR回路15出力が
1の時、シフトレジスタS1〜S3は書込み許可とな
り、OR回路15出力が0の時、シフトレジスタS1〜
S3は書込み禁止となる。
The N-bit counter COUNT is a counter that counts up at the same clock as the above registers. Each bit of the N-bit counter COUNT becomes four inputs of the OR circuit 15, and the output of the OR circuit 15 is a control signal of the selector MUL1. And the shift register S
When the output of the OR circuit 15 is 1, the shift registers S1 to S3 are enabled for writing. When the output of the OR circuit 15 is 0, the shift registers S1 to S3 are enabled.
S3 is write-protected.

【0084】また、OR回路15出力は、NAND回路
17の一方の入力及びレジスタLの入力にも接続されて
いる。NAND回路17の他方の入力はレジスタLの出
力に接続され、NAND回路17の出力はレジスタRの
イネーブル信号となり、NAND回路17出力が1の時
はレジスタRは書込み許可、NAND回路17出力が0
の時はレジスタRは書込み禁止となる。
The output of the OR circuit 15 is also connected to one input of the NAND circuit 17 and the input of the register L. The other input of the NAND circuit 17 is connected to the output of the register L. The output of the NAND circuit 17 becomes an enable signal of the register R. When the output of the NAND circuit 17 is 1, the register R is write-enabled and the output of the NAND circuit 17 is 0.
In this case, the register R is write-protected.

【0085】以下、上述のように構成されたM系列発生
回路50の動作を説明する。
Hereinafter, the operation of M-sequence generation circuit 50 configured as described above will be described.

【0086】3ビットレジスタGENに、生成多項式に
対応したビットが格納される。3ビットレジスタGEN
の各ビット出力は、それぞれAND回路0〜AND回路
2でセレクタMUL2出力と論理積が取られ、XOR回
路0〜XOR回路2に入力される。XOR回路0〜XO
R回路2からなるXOR回路53は、それぞれAND回
路0〜AND回路2とシフトレジスタS1〜S3との排
他的論理和を取る。したがって、3ビットレジスタGE
Nに、任意の生成多項式に対応したビットを格納すれ
ば、任意の生成多項式にて表現されるM系列が発生され
る。
A bit corresponding to the generator polynomial is stored in 3-bit register GEN. 3-bit register GEN
AND outputs of the selectors MUL2 are taken by AND circuits 0 to 2 and input to the XOR circuits 0 to XOR circuit 2, respectively. XOR circuits 0 to XO
The XOR circuit 53 composed of the R circuit 2 takes the exclusive OR of the AND circuits 0 to 2 and the shift registers S1 to S3, respectively. Therefore, the 3-bit register GE
If a bit corresponding to an arbitrary generator polynomial is stored in N, an M sequence represented by an arbitrary generator polynomial is generated.

【0087】例えば、シフトレジスタS0、S1、S
2、S3の初期値をそれぞれ1、1、1、1とし、3ビ
ットレジスタGENに予め100を格納した場合、動作
は第1の実施形態と全く同様となる。
For example, shift registers S0, S1, S
If the initial values of S2 and S3 are respectively 1, 1, 1, and 1, and 100 is stored in advance in the 3-bit register GEN, the operation is exactly the same as in the first embodiment.

【0088】以上説明したように、第5の実施形態に係
るM系列発生回路50は、さらにシフトレジスタ11よ
り1個少ない数を有するN−1ビットレジスタ(GE
N)51と、N−1ビットレジスタGEN出力を一方の
入力として持つN−1個のAND回路52と、シフトレ
ジスタ11間に挿入され、N−1個のAND回路52出
力を一方の入力として持つN−1個のXOR回路53と
を備えて構成したので、任意の生成多項式にて表現され
るPN符号(M系列)発生器を実現することができる。
すなわち、従来例では、前記式(1)により表現される
生成多項式のみに対応しており、他の生成多項式を実現
する場合、新たに回路を設計し直す必要があったが、本
実施形態では、任意の生成多項式にて表現されるPN符
号(M系列)を発生できるので、新たに回路を設計し直
す必要はない。 第6の実施形態 図10は本発明の第6の実施形態に係るM系列発生回路
の構成を示すブロック図である。本実施形態に係るM系
列発生回路の説明にあたり前記図3及び図9と同一構成
部分には同一符号を付している。
As described above, the M-sequence generating circuit 50 according to the fifth embodiment further includes an N-1 bit register (GE) having one less number than the shift register 11.
N) 51, N-1 AND circuits 52 having the N-1 bit register GEN output as one input, and the output of the N-1 AND circuits 52 inserted between the shift register 11 and one input. Since it is configured to include N-1 XOR circuits 53, it is possible to realize a PN code (M sequence) generator represented by an arbitrary generator polynomial.
That is, in the conventional example, only the generator polynomial represented by the above-described equation (1) is supported, and when another generator polynomial is realized, it is necessary to redesign the circuit. However, in this embodiment, , A PN code (M-sequence) expressed by an arbitrary generator polynomial can be generated, and there is no need to redesign the circuit. Sixth Embodiment FIG. 10 is a block diagram showing a configuration of an M-sequence generation circuit according to a sixth embodiment of the present invention. In the description of the M-sequence generation circuit according to the present embodiment, the same components as those in FIGS. 3 and 9 are denoted by the same reference numerals.

【0089】図10において、M系列発生回路60は、
Nビット(4ビット)のシフトレジスタS0,S1,S
2,S3からなるシフトレジスタ11と、シフトレジス
タ11より1個少ない数を有するN−1ビットレジスタ
(GEN)51と、N−1ビットレジスタGEN出力を
一方の入力として持つN−1個のAND回路52と、シ
フトレジスタ11間に挿入され、N−1個のAND回路
52出力を一方の入力として持つN−1個のXOR回路
53と、M系列の1周期のクロック数を計数するNビッ
ト(4ビット)カウンタ(COUNT)14と、Nビッ
トカウンタ14の各ビットの値の論理和を取るOR回路
15と、リセット値に任意の値を指定でき、OR回路1
5出力により制御されてリセット信号を出力するレジス
タ(RST)21と、OR回路15出力により制御され
るセレクタ(MUL3)22とから構成される。
In FIG. 10, M-sequence generation circuit 60 includes:
N-bit (4-bit) shift registers S0, S1, S
2, S3, an N-1 bit register (GEN) 51 having one less number than the shift register 11, and N-1 ANDs having an N-1 bit register GEN output as one input. A circuit 52, N-1 XOR circuits 53 inserted between the shift register 11 and having N-1 AND circuits 52 outputs as one input, and N bits for counting the number of clocks in one cycle of the M sequence (4-bit) counter (COUNT) 14, an OR circuit 15 for taking the logical sum of the values of the respective bits of the N-bit counter 14, and an arbitrary value can be designated as the reset value.
A register (RST) 21 which is controlled by five outputs to output a reset signal, and a selector (MUL3) 22 which is controlled by the output of the OR circuit 15.

【0090】上記シフトレジスタS0〜S3、レジスタ
R、レジスタLは同一クロックで動作するレジスタ、3
ビットレジスタGENはシフトレジスタS0〜S3と同
一または異なるクロックで動作する3ビットレジスタで
あり、図示しない外部から書込みが可能である。
The shift registers S0 to S3, the registers R and L are registers operating at the same clock,
The bit register GEN is a 3-bit register that operates with the same or different clock as the shift registers S0 to S3, and can be written from outside (not shown).

【0091】シフトレジスタS3の出力は、XOR回路
2の一方の入力に、XOR回路2の出力はシフトレジス
タS2の入力に、シフトレジスタS2の出力はXOR回
路1の一方の入力に、XOR回路1の出力はシフトレジ
スタS1の入力に、シフトレジスタS1の出力XOR回
路0の一方の入力に、XOR回路0の出力はセレクタM
UL3の一方のデータ入力に、セレクタMUL3の出力
はシフトレジスタS0の入力に、シフトレジスタS0の
出力は出力端PN_OUT及びシフトレジスタS3の入
力とAND回路0、AND回路1、AND回路2の一方
の入力に、それぞれ接続されている。
The output of the shift register S3 is input to one input of the XOR circuit 2, the output of the XOR circuit 2 is input to the input of the shift register S2, the output of the shift register S2 is input to one input of the XOR circuit 1, and the XOR circuit 1 Is input to the input of the shift register S1, the output of the shift register S1 is input to one input of the XOR circuit 0, and the output of the XOR circuit 0 is
One of the data inputs of UL3, the output of the selector MUL3 is the input of the shift register S0, and the output of the shift register S0 is the output terminal PN_OUT and the input of the shift register S3 and one of the AND circuit 0, the AND circuit 1, and the AND circuit 2. Each is connected to an input.

【0092】3ビットレジスタGENの3ビット出力
は、それぞれAND回路0、AND回路1、AND回路
2の他方の入力に接続されている。
The 3-bit output of the 3-bit register GEN is connected to the other inputs of the AND circuits 0, 1, and 2, respectively.

【0093】NビットカウンタCOUNTは、上記レジ
スタと同じクロックでカウントアップされるカウンタで
あり、NビットカウンタCOUNTの各ビットはOR回
路15の4つの入力となり、OR回路15出力はセレク
タMUL3の制御信号、シフトレジスタS1〜S3のイ
ネーブル信号となる。
The N-bit counter COUNT is a counter which counts up at the same clock as the register. Each bit of the N-bit counter COUNT becomes four inputs of the OR circuit 15, and the output of the OR circuit 15 is a control signal of the selector MUL3. , And enable signals for the shift registers S1 to S3.

【0094】セレクタMUL3の他方の入力には、論理
0が入力され、セレクタMUL3の制御信号にはOR回
路15出力が接続されており、OR回路15出力が1の
時はシフトレジスタS1の値を、OR回路15出力が0
の時は論理0を選択する。
A logic 0 is input to the other input of the selector MUL3, and the output of the OR circuit 15 is connected to the control signal of the selector MUL3. When the output of the OR circuit 15 is 1, the value of the shift register S1 is changed. , OR circuit 15 output is 0
In the case of, logic 0 is selected.

【0095】OR回路15出力はまた、シフトレジスタ
S0〜S3と同じクロックで動作するレジスタRSTの
入力にも接続されており、レジスタRSTの出力はシフ
トレジスタS0〜S3のリセット入力に接続されてい
る。
The output of the OR circuit 15 is also connected to the input of a register RST operating at the same clock as the shift registers S0 to S3, and the output of the register RST is connected to the reset input of the shift registers S0 to S3. .

【0096】シフトレジスタS0〜S3は、初期値を有
し、リセット信号が入力された場合は常にクロックに同
期して初期値を書込む。また、シフトレジスタS1〜S
3については、イネーブル信号が1の時は書込み許可、
0の時は書込み禁止である。
Each of the shift registers S0 to S3 has an initial value, and always writes the initial value in synchronization with a clock when a reset signal is input. Also, shift registers S1 to S
Regarding 3, when the enable signal is 1, the write is permitted,
When 0, writing is prohibited.

【0097】以下、上述のように構成されたM系列発生
回路60の動作を説明する。
Hereinafter, the operation of M-sequence generation circuit 60 configured as described above will be described.

【0098】M系列発生回路60の基本動作について
は、第2の実施形態と同様であり、特徴部分の動作は、
第5の実施形態と同様である。
The basic operation of the M-sequence generation circuit 60 is the same as that of the second embodiment.
This is the same as the fifth embodiment.

【0099】図10中、シフトレジスタS0、S1、S
2、S3の初期値をそれぞれ1、1、1、1とし、3ビ
ットレジスタGENに予め100を格納した場合、動作
は第2の実施形態と全く同様となる。
In FIG. 10, shift registers S0, S1, S
When the initial values of S2 and S3 are set to 1, 1, 1, and 1, respectively, and 100 is stored in advance in the 3-bit register GEN, the operation is exactly the same as in the second embodiment.

【0100】以上説明したように、第6の実施形態に係
るM系列発生回路60は、第2の実施形態に係るM系列
発生回路に、さらにシフトレジスタ11より1個少ない
数を有するN−1ビットレジスタ(GEN)51と、N
−1ビットレジスタGEN出力を一方の入力として持つ
N−1個のAND回路52と、シフトレジスタ11間に
挿入され、N−1個のAND回路52出力を一方の入力
として持つN−1個のXOR回路53とを備えて構成し
たので、任意の生成多項式にて表現されるPN符号(M
系列)発生器が、第5の実施形態より少ないゲート数で
実現できる。これは、リセット値に任意の値を指定でき
るレジスタが使用できる場合に有効である。 第7の実施形態 図11は本発明の第7の実施形態に係るM系列発生回路
の構成を示すブロック図である。本実施形態は、第3の
実施形態に係るM系列発生回路と第5の実施形態に係る
M系列発生回路を組み合わせたものである。本実施形態
に係るM系列発生回路の説明にあたり前記図5及び図9
と同一構成部分には同一符号を付している。
As described above, the M-sequence generation circuit 60 according to the sixth embodiment is different from the M-sequence generation circuit according to the second embodiment in that N−1 Bit register (GEN) 51 and N
N-1 AND circuits 52 each having a -1 bit register GEN output as one input and N-1 AND circuits 52 inserted between the shift registers 11 and having N-1 AND circuit 52 outputs as one input. The XOR circuit 53 is provided, so that the PN code (M
A (series) generator can be realized with a smaller number of gates than in the fifth embodiment. This is effective when a register that can specify an arbitrary value for the reset value can be used. Seventh Embodiment FIG. 11 is a block diagram illustrating a configuration of an M-sequence generation circuit according to a seventh embodiment of the present invention. The present embodiment is a combination of the M-sequence generation circuit according to the third embodiment and the M-sequence generation circuit according to the fifth embodiment. 5 and 9 for explaining the M-sequence generation circuit according to the present embodiment.
The same components as those described above are denoted by the same reference numerals.

【0101】図11において、M系列発生回路70は、
Nビット(4ビット)のシフトレジスタS0,S1,S
2,S3からなるシフトレジスタ11と、M系列の1周
期のクロック数を計数するNビット(4ビット)カウン
タ(COUNT)14と、NビットカウンタCOUNT
と同数のMビットを有するMビット(4ビット)レジス
タ(MASK)31と、MビットレジスタMASKとN
ビットカウンタCOUNTの各ビットの論理積を取るM
個(4個)のAND回路10〜AND回路13からなる
AND回路32と、AND回路32の出力の論理和を取
るOR回路15と、シフトレジスタ11より1個少ない
数を有するN−1ビットレジスタ(GEN)51と、N
−1ビットレジスタGEN出力を一方の入力として持つ
N−1個のAND回路52と、シフトレジスタ11間に
挿入され、N−1個のAND回路52出力を一方の入力
として持つN−1個のXOR回路53と、シフトレジス
タ11の最終段の値を格納し、初期値0を持つレジスタ
(レジスタR)13と、M系列の1周期のクロック数を
計数するNビット(4ビット)カウンタ(COUNT)
14と、Nビットカウンタ14の各ビットの値の論理和
を取るOR回路15と、OR回路15の値を保持するレ
ジスタ(レジスタL)16と、レジスタLにより保持さ
れたOR回路15出力値と直接OR回路15から出力さ
れた値との論理積の否定を取るNAND回路17と、O
R回路15出力により制御されるセレクタ(MUL1)
18と、レジスタLにより保持されたOR回路15出力
値により制御されるセレクタ(MUL2)19とから構
成される。
In FIG. 11, the M-sequence generation circuit 70
N-bit (4-bit) shift registers S0, S1, S
2 and S3, an N-bit (4-bit) counter (COUNT) 14 for counting the number of clocks in one cycle of the M sequence, and an N-bit counter COUNT
An M-bit (4-bit) register (MASK) 31 having the same number of M bits as M, and M-bit registers MASK and N
M which takes the logical product of each bit of the bit counter COUNT
AND circuit 32 including four (four) AND circuits 10 to 13, an OR circuit 15 that takes the logical sum of the outputs of the AND circuits 32, and an N−1 bit register having one less number than the shift register 11 (GEN) 51 and N
N-1 AND circuits 52 each having a -1 bit register GEN output as one input and N-1 AND circuits 52 inserted between the shift registers 11 and having N-1 AND circuit 52 outputs as one input. An XOR circuit 53, a register (register R) 13 for storing the value of the last stage of the shift register 11 and having an initial value 0, and an N-bit (4-bit) counter (COUNT) for counting the number of clocks in one cycle of the M series )
14, an OR circuit 15 that takes the logical sum of the values of the respective bits of the N-bit counter 14, a register (register L) 16 that holds the value of the OR circuit 15, and an output value of the OR circuit 15 held by the register L A NAND circuit 17 for directly negating a logical product with a value output from the OR circuit 15;
Selector (MUL1) controlled by output of R circuit 15
18 and a selector (MUL2) 19 controlled by the output value of the OR circuit 15 held by the register L.

【0102】NビットレジスタMASKは、4ビットレ
ジスタであり、そのクロックは他のレジスタと同一で
も、異なっていてもよい。また、NビットレジスタMA
SKは、図示しない外部回路から書込みが可能である。
The N-bit register MASK is a 4-bit register, and its clock may be the same as or different from other registers. Also, an N-bit register MA
SK can be written from an external circuit (not shown).

【0103】AND回路10〜AND回路13からなる
AND回路32は、論理和で、AND回路10の入力に
はNビットカウンタCOUNTの第0ビット(LSB)
とNビットレジスタMASKの第0ビット(LSB)が
接続され、出力にはOR回路15の入力が接続されてい
る。AND回路11〜AND回路13も同様に、Nビッ
トカウンタCOUNTとNビットレジスタMASKの同
じビットが接続され、その出力はOR回路15の入力に
接続されている。
An AND circuit 32 composed of AND circuits 10 to 13 is a logical sum, and the input of the AND circuit 10 has the 0th bit (LSB) of the N-bit counter COUNT as an input.
And the 0th bit (LSB) of the N-bit register MASK are connected, and the output is connected to the input of the OR circuit 15. Similarly, the AND circuits 11 to 13 are connected to the same bit of the N-bit counter COUNT and the N-bit register MASK, and the output is connected to the input of the OR circuit 15.

【0104】以下、上述のように構成されたM系列発生
回路70の動作を説明する。
The operation of M-sequence generation circuit 70 having the above-described configuration will be described below.

【0105】M系列発生回路70の基本動作について
は、第3の実施形態と同様であり、特徴部分の動作は、
第5の実施形態と同様である。
The basic operation of the M-sequence generation circuit 70 is the same as that of the third embodiment.
This is the same as the fifth embodiment.

【0106】図11中、シフトレジスタS0、S1、S
2、S3の初期値をそれぞれ1、1、1、1とし、3ビ
ットレジスタGENに予め100を格納した場合、動作
は第3の実施形態と全く同様となる。
In FIG. 11, shift registers S0, S1, S
When the initial values of S2 and S3 are set to 1, 1, 1, and 1, respectively, and 100 is stored in advance in the 3-bit register GEN, the operation is exactly the same as in the third embodiment.

【0107】以上説明したように、第7の実施形態に係
るM系列発生回路70は、第3の実施形態に係るM系列
発生回路と第5の実施形態に係るM系列発生回路を組み
合わせて構成したので、16ビット周期で、任意の位置
に0挿入を行え、しかも任意の生成多項式で表現される
M系列を発生することができる。 第8の実施形態 図12は本発明の第8の実施形態に係るM系列発生回路
の構成を示すブロック図である。本実施形態は、第4の
実施形態に係るM系列発生回路と第6の実施形態に係る
M系列発生回路を組み合わせたものである。本実施形態
に係るM系列発生回路の説明にあたり前記図7及び図1
0と同一構成部分には同一符号を付している。
As described above, the M-sequence generation circuit 70 according to the seventh embodiment is configured by combining the M-sequence generation circuit according to the third embodiment and the M-sequence generation circuit according to the fifth embodiment. Therefore, 0 can be inserted at an arbitrary position in a 16-bit cycle, and an M sequence represented by an arbitrary generator polynomial can be generated. Eighth Embodiment FIG. 12 is a block diagram showing a configuration of an M-sequence generation circuit according to an eighth embodiment of the present invention. This embodiment is a combination of the M-sequence generation circuit according to the fourth embodiment and the M-sequence generation circuit according to the sixth embodiment. 7 and 1 for explaining the M-sequence generation circuit according to the present embodiment.
The same components as those of 0 are denoted by the same reference numerals.

【0108】図12において、M系列発生回路80は、
Nビット(4ビット)のシフトレジスタS0,S1,S
2,S3からなるシフトレジスタ11と、シフトレジス
タ11より1個少ない数を有するN−1ビットレジスタ
(GEN)51と、N−1ビットレジスタGEN出力を
一方の入力として持つN−1個のAND回路52と、シ
フトレジスタ11間に挿入され、N−1個のAND回路
52出力を一方の入力として持つN−1個のXOR回路
53と、M系列の1周期のクロック数を計数するNビッ
ト(4ビット)カウンタ(COUNT)14と、Nビッ
トカウンタCOUNTと同数のMビットを有するMビッ
ト(4ビット)レジスタ(MASK)31と、Mビット
レジスタMASKとNビットカウンタCOUNTの各ビ
ットの論理積を取るM個のAND回路10〜AND回路
13からなるAND回路32と、AND回路32の出力
の論理和を取るOR回路15と、リセット値に任意の値
を指定でき、OR回路15出力により制御されてリセッ
ト信号を出力するレジスタ(RST)21と、OR回路
15出力により制御されるセレクタ(MUL3)22と
から構成される。
In FIG. 12, M-sequence generation circuit 80 includes:
N-bit (4-bit) shift registers S0, S1, S
2, S3, an N-1 bit register (GEN) 51 having one less number than the shift register 11, and N-1 ANDs having an N-1 bit register GEN output as one input. A circuit 52, N-1 XOR circuits 53 inserted between the shift register 11 and having N-1 AND circuits 52 outputs as one input, and N bits for counting the number of clocks in one cycle of the M sequence (4-bit) counter (COUNT) 14, M-bit (4-bit) register (MASK) 31 having the same number of M bits as N-bit counter COUNT, and logical product of M-bit register MASK and each bit of N-bit counter COUNT An AND circuit 32 composed of M AND circuits 10 to 13 and an OR of the output of the AND circuit 32 It comprises a circuit 15, a register (RST) 21 which can specify an arbitrary value for the reset value, is controlled by the output of the OR circuit 15 and outputs a reset signal, and a selector (MUL3) 22 which is controlled by the output of the OR circuit 15 Is done.

【0109】NビットレジスタMASKは、4ビットレ
ジスタであり、そのクロックは他のレジスタと同一で
も、異なっていてもよい。また、NビットレジスタMA
SKは、図示しない外部回路から書込みが可能である。
N-bit register MASK is a 4-bit register, and its clock may be the same as or different from other registers. Also, an N-bit register MA
SK can be written from an external circuit (not shown).

【0110】AND回路10〜AND回路13からなる
AND回路32は、論理和で、AND回路10の入力に
はNビットカウンタCOUNTの第0ビット(LSB)
とNビットレジスタMASKの第0ビット(LSB)が
接続され、出力にはOR回路15の入力が接続されてい
る。AND回路11〜AND回路13も同様に、Nビッ
トカウンタCOUNTとNビットレジスタMASKの同
じビットが接続され、その出力はOR回路15の入力に
接続されている。
An AND circuit 32 composed of AND circuits 10 to 13 is a logical sum, and the input of the AND circuit 10 is the 0th bit (LSB) of the N-bit counter COUNT.
And the 0th bit (LSB) of the N-bit register MASK are connected, and the output is connected to the input of the OR circuit 15. Similarly, the AND circuits 11 to 13 are connected to the same bit of the N-bit counter COUNT and the N-bit register MASK, and the output is connected to the input of the OR circuit 15.

【0111】以下、上述のように構成されたM系列発生
回路80の動作を説明する。
Hereinafter, the operation of M-sequence generation circuit 80 configured as described above will be described.

【0112】M系列発生回路80の基本動作について
は、第4の実施形態と同様であり、特徴部分の動作は、
第6の実施形態と同様である。
The basic operation of the M-sequence generation circuit 80 is the same as that of the fourth embodiment.
This is the same as the sixth embodiment.

【0113】図12中、シフトレジスタS0、S1、S
2、S3の初期値をそれぞれ1、1、1、1とし、3ビ
ットレジスタGENに予め100を格納した場合、動作
は第4の実施形態と全く同様となる。
In FIG. 12, shift registers S0, S1, S
When the initial values of S2 and S3 are respectively 1, 1, 1, and 1, and 100 is stored in advance in the 3-bit register GEN, the operation is exactly the same as that of the fourth embodiment.

【0114】以上説明したように、第8の実施形態に係
るM系列発生回路80は、第4の実施形態に係るM系列
発生回路と第6の実施形態に係るM系列発生回路を組み
合わせて構成したので、16ビット周期で、任意の位置
に0挿入を行え、しかも任意の生成多項式で表現される
M系列を発生することができる。これは、リセット値に
任意の値を指定できるレジスタが使用できる場合、第7
の実施形態より少ないゲート数で実現できる。 第9の実施形態 図13は本発明の第9の実施形態に係るM系列発生回路
の構成を示すブロック図である。本実施形態に係るM系
列発生回路の説明にあたり前記図1と同一構成部分には
同一符号を付している。
As described above, the M-sequence generation circuit 80 according to the eighth embodiment is configured by combining the M-sequence generation circuit according to the fourth embodiment and the M-sequence generation circuit according to the sixth embodiment. Therefore, 0 can be inserted at an arbitrary position in a 16-bit cycle, and an M sequence represented by an arbitrary generator polynomial can be generated. This means that if a register that can specify an arbitrary value as the reset value can be used, the seventh
It can be realized with a smaller number of gates than the embodiment. Ninth Embodiment FIG. 13 is a block diagram showing a configuration of an M-sequence generation circuit according to a ninth embodiment of the present invention. In the description of the M-sequence generation circuit according to the present embodiment, the same components as those in FIG. 1 are denoted by the same reference numerals.

【0115】図13において、M系列発生回路90は、
Nビット(4ビット)のシフトレジスタS0,S1,S
2,S3からなるシフトレジスタ11と、シフトレジス
タ11間に生成多項式に従って挿入されたM個のXOR
回路12と、シフトレジスタ11より1個少ない数を有
するN−1ビット(3ビット)レジスタ(DR)91
(第3のレジスタ)と、N−1ビットレジスタDR出力
を制御信号として持つN−1個のセレクタ(MUL10
〜MUL12)92(第2の選択手段)と、シフトレジ
スタ11の最終段の値を格納し、初期値0を持つレジス
タ(レジスタR)13と、M系列の1周期のクロック数
を計数するNビット(4ビット)カウンタ(COUN
T)14と、Nビットカウンタ14の各ビットの値の論
理和を取るOR回路15と、OR回路15の値を保持す
るレジスタ(レジスタL)16と、レジスタLにより保
持されたOR回路15出力値と直接OR回路15から出
力された値との論理積の否定を取るNAND回路17
と、OR回路15出力により制御されるセレクタ(MU
L1)18と、レジスタLにより保持されたOR回路1
5出力値により制御されるセレクタ(MUL2)19と
から構成される。
In FIG. 13, M-sequence generation circuit 90 includes:
N-bit (4-bit) shift registers S0, S1, S
2 and S3, and M XORs inserted between the shift registers 11 according to the generator polynomial
A circuit 12 and an N-1 bit (3-bit) register (DR) 91 having one less number than the shift register 11
(Third register) and N-1 selectors (MUL10) having an N-1 bit register DR output as a control signal.
... MUL 12) 92 (second selecting means), a register (register R) 13 which stores the value of the last stage of the shift register 11 and has an initial value 0, and N which counts the number of clocks in one cycle of the M sequence. Bit (4 bit) counter (COUN
T) 14, an OR circuit 15 for taking the logical sum of the values of the respective bits of the N-bit counter 14, a register (register L) 16 for holding the value of the OR circuit 15, and an output of the OR circuit 15 held by the register L NAND circuit 17 for negating the logical product of the value and the value output directly from OR circuit 15
And a selector (MU) controlled by the output of the OR circuit 15
L1) 18 and the OR circuit 1 held by the register L
And a selector (MUL2) 19 controlled by five output values.

【0116】N−1ビットレジスタDRは、3ビットレ
ジスタであり、そのクロックは他のレジスタと同一で
も、異なっていてもよい。また、3ビットレジスタDR
は、図示しない外部回路から書込みが可能である。
The N-1 bit register DR is a 3-bit register, and its clock may be the same as or different from other registers. Also, a 3-bit register DR
Can be written from an external circuit (not shown).

【0117】セレクタMUL10〜セレクタMUL12
からなるセレクタMUL92は、シフトレジスタ11の
格段の出力と3ビットレジスタDRの各ビット出力を切
り替えるセレクタである。
Selectors MUL10 to MUL12
Is a selector that switches between the outstanding output of the shift register 11 and each bit output of the 3-bit register DR.

【0118】セレクタMUL12の入力は、XOR回路
12出力及びセレクタMUL2出力と接続されており、
セレクタMUL12の出力はシフトレジスタS2入力と
接続されている。また、セレクタMUL11の入力は、
シフトレジスタS2出力及びセレクタMUL2出力と接
続されており、セレクタMUL11の出力はシフトレジ
スタS1入力と接続されている。セレクタMUL10の
入力は、シフトレジスタS1出力及びセレクタMUL2
出力と接続されており、セレクタMUL10の出力はシ
フトレジスタS0入力と接続されている。
The input of the selector MUL12 is connected to the output of the XOR circuit 12 and the output of the selector MUL2.
The output of the selector MUL12 is connected to the input of the shift register S2. The input of the selector MUL11 is
The output of the shift register S2 and the output of the selector MUL2 are connected, and the output of the selector MUL11 is connected to the input of the shift register S1. The input of the selector MUL10 is the output of the shift register S1 and the selector MUL2.
The output of the selector MUL10 is connected to the input of the shift register S0.

【0119】セレクタMUL12の制御信号は、3ビッ
トレジスタDRの最上位ビットと接続されており、制御
ビットが0の時、セレクタMUL12はXOR回路12
出力を選択し、制御ビットが1の時、セレクタMUL1
2はセレクタMUL2出力を選択する。また、セレクタ
MUL11の制御信号は、3ビットレジスタDRの中間
ビットに接続されており、制御ビットが0の時、セレク
タMUL11はシフトレジスタS2出力を選択し、制御
ビットが1の時、セレクタMUL11はセレクタMUL
2出力を選択する。同様に、セレクタMUL10の制御
信号は、3ビットレジスタDR最下位ビットに接続され
ており、制御ビットが0の時、セレクタMUL10はシ
フトレジスタS1出力を選択し、制御ビットが1の時、
セレクタMUL10はセレクタMUL2出力を選択す
る。
The control signal of the selector MUL12 is connected to the most significant bit of the 3-bit register DR. When the control bit is "0", the selector MUL12 sets the XOR circuit 12
When the output is selected and the control bit is 1, the selector MUL1
2 selects the selector MUL2 output. The control signal of the selector MUL11 is connected to the intermediate bit of the 3-bit register DR. When the control bit is 0, the selector MUL11 selects the output of the shift register S2, and when the control bit is 1, the selector MUL11 is Selector MUL
Select 2 outputs. Similarly, the control signal of the selector MUL10 is connected to the least significant bit of the 3-bit register DR. When the control bit is 0, the selector MUL10 selects the output of the shift register S1, and when the control bit is 1,
The selector MUL10 selects the output of the selector MUL2.

【0120】以下、上述のように構成されたM系列発生
回路90の動作を説明する。
Hereinafter, the operation of M-sequence generation circuit 90 configured as described above will be described.

【0121】M系列発生回路90の基本動作について
は、第1の実施形態と同様であり、特徴部分の動作につ
いて述べる。
The basic operation of the M-sequence generation circuit 90 is the same as that of the first embodiment, and the operation of the characteristic portion will be described.

【0122】図13中、3ビットレジスタDR内の値に
より、PN符号(M系列)の符号長を任意に指定するこ
とができる。例えば、3ビットレジスタDRに、000
を書き込んだ場合、本M系列発生回路90は、第1の実
施形態と全く同じM系列を発生し、3ビットレジスタD
Rに100を書き込むと、本M系列発生回路90は、符
号長8のM系列が発生可能となる。
In FIG. 13, the code length of the PN code (M sequence) can be arbitrarily designated by the value in the 3-bit register DR. For example, in a 3-bit register DR, 000
Is written, the M-sequence generation circuit 90 generates the same M-sequence as in the first embodiment,
When 100 is written to R, the M-sequence generation circuit 90 can generate an M-sequence having a code length of 8.

【0123】以上説明したように、第9の実施形態に係
るM系列発生回路90は、さらにシフトレジスタ11よ
り1個少ない数を有するN−1ビット(3ビット)レジ
スタ(DR)91と、N−1ビットレジスタDR出力を
制御信号として持つN−1個のセレクタ(MUL10〜
MUL12)92とを備えて構成したので、M系列の1
周期のビット数を2のべき乗で任意に選択することがで
き、様々な拡散率のCDMAシステムに適用が可能とな
る。 第10の実施形態 図14は本発明の第10の実施形態に係るM系列発生回
路の構成を示すブロック図である。本実施形態は、第2
の実施形態に係るM系列発生回路と第9の実施形態に係
るM系列発生回路を組み合わせたものである。本実施形
態に係るM系列発生回路の説明にあたり前記図3及び図
13と同一構成部分には同一符号を付している。
As described above, the M-sequence generation circuit 90 according to the ninth embodiment includes an N-1 bit (3-bit) register (DR) 91 having a number one less than the shift register 11, and N N-1 selectors (MUL10 to MUL10) having a 1-bit register DR output as a control signal
MUL 12) 92, so that the M-sequence 1
The number of bits of the period can be arbitrarily selected by a power of two, and can be applied to CDMA systems having various spreading factors. Tenth Embodiment FIG. 14 is a block diagram showing a configuration of an M-sequence generation circuit according to a tenth embodiment of the present invention. In the present embodiment, the second
This is a combination of the M-sequence generation circuit according to the ninth embodiment and the M-sequence generation circuit according to the ninth embodiment. In the description of the M-sequence generation circuit according to the present embodiment, the same components as those in FIGS. 3 and 13 are denoted by the same reference numerals.

【0124】図14において、M系列発生回路100
は、Nビット(4ビット)のシフトレジスタS0,S
1,S2,S3からなるシフトレジスタ11と、シフト
レジスタ11間に生成多項式に従って挿入されたM個の
XOR回路12と、シフトレジスタ11より1個少ない
数を有するN−1ビット(3ビット)レジスタ(DR)
91と、N−1ビットレジスタDR出力を制御信号とし
て持つN−1個のセレクタ(MUL10〜MUL12)
92と、M系列の1周期のクロック数を計数するNビッ
ト(4ビット)カウンタ(COUNT)14と、Nビット
カウンタ14の各ビットの値の論理和を取るOR回路1
5と、リセット値に任意の値を指定でき、OR回路15
出力により制御されてリセット信号を出力するレジスタ
(RST)21と、OR回路15出力により制御される
セレクタ(MUL3)22とから構成される。
Referring to FIG. 14, M-sequence generation circuit 100
Are N-bit (4-bit) shift registers S0, S
1, a shift register 11 composed of S2 and S3, M XOR circuits 12 inserted between the shift registers 11 according to a generator polynomial, and an N-1 bit (3-bit) register having one less than the shift register 11 (DR)
91 and N-1 selectors (MUL10 to MUL12) having an N-1 bit register DR output as a control signal
92, an N-bit (4-bit) counter (COUNT) 14 for counting the number of clocks in one cycle of the M series, and an OR circuit 1 for taking the logical sum of the values of each bit of the N-bit counter 14
5 and an arbitrary value can be designated as the reset value.
It comprises a register (RST) 21 controlled by an output to output a reset signal, and a selector (MUL3) 22 controlled by the output of the OR circuit 15.

【0125】セレクタMUL12の入力は、XOR回路
12出力及びセレクタMUL2出力と接続されており、
セレクタMUL12の出力はシフトレジスタS2入力と
接続されている。また、セレクタMUL11の入力は、
シフトレジスタS2出力及びセレクタMUL2出力と接
続されており、セレクタMUL11の出力はシフトレジ
スタS1入力と接続されている。セレクタMUL10の
入力は、シフトレジスタS1出力及びセレクタMUL2
出力と接続されており、セレクタMUL10の出力はシ
フトレジスタS0入力と接続されている。
The input of the selector MUL12 is connected to the output of the XOR circuit 12 and the output of the selector MUL2.
The output of the selector MUL12 is connected to the input of the shift register S2. The input of the selector MUL11 is
The output of the shift register S2 and the output of the selector MUL2 are connected, and the output of the selector MUL11 is connected to the input of the shift register S1. The input of the selector MUL10 is the output of the shift register S1 and the selector MUL2.
The output of the selector MUL10 is connected to the input of the shift register S0.

【0126】セレクタMUL12の制御信号は、3ビッ
トレジスタDRの最上位ビットと接続されており、制御
ビットが0の時、セレクタMUL12はXOR回路12
出力を選択し、制御ビットが1の時、セレクタMUL1
2はシフトレジスタS0出力を選択する。また、セレク
タMUL11の制御信号は、3ビットレジスタDRの中
間ビットに接続されており、制御ビットが0の時、セレ
クタMUL11はシフトレジスタS2出力を選択し、制
御ビットが1の時、セレクタMUL11はシフトレジス
タS0出力を選択する。同様に、セレクタMUL10の
制御信号は、3ビットレジスタDR最下位ビットに接続
されており、制御ビットが0の時、セレクタMUL10
はシフトレジスタS1出力を選択し、制御ビットが1の
時、セレクタMUL10はシフトレジスタS0出力を選
択する。
The control signal of the selector MUL12 is connected to the most significant bit of the 3-bit register DR, and when the control bit is 0, the selector MUL12 is connected to the XOR circuit 12
When the output is selected and the control bit is 1, the selector MUL1
2 selects the output of the shift register S0. The control signal of the selector MUL11 is connected to the intermediate bit of the 3-bit register DR. When the control bit is 0, the selector MUL11 selects the output of the shift register S2, and when the control bit is 1, the selector MUL11 is Select the output of the shift register S0. Similarly, the control signal of the selector MUL10 is connected to the least significant bit of the 3-bit register DR, and when the control bit is 0, the selector MUL10
Selects the output of the shift register S1, and when the control bit is 1, the selector MUL10 selects the output of the shift register S0.

【0127】以下、上述のように構成されたM系列発生
回路100の動作を説明する。
Hereinafter, the operation of M-sequence generation circuit 100 configured as described above will be described.

【0128】M系列発生回路100の基本動作について
は、第2の実施形態と同様であり、特徴部分の動作につ
いて述べる。
The basic operation of the M-sequence generation circuit 100 is the same as that of the second embodiment, and the operation of the characteristic portion will be described.

【0129】図14中、3ビットレジスタDR内の値に
より、PN符号(M系列)の符号長を任意に指定するこ
とができる。例えば、3ビットレジスタDRに、000
を書き込んだ場合、本M系列発生回路100は第2の実
施形態と全く同じM系列を発生し、3ビットレジスタD
Rに100を書き込むと、本M系列発生回路100は符
号長8のM系列が発生可能となる。
In FIG. 14, the code length of the PN code (M sequence) can be arbitrarily specified by the value in the 3-bit register DR. For example, in a 3-bit register DR, 000
Is written, the M-sequence generation circuit 100 generates the same M-sequence as in the second embodiment,
When 100 is written in R, the M-sequence generation circuit 100 can generate an M-sequence having a code length of 8.

【0130】以上説明したように、第10の実施形態に
係るM系列発生回路100は、さらにシフトレジスタ1
1より1個少ない数を有するN−1ビット(3ビット)
レジスタ(DR)91と、N−1ビットレジスタDR出
力を制御信号として持つN−1個のセレクタ(MUL1
0〜MUL12)92とを備えて構成したので、M系列
の1周期のビット数を2のべき乗で任意に選択すること
ができ、かつリセット値に任意の値を指定できるレジス
タが使用できる場合においては第9の実施形態より少な
いゲート数で実現でき、様々な拡散率のCDMAシステ
ムに適用が可能となる。 第11の実施形態 図15は本発明の第11の実施形態に係るM系列発生回
路の構成を示すブロック図である。本実施形態は、第3
の実施形態に係るM系列発生回路と第9の実施形態に係
るM系列発生回路を組み合わせたものである。本実施形
態に係るM系列発生回路の説明にあたり前記図5及び図
13と同一構成部分には同一符号を付している。
As described above, the M-sequence generation circuit 100 according to the tenth embodiment further includes a shift register 1
N-1 bits (3 bits) having one less than one
Register (DR) 91 and N-1 selectors (MUL1) having an N-1 bit register DR output as a control signal.
0 to MUL12) 92, the number of bits in one cycle of the M sequence can be arbitrarily selected by a power of 2 and a register capable of specifying an arbitrary value as a reset value can be used. Can be realized with a smaller number of gates than in the ninth embodiment, and can be applied to CDMA systems with various spreading factors. Eleventh Embodiment FIG. 15 is a block diagram showing a configuration of an M-sequence generation circuit according to an eleventh embodiment of the present invention. In the present embodiment, the third
This is a combination of the M-sequence generation circuit according to the ninth embodiment and the M-sequence generation circuit according to the ninth embodiment. In the description of the M-sequence generation circuit according to the present embodiment, the same components as those in FIGS. 5 and 13 are denoted by the same reference numerals.

【0131】図15において、M系列発生回路110
は、Nビット(4ビット)のシフトレジスタS0,S
1,S2,S3からなるシフトレジスタ11と、シフト
レジスタ11間に生成多項式に従って挿入されたM個の
XOR回路12と、シフトレジスタ11より1個少ない
数を有するN−1ビット(3ビット)レジスタ(DR)
91と、N−1ビットレジスタDR出力を制御信号とし
て持つN−1個のセレクタ(MUL10〜MUL12)
92と、シフトレジスタ11の最終段の値を格納し、初
期値0を持つレジスタ(レジスタR)13と、M系列の
1周期のクロック数を計数するNビット(4ビット)カ
ウンタ(COUNT)14と、NビットカウンタCOU
NTと同数のMビットを有するMビット(4ビット)レ
ジスタ(MASK)31と、MビットレジスタMASK
とNビットカウンタCOUNTの各ビットの論理積を取
るM個(4個)のAND回路10〜AND回路13から
なるAND回路32と、AND回路32の出力の論理和
を取るOR回路15と、OR回路15の値を保持するレ
ジスタ(レジスタL)16と、レジスタLにより保持さ
れたOR回路15出力値と直接OR回路15から出力さ
れた値との論理積の否定を取るNAND回路17と、O
R回路15出力により制御されるセレクタ(MUL1)
18と、レジスタLにより保持されたOR回路15出力
値により制御されるセレクタ(MUL2)19とから構
成される。
In FIG. 15, M-sequence generation circuit 110
Are N-bit (4-bit) shift registers S0, S
1, a shift register 11 composed of S2 and S3, M XOR circuits 12 inserted between the shift registers 11 according to a generator polynomial, and an N-1 bit (3-bit) register having one less than the shift register 11 (DR)
91 and N-1 selectors (MUL10 to MUL12) having an N-1 bit register DR output as a control signal
92, a register (register R) 13 which stores the value of the last stage of the shift register 11 and has an initial value 0, and an N-bit (4-bit) counter (COUNT) 14 for counting the number of clocks in one cycle of the M sequence. And N bit counter COU
An M-bit (4-bit) register (MASK) 31 having the same number of M bits as NT;
AND circuit 32 composed of M (four) AND circuits 10 to 13 which take the logical product of each bit of the N bit counter COUNT, an OR circuit 15 which takes the logical sum of the output of the AND circuit 32, and OR A register (register L) 16 for holding the value of the circuit 15; a NAND circuit 17 for negating the logical product of the output value of the OR circuit 15 held by the register L and the value output directly from the OR circuit 15;
Selector (MUL1) controlled by output of R circuit 15
18 and a selector (MUL2) 19 controlled by the output value of the OR circuit 15 held by the register L.

【0132】NビットレジスタMASKは、4ビットレ
ジスタであり、そのクロックは他のレジスタと同一で
も、異なっていてもよい。また、NビットレジスタMA
SKは、図示しない外部回路から書込みが可能である。
The N-bit register MASK is a 4-bit register, and its clock may be the same as or different from other registers. Also, an N-bit register MA
SK can be written from an external circuit (not shown).

【0133】AND回路10〜AND回路13からなる
AND回路32は、論理和であり、AND回路10の入
力にはNビットカウンタCOUNTの第0ビット(LS
B)とNビットレジスタMASKの第0ビット(LS
B)が接続され、AND回路10の出力にはOR回路1
5の入力が接続されている。AND回路11〜AND回
路13も同様に、NビットカウンタCOUNTとNビッ
トレジスタMASKの同じビットが接続され、その出力
はOR回路15の入力に接続されている。
An AND circuit 32 composed of AND circuits 10 to 13 is a logical sum, and an input of the AND circuit 10 has a 0-th bit (LS) of an N-bit counter COUNT.
B) and the 0th bit (LS) of the N-bit register MASK
B) is connected, and the output of the AND circuit 10 is connected to the OR circuit 1
5 inputs are connected. Similarly, the AND circuits 11 to 13 are connected to the same bit of the N-bit counter COUNT and the N-bit register MASK, and the output is connected to the input of the OR circuit 15.

【0134】以下、上述のように構成されたM系列発生
回路110の動作を説明する。
Hereinafter, the operation of M-sequence generation circuit 110 configured as described above will be described.

【0135】M系列発生回路110の基本動作について
は、第3及び第9の実施形態を組み合わせたものと同様
である。
The basic operation of the M-sequence generation circuit 110 is the same as that of the combination of the third and ninth embodiments.

【0136】図15中、シフトレジスタS0、S1、S
2、S3の初期値をそれぞれ1、1、1、1とし、一例
として、3ビットレジスタDRに、100を書き込む
と、本M系列発生回路110は、第9の実施形態と同等
のM系列を発生する。
In FIG. 15, shift registers S0, S1, S
When the initial values of S2 and S3 are set to 1, 1, 1, and 1, for example, and 100 is written in the 3-bit register DR, the M-sequence generation circuit 110 generates an M-sequence equivalent to that in the ninth embodiment. appear.

【0137】以上説明したように、第11の実施形態に
係るM系列発生回路110は、第3の実施形態に係るM
系列発生回路と第9の実施形態に係るM系列発生回路を
組み合わせて構成したので、M系列の1周期のビット数
を2のべき乗で任意に選択することができ、かつ任意の
位置に0挿入を行ったM系列を発生することができる。 第12の実施形態 図16は本発明の第12の実施形態に係るM系列発生回
路の構成を示すブロック図である。本実施形態は、第4
の実施形態に係るM系列発生回路と第10の実施形態に
係るM系列発生回路を組み合わせたものである。本実施
形態に係るM系列発生回路の説明にあたり前記図7及び
図14と同一構成部分には同一符号を付している。
As described above, the M-sequence generation circuit 110 according to the eleventh embodiment includes the M-sequence generation circuit 110 according to the third embodiment.
Since the sequence generation circuit and the M-sequence generation circuit according to the ninth embodiment are combined, the number of bits in one cycle of the M-sequence can be arbitrarily selected by a power of 2, and 0 is inserted at an arbitrary position. Can be generated. Twelfth Embodiment FIG. 16 is a block diagram showing a configuration of an M-sequence generation circuit according to a twelfth embodiment of the present invention. In the present embodiment, the fourth
This is a combination of the M-sequence generation circuit according to the tenth embodiment and the M-sequence generation circuit according to the tenth embodiment. In the description of the M-sequence generation circuit according to the present embodiment, the same components as those in FIGS. 7 and 14 are denoted by the same reference numerals.

【0138】図16において、M系列発生回路120
は、Nビット(4ビット)のシフトレジスタS0,S
1,S2,S3からなるシフトレジスタ11と、シフト
レジスタ11間に生成多項式に従って挿入されたM個の
XOR回路12と、シフトレジスタ11より1個少ない
数を有するN−1ビット(3ビット)レジスタ(DR)
91と、N−1ビットレジスタDR出力を制御信号とし
て持つN−1個のセレクタ(MUL10〜MUL12)
92と、M系列の1周期のクロック数を計数するNビッ
ト(4ビット)カウンタ(COUNT)14と、Nビット
カウンタCOUNTと同数のMビットを有するMビット
(4ビット)レジスタ(MASK)31と、Mビットレ
ジスタMASKとNビットカウンタCOUNTの各ビッ
トの論理積を取るM個のAND回路10〜AND回路1
3からなるAND回路32と、AND回路32の出力の
論理和を取るOR回路15と、リセット値に任意の値を
指定でき、OR回路15出力により制御されてリセット
信号を出力するレジスタ(RST)21と、OR回路1
5出力により制御されるセレクタ(MUL3)22とか
ら構成される。
In FIG. 16, M-sequence generation circuit 120
Are N-bit (4-bit) shift registers S0, S
1, a shift register 11 composed of S2 and S3, M XOR circuits 12 inserted between the shift registers 11 according to a generator polynomial, and an N-1 bit (3-bit) register having one less than the shift register 11 (DR)
91 and N-1 selectors (MUL10 to MUL12) having an N-1 bit register DR output as a control signal
92, an N-bit (4-bit) counter (COUNT) 14 for counting the number of clocks in one cycle of the M sequence, an M-bit (4-bit) register (MASK) 31 having the same number of M bits as the N-bit counter COUNT, AND circuits 10 to AND circuit 1 which take the logical product of each bit of an M-bit register MASK and an N-bit counter COUNT
3, an OR circuit 15 that takes the logical sum of the outputs of the AND circuit 32, and a register (RST) that can specify an arbitrary value for the reset value and that is controlled by the output of the OR circuit 15 to output a reset signal 21 and the OR circuit 1
And a selector (MUL3) 22 controlled by five outputs.

【0139】NビットレジスタMASKは、4ビットレ
ジスタであり、そのクロックは他のレジスタと同一で
も、異なっていてもよい。また、NビットレジスタMA
SKは、図示しない外部回路から書込みが可能である。
N-bit register MASK is a 4-bit register, and its clock may be the same as or different from other registers. Also, an N-bit register MA
SK can be written from an external circuit (not shown).

【0140】AND回路10〜AND回路13からなる
AND回路32は、論理和であり、AND回路10の入
力にはNビットカウンタCOUNTの第0ビット(LS
B)とNビットレジスタMASKの第0ビット(LS
B)が接続され、AND回路10の出力にはOR回路1
5の入力が接続されている。AND回路11〜AND回
路13も同様に、NビットカウンタCOUNTとNビッ
トレジスタMASKの同じビットが接続され、その出力
はOR回路15の入力に接続されている。
An AND circuit 32 composed of AND circuits 10 to 13 is a logical sum, and the input of the AND circuit 10 has the 0th bit (LS) of the N-bit counter COUNT.
B) and the 0th bit (LS) of the N-bit register MASK
B) is connected, and the output of the AND circuit 10 is connected to the OR circuit 1
5 inputs are connected. Similarly, the AND circuits 11 to 13 are connected to the same bit of the N-bit counter COUNT and the N-bit register MASK, and the output is connected to the input of the OR circuit 15.

【0141】以下、上述のように構成されたM系列発生
回路120の動作を説明する。
Hereinafter, the operation of M-sequence generation circuit 120 configured as described above will be described.

【0142】M系列発生回路120の基本動作について
は、第4及び第10の実施形態を組み合わせたものと同
様である。
The basic operation of the M-sequence generation circuit 120 is the same as that obtained by combining the fourth and tenth embodiments.

【0143】図16中、シフトレジスタS0、S1、S
2、S3の初期値をそれぞれ1、1、1、1とし、一例
として、3ビットレジスタDRに100を書き込むと、
本M系列発生回路120は、第10の実施形態と同等の
M系列を発生する。
In FIG. 16, shift registers S0, S1, S
When the initial values of S2 and S3 are set to 1, 1, 1, and 1, for example, when 100 is written to the 3-bit register DR,
The M-sequence generation circuit 120 generates an M-sequence equivalent to that of the tenth embodiment.

【0144】以上説明したように、第12の実施形態に
係るM系列発生回路120は、第4の実施形態に係るM
系列発生回路と第10の実施形態に係るM系列発生回路
を組み合わせて構成したので、M系列の1周期のビット
数を2のべき乗で任意に選択することができ、かつ任意
の位置に0挿入を行ったM系列を発生することができ
る。これは、リセット値に任意の値を指定できるレジス
タが使用できる場合第11の実施形態より少ないゲート
数で実現できる。 第13の実施形態 図17は本発明の第13の実施形態に係るM系列発生回
路の構成を示すブロック図である。本実施形態は、第5
の実施形態に係るM系列発生回路と第9の実施形態に係
るM系列発生回路を組み合わせたものである。本実施形
態に係るM系列発生回路の説明にあたり前記図9及び図
13と同一構成部分には同一符号を付している。
As described above, the M-sequence generation circuit 120 according to the twelfth embodiment is different from the M-sequence generation circuit 120 according to the fourth embodiment.
Since the sequence generation circuit and the M-sequence generation circuit according to the tenth embodiment are configured in combination, the number of bits in one cycle of the M-sequence can be arbitrarily selected by a power of 2, and 0 is inserted at an arbitrary position. Can be generated. This can be realized with a smaller number of gates than in the eleventh embodiment when a register capable of designating an arbitrary value as the reset value can be used. Thirteenth Embodiment FIG. 17 is a block diagram showing a configuration of an M-sequence generation circuit according to a thirteenth embodiment of the present invention. In the present embodiment, the fifth
This is a combination of the M-sequence generation circuit according to the ninth embodiment and the M-sequence generation circuit according to the ninth embodiment. In the description of the M-sequence generation circuit according to the present embodiment, the same components as those in FIGS. 9 and 13 are denoted by the same reference numerals.

【0145】図17において、M系列発生回路130
は、Nビット(4ビット)のシフトレジスタS0,S
1,S2,S3からなるシフトレジスタ11と、シフト
レジスタ11より1個少ない数を有するN−1ビットレ
ジスタ(GEN)51と、N−1ビットレジスタGEN
出力を一方の入力として持つN−1個のAND回路52
と、シフトレジスタ11間に挿入され、N−1個のAN
D回路52出力を一方の入力として持つN−1個のXO
R回路53と、シフトレジスタ11より1個少ない数を
有するN−1ビット(3ビット)レジスタ(DR)91
と、N−1ビットレジスタDR出力を制御信号として持
つN−1個のセレクタ(MUL10〜MUL12)92
と、シフトレジスタ11の最終段の値を格納し、初期値
0を持つレジスタ(レジスタR)13と、M系列の1周
期のクロック数を計数するNビット(4ビット)カウン
タ(COUNT)14と、Nビットカウンタ14の各ビ
ットの値の論理和を取るOR回路15と、OR回路15
の値を保持するレジスタ(レジスタL)16と、レジス
タLにより保持されたOR回路15出力値と直接OR回
路15から出力された値との論理積の否定を取るNAN
D回路17と、OR回路15出力により制御されるセレ
クタ(MUL1)18と、レジスタLにより保持された
OR回路15出力値により制御されるセレクタ(MUL
2)19とから構成される。
In FIG. 17, M-sequence generating circuit 130
Are N-bit (4-bit) shift registers S0, S
, S2, S3, an N-1 bit register (GEN) 51 having one less number than the shift register 11, and an N-1 bit register GEN
N-1 AND circuits 52 having an output as one input
And N-1 ANs inserted between the shift registers 11
N-1 XOs having D circuit 52 output as one input
An R circuit 53 and an N-1 bit (3-bit) register (DR) 91 having one less number than the shift register 11
And N-1 selectors (MUL10 to MUL12) 92 having an N-1 bit register DR output as a control signal
A register (register R) 13 which stores the value of the last stage of the shift register 11 and has an initial value 0, and an N-bit (4-bit) counter (COUNT) 14 which counts the number of clocks in one cycle of the M series. , An OR circuit 15 for taking the logical sum of the values of the respective bits of the N-bit counter 14, and an OR circuit 15
(Register L) 16 for holding the value of the OR circuit 15 and NAN for negating the logical product of the output value of the OR circuit 15 held by the register L and the value output directly from the OR circuit 15
D circuit 17, selector (MUL 1) 18 controlled by output of OR circuit 15, and selector (MUL 1) controlled by output value of OR circuit 15 held by register L
2) 19).

【0146】N−1ビットレジスタDRは、3ビットレ
ジスタであり、そのクロックは他のレジスタと同一で
も、異なっていてもよい。また、3ビットレジスタDR
は、図示しない外部回路から書込みが可能である。
The N-1 bit register DR is a 3-bit register, and its clock may be the same as or different from other registers. Also, a 3-bit register DR
Can be written from an external circuit (not shown).

【0147】セレクタMUL12の入力は、XOR回路
12出力及びセレクタMUL2出力と接続されており、
セレクタMUL12の出力はシフトレジスタS2入力と
接続されている。また、セレクタMUL11の入力は、
シフトレジスタS2出力及びセレクタMUL2出力と接
続されており、セレクタMUL11の出力はシフトレジ
スタS1入力と接続されている。セレクタMUL10の
入力は、シフトレジスタS1出力及びセレクタMUL2
出力と接続されており、セレクタMUL10の出力はシ
フトレジスタS0入力と接続されている。
The input of the selector MUL12 is connected to the output of the XOR circuit 12 and the output of the selector MUL2.
The output of the selector MUL12 is connected to the input of the shift register S2. The input of the selector MUL11 is
The output of the shift register S2 and the output of the selector MUL2 are connected, and the output of the selector MUL11 is connected to the input of the shift register S1. The input of the selector MUL10 is the output of the shift register S1 and the selector MUL2.
The output of the selector MUL10 is connected to the input of the shift register S0.

【0148】セレクタMUL12の制御信号は、3ビッ
トレジスタDRの最上位ビットと接続されており、制御
ビットが0の時、セレクタMUL12はXOR回路12
出力を選択し、制御ビットが1の時、セレクタMUL1
2はセレクタMUL2出力を選択する。また、セレクタ
MUL11の制御信号は、3ビットレジスタDRの中間
ビットに接続されており、制御ビットが0の時、セレク
タMUL11はシフトレジスタS2出力を選択し、制御
ビットが1の時、セレクタMUL11はセレクタMUL
2出力を選択する。同様に、セレクタMUL10の制御
信号は、3ビットレジスタDR最下位ビットに接続され
ており、制御ビットが0の時、セレクタMUL10はシ
フトレジスタS1出力を選択し、制御ビットが1の時、
セレクタMUL10はセレクタMUL2出力を選択す
る。
The control signal of the selector MUL12 is connected to the most significant bit of the 3-bit register DR. When the control bit is "0", the selector MUL12 sets the XOR circuit 12
When the output is selected and the control bit is 1, the selector MUL1
2 selects the selector MUL2 output. The control signal of the selector MUL11 is connected to the intermediate bit of the 3-bit register DR. When the control bit is 0, the selector MUL11 selects the output of the shift register S2, and when the control bit is 1, the selector MUL11 is Selector MUL
Select 2 outputs. Similarly, the control signal of the selector MUL10 is connected to the least significant bit of the 3-bit register DR. When the control bit is 0, the selector MUL10 selects the output of the shift register S1, and when the control bit is 1,
The selector MUL10 selects the output of the selector MUL2.

【0149】以下、上述のように構成されたM系列発生
回路130の動作を説明する。
The operation of M-sequence generation circuit 130 having the above-described configuration will be described below.

【0150】M系列発生回路130の基本動作について
は、第5及び第9の実施形態を組み合わせたものと同様
である。
The basic operation of the M-sequence generation circuit 130 is the same as that obtained by combining the fifth and ninth embodiments.

【0151】図17中、3ビットレジスタDR内の値に
より、PN符号(M系列)の符号長を任意に指定でき
る。例えば、3ビットレジスタDRに000を書き込ん
だ場合、本M系列発生回路は第5の実施形態と全く同じ
M系列を発生し、3ビットレジスタDRに100を書き
込むと、本M系列発生回路は符号長8のM系列を発生可
能となる。
In FIG. 17, the code length of the PN code (M sequence) can be arbitrarily specified by the value in the 3-bit register DR. For example, when 000 is written in the 3-bit register DR, the present M-sequence generation circuit generates exactly the same M-sequence as in the fifth embodiment. An M-sequence having a length of 8 can be generated.

【0152】以上説明したように、第13の実施形態に
係るM系列発生回路130は、第5の実施形態に係るM
系列発生回路と第9の実施形態に係るM系列発生回路を
組み合わせて構成したので、M系列の1周期のビット数
を2のべき乗で任意に選択することができ、かつ任意の
生成多項式1こて表現されるM系列を発生することがで
き、様々な拡散率のCDMAシステムに適用が可能とな
る。 第14の実施形態 図18は本発明の第14の実施形態に係るM系列発生回
路の構成を示すブロック図である。本実施形態は、第6
の実施形態に係るM系列発生回路と第10の実施形態に
係るM系列発生回路を組み合わせたものである。本実施
形態に係るM系列発生回路の説明にあたり前記図10及
び図14と同一構成部分には同一符号を付している。
As described above, the M-sequence generation circuit 130 according to the thirteenth embodiment includes the M-sequence generation circuit 130 according to the fifth embodiment.
Since the sequence generation circuit and the M-sequence generation circuit according to the ninth embodiment are configured in combination, the number of bits in one cycle of the M-sequence can be arbitrarily selected by a power of 2, and an arbitrary generation polynomial 1 Can be generated, and can be applied to CDMA systems with various spreading factors. Fourteenth Embodiment FIG. 18 is a block diagram showing a configuration of an M-sequence generation circuit according to a fourteenth embodiment of the present invention. In the present embodiment, the sixth
This is a combination of the M-sequence generation circuit according to the tenth embodiment and the M-sequence generation circuit according to the tenth embodiment. In the description of the M-sequence generation circuit according to the present embodiment, the same components as those in FIGS. 10 and 14 are denoted by the same reference numerals.

【0153】図18において、M系列発生回路140
は、Nビット(4ビット)のシフトレジスタS0,S
1,S2,S3からなるシフトレジスタ11と、シフト
レジスタ11より1個少ない数を有するN−1ビットレ
ジスタ(GEN)51と、N−1ビットレジスタGEN
出力を一方の入力として持つN−1個のAND回路52
と、シフトレジスタ11間に挿入され、N−1個のAN
D回路52出力を一方の入力として持つN−1個のXO
R回路53と、シフトレジスタ11より1個少ない数を
有するN−1ビット(3ビット)レジスタ(DR)91
と、N−1ビットレジスタDR出力を制御信号として持
つN−1個のセレクタ(MUL10〜MUL12)92
と、M系列の1周期のクロック数を計数するNビット
(4ビット)カウンタ(COUNT)14と、Nビット
カウンタ14の各ビットの値の論理和を取るOR回路1
5と、リセット値に任意の値を指定でき、OR回路15
出力により制御されてリセット信号を出力するレジスタ
(RST)21と、OR回路15出力により制御される
セレクタ(MUL3)22とから構成される。
In FIG. 18, M-sequence generation circuit 140
Are N-bit (4-bit) shift registers S0, S
, S2, S3, an N-1 bit register (GEN) 51 having one less number than the shift register 11, and an N-1 bit register GEN
N-1 AND circuits 52 having an output as one input
And N-1 ANs inserted between the shift registers 11
N-1 XOs having D circuit 52 output as one input
An R circuit 53 and an N-1 bit (3-bit) register (DR) 91 having one less number than the shift register 11
And N-1 selectors (MUL10 to MUL12) 92 having an N-1 bit register DR output as a control signal
And an N-bit (4-bit) counter (COUNT) 14 for counting the number of clocks in one cycle of the M series, and an OR circuit 1 for taking the logical sum of the values of each bit of the N-bit counter 14
5 and an arbitrary value can be designated as the reset value.
It comprises a register (RST) 21 controlled by an output to output a reset signal, and a selector (MUL3) 22 controlled by the output of the OR circuit 15.

【0154】セレクタMUL12の入力は、XOR回路
12出力及びセレクタMUL2出力と接続されており、
セレクタMUL12の出力はシフトレジスタS2入力と
接続されている。また、セレクタMUL11の入力は、
シフトレジスタS2出力及びセレクタMUL2出力と接
続されており、セレクタMUL11の出力はシフトレジ
スタS1入力と接続されている。セレクタMUL10の
入力は、シフトレジスタS1出力及びセレクタMUL2
出力と接続されており、セレクタMUL10の出力はシ
フトレジスタS0入力と接続されている。
The input of the selector MUL12 is connected to the output of the XOR circuit 12 and the output of the selector MUL2.
The output of the selector MUL12 is connected to the input of the shift register S2. The input of the selector MUL11 is
The output of the shift register S2 and the output of the selector MUL2 are connected, and the output of the selector MUL11 is connected to the input of the shift register S1. The input of the selector MUL10 is the output of the shift register S1 and the selector MUL2.
The output of the selector MUL10 is connected to the input of the shift register S0.

【0155】セレクタMUL12の制御信号は、3ビッ
トレジスタDRの最上位ビットと接続されており、制御
ビットが0の時、セレクタMUL12はXOR回路12
出力を選択し、制御ビットが1の時、セレクタMUL1
2はセレクタMUL2出力を選択する。また、セレクタ
MUL11の制御信号は、3ビットレジスタDRの中間
ビットに接続されており、制御ビットが0の時、セレク
タMUL11はシフトレジスタS2出力を選択し、制御
ビットが1の時、セレクタMUL11はセレクタMUL
2出力を選択する。同様に、セレクタMUL10の制御
信号は、3ビットレジスタDR最下位ビットに接続され
ており、制御ビットが0の時、セレクタMUL10はシ
フトレジスタS1出力を選択し、制御ビットが1の時、
セレクタMUL10はセレクタMUL2出力を選択す
る。
The control signal of the selector MUL12 is connected to the most significant bit of the 3-bit register DR. When the control bit is "0", the selector MUL12 sets the XOR circuit 12
When the output is selected and the control bit is 1, the selector MUL1
2 selects the selector MUL2 output. The control signal of the selector MUL11 is connected to the intermediate bit of the 3-bit register DR. When the control bit is 0, the selector MUL11 selects the output of the shift register S2, and when the control bit is 1, the selector MUL11 is Selector MUL
Select 2 outputs. Similarly, the control signal of the selector MUL10 is connected to the least significant bit of the 3-bit register DR. When the control bit is 0, the selector MUL10 selects the output of the shift register S1, and when the control bit is 1,
The selector MUL10 selects the output of the selector MUL2.

【0156】以下、上述のように構成されたM系列発生
回路140の動作を説明する。
Hereinafter, the operation of M-sequence generation circuit 140 configured as described above will be described.

【0157】M系列発生回路130の基本動作について
は、第6及び第10の実施形態を組み合わせたものと同
様である。
The basic operation of the M-sequence generation circuit 130 is the same as that obtained by combining the sixth and tenth embodiments.

【0158】図18中、3ビットレジスタDR内の値に
より、PN符号(M系列)の符号長を任意に指定でき
る。例えば、3ビットレジスタDRに000を書き込ん
だ場合、本M系列発生回路は第6の実施形態と全く同じ
M系列を発生し、3ビットレジスタDRに100を書き
込むと、本M系列発生回路は符号長8のM系列を発生可
能となる。
In FIG. 18, the code length of the PN code (M sequence) can be arbitrarily specified by the value in the 3-bit register DR. For example, when 000 is written in the 3-bit register DR, the present M-sequence generation circuit generates exactly the same M-sequence as in the sixth embodiment. An M-sequence having a length of 8 can be generated.

【0159】以上説明したように、第14の実施形態に
係るM系列発生回路140は、第6の実施形態に係るM
系列発生回路と第10の実施形態に係るM系列発生回路
を組み合わせて構成したので、M系列の1周期のビット
数を2のべき乗で任意に選択することができ、かつ任意
の生成多項式にて表現されるM系列を発生することがで
き、さらにリセット値に任意の値を指定できるレジスタ
が使用できる場合においては第13の実施形態より少な
いゲート数で実現できる。本発明により、様々な拡散率
のCDMAシステムに適用が可能となる。 第15の実施形態 図19は本発明の第15の実施形態に係るM系列発生回
路の構成を示すブロック図である。本実施形態は、第7
の実施形態に係るM系列発生回路と第13の実施形態に
係るM系列発生回路を組み合わせたものである。本実施
形態に係るM系列発生回路の説明にあたり前記図11及
び図17と同一構成部分には同一符号を付している。
As described above, the M-sequence generation circuit 140 according to the fourteenth embodiment is different from the M-sequence generation circuit 140 according to the sixth embodiment.
Since the sequence generation circuit and the M-sequence generation circuit according to the tenth embodiment are configured in combination, the number of bits in one cycle of the M-sequence can be arbitrarily selected by a power of 2, and can be expressed by an arbitrary generation polynomial. When a register capable of generating an M-sequence to be expressed and capable of specifying an arbitrary value as a reset value can be used, the present invention can be realized with a smaller number of gates than in the thirteenth embodiment. The present invention can be applied to CDMA systems with various spreading factors. Fifteenth Embodiment FIG. 19 is a block diagram showing a configuration of an M-sequence generation circuit according to a fifteenth embodiment of the present invention. In the present embodiment, the seventh
This is a combination of the M-sequence generation circuit according to the thirteenth embodiment and the M-sequence generation circuit according to the thirteenth embodiment. In the description of the M-sequence generation circuit according to the present embodiment, the same components as those in FIGS. 11 and 17 are denoted by the same reference numerals.

【0160】図19において、M系列発生回路150
は、Nビット(4ビット)のシフトレジスタS0,S
1,S2,S3からなるシフトレジスタ11と、シフト
レジスタ11より1個少ない数を有するN−1ビットレ
ジスタ(GEN)51と、N−1ビットレジスタGEN
出力を一方の入力として持つN−1個のAND回路52
と、シフトレジスタ11間に挿入され、N−1個のAN
D回路52出力を一方の入力として持つN−1個のXO
R回路53と、シフトレジスタ11より1個少ない数を
有するN−1ビット(3ビット)レジスタ(DR)91
と、N−1ビットレジスタDR出力を制御信号として持
つN−1個のセレクタ(MUL10〜MUL12)92
と、シフトレジスタ11の最終段の値を格納し、初期値
0を持つレジスタ(レジスタR)13と、M系列の1周
期のクロック数を計数するNビット(4ビット)カウン
タ(COUNT)14と、NビットカウンタCOUNT
と同数のMビットを有するMビット(4ビット)レジス
タ(MASK)31と、MビットレジスタMASKとN
ビットカウンタCOUNTの各ビットの論理積を取るM
個(4個)のAND回路10〜AND回路13からなる
AND回路32と、AND回路32の出力の論理和を取
るOR回路15と、OR回路15の値を保持するレジス
タ(レジスタL)16と、レジスタLにより保持された
OR回路15出力値と直接OR回路15から出力された
値との論理積の否定を取るNAND回路17と、OR回
路15出力により制御されるセレクタ(MUL1)18
と、レジスタLにより保持されたOR回路15出力値に
より制御されるセレクタ(MUL2)19とから構成さ
れる。
In FIG. 19, M-sequence generation circuit 150
Are N-bit (4-bit) shift registers S0, S
, S2, S3, an N-1 bit register (GEN) 51 having one less number than the shift register 11, and an N-1 bit register GEN
N-1 AND circuits 52 having an output as one input
And N-1 ANs inserted between the shift registers 11
N-1 XOs having D circuit 52 output as one input
An R circuit 53 and an N-1 bit (3-bit) register (DR) 91 having one less number than the shift register 11
And N-1 selectors (MUL10 to MUL12) 92 having an N-1 bit register DR output as a control signal
A register (register R) 13 which stores the value of the last stage of the shift register 11 and has an initial value 0, and an N-bit (4-bit) counter (COUNT) 14 which counts the number of clocks in one cycle of the M series. , N-bit counter COUNT
An M-bit (4-bit) register (MASK) 31 having the same number of M bits as M, and M-bit registers MASK and N
M which takes the logical product of each bit of the bit counter COUNT
An AND circuit 32 including four (four) AND circuits 10 to 13; an OR circuit 15 for obtaining a logical sum of outputs of the AND circuit 32; and a register (register L) 16 for holding the value of the OR circuit 15; , A NAND circuit 17 for negating the logical product of the output value of the OR circuit 15 held by the register L and the value output directly from the OR circuit 15, and a selector (MUL1) 18 controlled by the output of the OR circuit 15
And a selector (MUL2) 19 controlled by the output value of the OR circuit 15 held by the register L.

【0161】N−1ビットレジスタDRは、3ビットレ
ジスタであり、そのクロックは他のレジスタと同一で
も、異なっていてもよい。また、3ビットレジスタDR
は、図示しない外部回路から書込みが可能である。
The N-1 bit register DR is a 3-bit register, and its clock may be the same as or different from other registers. Also, a 3-bit register DR
Can be written from an external circuit (not shown).

【0162】セレクタMUL12の入力は、XOR回路
12出力及びセレクタMUL2出力と接続されており、
セレクタMUL12の出力はシフトレジスタS2入力と
接続されている。また、セレクタMUL11の入力は、
シフトレジスタS2出力及びセレクタMUL2出力と接
続されており、セレクタMUL11の出力はシフトレジ
スタS1入力と接続されている。セレクタMUL10の
入力は、シフトレジスタS1出力及びセレクタMUL2
出力と接続されており、セレクタMUL10の出力はシ
フトレジスタS0入力と接続されている。
The input of the selector MUL12 is connected to the output of the XOR circuit 12 and the output of the selector MUL2.
The output of the selector MUL12 is connected to the input of the shift register S2. The input of the selector MUL11 is
The output of the shift register S2 and the output of the selector MUL2 are connected, and the output of the selector MUL11 is connected to the input of the shift register S1. The input of the selector MUL10 is the output of the shift register S1 and the selector MUL2.
The output of the selector MUL10 is connected to the input of the shift register S0.

【0163】セレクタMUL12の制御信号は、3ビッ
トレジスタDRの最上位ビットと接続されており、制御
ビットが0の時、セレクタMUL12はXOR回路12
出力を選択し、制御ビットが1の時、セレクタMUL1
2はセレクタMUL2出力を選択する。また、セレクタ
MUL11の制御信号は、3ビットレジスタDRの中間
ビットに接続されており、制御ビットが0の時、セレク
タMUL11はシフトレジスタS2出力を選択し、制御
ビットが1の時、セレクタMUL11はセレクタMUL
2出力を選択する。同様に、セレクタMUL10の制御
信号は、3ビットレジスタDR最下位ビットに接続され
ており、制御ビットが0の時、セレクタMUL10はシ
フトレジスタS1出力を選択し、制御ビットが1の時、
セレクタMUL10はセレクタMUL2出力を選択す
る。
The control signal of the selector MUL12 is connected to the most significant bit of the 3-bit register DR. When the control bit is "0", the selector MUL12 controls the XOR circuit 12
When the output is selected and the control bit is 1, the selector MUL1
2 selects the selector MUL2 output. The control signal of the selector MUL11 is connected to the intermediate bit of the 3-bit register DR. When the control bit is 0, the selector MUL11 selects the output of the shift register S2, and when the control bit is 1, the selector MUL11 is Selector MUL
Select 2 outputs. Similarly, the control signal of the selector MUL10 is connected to the least significant bit of the 3-bit register DR. When the control bit is 0, the selector MUL10 selects the output of the shift register S1, and when the control bit is 1,
The selector MUL10 selects the output of the selector MUL2.

【0164】以下、上述のように構成されたM系列発生
回路150の動作を説明する。
The operation of M-sequence generation circuit 150 having the above-described configuration will be described below.

【0165】M系列発生回路150の基本動作について
は、第7及び第13の実施形態を組み合わせたものと同
様である。
The basic operation of the M-sequence generation circuit 150 is the same as that of the seventh and thirteenth embodiments combined.

【0166】図19中、3ビットレジスタDR内の値に
より、PN符号(M系列)の符号長を任意に指定でき
る。例えば、3ビットレジスタDRに000を書き込ん
だ場合、M系列発生回路150は、第7の実施形態と全
く同じM系列を発生し、3ビットレジスタDRに100
を書き込むと、M系列発生回路150は、符号長8のM
系列を発生可能となる。
In FIG. 19, the code length of the PN code (M sequence) can be arbitrarily specified by the value in the 3-bit register DR. For example, when 000 is written in the 3-bit register DR, the M-sequence generation circuit 150 generates the same M-sequence as in the seventh embodiment, and 100
Is written, the M-sequence generation circuit 150
A sequence can be generated.

【0167】以上説明したように、第15の実施形態に
係るM系列発生回路150は、第7の実施形態に係るM
系列発生回路と第13の実施形態に係るM系列発生回路
を組み合わせて構成したので、M系列の1周期のビット
数を2のべき乗で任意に選択することができ、かつ任意
の生成多項式にて表現され、さらに、1周期中任意の箇
所に0を1ビット挿入したM系列を発生することがで
き、様々な拡散率のCDMAシステムに適用が可能とな
る。 第16の実施形態 図20は本発明の第16の実施形態に係るM系列発生回
路の構成を示すブロック図である。本実施形態は、第8
の実施形態に係るM系列発生回路と第14の実施形態に
係るM系列発生回路を組み合わせたものである。本実施
形態に係るM系列発生回路の説明にあたり前記図12及
び図18と同一構成部分には同一符号を付している。
As described above, the M-sequence generation circuit 150 according to the fifteenth embodiment is different from the M-sequence generation circuit 150 according to the seventh embodiment.
Since the sequence generation circuit and the M-sequence generation circuit according to the thirteenth embodiment are configured in combination, the number of bits in one cycle of the M-sequence can be arbitrarily selected by a power of 2, and can be expressed by an arbitrary generation polynomial. In addition, an M sequence in which one bit of 0 is inserted at an arbitrary position in one cycle can be generated, and can be applied to CDMA systems having various spreading factors. Sixteenth Embodiment FIG. 20 is a block diagram showing a configuration of an M-sequence generation circuit according to a sixteenth embodiment of the present invention. In the present embodiment, the eighth
This is a combination of the M-sequence generation circuit according to the fourth embodiment and the M-sequence generation circuit according to the fourteenth embodiment. In the description of the M-sequence generation circuit according to the present embodiment, the same components as those in FIGS. 12 and 18 are denoted by the same reference numerals.

【0168】図20において、M系列発生回路160
は、Nビット(4ビット)のシフトレジスタS0,S
1,S2,S3からなるシフトレジスタ11と、シフト
レジスタ11より1個少ない数を有するN−1ビットレ
ジスタ(GEN)51と、N−1ビットレジスタGEN
出力を一方の入力として持つN−1個のAND回路52
と、シフトレジスタ11間に挿入され、N−1個のAN
D回路52出力を一方の入力として持つN−1個のXO
R回路53と、シフトレジスタ11より1個少ない数を
有するN−1ビット(3ビット)レジスタ(DR)91
と、N−1ビットレジスタDR出力を制御信号として持
つN−1個のセレクタ(MUL10〜MUL12)92
と、M系列の1周期のクロック数を計数するNビット
(4ビット)カウンタ(COUNT)14と、Nビット
カウンタCOUNTと同数のMビットを有するMビット
(4ビット)レジスタ(MASK)31と、Mビットレ
ジスタMASKとNビットカウンタCOUNTの各ビッ
トの論理積を取るM個のAND回路10〜AND回路1
3からなるAND回路32と、AND回路32の出力の
論理和を取るOR回路15と、リセット値に任意の値を
指定でき、OR回路15出力により制御されてリセット
信号を出力するレジスタ(RST)21と、OR回路1
5出力により制御されるセレクタ(MUL3)22とか
ら構成される。
In FIG. 20, M-sequence generation circuit 160
Are N-bit (4-bit) shift registers S0, S
, S2, S3, an N-1 bit register (GEN) 51 having one less number than the shift register 11, and an N-1 bit register GEN
N-1 AND circuits 52 having an output as one input
And N-1 ANs inserted between the shift registers 11
N-1 XOs having D circuit 52 output as one input
An R circuit 53 and an N-1 bit (3-bit) register (DR) 91 having one less number than the shift register 11
And N-1 selectors (MUL10 to MUL12) 92 having an N-1 bit register DR output as a control signal
An N-bit (4-bit) counter (COUNT) 14 for counting the number of clocks in one cycle of the M series, an M-bit (4-bit) register (MASK) 31 having the same number of M bits as the N-bit counter COUNT, M AND circuits 10 to 1 for ANDing each bit of an M-bit register MASK and an N-bit counter COUNT
3, an OR circuit 15 that takes the logical sum of the outputs of the AND circuit 32, and a register (RST) that can specify an arbitrary value for the reset value and that is controlled by the output of the OR circuit 15 to output a reset signal 21 and the OR circuit 1
And a selector (MUL3) 22 controlled by five outputs.

【0169】セレクタMUL12の入力は、XOR回路
12出力及びセレクタMUL2出力と接続されており、
セレクタMUL12の出力はシフトレジスタS2入力と
接続されている。また、セレクタMUL11の入力は、
シフトレジスタS2出力及びセレクタMUL2出力と接
続されており、セレクタMUL11の出力はシフトレジ
スタS1入力と接続されている。セレクタMUL10の
入力は、シフトレジスタS1出力及びセレクタMUL2
出力と接続されており、セレクタMUL10の出力はシ
フトレジスタS0入力と接続されている。
The input of the selector MUL12 is connected to the output of the XOR circuit 12 and the output of the selector MUL2.
The output of the selector MUL12 is connected to the input of the shift register S2. The input of the selector MUL11 is
The output of the shift register S2 and the output of the selector MUL2 are connected, and the output of the selector MUL11 is connected to the input of the shift register S1. The input of the selector MUL10 is the output of the shift register S1 and the selector MUL2.
The output of the selector MUL10 is connected to the input of the shift register S0.

【0170】セレクタMUL12の制御信号は、3ビッ
トレジスタDRの最上位ビットと接続されており、制御
ビットが0の時、セレクタMUL12はXOR回路12
出力を選択し、制御ビットが1の時、セレクタMUL1
2はセレクタMUL2出力を選択する。また、セレクタ
MUL11の制御信号は、3ビットレジスタDRの中間
ビットに接続されており、制御ビットが0の時、セレク
タMUL11はシフトレジスタS2出力を選択し、制御
ビットが1の時、セレクタMUL11はセレクタMUL
2出力を選択する。同様に、セレクタMUL10の制御
信号は、3ビットレジスタDR最下位ビットに接続され
ており、制御ビットが0の時、セレクタMUL10はシ
フトレジスタS1出力を選択し、制御ビットが1の時、
セレクタMUL10はセレクタMUL2出力を選択す
る。
The control signal of the selector MUL12 is connected to the most significant bit of the 3-bit register DR. When the control bit is "0", the selector MUL12 sets the XOR circuit 12
When the output is selected and the control bit is 1, the selector MUL1
2 selects the selector MUL2 output. The control signal of the selector MUL11 is connected to the intermediate bit of the 3-bit register DR. When the control bit is 0, the selector MUL11 selects the output of the shift register S2, and when the control bit is 1, the selector MUL11 is Selector MUL
Select 2 outputs. Similarly, the control signal of the selector MUL10 is connected to the least significant bit of the 3-bit register DR. When the control bit is 0, the selector MUL10 selects the output of the shift register S1, and when the control bit is 1,
The selector MUL10 selects the output of the selector MUL2.

【0171】以下、上述のように構成されたM系列発生
回路160の動作を説明する。
Hereinafter, the operation of M-sequence generation circuit 160 configured as described above will be described.

【0172】M系列発生回路160の基本動作について
は、第8及び第14の実施形態を組み合わせたものと同
様である。
The basic operation of the M-sequence generation circuit 160 is the same as that of the combination of the eighth and fourteenth embodiments.

【0173】図20中、3ビットレジスタDR内の値に
より、PN符号(M系列)の符号長を任意に指定でき
る。例えば、3ビットレジスタDRに000を書き込ん
だ場合、本M系列発生回路は第6の実施形態と全く同じ
M系列を発生し、3ビットレジスタDRに100を書き
込むと、本M系列発生回路は符号長8のM系列を発生可
能となる。
In FIG. 20, the code length of the PN code (M sequence) can be arbitrarily specified by the value in the 3-bit register DR. For example, when 000 is written in the 3-bit register DR, the present M-sequence generation circuit generates exactly the same M-sequence as in the sixth embodiment. An M-sequence having a length of 8 can be generated.

【0174】以上説明したように、第16の実施形態に
係るM系列発生回路160は、第8の実施形態に係るM
系列発生回路と第14の実施形態に係るM系列発生回路
を組み合わせて構成したので、M系列の1周期のビット
数を2のべき乗で任意に選択することができ、かつ任意
の生成多項式にて表現され、さらに、1周期中任意の箇
所に0を1ビット挿入したM系列を発生することができ
る。本実施形態は、任意のレジスタ初期値を与えられる
場合は第15の実施形態よりも少ないゲート数でM系列
発生器を構成することができ、様々な拡散率のCDMA
システムに適用が可能となる。
As described above, the M-sequence generation circuit 160 according to the sixteenth embodiment is different from the M-sequence generation circuit 160 according to the eighth embodiment.
Since the sequence generation circuit and the M-sequence generation circuit according to the fourteenth embodiment are configured in combination, the number of bits in one cycle of the M-sequence can be arbitrarily selected by a power of 2 and can be expressed by an arbitrary generation polynomial. It is possible to generate an M sequence in which one bit of 0 is inserted at an arbitrary position in one cycle. In the present embodiment, when an arbitrary register initial value is given, the M-sequence generator can be configured with a smaller number of gates than in the fifteenth embodiment, and CDMA with various spreading factors can be used.
It can be applied to the system.

【0175】したがって、このような特長を有するM系
列発生回路をCDMA通信方式を用いた移動体通信シス
テムに用いられるPN符号発生回路に適用して好適であ
る。
Therefore, it is preferable to apply the M-sequence generation circuit having such features to a PN code generation circuit used in a mobile communication system using the CDMA communication system.

【0176】なお、上記各実施形態では、M系列の1周
期が16ビット以下のものについて説明したが、シフト
レジスタS0〜S3をシフトレジスタS0〜SN-1(N-1
は、1以上の整数)に拡張することにより、2Nビット
周期のM系列発生器を構成することができる。
In each of the above embodiments, the case where one cycle of the M sequence is 16 bits or less has been described. However, the shift registers S0 to S3 are replaced with the shift registers S0 to SN-1 (N-1
Is an integer of 1 or more), whereby an M-sequence generator having a period of 2 N bits can be configured.

【0177】また、上記各実施形態では、PN符号発生
回路の中でも、M系列発生回路に限定した回路構成につ
いて述べているが、これらM系列発生回路を2つを用意
し、そのPN_OUT同士を排他的論理和で接続するよ
うにすれば、GOLD符号発生回路が実現できる。この
GOLD符号発生回路の構成図を図21に示す。図にお
いて、M系列発生回路1及びM系列発生回路2には、上
述した各実施形態に係る何れのM系列発生回路を用いる
ことが可能である。
Further, in each of the above embodiments, the circuit configuration limited to the M-sequence generation circuit among the PN code generation circuits is described. However, two M-sequence generation circuits are prepared, and their PN_OUTs are mutually exclusive. A GOLD code generation circuit can be realized by connecting by logical OR. FIG. 21 shows a configuration diagram of the GOLD code generation circuit. In the figure, any of the M-sequence generation circuits according to the above-described embodiments can be used for the M-sequence generation circuit 1 and the M-sequence generation circuit 2.

【0178】また、上記M系列発生回路を構成する各ゲ
ート回路、シフトレジスタ及びセレクタ等の種類、数及
び接続方法などは前述した実施形態に限られない。
The types, numbers, connection methods, and the like of the gate circuits, shift registers, selectors, and the like that constitute the M-sequence generation circuit are not limited to the above-described embodiments.

【0179】[0179]

【発明の効果】本発明に係るM系列発生回路では、それ
ぞれの値をシフトして格納するNビットのシフトレジス
タと、シフトレジスタ間に生成多項式に従って挿入され
たM個の排他的論理和演算手段と、M系列の1周期のク
ロック数を計数するNビットカウンタと、Nビットカウ
ンタの各ビットの値の論理を取る第1の論理演算手段
と、シフトレジスタ間に挿入され、第1の論理演算手段
の出力によりシフトレジスタの値と入力値を選択する第
1の選択手段とを備えて構成したので、要求される符号
長のPN符号(M系列)を容易に発生することができ
る。
In the M-sequence generation circuit according to the present invention, an N-bit shift register for shifting and storing each value, and M exclusive-OR operation means inserted between the shift registers according to the generator polynomial An N-bit counter for counting the number of clocks in one cycle of the M series, a first logical operation means for calculating the logic of each bit value of the N-bit counter, and a first logical operation inserted between the shift registers Since the apparatus is provided with the first selecting means for selecting the value of the shift register and the input value based on the output of the means, a PN code (M sequence) having a required code length can be easily generated.

【0180】また、本発明に係るPN符号発生回路で
は、M系列は、請求項1乃至9の何れかに記載のM系列
発生回路により発生させるように構成したので、上記効
果をPN符号発生回路において得ることができる。
Further, in the PN code generation circuit according to the present invention, the M sequence is generated by the M sequence generation circuit according to any one of claims 1 to 9, so that the above effect is obtained by the PN code generation circuit. Can be obtained.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明を適用した第1の実施形態に係るM系列
発生回路の構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of an M-sequence generation circuit according to a first embodiment to which the present invention has been applied.

【図2】上記M系列発生回路の動作を示すタイミングチ
ャートである。
FIG. 2 is a timing chart showing an operation of the M-sequence generation circuit.

【図3】本発明を適用した第2の実施形態に係るM系列
発生回路の構成を示すブロック図である。
FIG. 3 is a block diagram illustrating a configuration of an M-sequence generation circuit according to a second embodiment to which the present invention has been applied.

【図4】上記M系列発生回路の動作を示すタイミングチ
ャートである。
FIG. 4 is a timing chart showing an operation of the M-sequence generation circuit.

【図5】本発明を適用した第3の実施形態に係るM系列
発生回路の構成を示すブロック図である。
FIG. 5 is a block diagram illustrating a configuration of an M-sequence generation circuit according to a third embodiment to which the present invention has been applied.

【図6】上記M系列発生回路の動作を示すタイミングチ
ャートである。
FIG. 6 is a timing chart showing the operation of the M-sequence generation circuit.

【図7】本発明を適用した第4の実施形態に係るM系列
発生回路の構成を示すブロック図である。
FIG. 7 is a block diagram illustrating a configuration of an M-sequence generation circuit according to a fourth embodiment to which the present invention has been applied.

【図8】上記M系列発生回路の動作を示すタイミングチ
ャートである。
FIG. 8 is a timing chart showing the operation of the M-sequence generation circuit.

【図9】本発明を適用した第5の実施形態に係るM系列
発生回路の構成を示すブロック図である。
FIG. 9 is a block diagram illustrating a configuration of an M-sequence generation circuit according to a fifth embodiment to which the present invention has been applied.

【図10】本発明を適用した第6の実施形態に係るM系
列発生回路の構成を示すブロック図である。
FIG. 10 is a block diagram illustrating a configuration of an M-sequence generation circuit according to a sixth embodiment to which the present invention has been applied.

【図11】本発明を適用した第7の実施形態に係るM系
列発生回路の構成を示すブロック図である。
FIG. 11 is a block diagram illustrating a configuration of an M-sequence generation circuit according to a seventh embodiment to which the present invention has been applied.

【図12】本発明を適用した第8の実施形態に係るM系
列発生回路の構成を示すブロック図である。
FIG. 12 is a block diagram illustrating a configuration of an M-sequence generation circuit according to an eighth embodiment to which the present invention has been applied.

【図13】本発明を適用した第9の実施形態に係るM系
列発生回路の構成を示すブロック図である。
FIG. 13 is a block diagram illustrating a configuration of an M-sequence generation circuit according to a ninth embodiment to which the present invention has been applied.

【図14】本発明を適用した第10の実施形態に係るM
系列発生回路の構成を示すブロック図である。
FIG. 14 shows an M according to a tenth embodiment to which the present invention is applied.
FIG. 3 is a block diagram illustrating a configuration of a sequence generation circuit.

【図15】本発明を適用した第11の実施形態に係るM
系列発生回路の構成を示すブロック図である。
FIG. 15 shows an M according to an eleventh embodiment to which the present invention is applied.
FIG. 3 is a block diagram illustrating a configuration of a sequence generation circuit.

【図16】本発明を適用した第12の実施形態に係るM
系列発生回路の構成を示すブロック図である。
FIG. 16 is a diagram showing an M-th embodiment according to the present invention.
FIG. 3 is a block diagram illustrating a configuration of a sequence generation circuit.

【図17】本発明を適用した第13の実施形態に係るM
系列発生回路の構成を示すブロック図である。
FIG. 17 shows an M according to a thirteenth embodiment to which the present invention is applied.
FIG. 3 is a block diagram illustrating a configuration of a sequence generation circuit.

【図18】本発明を適用した第14の実施形態に係るM
系列発生回路の構成を示すブロック図である。
FIG. 18 is a diagram showing M according to a fourteenth embodiment to which the present invention is applied.
FIG. 3 is a block diagram illustrating a configuration of a sequence generation circuit.

【図19】本発明を適用した第15の実施形態に係るM
系列発生回路の構成を示すブロック図である。
FIG. 19 is a diagram showing M according to a fifteenth embodiment to which the present invention is applied.
FIG. 3 is a block diagram illustrating a configuration of a sequence generation circuit.

【図20】本発明を適用した第16の実施形態に係るM
系列発生回路の構成を示すブロック図である。
FIG. 20 is a diagram showing M according to a sixteenth embodiment to which the present invention is applied.
FIG. 3 is a block diagram illustrating a configuration of a sequence generation circuit.

【図21】本発明を適用したGOLD符号発生回路の構
成を示すブロック図である。
FIG. 21 is a block diagram showing a configuration of a GOLD code generation circuit to which the present invention is applied.

【図22】従来のM系列を発生する回路の構成を示すブ
ロック図である。
FIG. 22 is a block diagram showing a configuration of a conventional circuit for generating an M-sequence.

【符号の説明】[Explanation of symbols]

10,20,30,40,50,60,70,80,9
0,100,110,120,130,140,15
0,160 M系列発生回路、11 Nビットのシフト
レジスタ、12 XOR回路(排他的論理和演算手
段)、13 レジスタ(レジスタR)、14 Nビット
カウンタ(COUNT)、15 OR回路、16 レジ
スタ(レジスタL)、17 NAND回路、18 セレ
クタ(MUL1)(第1の選択手段,第1のセレク
タ)、19 セレクタ(MUL2)(第2のセレク
タ)、21 レジスタ(RST)、22 セレクタ(M
UL3)(第1の選択手段,第1のセレクタ)、31
Mビットレジスタ(MASK)(第1のレジスタ)、3
2 AND回路(第2の論理演算手段)、51 N−1
ビットレジスタ(GEN)(第2のレジスタ)、52
N−1個のAND回路(第3の論理演算手段)、53
N−1個のXOR回路(排他的論理和演算手段)、91
N−1ビット(3ビット)レジスタ(DR)(第3の
レジスタ)、92 N−1個のセレクタ(MUL10〜
MUL12)(第2の選択手段)
10, 20, 30, 40, 50, 60, 70, 80, 9
0,100,110,120,130,140,15
0,160 M-sequence generation circuit, 11 N-bit shift register, 12 XOR circuit (exclusive OR operation means), 13 register (register R), 14 N-bit counter (COUNT), 15 OR circuit, 16 register (register) L), 17 NAND circuits, 18 selectors (MUL1) (first selector, first selector), 19 selectors (MUL2) (second selector), 21 registers (RST), 22 selectors (M
UL3) (first selecting means, first selector), 31
M-bit register (MASK) (first register), 3
2 AND circuit (second logical operation means), 51 N-1
Bit register (GEN) (second register), 52
N-1 AND circuits (third logical operation means), 53
N-1 XOR circuits (exclusive OR operation means), 91
N-1 bit (3-bit) register (DR) (third register), 92 N-1 selectors (MUL10 to MUL10)
MUL12) (second selecting means)

───────────────────────────────────────────────────── フロントページの続き (72)発明者 島崎 良仁 東京都港区虎ノ門1丁目7番12号 沖電気 工業株式会社内 Fターム(参考) 5J049 AA00 AA17 AA18 AA21 CA08 CB01 CB06 5K022 EE00 EE02 EE23  ────────────────────────────────────────────────── ─── Continuing from the front page (72) Inventor Yoshihito Shimazaki 1-7-12 Toranomon, Minato-ku, Tokyo Oki Electric Industry Co., Ltd. F-term (reference) 5J049 AA00 AA17 AA18 AA21 CA08 CB01 CB06 5K022 EE00 EE02 EE23

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 複数のシフトレジスタと、排他的論理和
演算手段とを備え、M系列を発生するM系列発生回路に
おいて、 それぞれの値をシフトして格納するNビットのシフトレ
ジスタと、 前記シフトレジスタ間に生成多項式に従って挿入された
M個の排他的論理和演算手段と、 M系列の1周期のクロック数を計数するNビットカウン
タと、 前記Nビットカウンタの各ビットの値の論理を取る第1
の論理演算手段と、 前記シフトレジスタ間に挿入され、前記第1の論理演算
手段の出力により前記シフトレジスタの値と入力値を選
択する第1の選択手段とを備えたことを特徴としたM系
列発生回路。
1. An M-sequence generation circuit that includes a plurality of shift registers and exclusive OR operation means and generates an M-sequence, an N-bit shift register that shifts and stores each value, M pieces of exclusive OR operation means inserted between registers according to a generator polynomial; an N-bit counter for counting the number of clocks in one cycle of the M sequence; and a logic for taking the logic of each bit value of the N-bit counter 1
M; and a first selector inserted between the shift registers and selecting a value of the shift register and an input value based on an output of the first logical operator. Series generation circuit.
【請求項2】 前記Nビットカウンタと同数のビット数
を持ち、外部より任意の値が設定される第1のレジスタ
と、 前記Nビットカウンタと前記第1のレジスタの各ビット
の論理を取る第2の論理演算手段とを備え、 前記第1の論理演算手段は、前記第2の論理演算手段の
出力値の論理を取ることを特徴とする請求項1記載のM
系列発生回路。
2. A first register having the same number of bits as the N-bit counter and having an arbitrary value set from the outside, and a first register which takes logic of each bit of the N-bit counter and the first register. 2. The logic device according to claim 1, further comprising: two logic operation means, wherein the first logic operation means takes a logic of an output value of the second logic operation means. 3.
Series generation circuit.
【請求項3】 前記シフトレジスタより1つ少ないビッ
ト数を持ち、外部より任意の値が設定される第2のレジ
スタと、 前記第2のレジスタの各ビットの論理を取る第3の論理
演算手段とを備え、 前記排他的論理和演算手段は、 前記シフトレジスタの値と前記第3の論理演算手段の出
力値の排他的論理和演算を行うことを特徴とする請求項
1記載のM系列発生回路。
3. A second register having a bit number one less than the shift register and having an arbitrary value set from the outside, and a third logical operation means for taking logic of each bit of the second register 2. The M-sequence generation according to claim 1, wherein said exclusive OR operation means performs an exclusive OR operation of a value of said shift register and an output value of said third logical operation means. circuit.
【請求項4】 前記シフトレジスタより1つ少ないビッ
ト数を持ち、外部より任意の値が設定される第3のレジ
スタと、 前記シフトレジスタ間に挿入され、前記第3のレジスタ
の出力を制御信号として受け、前記シフトレジスタの値
を次段に出力するか任意のビットのシフトレジスタとし
て出力するかを選択する第2の選択手段とを備え、 M系列の1周期のビット数を任意に選択可能にしたこと
を特徴とする請求項1記載のM系列発生回路。
4. A third register having one less bit number than the shift register and having an arbitrary value set from the outside, and a control signal inserted between the shift register and an output of the third register. And a second selecting means for selecting whether to output the value of the shift register to the next stage or to output the value of the shift register as an arbitrary bit. 2. The M-sequence generation circuit according to claim 1, wherein:
【請求項5】 複数のシフトレジスタと、排他的論理和
回路(以下、XOR回路という)とを備え、M系列を発
生するM系列発生回路において、 それぞれの値をシフトして格納するNビットのシフトレ
ジスタと、 前記シフトレジスタ間に生成多項式に従って挿入された
M個のXOR回路と、 前記シフトレジスタの最終段の値を格納し、初期値0を
持つレジスタRと、 M系列の1周期のクロック数を計数するNビットカウン
タと、 前記Nビットカウンタの各ビットの値の論理和を取るO
R回路と、 前記OR回路の値を保持するレジスタLと、 前記レジスタLにより保持されたOR回路出力値と直接
OR回路から出力された値との論理積の否定を取るNA
ND回路と、 前記OR回路出力により制御される第1のセレクタと、 前記レジスタLにより保持されたOR回路出力値により
制御される第2のセレクタとを備えたことを特徴とした
M系列発生回路。
5. An M-sequence generation circuit that includes a plurality of shift registers and an exclusive-OR circuit (hereinafter, referred to as an XOR circuit) and generates an M-sequence. A shift register; M XOR circuits inserted between the shift registers according to a generator polynomial; a register R storing a value of the last stage of the shift register and having an initial value of 0; An N-bit counter for counting the number; and O for taking the logical sum of the values of the respective bits of the N-bit counter
An R circuit; a register L for holding the value of the OR circuit; and a logical AND of a logical product of an output value of the OR circuit held by the register L and a value directly output from the OR circuit.
An M-sequence generation circuit comprising: an ND circuit; a first selector controlled by the output of the OR circuit; and a second selector controlled by an output value of the OR circuit held by the register L. .
【請求項6】 複数のシフトレジスタと、XOR回路と
を備え、M系列を発生するM系列発生回路において、 それぞれの値をシフトして格納し、任意の初期値が与え
られるNビットのシフトレジスタと、 前記シフトレジスタ間に生成多項式に従って挿入された
M個のXOR回路と、 M系列の1周期のクロック数を計数するNビットカウン
タと、 前記Nビットカウンタの各ビットの値の論理和を取るO
R回路と、 前記OR回路の値を保持するレジスタRSTと、 前記OR回路の出力値により制御される第1のセレクタ
とを備えたことを特徴としたM系列発生回路。
6. An N-bit shift register, comprising a plurality of shift registers and an XOR circuit, for generating an M-sequence in an M-sequence generating circuit for shifting and storing respective values and giving an arbitrary initial value. And M XOR circuits inserted between the shift registers according to a generator polynomial; an N-bit counter for counting the number of clocks in one cycle of the M sequence; and taking a logical sum of the values of each bit of the N-bit counter O
An M-sequence generation circuit comprising: an R circuit; a register RST for holding a value of the OR circuit; and a first selector controlled by an output value of the OR circuit.
【請求項7】 前記Nビットカウンタと同数のビット数
を持ち、外部より任意の値が設定される第1のレジスタ
と、 前記Nビットカウンタと前記第1のレジスタの各ビット
の論理積を取るM個のAND回路とを備え、 前記OR回路は、前記AND回路の出力値の論理和を取
ることを特徴とする請求項5又は6の何れかに記載のM
系列発生回路。
7. A logical register of a first register having the same number of bits as the N-bit counter and having an arbitrary value set from the outside, and a logical AND of each bit of the N-bit counter and the first register The M circuit according to claim 5, further comprising: M AND circuits, wherein the OR circuit calculates a logical sum of output values of the AND circuit.
Series generation circuit.
【請求項8】 前記シフトレジスタより1つ少ないビッ
ト数を持ち、外部より任意の値が設定される第2のレジ
スタと、 前記第2のレジスタの出力を一方の入力として持つN−
1個のAND回路と、 前記N−1個のAND回路出力を一方の入力として持つ
N−1個のXOR回路とを備え、 前記N−1個のXOR回路は、 前記シフトレジスタの値と前記N−1個のAND回路の
出力値の排他的論理和演算を行うことを特徴とする請求
項5又は6の何れかに記載のM系列発生回路。
8. A second register having one less bit number than the shift register and having an arbitrary value set from the outside, and an N-type having an output of the second register as one input.
A single AND circuit, and N-1 XOR circuits having the N-1 AND circuit outputs as one input, wherein the N-1 XOR circuits are configured to store the shift register value and the 7. The M-sequence generation circuit according to claim 5, wherein an exclusive OR operation is performed on output values of the N-1 AND circuits.
【請求項9】 前記シフトレジスタより1つ少ないビッ
ト数を持ち、外部より任意の値が設定される第3のレジ
スタと、 前記シフトレジスタ間に挿入され、前記第3のレジスタ
の出力を制御信号として受け、前記シフトレジスタの値
を次段に出力するか任意のビットのシフトレジスタとし
て出力するかを選択するN−1個のセレクタとを備え、 M系列の1周期のビット数を任意に選択可能にしたこと
を特徴とする請求項5又は6の何れかに記載のM系列発
生回路。
9. A third register having one less bit number than the shift register and having an arbitrary value set from the outside, and a control signal inserted between the shift register and an output of the third register. N-1 selectors for selecting whether to output the value of the shift register to the next stage or output as an arbitrary bit shift register, and arbitrarily select the number of bits in one cycle of the M sequence 7. The M-sequence generation circuit according to claim 5, wherein the circuit is enabled.
【請求項10】 M系列を用いてPN符号(疑似ランダ
ム符号)を発生するPN符号発生回路において、 前記M系列は、請求項1乃至9の何れかに記載のM系列
発生回路により発生させることを特徴とするPN符号発
生回路。
10. A PN code generating circuit for generating a PN code (pseudo random code) using an M sequence, wherein the M sequence is generated by the M sequence generating circuit according to claim 1. PN code generation circuit characterized by the above-mentioned.
【請求項11】 前記PN符号は、周期が等しい2種類
のM系列発生回路を用いて、それらの出力を加算するこ
とで得られるGOLD符号系列であることを特徴とする
請求項10記載のPN符号発生回路。
11. The PN code according to claim 10, wherein the PN code is a GOLD code sequence obtained by using two types of M-sequence generation circuits having the same period and adding their outputs. Sign generation circuit.
JP8357599A 1999-03-26 1999-03-26 M-sequencies generating circuit and pn code generating circuit Withdrawn JP2000278099A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8357599A JP2000278099A (en) 1999-03-26 1999-03-26 M-sequencies generating circuit and pn code generating circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8357599A JP2000278099A (en) 1999-03-26 1999-03-26 M-sequencies generating circuit and pn code generating circuit

Publications (1)

Publication Number Publication Date
JP2000278099A true JP2000278099A (en) 2000-10-06

Family

ID=13806315

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8357599A Withdrawn JP2000278099A (en) 1999-03-26 1999-03-26 M-sequencies generating circuit and pn code generating circuit

Country Status (1)

Country Link
JP (1) JP2000278099A (en)

Similar Documents

Publication Publication Date Title
US6339781B1 (en) M-sequence generator and PN code generator with mask table for obtaining arbitrary phase shift
JP2937919B2 (en) Pseudo random number generator
JP3022439B2 (en) Pseudo random number generation method and apparatus
US9575726B2 (en) Bit sequence generator and apparatus for calculating a sub-rate transition matrix and a sub-rate initial state for a state machine of a plurality of state machines
US9619206B2 (en) Pseudo-random bit sequence generator
JPH11265276A (en) Phase shift coefficient calculation system for m sequence
US7340496B2 (en) System and method for determining the Nth state of linear feedback shift registers
JPH0818550A (en) Code sequence generator
JP5171420B2 (en) Pseudo random number generator
US8909510B2 (en) LFSR emulation
US6067359A (en) PN sequence generator with bidirectional shift register and Eulerian-graph feedback circuit
JP5119417B2 (en) Pseudo random number generator
US9389834B2 (en) Pseudorandom number generating circuit and method
JP3626105B2 (en) Pseudo random signal generation circuit
KR100327856B1 (en) Circuit and method for arbitrarily shifting M series
JP2000278099A (en) M-sequencies generating circuit and pn code generating circuit
KR101007339B1 (en) Scrambler device by generating array of pseudo random binary number
US6910056B1 (en) Method and apparatus for implementing a multi-step pseudo random sequence generator
JPH10117128A (en) Controller for phase of pseudo noise series code
KR100307705B1 (en) Layered orthogonal code generation apparatus and method
Devrari et al. Sequential logic circuit gold codes for electronics and communication technologies
KR100399199B1 (en) Selective spreading code generator and its method with variable linear complexity
JP3618554B2 (en) Code generation method and code generation apparatus
JP3790514B2 (en) Pseudo random sequence generation system
JPS6319038A (en) Random number generator

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060606