JPH0955732A - Method and device for scrambling data, and method and device for descrambling data - Google Patents

Method and device for scrambling data, and method and device for descrambling data

Info

Publication number
JPH0955732A
JPH0955732A JP8142438A JP14243896A JPH0955732A JP H0955732 A JPH0955732 A JP H0955732A JP 8142438 A JP8142438 A JP 8142438A JP 14243896 A JP14243896 A JP 14243896A JP H0955732 A JPH0955732 A JP H0955732A
Authority
JP
Japan
Prior art keywords
data
input
polynomial
output
initial 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.)
Pending
Application number
JP8142438A
Other languages
Japanese (ja)
Inventor
Ikuhisa Nishida
郁央 西田
Masatoshi Shinpo
正利 新保
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP8142438A priority Critical patent/JPH0955732A/en
Publication of JPH0955732A publication Critical patent/JPH0955732A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide the methods and devices for scrambling and descrambling which can perform scrambling and descrambling in byte format of 8-bit units by a scrambling part and a descrambling part of a digital signal processor instead of scrambling and descrambling in binary format. SOLUTION: Scrambling and descrambling are both composed of an input means for byte data, an exclusive OR circuit block means, and a plurality of latch circuit means 15 with setting or resetting functions. The data are inputted from the byte data input means by 8 bits at each time and the exclusive OR circuit block means sets a value in the respective latches of the latch circuit means 15 each time the data is inputted. The data is passed through the exclusive OR circuit block means from the latch circuit means 15 and outputted from a byte data output means by 8 bits in parallel.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、記録媒体、あるい
は伝送通信において、記録データあるいは通信データが
再生あるいは受信された場合のデータスクランブル方
法,データスクランブル装置、データデスクランブル方
法,及びデータデスクランブル装置に関するものであ
り、より詳しくは、データを記録媒体に記録しあるいは
伝送通信を行う際に用いるデータスクランブル方法,及
びデータスクランブル装置の改良を図るとともに、かつ
このデータスクランブル方法,及びデータスクランブル
装置によってスクランブルが行われた記録データあるい
は通信データが再生あるいは受信された場合にこれにデ
スクランブルを行うデータデスクランブル方法,及びデ
ータデスクランブル装置の改良を図ったものに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data scramble method, a data scramble apparatus, a data descramble method, and a data descramble apparatus when recording data or communication data is reproduced or received in a recording medium or transmission communication. More specifically, the present invention relates to a data scramble method and a data scramble device used when recording data on a recording medium or performing transmission communication, and at the same time, improves the data scramble method and the data scramble device. The present invention relates to an improved data descrambling method and a data descrambling apparatus for descrambling recorded data or communication data that has been reproduced or received.

【0002】[0002]

【従来の技術】従来より、入力データが周期性を持つ場
合や一定のパターンが続く場合においても、送信信号の
振幅、極性、位相の変化が平均的に現れるようにし、受
信側での信号変化点のタイミング抽出を容易にするため
に、データスクランブルが用いられ、そのデータスクラ
ンブルを実現するために、データスクランブル装置が用
いられている。
2. Description of the Related Art Conventionally, even when input data has a periodicity or a constant pattern continues, changes in the amplitude, polarity, and phase of the transmission signal appear on average, and signal changes on the receiving side are performed. Data scrambling is used to facilitate point timing extraction, and a data scrambling device is used to implement the data scrambling.

【0003】以下、図面を参照しながら、上述したよう
な従来のスクランブル,及びデータスクランブル装置に
ついて説明を行う。図16は従来のスクランブル装置,
及びデスクランブル装置の構成を示すものである。説明
を簡単にするために、一般的によく用いられる生成多項
式G(X)が G(X) = 1 + X-6 + X-7 のものを例にあげることとする。図16において、161
はデータ入力端子、162はスクランブルデータ出力端
子、163 はレジスタ、164 はmod2加算器、165 は初期設
定値テーブル、166 はスクランブルデータ入力端子、16
7 はデータ出力端子である。
A conventional scrambler and data scrambler as described above will be described below with reference to the drawings. FIG. 16 shows a conventional scrambler,
2 shows the configuration of the descrambling device. To simplify the explanation, the generator polynomial G (X) that is commonly used is G (X) = 1 + X -6 + X -7 . In FIG. 16, 161
Is a data input terminal, 162 is a scrambled data output terminal, 163 is a register, 164 is a mod2 adder, 165 is an initial setting value table, 166 is a scrambled data input terminal, 16
7 is a data output terminal.

【0004】以上のように構成されたデータスクランブ
ル装置,及びデータデスクランブル装置について、以下
その動作について説明する。まず、図16(a) に示すデ
ータスクランブル装置について説明する。はじめに、初
期設定値テーブル165 から各レジスタ163 に初期設定値
をおくることにより初期値を設定する。
The operation of the data scrambler and data descrambler configured as described above will be described below. First, the data scrambler shown in FIG. 16 (a) will be described. First, the initial value is set by sending the initial setting value from the initial setting value table 165 to each register 163.

【0005】次にシリアルデータDiがデータ入力端子
161 から入力される。そして、各ステップ毎にデータは
1ビットづつ次段のレジスタ163 にシフトされる。この
データのシフトを順次繰り返し、データ出力端子162 よ
り、スクランブルされた出力データ系列Dsがシリアル
で順次出力される。
Next, the serial data Di is transferred to the data input terminal.
Input from 161. Then, the data is shifted bit by bit to the register 163 of the next stage at each step. This data shift is sequentially repeated, and the scrambled output data series Ds is sequentially output serially from the data output terminal 162.

【0006】図16(b) に示すデータデスクランブル装
置も同様に、はじめに初期設定値を各レジスタ163 に設
定し、データ入力端子166 よりシリアルデータDsを入
力し、各ステップ毎にデータを1ビットづつシフトし、
順次出力端子167 よりスクランブルが解除された出力デ
ータ系列Doがシリアルで出力される。
Similarly, the data descrambling device shown in FIG. 16 (b) first sets an initial setting value in each register 163, inputs serial data Ds from the data input terminal 166, and outputs 1 bit of data for each step. Shift one by one,
The descrambled output data series Do is serially output from the sequential output terminal 167.

【0007】続いて光ディスクを媒体とした記録再生装
置に用いられるデータスクランブル装置,及びデータデ
スクランブル装置の動作について説明する。光ディスク
記録再生装置では、一般に隣合うトラックに記録するデ
ータのパターンが一致するのを避けるためにスクランブ
ルが施されている。
Next, the operations of the data scrambler and the data descrambler used in the recording / reproducing apparatus using the optical disc as a medium will be described. In an optical disk recording / reproducing apparatus, scrambling is generally performed in order to avoid matching patterns of data recorded in adjacent tracks.

【0008】図17は光ディスク記録再生装置で用いら
れている従来のスクランブル装置,及びデスクランブル
装置の構成を示すものである。説明を簡単にするために
生成多項式G(X)が G(X) = X7 + X6 + 1 のものを例にあげることにする。図17において、171
はデータ入力端子、172はスクランブルデータ出力端
子、173 はレジスタ、174 はmod2加算器、175 は初期設
定値テーブル、176 はスクランブルデータ入力端子、17
7 はデータ出力端子である。
FIG. 17 shows the structures of a conventional scrambler and a descrambler used in an optical disk recording / reproducing apparatus. To simplify the explanation, the generator polynomial G (X) will be given as an example where G (X) = X 7 + X 6 +1. In FIG. 17, 171
Is a data input terminal, 172 is a scrambled data output terminal, 173 is a register, 174 is a mod2 adder, 175 is an initial setting value table, 176 is a scrambled data input terminal, 17
7 is a data output terminal.

【0009】以上のように構成されたデータスクランブ
ル装置,及びデータデスクランブル装置について、以下
その動作について説明する。まず、図17(a) に示すデ
ータスクランブル装置について説明する。はじめに、初
期設定値テーブル175 から各レジスタ173 に初期設定値
を送ることにより初期値を設定する。
The operation of the data scrambler and the data descrambler configured as described above will be described below. First, the data scrambler shown in FIG. 17A will be described. First, the initial value is set by sending the initial setting value from the initial setting value table 175 to each register 173.

【0010】次に、シリアルデータDiがデータ入力端
子171 から入力される。そして、初期設定された各レジ
スタ173 のデータは、入力データDiと同期して各ステ
ップごとに1ビットずつ次段のレジスタ173 にシフトさ
れる。この初期値データのシフトとデータ入力を順次繰
り返し、データ出力端子172 から、入力データと、図1
7の最右段のレジスタ出力とが排他的論理和されたもの
が出力され、これがスクランブルされたデータDsとな
る。
Next, serial data Di is input from the data input terminal 171. Then, the initialized data of each register 173 is shifted to the register 173 of the next stage by one bit at each step in synchronization with the input data Di. The shift of the initial value data and the data input are sequentially repeated, and the input data and the data shown in FIG.
An exclusive OR of the register output of the rightmost stage of 7 is output, and this becomes scrambled data Ds.

【0011】図17(b) に示すデータデスクランブル装
置も同様で、スクランブルが施されたデータDsがスク
ランブルデータ入力端子176 から入力され、デスクラン
ブルされたデータDoがデータ出力端子177 より出力さ
れる。
The same applies to the data descrambler shown in FIG. 17B. The scrambled data Ds is input from the scrambled data input terminal 176, and the descrambled data Do is output from the data output terminal 177. .

【0012】[0012]

【発明が解決しようとする課題】このように、従来は、
バイナリデータとしてのスクランブル,及びデスクラン
ブルが行われていたが、最近は、データがバイト単位で
処理されることが多く、その度にバイナリデータをバイ
トデータに、あるいはその逆に変換する必要が生じると
いう難点があった。
As described above, conventionally,
Although scrambling and descrambling as binary data have been performed, recently, data is often processed in byte units, and it is necessary to convert binary data to byte data and vice versa each time. There was a difficulty.

【0013】この発明は上記のような従来のものの問題
を解決するためになされたもので、バイナリデータのバ
イトデータへの変換あるいはその逆の変換を必要とせず
にデータのスクランブル,及びデスクランブルを実行す
ることができるデータスクランブル方法,データスクラ
ンブル装置,データデスクランブル方法,及びデータデ
スクランブル装置を得ることを目的とする。
The present invention has been made in order to solve the problems of the conventional ones described above, and scrambles and descrambles data without requiring conversion of binary data into byte data or vice versa. An object of the present invention is to obtain a data scramble method, a data scramble device, a data descramble method, and a data descramble device that can be executed.

【0014】[0014]

【課題を解決するための手段】本願の請求項1の発明に
係るデータスクランブル方法は、情報多項式, D(X) =dn n +dn-1 n-1 +dn-2 n-2 +……
+d2 2 +d1 1 +d0 0 生成多項式 G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m で定義されるスクランブル方法を行うものであり、初期
値設定手段により上記剰余多項式における各係数R-m+k
(k=0,1,…,m-1)の初期値R-m+k(0) =N-m+k(ここ
で、R-m+k(i) は上記剰余多項式における係数R-m+k
ラッチの値であるとしたとき、該ラッチをi回シフトし
たときの値である。)を、0あるいは1に設定し、その
後、情報データをバイト単位のデータとして扱うため
に、上記情報多項式の上位から8ビット分に相当する初
回の入力データdn 〜dn-7 に対し、上記生成多項式で
除算する除算を行って、その剰余多項式の係数, R-m+k(i) =R-m+k+1(i-1) (k=0,1,…,m-1, i=0,
1,…,8, ただしk=m-1, i=8 の場合を除く) R-1(8) =g-1-1(7) +g-2-2(7) +……+g-m+1
-m+1(7) +g-m-m(7) +dn-7 を得、この除算の剰余結果を、次の初期値とみなして、
これらと次の入力データdn-8 〜dn-15との排他的論理
和をとり、これらの操作を入力バイナリデータのバイト
数分繰り返し、その繰り返しを行う各単位での排他的論
理和の結果を、バイト単位で、
A data scrambling method according to the invention of claim 1 of the present application is an information polynomial, D (X) = d n X n + d n-1 X n-1 + d n-2 X n- 2 + ……
+ D 2 X 2 + d 1 X 1 + d 0 X 0 Generator polynomial G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X- m + 2 + R- m + 1 X- m + 1 + R- m X- m scramble method is performed, and each coefficient R- m + k in the remainder polynomial by the initial value setting means.
(K = 0,1, ..., m -1) Initial value R -m + k in (0) = N -m + k ( where the coefficient R -m + k (i) is in the remainder polynomial R - When m + k is the value of the latch, it is the value when the latch is shifted i times.) is set to 0 or 1, and then the information data is treated as byte-unit data. The first input data dn to dn-7 corresponding to the upper 8 bits of the information polynomial is divided by the generator polynomial, and the coefficient of the remainder polynomial, R -m + k (i) = R -m + k + 1 (i-1) (k = 0,1, ..., m-1, i = 0,
1, ..., 8, except when k = m-1, i = 8) R -1 (8) = g -1 R -1 (7) + g -2 R -2 (7) + ...... + g -m + 1
R -m + 1 (7) + g -m R -m (7) + dn -7 is obtained, and the remainder result of this division is regarded as the next initial value,
The exclusive OR of these and the next input data dn-8 to dn-15 is taken, these operations are repeated for the number of bytes of the input binary data, and the result of the exclusive OR in each unit which repeats the operation is obtained. , In bytes,

【0015】[0015]

【数9】 [Equation 9]

【0016】の関係で表したとき、この順次得られるd
s(1)〜ds(8)を、ds7〜ds0として一括して取り出すこ
とにより、バイナリ形式のスクランブルをバイト形式で
行うようにしたものである。
When expressed by the relation of d
The s (1) to ds (8) are collectively fetched as ds7 to ds0 so that the binary scrambling is performed in the byte format.

【0017】また、本願の請求項2の発明に係るデータ
デスクランブル方法は、情報多項式, D(X) =dn n +dn-1 n-1 +dn-2 n-2 +……
+d2 2 +d1 1 +d0 0 生成多項式, G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m で定義されるデスクランブル方法を行うものであり、初
期値設定手段により上記剰余多項式における各係数R
-m+k(k=0,1,…,m-1)の初期値R-m+k(0) =N-m+k(こ
こで、R-m+k(i) は上記剰余多項式における係数R-m+k
がラッチの値であるとしたとき、該ラッチをi回シフト
したときの値である。)を、0あるいは1に設定し、そ
の後、情報データをバイト単位のデータとして扱うため
に、情報多項式の上位から8ビット分であるdn 〜dn-
7 に対し、生成多項式で乗算する乗算を行い、その際、
その乗算を実現させるために構成されたシフトレジスタ
の各ラッチの係数を、 R-m+k(i) =R-m+k+1(i-1) (k=0,1,…,m-1, i=0,
1,…,8, ただしk=m-1, i=8 の場合を除く) R-1(8) =dn-7 とし、この乗算を実現させるために構成されたシフトレ
ジスタの各ラッチに演算後残されているデータを、次の
初期値とみなして、これらと次の入力データdn-8 〜d
n-15との排他的論理和をとり、この後者の操作を入力バ
イナリデータのバイト数分繰り返し、その繰り返しを行
う各単位での排他的論理和の結果を、バイト単位で、
The data descrambling method according to the invention of claim 2 of the present application is an information polynomial, D (X) = d n X n + d n-1 X n-1 + d n-2 X n-2 + ... …
+ D 2 X 2 + d 1 X 1 + d 0 X 0 generator polynomial, G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X- m + 2 + R- m + 1 X- m + 1 + R- m X- m The descrambling method is performed and each coefficient R in the remainder polynomial is set by the initial value setting means.
-m + k (k = 0,1, ..., m-1) initial value R- m + k (0) = N- m + k (where R- m + k (i) is the above remainder polynomial Coefficient R at -m + k
Is the value of the latch and is the value when the latch is shifted i times. ) Is set to 0 or 1, and thereafter, in order to handle the information data as data in byte units, dn to dn-, which are the 8 bits from the high order of the information polynomial.
7 is multiplied by the generator polynomial, and at that time,
The coefficient of each latch of the shift register configured to realize the multiplication is represented by R- m + k (i) = R- m + k + 1 (i-1) (k = 0,1, ..., m -1, i = 0,
1, ..., 8, except when k = m-1, i = 8) R −1 (8) = d n-7, and each latch of the shift register configured to realize this multiplication The data remaining after the calculation is regarded as the next initial value, and these and the next input data dn-8 to d
Take the exclusive OR with n-15, repeat this latter operation for the number of bytes of the input binary data, and the result of the exclusive OR in each unit that repeats, in byte units,

【0018】[0018]

【数10】 (Equation 10)

【0019】の関係で表したとき、この順次得られるd
o(1)〜do(8)を、do7〜do0として一括して取り出すこ
とにより、バイナリ形式のスクランブルされたデータに
対し、バイト形式でデスクランブルを行うようにしたも
のである。
When expressed by the relationship of
By deciphering o (1) to do (8) collectively as do7 to do0, the scrambled data in binary format is descrambled in byte format.

【0020】また、本願の請求項3の発明に係るデータ
デスクランブル方法は、情報多項式, D(X) =d0 0 +d1 1 +d2 2 +……+dn-2
n-2 +dn-1 n-1 +dn n 生成多項式, G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m で定義されるデスクランブル方法を行うものであり、初
期値設定手段により上記剰余多項式における各係数R
-m+k(k=0,1,…,m-1)の初期値R-m+k(0) =N-m+k(こ
こで、R-m+k(i) は剰余多項式における係数R-m+kがラ
ッチの値であるとしたとき、該ラッチをi回シフトした
ときの値である。)を、0あるいは1に設定し、その
後、情報データをバイト単位のデータとして扱うため
に、8ビットのパラレルラッチ{In|(m+7)/8|+1 }
段(ここで、In|数式|は、数式で求められる値の整数
部分の値とする)で構成してなり、8ビットの各ラッチ
の値と出力端子の出力とが、
The data descrambling method according to the invention of claim 3 of the present application is an information polynomial, D (X) = d 0 X 0 + d 1 X 1 + d 2 X 2 + ... + d n-2
X n-2 + d n-1 X n-1 + d n X n generator polynomial, G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X- m + 2 + R- m + 1 X- m + 1 + R- m X- m The descrambling method is performed and each coefficient R in the remainder polynomial is set by the initial value setting means.
initial value of -m + k (k = 0,1, ..., m-1) R- m + k (0) = N- m + k (where R- m + k (i) is the remainder polynomial When the coefficient R −m + k is the value of the latch, it is a value when the latch is shifted i times) is set to 0 or 1, and then the information data is treated as byte-unit data. For this purpose, an 8-bit parallel latch {In | (m + 7) / 8 | +1}
(Where, In | numerical formula | is the value of the integer part of the value calculated by the mathematical formula), and the value of each 8-bit latch and the output of the output terminal are

【0021】[0021]

【数11】 [Equation 11]

【0022】なる関係を有するような排他的論理和演算
を行なう排他的論理和ブロックを構成しdo 0 〜do 7
を出力することにより、バイナリ形式でスクランブルさ
れたデータをバイト形式8ビットパラレルで入力し、該
入力をデスクランブルしたものをバイト形式8ビットパ
ラレルで出力するようにしたものである。
An exclusive-OR block for performing an exclusive-OR operation having the following relation is constructed to form do 0 to do 7
By outputting the scrambled data in binary format in byte format 8-bit parallel, and descrambled the input in byte format 8-bit parallel.

【0023】また、本願の請求項4の発明に係るデータ
スクランブル装置は、情報多項式, D(X) =dn n +dn-1 n-1 +dn-2 n-2 +……
+d2 2 +d1 1 +d0 0 生成多項式, G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m で定義されるスクランブル方法を行うものであり、初期
値設定手段により上記剰余多項式における各係数R-m+k
(k=0,1,…,m-1)の初期値R-m+k(0) =N-m+k(ここ
で、R-m+k(i) は剰余多項式における係数R-m+kがラッ
チの値であるとしたとき、該ラッチをi回シフトしたと
きの値である。)を、0あるいは1に設定し、その後、
情報データをバイト単位のデータとして扱うために、情
報多項式の上位から8ビット分であるdn 〜dn-7 に対
し、生成多項式で除算する除算を行って、その剰余多項
式の係数, R-m+k(i) =R-m+k+1(i-1) (k=0,1,…,m-1, i=0,
1,…,8, ただしk=m-1, i=8 の場合を除く) R-1(8) =g-1-1(7) +g-2-2(7) +……+g-m+1
-m+1(7) +g-m-m(7) +dn-7 を得、上記初期値N-m+k と、その初期値N-m+k に8回シ
フトした結果各ラッチが持っている係数をかけ合わせた
ものとの排他的論理和をとり、この排他的論理和の剰余
結果を、次の初期値とみなして、これらと次の入力デー
タdn-8 〜dn-15との排他的論理和をとり、この後者の
操作を入力バイナリデータのバイト数分繰り返し、その
繰り返しを行う各単位での排他的論理和の結果を、バイ
ト単位で、
The data scrambling device according to the invention of claim 4 of the present application is an information polynomial, D (X) = d n X n + d n-1 X n-1 + d n-2 X n-2 + ...
+ D 2 X 2 + d 1 X 1 + d 0 X 0 generator polynomial, G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X- m + 2 + R- m + 1 X- m + 1 + R- m X- m scramble method is performed, and each coefficient R- m + k in the remainder polynomial by the initial value setting means.
Initial value of (k = 0,1, ..., m-1) R- m + k (0) = N- m + k (where R- m + k (i) is a coefficient R- m in the remainder polynomial. If + k is the value of the latch, it is the value when the latch is shifted i times.) is set to 0 or 1, and then
In order to treat the information data as data in units of bytes, the dn to dn-7, which are the 8 bits from the high order of the information polynomial, are divided by the generator polynomial, and the coefficient of the remainder polynomial, R -m + k (i) = R -m + k + 1 (i-1) (k = 0,1, ..., m-1, i = 0,
1, ..., 8, except when k = m-1, i = 8) R -1 (8) = g -1 R -1 (7) + g -2 R -2 (7) + ...... + g -m + 1
R -m + 1 (7) + g -m R -m (7) + d n-7 is obtained, and as a result of shifting the initial value N-m + k to the initial value N-m + k eight times, each latch Takes the exclusive OR with the product of the coefficients and holds the remainder result of this exclusive OR as the next initial value, and these and the next input data dn-8 to dn-15 , And the latter operation is repeated for the number of bytes of the input binary data, and the result of the exclusive OR in each unit where the repetition is performed, in byte units,

【0024】[0024]

【数12】 (Equation 12)

【0025】の関係で表したとき、この順次得られるd
s(1)〜ds(8)を、ds7〜ds0として一括して取り出すこ
とにより、バイナリ形式で入力されたデータを、バイト
形式8ビットパラレルでスクランブルし、該スクランブ
ルしたデータをバイト形式8ビットパラレルで出力する
ようにしたものである。
When expressed by the relation of d
By collectively extracting s (1) to ds (8) as ds7 to ds0, the data input in binary format is scrambled in byte format 8-bit parallel, and the scrambled data is byte format 8-bit parallel. It is designed to be output with.

【0026】また、本願の請求項5の発明に係るデータ
デスクランブル装置は、情報多項式, D(X) =d0 0 +d1 1 +d2 2 +……+dn-2
n-2 +dn-1 n-1 +dn n 生成多項式, G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m で定義されるデスクランブル方法を行うものであり、初
期値設定手段により上記剰余多項式における各係数R
-m+k(k=0,1,…,m-1)の初期値R-m+k(0) =N-m+k(こ
こで、R-m+k(i) は上記剰余多項式における係数R-m+k
がラッチの値であるとしたとき、該ラッチをi回シフト
したときの値である。)を、0あるいは1に設定し、そ
の後、情報データをバイト単位のデータとして扱うため
に、8ビットのパラレルラッチ{In|(m+7)/8|+1 }
段(ここで、In|数式|は、数式で求められる値の整数
部分の値とする)で構成してなり、8ビットの各ラッチ
の値と出力端子の出力とが、
The data descrambling apparatus according to the invention of claim 5 of the present application is an information polynomial, D (X) = d 0 X 0 + d 1 X 1 + d 2 X 2 + ... + d n-2
X n-2 + d n-1 X n-1 + d n X n generator polynomial, G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X- m + 2 + R- m + 1 X- m + 1 + R- m X- m The descrambling method is performed and each coefficient R in the remainder polynomial is set by the initial value setting means.
-m + k (k = 0,1, ..., m-1) initial value R- m + k (0) = N- m + k (where R- m + k (i) is the above remainder polynomial Coefficient R at -m + k
Is the value of the latch and is the value when the latch is shifted i times. ) Is set to 0 or 1, and then 8-bit parallel latch {In | (m + 7) / 8 | +1} to handle the information data as byte unit data.
(Where, In | numerical formula | is the value of the integer part of the value calculated by the mathematical formula), and the value of each 8-bit latch and the output of the output terminal are

【0027】[0027]

【数13】 (Equation 13)

【0028】なる関係を有するような排他的論理和演算
を行ないdo 0 〜do 7 を出力する排他的論理和ブロッ
クを備えてなり、バイナリ形式でスクランブルされたデ
ータをバイト形式8ビットパラレルで入力し、該入力を
デスクランブルしたものを、バイト形式8ビットパラレ
ルで出力するようにしたものである。
An exclusive-OR block for performing an exclusive-OR operation having the above relationship and outputting do 0 to do 7 is provided, and scrambled data in binary format is input in 8-bit parallel byte format. The descrambled input is output in 8-bit parallel byte format.

【0029】また、本願の請求項6の発明に係るデータ
デスクランブル装置は、情報多項式, D(X) =dn n +dn-1 n-1 +dn-2 n-2 +……
+d2 2 +d1 1 +d0 0 生成多項式, G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m で定義されるデスクランブル方法を行うものであり、バ
イナリ形式シリアルデータ入力端子を備え、初期値設定
手段により上記剰余多項式における各係数R-m+k(k=0,
1,…,m-1)の初期値R-m+k(0) =N-m+k(ここで、R
-m+k(i) は剰余多項式におけるR-m+kがラッチの値であ
るとしたとき、該ラッチをi回シフトしたときの値であ
る。)を、0あるいは1に設定し、その後、情報データ
をバイト単位のデータとして扱うために、情報多項式の
上位から8ビット分であるdn 〜dn-7 に対し、生成多
項式で乗算する乗算を行い、その際、その乗算を実現さ
せるために構成されたシフトレジスタの各ラッチの係数
を、 R-m+k(i) =R-m+k+1(i-1) (k=0,1,…,m-1, i=0,
1,…,8, ただしk=m-1, i=8 の場合を除く) ds (8)=g-1-1(7) +g-2-2(7) +……+g-m+1
-m+1(7) +g-m-m(7) +dn-7 とし、この乗算を実現させるために構成されたシフトレ
ジスタの各ラッチに演算後残されているデータを、次の
初期値とみなして、これらと次の入力データdn-8 〜d
n-15との排他的論理和をとり、この後者の操作を入力バ
イナリデータのバイト数分繰り返し、その繰り返しを行
う各単位での排他的論理和の結果を、バイト単位で、
The data descrambling apparatus according to the invention of claim 6 of the present application is an information polynomial, D (X) = d n X n + d n-1 X n-1 + d n-2 X n-2 + ... …
+ D 2 X 2 + d 1 X 1 + d 0 X 0 generator polynomial, G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X- m + 2 + R- m + 1 X- m + 1 + R- m X- m is used for the descrambling method, which is provided with a binary format serial data input terminal and has the above-mentioned remainder by the initial value setting means. Each coefficient in the polynomial R -m + k (k = 0,
Initial value of 1, ..., m-1) R -m + k (0) = N -m + k (where R
-m + k (i) is a value when the latch is shifted i times, where R -m + k in the remainder polynomial is the value of the latch. ) Is set to 0 or 1, and then, in order to handle the information data as data in byte units, multiplication is performed by multiplying dn to dn-7, which is the 8 bits from the upper part of the information polynomial, by the generator polynomial. , At that time, the coefficient of each latch of the shift register configured to realize the multiplication is represented by R −m + k (i) = R −m + k + 1 (i−1) (k = 0,1 ,… , M-1, i = 0,
1, ..., 8, except when k = m-1, i = 8) ds (8) = g -1 R -1 (7) + g -2 R -2 (7) + ...... + g -m +1
And R -m + 1 (7) + g -m R -m (7) + d n-7, what is left after the operation in the respective latches of the shift register configured to achieve this multiplication, the following Considering these as initial values, these and the next input data dn-8 to d
Take the exclusive OR with n-15, repeat this latter operation for the number of bytes of the input binary data, and the result of the exclusive OR in each unit that repeats, in byte units,

【0030】[0030]

【数14】 [Equation 14]

【0031】の関係で表したとき、この順次得られるd
o(1)〜do(8)を、do7〜do0として一括して取り出すこ
とにより、バイナリ形式でスクランブルされたデータを
シリアルバイナリ単位で入力し、該入力をデスクランブ
ルしたものを、バイト単位で8ビットパラレルで出力す
るようにしたものである。
When expressed by the relationship of
By collectively extracting o (1) to do (8) as do7 to do0, the scrambled data in the binary format is input in serial binary units, and the descrambled input is 8 in byte units. It is designed to output in bit parallel.

【0032】また、本願の請求項7の発明に係るデータ
スクランブル装置は、情報多項式, D(X) =dn n +dn-1 n-1 +dn-2 n-2 +……
+d2 2 +d1 1 +d0 0 生成多項式, G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m で定義されるスクランブル方法を行うものであり、バイ
ナリ形式シリアルデータ入力端子を有し、初期値設定手
段により上記剰余多項式における各係数R-m+k(k=0,1,
…,m-1)の初期値R-m+k(0) =N-m+k(ここで、R-m+k
(i) は上記剰余多項式における上記係数R-m+kがラッチ
の値であるとしたとき、該ラッチをi回シフトしたとき
の値である。)を、0あるいは1に設定し、その後、情
報データをバイト単位のデータとして扱うために、情報
多項式の上位から8ビット分であるdn 〜dn-7 に対
し、生成多項式で割算する除算を行って、その剰余多項
式の係数として、 R-m+k(i) =R-m+k+1(i-1) (k=0,1,…,m-2 ) R-1(8) =g-1-1(7) +g-2-2(7) +……+g-m+1
-m+1(7) +g-m-m(7) +dn-7 を得、この除算の剰余結果を、次の初期値とみなして、
これらと次の入力データdn-8〜dn-15 との排他的論理和
をとり、この後者の操作を入力バイナリデータのバイト
数分繰り返し、その繰り返しを行う各単位での排他的論
理和の結果を、バイト単位で、
The data scrambling device according to the invention of claim 7 of the present application is an information polynomial, D (X) = d n X n + d n-1 X n-1 + d n-2 X n-2 + ...
+ D 2 X 2 + d 1 X 1 + d 0 X 0 generator polynomial, G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X- m + 2 + R- m + 1 X- m + 1 + R- m X- m The scrambling method is performed, the binary format serial data input terminal is provided, and the remainder is set by the initial value setting means. Each coefficient in the polynomial R -m + k (k = 0,1,
, M-1) initial value R -m + k (0) = N -m + k (where R -m + k
(i) is a value when the coefficient R −m + k in the remainder polynomial is a latch value and the latch is shifted i times. ) Is set to 0 or 1, and then, in order to treat the information data as data in byte units, division from the higher bits of the information polynomial, dn to dn-7, by the generator polynomial is performed. As a coefficient of the remainder polynomial, R- m + k (i) = R- m + k + 1 (i-1) (k = 0,1, ..., m-2) R- 1 (8) = G -1 R -1 (7) + g -2 R -2 (7) + ... + g -m + 1
R -m + 1 (7) + g -m R -m (7) + dn -7 is obtained, and the remainder result of this division is regarded as the next initial value,
Exclusive-OR these with the next input data dn-8 to dn-15, repeat this latter operation for the number of bytes of input binary data, and the result of exclusive-OR in each unit that repeats In bytes,

【0033】[0033]

【数15】 (Equation 15)

【0034】の関係で表したとき、この順次得られるd
s(1)〜ds(8)を、ds7〜ds0としてバイト形式8ビット
パラレルで一括して取り出すことにより、入力データを
シリアルバイナリ単位で入力し、バイト単位でパラレル
にデータの出力を行うようにしたものである。
When expressed by the relation of d
By extracting s (1) to ds (8) as ds7 to ds0 in byte format in 8-bit parallel, input data is input in serial binary units, and data is output in parallel in byte units. It was done.

【0035】本願の請求項8の発明に係るデータデスク
ランブル装置は、情報多項式, D(X) =d0 0 +d1 1 +d2 2 +……+dn-2
n-2 +dn-1 n-1 +dn n 生成多項式, G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m ここで、nは8の整数倍、n>m、である。
The data descrambling apparatus according to the invention of claim 8 of the present application is an information polynomial, D (X) = d 0 X 0 + d 1 X 1 + d 2 X 2 + ... + d n-2
X n-2 + d n-1 X n-1 + d n X n generator polynomial, G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X −m + 2 + R −m + 1 X −m + 1 + R −m X −m Here, n is an integer multiple of 8 and n> m.

【0036】で定義されるデータデスクランブル方法を
行うものであり、初期値設定手段により上記剰余多項式
における各係数R-m+k(k=0,1,…,m-1)の初期値R-m+k
(0) =N-m+k(ここで、R-m+k(i) は上記剰余多項式に
おける係数R-m+kがラッチの値であるとしたとき、該ラ
ッチをi回シフトしたときの値である。)を、0あるい
は1に設定し、情報データをバイト単位のデータとして
扱うために、8ビットのパラレルラッチ{In|(m+7)/8
|+1 }段(ここで、In|数式|は、数式で求められる
値の整数部分の値とする)を備えてなり、8ビットの各
ラッチの値と出力端子の出力とが、
The data descrambling method defined by the above is performed, and the initial value R of each coefficient R -m + k (k = 0, 1, ..., M-1) in the above remainder polynomial is set by the initial value setting means. -m + k
(0) = N- m + k (where R- m + k (i) is the coefficient R- m + k in the remainder polynomial is the value of the latch, and the latch is shifted i times. Value) is set to 0 or 1 and the information data is treated as byte data.
│ + 1} stages (where, In | numerical formula | is the value of the integer part of the value calculated by the mathematical formula)

【0037】[0037]

【数16】 (Equation 16)

【0038】なる関係を有するような排他的論理和演算
を行ないdo 0 〜do 7 を出力する排他的論理和ブロッ
クと、該排他的論理和ブロックによりデスクランブルさ
れたパラレルデータをシリアルデータに変換する8ビッ
トのパラレルシリアル変換手段と、該パラレルシリアル
変換手段によりシリアルビットに変換されたバイナリデ
ータを出力する出力端子とを備え、バイナリ形式でスク
ランブルされたデータをバイト形式8ビットパラレルで
入力し、これをバイト形式8ビットパラレルでデスクラ
ンブルし、シリアルバイナリ単位でデータ出力するよう
にしたものである。
An exclusive-OR block that performs an exclusive-OR operation having the following relationship and outputs do 0 to do 7, and parallel data descrambled by the exclusive-OR block are converted into serial data. An 8-bit parallel-serial conversion means and an output terminal for outputting binary data converted into serial bits by the parallel-serial conversion means are provided, and scrambled data in binary format is input in byte format 8-bit parallel. Is descrambled in byte format 8-bit parallel and data is output in serial binary units.

【0039】本願の請求項9の発明に係るデータスクラ
ンブル方法は、生成多項式, G(X) =Xm +gm-1 m-1 +gm-2 m-2 +gm-3
m-3 +……+g3 3 +g2 2 +g1 1 +1 の演算を実現し、複数回の連続演算を可能とするリング
状の構成をとるm段のシフトレジスタRm-j(1 ≦j ≦m
)と、上記シフトレジスタのm個の各レジスタに初期
値を設定する初期値設定手段とを備え、上記初期値を設
定した後、入力されるクロックと同期しながら、上記初
期値をシフトし、クロックと同期して入力されるデータ
と最下位のラッチ出力との排他的論理和を出力するデー
タスクランブル方法を行うものであり、情報データをバ
イト単位のデータとして扱うために、8ビットの入力手
段di0〜di7と、8ビットの出力手段ds0〜ds7と、入
力の値、各ラッチの値、及び出力の値の関係が、 ds k=Ro (7) +di k k=0,1,2,……,7 となるようにし、1バイトのデータを出力するごとに、
上記シフトレジスタ内のデータを8回分シフトし、これ
を繰り返すことにより、スクランブルをバイト単位で行
うようにしたものである。
The data scrambling method according to the invention of claim 9 of the present application is the generator polynomial, G (X) = X m + g m-1 X m-1 + g m-2 X m-2 + g m-3 X
m-3 + ... + g 3 X 3 + g 2 X 2 + g 1 X 1 +1 operations are realized, and m-stage shift register Rm-j (1 with a ring-shaped configuration that enables continuous operation multiple times ≤ j ≤ m
) And an initial value setting means for setting an initial value in each of the m registers of the shift register, and after the initial value is set, the initial value is shifted in synchronization with an input clock, A data scramble method for outputting an exclusive OR of the data input in synchronization with the clock and the least significant latch output is performed, and 8-bit input means is used to handle the information data as byte-unit data. The relationship between di0 to di7, 8-bit output means ds0 to ds7, the input value, the value of each latch, and the output value is: ds k = Ro (7) + di k k = 0,1,2, ... ..., 7 so that each time 1 byte of data is output,
The data in the shift register is shifted eight times, and by repeating this, scrambling is performed in byte units.

【0040】本願の請求項10の発明に係るデータデス
クランブル方法は、生成多項式, G(X) =Xm +gm-1 m-1 +gm-2 m-2 +gm-3
m-3 +……+g3 3 +g2 2 +g1 1 +1 の演算を実現し、複数回の連続演算を可能とするリング
状の構成をとるm段のシフトレジスタRm-j(1 ≦j ≦m
)と、上記シフトレジスタのm個の各レジスタに初期
値を設定する初期値設定手段とを備え、上記初期値を設
定した後、入力されるクロックと同期しながら初期値を
シフトして、クロックと同期して入力されるデータと最
下位のラッチ出力との排他的論理和を出力し、スクラン
ブルされたデータを、バイト単位のデータとして扱い、
8ビットの入力手段ds0〜ds7と、8ビットの出力手段
do0〜do7と、入力、各ラッチの値と出力との関係が、 do k=Ro (k) +ds k k=0,1,2,……,7 となるようにし、1バイトのデータを出力するごとに、
シフトレジスタ内のデータを8回分シフトし、これを繰
り返すことにより、デスクランブルをバイト単位で行う
ようにしたものである。
The data descrambling method according to the invention of claim 10 of the present application is the generator polynomial, G (X) = X m + g m-1 X m-1 + g m-2 X m-2 + g m-3 X
m-3 + ... + g 3 X 3 + g 2 X 2 + g 1 X 1 +1 operations are realized, and m-stage shift register Rm-j (1 with a ring-shaped configuration that enables continuous operation multiple times ≤ j ≤ m
) And an initial value setting means for setting an initial value in each of the m registers of the shift register. After setting the initial value, the initial value is shifted in synchronization with an input clock to obtain a clock. The exclusive OR of the data input in synchronization with the least significant latch output is output, and the scrambled data is treated as byte unit data,
The relationship between the 8-bit input means ds0 to ds7, the 8-bit output means do0 to do7, the input and the value of each latch and the output is: do k = Ro (k) + ds k k = 0,1,2, ......, 7 so that each time 1 byte of data is output,
The data in the shift register is shifted eight times, and by repeating this, descrambling is performed in byte units.

【0041】本願の請求項11の発明に係るデータスク
ランブル装置は、生成多項式, G(X) =Xm +gm-1 m-1 +gm-2 m-2 +gm-3
m-3 +……+g3 3 +g2 2 +g1 1 +1 の演算を実現し、複数回の連続演算を可能とするリング
状の構成をとるm段のシフトレジスタRm-j(1 ≦j ≦m
)と、上記シフトレジスタのm個の各レジスタに初期
値を設定する初期値設定手段とを備え、上記初期値を設
定した後、入力されるクロックと同期しながら初期値を
シフトして、クロックと同期して入力されるデータと最
下位のラッチ出力との排他的論理和を出力するスクラン
ブルを行うものであり、情報データをバイト単位のデー
タとして扱うために、8ビットの入力手段ds0〜ds7
と、8ビットの出力手段do0〜do7と、入力、各ラッチ
の値と出力との関係が、 ds k=Ro (k) +di k k=0,1,2,……,7 となる排他的論理和回路ブロックを備え、1バイトのデ
ータを出力するごとに、上記シフトレジスタ内のデータ
を8回分シフトし、これを繰り返すことにより、スクラ
ンブルをかけるデータをバイト単位で8ビットパラレル
で入力し、スクランブルされたデータを8ビットパラレ
ルで出力し、バイト形式のスクランブルを行うようにし
たものである。
The data scramble apparatus according to the invention of claim 11 of the present application is the generator polynomial, G (X) = X m + g m-1 X m-1 + g m-2 X m-2 + g m-3 X
m-3 + ... + g 3 X 3 + g 2 X 2 + g 1 X 1 +1 operations are realized, and m-stage shift register Rm-j (1 with a ring-shaped configuration that enables continuous operation multiple times ≤ j ≤ m
) And an initial value setting means for setting an initial value in each of the m registers of the shift register. After setting the initial value, the initial value is shifted in synchronism with an input clock to obtain a clock. Is a scramble for outputting the exclusive OR of the data input in synchronism with the lowest latch output, and 8-bit input means ds0 to ds7 for handling the information data as byte unit data.
And the relationship between the 8-bit output means do0 to do7 and the value of each input and each latch and the output is: ds k = Ro (k) + di k k = 0,1,2, ..., 7 A logical sum circuit block is provided, and each time one byte of data is output, the data in the shift register is shifted eight times, and by repeating this, the data to be scrambled is input in 8-bit parallel in byte units, The scrambled data is output in 8-bit parallel to perform scrambling in byte format.

【0042】本願の請求項12の発明に係るデータデス
クランブル装置は、生成多項式, G(X) =Xm +gm-1 m-1 +gm-2 m-2 +gm-3
m-3 +……+g3 3 +g2 2 +g1 1 +1 の演算を実現し、複数回の連続演算を可能とするリング
状の構成をとるm段のシフトレジスタRm-j(1 ≦j ≦m
)と、上記シフトレジスタのm個の各レジスタに初期
値を設定する初期値設定手段とを備え、上記初期値を設
定した後、入力されるクロックと同期しながら初期値を
シフトして、クロックと同期して入力されるデータと最
下位のラッチ出力との排他的論理和を出力し、スクラン
ブルされたデータをバイト単位のデータとして扱うため
に、8ビットの入力手段ds0〜ds7と、8ビットの出力
手段do0〜do7と、入力、各ラッチの値と出力との関係
が、 do k=Ro (k) +ds k k=0,1,2,……,7 となる排他的論理和回路ブロックを備え、1バイトのデ
ータを出力するごとに、シフトレジスタ内のデータを8
回分シフトし、これを繰り返すことにより、バイナリ形
式でスクランブルされたデータをバイト単位で8ビット
パラレルで入力し、デスクランブルされたデータを8ビ
ットパラレルで出力し、デスクランブルを行うようにし
たものである。
The data descrambling apparatus according to the invention of claim 12 of the present application is the generator polynomial, G (X) = X m + g m-1 X m-1 + g m-2 X m-2 + g m-3 X
m-3 + ... + g 3 X 3 + g 2 X 2 + g 1 X 1 +1 operations are realized, and m-stage shift register Rm-j (1 with a ring-shaped configuration that enables continuous operation multiple times ≤ j ≤ m
) And an initial value setting means for setting an initial value in each of the m registers of the shift register. After setting the initial value, the initial value is shifted in synchronization with an input clock to obtain a clock. An 8-bit input means ds0 to ds7 and an 8-bit input means for outputting an exclusive OR of the data input in synchronization with the least significant latch output and treating the scrambled data as byte unit data. Of the output means do0 to do7, the input and the value of each latch, and the output are as follows: do k = Ro (k) + ds k k = 0,1,2, ..., 7 Each time 1 byte of data is output, the data in the shift register is set to 8
By shifting the number of times and repeating this, the data scrambled in binary format is input in byte units in 8-bit parallel, and the descrambled data is output in 8-bit parallel to perform descrambling. is there.

【0043】[0043]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

実施の形態1.以下本発明の実施の形態1について、図
面を参照しながら説明する。図1は本発明の実施の形態
1におけるバイナリ形式で入力されたデータのスクラン
ブルを、バイト形式で行うスクランブル方法及び装置を
示すものであり、(表1)は図1の動作状態を示したも
ので、(表2)は(表1)の生成多項式を特定した特別
な場合の動作状態を示したものである。図1において、
11は初期値設定端子、12はクロック入力端子、13はデー
タ入力端子、14はシリアルデータ出力端子、15はレジス
タ、16は係数器、17はmod2加算器、18は論理回路ブロッ
ク、19はパラレル出力端子である。
Embodiment 1. Embodiment 1 of the present invention will be described below with reference to the drawings. FIG. 1 shows a scrambling method and apparatus for scrambling data input in a binary format in a byte format according to Embodiment 1 of the present invention, and (Table 1) shows an operation state of FIG. Then, (Table 2) shows an operation state in a special case in which the generator polynomial of (Table 1) is specified. In FIG.
11 is an initial value setting terminal, 12 is a clock input terminal, 13 is a data input terminal, 14 is a serial data output terminal, 15 is a register, 16 is a coefficient multiplier, 17 is a mod2 adder, 18 is a logic circuit block, and 19 is parallel. It is an output terminal.

【0044】[0044]

【表1】 [Table 1]

【0045】[0045]

【表2】 [Table 2]

【0046】まず、記録媒体における記録、あるいは伝
送通信における伝送通信時のスクランブル方法について
説明し、次に、バイナリデータ用のスクランブル方法を
バイトデータ用のスクランブル方法に変換するための原
理について説明する。説明に先だって、以下のように各
データを多項式化し定義する。 情報多項式:D(X) = dnXn + dn-1X n-1 +dn-2Xn-2 + ‥
‥+d2X2 + d1X + d0 生成多項式:G(X) = 1 + g-1X -1 + g-2X -2 +‥‥+ g-
m+2X-m+2 +g-m+1X-m+1 + g-mX -m 但し、di,gi は0あるいは1の値をとる。
First, a scrambling method for recording on a recording medium or for transmission communication in transmission communication will be described, and then a principle for converting a scrambling method for binary data into a scrambling method for byte data will be described. Prior to explanation, each data is polynomialized and defined as follows. Information polynomial: D (X) = dnX n + dn-1X n-1 + dn-2X n-2 +
‥ + d2X 2 + d1X + d0 Generator polynomial: G (X) = 1 + g-1X -1 + g-2X -2 + ‥ + g-
m + 2X -m + 2 + g-m + 1X -m + 1 + g-mX -m However, di and gi take a value of 0 or 1.

【0047】バイナリデータの入力に先だって、初期値
設定端子11で各レジスタは0あるいは1に初期値が設定
される。次に、データ入力端子13から情報データがバイ
ナリデータのままシリアルで入力され、クロック入力端
子12のデータ(信号)に同期したクロックで情報データ
がそのビット数と同数分シフトさせられる。この間、情
報データは出力端子19からスクランブルがかかった状態
でパラレルに取り出され、記録あるいは伝送通信され
る。
Prior to the input of binary data, the initial value of each register is set to 0 or 1 at the initial value setting terminal 11. Next, the information data is serially input as binary data from the data input terminal 13, and the information data is shifted by the same number as the number of bits by the clock synchronized with the data (signal) of the clock input terminal 12. During this time, the information data is taken out in parallel from the output terminal 19 in a scrambled state and recorded or transmitted for communication.

【0048】本実施の形態1では、情報データをバイト
単位で扱うために、まず、バイナリデータが8ビット分
入力された結果を求める。図1において、そのデータ入
力端子13に、情報多項式の上位ビットから8ビット分、
即ち、dn〜dn-7を順次シリアルで入力し、これを8回シ
フトした結果を求める。そのために、各シフトごとの各
ラッチ出力を(表1)のように、上位側よりR-m(i)〜R-
1(i)とする。また、各レジスタ15には、初期値設定端子
11により、演算開始前に0か1かの初期値をプリセット
できるものとし、その初期値を上位側よりN-m 〜N-1 と
する。また図1においてシリアル出力端子14からの出力
をds(i) とする。ここでi はシフトの回数を表してい
る。(表1)は各シフト毎の各レジスタ15の出力を示し
たものである。8回シフトした結果は、(表1)の8回
目の各ラッチ出力に順次、各シフト回数のシフトの結果
を代入することによって求められる。そして、各レジス
タ15から、入出力の間に ds7 = g-1R-1(0) + g-2R-2(0) + g-3R-3(0) + ‥‥+ g-
m+2R-m+2(0) + g-m+1R-m+1(0) + g-mR-m(0) + dn ds6 = g-1R-1(1) + g-2R-2(1) + g-3R-3(1) + ‥‥+ g-
m+2R-m+2(1) + g-m+1R-m+1(1) + g-mR-m(1) + dn-1 ds5 = g-1R-1(2) + g-2R-2(2) + g-3R-3(2) + ‥‥+ g-
m+2R-m+2(2) + g-m+1R-m+1(2) + g-mR-m(2) + dn-2 ds4 = g-1R-1(3) + g-2R-2(3) + g-3R-3(3) + ‥‥+ g-
m+2R-m+2(3) + g-m+1R-m+1(3) + g-mR-m(3) + dn-3 ds3 = g-1R-1(4) + g-2R-2(4) + g-3R-3(4) + ‥‥+ g-
m+2R-m+2(4) + g-m+1R-m+1(4) + g-mR-m(4) + dn-4 ds2 = g-1R-1(5) + g-2R-2(5) + g-3R-3(5) + ‥‥+ g-
m+2R-m+2(5) + g-m+1R-m+1(5) + g-mR-m(5) + dn-5 ds1 = g-1R-1(6) + g-2R-2(6) + g-3R-3(6) + ‥‥+ g-
m+2R-m+2(6) + g-m+1R-m+1(6) + g-mR-m(6) + dn-6 ds0 = g-1R-1(7) + g-2R-2(7) + g-3R-3(7) + ‥‥+ g-
m+2R-m+2(7) + g-m+1R-m+1(7) + g-mR-m(7) + dn-7 なる関係を持つ論理回路ブロック18を通ってパラレル出
力端子19から8ビットずつバイト形式でデータds7 〜ds
0 が出力され、その出力されるデータはスクランブルが
かけられている。以後、情報データとして、次の1バイ
トのデータを入力する場合には、上記の各R-m(8)〜R-1
(8)をそのまま次の初期値N-m 〜N-1 として使用し、以
下同様の演算を行えばよい。以下、入力データがLバイ
トであればこれらの演算をL回分繰り返せばよい。
In the first embodiment, in order to handle information data in byte units, first, the result of inputting 8 bits of binary data is obtained. In FIG. 1, the data input terminal 13 has eight bits from the upper bit of the information polynomial,
That is, dn to dn-7 are serially input, and the result of shifting this eight times is obtained. Therefore, as shown in (Table 1), each latch output for each shift is Rm (i) to R-
Set to 1 (i). In addition, each register 15 has an initial value setting pin.
According to 11, the initial value of 0 or 1 can be preset before the calculation is started, and the initial value is set to Nm to N-1 from the higher order side. Further, in FIG. 1, the output from the serial output terminal 14 is ds (i). Here, i represents the number of shifts. Table 1 shows the output of each register 15 for each shift. The result of shifting eight times is obtained by sequentially substituting the result of shifting for each shift number into each latch output of the eighth time in (Table 1). And from each register 15, between input and output ds7 = g-1R-1 (0) + g-2R-2 (0) + g-3R-3 (0) + ... + g-
m + 2R-m + 2 (0) + g-m + 1R-m + 1 (0) + g-mR-m (0) + dn ds6 = g-1R-1 (1) + g-2R-2 (1) + g-3R-3 (1) + ‥‥ + g-
m + 2R-m + 2 (1) + g-m + 1R-m + 1 (1) + g-mR-m (1) + dn-1 ds5 = g-1R-1 (2) + g-2R -2 (2) + g-3R-3 (2) + ‥‥ + g-
m + 2R-m + 2 (2) + g-m + 1R-m + 1 (2) + g-mR-m (2) + dn-2 ds4 = g-1R-1 (3) + g-2R -2 (3) + g-3R-3 (3) + ‥‥ + g-
m + 2R-m + 2 (3) + g-m + 1R-m + 1 (3) + g-mR-m (3) + dn-3 ds3 = g-1R-1 (4) + g-2R -2 (4) + g-3R-3 (4) + ‥‥ + g-
m + 2R-m + 2 (4) + g-m + 1R-m + 1 (4) + g-mR-m (4) + dn-4 ds2 = g-1R-1 (5) + g-2R -2 (5) + g-3R-3 (5) + ‥‥‥ + g-
m + 2R-m + 2 (5) + g-m + 1R-m + 1 (5) + g-mR-m (5) + dn-5 ds1 = g-1R-1 (6) + g-2R -2 (6) + g-3R-3 (6) + ‥‥‥ + g-
m + 2R-m + 2 (6) + g-m + 1R-m + 1 (6) + g-mR-m (6) + dn-6 ds0 = g-1R-1 (7) + g-2R -2 (7) + g-3R-3 (7) + ‥‥ + g-
m + 2R-m + 2 (7) + g-m + 1R-m + 1 (7) + g-mR-m (7) + dn-7 Parallel output terminal through logic circuit block 18 Data from ds7 to ds in 19-bit by 8-bit units
A 0 is output and the output data is scrambled. After that, when inputting the next 1-byte data as information data, each of the above Rm (8) to R-1
Using (8) as it is as the next initial values Nm to N-1, the same calculation may be performed thereafter. Hereinafter, if the input data is L bytes, these operations may be repeated L times.

【0049】次に説明をより簡単かつ、具体的にするた
めに、生成多項式をG(X) = 1 + X-6+ X-7、情報多項式
を1バイト、即ち、D(X) = d7X7 + d6X6 + d5X5 + d4
X 4+ d3X3 + d2X 2 + d1X + d0 とし、各レジスタの
出力をもとめたのが(表2)となる。(表2)より、各
レジスタの出力は以下のように求められる。
In order to make the explanation simpler and more concrete, the generator polynomial is G (X) = 1 + X- 6 + X- 7 , and the information polynomial is 1 byte, that is, D (X) = d7X. 7 + d6X 6 + d5X 5 + d4
X 4 + d3X 3 + d2X 2 + d1X + d0, and the output of each register is obtained (Table 2). From (Table 2), the output of each register is obtained as follows.

【0050】 R-7(8) = R-6(7) = R-5(6) = R-4(5) = R-3(4) = R-2(3) = R-1(2) = R-7(1) + R-6(1) + d6 = N-6 + N-5 + d6 R-6(8) = N-5 + N-4 + d5 R-5(8) = N-4 + N-3 + d4 R-4(8) = N-3 + N-2 + d3 R-3(8) = N-2 + N-1 + d2 R-2(8) = N-7 + N-6 + N-1 + d1 + d7 R-1(8) = N-7 + N-5 + d0 + d6 + d7 そして、各レジスタから入出力の間に ds7 = R-6(0) + R-7(0) + d7 ds6 = R-6(1) + R-7(1) + d6 ds5 = R-6(2) + R-7(2) + d5 ds4 = R-6(3) + R-7(3) + d4 ds3 = R-6(4) + R-7(4) + d3 ds2 = R-6(5) + R-7(5) + d2 ds1 = R-6(6) + R-7(6) + d1 ds0 = R-6(7) + R-7(7) + d0 なる関係をもつ論理回路ブロックを通り、スクランブル
されたデータds7 〜ds0がバイト形式で出力される。情
報データとして、次の1バイトデータを入力する場合に
は、上記の各R-7(8)〜R-1(8)をそのまま次の初期値N-7
〜N-1 として使用し、以下同様の演算を行えばよい。以
下、データがL バイトであればこれらの演算をL 回分繰
り返せばよい。
R-7 (8) = R-6 (7) = R-5 (6) = R-4 (5) = R-3 (4) = R-2 (3) = R-1 (2 ) = R-7 (1) + R-6 (1) + d6 = N-6 + N-5 + d6 R-6 (8) = N-5 + N-4 + d5 R-5 (8) = N-4 + N-3 + d4 R-4 (8) = N-3 + N-2 + d3 R-3 (8) = N-2 + N-1 + d2 R-2 (8) = N- 7 + N-6 + N-1 + d1 + d7 R-1 (8) = N-7 + N-5 + d0 + d6 + d7 And between each register and input / output ds7 = R-6 (0 ) + R-7 (0) + d7 ds6 = R-6 (1) + R-7 (1) + d6 ds5 = R-6 (2) + R-7 (2) + d5 ds4 = R-6 ( 3) + R-7 (3) + d4 ds3 = R-6 (4) + R-7 (4) + d3 ds2 = R-6 (5) + R-7 (5) + d2 ds1 = R-6 (6) + R-7 (6) + d1 ds0 = R-6 (7) + R-7 (7) + d0 The scrambled data ds7 to ds0 in byte format passes through the logic circuit block. Is output. When inputting the next 1-byte data as information data, the above-mentioned R-7 (8) to R-1 (8) are directly used as the next initial value N-7.
It can be used as ~ N-1 and the same operation can be performed thereafter. Hereinafter, if the data is L bytes, these operations may be repeated L times.

【0051】このような本実施の形態1によるスクラン
ブル方法,及びスクランブル装置によれば、従来のスク
ランブル方法,及びスクランブル装置により得られる8
回のシフト分のシリアル出力をそれぞれ演算する論理回
路ブロックブロックを設けるようにしたので、8ビット
を単位として入力データにスクランブルをかけることが
でき、スクランブルがかかった出力データとしてバイト
形式のものが得られるので、従来のもののようにバイナ
リ形式で得られるスクランブルデータに対しその都度シ
リアル−パラレル変換を行ってバイトデータに変換する
手間をなくすことができる。
According to the scramble method and the scramble apparatus according to the first embodiment, the scramble method and the scramble apparatus according to the related art can be used.
Since the logic circuit block block that calculates the serial output for each shift is provided, the input data can be scrambled in units of 8 bits, and the scrambled output data can be in byte format. Therefore, it is possible to eliminate the trouble of converting the scrambled data obtained in the binary format into the byte data by performing the serial-parallel conversion each time as in the conventional case.

【0052】また、入力側にシフトレジスタを設け、出
力側に論理回路を設けており、データの入出力に関して
は、同一のクロックで動作させることができるので、装
置を同期回路として簡単に構築できる効果がある。
Further, since the shift register is provided on the input side and the logic circuit is provided on the output side, the data input / output can be operated by the same clock, so that the device can be easily constructed as a synchronous circuit. effective.

【0053】なお、この実施の形態1ではバイト単位の
データに対しスクランブルを行うものを示したが、同様
の方法,装置により任意の複数ビットに対し一括してス
クランブルを行うことも可能である。
In the first embodiment, the scramble is performed on the data in byte units, but it is also possible to collectively scramble arbitrary plural bits by the same method and device.

【0054】実施の形態2.次に本発明の実施の形態2
について、図面を参照しながら説明する。図2は本発明
の実施の形態2におけるバイナリ形式でスクランブルさ
れたデータに対し、バイト形式でデスクランブルを行う
方法及び装置を示すものであり、(表3)は図2の動作
状態を示したもので、(表4)は(表3)の生成多項式
を特定した特別な場合の動作状態を示したものである。
図2において、21は初期値設定端子、22はクロック入力
端子、23はデータ入力端子、24はシリアルデータ出力端
子、25はレジスタ、26は係数器、27はmod2加算器、28は
論理回路ブロック、29はパラレル出力端子である。
Embodiment 2. Next, Embodiment 2 of the present invention
Will be described with reference to the drawings. FIG. 2 shows a method and apparatus for descrambling data scrambled in binary format in byte format according to Embodiment 2 of the present invention, and (Table 3) shows the operation state of FIG. (Table 4) shows an operating state in a special case in which the generator polynomial of (Table 3) is specified.
In FIG. 2, 21 is an initial value setting terminal, 22 is a clock input terminal, 23 is a data input terminal, 24 is a serial data output terminal, 25 is a register, 26 is a coefficient multiplier, 27 is a mod2 adder, and 28 is a logic circuit block. , 29 are parallel output terminals.

【0055】[0055]

【表3】 [Table 3]

【0056】[0056]

【表4】 [Table 4]

【0057】まず、記録媒体よりの再生時、あるいは伝
送通信における受信時のデスクランブル方法について説
明し、次に、バイナリデータ用のデスクランブル方法を
バイトデータ用のデスクランブル方法に変換するための
原理について説明する。説明に先だって、以下のように
各データを多項式化し定義する。 情報多項式:D(X) = dnXn + dn-1X n-1 +dn-2Xn-2 + ‥
‥+d2X2 + d1X + d0 生成多項式:G(X) = 1 + g-1X -1 + g-2X -2 +‥‥+ g-
m+2X-m+2 +g-m+1X-m+1 + g-mX -m スクランブルされたバイナリデータ入力に先だって、初
期値設定端子21で各レジスタ25は0あるいは1に初期値
が設定される。次に、データ入力端子23から情報データ
がバイナリデータのままシリアルで入力され、クロック
入力端子22のデータに同期したクロックで情報データの
ビット数と同数分シフトさせられる。この間、情報デー
タは出力端子29からスクランブルがとかれた状態でパラ
レルに取り出される。
First, a descrambling method at the time of reproduction from a recording medium or at the time of reception in transmission communication will be described, and then a principle for converting a descramble method for binary data into a descramble method for byte data. Will be described. Prior to explanation, each data is polynomialized and defined as follows. Information polynomial: D (X) = dnX n + dn-1X n-1 + dn-2X n-2 +
‥ + d2X 2 + d1X + d0 Generator polynomial: G (X) = 1 + g-1X -1 + g-2X -2 + ‥ + g-
m + 2X -m + 2 + g-m + 1X -m + 1 + g-mX -m Prior to scrambled binary data input, each register 25 is set to 0 or 1 by the initial value setting terminal 21. To be done. Next, the information data is serially input as binary data from the data input terminal 23, and is shifted by the same number as the number of bits of the information data by the clock synchronized with the data of the clock input terminal 22. During this time, the information data is taken out in parallel from the output terminal 29 in a scrambled state.

【0058】本実施の形態2では、情報データをバイト
単位で扱うために、まず、バイナリデータが8ビット分
入力された結果を求める。図2において、その入力端子
23に、情報多項式の上位ビットから8ビット分、即ち、
dn〜dn-7を順次入力し、これを8回シフトした結果を求
める。そのために、各シフトごとの各レジスタの出力を
(表3)のように、上位側よりR-m(i)〜R-1(i)とする。
また、各レジスタ25には、初期値設定端子21により、演
算開始前に0か1の初期値がプリセットできるものと
し、その初期値を上位側よりN-m 〜N-1 とする。また図
2におけるシリアル出力端子24からの出力をdo(i) とす
る。ここでi はシフトの回数を表している。(表3)は
各シフト毎の各レジスタの出力を示したものである。8
回シフトした結果は、(表3)の8回目の各レジスタの
出力に順次、各シフト回数の結果を代入することによっ
て求められる。そして、各レジスタ25から、入出力の間
に do7 = g-1R-1(0) + g-2R-2(0) + g-3R-3(0) + ‥‥+ g-
m+2R-m+2(0) + g-m+1R-m+1(0) + g-mR-m(0) + dn do6 = g-1R-1(1) + g-2R-2(1) + g-3R-3(1) + ‥‥+ g-
m+2R-m+2(1) + g-m+1R-m+1(1) + g-mR-m(1) + dn-1 do5 = g-1R-1(2) + g-2R-2(2) + g-3R-3(2) + ‥‥+ g-
m+2R-m+2(2) + g-m+1R-m+1(2) + g-mR-m(2) + dn-2 do4 = g-1R-1(3) + g-2R-2(3) + g-3R-3(3) + ‥‥+ g-
m+2R-m+2(3) + g-m+1R-m+1(3) + g-mR-m(3) + dn-3 do3 = g-1R-1(4) + g-2R-2(4) + g-3R-3(4) + ‥‥+ g-
m+2R-m+2(4) + g-m+1R-m+1(4) + g-mR-m(4) + dn-4 do2 = g-1R-1(5) + g-2R-2(5) + g-3R-3(5) + ‥‥+ g-
m+2R-m+2(5) + g-m+1R-m+1(5) + g-mR-m(5) + dn-5 do1 = g-1R-1(6) + g-2R-2(6) + g-3R-3(6) + ‥‥+ g-
m+2R-m+2(6) + g-m+1R-m+1(6) + g-mR-m(6) + dn-6 do0 = g-1R-1(7) + g-2R-2(7) + g-3R-3(7) + ‥‥+ g-
m+2R-m+2(7) + g-m+1R-m+1(7) + g-mR-m(7) + dn-7 なる関係を持つ論理回路ブロック28を通ってパラレル出
力端子29から8ビットずつバイト形式でデータが出力さ
れ、その出力されるデータはスクランブルがとかれてい
る。以後、情報データとして、次の1バイトのデータを
入力する場合には、上記の各R-m(8)〜R-1(8)をそのまま
その初めの初期値N-m 〜N-1 として用い、同様の演算を
行えばよい。以下、入力データがL バイトあればこれら
の演算をL回分繰り返せばよい。
In the second embodiment, in order to handle information data in byte units, first, the result of inputting 8 bits of binary data is obtained. In Figure 2, the input terminal
In 23, 8 bits from the upper bits of the information polynomial, that is,
Input dn to dn-7 in sequence and shift 8 times to obtain the result. Therefore, the output of each register for each shift is set to Rm (i) to R-1 (i) from the higher order side as shown in (Table 3).
Further, it is assumed that an initial value of 0 or 1 can be preset in each register 25 by the initial value setting terminal 21 and the initial value is set to Nm to N-1 from the upper side. The output from the serial output terminal 24 in FIG. 2 is do (i). Here, i represents the number of shifts. Table 3 shows the output of each register for each shift. 8
The result obtained by shifting the number of times is obtained by sequentially substituting the result of each number of shifts into the output of each register for the eighth time in (Table 3). And from each register 25, do7 = g-1R-1 (0) + g-2R-2 (0) + g-3R-3 (0) + ... + g-
m + 2R-m + 2 (0) + g-m + 1R-m + 1 (0) + g-mR-m (0) + dn do6 = g-1R-1 (1) + g-2R-2 (1) + g-3R-3 (1) + ‥‥ + g-
m + 2R-m + 2 (1) + g-m + 1R-m + 1 (1) + g-mR-m (1) + dn-1 do5 = g-1R-1 (2) + g-2R -2 (2) + g-3R-3 (2) + ‥‥ + g-
m + 2R-m + 2 (2) + g-m + 1R-m + 1 (2) + g-mR-m (2) + dn-2 do4 = g-1R-1 (3) + g-2R -2 (3) + g-3R-3 (3) + ‥‥ + g-
m + 2R-m + 2 (3) + g-m + 1R-m + 1 (3) + g-mR-m (3) + dn-3 do3 = g-1R-1 (4) + g-2R -2 (4) + g-3R-3 (4) + ‥‥ + g-
m + 2R-m + 2 (4) + g-m + 1R-m + 1 (4) + g-mR-m (4) + dn-4 do2 = g-1R-1 (5) + g-2R -2 (5) + g-3R-3 (5) + ‥‥‥ + g-
m + 2R-m + 2 (5) + g-m + 1R-m + 1 (5) + g-mR-m (5) + dn-5 do1 = g-1R-1 (6) + g-2R -2 (6) + g-3R-3 (6) + ‥‥‥ + g-
m + 2R-m + 2 (6) + g-m + 1R-m + 1 (6) + g-mR-m (6) + dn-6 do0 = g-1R-1 (7) + g-2R -2 (7) + g-3R-3 (7) + ‥‥ + g-
m + 2R-m + 2 (7) + g-m + 1R-m + 1 (7) + g-mR-m (7) + dn-7 Parallel output terminal through logic circuit block 28 Data is output in bytes from 29 bits in 8 bit units, and the output data is scrambled. After that, when inputting the next 1-byte data as information data, each of the above Rm (8) to R-1 (8) is used as it is as the initial value Nm to N-1, and the same as above. It suffices to perform a calculation. Hereafter, if the input data is L bytes, these operations may be repeated L times.

【0059】次に説明をより簡単かつ、具体的にするた
めに、生成多項式G(X)を G(X) = 1 + X-6 + X-7 情報多項式を1バイト、即ち、D(X) = d7X7 + d6X 6 +d
5X5 + d4X 4 +d3X3 + d2X 2 +d1X + d0 とし、各レジス
タの出力をもとめたのが(表4)となる。(表4)よ
り、各レジスタの出力は以下のように求められる。 R-7(8) = R-6(7) = R-5(6) = R-4(5) = R-3(4) = R-2(3) = R-1(2) = d6 R-6(8) = d5 R-5(8) = d4 R-4(8) = d3 R-3(8) = d2 R-2(8) = d1 R-1(8) = d0 そして、各レジスタから入出力の間に do7 = R-6(0) + R-7(0) + d7 do6 = R-6(1) + R-7(1) + d6 do5 = R-6(2) + R-7(2) + d5 do4 = R-6(3) + R-7(3) + d4 do3 = R-6(4) + R-7(4) + d3 do2 = R-6(5) + R-7(5) + d2 do1 = R-6(6) + R-7(6) + d1 do0 = R-6(7) + R-7(7) + d0 なる関係をもつ論理回路ブロック28を通り、デスクラン
ブルされたデータがバイト形式で出力される。情報デー
タとして、次の1バイトデータを入力する場合には、上
記の各R-7(8)〜R-1(8)をそのまま次の初期値N-7 〜N-1
として用い、同様の演算をすればよい。以下、データが
L バイトであればこれらの演算をL 回分繰り返せばよ
い。
In order to make the explanation simpler and more concrete, the generator polynomial G (X) is defined as G (X) = 1 + X- 6 + X- 7 information polynomial in 1 byte, that is, D (X ) = d7X 7 + d6X 6 + d
And 5X 5 + d4X 4 + d3X 3 + d2X 2 + d1X + d0, the was determined the output of each register is (Table 4). From (Table 4), the output of each register is obtained as follows. R-7 (8) = R-6 (7) = R-5 (6) = R-4 (5) = R-3 (4) = R-2 (3) = R-1 (2) = d6 R-6 (8) = d5 R-5 (8) = d4 R-4 (8) = d3 R-3 (8) = d2 R-2 (8) = d1 R-1 (8) = d0 and Between each register and input / output do7 = R-6 (0) + R-7 (0) + d7 do6 = R-6 (1) + R-7 (1) + d6 do5 = R-6 (2) + R-7 (2) + d5 do4 = R-6 (3) + R-7 (3) + d4 do3 = R-6 (4) + R-7 (4) + d3 do2 = R-6 (5 ) + R-7 (5) + d2 do1 = R-6 (6) + R-7 (6) + d1 do0 = R-6 (7) + R-7 (7) + d0 The descrambled data is output in byte format through block 28. When inputting the next 1-byte data as information data, the above-mentioned R-7 (8) to R-1 (8) are directly used as the next initial values N-7 to N-1.
And the same calculation may be performed. Below is the data
If it is L bytes, these operations may be repeated L times.

【0060】このような本実施の形態2によるデスクラ
ンブル方法,及びデスクランブル装置によれば、従来の
デスクランブル方法,及びデスクランブル装置により得
られる8回のシフト分のシリアル出力をそれぞれ演算す
る論理回路ブロックを設けるようにしたので、8ビット
を単位として入力データにデスクランブルをかけること
ができ、スクランブルがとかれた出力データとしてバイ
ト形式のものが得られるので、従来のもののようにバイ
ナリ形式で得られるデスクランブルデータに対しその都
度シリアル−パラレル変換を行ってバイトデータに変換
する必要をなくすことができる。
According to the descrambling method and the descrambling apparatus according to the second embodiment as described above, the logic for computing the serial output for eight shifts obtained by the conventional descrambling method and the descrambling apparatus, respectively. Since the circuit block is provided, the input data can be descrambled in units of 8 bits, and the scrambled output data can be obtained in the byte format. It is possible to eliminate the need to perform serial-parallel conversion on the obtained descrambled data each time and convert it to byte data.

【0061】また、入力側にシフトレジスタを設け、出
力側に論理回路を設けており、データの入出力に関して
は、同一のクロックで動作させることができるので、装
置を同期回路として簡単に構築できる効果がある。
Further, since the shift register is provided on the input side and the logic circuit is provided on the output side, the data input / output can be operated by the same clock, so that the device can be easily constructed as a synchronous circuit. effective.

【0062】なお、この実施の形態2ではバイト単位の
データに対しデスクランブルを行うものを示したが、同
様の方法,装置により任意の複数ビットに対し一括して
デスクランブルを行うことも可能である。
In the second embodiment, descrambling is performed on byte-unit data, but it is also possible to collectively descramble arbitrary plural bits by the same method and device. is there.

【0063】実施の形態3.次に実施の形態3について
説明する。実施の形態3はバイナリ形式でスクランブル
されたデータに対し、記録媒体よりの再生時、あるいは
伝送通信における受信時のデスクランブルを、バイト形
式で行う方法及び装置に関するものである。
Embodiment 3 Next, a third embodiment will be described. The third embodiment relates to a method and apparatus for descrambling data scrambled in binary format from a recording medium at the time of reproduction from a recording medium or at reception in transmission communication in byte format.

【0064】図3、図4、図5は本発明の実施の形態3
におけるバイナリ形式でスクランブルされたデータをバ
イト形式でデスクランブルする装置を示したものであ
る。図3において、31は初期値設定端子、32はデータ入
力端子、33はクロック入力端子、34は8ビットパラレル
ラッチ、35は係数器、36はmod2加算器、37はデータ出力
端子である。図4において、41は初期値設定端子、42は
データ入力端子、43はクロック入力端子、44は8ビット
パラレルラッチ、45は係数器、46はmod2加算器、47はデ
ータ出力端子である。図5において、51は初期値設定端
子、52はデータ入力端子、53はクロック入力端子、54は
8ビットパラレルラッチ、55は係数器、56はmod2加算
器、57はデータ出力端子である。図3、図4、図5はそ
れぞれこの順で直列に接続されこれら3つの図で一つの
構成となる。ここでバイト形式でスクランブルされたデ
ータをバイト形式でデスクランブルする原理について説
明する。
3, 4, and 5 show the third embodiment of the present invention.
2 shows an apparatus for descrambling the data scrambled in the binary format in Byte format. In FIG. 3, 31 is an initial value setting terminal, 32 is a data input terminal, 33 is a clock input terminal, 34 is an 8-bit parallel latch, 35 is a coefficient multiplier, 36 is a mod2 adder, and 37 is a data output terminal. In FIG. 4, 41 is an initial value setting terminal, 42 is a data input terminal, 43 is a clock input terminal, 44 is an 8-bit parallel latch, 45 is a coefficient multiplier, 46 is a mod2 adder, and 47 is a data output terminal. In FIG. 5, 51 is an initial value setting terminal, 52 is a data input terminal, 53 is a clock input terminal, 54 is an 8-bit parallel latch, 55 is a coefficient multiplier, 56 is a mod2 adder, and 57 is a data output terminal. 3, 4, and 5 are connected in series in this order, respectively, and these three figures form one configuration. Here, the principle of descrambling the data scrambled in the byte format in the byte format will be described.

【0065】本実施の形態3では、スクランブルされた
データをバイト単位で扱うために、8ビットごとにパラ
レルで入力を行う。スクランブルされたデータ入力に先
だって、初期値設定端子31でそれそれ8ビットずつでパ
ラレルに構築された各レジスタ34に0または1の初期値
を設定する。次に、データ入力端子32からスクランブル
された情報データがバイトデータのままパラレルデータ
で入力され、クロック入力端子33のデータに同期したク
ロックで、スクランブルされた情報データのバイト数と
同数分シフトさせられる。この間、デスクランブルされ
た情報データは出力端子からスクランブルのとかれた状
態で取り出される。スクランブルされたデータをDs、デ
スクランブルされたデータをDo、生成多項式G(X)を G(X) = 1 + g-1X -1 + g-2X -2 +‥‥+ g-m+2X-m+2 +g-
m+1X-m+1 + g-mX -m とすると、スクランブルされたデータと、デスクランブ
ルされたデータとの間には以下の関係が成り立つ。
In the third embodiment, in order to handle the scrambled data in byte units, parallel input is performed every 8 bits. Prior to the scrambled data input, the initial value setting terminal 31 sets an initial value of 0 or 1 to each register 34 constructed in parallel by 8 bits each. Next, the scrambled information data is input as parallel data as parallel data from the data input terminal 32, and is shifted by the same number as the number of bytes of the scrambled information data with the clock synchronized with the data of the clock input terminal 33. . During this time, the descrambled information data is taken out from the output terminal in a scrambled state. The scrambled data Ds, the descrambled data Do, the generator polynomial G a (X) G (X) = 1 + g-1X -1 + g-2X -2 + ‥‥ + g-m + 2X - m + 2 + g-
If m + 1X -m + 1 + g-mX -m , then the following relationship holds between the scrambled data and the descrambled data.

【0066】Do(i) = Ds(i+m) × G(X) ここで、i は、バイナリ形式でスクランブルされるデー
タの順番を示す。データの入力はDs(0) 〜Ds(7) 、Ds
(8) 〜Ds(15)、・・・・とバイト単位で行い、出力もDo
(0) 〜Do(7) 、Do(8) 〜Do(15)・・・・とバイト単位で
行う。初めに出力されるデータDo(0) 〜Do(7) はそれぞ
れ、 Do(0) = Ds(m) × G(X) = Ds(m) + g-1Ds(m-1) + g-2Ds(m-2) + ‥‥+ g-m+2Ds
(2) + g-m+1Ds(1) + g-mDs(0) Do(1) = Ds(m+1) × G(X) = Ds(m+1) + g-1Ds(m) + g-2Ds(m-1) + ‥‥+ g-m+2Ds
(3) + g-m+1Ds(2) + g-mDs(1) Do(2) = Ds(m+2) × G(X) = Ds(m+2) + g-1Ds(m+1) + g-2Ds(m) + ‥‥+ g-m+2Ds
(4) + g-m+1Ds(3) + g-mDs(2) Do(3) = Ds(m+3) × G(X) = Ds(m+3) + g-1Ds(m+2) + g-2Ds(m+1) + ‥‥+ g-m+2D
s(5) + g-m+1Ds(4) + g-mDs(3) Do(4) = Ds(m+4) × G(X) = Ds(m+4) + g-1Ds(m+3) + g-2Ds(m+2) + ‥‥+ g-m+2D
s(6) + g-m+1Ds(5) + g-mDs(4) Do(5) = Ds(m+5) × G(X) = Ds(m+5) + g-1Ds(m+4) + g-2Ds(m+3) + ‥‥+ g-m+2D
s(7) + g-m+1Ds(6) + g-mDs(5) Do(6) = Ds(m+6) × G(X) = Ds(m+6) + g-1Ds(m+5) + g-2Ds(m+4) + ‥‥+ g-m+2D
s(8) + g-m+1Ds(7) + g-mDs(6) Do(7) = Ds(m+7) × G(X) = Ds(m+7) + g-1Ds(m+6) + g-2Ds(m+5) + ‥‥+ g-m+2D
s(9) + g-m+1Ds(8) + g-mDs(7) となる。ここで、図5のdo0 とDo(0) 、do1 とDo(1) 、
do2 とDo(2) 、do3 とDo(3) 、do4 とDo(4) 、do5 とDo
(5) 、do6 とDo(6) 、do7 とDo(7) を対応させ、データ
の多項式表現から、出力端子と各レジスタの出力とで表
現された多項式表現へと変換を行う。
Do (i) = Ds (i + m) × G (X) where i represents the order of data scrambled in the binary format. Data input is Ds (0) ~ Ds (7), Ds
(8) ~ Ds (15), ... Performed in byte units and output is also Do.
(0) -Do (7), Do (8) -Do (15) ... The first output data Do (0) to Do (7) are Do (0) = Ds (m) × G (X) = Ds (m) + g-1Ds (m-1) + g-2Ds, respectively. (m-2) + ‥‥‥ + g-m + 2Ds
(2) + g-m + 1Ds (1) + g-mDs (0) Do (1) = Ds (m + 1) × G (X) = Ds (m + 1) + g-1Ds (m) + g-2Ds (m-1) + ... + g-m + 2Ds
(3) + g-m + 1Ds (2) + g-mDs (1) Do (2) = Ds (m + 2) × G (X) = Ds (m + 2) + g-1Ds (m + 1 ) + g-2Ds (m) + ... + g-m + 2Ds
(4) + g-m + 1Ds (3) + g-mDs (2) Do (3) = Ds (m + 3) × G (X) = Ds (m + 3) + g-1Ds (m + 2 ) + g-2Ds (m + 1) + ‥‥ + g-m + 2D
s (5) + g-m + 1Ds (4) + g-mDs (3) Do (4) = Ds (m + 4) × G (X) = Ds (m + 4) + g-1Ds (m + 3) + g-2Ds (m + 2) + ‥‥ + g-m + 2D
s (6) + g-m + 1Ds (5) + g-mDs (4) Do (5) = Ds (m + 5) × G (X) = Ds (m + 5) + g-1Ds (m + 4) + g-2Ds (m + 3) + ‥‥ + g-m + 2D
s (7) + g-m + 1Ds (6) + g-mDs (5) Do (6) = Ds (m + 6) × G (X) = Ds (m + 6) + g-1Ds (m + 5) + g-2Ds (m + 4) + ‥‥ + g-m + 2D
s (8) + g-m + 1Ds (7) + g-mDs (6) Do (7) = Ds (m + 7) × G (X) = Ds (m + 7) + g-1Ds (m + 6) + g-2Ds (m + 5) + ‥‥ + g-m + 2D
It becomes s (9) + g-m + 1Ds (8) + g-mDs (7). Here, do0 and Do (0), do1 and Do (1) in Fig. 5,
do2 and Do (2), do3 and Do (3), do4 and Do (4), do5 and Do
(5) Corresponds do6 and Do (6), do7 and Do (7), and converts the polynomial representation of the data into the polynomial representation represented by the output terminal and the output of each register.

【0067】 do0 = R0 + g-1R-1 + g-2R-2 +‥‥+ g-m+2R-m+2 + g-m+1R-m+1 + g-mR-m do1 = R1 + g-1R0 + g-2R-1 +‥‥+ g-m+2R-m+3 + g-m+1R-m+2 + g-mR-m+1 do2 = R2 + g-1R1 + g-2R0 +‥‥+ g-m+2R-m+4 + g-m+1R-m+3 + g-mR-m+2 do3 = R3 + g-1R2 + g-2R1 +‥‥+ g-m+2R-m+5 + g-m+1R-m+4 + g-mR-m+3 do4 = R4 + g-1R3 + g-2R2 +‥‥+ g-m+2R-m+6 + g-m+1R-m+5 + g-mR-m+4 do5 = R5 + g-1R4 + g-2R3 +‥‥+ g-m+2R-m+7 + g-m+1R-m+6 + g-mR-m+5 do6 = R6 + g-1R5 + g-2R4 +‥‥+ g-m+2R-m+8 + g-m+1R-m+7 + g-mR-m+6 do7 = R7 + g-1R6 + g-2R5 +‥‥+ g-m+2R-m+9 + g-m+1R-m+8 + g-mR-m+7 上記より図3、図4、図5の構成でバイナリ形式でスク
ランブルされたパラレルデータに対しバイト単位8ビッ
トパラレルでデスクランブルできることが示される。
Do0 = R0 + g-1R-1 + g-2R-2 + ... + g-m + 2R-m + 2 + g-m + 1R-m + 1 + g-mR-m do1 = R1 + g-1R0 + g-2R-1 + ... + g-m + 2R-m + 3 + g-m + 1R-m + 2 + g-mR-m + 1 do2 = R2 + g-1R1 + g -2R0 + ... + g-m + 2R-m + 4 + g-m + 1R-m + 3 + g-mR-m + 2 do3 = R3 + g-1R2 + g-2R1 + ... + g- m + 2R-m + 5 + g-m + 1R-m + 4 + g-mR-m + 3 do4 = R4 + g-1R3 + g-2R2 + ... + g-m + 2R-m + 6 + g-m + 1R-m + 5 + g-mR-m + 4 do5 = R5 + g-1R4 + g-2R3 + ‥ + g-m + 2R-m + 7 + g-m + 1R-m + 6 + g-mR-m + 5 do6 = R6 + g-1R5 + g-2R4 + ‥ + g-m + 2R-m + 8 + g-m + 1R-m + 7 + g-mR-m + 6 do7 = R7 + g-1R6 + g-2R5 + ... + g-m + 2R-m + 9 + g-m + 1R-m + 8 + g-mR-m + 7 5, it is shown that the parallel data scrambled in the binary format can be descrambled in 8-bit parallel units on a byte basis.

【0068】次に説明をより簡単かつ、具体的にするた
めに生成多項式G(X)を G(X) = 1 + X-6 + X-7 とする。このときのデスクランブルを行う構成を図6に
示す。図6において、61は初期値設定端子、62はデータ
入力端子、63はクロック入力端子、64は8ビットパラレ
ルラッチ、66はmod2加算器、67はデータ出力端子であ
る。各8ビットパラレルの出力端子のそれぞれにおける
データは以下のようになる。
Next, in order to make the description simpler and more concrete, the generator polynomial G (X) is set to G (X) = 1 + X- 6 + X- 7 . FIG. 6 shows a configuration for performing descrambling at this time. In FIG. 6, 61 is an initial value setting terminal, 62 is a data input terminal, 63 is a clock input terminal, 64 is an 8-bit parallel latch, 66 is a mod2 adder, and 67 is a data output terminal. The data at each of the 8-bit parallel output terminals is as follows.

【0069】Do(0) = Ds(7) × G(X) = Ds(7) + Ds(1) + Ds(0) = do0 Do(1) = Ds(8) × G(X) = Ds(8) + Ds(2) + Ds(1) = do1 Do(2) = Ds(9) × G(X) = Ds(9) + Ds(3) + Ds(2) = do2 Do(3) = Ds(10) × G(X) = Ds(10) + Ds(4) + Ds(3) = do3 Do(4) = Ds(11) × G(X) = Ds(11) + Ds(5) + Ds(4) = do4 Do(5) = Ds(12) × G(X) = Ds(12) + Ds(6) + Ds(5) = do5 Do(6) = Ds(13) × G(X) = Ds(13) + Ds(7) + Ds(6) = do6 Do(7) = Ds(14) × G(X) = Ds(14) + Ds(8) + Ds(7)
= do7 デスクランブルされるデータとして、次の1バイトデー
タを入力する場合には、8ビットパラレルのまま入力を
行い、同様の演算を行えばよい。以下、データがL バ
イトであればこれらの演算をL回分繰り返せばよい。
Do (0) = Ds (7) × G (X) = Ds (7) + Ds (1) + Ds (0) = do0 Do (1) = Ds (8) × G (X) = Ds (8) + Ds (2) + Ds (1) = do1 Do (2) = Ds (9) × G (X) = Ds (9) + Ds (3) + Ds (2) = do2 Do (3) = Ds (10) × G (X) = Ds (10) + Ds (4) + Ds (3) = do3 Do (4) = Ds (11) × G (X) = Ds (11) + Ds (5 ) + Ds (4) = do4 Do (5) = Ds (12) × G (X) = Ds (12) + Ds (6) + Ds (5) = do5 Do (6) = Ds (13) × G (X) = Ds (13) + Ds (7) + Ds (6) = do6 Do (7) = Ds (14) × G (X) = Ds (14) + Ds (8) + Ds (7)
= Do7 When the next 1-byte data is input as the descrambled data, 8-bit parallel data is input as it is, and the same calculation is performed. Hereinafter, if the data is L bytes, these operations may be repeated L times.

【0070】このような本実施の形態3によるデスクラ
ンブル方法,及びデスクランブル装置によれば、従来の
デスクランブル方法,及びデスクランブル装置により得
られる8回のシフト分のシリアル出力に相当するパラレ
ル出力をそれぞれ演算する排他的論理和回路(mod2加算
器)を設けるようにしたので、8ビットを単位として入
力データにデスクランブルをかけることができ、スクラ
ンブルがとかれた出力データとしてバイト形式のものが
得られるので、従来のもののようにバイナリ形式で得ら
れるデスクランブルデータに対しその都度シリアル−パ
ラレル変換を行ってバイトデータに変換する手間をなく
すことができる。
According to the descrambling method and the descrambling apparatus according to the third embodiment, the parallel output corresponding to the serial output for eight shifts obtained by the conventional descrambling method and the descrambling apparatus is provided. Since an exclusive OR circuit (mod2 adder) that calculates each is provided, it is possible to descramble the input data in units of 8 bits, and the scrambled output data can be of the byte format. Since it can be obtained, it is possible to eliminate the trouble of converting the descramble data obtained in the binary format into the byte data by performing the serial-parallel conversion each time.

【0071】また、パラレルのままデータをシフトさせ
る構造であるので、装置を同期回路として簡単に構築で
き、回路動作のクロックを単一にできる効果がある。
Further, since the structure is such that the data is shifted in parallel, there is an effect that the device can be easily constructed as a synchronous circuit and a single clock for circuit operation can be used.

【0072】なお、この実施の形態3ではバイト単位の
データに対しデスクランブルを行うものを示したが、同
様の方法,装置により任意の複数ビットに対し一括して
デスクランブルを行うことも可能である。
In the third embodiment, descrambling is performed on byte data, but it is also possible to collectively descramble arbitrary plural bits by the same method and device. is there.

【0073】実施の形態4.次に実施の形態4について
説明する。実施の形態4はバイナリ形式でスクランブル
を行うスクランブル装置で、スクランブルをかける情報
データを8ビットパラレルで入力し、8ビットパラレル
で出力するスクランブル装置に関するものである。図7
は本実施の形態4によるスクランブル装置の一例であ
り、説明をより簡単かつ具体的にするために、生成多項
式G(X)を G(X) = 1 + X-4 + X-9 とする。図7において、71は初期設定値端子、72はビッ
トクロック入力端子、73はシリアルシフトレジスタ、74
はデータ入力端子、75は排他的論理和回路ブロック、76
はバイトクロック入力端子、77は8ビットラッチ、78は
スクランブルデータ出力端子、79はパラレルシリアル変
換回路である。
Embodiment 4 Next, a fourth embodiment will be described. The fourth embodiment relates to a scrambler for scrambling in binary format, and relates to a scrambler for inputting information data to be scrambled in 8-bit parallel and outputting it in 8-bit parallel. Figure 7
Is an example of the scrambler according to the fourth embodiment, and the generator polynomial G (X) is set to G (X) = 1 + X- 4 + X- 9 in order to make the description simpler and more specific. In FIG. 7, 71 is an initial setting value terminal, 72 is a bit clock input terminal, 73 is a serial shift register, and 74
Is a data input terminal, 75 is an exclusive OR circuit block, 76
Is a byte clock input terminal, 77 is an 8-bit latch, 78 is a scrambled data output terminal, and 79 is a parallel-serial conversion circuit.

【0074】はじめに、初期値設定端子71よりシリアル
シフトレジスタ73に初期値が設定される。次に、データ
入力端子74よりスクランブルされる情報データが8ビッ
トずつパラレルに入力される。8ビット入力されるごと
に、シリアルシフトレジスタ73へ入力するデータはパラ
レルシリアル変換回路79によりシリアルデータに変換さ
れ、シリアルシフトレジスタ73はこの変換されたデータ
を入力しながらこれを8ビット分シフトする。上述の生
成多項式より、シリアルシフトレジスタ73は9段の構成
となる。8ビットラッチ77のそれぞれのビットds0 〜ds
7 とシリアルシフトレジスタ73の各レジスタの値とデー
タdn〜dn-7との間の関係式は、 ds7 = R-4(0) + R-9(0) + dn ds6 = R-4(1) + R-9(1) + dn-1 ds5 = R-4(2) + R-9(2) + dn-2 ds4 = R-4(3) + R-9(3) + dn-3 ds3 = R-4(4) + R-9(4) + dn-4 ds2 = R-4(5) + R-9(5) + dn-5 ds1 = R-4(6) + R-9(6) + dn-6 ds0 = R-4(7) + R-9(7) + dn-7 となる。なおここでR-k(i)のi はデータのシフトの回数
を示す。スクランブルがかけられたデータは、8ビット
ラッチ77に格納される。出力タイミングと同期したバイ
トクロックがクロック入力端子76より入力され、このク
ロックのタイミングでデータは8ビットラッチ77からス
クランブルデータ出力端子78に出力される。上記のよう
にして、バイナリ形式でスクランブルされたデータを、
バイト形式8ビットパラレルで情報データを入力し、バ
イト形式8ビットパラレルでスクランブルされたデータ
として出力することができる装置が実現できる。
First, an initial value is set in the serial shift register 73 from the initial value setting terminal 71. Next, the scrambled information data is input in parallel from the data input terminal 74 by 8 bits. Every time 8 bits are input, the data input to the serial shift register 73 is converted into serial data by the parallel / serial conversion circuit 79, and the serial shift register 73 shifts this by 8 bits while inputting the converted data. . From the above-mentioned generator polynomial, the serial shift register 73 has a nine-stage configuration. Each bit ds0 to ds of the 8-bit latch 77
7 and the value of each register of the serial shift register 73 and the data dn to dn-7 are: ds7 = R-4 (0) + R-9 (0) + dn ds6 = R-4 (1 ) + R-9 (1) + dn-1 ds5 = R-4 (2) + R-9 (2) + dn-2 ds4 = R-4 (3) + R-9 (3) + dn-3 ds3 = R-4 (4) + R-9 (4) + dn-4 ds2 = R-4 (5) + R-9 (5) + dn-5 ds1 = R-4 (6) + R-9 (6) + dn-6 ds0 = R-4 (7) + R-9 (7) + dn-7. Here, i in Rk (i) indicates the number of data shifts. The scrambled data is stored in the 8-bit latch 77. A byte clock synchronized with the output timing is input from the clock input terminal 76, and data is output from the 8-bit latch 77 to the scrambled data output terminal 78 at the timing of this clock. As above, the data scrambled in binary format is
A device capable of inputting information data in byte format 8-bit parallel and outputting as scrambled data in byte format 8-bit parallel can be realized.

【0075】このような本実施の形態4によるスクラン
ブル方法,及びスクランブル装置によれば、従来のスク
ランブル方法,及びスクランブル装置により得られる8
回のシフト分のシリアル出力に相当する出力をそれぞれ
演算する排他的論理和回路(mod2 加算器) を設けるよう
にしたので、8ビットを単位として入力データにスクラ
ンブルをかけることができ、スクランブルがかけられた
出力データとしてバイト形式のものが得られるので、従
来のもののようにバイナリ形式で得られるスクランブル
データに対しその都度シリアル−パラレル変換を行って
バイトデータに変換する手間をなくすことができる。
According to the scramble method and the scramble apparatus according to the fourth embodiment, the scramble method and the scramble apparatus according to the related art 8 can be obtained.
Since an exclusive OR circuit (mod2 adder) that calculates the output corresponding to the serial output for each shift is provided, the input data can be scrambled in units of 8 bits, and scrambled. Since the byte format is obtained as the output data thus obtained, it is possible to eliminate the trouble of converting the scramble data obtained in the binary format into the byte data by performing serial-parallel conversion each time as in the conventional output data.

【0076】また、入力側にシフトレジスタを設け、出
力側に論理回路を設けており、データの入出力に関して
は、装置を同期回路として簡単に構築でき、回路動作の
クロックを単一にできる効果がある。
Further, a shift register is provided on the input side and a logic circuit is provided on the output side. With respect to data input / output, the device can be easily constructed as a synchronous circuit, and a single clock for circuit operation can be obtained. There is.

【0077】なお、この実施の形態4ではバイト単位の
データに対しスクランブルを行うものを示したが、同様
の方法,装置により任意の複数ビットに対し一括してス
クランブルを行うことも可能である。
In the fourth embodiment, the scrambling is performed on the data in byte units, but it is also possible to collectively scramble arbitrary plural bits by the same method and device.

【0078】実施の形態5.次に実施の形態5について
説明する。実施の形態5はバイナリ形式でスクランブル
がかけられた情報データを8ビットパラレルで入力し、
これにデスクランブルを施し、8ビットパラレルで情報
データを出力するデスクランブル装置に関するものであ
る。図8は本実施の形態5によるデスクランブル装置の
一例であり、説明をより簡単かつ具体的にするために、
生成多項式G(X)を G(X) = 1 + X -4 + X-9 とする。図8において、81は初期値設定端子、82はクロ
ック入力端子、83はスクランブルデータ入力端子、84は
8ビットパラレルシフトレジスタ、85は排他的論理和回
路ブロック、86はデスクランブルデータ出力端子であ
る。
Embodiment 5 FIG. Next, a fifth embodiment will be described. The fifth embodiment inputs information data scrambled in binary format in 8-bit parallel,
The present invention relates to a descrambling device that descrambles this and outputs information data in 8-bit parallel. FIG. 8 is an example of a descrambling device according to the fifth embodiment, and in order to make the description simpler and more concrete,
Let the generator polynomial G (X) be G (X) = 1 + X -4 + X -9 . In FIG. 8, 81 is an initial value setting terminal, 82 is a clock input terminal, 83 is a scramble data input terminal, 84 is an 8-bit parallel shift register, 85 is an exclusive OR circuit block, and 86 is a descramble data output terminal. .

【0079】はじめに、初期値設定端子81より8ビット
パラレルシフトレジスタ84に初期値が入力される。次
に、スクランブルデータ入力端子83よりデスクランブル
されるデータが8ビットずつパラレルに入力される。入
力された情報データは、8ビットパラレルシフトレジス
タ84に入力される。そして、クロック入力端子82から入
力されるクロックと同期してシフトされ、排他論理和回
路ブロック85をとおってデスクランブルデータ出力端子
86よりスクランブルがとかれたデータがパラレルに出力
される。上述の生成多項式より、8ビットパラレルシフ
トレジスタ84は3段の構成となる。ここで図8に示すよ
うに、デスクランブルデータ出力端子86のそれぞれのビ
ットと8ビットパラレルシフトレジスタ84の各レジスタ
との間の関係式は do0 = Ds(9) + Ds(5) + Ds(0) do1 = Ds(10) + Ds(6) + Ds(1) do2 = Ds(11) + Ds(7) + Ds(2) do3 = Ds(12) + Ds(8) + Ds(3) do4 = Ds(13) + Ds(9) + Ds(4) do5 = Ds(14) + Ds(10) + Ds(5) do6 = Ds(15) + Ds(11) + Ds(6) do7 = Ds(16) + Ds(12) + Ds(7) となる。上記のようにして、バイナリ形式でスクランブ
ルされたデータを、バイト形式8ビットパラレルで入力
し、これに対しバイト形式8ビットパラレルでデスクラ
ンブルを行ない、スクランブルがとかれたデータを出力
することができる装置を実現することができる。
First, an initial value is input from the initial value setting terminal 81 to the 8-bit parallel shift register 84. Next, the descrambled data is input in parallel from the scrambled data input terminal 83 in units of 8 bits. The input information data is input to the 8-bit parallel shift register 84. Then, the clock is shifted in synchronization with the clock input from the clock input terminal 82, and the descramble data output terminal is passed through the exclusive OR circuit block 85.
The scrambled data from 86 is output in parallel. From the above-mentioned generator polynomial, the 8-bit parallel shift register 84 has a three-stage configuration. Here, as shown in FIG. 8, the relational expression between each bit of the descramble data output terminal 86 and each register of the 8-bit parallel shift register 84 is do0 = Ds (9) + Ds (5) + Ds ( 0) do1 = Ds (10) + Ds (6) + Ds (1) do2 = Ds (11) + Ds (7) + Ds (2) do3 = Ds (12) + Ds (8) + Ds (3) do4 = Ds (13) + Ds (9) + Ds (4) do5 = Ds (14) + Ds (10) + Ds (5) do6 = Ds (15) + Ds (11) + Ds (6) do7 = Ds (16) + Ds (12) + Ds (7). As described above, the data scrambled in the binary format can be input in the byte format 8-bit parallel, and can be descrambled in the byte format 8-bit parallel to output the scrambled data. The device can be realized.

【0080】このような本実施の形態5によるデスクラ
ンブル方法,及びデスクランブル装置によれば、従来の
デスクランブル方法,及びデスクランブル装置により得
られる8回のシフト分のシリアル出力に相当する出力を
それぞれ演算する排他的論理和回路ブロックを設けるよ
うにしたので、8ビットを単位として入力データにデス
クランブルをかけることができ、デスクランブルがかけ
られた出力データとしてバイト形式のものが得られるの
で、従来のもののようにバイナリ形式で得られるスクラ
ンブルデータに対しその都度シリアル−パラレル変換を
行ってバイトデータに変換する手間をなくすことができ
る。
According to the descrambling method and the descrambling apparatus according to the fifth embodiment as described above, the output corresponding to the serial output for eight shifts obtained by the conventional descrambling method and the descrambling apparatus is generated. Since the exclusive OR circuit block for each operation is provided, the input data can be descrambled in units of 8 bits, and the descrambled output data can be obtained in the byte format. It is possible to eliminate the trouble of converting the scrambled data obtained in the binary format into the byte data by performing the serial-parallel conversion each time like the conventional one.

【0081】また、パラレルのままデータをシフトさせ
る構造であるので、装置を同期回路として簡単に構築で
き、回路動作のクロックを単一にできるとともに、デー
タをシリアル形式でシフトしていないため、レジスタの
数が少なくて済み、排他的論理和回路の個数も実施の形
態2では論理式の種類によっては多いが、本実施の形態
5では、少なくて済み、回路規模が極小で済む効果があ
る。
Further, since the structure is such that the data is shifted in parallel, the device can be easily constructed as a synchronous circuit, a single clock for the circuit operation can be made, and the data is not shifted in the serial format. The number of exclusive OR circuits is large, and the number of exclusive OR circuits is large in the second embodiment depending on the type of the logical expression, but in the fifth embodiment, it is small and the circuit scale is extremely small.

【0082】なお、この実施の形態5ではバイト単位の
データに対しデスクランブルを行うものを示したが、同
様の方法,装置により任意の複数ビットに対し一括して
デスクランブルを行うことも可能である。
In the fifth embodiment, descrambling is performed on byte-unit data, but it is also possible to collectively descramble arbitrary plural bits by the same method and device. is there.

【0083】実施の形態6.次に実施の形態6について
説明する。実施の形態6はバイナリ形式でスクランブル
された情報データをバイナリ形式シリアルで入力し、デ
スクランブルを施し、8ビットパラレルで情報データを
出力するデスクランブル装置に関するものである。図9
は本実施の形態6によるデスクランブル装置の一例であ
り、説明をより簡単かつ具体的にするために、生成多項
式G(X)を G(X) = 1 + X-6 + X-7 とする。図9において、91は初期値設定端子、92はビッ
トクロック入力端子、93はシリアルシフトレジスタ、94
はデータ入力端子、95は排他的論理和回路ブロック、96
はバイトクロック入力端子、97は8ビットラッチ、98は
デスクランブルデータ出力端子、S1はスイッチであ
る。
Embodiment 6 FIG. Next, a sixth embodiment will be described. The sixth embodiment relates to a descrambling device for inputting information data scrambled in binary format in binary format serial, descrambled, and outputting information data in 8-bit parallel. FIG.
Is an example of the descrambling apparatus according to the sixth embodiment, and the generator polynomial G (X) is set to G (X) = 1 + X- 6 + X- 7 in order to make the description simpler and more specific. . In FIG. 9, 91 is an initial value setting terminal, 92 is a bit clock input terminal, 93 is a serial shift register, and 94 is
Is a data input terminal, 95 is an exclusive OR circuit block, 96
Is a byte clock input terminal, 97 is an 8-bit latch, 98 is a descramble data output terminal, and S1 is a switch.

【0084】はじめに、スイッチS1を初期値設定端子
91側に接続することにより、初期値設定端子91より初期
値がシリアルシフトレジスタ93に入力される。次に、ス
クランブルデータ入力端子94よりデスクランブルされる
データが、ビットクロック入力端子92から入力されるビ
ットクロックと同期して, バイナリ形式シリアルで入力
される。
First, the switch S1 is set to the initial value setting terminal.
By connecting to the 91 side, the initial value is input to the serial shift register 93 from the initial value setting terminal 91. Next, the data descrambled from the scrambled data input terminal 94 is input in binary format serially in synchronization with the bit clock input from the bit clock input terminal 92.

【0085】データが入力されるごとに、シリアルシフ
トレジスタ93は、シフトされる。上述の生成多項式より
シリアルシフトレジスタ93は7 段の構成となる。8 ビッ
トラッチ97のそれぞれのビットdo0 〜do7 と、シリアル
シフトレジスタ93の各レジスタの値と、入力されるデー
タdn〜dn-7との間の関係式は do7 = R-6(0) + R-7(0) + dn do6 = R-6(1) + R-7(1) + dn-1 do5 = R-6(2) + R-7(2) + dn-2 do4 = R-6(3) + R-7(3) + dn-3 do3 = R-6(4) + R-7(4) + dn-4 do2 = R-6(5) + R-7(5) + dn-5 do1 = R-6(6) + R-7(6) + dn-6 do0 = R-6(7) + R-7(7) + dn-7 となる。スクランブルがとかれたデータは、8ビットラ
ッチ97に格納される。出力タイミングと同期したバイト
クロックがクロック入力端子96より入力され、このクロ
ックのタイミングでデータはスクランブルデータ出力端
子98に出力される。
Each time data is input, the serial shift register 93 is shifted. From the above-mentioned generator polynomial, the serial shift register 93 has a seven-stage configuration. The relational expression between each bit do0 to do7 of the 8-bit latch 97, the value of each register of the serial shift register 93, and the input data dn to dn-7 is do7 = R-6 (0) + R -7 (0) + dn do6 = R-6 (1) + R-7 (1) + dn-1 do5 = R-6 (2) + R-7 (2) + dn-2 do4 = R-6 (3) + R-7 (3) + dn-3 do3 = R-6 (4) + R-7 (4) + dn-4 do2 = R-6 (5) + R-7 (5) + dn -5 do1 = R-6 (6) + R-7 (6) + dn-6 do0 = R-6 (7) + R-7 (7) + dn-7. The scrambled data is stored in the 8-bit latch 97. A byte clock synchronized with the output timing is input from the clock input terminal 96, and the data is output to the scrambled data output terminal 98 at the timing of this clock.

【0086】次に、スイッチS1を排他的論理和回路ブ
ロック95の側に接続することにより、これらのdo7 〜do
0 を次のシリアルシフトレジスタ93の各レジスタの初期
値として入力し、以下、上述のような動作を行うことに
より、次にスクランブルデータ入力端子94より入力され
るデータがデスクランブルされる。
Next, by connecting the switch S1 to the exclusive OR circuit block 95 side, these do7 to do
By inputting 0 as the initial value of each register of the next serial shift register 93, and by performing the above operation, the data input next from the scramble data input terminal 94 is descrambled.

【0087】上記のようにして、バイナリ形式でスクラ
ンブルされたデータをバイナリ形式シリアルで入力し、
バイト形式8ビットパラレルでデスクランブルされたデ
ータを出力することができる装置が実現できる。
As described above, the data scrambled in the binary format is input in the binary format serial,
A device capable of outputting descrambled data in byte format 8-bit parallel can be realized.

【0088】このような本実施の形態6によるスクラン
ブル方法,及びスクランブル装置によれば、従来のデス
クランブル方法,及びデスクランブル装置により得られ
る8回のシフト分のシリアル出力をそれぞれ演算する排
他的論理和回路ブロックを設けるようにしたので、シリ
アルで入力される入力データに8ビットを単位としてデ
スクランブルをかけることができ、スクランブルがとか
れた出力データとしてバイト形式のものが得られるの
で、従来のもののようにバイナリ形式で得られるデスク
ランブルデータに対しその都度シリアル−パラレル変換
を行ってバイトデータに変換する手間をなくすことがで
き、シリアル,パラレル変換回路を用いることなしに、
シリアルデータを入力すると、パラレルでデスクランブ
ルされたデータが得られる効果がある。
According to the scramble method and the scramble device according to the sixth embodiment, the exclusive logic for calculating the serial output for eight shifts obtained by the conventional descramble method and the descramble device, respectively. Since the sum circuit block is provided, it is possible to descramble input data input serially in units of 8 bits and obtain scrambled output data in byte format. It is possible to eliminate the trouble of converting the descramble data obtained in the binary format into byte data by performing serial-parallel conversion each time, without using a serial-parallel conversion circuit.
Inputting serial data has the effect of obtaining data descrambled in parallel.

【0089】また、入力側にシフトレジスタを設け、出
力側に論理回路を設けており、データの入出力に関して
は、同一のクロックで動作させることができるので、装
置を同期回路として簡単に構築できる効果がある。
Further, since the shift register is provided on the input side and the logic circuit is provided on the output side, the data input / output can be operated by the same clock, so that the device can be easily constructed as a synchronous circuit. effective.

【0090】なお、この実施の形態6ではバイト単位の
データに対しデスクランブルを行うものを示したが、同
様の方法,装置により任意の複数ビットに対し一括して
デスクランブルを行うことも可能である。
In the sixth embodiment, descrambling is performed on byte data, but it is also possible to collectively descramble arbitrary plural bits by the same method and device. is there.

【0091】実施の形態7.次に実施の形態7について
説明する。実施の形態7はバイナリ形式でスクランブル
を行うスクランブル装置で、スクランブルをかける情報
データをバイナリ形式シリアルで入力し、出力に関して
は8ビットパラレルで行うスクランブル装置に関するも
のである。図10は本実施の形態7によるスクランブル
装置の一例であり、説明をより簡単かつ具体的にするた
めに、生成多項式G(X)を G(X) = 1 + X-4 + X-9 とする。図10において、101 は初期値設定端子、102
はビットクロック入力端子、103 はシリアルシフトレジ
スタ、104 はデータ入力端子、105 は排他的論理和回路
ブロック、106 はバイトクロック入力端子、107 は8ビ
ットラッチ、108はスクランブルデータ出力端子、S1
はスイッチである。
Embodiment 7 FIG. Next, a seventh embodiment will be described. The seventh embodiment relates to a scrambler for scrambling in binary format, and relates to a scrambler for inputting information data to be scrambled in binary format serial and performing output in 8-bit parallel. FIG. 10 is an example of the scrambler according to the seventh embodiment, and in order to make the explanation easier and more concrete, the generator polynomial G (X) is set to G (X) = 1 + X- 4 + X- 9 . To do. In FIG. 10, 101 is an initial value setting terminal, 102
Is a bit clock input terminal, 103 is a serial shift register, 104 is a data input terminal, 105 is an exclusive OR circuit block, 106 is a byte clock input terminal, 107 is an 8-bit latch, 108 is a scrambled data output terminal, S1
Is a switch.

【0092】はじめに、スイッチS1を初期値設定端子
101 の側に接続することにより、初期値設定端子101 よ
り初期値がシリアルシフトレジスタ103 に入力される。
次に、データ入力端子103 よりスクランブルされるデー
タが、ビットクロック入力端子102 から8ビットラッチ
107 に入力されるビットクロックと同期して, バイナリ
形式シリアルで入力される。データが入力されるごと
に、シリアルシフトレジスタ103 はシフトされる。上述
の生成多項式より、シリアルシフトレジスタ103は9 段
の構成となる。ここで、8ビットラッチ107 のそれぞれ
のビットds0 〜ds7 と、シリアルシフトレジスタ104 の
各レジスタと、入力されるデータdn〜dn-7との間の関係
式は ds7 = R-4(0) + R-9(0) + dn ds6 = R-4(1) + R-9(1) + dn-1 ds5 = R-4(2) + R-9(2) + dn-2 ds4 = R-4(3) + R-9(3) + dn-3 ds3 = R-4(4) + R-9(4) + dn-4 ds2 = R-4(5) + R-9(5) + dn-5 ds1 = R-4(6) + R-9(6) + dn-6 ds0 = R-4(7) + R-9(7) + dn-7 となる。スクランブルがかけられたデータは、8ビット
ラッチ107 に格納される。出力タイミングと同期したバ
イトクロックがクロック入力端子106 より入力され、こ
のクロックのタイミングでデータはスクランブルデータ
出力端子108 にパラレルに出力される。
First, set the switch S1 to the initial value setting terminal.
By connecting to the 101 side, the initial value is input to the serial shift register 103 from the initial value setting terminal 101.
Next, the data scrambled from the data input terminal 103 is transferred from the bit clock input terminal 102 to the 8-bit latch.
It is input in binary format serial in synchronization with the bit clock input to 107. The serial shift register 103 is shifted each time data is input. From the above-mentioned generator polynomial, the serial shift register 103 has a nine-stage configuration. Here, the relational expression between each bit ds0 to ds7 of the 8-bit latch 107, each register of the serial shift register 104, and the input data dn to dn-7 is ds7 = R-4 (0) + R-9 (0) + dn ds6 = R-4 (1) + R-9 (1) + dn-1 ds5 = R-4 (2) + R-9 (2) + dn-2 ds4 = R- 4 (3) + R-9 (3) + dn-3 ds3 = R-4 (4) + R-9 (4) + dn-4 ds2 = R-4 (5) + R-9 (5) + dn-5 ds1 = R-4 (6) + R-9 (6) + dn-6 ds0 = R-4 (7) + R-9 (7) + dn-7. The scrambled data is stored in the 8-bit latch 107. A byte clock synchronized with the output timing is input from the clock input terminal 106, and data is output in parallel to the scrambled data output terminal 108 at the timing of this clock.

【0093】次に、スイッチS1を排他的論理和回路ブ
ロック105 の側に接続することにより、これらのds7 〜
ds0 を次のシリアルシフトレジスタ103 の各レジスタの
初期値として入力し、以下、上述のような動作を行うこ
とにより、次にスクランブルデータ入力端子94より入力
されるデータがデスクランブルされる。
Next, by connecting the switch S1 to the exclusive OR circuit block 105 side, these ds7 ...
By inputting ds0 as an initial value of each register of the next serial shift register 103 and then performing the above-described operation, the data input next from the scramble data input terminal 94 is descrambled.

【0094】上記のようにして、バイナリ形式のスクラ
ンブルを、バイナリ形式シリアルで情報データを入力
し、バイト形式8ビットパラレルでスクランブルされた
データを出力することができる装置が実現できる。
As described above, it is possible to realize an apparatus capable of inputting information data in binary format scrambling in binary format serial and outputting scrambled data in byte format 8-bit parallel.

【0095】このような本実施の形態7によるスクラン
ブル方法,及びスクランブル装置によれば、従来のスク
ランブル方法,及びスクランブル装置により得られる8
回のシフト分のシリアル出力をそれぞれ演算する排他的
論理和回路ブロックを設けるようにしたので、8ビット
を単位として入力データにスクランブルをかけることが
でき、スクランブルがかかった出力データとしてバイト
形式のものが得られるので、従来のもののようにバイナ
リ形式で得られるスクランブルデータに対しその都度シ
リアル−パラレル変換を行ってバイトデータに変換する
手間をなくすことができ、シリアル,パラレル変換回路
を設けることなくシリアルデータを入力すると、パラレ
ルでスクランブルされたデータが得られる。
According to the scramble method and the scramble apparatus according to the seventh embodiment as described above, the scramble method and the scramble apparatus according to the related art 8 can be obtained.
Since the exclusive OR circuit block that calculates the serial output for each shift is provided, the input data can be scrambled in units of 8 bits, and the scrambled output data is in byte format. Therefore, it is possible to eliminate the trouble of converting the scrambled data obtained in the binary format into byte data each time by converting the scrambled data obtained in the binary format, unlike the conventional one. When data is input, parallel scrambled data is obtained.

【0096】また、入力側にシフトレジスタを設け、出
力側に論理回路を設けており、データの入出力に関して
は、同一のクロックで動作させることができるので、装
置を同期回路として簡単に構築できる効果がある。
Further, since the shift register is provided on the input side and the logic circuit is provided on the output side, the data input / output can be operated by the same clock, so that the device can be easily constructed as a synchronous circuit. effective.

【0097】なお、この実施の形態7ではバイト単位の
データに対しスクランブルを行うものを示したが、同様
の方法,装置により任意の複数ビットに対し一括してス
クランブルを行うことも可能である。
In the seventh embodiment, the scramble is performed on the data in byte units, but it is also possible to collectively scramble arbitrary plural bits by the same method and device.

【0098】実施の形態8.次に実施の形態8について
説明する。実施の形態8はバイナリ形式でスクランブル
された情報データを8ビットパラレルで入力し、デスク
ランブルを施し、バイナリ形式シリアルで情報データを
出力するデスクランブル装置に関するものである。図1
1は本実施の形態8によるデスクランブル装置の一例で
あり、説明をより簡単かつ具体的にするために、生成多
項式G(X)を G(X) = 1 + X-4 + X-9 とする。図11において、111 は初期値設定端子、112
はバイトクロック入力端子、113 はスクランブルデータ
入力端子、114 は8ビットパラレルシフトレジスタ、11
5 は排他的論理和回路ブロック、116 はデスクランブル
データ出力端子、117 はパラレルシリアル変換レジス
タ、118 はビットクロック入力端子である。
Eighth Embodiment Next, an eighth embodiment will be described. The eighth embodiment relates to a descrambler for inputting 8-bit parallel scrambled information data, performing descrambling, and outputting the information data in binary format serial. FIG.
1 is an example of the descrambling device according to the eighth embodiment, and in order to make the description simpler and more specific, the generator polynomial G (X) is set to G (X) = 1 + X- 4 + X- 9 . To do. In FIG. 11, 111 is an initial value setting terminal, 112
Is a byte clock input terminal, 113 is a scrambled data input terminal, 114 is an 8-bit parallel shift register, 11
Reference numeral 5 is an exclusive OR circuit block, 116 is a descramble data output terminal, 117 is a parallel-serial conversion register, and 118 is a bit clock input terminal.

【0099】はじめに、初期値設定端子111 より初期値
が8ビットパラレルシフトレジスタ114 に入力される。
次に、スクランブルデータ入力端子113 よりデスクラン
ブルされるデータが8ビットずつパラレルに入力され
る。入力された情報データは、8ビットシリアルシフト
レジスタ114 に入力される。そして、クロック入力端子
112 から入力されるバイトクロックと同期してシフトさ
れ、排他的論理和回路ブロック115 をとおってパラレル
シリアル変換レジスタ117 に格納される。そして、ビッ
トクロック入力端子118 から入力されるビットクロック
と同期して、デスクランブルデータ出力端子116 よりス
クランブルがとかれたデータがバイナリ形式シリアルで
出力される。上述の生成多項式より、8ビットシリアル
シフトレジスタ114 は3 段の構成となる。ここで、パラ
レルシリアル変換レジスタ117 のそれぞれのビットと、
8ビットパラレルシフトレジスタ114 の各レジスタとの
間の関係式は、 do0 = Ds(9) + Ds(5) + Ds(0) do1 = Ds(10) + Ds(6) + Ds(1) do2 = Ds(11) + Ds(7) + Ds(2) do3 = Ds(12) + Ds(8) + Ds(3) do4 = Ds(13) + Ds(9) + Ds(4) do5 = Ds(14) + Ds(10) + Ds(5) do6 = Ds(15) + Ds(11) + Ds(6) do7 = Ds(16) + Ds(12) + Ds(7) となる。上記のようにして、バイナリ形式でスクランブ
ルされたデータを、バイト形式8ビットパラレルで入力
し、バイナリ形式シリアルでスクランブルがとかれたデ
ータを出力することができる装置を実現することができ
る。
First, the initial value is input to the 8-bit parallel shift register 114 from the initial value setting terminal 111.
Next, the descrambled data is input in parallel from the scrambled data input terminal 113 in units of 8 bits. The input information data is input to the 8-bit serial shift register 114. And the clock input terminal
The data is shifted in synchronization with the byte clock input from 112 and is stored in the parallel-serial conversion register 117 through the exclusive OR circuit block 115. Then, in synchronization with the bit clock input from the bit clock input terminal 118, the descrambled data output terminal 116 outputs the scrambled data in binary format serial. From the above-mentioned generator polynomial, the 8-bit serial shift register 114 has a three-stage configuration. Here, each bit of the parallel-serial conversion register 117,
The relational expression between each register of the 8-bit parallel shift register 114 is do0 = Ds (9) + Ds (5) + Ds (0) do1 = Ds (10) + Ds (6) + Ds (1) do2 = Ds (11) + Ds (7) + Ds (2) do3 = Ds (12) + Ds (8) + Ds (3) do4 = Ds (13) + Ds (9) + Ds (4) do5 = Ds (14) + Ds (10) + Ds (5) do6 = Ds (15) + Ds (11) + Ds (6) do7 = Ds (16) + Ds (12) + Ds (7). As described above, it is possible to realize an apparatus capable of inputting data scrambled in binary format in byte format 8-bit parallel and outputting scrambled data in binary format serial.

【0100】このような本実施の形態8によるデスクラ
ンブル方法,及びデスクランブル装置によれば、従来の
デスクランブル方法,及びデスクランブル装置により得
られる8回のシフト分のシリアル出力をそれぞれ演算す
る排他的論理和回路ブロックを設けるようにしたので、
8ビットを単位として入力データにスクランブルをかけ
ることができ、これをシリアルに変換してスクランブル
がかかった出力データとしてバイナリ形式のものが得ら
れるようにしたので、パラレルの入力データをシリアル
に変換したのちにデスクランブルを行う従来の装置が、
9段のレジスタが必要で9回のクロックを必要としてい
たのに対し、レジスタの段数が3段で済み、デスクラン
ブル処理の遅延等が少なくて済む効果がある。
According to the descrambling method and the descrambling apparatus according to the eighth embodiment as described above, the exclusive descramble method for calculating the serial output for eight shifts obtained by the conventional descrambling method and the descrambling apparatus, respectively. Since the logical OR circuit block is provided,
Input data can be scrambled in 8-bit units, and this is converted to serial so that binary data can be obtained as scrambled output data, so parallel input data is converted to serial. A conventional device that does descrambling later
Although 9 stages of registers are required and 9 clocks are required, the number of stages of the registers is 3, and there is an effect that the delay of descrambling processing is small.

【0101】なお、この実施の形態8ではバイト単位の
データに対しデスクランブルを行うものを示したが、同
様の方法,装置により任意の複数ビットに対し一括して
デスクランブルを行うことも可能である。
In the eighth embodiment, descrambling is performed on byte-unit data, but it is also possible to collectively descramble arbitrary plural bits by the same method and device. is there.

【0102】実施の形態9.次に実施の形態9につい
て、図面を参照しながら説明する。図12は本発明の実
施の形態9におけるバイナリ形式のスクランブルをバイ
ト単位パラレルで行うスクランブル装置を示すもので、
(表5)は図12の動作状態を示したものである。図1
2において、121 は初期値設定端子、122 はクロック入
力端子、123 はデータ入力端子、124 はレジスタ、125
は係数器、126 はmod2加算器、127 は論理回路ブロッ
ク、128 はスクランブルデータ出力端子である。
Embodiment 9 FIG. Next, a ninth embodiment will be described with reference to the drawings. FIG. 12 shows a scrambler which performs binary scrambling in byte unit parallel in Embodiment 9 of the present invention.
Table 5 shows the operating state of FIG. FIG.
2, 121 is an initial value setting terminal, 122 is a clock input terminal, 123 is a data input terminal, 124 is a register, and 125
Is a coefficient unit, 126 is a mod2 adder, 127 is a logic circuit block, and 128 is a scrambled data output terminal.

【0103】[0103]

【表5】 [Table 5]

【0104】まず、本方式のスクランブル方法について
説明し、次にバイナリデータ用のスクランブル方法に変
換するための原理について説明する。説明に先だって、
以下のように各データを多項式化し定義する。 情報多項式:D(X) = dnXn + dn-1X n-1 +dn-2Xn-2 + ‥‥+d2X2 + d1X + d0 生成多項式:G(X) = 1 + g1X1 + g2 X2 ‥‥+ gm-2 Xm-2 + gm-1 Xm-1 + Xm バイナリデータの入力に先だって、初期値設定端子121
で各レジスタ124 は0あるいは1に初期値が設定され
る。次に、データ入力端子123 から情報データがバイナ
リデータのままパラレルで入力され、クロック入力端子
122 のデータに同期したクロックで、情報データのビッ
ト数と同数分各レジスタ124 内のデータはシフトさせら
れる。この間、情報データは図12の最右段のレジスタ
の出力と排他的論路和をとり、出力端子128 からスクラ
ンブルがかかった状態でパラレルに取り出される。
First, the scrambling method of this system will be described, and then the principle for converting to the scrambling method for binary data will be described. Prior to the explanation,
Each data is polynomialized and defined as follows. Information polynomial: D (X) = dnX n + dn-1X n-1 + dn-2X n-2 + ‥ + d2X 2 + d1X + d0 Generator polynomial: G (X) = 1 + g1X 1 + g2 X 2 ‥‥ + gm-2 X m-2 + gm-1 X m-1 + X m Initial value setting terminal 121 before inputting binary data.
Then, the initial value of each register 124 is set to 0 or 1. Next, the information data is input in parallel as binary data from the data input terminal 123, and the clock input terminal
With the clock synchronized with the data of 122, the data in each register 124 is shifted by the same number as the number of bits of the information data. In the meantime, the information data is exclusive-logical sum with the output of the rightmost register in FIG.

【0105】本実施の形態9では情報データをバイト単
位で扱うために、8ビットごとにパラレルで入力を行
う。8ビット入力される毎に、各ラッチは8回シフトし
た結果を求める。そのために、各シフト毎のラッチ出力
を(表5)のように、上位側よりRm-1(i) 〜R0(i) とす
る。また、各ラッチには、初期値設定端子により、演算
開始前に初期値として0か1をプリセットできるものと
して、その初期値を上位側よりNm-1〜N0とする。ここで
i はシフトの回数を表している。シリアルの状態ではデ
ータはdn、dn-1、dn-2の順に入力されるとすると、入力
データと出力データの関係が ds(0)=R0(0)+dn ds(1)=R0(1)+dn-1 ds(2)=R0(2)+dn-2 ...... となることから、8ビットパラレルとした場合、各ラッ
チ出力、入力データ、出力データを ds0=R0(0)+di0 ds1=R0(1)+di1 ds2=R0(2)+di2 ds3=R0(3)+di3 ds4=R0(4)+di4 ds5=R0(5)+di5 ds6=R0(6)+di6 ds7=R0(7)+di7 となる関係を持つように論理回路ブロック127 を構成す
れば、データはこの論理回路ブロック127 を通ってパラ
レル出力端子128 からスクランブルが施された状態で、
8ビットずつバイト形式で出力される。以後、情報デー
タとして、次の1バイトのデータを入力する場合には、
上記のRm-1(8) 〜R0(8) をはじめの初期値Nm-1〜N0とし
て与え同様の演算を行えばよい。
In the ninth embodiment, in order to handle information data in byte units, parallel input is performed every 8 bits. Each time 8 bits are input, each latch obtains the result of shifting 8 times. Therefore, the latch output for each shift is set to Rm-1 (i) to R0 (i) from the higher order side as shown in (Table 5). Further, it is assumed that each latch can preset 0 or 1 as an initial value before the start of calculation by the initial value setting terminal, and the initial value is set to Nm-1 to N0 from the upper side. here
i represents the number of shifts. If data is input in the order of dn, dn-1, and dn-2 in the serial state, the relationship between input data and output data is ds (0) = R0 (0) + dn ds (1) = R0 (1 ) + dn-1 ds (2) = R0 (2) + dn-2 ...... Therefore, when using 8-bit parallel, each latch output, input data, and output data are ds0 = R0 ( 0) + di0 ds1 = R0 (1) + di1 ds2 = R0 (2) + di2 ds3 = R0 (3) + di3 ds4 = R0 (4) + di4 ds5 = R0 (5) + di5 ds6 = R0 (6) If the logic circuit block 127 is configured to have a relationship of + di6 ds7 = R0 (7) + di7, the data passes through the logic circuit block 127 and is scrambled from the parallel output terminal 128,
It is output in 8-byte units in byte format. After that, when inputting the next 1-byte data as information data,
The above Rm-1 (8) to R0 (8) may be given as initial initial values Nm-1 to N0 and a similar operation may be performed.

【0106】このような本実施の形態9によるスクラン
ブル方法,及びスクランブル装置によれば、初期値をシ
リアルシフトレジスタに入力してシフトするとともに、
その出力に係数を乗じてmod2加算を行ったものをシリア
ルシフトレジスタの入力に帰還し、このシリアルシフト
レジスタの出力とパラレルで入力されるデータとを論理
回路に入力してスクランブルされたデータをパラレルで
得るようにしたので、実施の形態8までのスクランブ
ル,デスクランブルのような自己完結型のものではな
く、別種のスクランブルに関してそのパラレル化を実現
でき、シリアルでデータを扱う従来のもののように、パ
ラレル入力,パラレル出力をしようとすると、一旦シリ
アルに変換してデスクランブルをして、パラレルに戻し
てデータを出力する手間がなく、8ビットパラレルでデ
ータの入出力を行うことができ、回路が簡単になるとと
もに、入出力が同期タイプの回路で構成できる効果があ
る。
According to the scramble method and the scramble apparatus according to the ninth embodiment, the initial value is input to the serial shift register to be shifted, and
The output is multiplied by a coefficient and mod2 added, and the result is fed back to the input of the serial shift register, and the output of this serial shift register and the data input in parallel are input to a logic circuit to scramble the data in parallel. Therefore, the parallelization can be realized with respect to another type of scramble rather than the self-contained type such as scramble and descramble up to the eighth embodiment, and like the conventional one that handles data serially, When parallel input or parallel output is attempted, it is possible to input and output data in 8-bit parallel without the trouble of converting it to serial, descrambling, and returning to parallel to output data. Besides being simple, there is an effect that the input / output can be constituted by a synchronous type circuit.

【0107】なお、この実施の形態9ではバイト単位の
データに対しスクランブルを行うものを示したが、同様
の方法,装置により任意の複数ビットに対し一括してス
クランブルを行うことも可能である。
In the ninth embodiment, the scramble is performed on the data in byte units, but it is also possible to collectively scramble arbitrary plural bits by the same method and device.

【0108】実施の形態10.次に実施の形態10につ
いて説明する。図13は本発明の実施の形態10によ
る,実施の形態9のスクランブル方法に対するデスクラ
ンブル方法、即ちバイナリ形式のデスクランブルをバイ
ト単位で行うデスクランブル方法を示すものである。図
13において、131 は初期値設定端子、132 はクロック
入力端子、133 はスクランブルデータ入力端子、134 は
レジスタ、135 は係数器、136 はmod2加算器、137 は論
理回路ブロック、138 はデスクランブルデータ出力端子
である。
Embodiment 10. Next, a tenth embodiment will be described. FIG. 13 shows a descrambling method for the scrambling method according to the tenth embodiment of the present invention, that is, a descrambling method for performing descrambling in a binary format in byte units. In FIG. 13, 131 is an initial value setting terminal, 132 is a clock input terminal, 133 is a scrambled data input terminal, 134 is a register, 135 is a coefficient multiplier, 136 is a mod2 adder, 137 is a logic circuit block, and 138 is descrambled data. It is an output terminal.

【0109】その動作については、実施の形態9のスク
ランブルの動作に対し、ちょうど逆の動作となるデスク
ランブルを行うもので、実施の形態9の形態でスクラン
ブルが実行されたデータを8ビットパラレルで入力し、
スクランブルが解除されたデータが8ビットパラレルで
出力されるものである。
With respect to the operation, descrambling, which is just the opposite operation to the scrambling operation of the ninth embodiment, is performed, and the scrambled data of the ninth embodiment is converted into 8-bit parallel data. Input,
The descrambled data is output in 8-bit parallel.

【0110】このような本実施の形態10によるスクラ
ンブル方法,及びスクランブル装置によれば、初期値を
シリアルシフトレジスタに入力してシフトするととも
に、その出力に係数を乗じてmod2加算を行ったものをシ
リアルシフトレジスタの入力に帰還し、このシリアルシ
フトレジスタの出力とパラレルで入力されるスクランブ
ルされたデータとを論理回路ブロックに入力してスクラ
ンブルがとかれたデータをパラレルで得るようにしたの
で、実施の形態8までのスクランブル,デスクランブル
のような自己完結型のものではなく、別種のデスクラン
ブルに関してそのパラレル化を実現でき、シリアルでデ
ータを扱う従来のもののように、パラレル入力,パラレ
ル出力をしようとすると、一旦シリアルに変換してデス
クランブルをして、パラレルに戻してデータを出力する
手間がなく、8ビットパラレルでデータの入出力を行う
ことができ、回路が簡単になるとともに、8ビットパラ
レルでデータの入出力を行うことができ、入出力が同期
タイプの回路で構成できる効果がある。また、実施の形
態9のスクランブル装置と同様の構成でデスクランブル
装置が得られる効果がある。
According to the scramble method and the scramble apparatus according to the tenth embodiment as described above, the initial value is input to the serial shift register and shifted, and the output is multiplied by a coefficient to perform mod2 addition. It is fed back to the input of the serial shift register, and the output of this serial shift register and the scrambled data input in parallel are input to the logic circuit block so that the scrambled data is obtained in parallel. It is not a self-contained type such as scrambling and descrambling up to Form 8, but parallelization can be realized for another type of descrambling, and parallel input and parallel output like the conventional one that handles data serially Then, once converted to serial, descrambled, and It is possible to input / output data in 8-bit parallel without the trouble of returning to the larel and outputting data, and the circuit can be simplified, and the input / output of data can be performed in 8-bit parallel. The effect is that it can be configured with a synchronous type circuit. Further, the descrambling device can be obtained with the same configuration as the scrambling device of the ninth embodiment.

【0111】なお、この実施の形態10ではバイト単位
のデータに対しデスクランブルを行うものを示したが、
同様の方法,装置により任意の複数ビットに対し一括し
てデスクランブルを行うことも可能である。
In the tenth embodiment, descrambling is performed on byte data, but
It is also possible to collectively descramble a plurality of arbitrary bits by the same method and device.

【0112】実施の形態11.次に実施の形態11につ
いて説明する。実施の形態11はバイナリ形式でスクラ
ンブルを行うスクランブル装置で、スクランブルをかけ
る情報データを8ビットパラレルで入力し、8ビットパ
ラレルでスクランブルされたデータを出力するスクラン
ブル装置に関するものである。図14は本実施の形態1
1によるスクランブル装置の一例であり、説明を簡単か
つ具体的にするために、生成多項式G(X)を G(X) = X7 + X 6 + 1 とする。図14において、141 は初期値設定端子、142
はビットクロック入力端子、143 はシリアルシフトレジ
スタ、144 はデータ入力端子、145 はmod2加算器、146
はスクランブルデータ出力端子、147 はバイトクロック
入力端子、148 は8ビットラッチである。
Embodiment 11 FIG. Next, an eleventh embodiment will be described. The eleventh embodiment relates to a scrambler for scrambling in binary format, and relates to a scrambler for inputting information data to be scrambled in 8-bit parallel and outputting scrambled data in 8-bit parallel. FIG. 14 shows the first embodiment.
1 is an example of a scrambler according to No. 1 and the generator polynomial G (X) is set to G (X) = X 7 + X 6 +1 for the sake of simplicity and specificity. In FIG. 14, 141 is an initial value setting terminal, 142
Is a bit clock input terminal, 143 is a serial shift register, 144 is a data input terminal, 145 is a mod2 adder, 146
Is a scrambled data output terminal, 147 is a byte clock input terminal, and 148 is an 8-bit latch.

【0113】はじめに、初期値設定端子141 よりシリア
ルシフトレジスタ143 に初期値が設定される。次に、デ
ータ入力端子144 よりスクランブルされる情報データが
8ビットごとにパラレル入力される。情報データが8ビ
ット入力されるごとに、ビットクロック入力端子142 よ
り入力されるビットクロックにより、シリアルシフトレ
ジスタ143 は8回シフトを行う。8回シフトの後mod2加
算器145 により入力データのそれぞれのビットと各レジ
スタ出力が加算され、8ビット入力ラッチ148に格納さ
れる。格納後、バイトクロック入力端子147 より入力さ
れるバイトクロックによりスクランブルされたデータが
所定の時間にパラレルに出力される。こうすることによ
り、バイナリ形式で行うスクランブルを、バイト形式8
ビットパラレルで情報データを入力し、バイト形式8ビ
ットパラレルでスクランブルされたデータとして出力す
ることにより行う装置を実現することができる。なお、
シリアルシフトレジスタ143 は上述の生成多項式より7
段の構成となる。
First, an initial value is set in the serial shift register 143 from the initial value setting terminal 141. Next, the information data scrambled from the data input terminal 144 is input in parallel every 8 bits. Every time 8 bits of information data is input, the serial shift register 143 shifts eight times by the bit clock input from the bit clock input terminal 142. After 8 shifts, each bit of the input data and each register output are added by the mod2 adder 145 and stored in the 8-bit input latch 148. After storing, the data scrambled by the byte clock input from the byte clock input terminal 147 is output in parallel at a predetermined time. By doing this, scrambling in binary format can be performed in byte format 8
It is possible to realize a device that inputs information data in bit parallel and outputs it as scrambled data in byte format 8-bit parallel. In addition,
The serial shift register 143 has 7
It will be composed of steps.

【0114】このような本実施の形態11によるスクラ
ンブル方法,及びスクランブル装置によれば、初期値を
シリアルシフトレジスタに入力してシフトするととも
に、その出力にmod2加算を行ったものをシリアルシフト
レジスタの入力に帰還し、このシリアルシフトレジスタ
の出力とパラレルで入力されるデータとを排他的論理和
回路に入力してスクランブルされたデータをパラレルで
得るようにしたので、実施の形態8までのスクランブ
ル,デスクランブルのような自己完結型のものではな
く、別種のスクランブルに関してそのパラレル化を実現
でき、シリアルでデータを扱う従来のもののように、パ
ラレル入力,パラレル出力をしようとすると、一旦シリ
アルに変換してデスクランブルをして、パラレルに戻し
てデータを出力する手間がなく、8ビットパラレルでデ
ータの入出力を行うことができ、回路が簡単になるとと
もに、入出力が同期タイプの回路で構成できる効果があ
る。
According to the scramble method and the scramble device according to the eleventh embodiment, the initial value is input to the serial shift register and shifted, and the output is mod2 added to the serial shift register. Since the output of this serial shift register and the data input in parallel are input to the exclusive OR circuit to obtain the scrambled data in parallel, the scrambled data up to the eighth embodiment It is not a self-contained type such as descramble, but it can realize parallelization for another type of scrambling, and if you try to make parallel input and parallel output like the conventional one that handles data serially, it will be converted to serial once. To descramble, return to parallel and output data In other words, data can be input / output in 8-bit parallel, the circuit is simple, and the input / output can be configured by a synchronous type circuit.

【0115】なお、この実施の形態11ではバイト単位
のデータに対しスクランブルを行うものを示したが、同
様の方法,装置により任意の複数ビットに対し一括して
スクランブルを行うことも可能である。
In the eleventh embodiment, the scrambling is performed on the data in byte units, but it is also possible to collectively scramble arbitrary plural bits by the same method and device.

【0116】実施の形態12.次に実施の形態12につ
いて説明する。実施の形態12はバイナリ形式でスクラ
ンブルされたデータが、8ビットパラレルで入力され、
これに対しデスクランブルを施し、8ビットパラレルで
データを出力する、デスクランブル装置に関するもので
ある。図15は本実施の形態12によるデスクランブル
装置の一例であり、生成多項式を G(X) = X9 + X 4 + 1 としたものである。図15において、151 は初期値設定
端子、152 はビットクロック入力端子、153 はシリアル
シフトレジスタ、154 はスクランブルデータ入力端子、
155 はmod2加算器、156 はデータ出力端子、157 はバイ
トクロック入力端子、158 は8ビットラッチである。
Twelfth Embodiment Next, a twelfth embodiment will be described. In the twelfth embodiment, data scrambled in binary format is input in 8-bit parallel,
The present invention relates to a descramble device that descrambles this and outputs data in 8-bit parallel. Figure 15 is an example of a descrambler according to the twelfth embodiment, the generator polynomial is obtained by a G (X) = X 9 + X 4 + 1. In FIG. 15, 151 is an initial value setting terminal, 152 is a bit clock input terminal, 153 is a serial shift register, 154 is a scramble data input terminal,
155 is a mod2 adder, 156 is a data output terminal, 157 is a byte clock input terminal, and 158 is an 8-bit latch.

【0117】動作については、実施の形態11のスクラ
ンブルの動作に対し、ちょうど逆となるデスクランブル
の動作を行うもので、実施の形態11の形態でスクラン
ブルされたデータが8ビットパラレルで入力され、これ
に対し、スクランブルが解除されたデータが、8ビット
パラレルで出力するものである。なお、シリアルシフト
レジスタ153 は上述の生成多項式より9段の構成とな
る。
Regarding the operation, the descrambling operation which is just the reverse of the scrambling operation of the eleventh embodiment is performed, and the scrambled data of the eleventh embodiment is inputted in 8-bit parallel. On the other hand, the descrambled data is output in 8-bit parallel. The serial shift register 153 has 9 stages based on the above-mentioned generator polynomial.

【0118】このような本実施の形態12によるデスク
ランブル方法,及びデスクランブル装置によれば、初期
値をシリアルシフトレジスタに入力してシフトするとと
もに、その出力にmod2加算を行ったものをシリアルシフ
トレジスタの入力に帰還し、このシリアルシフトレジス
タの出力とパラレルで入力されるスクランブルされたデ
ータとをmod2加算器に入力してデスクランブルされたデ
ータをパラレルで得るようにしたので、実施の形態8ま
でのスクランブル,デスクランブルのような自己完結型
のものではなく、別種のデスクランブルに関してそのパ
ラレル化を実現でき、シリアルでデータを扱う従来のも
ののように、パラレル入力,パラレル出力をしようとす
ると、一旦シリアルに変換してデスクランブルをして、
パラレルに戻してデータを出力する必要がなく、8ビッ
トパラレルでデータの入出力を行うことができ、回路が
簡単になるとともに、入出力が同期タイプの回路で構成
できる効果がある。また、実施の形態11のスクランブ
ル装置と同様の構成でデスクランブル装置が得られる効
果がある。
According to the descrambling method and the descrambling apparatus according to the twelfth embodiment as described above, the initial value is input to the serial shift register and shifted, and the output of which is mod2 added is serially shifted. Since the output of the serial shift register is fed back to the input of the register and the scrambled data input in parallel to the mod2 adder to obtain the descrambled data in parallel, the eighth embodiment is described. It is not a self-contained type such as scramble and descramble up to, but it is possible to realize parallelization for another type of descramble, and if you try parallel input, parallel output like the conventional one that handles data serially, Once converted to serial and descrambled,
It is not necessary to return to parallel and output data, and 8-bit parallel data input / output can be performed, which simplifies the circuit and has an effect that the input / output can be configured by a synchronous type circuit. Further, the descrambling device can be obtained with the same configuration as the scrambling device of the eleventh embodiment.

【0119】なお、この実施の形態12ではバイト単位
のデータに対しデスクランブルを行うものを示したが、
同様の方法,装置により任意の複数ビットに対し一括し
てデスクランブルを行うことも可能である。
In the twelfth embodiment, descrambling is performed on byte data, but
It is also possible to collectively descramble a plurality of arbitrary bits by the same method and device.

【0120】[0120]

【発明の効果】以上のように、本願の請求項1の発明に
係るデータスクランブル方法によれば、情報多項式, D(X) =dn n +dn-1 n-1 +dn-2 n-2 +……
+d2 2 +d1 1 +d0 0 生成多項式 G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m で定義されるスクランブル方法を行うものであり、初期
値設定手段により上記剰余多項式における各係数R-m+k
(k=0,1,…,m-1)の初期値R-m+k(0) =N-m+k(ここ
で、R-m+k(i) は上記剰余多項式における係数R-m+k
ラッチの値であるとしたとき、該ラッチをi回シフトし
たときの値である。)を、0あるいは1に設定し、その
後、情報データをバイト単位のデータとして扱うため
に、上記情報多項式の上位から8ビット分に相当する初
回の入力データdn 〜dn-7 に対し、上記生成多項式で
除算する除算を行って、その剰余多項式の係数, R-m+k(i) =R-m+k+1(i-1) (k=0,1,…,m-1, i=0,
1,…,8, ただしk=m-1, i=8 の場合を除く) R-1(8) =g-1-1(7) +g-2-2(7) +……+g-m+1
-m+1(7) +g-m-m(7) +dn-7 を得、この除算の剰余結果を、次の初期値とみなして、
これらと次の入力データdn-8 〜dn-15との排他的論理
和をとり、これらの操作を入力バイナリデータのバイト
数分繰り返し、その繰り返しを行う各単位での排他的論
理和の結果を、バイト単位で、
As described above, according to the data scrambling method according to the invention of claim 1 of the present application, the information polynomial, D (X) = d n X n + d n-1 X n-1 + d n-2 X n-2 + ……
+ D 2 X 2 + d 1 X 1 + d 0 X 0 Generator polynomial G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X- m + 2 + R- m + 1 X- m + 1 + R- m X- m scramble method is performed, and each coefficient R- m + k in the remainder polynomial by the initial value setting means.
(K = 0,1, ..., m -1) Initial value R -m + k in (0) = N -m + k ( where the coefficient R -m + k (i) is in the remainder polynomial R - When m + k is the value of the latch, it is the value when the latch is shifted i times.) is set to 0 or 1, and then the information data is treated as byte-unit data. The first input data dn to dn-7 corresponding to the upper 8 bits of the information polynomial is divided by the generator polynomial, and the coefficient of the remainder polynomial, R -m + k (i) = R -m + k + 1 (i-1) (k = 0,1, ..., m-1, i = 0,
1, ..., 8, except when k = m-1, i = 8) R -1 (8) = g -1 R -1 (7) + g -2 R -2 (7) + ...... + g -m + 1
R -m + 1 (7) + g -m R -m (7) + dn -7 is obtained, and the remainder result of this division is regarded as the next initial value,
The exclusive OR of these and the next input data dn-8 to dn-15 is taken, these operations are repeated for the number of bytes of the input binary data, and the result of the exclusive OR in each unit which repeats the operation is obtained. , In bytes,

【0121】[0121]

【数17】 [Equation 17]

【0122】の関係で表したとき、この順次得られるd
s(1)〜ds(8)を、ds7〜ds0として一括して取り出すこ
とにより、バイナリ形式のスクランブルをバイト形式で
行うようにしたので、8ビットを単位として入力データ
にスクランブルをかけることができ、スクランブルがか
かった出力データとしてバイト形式のものが得られるの
で、従来のもののようにバイナリ形式で得られるスクラ
ンブルデータに対しその都度シリアル−パラレル変換を
行ってバイトデータに変換する手間をなくすことができ
るスクランブル方法が得られる効果がある。
When expressed by the relation of d
By extracting s (1) to ds (8) collectively as ds7 to ds0, the scrambling in binary format is performed in byte format, so it is possible to scramble the input data in units of 8 bits. , Since the scrambled output data can be obtained in byte format, it is possible to eliminate the trouble of converting the scrambled data obtained in binary format into byte data each time by performing serial-parallel conversion. There is an effect that a scramble method that can be performed is obtained.

【0123】また、本願の請求項2の発明に係るデータ
デスクランブル方法によれば、情報多項式, D(X) =dn n +dn-1 n-1 +dn-2 n-2 +……
+d2 2 +d1 1 +d0 0 生成多項式, G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m で定義されるデスクランブル方法を行うものであり、初
期値設定手段により上記剰余多項式における各係数R
-m+k(k=0,1,…,m-1)の初期値R-m+k(0) =N-m+k(こ
こで、R-m+k(i) は上記剰余多項式における係数R-m+k
がラッチの値であるとしたとき、該ラッチをi回シフト
したときの値である。)を、0あるいは1に設定し、そ
の後、情報データをバイト単位のデータとして扱うため
に、情報多項式の上位から8ビット分であるdn 〜dn-
7 に対し、生成多項式で乗算する乗算を行い、その際、
その乗算を実現させるために構成されたシフトレジスタ
の各ラッチの係数を、 R-m+k(i) =R-m+k+1(i-1) (k=0,1,…,m-1, i=0,
1,…,8, ただしk=m-1, i=8 の場合を除く) R-1(8) =dn-7 とし、この乗算を実現させるために構成されたシフトレ
ジスタの各ラッチに演算後残されているデータを、次の
初期値とみなして、これらと次の入力データdn-8 〜d
n-15との排他的論理和をとり、この後者の操作を入力バ
イナリデータのバイト数分繰り返し、その繰り返しを行
う各単位での排他的論理和の結果を、バイト単位で、
According to the data descrambling method of the second aspect of the present invention, the information polynomial, D (X) = d n X n + d n-1 X n-1 + d n-2 X n-2 + ……
+ D 2 X 2 + d 1 X 1 + d 0 X 0 generator polynomial, G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X- m + 2 + R- m + 1 X- m + 1 + R- m X- m The descrambling method is performed and each coefficient R in the remainder polynomial is set by the initial value setting means.
-m + k (k = 0,1, ..., m-1) initial value R- m + k (0) = N- m + k (where R- m + k (i) is the above remainder polynomial Coefficient R at -m + k
Is the value of the latch and is the value when the latch is shifted i times. ) Is set to 0 or 1, and thereafter, in order to handle the information data as data in byte units, dn to dn-, which are the 8 bits from the high order of the information polynomial.
7 is multiplied by the generator polynomial, and at that time,
The coefficient of each latch of the shift register configured to realize the multiplication is represented by R- m + k (i) = R- m + k + 1 (i-1) (k = 0,1, ..., m -1, i = 0,
1, ..., 8, except when k = m-1, i = 8) R −1 (8) = d n-7, and each latch of the shift register configured to realize this multiplication The data remaining after the calculation is regarded as the next initial value, and these and the next input data dn-8 to d
Take the exclusive OR with n-15, repeat this latter operation for the number of bytes of the input binary data, and the result of the exclusive OR in each unit that repeats, in byte units,

【0124】[0124]

【数18】 (Equation 18)

【0125】の関係で表したとき、この順次得られるd
o(1)〜do(8)を、do7〜do0として一括して取り出すこ
とにより、バイナリ形式のスクランブルされたデータに
対し、バイト形式でデスクランブルを行うようにしたの
で、8ビットを単位として入力データにデスクランブル
をかけることができ、スクランブルがとかれた出力デー
タとしてバイト形式のものが得られるので、従来のもの
のようにバイナリ形式で得られるデスクランブルデータ
に対しその都度シリアル−パラレル変換を行ってバイト
データに変換する必要をなくすことができるデスクラン
ブル方法が得られる効果がある。
When expressed in the relation of d
Since o (1) to do (8) are collectively fetched as do7 to do0, descramble is performed in byte format for scrambled data in binary format, so input in 8 bit units. Since the data can be descrambled and the scrambled output data can be obtained in byte format, the descramble data obtained in binary format like the conventional one is serial-parallel converted each time. There is an effect that a descrambling method can be obtained that can eliminate the need to convert to byte data.

【0126】また、本願の請求項3の発明に係るデータ
デスクランブル方法によれば、情報多項式, D(X) =d0 0 +d1 1 +d2 2 +……+dn-2
n-2 +dn-1 n-1 +dn n 生成多項式, G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m で定義されるデスクランブル方法を行うものであり、初
期値設定手段により上記剰余多項式における各係数R
-m+k(k=0,1,…,m-1)の初期値R-m+k(0) =N-m+k(こ
こで、R-m+k(i) は剰余多項式における係数R-m+kがラ
ッチの値であるとしたとき、該ラッチをi回シフトした
ときの値である。)を、0あるいは1に設定し、その
後、情報データをバイト単位のデータとして扱うため
に、8ビットのパラレルラッチ{In|(m+7)/8|+1 }
段(ここで、In|数式|は、数式で求められる値の整数
部分の値とする)で構成してなり、8ビットの各ラッチ
の値と出力端子の出力とが、
According to the data descrambling method of the third aspect of the present invention, the information polynomial, D (X) = d 0 X 0 + d 1 X 1 + d 2 X 2 + ... + d n-2
X n-2 + d n-1 X n-1 + d n X n generator polynomial, G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X- m + 2 + R- m + 1 X- m + 1 + R- m X- m The descrambling method is performed and each coefficient R in the remainder polynomial is set by the initial value setting means.
initial value of -m + k (k = 0,1, ..., m-1) R- m + k (0) = N- m + k (where R- m + k (i) is the remainder polynomial When the coefficient R −m + k is the value of the latch, it is a value when the latch is shifted i times) is set to 0 or 1, and then the information data is treated as byte-unit data. For this purpose, an 8-bit parallel latch {In | (m + 7) / 8 | +1}
(Where, In | numerical formula | is the value of the integer part of the value calculated by the mathematical formula), and the value of each 8-bit latch and the output of the output terminal are

【0127】[0127]

【数19】 [Equation 19]

【0128】なる関係を有するような排他的論理和演算
を行なう排他的論理和ブロックを構成しdo 0 〜do 7
を出力することにより、バイナリ形式でスクランブルさ
れたデータをバイト形式8ビットパラレルで入力し、該
入力をデスクランブルしたものをバイト形式8ビットパ
ラレルで出力するようにしたので、8ビットを単位とし
て入力データにデスクランブルをかけることができ、ス
クランブルがとかれた出力データとしてバイト形式のも
のが得られるので、従来のもののようにバイナリ形式で
得られるデスクランブルデータに対しその都度シリアル
−パラレル変換を行ってバイトデータに変換する手間を
なくすことができるデスクランブル方法が得られる効果
がある。
Do 0 to do 7 are formed by forming an exclusive OR block for performing an exclusive OR operation having the following relationship.
By outputting the scrambled data in binary format in byte format 8-bit parallel by outputting, the descrambled data is output in byte format 8-bit parallel. Since the data can be descrambled and the scrambled output data can be obtained in byte format, serial-parallel conversion is performed each time on descramble data obtained in binary format like the conventional one. There is an effect that a descrambling method can be obtained that can eliminate the trouble of converting into byte data.

【0129】また、本願の請求項4の発明に係るデータ
スクランブル装置によれば、情報多項式, D(X) =dn n +dn-1 n-1 +dn-2 n-2 +……
+d2 2 +d1 1 +d0 0 生成多項式, G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m で定義されるスクランブル方法を行うものであり、初期
値設定手段により上記剰余多項式における各係数R-m+k
(k=0,1,…,m-1)の初期値R-m+k(0) =N-m+k(ここ
で、R-m+k(i) は剰余多項式における係数R-m+kがラッ
チの値であるとしたとき、該ラッチをi回シフトしたと
きの値である。)を、0あるいは1に設定し、その後、
情報データをバイト単位のデータとして扱うために、情
報多項式の上位から8ビット分であるdn 〜dn-7 に対
し、生成多項式で除算する除算を行って、その剰余多項
式の係数, R-m+k(i) =R-m+k+1(i-1) (k=0,1,…,m-1, i=0,
1,…,8, ただしk=m-1, i=8 の場合を除く) R-1(8) =g-1-1(7) +g-2-2(7) +……+g-m+1
-m+1(7) +g-m-m(7) +dn-7 を得、上記初期値N-m+k と、その初期値N-m+k に8回シ
フトした結果各ラッチが持っている係数をかけ合わせた
ものとの排他的論理和をとり、この排他的論理和の剰余
結果を、次の初期値とみなして、これらと次の入力デー
タdn-8 〜dn-15との排他的論理和をとり、この後者の
操作を入力バイナリデータのバイト数分繰り返し、その
繰り返しを行う各単位での排他的論理和の結果を、バイ
ト単位で、
According to the data scrambling device of the fourth aspect of the present invention, the information polynomial, D (X) = d n X n + d n-1 X n-1 + d n-2 X n-2 + ......
+ D 2 X 2 + d 1 X 1 + d 0 X 0 generator polynomial, G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X- m + 2 + R- m + 1 X- m + 1 + R- m X- m scramble method is performed, and each coefficient R- m + k in the remainder polynomial by the initial value setting means.
Initial value of (k = 0,1, ..., m-1) R- m + k (0) = N- m + k (where R- m + k (i) is a coefficient R- m in the remainder polynomial. If + k is the value of the latch, it is the value when the latch is shifted i times.) is set to 0 or 1, and then
In order to treat the information data as data in units of bytes, the dn to dn-7, which are the 8 bits from the high order of the information polynomial, are divided by the generator polynomial, and the coefficient of the remainder polynomial, R -m + k (i) = R -m + k + 1 (i-1) (k = 0,1, ..., m-1, i = 0,
1, ..., 8, except when k = m-1, i = 8) R -1 (8) = g -1 R -1 (7) + g -2 R -2 (7) + ...... + g -m + 1
R -m + 1 (7) + g -m R -m (7) + d n-7 is obtained, and as a result of shifting the initial value N-m + k to the initial value N-m + k eight times, each latch Takes the exclusive OR with the product of the coefficients and holds the remainder result of this exclusive OR as the next initial value, and these and the next input data dn-8 to dn-15 , And the latter operation is repeated for the number of bytes of the input binary data, and the result of the exclusive OR in each unit where the repetition is performed, in byte units,

【0130】[0130]

【数20】 (Equation 20)

【0131】の関係で表したとき、この順次得られるd
s(1)〜ds(8)を、ds7〜ds0として一括して取り出すこ
とにより、バイナリ形式で入力されたデータを、バイト
形式8ビットパラレルでスクランブルし、該スクランブ
ルしたデータをバイト形式8ビットパラレルで出力する
ようにしたので、8ビットを単位として入力データにス
クランブルをかけることができ、スクランブルがかけら
れた出力データとしてバイト形式のものが得られるの
で、従来のもののようにバイナリ形式で得られるスクラ
ンブルデータに対しその都度シリアル−パラレル変換を
行ってバイトデータに変換する手間をなくすことができ
るスクランブル装置が得られる効果がある。
When expressed by the relation of d
By collectively extracting s (1) to ds (8) as ds7 to ds0, data input in binary format is scrambled in byte format 8-bit parallel, and the scrambled data is byte format 8-bit parallel. Since the output data is output with, the input data can be scrambled in units of 8 bits, and the scrambled output data can be obtained in the byte format, so that it can be obtained in the binary format like the conventional one. There is an effect that a scramble device that can eliminate the trouble of converting the scramble data into byte data by performing serial-parallel conversion each time.

【0132】また、入力側にシフトレジスタを設け、出
力側に論理回路を設けており、データの入出力に関して
装置を同期回路として簡単に構築でき、回路動作のクロ
ックを単一にできるスクランブル装置が得られる効果が
ある。
Further, since the shift register is provided on the input side and the logic circuit is provided on the output side, a scrambler which can easily construct the device as a synchronous circuit for inputting / outputting data and has a single circuit operation clock is provided. There is an effect to be obtained.

【0133】また、本願の請求項5の発明に係るデータ
デスクランブル装置によれば、情報多項式, D(X) =d0 0 +d1 1 +d2 2 +……+dn-2
n-2 +dn-1 n-1 +dn n 生成多項式, G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m で定義されるデスクランブル方法を行うものであり、初
期値設定手段により上記剰余多項式における各係数R
-m+k(k=0,1,…,m-1)の初期値R-m+k(0) =N-m+k(こ
こで、R-m+k(i) は上記剰余多項式における係数R-m+k
がラッチの値であるとしたとき、該ラッチをi回シフト
したときの値である。)を、0あるいは1に設定し、そ
の後、情報データをバイト単位のデータとして扱うため
に、8ビットのパラレルラッチ{In|(m+7)/8|+1 }
段(ここで、In|数式|は、数式で求められる値の整数
部分の値とする)で構成してなり、8ビットの各ラッチ
の値と出力端子の出力とが、
According to the data descrambling apparatus of the fifth aspect of the present invention, the information polynomial, D (X) = d 0 X 0 + d 1 X 1 + d 2 X 2 + ... + d n-2
X n-2 + d n-1 X n-1 + d n X n generator polynomial, G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X- m + 2 + R- m + 1 X- m + 1 + R- m X- m The descrambling method is performed and each coefficient R in the remainder polynomial is set by the initial value setting means.
-m + k (k = 0,1, ..., m-1) initial value R- m + k (0) = N- m + k (where R- m + k (i) is the above remainder polynomial Coefficient R at -m + k
Is the value of the latch and is the value when the latch is shifted i times. ) Is set to 0 or 1, and then 8-bit parallel latch {In | (m + 7) / 8 | +1} to handle the information data as byte unit data.
(Where, In | numerical formula | is the value of the integer part of the value calculated by the mathematical formula), and the value of each 8-bit latch and the output of the output terminal are

【0134】[0134]

【数21】 (Equation 21)

【0135】なる関係を有するような排他的論理和演算
を行ないdo 0 〜do 7 を出力する排他的論理和ブロッ
クを備えてなり、バイナリ形式でスクランブルされたデ
ータをバイト形式8ビットパラレルで入力し、該入力を
デスクランブルしたものを、バイト形式8ビットパラレ
ルで出力するようにしたので、8ビットを単位として入
力データにデスクランブルをかけることができ、デスク
ランブルがかけられた出力データとしてバイト形式のも
のが得られるので、従来のもののようにバイナリ形式で
得られるスクランブルデータに対しその都度シリアル−
パラレル変換を行ってバイトデータに変換する手間をな
くすことができるデスクランブル装置が得られる効果が
ある。
An exclusive-OR block that performs an exclusive-OR operation having the following relationship and outputs do 0 to do 7 is provided, and data scrambled in binary format is input in byte format 8-bit parallel. Since the descrambled input is output in byte format 8-bit parallel, the input data can be descrambled in units of 8 bits, and the descrambled output data can be in byte format. Since the scrambled data obtained in binary format like the conventional one can be obtained serially each time.
There is an effect that a descrambling device capable of eliminating the trouble of performing parallel conversion and converting into byte data can be obtained.

【0136】また、パラレルのままデータをシフトさせ
る構造であるので、装置を同期回路として簡単に構築で
き、回路動作のクロックを単一にできるとともに、デー
タをシフトしていないため、レジスタの数が少なくて済
み、排他的論理和回路の個数も請求項2の発明では論理
式の種類によっては多いが、本発明では、少なくて済
み、回路規模が極小で済むデスクランブル装置が得られ
る効果がある。
Further, since the structure is such that the data is shifted in parallel, the device can be easily constructed as a synchronous circuit, a single clock for the circuit operation can be made, and the number of registers is reduced because the data is not shifted. The number of exclusive OR circuits is small, and the number of exclusive OR circuits is large according to the type of the logical expression in the invention of claim 2, but the present invention has an effect of obtaining a descramble device in which the number is small and the circuit scale is minimal. .

【0137】また、本願の請求項6の発明に係るデータ
デスクランブル装置によれば、情報多項式, D(X) =dn n +dn-1 n-1 +dn-2 n-2 +……
+d2 2 +d1 1 +d0 0 生成多項式, G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m で定義されるデスクランブル方法を行うものであり、バ
イナリ形式シリアルデータ入力端子を備え、初期値設定
手段により上記剰余多項式における各係数R-m+k(k=0,
1,…,m-1)の初期値R-m+k(0) =N-m+k(ここで、R
-m+k(i) は剰余多項式におけるR−m+kがラッチの値
であるとしたとき、該ラッチをi回シフトしたときの値
である。)を、0あるいは1に設定し、その後、情報デ
ータをバイト単位のデータとして扱うために、情報多項
式の上位から8ビット分であるdn 〜dn-7 に対し、
生成多項式で乗算する乗算を行い、その際、その乗算を
実現させるために構成されたシフトレジスタの各ラッチ
の係数を、 R-m+k(i) =R-m+k+1(i-1) (k=0,1,…,m-1, i=0,
1,…,8, ただしk=m-1, i=8 の場合を除く) ds (8)=g-1-1(7) +g-2-2(7) +……+g-m+1
-m+1(7) +g-m-m(7) +dn-7 とし、この乗算を実現させるために構成されたシフトレ
ジスタの各ラッチに演算後残されているデータを、次の
初期値とみなして、これらと次の入力データdn-8 〜d
n-15との排他的論理和をとり、この後者の操作を入力バ
イナリデータのバイト数分繰り返し、その繰り返しを行
う各単位での排他的論理和の結果を、バイト単位で、
According to the data descrambling apparatus of the sixth aspect of the present invention, the information polynomial, D (X) = d n X n + d n-1 X n-1 + d n-2 X n-2 + ……
+ D 2 X 2 + d 1 X 1 + d 0 X 0 generator polynomial, G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X- m + 2 + R- m + 1 X- m + 1 + R- m X- m is used for the descrambling method, which is provided with a binary format serial data input terminal and has the above-mentioned remainder by the initial value setting means. Each coefficient in the polynomial R -m + k (k = 0,
Initial value of 1, ..., m-1) R -m + k (0) = N -m + k (where R
-m + k (i) is a value when the latch is shifted i times, where R- m + k in the remainder polynomial is the value of the latch. ) Is set to 0 or 1, and then, in order to handle the information data as data in units of bytes, for dn to dn-7, which are 8 bits from the high order of the information polynomial,
The multiplication of the generator polynomial is performed, and at that time, the coefficient of each latch of the shift register configured to realize the multiplication is R -m + k (i) = R -m + k + 1 (i- 1) (k = 0,1, ..., m-1, i = 0,
1, ..., 8, except when k = m-1, i = 8) ds (8) = g -1 R -1 (7) + g -2 R -2 (7) + ...... + g -m +1
And R -m + 1 (7) + g -m R -m (7) + d n-7, what is left after the operation in the respective latches of the shift register configured to achieve this multiplication, the following Considering these as initial values, these and the next input data dn-8 to d
Take the exclusive OR with n-15, repeat this latter operation for the number of bytes of the input binary data, and the result of the exclusive OR in each unit that repeats, in byte units,

【0138】[0138]

【数22】 (Equation 22)

【0139】の関係で表したとき、この順次得られるd
o(1)〜do(8)を、do7〜do0として一括して取り出すこ
とにより、バイナリ形式でスクランブルされたデータを
シリアルバイナリ単位で入力し、該入力をデスクランブ
ルしたものを、バイト単位で8ビットパラレルで出力す
るようにしたので、シリアルで入力される入力データに
8ビットを単位としてデスクランブルをかけることがで
き、スクランブルがとかれた出力データとしてバイト形
式のものが得られるので、従来のもののようにバイナリ
形式で得られるデスクランブルデータに対しその都度シ
リアル−パラレル変換を行ってバイトデータに変換する
手間をなくすことができ、シリアル,パラレル変換回路
を用いることなしに、シリアルデータを入力すると、パ
ラレルでデスクランブルされたデータが得られるデスク
ランブル装置を実現できる効果がある。
When expressed in the relation of d
By collectively extracting o (1) to do (8) as do7 to do0, the scrambled data in the binary format is input in serial binary units, and the descrambled input is 8 in byte units. Since the data is output in bit parallel, it is possible to descramble input data input serially in units of 8 bits, and scrambled output data in byte format can be obtained. It is possible to eliminate the trouble of converting the descrambled data obtained in binary format into byte data each time by inputting serial data without using a serial / parallel conversion circuit. Realizes a descrambler that can obtain descrambled data in parallel There is that effect.

【0140】また、入力側にシフトレジスタを設け、出
力側に論理回路を設けており、データの入出力に関して
は単一のクロックで動作させることができるので、装置
を同期回路として簡単に構築できる効果がある。
Further, since the shift register is provided on the input side and the logic circuit is provided on the output side, the data input / output can be operated by a single clock, so that the device can be easily constructed as a synchronous circuit. effective.

【0141】また、本願の請求項7の発明に係るデータ
スクランブル装置によれば、情報多項式, D(X) =dn n +dn-1 n-1 +dn-2 n-2 +……
+d2 2 +d1 1 +d0 0 生成多項式, G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m で定義されるスクランブル方法を行うものであり、バイ
ナリ形式シリアルデータ入力端子を有し、初期値設定手
段により上記剰余多項式における各係数R-m+k(k=0,1,
…,m-1)の初期値R-m+k(0) =N-m+k(ここで、R-m+k
(i) は上記剰余多項式における上記係数R-m+kがラッチ
の値であるとしたとき、該ラッチをi回シフトしたとき
の値である。)を、0あるいは1に設定し、その後、情
報データをバイト単位のデータとして扱うために、情報
多項式の上位から8ビット分であるdn 〜dn-7 に対
し、生成多項式で割算する除算を行って、その剰余多項
式の係数として、 R-m+k(i) =R-m+k+1(i-1) (k=0,1,…,m-2 ) R-1(8) =g-1-1(7) +g-2-2(7) +……+g-m+1
-m+1(7) +g-m-m(7) +dn-7 を得、この除算の剰余結果を、次の初期値とみなして、
これらと次の入力データdn-8〜dn-15 との排他的論理和
をとり、この後者の操作を入力バイナリデータのバイト
数分繰り返し、その繰り返しを行う各単位での排他的論
理和の結果を、バイト単位で、
According to the data scrambler of the invention of claim 7, the information polynomial, D (X) = d n X n + d n-1 X n-1 + d n-2 X n-2 + ......
+ D 2 X 2 + d 1 X 1 + d 0 X 0 generator polynomial, G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X- m + 2 + R- m + 1 X- m + 1 + R- m X- m The scrambling method is performed, the binary format serial data input terminal is provided, and the remainder is set by the initial value setting means. Each coefficient in the polynomial R -m + k (k = 0,1,
, M-1) initial value R -m + k (0) = N -m + k (where R -m + k
(i) is a value when the coefficient R −m + k in the remainder polynomial is a latch value and the latch is shifted i times. ) Is set to 0 or 1, and then, in order to treat the information data as data in byte units, division from the higher bits of the information polynomial, dn to dn-7, by the generator polynomial is performed. As a coefficient of the remainder polynomial, R- m + k (i) = R- m + k + 1 (i-1) (k = 0,1, ..., m-2) R- 1 (8) = G -1 R -1 (7) + g -2 R -2 (7) + ... + g -m + 1
R -m + 1 (7) + g -m R -m (7) + dn -7 is obtained, and the remainder result of this division is regarded as the next initial value,
Exclusive-OR these with the next input data dn-8 to dn-15, repeat this latter operation for the number of bytes of input binary data, and the result of exclusive-OR in each unit that repeats In bytes,

【0142】[0142]

【数23】 (Equation 23)

【0143】の関係で表したとき、この順次得られるd
s(1)〜ds(8)を、ds7〜ds0としてバイト形式8ビット
パラレルで一括して取り出すことにより、入力データを
シリアルバイナリ単位で入力し、バイト単位でパラレル
にデータの出力を行うようにしたので、8ビットを単位
として入力データにスクランブルをかけることができ、
スクランブルがかかった出力データとしてバイト形式の
ものが得られるので、従来のもののようにバイナリ形式
で得られるスクランブルデータに対しその都度シリアル
−パラレル変換を行ってバイトデータに変換する手間を
なくすことができ、シリアル,パラレル変換回路を設け
ることなくシリアルデータを入力すると、パラレルでス
クランブルされたデータが得られるスクランブル装置を
実現できる効果がある。
When expressed by the relation of d
Collecting s (1) to ds (8) as ds7 to ds0 in byte format in 8-bit parallel, input data is input in serial binary units, and data is output in parallel in byte units. As a result, the input data can be scrambled in units of 8 bits,
Since the scrambled output data can be obtained in the byte format, the scrambled data obtained in the binary format can be converted to byte data by performing serial-parallel conversion each time, unlike the conventional one. By inputting serial data without providing a serial / parallel conversion circuit, there is an effect that it is possible to realize a scramble device that can obtain data scrambled in parallel.

【0144】また、入力側にシフトレジスタを設け、出
力側に論理回路を設けており、データの入出力に関して
は単一のクロックで動作させることができるので、装置
を同期回路として簡単に構築できる効果がある。
Further, since the shift register is provided on the input side and the logic circuit is provided on the output side, and the data input / output can be operated by a single clock, the device can be easily constructed as a synchronous circuit. effective.

【0145】また、本願の請求項8の発明に係るデータ
デスクランブル装置によれば、情報多項式, D(X) =d0 0 +d1 1 +d2 2 +……+dn-2
n-2 +dn-1 n-1 +dn n 生成多項式, G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m ここで、nは8の整数倍、n>m、である。
According to the data descrambling apparatus of the eighth aspect of the present invention, the information polynomial, D (X) = d 0 X 0 + d 1 X 1 + d 2 X 2 + ... + d n-2
X n-2 + d n-1 X n-1 + d n X n generator polynomial, G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X −m + 2 + R −m + 1 X −m + 1 + R −m X −m Here, n is an integer multiple of 8 and n> m.

【0146】で定義されるデータデスクランブル方法を
行うものであり、初期値設定手段により上記剰余多項式
における各係数R-m+k(k=0,1,…,m-1)の初期値R-m+k
(0) =N-m+k(ここで、R-m+k(i) は上記剰余多項式に
おける係数R-m+kがラッチの値であるとしたとき、該ラ
ッチをi回シフトしたときの値である。)を、0あるい
は1に設定し、情報データをバイト単位のデータとして
扱うために、8ビットのパラレルラッチ{In|(m+7)/8
|+1 }段(ここで、In|数式|は、数式で求められる
値の整数部分の値とする)を備えてなり、8ビットの各
ラッチの値と出力端子の出力とが、
The data descrambling method defined by the above is performed, and the initial value R of each coefficient R -m + k (k = 0, 1, ..., M-1) in the remainder polynomial is set by the initial value setting means. -m + k
(0) = N- m + k (where R- m + k (i) is the coefficient R- m + k in the remainder polynomial is the value of the latch, and the latch is shifted i times. Value) is set to 0 or 1 and the information data is treated as byte data.
│ + 1} stages (where, In | numerical formula | is the value of the integer part of the value calculated by the mathematical formula)

【0147】[0147]

【数24】 (Equation 24)

【0148】なる関係を有するような排他的論理和演算
を行ないdo 0 〜do 7 を出力する排他的論理和ブロッ
クと、該排他的論理和ブロックによりデスクランブルさ
れたパラレルデータをシリアルデータに変換する8ビッ
トのパラレルシリアル変換手段と、該パラレルシリアル
変換手段によりシリアルビットに変換されたバイナリデ
ータを出力する出力端子とを備え、バイナリ形式でスク
ランブルされたデータをバイト形式8ビットパラレルで
入力し、これをバイト形式8ビットパラレルでデスクラ
ンブルし、シリアルバイナリ単位でデータ出力するよう
にしたので、8ビットを単位として入力データにスクラ
ンブルをかけることができ、これをシリアルに変換して
スクランブルがかかった出力データとしてバイナリ形式
のものが得られるようにしたので、パラレルの入力デー
タをシリアルに変換したのちにデスクランブルを行う従
来の装置が、9段のレジスタが必要で9回のクロックを
必要としていたのに対し、レジスタの段数が3段で済
み、デスクランブル処理の遅延等が少なくて済むデスク
ランブル装置が得られる効果がある。
An exclusive-OR block that performs an exclusive-OR operation having the following relationship and outputs do 0 to do 7, and parallel data descrambled by the exclusive-OR block are converted into serial data. An 8-bit parallel-serial conversion means and an output terminal for outputting binary data converted into serial bits by the parallel-serial conversion means are provided, and scrambled data in binary format is input in byte format 8-bit parallel. Byte format is descrambled in 8-bit parallel, and data is output in serial binary units, so input data can be scrambled in 8-bit units, and this is converted to serial and scrambled output. You can get data in binary format Since the conventional device that descrambles after converting parallel input data to serial requires nine stages of registers and nine clocks, the number of stages of registers is three. In addition, there is an effect that a descramble device can be obtained in which the delay of the descramble processing is small.

【0149】また、本願の請求項9の発明に係るデータ
スクランブル方法によれば、生成多項式, G(X) =Xm +gm-1 m-1 +gm-2 m-2 +gm-3
m-3 +……+g3 3 +g2 2 +g1 1 +1 の演算を実現し、複数回の連続演算を可能とするリング
状の構成をとるm段のシフトレジスタRm-j(1 ≦j ≦m
)と、上記シフトレジスタのm個の各レジスタに初期
値を設定する初期値設定手段とを備え、上記初期値を設
定した後、入力されるクロックと同期しながら、上記初
期値をシフトし、クロックと同期して入力されるデータ
と最下位のラッチ出力との排他的論理和を出力するデー
タスクランブル方法を行うものであり、情報データをバ
イト単位のデータとして扱うために、8ビットの入力手
段di0〜di7と、8ビットの出力手段ds0〜ds7
と、入力の値、各ラッチの値、及び出力の値の関係が、 ds k=Ro (7) +di k k=0,1,2,……,7 となるようにし、1バイトのデータを出力するごとに、
上記シフトレジスタ内のデータを8回分シフトし、これ
を繰り返すことにより、スクランブルをバイト単位で行
うようにしたので、請求項8の発明までのスクランブ
ル,デスクランブルのような自己完結型のものではな
く、別種のスクランブルに関してそのパラレル化を実現
でき、シリアルでデータを扱う従来のもののように、パ
ラレル入力,パラレル出力をしようとすると、一旦シリ
アルに変換してデスクランブルをして、パラレルに戻し
てデータを出力する手間がなく、8ビットパラレルでデ
ータの入出力を行うことができ、回路が簡単になるとと
もに、入出力が同期タイプの回路で構成できるスクラン
ブル方法を実現できる効果がある。
According to the data scrambling method of the invention of claim 9 of the present application, the generator polynomial, G (X) = X m + g m-1 X m-1 + g m-2 X m-2 + g m- 3 X
m-3 + ... + g 3 X 3 + g 2 X 2 + g 1 X 1 +1 operations are realized, and m-stage shift register Rm-j (1 with a ring-shaped configuration that enables continuous operation multiple times ≤ j ≤ m
) And an initial value setting means for setting an initial value in each of the m registers of the shift register, and after the initial value is set, the initial value is shifted in synchronization with an input clock, A data scramble method for outputting an exclusive OR of the data input in synchronization with the clock and the least significant latch output is performed, and 8-bit input means is used to handle the information data as byte-unit data. di0 to di7 and 8-bit output means ds0 to ds7
And the relationship between the input value, the value of each latch, and the output value are as follows: ds k = Ro (7) + di k k = 0,1,2, ..., 7 Each time you output
The data in the shift register is shifted eight times, and by repeating this, scrambling is performed in byte units. Therefore, the scrambling and descrambling up to the invention of claim 8 is not a self-contained type. , It is possible to realize parallelization for another type of scrambling, and if you try to make parallel input and parallel output like the conventional one that handles data serially, once you convert it to serial, descramble it and return it to parallel. It is possible to input / output data in 8-bit parallel without any trouble of outputting, and to realize a scramble method in which the circuit is simple and the input / output can be configured by a synchronous type circuit.

【0150】また、本願の請求項10の発明に係るデー
タデスクランブル方法によれば、生成多項式, G(X) =Xm +gm-1 m-1 +gm-2 m-2 +gm-3
m-3 +……+g3 3 +g2 2 +g1 1 +1 の演算を実現し、複数回の連続演算を可能とするリング
状の構成をとるm段のシフトレジスタRm-j(1 ≦j ≦m
)と、上記シフトレジスタのm個の各レジスタに初期
値を設定する初期値設定手段とを備え、上記初期値を設
定した後、入力されるクロックと同期しながら初期値を
シフトして、クロックと同期して入力されるデータと最
下位のラッチ出力との排他的論理和を出力するデータデ
スクランブル方法を行うものであり、スクランブルされ
たデータを、バイト単位のデータとして扱い、8ビット
の入力手段ds0〜ds7と、8ビットの出力手段do0〜d
o7と、入力、各ラッチの値と出力との関係が、 do k=Ro (k) +ds k k=0,1,2,……,7 となるようにし、1バイトのデータを出力するごとに、
シフトレジスタ内のデータを8回分シフトし、これを繰
り返すことにより、デスクランブルをバイト単位で行う
ようにしたので、実施の形態8までのスクランブル,デ
スクランブルのような自己完結型のものではなく、別種
のデスクランブルに関してそのパラレル化を実現でき、
シリアルでデータを扱う従来のもののように、パラレル
入力,パラレル出力をしようとすると、一旦シリアルに
変換してデスクランブルをして、パラレルに戻してデー
タを出力する手間がなく、8ビットパラレルでデータの
入出力を行うことができ、回路が簡単になるとともに、
8ビットパラレルでデータの入出力を行うことができ、
入出力が同期タイプの回路で構成できるデスクランブル
方法が得られる効果がある。
According to the data descrambling method of the tenth aspect of the present invention, the generator polynomial, G (X) = X m + g m-1 X m-1 + g m-2 X m-2 + g m -3 X
m-3 + ... + g 3 X 3 + g 2 X 2 + g 1 X 1 +1 operations are realized, and m-stage shift register Rm-j (1 with a ring-shaped configuration that enables continuous operation multiple times ≤ j ≤ m
) And an initial value setting means for setting an initial value in each of the m registers of the shift register. After setting the initial value, the initial value is shifted in synchronism with an input clock to obtain a clock. This is a data descrambling method that outputs an exclusive OR of the data input in synchronization with the least significant latch output. The scrambled data is treated as byte unit data and 8-bit input Means ds0 to ds7 and 8-bit output means do0 to d
The relationship between o7, the input, and the value of each latch and the output is set as follows: do k = Ro (k) + ds k k = 0,1,2, ..., 7 Each time 1-byte data is output To
The data in the shift register is shifted eight times, and by repeating this, descrambling is performed in byte units, so it is not a self-contained type such as scrambling and descrambling up to the eighth embodiment. It is possible to realize parallelization for another type of descramble,
If you try to input and output in parallel like the conventional one that handles data serially, there is no need to convert the data into serial data, descramble it, and then return it to parallel data. I / O can be done and the circuit becomes simple,
Data can be input and output in 8 bit parallel,
There is an effect that a descrambling method can be obtained in which the input / output is composed of a synchronous type circuit.

【0151】また、請求項9の発明により実現されたス
クランブル方法を実行する装置と同様の構成で、デスク
ランブル方法を実行するデスクランブル装置が得られる
効果がある。
Further, there is an effect that a descrambling device for executing the descrambling method can be obtained with the same configuration as the device for executing the scrambling method realized by the invention of claim 9.

【0152】本願の請求項11の発明に係るデータスク
ランブル装置によれば、生成多項式, G(X) =Xm +gm-1 m-1 +gm-2 m-2 +gm-3
m-3 +……+g3 3 +g2 2 +g1 1 +1 の演算を実現し、複数回の連続演算を可能とするリング
状の構成をとるm段のシフトレジスタRm-j(1 ≦j ≦m
)と、上記シフトレジスタのm個の各レジスタに初期
値を設定する初期値設定手段とを備え、上記初期値を設
定した後、入力されるクロックと同期しながら初期値を
シフトして、クロックと同期して入力されるデータと最
下位のラッチ出力との排他的論理和を出力するスクラン
ブルを行うものであり、情報データをバイト単位のデー
タとして扱うために、8ビットの入力手段ds0〜ds7
と、8ビットの出力手段do0〜do7と、入力、各ラッチ
の値と出力との関係が、 ds k=Ro (k) +di k k=0,1,2,……,7 となる排他的論理和回路ブロックを備え、1バイトのデ
ータを出力するごとに、上記シフトレジスタ内のデータ
を8回分シフトし、これを繰り返すことにより、スクラ
ンブルをかけるデータをバイト単位で8ビットパラレル
で入力し、スクランブルされたデータを8ビットパラレ
ルで出力し、バイト形式のスクランブルを行うようにし
たので、請求項8の発明までのスクランブル,デスクラ
ンブルのような自己完結型のものではなく、別種のスク
ランブルに関してそのパラレル化を実現でき、シリアル
でデータを扱う従来のもののように、パラレル入力,パ
ラレル出力をしようとすると、一旦シリアルに変換して
デスクランブルをして、パラレルに戻してデータを出力
する手間がなく、8ビットパラレルでデータの入出力を
行うことができ、回路が簡単になるとともに、入出力が
同期タイプの回路で構成できるスクランブル装置が得ら
れる効果がある。
According to the data scrambling device of the eleventh aspect of the present invention, the generator polynomial, G (X) = X m + g m-1 X m-1 + g m-2 X m-2 + g m-3 X
m-3 + ... + g 3 X 3 + g 2 X 2 + g 1 X 1 +1 operations are realized, and m-stage shift register Rm-j (1 with a ring-shaped configuration that enables continuous operation multiple times ≤ j ≤ m
) And an initial value setting means for setting an initial value in each of the m registers of the shift register. After setting the initial value, the initial value is shifted in synchronism with an input clock to obtain a clock. Is a scramble for outputting the exclusive OR of the data input in synchronism with the lowest latch output, and 8-bit input means ds0 to ds7 for handling the information data as byte unit data.
And the relationship between the 8-bit output means do0 to do7 and the value of each input and each latch and the output is ds k = Ro (k) + di k k = 0,1,2, ..., 7 A logical sum circuit block is provided, and each time one byte of data is output, the data in the shift register is shifted eight times, and by repeating this, the data to be scrambled is input in 8-bit parallel in byte units, Since the scrambled data is output in 8-bit parallel to perform the scrambling in the byte format, the scrambling and descrambling according to the invention of claim 8 is not a self-contained type, but a scrambling of another type. Parallelization can be realized, and when parallel input and parallel output are attempted like the conventional one that handles data serially, it is converted to serial once and descrambled. The scrambler is capable of inputting / outputting data in 8-bit parallel without the trouble of loading the data and returning it to parallel and outputting the data, and the circuit is simple and the input / output can be configured by a synchronous type circuit. There is an effect that can be obtained.

【0153】また、本願の請求項12の発明に係るデー
タデスクランブル装置によれば、生成多項式, G(X) =Xm +gm-1 m-1 +gm-2 m-2 +gm-3
m-3 +……+g3 3 +g2 2 +g1 1 +1 の演算を実現し、複数回の連続演算を可能とするリング
状の構成をとるm段のシフトレジスタRm-j(1 ≦j ≦m
)と、上記シフトレジスタのm個の各レジスタに初期
値を設定する初期値設定手段とを備え、上記初期値を設
定した後、入力されるクロックと同期しながら初期値を
シフトして、クロックと同期して入力されるデータと最
下位のラッチ出力との排他的論理和を出力するデータデ
スクランブルを行うものであり、スクランブルされたデ
ータをバイト単位のデータとして扱うために、8ビット
の入力手段ds0〜ds7と、8ビットの出力手段do0〜d
o7と、入力、各ラッチの値と出力との関係が、 do k=Ro (k) +ds k k=0,1,2,……,7 となる排他的論理和回路ブロックを備え、1バイトのデ
ータを出力するごとに、シフトレジスタ内のデータを8
回分シフトし、これを繰り返すことにより、バイナリ形
式でスクランブルされたデータをバイト単位で8ビット
パラレルで入力し、デスクランブルされたデータを8ビ
ットパラレルで出力し、デスクランブルを行うようにし
たので、実施の形態8までのスクランブル,デスクラン
ブルのような自己完結型のものではなく、別種のデスク
ランブルに関してそのパラレル化を実現でき、シリアル
でデータを扱う従来のもののように、パラレル入力,パ
ラレル出力をしようとすると、一旦シリアルに変換して
デスクランブルをして、パラレルに戻してデータを出力
する必要がなく、8ビットパラレルでデータの入出力を
行うことができ、回路が簡単になるとともに、入出力が
同期タイプの回路で構成できるデスクランブル装置が得
られる効果がある。また、請求項11の発明によるスク
ランブル装置と同様の構成でデスクランブル装置が得ら
れる効果がある。
According to the data descrambling apparatus of the twelfth aspect of the present invention, the generator polynomial, G (X) = X m + g m-1 X m-1 + g m-2 X m-2 + g m -3 X
m-3 + ... + g 3 X 3 + g 2 X 2 + g 1 X 1 +1 operations are realized, and m-stage shift register Rm-j (1 with a ring-shaped configuration that enables continuous operation multiple times ≤ j ≤ m
) And an initial value setting means for setting an initial value in each of the m registers of the shift register. After setting the initial value, the initial value is shifted in synchronism with an input clock to obtain a clock. Data descramble is performed to output the exclusive OR of the data input in synchronization with the least significant latch output, and the 8-bit input is used to handle the scrambled data as byte unit data. Means ds0 to ds7 and 8-bit output means do0 to d
O7 and the relationship between the input and the value of each latch and the output are: do k = Ro (k) + ds k k = 0,1,2 ,. Each time the data in the
By shifting the number of times and repeating this, the data scrambled in the binary format is input in byte units in 8-bit parallel, the descrambled data is output in 8-bit parallel, and the descramble is performed. It is not a self-contained type such as scramble and descramble up to the eighth embodiment, but parallelization can be realized for another type of descramble, and parallel input and parallel output can be performed like the conventional one that handles data serially. In this case, it is not necessary to convert the data into serial data, descramble the data, and then return the data in parallel to output data. It is possible to input and output data in 8-bit parallel. There is an effect that a descramble device whose output can be composed of a synchronous type circuit is obtained. Further, the descrambling device can be obtained with the same configuration as the scrambling device according to the invention of claim 11.

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

【図1】本発明の実施の形態1によるスクランブル方法
の原理説明図である。
FIG. 1 is a diagram illustrating the principle of a scrambling method according to a first embodiment of the present invention.

【図2】本発明の実施の形態2によるデスクランブル方
法の原理説明図である。
FIG. 2 is a principle explanatory diagram of a descrambling method according to a second embodiment of the present invention.

【図3】本発明の実施の形態3によるデスクランブル方
法の原理説明図である。
FIG. 3 is a principle explanatory diagram of a descrambling method according to a third embodiment of the present invention.

【図4】本発明の実施の形態3におけるデスクランブル
方法の原理説明図である。
FIG. 4 is a principle explanatory diagram of a descrambling method according to a third embodiment of the present invention.

【図5】本発明の実施の形態3におけるデスクランブル
方法の原理説明図である。
FIG. 5 is an explanatory diagram of the principle of the descrambling method according to the third embodiment of the present invention.

【図6】本発明の実施の形態3におけるデスクランブル
方法であって、生成多項式G(x)がG(X) = 1 + X-6 +
X-7である場合の原理説明図である。
FIG. 6 is a descrambling method according to the third embodiment of the present invention, in which the generator polynomial G (x) is G (X) = 1 + X- 6 +.
It is a principle explanatory view in case of being X -7 .

【図7】本発明の実施の形態4によるスクランブル装置
の構成図である。
FIG. 7 is a configuration diagram of a scrambler according to a fourth embodiment of the present invention.

【図8】本発明の実施の形態5によるデスクランブル装
置の構成図である。
FIG. 8 is a configuration diagram of a descrambling device according to a fifth embodiment of the present invention.

【図9】本発明の実施の形態6によるデスクランブル装
置の構成図である。
FIG. 9 is a configuration diagram of a descrambling device according to a sixth embodiment of the present invention.

【図10】本発明の実施の形態7によるスクランブル装
置の構成図である。
FIG. 10 is a configuration diagram of a scrambler according to a seventh embodiment of the present invention.

【図11】本発明の実施の形態8によるデスクランブル
装置の構成図である。
FIG. 11 is a configuration diagram of a descrambling device according to an eighth embodiment of the present invention.

【図12】本発明の実施の形態9によるスクランブル方
法の原理を説明する図である。
FIG. 12 is a diagram illustrating the principle of a scrambling method according to a ninth embodiment of the present invention.

【図13】本発明の実施の形態10によるデスクランブ
ル方法の原理を説明する図である。
FIG. 13 is a diagram for explaining the principle of the descrambling method according to the tenth embodiment of the present invention.

【図14】本発明の実施の形態11によるスクランブル
装置の構成図である。
FIG. 14 is a configuration diagram of a scrambler according to an eleventh embodiment of the present invention.

【図15】本発明の実施の形態12によるデスクランブ
ル装置の構成図である。
FIG. 15 is a configuration diagram of a descrambling device according to a twelfth embodiment of the present invention.

【図16】従来のスクランブル装置及びデスクランブル
装置の構成図である。
FIG. 16 is a block diagram of a conventional scrambler and descrambler.

【図17】従来のスクランブル装置及びデスクランブル
装置の構成図である。
FIG. 17 is a block diagram of a conventional scrambler and descrambler.

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

11、21 初期値設定端子 12、22 クロック入力端子 13、23 データ入力端子 14、24 シリアルデータ出力端子 15、25 ラッチ 16、26 係数器 17、27 mod2加算器 18、28 論理回路ブロック 19、29 パラレル出力端子 31、41、51、61 初期値設定端子 32、42、52、62 データ入力端子 33、43、53、63 クロック入力端子 34、44、54、64 8ビットパラレルラッチ 35、45、55、65 係数器 36、46、56、66 mod2加算器 37、47、57、67 データ出力端子 71、81、91、101、111、121、131
初期値設定端子 72、92、102、118、122、132 ビット
クロック入力端子 73、93、103 シリアルシフトレジスタ 74、94、104、123 データ入力端子 75、85、95、105、115 排他的論理和回路
ブロック 76、82、96、106、112 バイトクロック入
力端子 77、97、107 8ビットラッチ 78、108、128 スクランブルデータ出力端子 79、117 パラレルシリアル変換回路 83、113、133 スクランブルデータ入力端子 84、114 8ビットパラレルシフトレジスタ 86、98、116、138 デスクランブルデータ出
力端子 124、134 ラッチ 125、135 係数器 126、136 mod2加算器 127、137 論理回路ブロック 141、151 初期値設定端子 142、152 ビットクロック入力端子 143、153 シリアルシフトレジスタ 144 データ入力端子 145、155 mod2加算器 146 スクランブルデータ出力端子 147、157 バイトクロック入力端子 148、158 8ビットラッチ 154 スクランブルデータ入力端子 156 デスクランブルデータ出力端子 161、171 データ入力端子 162、172 スクランブルデータ入力端子 163、173 レジスタ 164、174 mod2加算器 165、175 初期設定値テーブル 166、176 スクランブルデータ入力端子 167、177 データ出力端子
11, 21 Initial value setting terminal 12, 22 Clock input terminal 13, 23 Data input terminal 14, 24 Serial data output terminal 15, 25 Latch 16, 26 Coefficient unit 17, 27 mod2 adder 18, 28 Logic circuit block 19, 29 Parallel output terminal 31, 41, 51, 61 Initial value setting terminal 32, 42, 52, 62 Data input terminal 33, 43, 53, 63 Clock input terminal 34, 44, 54, 64 8-bit parallel latch 35, 45, 55 , 65 Coefficient multiplier 36, 46, 56, 66 mod2 adder 37, 47, 57, 67 Data output terminal 71, 81, 91, 101, 111, 121, 131
Initial value setting terminal 72, 92, 102, 118, 122, 132 Bit clock input terminal 73, 93, 103 Serial shift register 74, 94, 104, 123 Data input terminal 75, 85, 95, 105, 115 Exclusive OR Circuit block 76, 82, 96, 106, 112 Byte clock input terminal 77, 97, 107 8-bit latch 78, 108, 128 Scrambled data output terminal 79, 117 Parallel-serial conversion circuit 83, 113, 133 Scrambled data input terminal 84, 114 8-bit parallel shift register 86, 98, 116, 138 descramble data output terminal 124, 134 latch 125, 135 coefficient unit 126, 136 mod2 adder 127, 137 logic circuit block 141, 151 initial value setting terminal 142, 152 bit clock input terminals 143, 153 serial shift register 144 data input terminal 145, 155 mod2 adder 146 scrambled data output terminal 147, 157 byte clock input terminal 148, 158 8-bit latch 154 scrambled data input terminal 156 descrambled data Output terminals 161, 171 Data input terminals 162, 172 Scrambled data input terminals 163, 173 Registers 164, 174 mod2 adder 165, 175 Initial setting value table 166, 176 Scrambled data input terminals 167, 177 Data output terminals

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 データスクランブル方法であって、 情報多項式, D(X) =dn n +dn-1 n-1 +dn-2 n-2 +……
+d2 2 +d1 1 +d0 0 生成多項式 G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m で定義されるスクランブル方法を行うものであり、 初期値設定手段により上記剰余多項式における各係数R
-m+k(k=0,1,…,m-1)の初期値R-m+k(0) =N-m+k(こ
こで、R-m+k(i) は上記剰余多項式における係数R-m+k
がラッチの値であるとしたとき、該ラッチをi回シフト
したときの値である。)を、0あるいは1に設定し、 その後、情報データをバイト単位のデータとして扱うた
めに、上記情報多項式の上位から8ビット分に相当する
初回の入力データdn 〜dn-7 に対し、上記生成多項式
で除算する除算を行って、 その剰余多項式の係数, R-m+k(i) =R-m+k+1(i-1) (k=0,1,…,m-1, i=0,
1,…,8, ただしk=m-1, i=8 の場合を除く) R-1(8) =g-1-1(7) +g-2-2(7) +……+g-m+1
-m+1(7) +g-m-m(7) +dn-7 を得、 この除算の剰余結果を、次の初期値とみなして、これら
と次の入力データdn-8 〜dn-15との排他的論理和をと
り、 これらの操作を入力バイナリデータのバイト数分繰り返
し、その繰り返しを行う各単位での排他的論理和の結果
を、バイト単位で、 【数1】 の関係で表したとき、この順次得られるds(1)〜ds(8)
を、ds7〜ds0として一括して取り出すことにより、バ
イナリ形式のスクランブルをバイト形式で行うことを特
徴とするデータスクランブル方法。
1. A data scrambling method comprising: an information polynomial, D (X) = d n X n + d n-1 X n-1 + d n-2 X n-2 + ...
+ D 2 X 2 + d 1 X 1 + d 0 X 0 Generator polynomial G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X- m + 2 + R- m + 1 X- m + 1 + R- m X- m scramble method is performed, and each coefficient R in the remainder polynomial by the initial value setting means.
-m + k (k = 0,1, ..., m-1) initial value R- m + k (0) = N- m + k (where R- m + k (i) is the above remainder polynomial Coefficient R at -m + k
Is the value of the latch and is the value when the latch is shifted i times. ) Is set to 0 or 1 and then, in order to handle the information data as data in byte units, the above-mentioned generation is performed for the first input data dn to dn-7 corresponding to 8 bits from the upper bits of the above information polynomial. The division of the polynomial is performed, and the coefficient of the remainder polynomial, R −m + k (i) = R −m + k + 1 (i-1) (k = 0,1, ..., m-1, i = 0,
1, ..., 8, except when k = m-1, i = 8) R -1 (8) = g -1 R -1 (7) + g -2 R -2 (7) + ...... + g -m + 1
R- m + 1 (7) + g- m R- m (7) + dn -7 is obtained, and the remainder result of this division is regarded as the next initial value, and these and the next input data dn-8 to dn are obtained. -15 and exclusive OR, and repeat these operations for the number of bytes of the input binary data, and the result of the exclusive OR in each unit that repeats is expressed in byte unit as [Equation 1]. When expressed by the relation of, ds (1) to ds (8) obtained in order
Is collectively taken out as ds7 to ds0 to perform binary scrambling in byte format.
【請求項2】 データデスクランブル方法であって、 情報多項式, D(X) =dn n +dn-1 n-1 +dn-2 n-2 +……
+d2 2 +d1 1 +d0 0 生成多項式, G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m で定義されるデスクランブル方法を行うものであり、 初期値設定手段により上記剰余多項式における各係数R
-m+k(k=0,1,…,m-1)の初期値R-m+k(0) =N-m+k(こ
こで、R-m+k(i) は上記剰余多項式における係数R-m+k
がラッチの値であるとしたとき、該ラッチをi回シフト
したときの値である。)を、0あるいは1に設定し、 その後、情報データをバイト単位のデータとして扱うた
めに、情報多項式の上位から8ビット分であるdn 〜d
n-7 に対し、生成多項式で乗算する乗算を行い、 その際、その乗算を実現させるために構成されたシフト
レジスタの各ラッチの係数を、 R-m+k(i) =R-m+k+1(i-1) (k=0,1,…,m-1, i=0,
1,…,8, ただしk=m-1, i=8 の場合を除く) R-1(8) =dn-7 とし、 この乗算を実現させるために構成されたシフトレジスタ
の各ラッチに演算後残されているデータを、次の初期値
とみなして、これらと次の入力データdn-8 〜dn-15と
の排他的論理和をとり、 この後者の操作を入力バイナリデータのバイト数分繰り
返し、その繰り返しを行う各単位での排他的論理和の結
果を、バイト単位で、 【数2】 の関係で表したとき、この順次得られるdo(1)〜do(8)
を、do7〜do0として一括して取り出すことにより、バ
イナリ形式のスクランブルされたデータに対し、バイト
形式でデスクランブルを行うことを特徴とするデータデ
スクランブル方法。
2. A data descrambling method comprising: an information polynomial, D (X) = d n X n + d n-1 X n-1 + d n-2 X n-2 + ...
+ D 2 X 2 + d 1 X 1 + d 0 X 0 generator polynomial, G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X- m + 2 + R- m + 1 X- m + 1 + R- m X- m The descrambling method is performed, and each coefficient R in the remainder polynomial is set by the initial value setting means.
-m + k (k = 0,1, ..., m-1) initial value R- m + k (0) = N- m + k (where R- m + k (i) is the above remainder polynomial Coefficient R at -m + k
Is the value of the latch and is the value when the latch is shifted i times. ) Is set to 0 or 1, and thereafter, in order to handle the information data as data in byte units, dn to d, which are 8 bits from the high order of the information polynomial.
n-7 is multiplied by a generator polynomial, and at that time, the coefficient of each latch of the shift register configured to realize the multiplication is R -m + k (i) = R -m + k + 1 (i-1) (k = 0,1, ..., m-1, i = 0,
1, ..., 8, except when k = m-1, i = 8) R −1 (8) = d n-7, and each latch of the shift register configured to realize this multiplication The data remaining after the operation is regarded as the next initial value, the exclusive OR of these and the next input data dn-8 to dn-15 is taken, and this latter operation is performed by the number of bytes of the input binary data. Minutes, and the result of the exclusive OR in each unit which repeats the repetition is expressed in byte units as follows: When expressed in the relationship of, do (1) to do (8) obtained sequentially
Is descrambled in a byte format for the scrambled data in a binary format by collectively extracting the data as do7 to do0.
【請求項3】 データデスクランブル方法であって、 情報多項式, D(X) =d0 0 +d1 1 +d2 2 +……+dn-2
n-2 +dn-1 n-1 +dn n 生成多項式, G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m で定義されるデスクランブル方法を行うものであり、 初期値設定手段により上記剰余多項式における各係数R
-m+k(k=0,1,…,m-1)の初期値R-m+k(0) =N-m+k(こ
こで、R-m+k(i) は剰余多項式における係数R-m+kがラ
ッチの値であるとしたとき、該ラッチをi回シフトした
ときの値である。)を、0あるいは1に設定し、 その後、情報データをバイト単位のデータとして扱うた
めに、8ビットのパラレルラッチ{In|(m+7)/8|+1
}段(ここで、In|数式|は、数式で求められる値の
整数部分の値とする)で構成してなり、8ビットの各ラ
ッチの値と出力端子の出力とが、 【数3】 なる関係を有するような排他的論理和演算を行なう排他
的論理和ブロックを構成しdo 0 〜do 7 を出力するこ
とにより、バイナリ形式でスクランブルされたデータを
バイト形式8ビットパラレルで入力し、該入力をデスク
ランブルしたものをバイト形式8ビットパラレルで出力
することを特徴とするデータデスクランブル方法。
3. A data descrambling method comprising: an information polynomial, D (X) = d 0 X 0 + d 1 X 1 + d 2 X 2 + ... + d n-2.
X n-2 + d n-1 X n-1 + d n X n generator polynomial, G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X- m + 2 + R- m + 1 X- m + 1 + R- m X- m The descrambling method is performed, and each coefficient R in the remainder polynomial is set by the initial value setting means.
initial value of -m + k (k = 0,1, ..., m-1) R- m + k (0) = N- m + k (where R- m + k (i) is the remainder polynomial When the coefficient R −m + k is the value of the latch, it is a value when the latch is shifted i times) is set to 0 or 1, and then the information data is treated as byte-unit data. For 8-bit parallel latch {In | (m + 7) / 8 | +1
} (Where, In | numerical formula | is the value of the integer part of the value obtained by the mathematical formula), and the value of each 8-bit latch and the output of the output terminal are as follows. By constructing an exclusive-OR block that performs an exclusive-OR operation having the following relationship and outputting do 0 to do 7, the scrambled data in binary format is input in byte format 8-bit parallel, and A data descrambling method characterized in that a descrambled input is output in byte format 8-bit parallel.
【請求項4】 データスクランブル装置であって、 情報多項式, D(X) =dn n +dn-1 n-1 +dn-2 n-2 +……
+d2 2 +d1 1 +d0 0 生成多項式, G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m で定義されるスクランブル方法を行うものであり、 初期値設定手段により上記剰余多項式における各係数R
-m+k(k=0,1,…,m-1)の初期値R-m+k(0) =N-m+k(こ
こで、R-m+k(i) は剰余多項式における係数R-m+kがラ
ッチの値であるとしたとき、該ラッチをi回シフトした
ときの値である。)を、0あるいは1に設定し、 その後、情報データをバイト単位のデータとして扱うた
めに、情報多項式の上位から8ビット分であるdn 〜d
n-7 に対し、生成多項式で除算する除算を行って、 その剰余多項式の係数, R-m+k(i) =R-m+k+1(i-1) (k=0,1,…,m-1, i=0,
1,…,8, ただしk=m-1, i=8 の場合を除く) R-1(8) =g-1-1(7) +g-2-2(7) +……+g-m+1
-m+1(7) +g-m-m(7) +dn-7 を得、 上記初期値N-m+k と、その初期値N-m+k に8回シフトし
た結果各ラッチが持っている係数をかけ合わせたものと
の排他的論理和をとり、 この排他的論理和の剰余結果を、次の初期値とみなし
て、これらと次の入力データdn-8 〜dn-15との排他的
論理和をとり、 この後者の操作を入力バイナリデータのバイト数分繰り
返し、その繰り返しを行う各単位での排他的論理和の結
果を、バイト単位で、 【数4】 の関係で表したとき、この順次得られるds(1)〜ds(8)
を、ds7〜ds0として一括して取り出すことにより、バ
イナリ形式で入力されたデータを、バイト形式8ビット
パラレルでスクランブルし、該スクランブルしたデータ
をバイト形式8ビットパラレルで出力することを特徴と
するデータスクランブル装置。
4. A data scrambler, comprising: an information polynomial, D (X) = d n X n + d n-1 X n-1 + d n-2 X n-2 +.
+ D 2 X 2 + d 1 X 1 + d 0 X 0 generator polynomial, G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X- m + 2 + R- m + 1 X- m + 1 + R- m X- m scramble method is performed, and each coefficient R in the remainder polynomial by the initial value setting means.
initial value of -m + k (k = 0,1, ..., m-1) R- m + k (0) = N- m + k (where R- m + k (i) is the remainder polynomial When the coefficient R −m + k is the value of the latch, it is a value when the latch is shifted i times) is set to 0 or 1, and then the information data is treated as byte-unit data. Therefore, dn to d, which are the 8 bits from the high order of the information polynomial
The division of n-7 by the generator polynomial is performed, and the coefficient of the remainder polynomial, R -m + k (i) = R -m + k + 1 (i-1) (k = 0,1, … , M-1, i = 0,
1, ..., 8, except when k = m-1, i = 8) R -1 (8) = g -1 R -1 (7) + g -2 R -2 (7) + ...... + g -m + 1
R- m + 1 (7) + g- m R- m (7) + d n-7 is obtained, and the above initial value N-m + k and its initial value N-m + k are shifted eight times, resulting in each latch Takes the exclusive OR with the product of the coefficients and holds the remainder result of this exclusive OR as the next initial value, and these and the next input data dn-8 to dn-15 And the exclusive OR with this, the latter operation is repeated for the number of bytes of the input binary data, and the result of the exclusive OR in each unit that repeats is expressed in byte units as When expressed by the relation of, ds (1) to ds (8) obtained in order
By collectively extracting as ds7 to ds0, the data input in the binary format is scrambled in byte format 8-bit parallel, and the scrambled data is output in byte format 8-bit parallel. Scrambler.
【請求項5】 データデスクランブル装置であって、 情報多項式, D(X) =d0 0 +d1 1 +d2 2 +……+dn-2
n-2 +dn-1 n-1 +dn n 生成多項式, G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m で定義されるデスクランブル方法を行うものであり、 初期値設定手段により上記剰余多項式における各係数R
-m+k(k=0,1,…,m-1)の初期値R-m+k(0) =N-m+k(こ
こで、R-m+k(i) は上記剰余多項式における係数R-m+k
がラッチの値であるとしたとき、該ラッチをi回シフト
したときの値である。)を、0あるいは1に設定し、 その後、情報データをバイト単位のデータとして扱うた
めに、8ビットのパラレルラッチ{In|(m+7)/8|+1
}段(ここで、In|数式|は、数式で求められる値の
整数部分の値とする)で構成してなり、8ビットの各ラ
ッチの値と出力端子の出力とが、 【数5】 なる関係を有するような排他的論理和演算を行ないdo
0 〜do 7 を出力する排他的論理和ブロックを備えてな
り、 バイナリ形式でスクランブルされたデータをバイト形式
8ビットパラレルで入力し、該入力をデスクランブルし
たものを、バイト形式8ビットパラレルで出力すること
を特徴とするデータデスクランブル装置。
5. A data descrambling device comprising: an information polynomial, D (X) = d 0 X 0 + d 1 X 1 + d 2 X 2 + ... + d n-2.
X n-2 + d n-1 X n-1 + d n X n generator polynomial, G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X- m + 2 + R- m + 1 X- m + 1 + R- m X- m The descrambling method is performed, and each coefficient R in the remainder polynomial is set by the initial value setting means.
-m + k (k = 0,1, ..., m-1) initial value R- m + k (0) = N- m + k (where R- m + k (i) is the above remainder polynomial Coefficient R at -m + k
Is the value of the latch and is the value when the latch is shifted i times. ) Is set to 0 or 1, and then, in order to handle the information data as byte unit data, an 8-bit parallel latch {In | (m + 7) / 8 | +1
} (Where, In | numerical formula | is the value of the integer part of the value obtained by the mathematical formula), and the value of each 8-bit latch and the output of the output terminal are as follows: Do an exclusive OR operation that has the relation
An exclusive OR block that outputs 0 to do 7 is provided, and the data scrambled in binary format is input in byte format 8-bit parallel, and the descrambled input is output in byte format 8-bit parallel. A data descrambling device characterized by:
【請求項6】 データデスクランブル装置であって、 情報多項式, D(X) =dn n +dn-1 n-1 +dn-2 n-2 +……
+d2 2 +d1 1 +d0 0 生成多項式, G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m で定義されるデスクランブル方法を行うものであり、 バイナリ形式シリアルデータ入力端子を備え、 初期値設定手段により上記剰余多項式における各係数R
-m+k(k=0,1,…,m-1)の初期値R-m+k(0) =N-m+k(こ
こで、R-m+k(i) は剰余多項式におけるR-m+kがラッチ
の値であるとしたとき、該ラッチをi回シフトしたとき
の値である。)を、0あるいは1に設定し、 その後、情報データをバイト単位のデータとして扱うた
めに、情報多項式の上位から8ビット分であるdn 〜d
n-7 に対し、生成多項式で乗算する乗算を行い、 その際、その乗算を実現させるために構成されたシフト
レジスタの各ラッチの係数を、 R-m+k(i) =R-m+k+1(i-1) (k=0,1,…,m-1, i=0,
1,…,8, ただしk=m-1, i=8 の場合を除く) ds (8)=g-1-1(7) +g-2-2(7) +……+g-m+1
-m+1(7) +g-m-m(7) +dn-7 とし、 この乗算を実現させるために構成されたシフトレジスタ
の各ラッチに演算後残されているデータを、次の初期値
とみなして、これらと次の入力データdn-8 〜dn-15と
の排他的論理和をとり、 この後者の操作を入力バイナリデータのバイト数分繰り
返し、その繰り返しを行う各単位での排他的論理和の結
果を、バイト単位で、 【数6】 の関係で表したとき、この順次得られるdo(1)〜do(8)
を、do7〜do0として一括して取り出すことにより、バ
イナリ形式でスクランブルされたデータをシリアルバイ
ナリ単位で入力し、該入力をデスクランブルしたもの
を、バイト単位で8ビットパラレルで出力することを特
徴とするデータデスクランブル装置。
6. A data descrambling device comprising: an information polynomial, D (X) = d n X n + d n-1 X n-1 + d n-2 X n-2 + ...
+ D 2 X 2 + d 1 X 1 + d 0 X 0 generator polynomial, G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X- m + 2 + R- m + 1 X- m + 1 + R- m X- m is used for the descrambling method, which is equipped with a binary format serial data input terminal and has the above-mentioned surplus by the initial value setting means. Each coefficient R in the polynomial
initial value of -m + k (k = 0,1, ..., m-1) R- m + k (0) = N- m + k (where R- m + k (i) is the remainder polynomial R −m + k is the value of the latch, it is the value when the latch is shifted i times.) Is set to 0 or 1, and then the information data is treated as byte-unit data. , Dn to d, which are 8 bits from the high order of the information polynomial
n-7 is multiplied by a generator polynomial, and at that time, the coefficient of each latch of the shift register configured to realize the multiplication is R -m + k (i) = R -m + k + 1 (i-1) (k = 0,1, ..., m-1, i = 0,
1, ..., 8, except when k = m-1, i = 8) ds (8) = g -1 R -1 (7) + g -2 R -2 (7) + ...... + g -m +1
R −m + 1 (7) + g −m R −m (7) + d n−7, and the data left after the operation in each latch of the shift register configured to realize this multiplication is Considering these as initial values, the exclusive OR of these and the next input data dn-8 to dn-15 is taken, and this latter operation is repeated for the number of bytes of the input binary data, and in each unit where the repetition is performed. The result of the exclusive OR, in byte units, is given by When expressed in the relationship of, do (1) to do (8) obtained sequentially
Are collectively fetched as do7 to do0 to input the data scrambled in binary format in serial binary units, and descramble the input, and output in 8-bit parallel in byte units. Data descrambling device.
【請求項7】 データスクランブル装置であって、 情報多項式, D(X) =dn n +dn-1 n-1 +dn-2 n-2 +……
+d2 2 +d1 1 +d0 0 生成多項式, G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m で定義されるスクランブル方法を行うものであり、 バイナリ形式シリアルデータ入力端子を有し、 初期値設定手段により上記剰余多項式における各係数R
-m+k(k=0,1,…,m-1)の初期値R-m+k(0) =N-m+k(こ
こで、R-m+k(i) は上記剰余多項式における上記係数R
-m+kがラッチの値であるとしたとき、該ラッチをi回シ
フトしたときの値である。)を、0あるいは1に設定
し、 その後、情報データをバイト単位のデータとして扱うた
めに、情報多項式の上位から8ビット分であるdn 〜d
n-7 に対し、生成多項式で割算する除算を行って、 その剰余多項式の係数として、 R-m+k(i) =R-m+k+1(i-1) (k=0,1,…,m-2 ) R-1(8) =g-1-1(7) +g-2-2(7) +……+g-m+1
-m+1(7) +g-m-m(7) +dn-7 を得、 この除算の剰余結果を、次の初期値とみなして、これら
と次の入力データdn-8〜dn-15 との排他的論理和をと
り、 この後者の操作を入力バイナリデータのバイト数分繰り
返し、その繰り返しを行う各単位での排他的論理和の結
果を、バイト単位で、 【数7】 の関係で表したとき、この順次得られるds(1)〜ds(8)
を、ds7〜ds0としてバイト形式8ビットパラレルで一
括して取り出すことにより、入力データをシリアルバイ
ナリ単位で入力し、バイト単位でパラレルにデータの出
力を行うことを特徴とするデータスクランブル装置。
7. A data scrambler, comprising: an information polynomial, D (X) = d n X n + d n-1 X n-1 + d n-2 X n-2 + ...
+ D 2 X 2 + d 1 X 1 + d 0 X 0 generator polynomial, G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X- m + 2 + R- m + 1 X- m + 1 + R- m X- m The scrambling method is performed, which has a binary format serial data input terminal and the above-mentioned remainder by the initial value setting means. Each coefficient R in the polynomial
-m + k (k = 0,1, ..., m-1) initial value R- m + k (0) = N- m + k (where R- m + k (i) is the remainder polynomial The above coefficient R in
When -m + k is the value of the latch, it is the value when the latch is shifted i times. ) Is set to 0 or 1, and thereafter, in order to handle the information data as data in byte units, dn to d, which are 8 bits from the high order of the information polynomial.
The division of n-7 by the generator polynomial is performed, and the coefficient of the remainder polynomial is R -m + k (i) = R -m + k + 1 (i-1) (k = 0, 1, ..., m-2) R -1 (8) = g -1 R -1 (7) + g -2 R -2 (7) + ...... + g -m + 1
R- m + 1 (7) + g- m R- m (7) + dn -7 is obtained, and the remainder result of this division is regarded as the next initial value, and these and the next input data dn-8 to dn -15 and exclusive OR, and repeat this latter operation for the number of bytes of input binary data, and the result of exclusive OR in each unit that repeats is When expressed by the relation of, ds (1) to ds (8) obtained in order
Is input as input data in serial binary units and outputs data in parallel in byte units by collectively taking out as a ds7 to ds0 in byte format 8-bit parallel.
【請求項8】 データデスクランブル装置において、 情報多項式, D(X) =d0 0 +d1 1 +d2 2 +……+dn-2
n-2 +dn-1 n-1 +dn n 生成多項式, G(X) =1+g-1-1+g-2-2+……+g-m+2-m+2
+g-m+1-m+1+g-m-m 及び剰余多項式, R(X) =R-1-1+R-2-2+R-3-3+……+R-m+2
-m+2+R-m+1-m+1+R-m-m ここで、nは8の整数倍、n>m、である。で定義され
るデータデスクランブル方法を行うものであり、 初期値設定手段により上記剰余多項式における各係数R
-m+k(k=0,1,…,m-1)の初期値R-m+k(0) =N-m+k(こ
こで、R-m+k(i) は上記剰余多項式における係数R-m+k
がラッチの値であるとしたとき、該ラッチをi回シフト
したときの値である。)を、0あるいは1に設定し、 情報データをバイト単位のデータとして扱うために、8
ビットのパラレルラッチ{In|(m+7)/8|+1 }段(こ
こで、In|数式|は、数式で求められる値の整数部分の
値とする)を備えてなり、 8ビットの各ラッチの値と出力端子の出力とが、 【数8】 なる関係を有するような排他的論理和演算を行ないdo
0 〜do 7 を出力する排他的論理和ブロックと、 該排他的論理和ブロックによりデスクランブルされたパ
ラレルデータをシリアルデータに変換する8ビットのパ
ラレルシリアル変換手段と、 該パラレルシリアル変換手段によりシリアルビットに変
換されたバイナリデータを出力する出力端子とを備え、 バイナリ形式でスクランブルされたデータをバイト形式
8ビットパラレルで入力し、これをバイト形式8ビット
パラレルでデスクランブルし、シリアルバイナリ単位で
データ出力することを特徴とするデータデスクランブル
装置。
8. In a data descrambler, an information polynomial, D (X) = d 0 X 0 + d 1 X 1 + d 2 X 2 + ... + d n-2
X n-2 + d n-1 X n-1 + d n X n generator polynomial, G (X) = 1 + g -1 X -1 + g -2 X -2 + ... + g -m + 2 X -m + 2
+ G -m + 1 X -m + 1 + g -m X -m and remainder polynomial, R (X) = R -1 X -1 + R -2 X -2 + R -3 X -3 + ... + R -m + 2
X −m + 2 + R −m + 1 X −m + 1 + R −m X −m Here, n is an integer multiple of 8 and n> m. The data descrambling method defined by the above is performed, and each coefficient R in the remainder polynomial is set by the initial value setting means.
-m + k (k = 0,1, ..., m-1) initial value R- m + k (0) = N- m + k (where R- m + k (i) is the above remainder polynomial Coefficient R at -m + k
Is the value of the latch and is the value when the latch is shifted i times. ) Is set to 0 or 1, and 8 is used to handle the information data as byte-unit data.
A parallel latch of bits {In | (m + 7) / 8 | +1} stages (where In | numerical formula | is the value of the integer part of the value calculated by the mathematical formula) is provided, and each latch of 8 bits is The value and the output of the output terminal are Do an exclusive OR operation that has the relation
An exclusive OR block that outputs 0 to do 7, an 8-bit parallel-serial conversion unit that converts parallel data descrambled by the exclusive OR block into serial data, and a serial bit by the parallel-serial conversion unit It has an output terminal that outputs the binary data converted to, input the scrambled data in binary format in byte format 8-bit parallel, descramble this in byte format 8-bit parallel, and output the data in serial binary units. A data descrambling device characterized by:
【請求項9】 データスクランブル方法において、 生成多項式, G(X) =Xm +gm-1 m-1 +gm-2 m-2 +gm-3
m-3 +……+g3 3 +g2 2 +g1 1 +1 の演算を実現し、複数回の連続演算を可能とするリング
状の構成をとるm段のシフトレジスタRm-j(1 ≦j ≦m
)と、 上記シフトレジスタのm個の各レジスタに初期値を設定
する初期値設定手段とを備え、 上記初期値を設定した後、入力されるクロックと同期し
ながら、上記初期値をシフトし、クロックと同期して入
力されるデータと最下位のラッチ出力との排他的論理和
を出力するデータスクランブル方法を行うものであり、 情報データをバイト単位のデータとして扱うために、8
ビットの入力手段di0〜di7と、8ビットの出力手段d
s0〜ds7と、入力の値、各ラッチの値、及び出力の値の
関係が、 ds k=Ro (7) +di k k=0,1,2,……,7 となるようにし、1バイトのデータを出力するごとに、
上記シフトレジスタ内のデータを8回分シフトし、これ
を繰り返すことにより、スクランブルをバイト単位で行
うことを特徴とするデータスクランブル方法。
9. A data scrambling method, wherein a generator polynomial, G (X) = X m + g m-1 X m-1 + g m-2 X m-2 + g m-3 X
m-3 + ... + g 3 X 3 + g 2 X 2 + g 1 X 1 +1 operations are realized, and m-stage shift register Rm-j (1 with a ring-shaped configuration that enables continuous operation multiple times ≤ j ≤ m
) And an initial value setting means for setting an initial value in each of the m registers of the shift register, and after the initial value is set, the initial value is shifted in synchronization with an input clock, This is a data scramble method that outputs the exclusive OR of the data input in synchronization with the clock and the least significant latch output. To handle the information data as byte unit data, 8
Bit input means di0 to di7 and 8-bit output means d
The relationship between s0 to ds7, the input value, the value of each latch, and the output value is as follows: ds k = Ro (7) + di k k = 0,1,2, ..., 7 Every time the data of
A data scrambling method characterized in that the data in the shift register is shifted eight times, and this is repeated to perform scrambling in byte units.
【請求項10】 データデスクランブル方法であって、 生成多項式, G(X) =Xm +gm-1 m-1 +gm-2 m-2 +gm-3
m-3 +……+g3 3 +g2 2 +g1 1 +1 の演算を実現し、複数回の連続演算を可能とするリング
状の構成をとるm段のシフトレジスタRm-j(1 ≦j ≦m
)と、 上記シフトレジスタのm個の各レジスタに初期値を設定
する初期値設定手段とを備え、 上記初期値を設定した後、入力されるクロックと同期し
ながら初期値をシフトして、クロックと同期して入力さ
れるデータと最下位のラッチ出力との排他的論理和を出
力し、 スクランブルされたデータを、バイト単位のデータとし
て扱い、8ビットの入力手段ds0〜ds7と、8ビットの
出力手段do0〜do7と、入力、各ラッチの値と出力との
関係が、 do k=Ro (k) +ds k k=0,1,2,……,7 となるようにし、1バイトのデータを出力するごとに、
シフトレジスタ内のデータを8回分シフトし、これを繰
り返すことにより、デスクランブルをバイト単位で行う
ことを特徴とするデータデスクランブル方法。
10. A data descrambling method comprising: a generator polynomial, G (X) = X m + g m-1 X m-1 + g m-2 X m-2 + g m-3 X.
m-3 + ... + g 3 X 3 + g 2 X 2 + g 1 X 1 +1 operations are realized, and m-stage shift register Rm-j (1 with a ring-shaped configuration that enables continuous operation multiple times ≤ j ≤ m
) And an initial value setting means for setting an initial value in each of the m registers of the shift register. After the initial value is set, the initial value is shifted in synchronization with an input clock to obtain a clock. The exclusive OR of the data input in synchronization with the least significant latch output is output, and the scrambled data is treated as byte unit data, and the 8-bit input means ds0 to ds7 and the 8-bit input means The relationship between the output means do0 to do7, the input and the value of each latch, and the output is set as follows: do k = Ro (k) + ds k k = 0,1,2, ... Each time you output
A data descrambling method characterized in that the data in the shift register is shifted eight times, and this is repeated to perform descrambling in byte units.
【請求項11】 データスクランブル装置であって、 生成多項式, G(X) =Xm +gm-1 m-1 +gm-2 m-2 +gm-3
m-3 +……+g3 3 +g2 2 +g1 1 +1 の演算を実現し、複数回の連続演算を可能とするリング
状の構成をとるm段のシフトレジスタRm-j(1 ≦j ≦m
)と、 上記シフトレジスタのm個の各レジスタに初期値を設定
する初期値設定手段とを備え、 上記初期値を設定した後、入力されるクロックと同期し
ながら初期値をシフトして、クロックと同期して入力さ
れるデータと最下位のラッチ出力との排他的論理和を出
力するスクランブルを行うものであり、 情報データをバイト単位のデータとして扱うために、8
ビットの入力手段ds0〜ds7と、8ビットの出力手段d
o0〜do7と、入力、各ラッチの値と出力との関係が、 ds k=Ro (k) +di k k=0,1,2,……,7 となる排他的論理和回路ブロックを備え、 1バイトのデータを出力するごとに、上記シフトレジス
タ内のデータを8回分シフトし、 これを繰り返すことにより、スクランブルをかけるデー
タをバイト単位で8ビットパラレルで入力し、スクラン
ブルされたデータを8ビットパラレルで出力し、バイト
形式のスクランブルを行うことを特徴とするデータスク
ランブル装置。
11. A data scrambler, comprising: a generator polynomial, G (X) = X m + g m-1 X m-1 + g m-2 X m-2 + g m-3 X
m-3 + ... + g 3 X 3 + g 2 X 2 + g 1 X 1 +1 operations are realized, and m-stage shift register Rm-j (1 with a ring-shaped configuration that enables continuous operation multiple times ≤ j ≤ m
) And an initial value setting means for setting an initial value in each of the m registers of the shift register. After the initial value is set, the initial value is shifted in synchronization with an input clock to obtain a clock. This is a scramble that outputs the exclusive OR of the data input in synchronization with the least significant latch output. In order to handle the information data as byte unit data,
Bit input means ds0 to ds7 and 8-bit output means d
The relationship between o0 to do7 and the input and the value of each latch and the output is provided with an exclusive OR circuit block in which ds k = Ro (k) + di k k = 0,1,2, ..., 7, Each time one byte of data is output, the data in the shift register is shifted eight times, and by repeating this, the data to be scrambled is input in 8-bit parallel units, and the scrambled data is 8-bit data. A data scrambler which outputs in parallel and scrambles in byte format.
【請求項12】 データデスクランブル装置であって、 生成多項式, G(X) =Xm +gm-1 m-1 +gm-2 m-2 +gm-3
m-3 +……+g3 3 +g2 2 +g1 1 +1 の演算を実現し、複数回の連続演算を可能とするリング
状の構成をとるm段のシフトレジスタRm-j(1 ≦j ≦m
)と、 上記シフトレジスタのm個の各レジスタに初期値を設定
する初期値設定手段とを備え、 上記初期値を設定した後、入力されるクロックと同期し
ながら初期値をシフトして、クロックと同期して入力さ
れるデータと最下位のラッチ出力との排他的論理和を出
力し、 スクランブルされたデータをバイト単位のデータとして
扱うために、8ビットの入力手段ds0〜ds7と、8ビッ
トの出力手段do0〜do7と、入力、各ラッチの値と出力
との関係が、 do k=Ro (k) +ds k k=0,1,2,……,7 となる排他的論理和回路ブロックを備え、 1バイトのデータを出力するごとに、シフトレジスタ内
のデータを8回分シフトし、 これを繰り返すことにより、バイナリ形式でスクランブ
ルされたデータをバイト単位で8ビットパラレルで入力
し、デスクランブルされたデータを8ビットパラレルで
出力し、デスクランブルを行うことを特徴とするデータ
デスクランブル装置。
12. A data descrambling device comprising: a generator polynomial, G (X) = X m + g m-1 X m-1 + g m-2 X m-2 + g m-3 X
m-3 + ... + g 3 X 3 + g 2 X 2 + g 1 X 1 +1 operations are realized, and m-stage shift register Rm-j (1 with a ring-shaped configuration that enables continuous operation multiple times ≤ j ≤ m
) And an initial value setting means for setting an initial value in each of the m registers of the shift register. After the initial value is set, the initial value is shifted in synchronization with an input clock to obtain a clock. An 8-bit input means ds0 to ds7 and an 8-bit input means for outputting the exclusive OR of the data input in synchronization with the least significant latch output and handling the scrambled data as byte unit data. Of the output means do0 to do7, the input and the value of each latch, and the output are as follows: do k = Ro (k) + ds k k = 0,1,2, ..., 7 Each time 1-byte data is output, the data in the shift register is shifted 8 times, and by repeating this, the scrambled data in binary format is input in 8-bit parallel in byte units and descrambled. Le data were output in 8-bit parallel data descrambling apparatus characterized by performing descrambling.
JP8142438A 1995-06-05 1996-06-05 Method and device for scrambling data, and method and device for descrambling data Pending JPH0955732A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8142438A JPH0955732A (en) 1995-06-05 1996-06-05 Method and device for scrambling data, and method and device for descrambling data

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP13766395 1995-06-05
JP7-137663 1995-06-05
JP8142438A JPH0955732A (en) 1995-06-05 1996-06-05 Method and device for scrambling data, and method and device for descrambling data

Publications (1)

Publication Number Publication Date
JPH0955732A true JPH0955732A (en) 1997-02-25

Family

ID=26470904

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8142438A Pending JPH0955732A (en) 1995-06-05 1996-06-05 Method and device for scrambling data, and method and device for descrambling data

Country Status (1)

Country Link
JP (1) JPH0955732A (en)

Similar Documents

Publication Publication Date Title
KR100267009B1 (en) Method and device for modular multiplication
US4797848A (en) Pipelined bit-serial Galois Field multiplier
ATE193606T1 (en) COMPUTING DEVICE AND METHOD FOR ENCRYPTING/DECRYPTING COMMUNICATIONS DATA USING THE SAME
JPH06276175A (en) Parallel scramble system
EP1866741B1 (en) Canonical signed digit multiplier
US5267316A (en) Synchronous system for parallel data scrambling
US5966447A (en) Data scrambling method, data scrambling apparatus, data descrambling method, and data descrambling apparatus
JP4035195B2 (en) Method and apparatus for digital signal processing
US5978486A (en) Data scrambling method, data scrambling apparatus, data descrambling method, and data descrambling apparatus
JPS61500407A (en) Self-synchronous scrambler
CN102025696A (en) Parallel scrambling and descrambling processing device and method
JPH0955732A (en) Method and device for scrambling data, and method and device for descrambling data
JP3962023B2 (en) CDMA system transmission matrix coefficient calculation
US20050086278A1 (en) Method and apparatus for performing multiplication in finite field GF(2n)
JPH08242141A (en) Digital filter
JP4472808B2 (en) Multiply-accumulate device and encryption / decryption device using the same
JPH077941B2 (en) Secret story method
EP1465058A2 (en) Method and apparatus for performing modular multiplication
JP3948970B2 (en) Code generator, semiconductor device and receiver
JPH05299973A (en) Decimation filter
JP3050028B2 (en) Encryption key generation circuit for multiple remainder encryption
LoCicero et al. Realization of ADM arithmetic signal processors
JPH0435417A (en) Oversample analog/digital converter
JPH11110241A (en) Multiplication method for galois field and multiplication circuit therefor
JP2000151361A (en) Matched filter

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050607

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20051018