JPH10215187A - Error detection encoding and decoding device and method - Google Patents

Error detection encoding and decoding device and method

Info

Publication number
JPH10215187A
JPH10215187A JP9015207A JP1520797A JPH10215187A JP H10215187 A JPH10215187 A JP H10215187A JP 9015207 A JP9015207 A JP 9015207A JP 1520797 A JP1520797 A JP 1520797A JP H10215187 A JPH10215187 A JP H10215187A
Authority
JP
Japan
Prior art keywords
bit string
bit
input
redundant
exclusive
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
JP9015207A
Other languages
Japanese (ja)
Inventor
Mako Morigami
まこ 森上
Katsuhiro Nakamura
勝洋 中村
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP9015207A priority Critical patent/JPH10215187A/en
Publication of JPH10215187A publication Critical patent/JPH10215187A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To shorten an arithmetic time that is taken for error detection encoding and decoding and to reduce a needed memory capacity. SOLUTION: An exclusive-OR output of an input bit string that is divided into prescribed bit nurthers and a part of a held redundant bit string is divided into plural blocks by a block dividing means 2, and a block arithmetic means 3-i performs arithmetic processing to calculate remainder when a code polynomial corresponding to a bit string in each block is divided by a prescribed generating polynomial. A cumulative exclusive-OR operation means 4 takes cumulative exclusive-OR of a operation result that is calculated in each block and a part of the held redundant bit string, also outputs the operation result as a new redundant bit string that corresponds to bit strings which are inputted so far to an output terminal 5, adds it to an information bit string and outputs it when a used place is an error detection encoder and uses it to generates a test bit string when it is an error detection decoder.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は誤り検出符号化復号
装置および方法に関し、特にデータ列の誤り検出を行う
誤り検出符号化復号装置および方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an error detection coding / decoding apparatus and method, and more particularly to an error detection coding / decoding apparatus and method for detecting an error in a data string.

【0002】[0002]

【従来の技術】従来の誤り検出符号化および復号装置と
して、例えば、“笠原芳郎著、「情報理論と通信方
式」、共立出版、昭和40年(1965年)発行”に示されるよ
うな次のものが知られている。誤り検出符号化装置は、
情報ビット列に対する符号多項式を所定の生成多項式で
除算した剰余を冗長ビット列とし、情報ビット列に付加
する。また、誤り検出復号装置は、情報ビット列に冗長
ビット列が付加されたビット列、または、情報ビット列
を入力ビット列として入力し、入力ビット列に対する符
号多項式を所定の生成多項式で除算した剰余である検査
ビット列を求め、検査ビット列に基づいて入力ビット列
の誤りを検出する。従来の誤り検出符号化装置の構成例
を図6に示す。図6において、7は入力端子、8はビッ
ト列分割手段、9は排他的論理和演算手段、10は冗長
ビット列演算手段、11は冗長ビット列保持手段、12
は冗長ビット列分割手段、13は出力端子、16はゲー
トである。初期状態として、ゲート16は閉じられてお
り、冗長ビット列保持手段11には初期値が設定され
る。この状態において、入力端子7から情報ビット列
(Nビット)が入力されると、ビット列分割手段8は、
情報ビット列をnビット(n≦N;N/nは整数)ごと
に分割し、この分割されたビット列をそれぞれ順に排他
的論理和演算手段に出力する。冗長ビット列分割手段1
2は、冗長ビット列保持手段11で保持されているビッ
ト列を分割し、nビットのビット列を排他的論理和演算
手段9に、残りのビット列を冗長ビット列演算手段10
に出力する。排他的論理和演算手段9は、ビット列分割
手段8で分割されたnビットの新たな入力ビット列と、
冗長ビット列分割手段12から入力されたビット列との
排他的論理和をとる。一方、冗長ビット列演算手段10
は、排他的論理和演算手段9で得られたビット列に対応
する符号多項式を所定の生成多項式で除算したときの剰
余に対応するビット列と、冗長ビット列分割手段12か
ら入力されたビット列を用いて、それまで入力された情
報ビット列に対応する冗長ビット列を求める演算を行い
出力する。冗長ビット列演算手段10から出力されたビ
ット列は、それまで入力された情報ビット列に対応する
冗長ビット列として、冗長ビット列保持手段11に保持
される。Nビットの情報ビット列に対する冗長ビット列
は、以上の処理をN/n回行った後の冗長ビット列保持
手段11に保持されている値として求められる。情報ビ
ット列の入力に対する処理が終了したとき、ゲート16
を開けることで、情報ビット列に対する冗長ビット列
が、出力端子13に出力される。次に、冗長ビット列演
算手段10の具体的な動作を、図7の冗長ビット列演算
手段のブロック図を用いて説明する。図6での排他的論
理和演算手段9の結果は、図7では入力端子1’から入
力される。除算手段30は、排他的論理和演算手段から
の入力端子1’を介して入力されたビット列に対応する
符号多項式を所定の生成多項式で除算したときの剰余を
求める。冗長ビット列排他的論理和手段40は、除算手
段30で得られた結果と、入力端子6’への入力、すな
わち冗長ビット列分割手段12から入力されるビット列
との排他的論理和をとり、その演算結果を出力端子5’
に出力する。除算手段30の実現方法として、実際にn
ビットの入力ビットに対応する符号多項式に対して所定
の生成多項式による除算を行う方法もあるが、処理速度
を高速にするため、あらかじめ、除算手段30への入力
ビット列に対する符号多項式を生成多項式で除算したと
きの剰余をメモリに保持しておき、このメモリを使用す
る方法がある。この方法の例を図8に示す。除算手段3
0への入力ビット列をアドレス21として、入力ビット
列に対応する演算結果をメモリ22から、出力23とし
て取り出すことで実現できる。
2. Description of the Related Art As a conventional error detection encoding and decoding apparatus, for example, the following one as shown in "Yoshio Kasahara," Information Theory and Communication System ", Kyoritsu Shuppan, published in 1965" The error detection coding device is
The remainder obtained by dividing the code polynomial for the information bit sequence by a predetermined generator polynomial is set as a redundant bit sequence and added to the information bit sequence. Further, the error detection decoding device inputs a bit string obtained by adding a redundant bit string to the information bit string, or an information bit string as an input bit string, and obtains a check bit string which is a remainder obtained by dividing a code polynomial for the input bit string by a predetermined generator polynomial. , An error in the input bit string is detected based on the check bit string. FIG. 6 shows a configuration example of a conventional error detection coding apparatus. In FIG. 6, 7 is an input terminal, 8 is a bit string dividing means, 9 is an exclusive OR operation means, 10 is a redundant bit string operation means, 11 is a redundant bit string holding means, 12
Is a redundant bit string dividing means, 13 is an output terminal, and 16 is a gate. As an initial state, the gate 16 is closed, and the initial value is set in the redundant bit string holding unit 11. In this state, when an information bit string (N bits) is input from the input terminal 7, the bit string dividing means 8
The information bit sequence is divided into n bits (n ≦ N; N / n is an integer), and the divided bit sequences are sequentially output to the exclusive OR operation means. Redundant bit string dividing means 1
2 divides the bit string held in the redundant bit string holding means 11, converts the n-bit bit string into the exclusive OR operation means 9, and converts the remaining bit strings into the redundant bit string operation means 10.
Output to The exclusive OR operation means 9 includes a new input bit string of n bits divided by the bit string division means 8,
The exclusive OR with the bit string input from the redundant bit string dividing means 12 is calculated. On the other hand, the redundant bit string operation means 10
Is calculated by using a bit string corresponding to a remainder obtained by dividing a code polynomial corresponding to the bit string obtained by the exclusive OR operation means 9 by a predetermined generator polynomial, and a bit string input from the redundant bit string dividing means 12. An operation for obtaining a redundant bit string corresponding to the information bit string input up to that time is performed and output. The bit string output from the redundant bit string calculating means 10 is held in the redundant bit string holding means 11 as a redundant bit string corresponding to the information bit string input so far. The redundant bit string for the N-bit information bit string is obtained as a value held in the redundant bit string holding unit 11 after performing the above processing N / n times. When the processing for the input of the information bit sequence is completed, the gate 16
Is opened, a redundant bit sequence for the information bit sequence is output to the output terminal 13. Next, a specific operation of the redundant bit string calculating means 10 will be described with reference to a block diagram of the redundant bit string calculating means in FIG. The result of the exclusive OR operation means 9 in FIG. 6 is input from the input terminal 1 'in FIG. The division means 30 calculates a remainder when the code polynomial corresponding to the bit string input via the input terminal 1 'from the exclusive OR operation means is divided by a predetermined generator polynomial. The redundant bit string exclusive OR means 40 takes the exclusive OR of the result obtained by the dividing means 30 and the input to the input terminal 6 ', that is, the bit string input from the redundant bit string dividing means 12, and calculates the result. Output terminal 5 '
Output to As a method of realizing the dividing means 30, n
There is also a method of dividing a code polynomial corresponding to an input bit of a bit by a predetermined generator polynomial. However, in order to increase the processing speed, a code polynomial for an input bit string to the division means 30 is divided by the generator polynomial in advance. There is a method of storing the remainder of the operation in a memory and using this memory. FIG. 8 shows an example of this method. Division means 3
This can be realized by taking an input bit string to 0 as an address 21 and extracting an operation result corresponding to the input bit string from the memory 22 as an output 23.

【0003】具体例として、生成多項式をG(x) (次数
k、k=16とする)、情報ビット列(a3130…a1
0 :N=32)に対する符号多項式をF(x) =a31
47+a3046+…+a1 17+a0 16(生成多項式の
次数が16であることから、情報ビット列に対応する符
号多項式の最小次数は16となる)、ビット列分割手段
8の分割ビット数(n)を4とした場合における、誤り
検出符号化装置の動作を示す。冗長ビット列は、符号多
項式を生成多項式で除算したときの剰余に対応するビッ
ト列であることから、生成多項式の次数がkであればそ
の剰余はk−1次式で表現され、冗長ビット列のビット
数はkとなる。ビット列分割手段8では、n=4から、
情報ビット列(a3130…a1 0 )を、
As a specific example, a generator polynomial is G (x) (degree k, k = 16), an information bit sequence (a 31 a 30 ... A 1)
a 0 : N = 32) is represented by F (x) = a 31 x
47 + a 30 x 46 + ... + a 1 x 17 + a 0 x 16 ( the degree of the generator polynomial from it is 16, the minimum degree of code polynomial corresponding to the information bit sequence is 16), divided bit of the bit string divider 8 The operation of the error detection coding apparatus when the number (n) is 4 will be described. Since the redundant bit string is a bit string corresponding to the remainder when the code polynomial is divided by the generator polynomial, if the degree of the generator polynomial is k, the remainder is represented by a k-1 degree equation, and the number of bits of the redundant bit string Becomes k. In the bit string dividing means 8, from n = 4,
The information bit string (a 31 a 30 ... A 1 a 0 )

【0004】に分割する。このとき、ビット列分割手段
8からの新たな入力ビット列に対応する符号多項式を、
[0004] At this time, the code polynomial corresponding to the new input bit string from the bit string dividing means 8 is

【0005】とおく。冗長ビット列分割手段12は、冗
長ビット列保持手段11で保持してある値にxn を乗算
し、そのうち高次のn項をhc-1(x)として排他的論理和
演算手段9に、残りの項をdc-1(x)として冗長ビット列
演算手段10に出力する。排他的論理和演算手段9で
は、ビット列分割手段8からの入力fc(x)と、冗長ビッ
ト列分割手段12からの入力との排他的論理和を演算
し、その結果である
[0005] The redundant bit string dividing means 12 multiplies the value held in the redundant bit string holding means 11 by x n, and sets the higher-order n term as h c-1 (x) in the exclusive OR operation means 9, Is output to the redundant bit string operation means 10 as d c-1 (x). In exclusive OR operation means 9, the input f c (x) from the bit string divider 8 calculates the exclusive OR of the input from the redundant bit string divider 12, is the result

【0006】を冗長ビット列演算手段10に出力する。
次に、冗長ビット列演算手段10の具体的な動作を説明
する。除算手段30では、メモリを用いて
Is output to the redundant bit string operation means 10.
Next, a specific operation of the redundant bit string calculating means 10 will be described. The dividing means 30 uses a memory

【0007】の演算を行い、冗長ビット列排他的論理和
手段40に出力する。冗長ビット列排他的論理和手段4
0では、除算手段30からの入力と、冗長ビット列分割
手段12からの入力dc-1(x)との排他的論理和演算を行
う。冗長ビット列排他的論理和手段40は、演算結果
And outputs the result to the redundant bit string exclusive OR means 40. Redundant bit string exclusive OR means 4
At 0, an exclusive OR operation of the input from the dividing means 30 and the input d c-1 (x) from the redundant bit string dividing means 12 is performed. The redundant bit string exclusive OR means 40 calculates the operation result

【0008】を冗長ビット列保持手段11に出力する。
冗長ビット列保持手段11では、冗長ビット列排他的論
理和手段40からの入力
Is output to the redundant bit string holding means 11.
The redundant bit string holding means 11 receives the input from the redundant bit string exclusive OR means 40.

【0009】を保持する。以上の処理を8(32/4=
8)回行った後の冗長ビット列保持手段11に保持され
ている値は、F(x)modG(x)となり、ゲート16を開
けることで、この値が端子13に出力される。この場
合、n=4、k=16であるので、除算手段30で用い
るメモリ22には、x19からx16までの次数を持つ符号
多項式をG(x)で除算したときの剰余を用意すればよ
い。
Is held. 8 (32/4 =
8) The value held in the redundant bit string holding means 11 after the operation has been performed becomes F (x) modG (x), and this value is output to the terminal 13 by opening the gate 16. In this case, since n = 4, k = 16, the memory 22 used in the division means 30, by preparing a remainder from the division of the code polynomial having a degree from x 19 to x 16 in G (x) I just need.

【0010】次に、従来の誤り検出復号装置を図9のブ
ロック図に示す。誤り検出復号装置は、前述の誤り検出
符号化装置に、誤りのない場合にゲート16から出力さ
れるビット列を保持しておく所定ビットパターン保持手
段14と、ゲート16と所定ビットパターン保持手段1
4からの入力ビット列を比較する誤り検出比較手段15
が付加される。
Next, a conventional error detection / decoding device is shown in a block diagram of FIG. The error detection decoding device includes a predetermined bit pattern holding means 14 for holding a bit string output from the gate 16 when there is no error, and a gate 16 and a predetermined bit pattern holding means 1
Error detection and comparison means 15 for comparing the input bit string from
Is added.

【0011】図9に示す誤り検出復号装置には、通信媒
体を介して受信された、情報ビット列(Nビット)とこ
の情報ビット列を図6に示す誤り検出符号化装置の入力
端子7に入力した場合に図6に示す出力端子13から得
られた冗長ビット列(kビット)から構成されるビット
列(N+kビット)が、入力端子7を介して、入力ビッ
ト列として入力される。はじめに、ゲート16を閉じ、
所定ビットパターン保持手段14には、生成多項式によ
って一意に定まる所定のビット列を保持しておく。入力
端子7からの入力ビット列に対応する符号多項式を所定
の生成多項式で除算した剰余を求める演算は、図6に示
す誤り検出符号化装置と同様の処理で行われる。入力ビ
ット列(N+kビット)に対する処理が終了したとき
に、冗長ビット列保持手段11で保持されている値が、
入力されたビット列に対する誤り検出検査ビット列とな
る。このとき、ゲート16を開け、検査ビット列を誤り
検出比較手段15に出力する。誤り検出比較手段15で
は、ゲート16と所定ビットパターン保持手段14から
入力されるビット列が等しいときは、入力ビット列に誤
りなし、ビット列が異なる場合は入力ビット列に誤りあ
りと判断し、その判断結果を示すパルスを出力端子1
3’に出力する。
In the error detection decoding apparatus shown in FIG. 9, an information bit string (N bits) received via a communication medium and this information bit string are inputted to an input terminal 7 of the error detection coding apparatus shown in FIG. In this case, a bit string (N + k bits) composed of a redundant bit string (k bits) obtained from the output terminal 13 shown in FIG. 6 is input via the input terminal 7 as an input bit string. First, close the gate 16,
The predetermined bit pattern holding unit 14 holds a predetermined bit string uniquely determined by the generator polynomial. The calculation of the remainder obtained by dividing the code polynomial corresponding to the input bit string from the input terminal 7 by a predetermined generator polynomial is performed by the same processing as that of the error detection coding apparatus shown in FIG. When the processing on the input bit string (N + k bits) is completed, the value held by the redundant bit string holding means 11 is
It becomes an error detection check bit sequence for the input bit sequence. At this time, the gate 16 is opened, and the check bit string is output to the error detection / comparison means 15. When the bit strings input from the gate 16 and the predetermined bit pattern holding means 14 are equal, the error detection / comparison means 15 judges that there is no error in the input bit strings, and when the bit strings are different, judges that there is an error in the input bit strings. Output terminal 1
Output to 3 '.

【0012】[0012]

【発明が解決しようとする課題】以上述べた方法は、符
号化および復号の冗長ビット列を高速に求めるために
は、ビット列分割手段8で分割するときのビット数nを
増やせばよいが、このnを1ビット増加させるごとに、
除算手段30における演算量は多くなる。また、除算手
段30の演算量を減らすために、前述の図8のように出
力結果をメモリに保持しておく方法でも、ビット列分割
手段8の分割ビット数を1ビット増加させると、メモリ
容量は2倍の大きさになるため、演算量が減る反面、必
要とするメモリ容量の規模が非常に大きくなってしまう
という問題点がある。
According to the method described above, in order to obtain a redundant bit string for encoding and decoding at a high speed, the number of bits n when dividing by the bit string dividing means 8 may be increased. Each time is incremented by one bit,
The amount of calculation in the dividing means 30 increases. Also, in order to reduce the amount of calculation of the dividing means 30, even if the output result is held in the memory as shown in FIG. 8, if the number of divided bits of the bit string dividing means 8 is increased by one, the memory capacity becomes Since the size is doubled, the amount of calculation is reduced, but the required memory capacity becomes very large.

【0013】本発明の目的は、このような従来の技術の
問題点を除去し、演算量を減らして処理を高速化し、か
つ必要なメモリ容量の少ない誤り検出符号化復号装置お
よび方法を提供することにある。
An object of the present invention is to provide an error detection encoding / decoding apparatus and method which eliminates such problems of the prior art, reduces the amount of calculation, speeds up processing, and requires a small memory capacity. It is in.

【0014】[0014]

【課題を解決するための手段】本発明の誤り検出符号化
装置は、Nビットの情報ビット列を複数ビット数nごと
に分割したN/n個のビット列をそれぞれ順にビット列
Dとして排他的論理和演算手段に出力する入力ビット列
分割手段と、それまで入力された情報ビット列(ビット
列F、長さL×nビット:ただし、L=0,1,…,N
/n−1)に対する冗長ビット列を保持しておく冗長ビ
ット列保持手段から入力されるビット列を分割しnビッ
トのビット列(ビット列B)を前記排他的論理和演算手
段に残りのビット列(ビット列C)を冗長ビット列演算
手段に出力する冗長ビット列分割手段と、前記入力ビッ
ト列分割手段から入力される前記ビット列Dと前記ビッ
ト列Bとの排他的論理和をとり演算結果を前記冗長ビッ
ト列演算手段に出力する前記排他的論理和演算手段と、
前記排他的論理和演算手段から入力されるビット列に対
応する符号多項式を所定の生成多項式で除算したときの
剰余に対応するビット列と前記ビット列Cとから新たな
冗長ビット列を求める演算を行い演算結果を前記冗長ビ
ット列保持手段に出力する前記冗長ビット列演算手段
と、前記ビット列Fに前記ビット列Dを付加したビット
列を新たなビット列F(長さ(L+1)×nビット)と
して更新し、前記冗長ビット列演算手段から入力される
ビット列を前記更新されたビット列Fに対する新たな冗
長ビット列として保持する前記冗長ビット列保持手段と
を有する誤り検出符号化装置において、前記冗長ビット
列演算手段が、前記排他的論理和演算手段から入力され
るnビットのビット列を複数(m個)のブロックに分割
するブロック分割手段と、前記ブロック分割手段で各ブ
ロックに分割されたビット列に対応する符号多項式を所
定の生成多項式で除算したときの剰余に対応するビット
列を求め演算結果を累積排他的論理和演算手段に出力す
るブロック演算手段と、前記ブロック演算手段から入力
されるビット列(m個)と前記ビット列Cとの累積排他
的論理和をとり演算結果を出力する前記累積排他的論理
和演算手段とを有する構成である。
An error detection coding apparatus according to the present invention provides an exclusive OR operation of N / n bit strings obtained by dividing an N-bit information bit string into a plurality of bits n each as a bit string D in order. , An input bit string dividing means to be output to the means, and an information bit string (bit string F, length L × n bits: L = 0, 1,..., N)
/ N-1), the bit string input from the redundant bit string holding means for holding the redundant bit string is divided, and the n-bit bit string (bit string B) is sent to the exclusive OR operation means for the remaining bit string (bit string C). A redundant bit string dividing means for outputting to the redundant bit string computing means; and an exclusive OR for taking an exclusive OR of the bit string D and the bit string B inputted from the input bit string dividing means and outputting an operation result to the redundant bit string computing means. Logical OR operation means,
An operation for obtaining a new redundant bit sequence from the bit sequence corresponding to the remainder when the code polynomial corresponding to the bit sequence input from the exclusive OR operation means is divided by a predetermined generator polynomial and the bit sequence C is performed. The redundant bit string calculating means for outputting to the redundant bit string holding means; and updating the bit string obtained by adding the bit string D to the bit string F as a new bit string F (length (L + 1) × n bits). And the redundant bit string holding means for holding the bit string input from the above as a new redundant bit string with respect to the updated bit string F. A block dividing method for dividing an input n-bit bit string into a plurality of (m) blocks And a block for obtaining a bit string corresponding to a remainder obtained by dividing a code polynomial corresponding to the bit string divided into blocks by the block dividing means by a predetermined generator polynomial, and outputting an operation result to the cumulative exclusive OR operation means The present invention is configured to have an arithmetic means and the cumulative exclusive OR arithmetic means for calculating an exclusive OR of a bit string (m pieces) input from the block arithmetic means and the bit string C and outputting an arithmetic result.

【0015】本発明の誤り検出復号装置は、N’ビット
の入力ビット列(ビット列A)を複数ビット数n’ごと
に分割したN’/n’個のビット列をそれぞれ順にビッ
ト列Dとして排他的論理和演算手段に出力する入力ビッ
ト列分割手段と、それまで入力されたビット列(ビット
列F、長さL’×n’ビット:ただし、L’=0,1,
…,N’/n’−1)に対する冗長ビット列を保持して
おく冗長ビット列保持手段から入力されるビット列を分
割し、n’ビットのビット列(ビット列B)を前記排他
的論理和演算手段に、残りのビット列(ビット列C)を
冗長ビット列演算手段に出力する冗長ビット列分割手段
と、前記入力ビット列分割手段から入力される前記ビッ
ト列Dと前記ビット列Bとの排他的論理和をとり演算結
果を前記冗長ビット列演算手段に出力する前記排他的論
理和演算手段と、前記排他的論理和演算手段から入力さ
れるビット列に対応する符号多項式を所定の生成多項式
で除算したときの剰余に対応するビット列と前記ビット
列Cとから、新たな冗長ビット列を求める演算を行い、
演算結果を前記冗長ビット列保持手段に出力する前記冗
長ビット列演算手段と、前記ビット列Fに前記ビット列
Dを付加したビット列を新たなビット列F(長さ(L’
+1)×n’ビット)として更新し、前記冗長ビット列
演算手段から入力されるビット列を前記更新されたビッ
ト列Fに対する新たな冗長ビット列として保持する前記
冗長ビット列保持手段と、前記入力ビット列Aの誤りを
検出するためにあらかじめ所定のビット列を保持してお
く所定ビットパターン保持手段と、前記ビット列Aに対
する処理が終了したときに、前記冗長ビット列保持手段
と前記所定ビットパターン保持手段から出力されるビッ
ト列とを比較し、前記ビット列Aに誤りがあるか否かの
結果を出力する誤り検出比較手段とを有する誤り検出復
号装置において、前記冗長ビット列演算手段が、前記排
他的論理和演算手段から入力されるn’ビットのビット
列を複数(m’個)のブロックに分割するブロック分割
手段と、前記ブロック分割手段で各ブロックに分割され
たビット列に対応する符号多項式を所定の生成多項式で
除算したときの剰余に対応するビット列を求め演算結果
を累積排他的論理和演算手段に出力するブロック演算手
段と、前記ブロック演算手段から入力されるビット列
(m’個)と前記ビット列Cとの累積排他的論理和をと
り演算結果を出力する前記累積排他的論理和演算手段と
を有する構成である。
The error detecting and decoding apparatus according to the present invention provides an exclusive OR of N ′ / n ′ bit strings obtained by dividing an N′-bit input bit string (bit string A) for each of a plurality of bits n ′ as a bit string D in order. The input bit string dividing means to be output to the arithmetic means, and the bit string (bit string F, length L ′ × n ′ bits: L ′ = 0, 1,
, N '/ n'-1), the bit string input from the redundant bit string holding means for holding the redundant bit string is divided, and the bit string of n' bits (bit string B) is sent to the exclusive OR operation means. A redundant bit string dividing means for outputting the remaining bit string (bit string C) to the redundant bit string computing means; and an exclusive OR of the bit string D and the bit string B inputted from the input bit string dividing means to calculate the result of the redundancy. The exclusive-OR operation means for outputting to the bit-sequence operation means, and a bit string corresponding to a remainder when a code polynomial corresponding to the bit string input from the exclusive-OR operation means is divided by a predetermined generator polynomial; From C, an operation for obtaining a new redundant bit string is performed, and
The redundant bit string calculating means for outputting the calculation result to the redundant bit string holding means; and a bit string obtained by adding the bit string D to the bit string F to a new bit string F (length (L '
+1) × n ′ bits), the redundant bit string holding means for holding the bit string input from the redundant bit string calculating means as a new redundant bit string for the updated bit string F, and the error of the input bit string A A predetermined bit pattern holding means for holding a predetermined bit string in advance, and a redundant bit string holding means and a bit string output from the predetermined bit pattern holding means when the processing on the bit string A is completed. An error detection / decoding device for comparing and outputting a result as to whether or not the bit string A has an error, wherein the redundant bit string operation means includes n input from the exclusive OR operation means. A block dividing means for dividing a bit string of bits into a plurality of (m ') blocks; Block arithmetic means for obtaining a bit string corresponding to the remainder when the code polynomial corresponding to the bit string divided into each block by the dividing means by a predetermined generator polynomial, and outputting the operation result to the cumulative exclusive OR operation means; A configuration is provided that includes the cumulative exclusive OR operation means for calculating an exclusive OR of a bit string (m ′) input from the block operation means and the bit string C and outputting an operation result.

【0016】本発明の誤り検出符号化方法は、入力ビッ
ト列分割手段がNビットの情報ビット列を複数ビット数
nごとに分割したN/n個のビット列をそれぞれ順にビ
ット列Dとして排他的論理和演算手段に出力し、冗長ビ
ット列分割手段がそれまで入力された情報ビット列(ビ
ット列F、長さL×nビット:ただし、L=0,1,
…,N/n−1)に対する冗長ビット列を保持しておく
冗長ビット列保持手段から入力されるビット列を分割し
nビットのビット列(ビット列B)を前記排他的論理和
演算手段に残りのビット列(ビット列C)を冗長ビット
列演算手段に出力し、前記排他的論理和演算手段が前記
入力ビット列分割手段から入力される前記ビット列Dと
前記ビット列Bとの排他的論理和をとり演算結果を前記
冗長ビット列演算手段に出力し、前記冗長ビット列演算
手段が前記排他的論理和演算手段から入力されるビット
列に対応する符号多項式を所定の生成多項式で除算した
ときの剰余に対応するビット列と前記ビット列Cとから
新たな冗長ビット列を求める演算を行い演算結果を前記
冗長ビット列保持手段に出力し、前記冗長ビット列保持
手段が前記ビット列Fに前記ビット列Dを付加したビッ
ト列を新たなビット列F(長さ(L+1)×nビット)
として更新し前記冗長ビット列演算手段から入力される
ビット列を前記更新されたビット列Fに対する新たな冗
長ビット列として保持する誤り検出符号化方法におい
て、前記冗長ビット列演算手段の行う新たな冗長ビット
列を求める演算を、まずブロック分割手段が前記排他的
論理和演算手段から入力されるnビットのビット列を複
数(m個)のブロックに分割し、次にブロック演算手段
が前記ブロック分割手段で各ブロックに分割されたビッ
ト列に対応する符号多項式を所定の生成多項式で除算し
たときの剰余に対応するビット列を求め演算結果を累積
排他的論理和演算手段に出力し、最後に前記累積排他的
論理和演算手段が前記ブロック演算手段から入力される
ビット列(m個)と前記ビット列Cとの累積排他的論理
和をとり演算結果を出力することで行う。
In the error detection encoding method according to the present invention, the input bit string dividing means divides the N-bit information bit string by a plurality of bits n into N / n bit strings, each of which is sequentially exclusive-ORed as a bit string D. And the redundant bit string dividing means outputs the information bit string (bit string F, length L × n bits: L = 0, 1,
, N / n-1), the bit string input from the redundant bit string holding means for holding the redundant bit string is divided, and the n-bit bit string (bit string B) is sent to the exclusive OR operation means for the remaining bit string (bit string). C) to the redundant bit string operation means, and the exclusive OR operation means takes the exclusive OR of the bit string D and the bit string B inputted from the input bit string dividing means, and calculates the operation result as the redundant bit string operation Output from the exclusive-OR operation means to the code string corresponding to the remainder when the code polynomial corresponding to the bit string input from the exclusive-OR operation means is divided by a predetermined generator polynomial and the bit string C. An operation for obtaining a redundant bit string is performed, and an operation result is output to the redundant bit string holding means. F to the bit string D string new bit bit string added with F (length (L + 1) × n bits)
In the error detection coding method for updating the bit string input from the redundant bit string calculating means as a new redundant bit string for the updated bit string F, the redundant bit string calculating means performs a calculation for obtaining a new redundant bit string. First, the block dividing unit divides the n-bit bit string input from the exclusive OR operation unit into a plurality of (m) blocks, and then the block operation unit is divided into each block by the block dividing unit. The code polynomial corresponding to the bit string is divided by a predetermined generator polynomial to obtain a bit string corresponding to the remainder, and the calculation result is output to the cumulative exclusive OR calculating means. The bit string (m pieces) input from the calculating means and the bit string C are subjected to a cumulative exclusive OR operation to obtain a calculation result. Carried out by force.

【0017】本発明の誤り検出復号方法は、入力ビット
列分割手段がN’ビットの入力ビット列(ビット列A)
を複数ビット数n’ごとに分割したN’/n’個のビッ
ト列をそれぞれ順にビット列Dとして排他的論理和演算
手段に出力し、冗長ビット列分割手段がそれまで入力さ
れたビット列(ビット列F、長さL’×n’ビット:た
だし、L’=0,1,…,N’/n’−1)に対する冗
長ビット列を保持しておく冗長ビット列保持手段から入
力されるビット列を分割し、n’ビットのビット列(ビ
ット列B)を前記排他的論理和演算手段に、残りのビッ
ト列(ビット列C)を冗長ビット列演算手段に出力し、
前記排他的論理和演算手段が前記入力ビット列分割手段
から入力される前記ビット列Dと前記ビット列Bとの排
他的論理和をとり演算結果を前記冗長ビット列演算手段
に出力し、前記冗長ビット列演算手段が前記排他的論理
和演算手段から入力されるビット列に対応する符号多項
式を所定の生成多項式で除算したときの剰余に対応する
ビット列と前記ビット列Cとから新たな冗長ビット列を
求める演算を行い、演算結果を前記冗長ビット列保持手
段に出力し、前記冗長ビット列保持手段が前記ビット列
Fに前記ビット列Dを付加したビット列を新たなビット
列F(長さ(L’+1)×n’ビット)として更新し、
前記冗長ビット列演算手段から入力されるビット列を前
記更新されたビット列Fに対する新たな冗長ビット列と
して保持し、所定ビットパターン保持手段が前記入力ビ
ット列Aの誤りを検出するためにあらかじめ所定のビッ
ト列を保持しておき、誤り検出比較手段が前記ビット列
Aに対する処理が終了したときに前記冗長ビット列保持
手段と前記所定ビットパターン保持手段から出力される
ビット列とを比較し、前記ビット列Aに誤りがあるか否
かの結果を出力する誤り検出復号方法において、前記冗
長ビット列演算手段の行う新たな冗長ビット列を求める
演算を、ブロック分割手段がまず前記排他的論理和演算
手段から入力されるn’ビットのビット列を複数(m’
個)のブロックに分割し、次にブロック演算手段が前記
ブロック分割手段で各ブロックに分割されたビット列に
対応する符号多項式を所定の生成多項式で除算したとき
の剰余に対応するビット列を求め、演算結果を累積排他
的論理和演算手段に出力し、最後に前記累積排他的論理
和演算手段が前記ブロック演算手段から入力されるビッ
ト列(m’個)と前記ビット列Cとの累積排他的論理和
をとり演算結果を出力することで行う。 [作用]本発明において、nビットまたはn’ビットご
とに分割された新たな入力ビット列に対応する符号多項
式を所定の生成多項式で除算したときの剰余に対応する
ビット列を求める際に、前記新たな入力ビット列をさら
に複数のブロックに分割し、各ブロックにおいて所定の
生成多項式で除算した剰余を求め、各ブロックの剰余の
累積排他的論理和をとることにより、入力されたビット
列に対応する符号多項式を生成多項式で除算した剰余を
得ることができる。所定の生成多項式をG(x) (次数は
k)、入力ビット列の各ビットを係数とする符号多項式
を、Y(x)=an-1n+k-1+an-2n+k-2…+a1k+1
+a0k 、ブロック数をu、各ブロックにおける符号
多項式をyi(x)とおく。Y(x) を各ブロックにおける符
号多項式yi(x)で表すと、Y(x)=y1(x)+y2(x)+…
+yU(x) となる。各ブロックにおける演算は、yi(x)m
odG(x)を行っていることになり、それぞれの演算結果
の累積排他的論理和をとることにより、{y1(x)modG
(x)}+{y2(x)modG(x)}+…+{yu(x)modG(x)}
の演算が行われ、結局Y(x)modG(x)を行ったのと同じ
結果が得られる。
According to the error detection decoding method of the present invention, the input bit string dividing means uses an N'-bit input bit string (bit string A).
Are divided into a plurality of bits n ′, and N ′ / n ′ bit strings are sequentially output as bit strings D to the exclusive OR operation means, and the redundant bit string dividing means outputs the bit strings (bit string F, length L ′ × n ′ bits: where a bit string input from redundant bit string holding means for holding a redundant bit string for L ′ = 0, 1,..., N ′ / n′−1) is divided into n ′ Outputting a bit sequence of bits (bit sequence B) to the exclusive OR operation means, and outputting the remaining bit sequence (bit sequence C) to the redundant bit sequence operation means;
The exclusive OR operation means takes an exclusive OR of the bit string D and the bit string B input from the input bit string dividing means and outputs an operation result to the redundant bit string operation means, and the redundant bit string operation means Performing an operation of obtaining a new redundant bit sequence from the bit sequence corresponding to the remainder when the code polynomial corresponding to the bit sequence input from the exclusive OR operation means is divided by a predetermined generator polynomial and the bit sequence C; Is output to the redundant bit string holding means, and the redundant bit string holding means updates the bit string obtained by adding the bit string D to the bit string F as a new bit string F (length (L ′ + 1) × n ′ bits),
The bit string input from the redundant bit string calculating means is held as a new redundant bit string for the updated bit string F, and the predetermined bit pattern holding means holds a predetermined bit string in advance to detect an error in the input bit string A. The error detection / comparison means compares the redundant bit string holding means with the bit string output from the predetermined bit pattern holding means when the processing on the bit string A is completed, and determines whether the bit string A has an error. In the error detection decoding method that outputs the result of (1), the operation for obtaining a new redundant bit string performed by the redundant bit string arithmetic means is performed by the block dividing means first by using a plurality of n′-bit bit strings input from the exclusive OR arithmetic means. (M '
) Blocks, and the block operation means obtains a bit string corresponding to the remainder when the code polynomial corresponding to the bit string divided into each block by the block division means is divided by a predetermined generator polynomial. The result is output to the cumulative exclusive-OR operation means. Finally, the cumulative exclusive-OR operation means calculates the cumulative exclusive OR of the bit string (m ′) inputted from the block operation means and the bit string C. This is done by outputting the result of the operation. [Operation] In the present invention, when a bit string corresponding to a remainder obtained by dividing a code polynomial corresponding to a new input bit string divided every n bits or n ′ bits by a predetermined generator polynomial is obtained, the new bit string is obtained. The input bit sequence is further divided into a plurality of blocks, the remainder obtained by dividing each block by a predetermined generator polynomial is obtained, and the code polynomial corresponding to the input bit sequence is obtained by taking the cumulative exclusive OR of the remainder of each block. The remainder divided by the generator polynomial can be obtained. A predetermined generator polynomial is represented by G (x) (degree is k), and a code polynomial using each bit of the input bit string as a coefficient is represented by Y (x) = an - 1xn + k-1 + an - 2xn + k-2 ... + a 1 x k + 1
+ A 0 x k , the number of blocks is u, and the code polynomial in each block is y i (x). When Y (x) is represented by a code polynomial y i (x) in each block, Y (x) = y 1 (x) + y 2 (x) +.
+ Y U (x). The operation in each block is y i (x) m
This means that odG (x) is performed, and by taking the cumulative exclusive OR of the operation results, {y 1 (x) modG
(x)} + {y 2 (x) modG (x)} + ... + {y u (x) modG (x)}
Is performed, and eventually the same result as when Y (x) modG (x) is performed is obtained.

【0018】[0018]

【発明の実施の形態】次に本発明の実施の形態について
図面を参照して説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0019】図1は本発明の誤り検出符号化装置のブロ
ック図、図2は本発明の誤り検出復号装置のブロック
図、図3は本発明の誤り検出符号化装置および誤り検出
復号装置に共通に使用する冗長ビット列を求める演算を
行う冗長ビット列演算部の構成を示すブロック図であ
る。
FIG. 1 is a block diagram of an error detection coding apparatus of the present invention, FIG. 2 is a block diagram of an error detection decoding apparatus of the present invention, and FIG. 3 is common to the error detection coding apparatus and the error detection decoding apparatus of the present invention. FIG. 4 is a block diagram illustrating a configuration of a redundant bit string operation unit that performs an operation for obtaining a redundant bit string used in the method.

【0020】本発明の誤り検出符号化装置19は、入力
端子7からのNビットの情報ビット列をnビットごとに
分割し、N/n個のビット列を順にビット列Dとして出
力する入力ビット列分割手段8と、それまで入力された
情報ビット列に対する冗長ビット列を保持しておく冗長
ビット列保持手段11から入力されるビット列を分割
し、nビットのビット列をビット列Bとして出力し、残
りのビット列をビット列Cとして出力する冗長ビット列
分割手段12と、ビット列Dとビット列Bとの排他的論
理和をとり演算結果を出力する排他的論理和演算手段9
と、排他的論理和演算手段9から入力されるnビットの
ビット列を複数(m個)のブロックに分割するブロック
分割手段2と、ブロック分割手段2で各ブロックに分割
されたビット列に対応する符号多項式を所定の生成多項
式で除算したときの剰余に対応するビット列を求め演算
結果を出力する複数のブロック演算手段3−1,3−2
と、ブロック演算手段3−1,3−2から入力されるビ
ット列(m個)とビット列Cとの累積排他的論理和をと
り演算結果を冗長ビット列保持手段11に出力する累積
排他的論理和演算手段4と、冗長ビット列保持手段11
から出力端子13に出力する冗長ビット列の流れを制御
するゲート16とから成る。
The error detecting and coding apparatus 19 of the present invention divides an N-bit information bit sequence from the input terminal 7 into n-bit information and outputs N / n bit sequences in order as a bit sequence D. Then, the bit string input from the redundant bit string holding means 11 for holding the redundant bit string for the information bit string input so far is divided, the n-bit bit string is output as the bit string B, and the remaining bit strings are output as the bit string C. A redundant bit string dividing means 12 and an exclusive OR calculating means 9 for taking an exclusive OR of the bit string D and the bit string B and outputting an operation result
And a block dividing means 2 for dividing the n-bit bit string input from the exclusive OR operation means 9 into a plurality of (m) blocks, and a code corresponding to the bit string divided into each block by the block dividing means 2. A plurality of block operation means 3-1 and 3-2 for obtaining a bit string corresponding to a remainder when dividing the polynomial by a predetermined generator polynomial and outputting an operation result
And an exclusive OR operation of the bit string (m) input from the block operation means 3-1 and 3-2 and the bit string C and outputting the operation result to the redundant bit string holding means 11 Means 4 and redundant bit string holding means 11
And a gate 16 for controlling the flow of the redundant bit string output from the output terminal 13 to the output terminal 13.

【0021】本発明の誤り検出復号装置20は、入力端
子7からのN’ビットの情報ビット列をビット列Aとし
てn’ビットごとに分割し、N’/n’個のビット列を
順にビット列Dとして出力する入力ビット列分割手段8
と、それまで入力された情報ビット列に対する冗長ビッ
ト列を保持しておく冗長ビット列保持手段11から入力
されるビット列を分割し、n’ビットのビット列をビッ
ト列Bとして出力し、残りのビット列をビット列Cとし
て出力する冗長ビット列分割手段12と、ビット列Dと
ビット列Bとの排他的論理和をとり演算結果を出力する
排他的論理和演算手段9と、排他的論理和演算手段9か
ら入力されるn’ビットのビット列を複数(m’個)の
ブロックに分割するブロック分割手段2と、ブロック分
割手段2で各ブロックに分割されたビット列に対応する
符号多項式を所定の生成多項式で除算したときの剰余に
対応するビット列を求め演算結果を出力するブロック演
算手段3−1,3−2と、ブロック演算手段3−1,3
−2から入力されるビット列(m’個)とビット列Cと
の累積排他的論理和をとり演算結果を冗長ビット列保持
手段11に出力する累積排他的論理和演算手段4と、入
力ビット列Aの誤りを検出するためにあらかじめ所定の
ビット列を保持しておく所定ビットパターン保持手段1
4と、ビット列Aに対する処理が終了したときに冗長ビ
ット列保持手段11から出力する冗長ビット列の流れを
制御するゲート16と、ゲート16が出力するビット列
と所定ビットパターン保持手段14が出力するビット列
とを比較し、ビット列Aに誤りがあるか否かの結果を出
力端子13’に出力する誤り検出比較手段15とから成
る。
The error detecting / decoding device 20 of the present invention divides an N′-bit information bit sequence from the input terminal 7 into n-bits as a bit sequence A, and outputs N ′ / n ′ bit sequences as a bit sequence D in order. Input bit string dividing means 8
Then, the bit string input from the redundant bit string holding means 11 for holding the redundant bit string for the information bit string input so far is divided, the bit string of n 'bits is output as the bit string B, and the remaining bit strings are set as the bit string C. Redundant bit string dividing means 12 for outputting, exclusive OR operation means 9 for taking an exclusive OR of bit string D and bit string B and outputting an operation result, and n 'bits inputted from exclusive OR operation means 9 Divided into a plurality of (m ') blocks, and a remainder obtained by dividing a code polynomial corresponding to the bit sequence divided into each block by the block dividing means 2 by a predetermined generator polynomial. Block operation means 3-1 and 3-2 for obtaining a bit sequence to be operated and outputting the operation result, and block operation means 3-1 and 3
A cumulative exclusive OR operation of the bit string (m ′) inputted from −2 and the bit string C, and outputs the operation result to the redundant bit string holding means 11; A predetermined bit pattern holding means 1 for holding a predetermined bit sequence in advance to detect
4, a gate 16 for controlling the flow of the redundant bit string output from the redundant bit string holding means 11 when the processing for the bit string A is completed, the bit string output by the gate 16 and the bit string output by the predetermined bit pattern holding means 14 And an error detection / comparison means 15 for comparing and outputting to the output terminal 13 'a result indicating whether or not there is an error in the bit string A.

【0022】本発明の誤り検出符号化装置19および誤
り検出復号装置20では、図6、図9に示した従来の誤
り検出符号化/復号装置の冗長ビット列演算手段10
を、ブロック分割手段2と、ブロック演算手段3−1,
3−2と、累積排他的論理和演算手段4とから成る冗長
ビット列演算部17として表示してある。そしてこの冗
長ビット列演算部17は、本発明の最も重要な部分であ
るので、図3のブロック図を用いて詳細に説明する。
In the error detection coding apparatus 19 and the error detection decoding apparatus 20 of the present invention, the redundant bit string operation means 10 of the conventional error detection coding / decoding apparatus shown in FIGS.
To the block dividing means 2 and the block calculating means 3-1,
3-2 and a redundant bit string operation unit 17 comprising the cumulative exclusive OR operation means 4. Since the redundant bit string operation unit 17 is the most important part of the present invention, it will be described in detail with reference to the block diagram of FIG.

【0023】本発明の冗長ビット列演算部17は、図3
に示すように、排他的論理和演算手段9から入力される
ビット列を受け取る入力端子1と、排他的論理和演算手
段からの入力端子1を介して入力されたビット列をm個
のブロックに分割するブロック分割手段2と、このブロ
ック分割手段2で分割された各ブロックのビット列に対
応する符号多項式を、所定の生成多項式で除算した剰余
を求める複数のブロック演算手段3−i(i=1〜m)
と、各ブロック演算手段3−iから得られた結果と冗長
ビット列分割手段からの入力端子6を介して入力される
ビット列との累積排他的論理和を行う累積排他的論理和
演算手段4と、累積排他的論理和演算手段4の演算結果
を出力する冗長ビット列保持手段への出力端子5とで構
成する。
The redundant bit string operation unit 17 according to the present invention is configured as shown in FIG.
As shown in (1), the input terminal 1 receiving the bit string input from the exclusive OR operation means 9 and the bit string input via the input terminal 1 from the exclusive OR operation means are divided into m blocks. Block dividing means 2 and a plurality of block calculating means 3-i (i = 1 to m) for obtaining a remainder obtained by dividing a code polynomial corresponding to a bit string of each block divided by the block dividing means 2 by a predetermined generator polynomial. )
An exclusive-OR operation means 4 for performing an exclusive-OR operation on the result obtained from each block operation means 3-i and the bit string input via the input terminal 6 from the redundant bit string division means; An output terminal 5 for the redundant bit string holding means for outputting the operation result of the cumulative exclusive OR operation means 4 is provided.

【0024】つぎに、本発明の誤り検出符号化装置の動
作について図1および図3を参照して説明する。
Next, the operation of the error detection coding apparatus according to the present invention will be described with reference to FIGS.

【0025】なお、ここでブロック分割手段2での分割
方法としては、上位ビットから複数の連続したビットで
分割する方法、奇数/偶数ビットで分割する方法、rビ
ットおきに分割する方法(rはN以下の任意の整数)
等、様々あるが、本実施例では、連続したビットで分割
する方法を採用したものとして説明する。また、本実施
例では、生成多項式をG(x)=x16+x12+x5+1(k
=16)、入力ビット列分割手段8における分割ビット
数(n)を8ビット、ブロック数(m)を2(連続した
4ビットずつの2ブロックに分割)、情報ビット数
(N)を32、情報ビット列を0101000000000000000000
1100000000とする。
Here, the dividing method in the block dividing means 2 includes a method of dividing a plurality of consecutive bits from an upper bit, a method of dividing odd / even bits, and a method of dividing every r bits (where r is Any integer less than or equal to N)
Although there are various methods such as this, the present embodiment will be described on the assumption that a method of dividing by continuous bits is adopted. In the present embodiment, the generator polynomial is represented by G (x) = x 16 + x 12 + x 5 +1 (k
= 16), the number of divided bits (n) in the input bit string dividing means 8 is 8 bits, the number of blocks (m) is 2 (divided into 2 blocks of 4 consecutive bits), the number of information bits (N) is 32, Bit string 0101000000000000000000
110000000.

【0026】まず、動作開始時に、冗長ビット列保持手
段11を初期値0000000000000000に設定し、ゲート16
を閉じる。入力ビット列分割手段8では、入力端子7か
ら入力された情報ビット列を01010000、00000000、0000
0011、00000000の8ビットごとに分割する。入力ビット
列分割手段8から最初のビット列00001010(以下、説明
のため排他的論理和演算手段9以降はビット列を左右反
転表示する)が排他的論理和演算手段9に供給される
と、冗長ビット列分割手段12では、冗長ビット列保持
手段11で保持されているビット列を、高次の項8ビッ
ト(n=8より8ビットとなる)と、低次の項8ビット
(kとnとの差、ここでは16−8=8より8ビットと
なる)に分割し、高次の項8ビットを排他的論理和演算
手段9に、低次の項8ビットを累積排他的論理和演算手
段4に出力する。排他的論理和演算手段9は、入力ビッ
ト列分割手段8からの入力00001010と、冗長ビット列分
割手段12からの入力00000000の排他的論理和演算を行
い、演算結果00001010をブロック分割手段2に出力す
る。ブロック分割手段2では、排他的論理和演算手段9
からの入力00001010を、ブロック1(1010)とブロック2
(0000)に分割する。各ブロックに対応するそれぞれのブ
ロック演算手段3−1、3−2は、図8のブロック図で
示すように、分割された4ビットのビット列をアドレス
21とみなし、このアドレスによりメモリ22から対応
するビット列を読み出して出力する。
First, at the start of operation, the redundant bit string holding means 11 is set to an initial value of 0000000000000000,
Close. The input bit string dividing means 8 divides the information bit string input from the input terminal 7 into 01010000, 00000000, 0000
It is divided into 8 bits of 0011 and 00000000. When the first bit string 000001010 (hereinafter, the exclusive OR calculation means 9 and thereafter, the bit string is displayed horizontally inverted) from the input bit string dividing means 8 is supplied to the exclusive OR calculation means 9, the redundant bit string dividing means In 12, the bit string held by the redundant bit string holding unit 11 is divided into a high-order term 8 bits (n = 8 becomes 8 bits) and a low-order term 8 bits (difference between k and n, here, 16-8 = 8, so that the higher-order term 8 bits are output to the exclusive-OR operation means 9 and the lower-order term 8 bits are output to the cumulative exclusive-OR operation means 4. The exclusive OR operation means 9 performs an exclusive OR operation of the input 00001010 from the input bit string dividing means 8 and the input 00000000 from the redundant bit string dividing means 12 and outputs the operation result 00001010 to the block dividing means 2. In the block dividing means 2, the exclusive OR operation means 9
000010110 from block 1 (1010) and block 2
(0000). As shown in the block diagram of FIG. 8, each of the block operation means 3-1 and 3-2 corresponding to each block regards the divided 4-bit bit string as an address 21, and the memory 22 responds to this address. Reads and outputs the bit string.

【0027】ブロック演算手段3−1,3−2内でのメ
モリ22の構成例を、図4,5を用いて説明する。図4
は、x20からx23までの次数を持つ符号多項式を生成多
項式G(x) で除算した演算結果(剰余)の記憶状態を表
示し、図5は、x16からx19までの次数を持つ符号多項
式を生成多項式G(x) で除算した演算結果(剰余)の記
憶状態を表示したものである。各メモリ22では、符号
多項式の係数ビットをアドレスとし、このアドレスに対
応して、該当する符号多項式をG(x) で除算した演算結
果(剰余)が保持されている。
An example of the configuration of the memory 22 in the block operation means 3-1 and 3-2 will be described with reference to FIGS. FIG.
Displays the storage status of the operation result (remainder) obtained by dividing the code polynomial having a degree from x 20 to x 23 by the generator polynomial G (x), FIG. 5 has a degree from x 16 to x 19 The storage state of the operation result (remainder) obtained by dividing the code polynomial by the generator polynomial G (x) is displayed. In each memory 22, the coefficient bit of the code polynomial is used as an address, and corresponding to this address, an operation result (remainder) obtained by dividing the corresponding code polynomial by G (x) is held.

【0028】ブロック1に対するブロック演算手段3−
1では、ブロック分割手段2からの入力1010(10進表
記で10)をアドレスとし、図4に示す演算結果を用い
て、1010111101011010を累積排他的論理和演算手段4に
出力する。ブロック2に対するブロック演算手段3−2
では、ブロック分割手段2からの入力0000(10進表記
で0)をアドレスとし、図5に示す演算結果を用いて、0
000000000000000を累積排他的論理和演算手段4に出力
する。累積排他的論理和演算手段4では、ブロック演算
手段3−1からの入力1010111101011010、ブロック演算
手段3−2からの入力0000000000000000と、冗長ビット
列分割手段12からの入力0000000000000000との累積排
他的論理和演算結果1010111101011010を出力する。冗長
ビット列保持手段11では、累積排他的論理和演算手段
4から入力される値1010111101011010をこれまでに入力
された情報ビット列01010000に対する剰余として保持す
る。
Block operation means 3 for block 1
In step 1, an input 1010 (10 in decimal notation) from the block dividing means 2 is used as an address, and 1010111101011010 is output to the cumulative exclusive OR operation means 4 using the operation result shown in FIG. Block operation means 3-2 for block 2
In FIG. 5, the input 0000 (0 in decimal notation) from the block dividing means 2 is used as an address, and the operation result shown in FIG.
000000000000000 is output to the cumulative exclusive OR operation means 4. In the cumulative exclusive OR operation means 4, the cumulative exclusive OR operation of the input 1010111101011010 from the block operation means 3-1, the input 0000000000000000 from the block operation means 3-2 and the input 0000000000000000 from the redundant bit string dividing means 12 is performed. The result 1010111101011010 is output. The redundant bit string holding means 11 holds the value 1010111101011010 input from the cumulative exclusive OR operation means 4 as a remainder with respect to the information bit string 01010000 input so far.

【0029】さらに、入力ビット列分割手段8から排他
的論理和演算手段9に次のビット列00000000が供給され
ると、前述と同様の処理を繰り返す。すなわち、冗長ビ
ット列分割手段12は、冗長ビット列保持手段11で保
持している値1010111101011010を、高次の項8ビット01
011010(ビットが反転している)と低次の項8ビット10
101111に分割し、高次の項8ビットを排他的論理和演算
手段9に、低次の項8ビットを累積排他的論理和演算手
段4に出力する。排他的論理和演算手段9は、入力ビッ
ト列分割手段8および冗長ビット列分割手段12からの
入力値の排他的論理和を演算し、01011010を出力する。
ブロック分割手段2は、排他的論理和演算手段9から入
力された値を、ブロック1(1010)とブロック2(0101)に
分割し、各ブロック演算手段3−1,3−2に出力す
る。ブロック演算手段3−1,3−2は、それぞれ図
4,5に示す演算結果に基づき、それぞれ101011110101
1010と0101001010000101とを出力する。累積排他的論理
和演算手段4では、これらブロック演算手段3−1,3
−2からの入力と、冗長ビット列分割手段12からの入
力10101111の累積排他的論理和1111110101110000とを、
冗長ビット列保持手段11に出力する。冗長ビット列保
持手段11は、この値1111110101110000をこれまでに入
力された情報ビット列0101000000000000に対する剰余と
して保持する。
Further, when the next bit string 00000000 is supplied from the input bit string dividing means 8 to the exclusive OR operation means 9, the same processing as described above is repeated. That is, the redundant bit string dividing means 12 converts the value 1010111101011010 held by the redundant bit string holding means 11 into the higher-order term 8 bit 01
011010 (bit is inverted) and low-order term 8 bit 10
It is divided into 101111, and the higher-order term 8 bits are output to the exclusive-OR operation means 9 and the lower-order term 8 bits are output to the cumulative exclusive-OR operation means 4. The exclusive OR operation means 9 calculates the exclusive OR of the input values from the input bit string dividing means 8 and the redundant bit string dividing means 12, and outputs 01011010.
The block dividing unit 2 divides the value input from the exclusive OR operation unit 9 into a block 1 (1010) and a block 2 (0101), and outputs the divided values to the block operation units 3-1 and 3-2. The block calculation means 3-1 and 3-2 respectively calculate 101011110101 based on the calculation results shown in FIGS.
Output 1010 and 0101001010000101. In the cumulative exclusive OR operation means 4, these block operation means 3-1 and 3
-2 and the cumulative exclusive OR 1111110101110000 of the input 10101111 from the redundant bit string dividing means 12
Output to the redundant bit string holding means 11. The redundant bit string holding means 11 holds this value 1111110101110000 as a remainder for the information bit string 0101000000000000 input so far.

【0030】続いて、入力ビット列分割手段8から排他
的論理和演算手段9に次のビット列00000011が供給され
た場合にも、同様の処理を行う。これまで冗長ビット列
保持手段11で保持されている値1111110101110000と、
入力ビット列00000011とにより、前述と同様の処理をし
た結果、冗長ビット列保持手段11で保持される値は、
1011010101110110となる。
Subsequently, the same processing is performed when the next bit string 00000011 is supplied from the input bit string dividing means 8 to the exclusive OR operation means 9. The value 1111110101110000 held by the redundant bit string holding means 11 so far;
As a result of performing the same processing as described above with the input bit string 00000011, the value held by the redundant bit string holding unit 11 is
1011010101110110.

【0031】最後の入力ビット列00000000に対しても、
同様の処理を行う。これまで冗長ビット列保持手段11で
保持されている値1011010101110110と、入力ビット列00
000000とから、前述と同様の処理を行った結果、冗長ビ
ット列保持手段11で保持される値は0001011000000100と
なる。
For the last input bit string 00000000,
The same processing is performed. The value 1011010101110110 previously held by the redundant bit string holding means 11 and the input bit string 00
From 000000, as a result of performing the same processing as described above, the value held by the redundant bit string holding unit 11 becomes 000011001000000100.

【0032】情報ビット列の入力に対する処理が終了し
たとき、冗長ビット列保持手段11で保持されているビ
ット列0001011000000100(x0,x1,…x15の係数)が、
入力された情報ビット列に対する冗長ビット列となる。
従って、このとき、ゲート16を開くことにより、32
ビットの情報ビット列に対する冗長ビット列を、出力端
子13に出力する。
When the processing for the input of the information bit string is completed, the bit string 0001011000000100 (coefficients of x 0 , x 1 ,..., X 15 ) held by the redundant bit string holding means 11 becomes
It becomes a redundant bit string for the input information bit string.
Therefore, at this time, by opening the gate 16, 32
The redundant bit string corresponding to the bit information bit string is output to the output terminal 13.

【0033】ここで、情報ビット列に対応する符号多項
式x46+x44+x25+x24を生成多項式G(x) で除算し
た剰余はx13+x6+x5+x3 となり、本発明の結果が
正しいことを示している。
Here, the remainder obtained by dividing the code polynomial x 46 + x 44 + x 25 + x 24 corresponding to the information bit string by the generator polynomial G (x) is x 13 + x 6 + x 5 + x 3 , and the result of the present invention is correct. Is shown.

【0034】上述した実施例では、説明の都合上、生成
多項式やメモリの大きさおよび個数を限定して説明して
いたが、本発明は、それぞれ任意の長さ、大きさおよび
個数についても、同様に適用できる。情報ビット列につ
いても任意のビット列でよい。また、ブロック分割する
際に連続したビット列でなくても構わない。また、上述
した実施例では、冗長ビット列が入力ビット列分割手段
8での分割ビット列より長い場合について説明したが、
分割ビット列の方が冗長ビット列より長い場合は、冗長
ビット列保持手段11で保持してある値がすべて排他的
論理和演算手段9に出力される。従って、冗長ビット列
分割手段12での分割操作、および、冗長ビット列分割
手段12から累積排他的論理和演算手段4への出力は、
省略できる。さらに、累積排他的論理和演算手段4、冗
長ビット列保持手段11、冗長ビット列分割手段12の
実現手段としては様々あるが、nビットm段のシフトレ
ジスタでまとめて実現することができる。
In the above embodiment, for convenience of explanation, the size and number of generator polynomials and memories are limited. However, the present invention is also applicable to arbitrary lengths, sizes and numbers. The same applies. The information bit string may be any bit string. In addition, when the block is divided, it does not have to be a continuous bit string. In the above-described embodiment, the case where the redundant bit string is longer than the divided bit string in the input bit string dividing means 8 has been described.
If the divided bit string is longer than the redundant bit string, all the values held by the redundant bit string holding means 11 are output to the exclusive OR operation means 9. Therefore, the division operation by the redundant bit string dividing means 12 and the output from the redundant bit string dividing means 12 to the cumulative exclusive OR operation means 4 are as follows.
Can be omitted. Further, there are various means for realizing the cumulative exclusive OR operation means 4, the redundant bit string holding means 11, and the redundant bit string dividing means 12, but they can be realized collectively by an n-bit m-stage shift register.

【0035】続いて本発明の誤り検出復号装置の動作に
ついて図2および図3を参照して説明する。
Next, the operation of the error detection decoding apparatus of the present invention will be described with reference to FIGS.

【0036】誤り検出復号装置20は、図1に示した誤
り検出符号化装置19と同様に構成される部分と、生成
多項式G(x) から一意に決まる誤りのない場合の検査ビ
ット列を保持しておく所定ビットパターン保持手段14
と、ゲート16を介して出力する冗長ビット列と所定ビ
ットパターン保持手段14からの入力ビット列とを比較
する誤り検出比較手段15とからなる。
The error detection / decoding device 20 holds a part configured in the same manner as the error detection coding device 19 shown in FIG. 1 and a check bit sequence in the case where there is no error uniquely determined from the generator polynomial G (x). Predetermined bit pattern holding means 14
And an error detection / comparison means 15 for comparing the redundant bit string output via the gate 16 with the input bit string from the predetermined bit pattern holding means 14.

【0037】まず、動作開始時に、ゲート16を閉じ、
所定ビットパターン保持手段14には、生成多項式G
(x) によって一意に決まる所定のビット列000000000000
0000を保持しておく。誤り検出復号装置20の入力端子
7には、通信媒体を介して誤り検出符号化装置19側か
ら、情報ビット列01010000000000000000001100000000
(N=32ビット)に、冗長ビット列0001011000000100
(k=16ビット)を付加したビット列(N+k=32
+16=48ビット:以下、符号語と呼ぶ)が、入力ビ
ット列として入力される。入力端子7を介して入力ビッ
ト列が入力されると、誤り検出符号化装置19と同様の
処理が行われる。入力ビット列(N+kビット)に対す
る処理が終了したときに、冗長ビット列保持手段11で
保持されている値が、通信媒体を介して受信された入力
ビット列の誤りを検出するための検査ビット列となる。
このとき、ゲート16を開き、検査ビット列を誤り検出
比較手段15に出力する。誤り検出比較手段15では、
ゲート16から入力されるビット列と、所定ビットパタ
ーン保持手段14から入力されるビット列00000000000000
00とが等しい場合は、入力ビット列に誤りなし、ビット
列が異なる場合は、入力ビット列に誤りありと判断し、
その判断結果を示すパルス(例えば、誤りなしであれば
0を、誤りありであれば1)を出力する。
First, at the start of operation, the gate 16 is closed,
The predetermined bit pattern holding means 14 includes a generator polynomial G
Predetermined bit string 000000000000 uniquely determined by (x)
0000 is kept. An information bit sequence 01010000000000000000001100000000 is input to the input terminal 7 of the error detection decoding device 20 from the error detection encoding device 19 side via a communication medium.
(N = 32 bits), a redundant bit string 0001011000000100
(K = 16 bits) added bit string (N + k = 32
+ 16 = 48 bits: hereinafter referred to as a code word) is input as an input bit string. When an input bit sequence is input via the input terminal 7, the same processing as that performed by the error detection encoding device 19 is performed. When the processing on the input bit string (N + k bits) is completed, the value held by the redundant bit string holding means 11 becomes a check bit string for detecting an error in the input bit string received via the communication medium.
At this time, the gate 16 is opened, and the check bit string is output to the error detection / comparison means 15. In the error detection comparing means 15,
The bit string input from the gate 16 and the bit string 00000000000000 input from the predetermined bit pattern holding means 14
When 00 is equal, it is determined that there is no error in the input bit string, and when the bit strings are different, it is determined that there is an error in the input bit string,
A pulse indicating the determination result (for example, 0 if there is no error, 1 if there is an error) is output.

【0038】任意の生成多項式で構成された符号化装置
で生成された符号語は、同じ生成多項式から構成される
復号装置で誤り検出することができる。このため、復号
装置において分割の際のパラメータn’,m’は、符号
化装置と異なってもよいことは明らかである。
Codewords generated by an encoding device composed of arbitrary generator polynomials can be detected by a decoding device composed of the same generator polynomial. Therefore, it is obvious that the parameters n ′ and m ′ at the time of division in the decoding device may be different from those in the encoding device.

【0039】[0039]

【発明の効果】以上説明したように、本発明は、入力ビ
ット列をnビットに分割し、さらにm個のブロックに分
け、各ブロックの演算結果の累積排他的論理和をとるこ
とで、冗長ビット列(kビット)を求める。これによ
り、ハードウェアで実現する場合の回路規模が大きくな
るのを防ぐことができるという効果がある。また、ソフ
トウェアで同様の動作を実現させるのにメモリを用いて
いるが、このとき、従来の方法であれば、nビットの処
理を行うために、メモリを2n×kだけ必要としたが、
本発明では、分割をうまく行うことにより、多くても2
n/m×k×mで済み、従来に比べ演算量が少なく高速、
かつメモリ容量を少なく抑えることができるという効果
もある。さらに、分割ビット数、分割ブロック数を変え
ることで、そのとき要求されるハードウェア、または、
ソフトウェアの条件に適した誤り検出符号化復号方法を
実現できるという効果もある。
As described above, the present invention divides an input bit string into n bits, further divides the block into m blocks, and calculates the exclusive OR of the operation results of each block to obtain a redundant bit string. (K bits). As a result, there is an effect that it is possible to prevent an increase in the circuit scale when implemented by hardware. In addition, a memory is used to realize the same operation by software. At this time, according to the conventional method, 2 n × k memory is required to perform n-bit processing.
In the present invention, by performing the division well, at most 2
n / m x k x m is required, the amount of calculation is smaller than before,
In addition, there is an effect that the memory capacity can be reduced. Furthermore, by changing the number of division bits and the number of division blocks, the required hardware at that time, or
There is also an effect that an error detection encoding / decoding method suitable for software conditions can be realized.

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

【図1】本発明の誤り検出符号化装置のブロック図であ
る。
FIG. 1 is a block diagram of an error detection coding apparatus according to the present invention.

【図2】本発明の誤り検出復号装置のブロック図であ
る。
FIG. 2 is a block diagram of an error detection decoding device according to the present invention.

【図3】本発明の誤り検出符号化装置および誤り検出復
号装置に共通に使用する冗長ビット列演算部の構成を示
すブロック図である。
FIG. 3 is a block diagram illustrating a configuration of a redundant bit string operation unit commonly used in the error detection encoding device and the error detection decoding device according to the present invention.

【図4】ブロック演算手段3−1のメモリの記憶状態を
説明する説明図である。
FIG. 4 is an explanatory diagram illustrating a storage state of a memory of a block operation unit 3-1.

【図5】ブロック演算手段3−2のメモリの記憶状態を
説明する説明図である。
FIG. 5 is an explanatory diagram illustrating a storage state of a memory of a block operation unit 3-2.

【図6】従来の誤り検出符号化装置のブロック図であ
る。
FIG. 6 is a block diagram of a conventional error detection coding device.

【図7】従来の誤り検出符号化装置における冗長ビット
列演算手段のブロック図である。
FIG. 7 is a block diagram of a redundant bit string operation unit in a conventional error detection coding device.

【図8】除算手段にメモリを使用する実現方法を説明す
る説明図である。
FIG. 8 is an explanatory diagram for explaining an implementation method using a memory as a dividing unit.

【図9】従来の誤り検出復号装置のブロック図である。FIG. 9 is a block diagram of a conventional error detection decoding device.

【符号の説明】 1 排他的論理和演算手段からの入力端子 2 ブロック分割手段 3−i ブロック演算手段(i=1〜m) 4 累積排他的論理和演算手段 5 冗長ビット列保持手段への出力端子 6 冗長ビット列分割手段からの入力端子 7 入力端子 8 入力ビット列分割手段 9 排他的論理和演算手段 10 冗長ビット列演算手段 11 冗長ビット列保持手段 12 冗長ビット列分割手段 13,13’ 出力端子 14 所定ビットパターン保持手段 15 誤り検出比較手段 16 ゲート 17 冗長ビット列演算部 19 誤り検出符号化装置 20 誤り検出復号装置 21 アドレス 22 メモリ 23 出力 30 除算手段 40 冗長ビット列排他的論理和手段[Description of Signs] 1 Input terminal from exclusive OR operation means 2 Block division means 3-i Block operation means (i = 1 to m) 4 Cumulative exclusive OR operation means 5 Output terminal to redundant bit string holding means 6 Input terminal from redundant bit string dividing means 7 Input terminal 8 Input bit string dividing means 9 Exclusive OR operation means 10 Redundant bit string calculating means 11 Redundant bit string holding means 12 Redundant bit string dividing means 13, 13 'Output terminal 14 Predetermined bit pattern holding Means 15 Error detection / comparison means 16 Gate 17 Redundant bit string operation unit 19 Error detection coding apparatus 20 Error detection decoding apparatus 21 Address 22 Memory 23 Output 30 Division means 40 Redundant bit string exclusive OR means

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 Nビットの情報ビット列を複数ビット数
nごとに分割したN/n個のビット列をそれぞれ順にビ
ット列Dとして排他的論理和演算手段に出力する入力ビ
ット列分割手段と、それまで入力された情報ビット列
(ビット列F、長さL×nビット:ただし、L=0,
1,…,N/n−1)に対する冗長ビット列を保持して
おく冗長ビット列保持手段から入力されるビット列を分
割しnビットのビット列(ビット列B)を前記排他的論
理和演算手段に残りのビット列(ビット列C)を冗長ビ
ット列演算手段に出力する冗長ビット列分割手段と、前
記入力ビット列分割手段から入力される前記ビット列D
と前記ビット列Bとの排他的論理和をとり演算結果を前
記冗長ビット列演算手段に出力する前記排他的論理和演
算手段と、前記排他的論理和演算手段から入力されるビ
ット列に対応する符号多項式を所定の生成多項式で除算
したときの剰余に対応するビット列と前記ビット列Cと
から新たな冗長ビット列を求める演算を行い演算結果を
前記冗長ビット列保持手段に出力する前記冗長ビット列
演算手段と、前記ビット列Fに前記ビット列Dを付加し
たビット列を新たなビット列F(長さ(L+1)×nビ
ット)として更新し、前記冗長ビット列演算手段から入
力されるビット列を前記更新されたビット列Fに対する
新たな冗長ビット列として保持する前記冗長ビット列保
持手段とを有する誤り検出符号化装置において、前記冗
長ビット列演算手段が、前記排他的論理和演算手段から
入力されるnビットのビット列を複数(m個)のブロッ
クに分割するブロック分割手段と、前記ブロック分割手
段で各ブロックに分割されたビット列に対応する符号多
項式を所定の生成多項式で除算したときの剰余に対応す
るビット列を求め演算結果を累積排他的論理和演算手段
に出力するブロック演算手段と、前記ブロック演算手段
から入力されるビット列(m個)と前記ビット列Cとの
累積排他的論理和をとり演算結果を出力する前記累積排
他的論理和演算手段とを有することを特徴とする誤り検
出符号化装置。
1. An input bit string dividing means for sequentially outputting N / n bit strings obtained by dividing an N-bit information bit string for each of a plurality of bits n as a bit string D to an exclusive OR operation means, Information bit string
(Bit string F, length L × n bits: where L = 0,
1,..., N / n-1), the bit string input from the redundant bit string holding means for holding the redundant bit string is divided, and the n-bit bit string (bit string B) is stored in the exclusive OR operation means. Redundant bit string dividing means for outputting (bit string C) to redundant bit string computing means; and bit string D inputted from the input bit string dividing means.
The exclusive OR operation means for calculating the exclusive OR of the bit string B and the operation result to the redundant bit string operation means, and a code polynomial corresponding to the bit string input from the exclusive OR operation means. The redundant bit string calculating means for performing an operation for obtaining a new redundant bit string from the bit string corresponding to the remainder when divided by a predetermined generator polynomial and the bit string C, and outputting an operation result to the redundant bit string holding means; Is updated as a new bit string F (length (L + 1) × n bits), and the bit string input from the redundant bit string calculating means is used as a new redundant bit string for the updated bit string F. An error detection coding device having the redundant bit string holding means for holding the redundant bit string. Is a block dividing unit that divides an n-bit bit string input from the exclusive OR operation unit into a plurality of (m) blocks, and a code polynomial corresponding to the bit string divided into each block by the block dividing unit. A bit string corresponding to the remainder when the is divided by a predetermined generator polynomial, and outputs a calculation result to a cumulative exclusive OR calculation means; a bit string (m) input from the block calculation means; An error detection coding apparatus comprising: the above-mentioned means for calculating an exclusive-OR with a bit string C and outputting an operation result.
【請求項2】 N’ビットの入力ビット列(ビット列
A)を複数ビット数n’ごとに分割したN’/n’個の
ビット列をそれぞれ順にビット列Dとして排他的論理和
演算手段に出力する入力ビット列分割手段と、それまで
入力されたビット列(ビット列F、長さL’×n’ビッ
ト:ただし、L’=0,1,…,N’/n’−1)に対
する冗長ビット列を保持しておく冗長ビット列保持手段
から入力されるビット列を分割し、n’ビットのビット
列(ビット列B)を前記排他的論理和演算手段に、残り
のビット列(ビット列C)を冗長ビット列演算手段に出
力する冗長ビット列分割手段と、前記入力ビット列分割
手段から入力される前記ビット列Dと前記ビット列Bと
の排他的論理和をとり演算結果を前記冗長ビット列演算
手段に出力する前記排他的論理和演算手段と、前記排他
的論理和演算手段から入力されるビット列に対応する符
号多項式を所定の生成多項式で除算したときの剰余に対
応するビット列と前記ビット列Cとから、新たな冗長ビ
ット列を求める演算を行い、演算結果を前記冗長ビット
列保持手段に出力する前記冗長ビット列演算手段と、前
記ビット列Fに前記ビット列Dを付加したビット列を新
たなビット列F(長さ(L’+1)×n’ビット)とし
て更新し、前記冗長ビット列演算手段から入力されるビ
ット列を前記更新されたビット列Fに対する新たな冗長
ビット列として保持する前記冗長ビット列保持手段と、
前記入力ビット列Aの誤りを検出するためにあらかじめ
所定のビット列を保持しておく所定ビットパターン保持
手段と、前記ビット列Aに対する処理が終了したとき
に、前記冗長ビット列保持手段と前記所定ビットパター
ン保持手段から出力されるビット列とを比較し、前記ビ
ット列Aに誤りがあるか否かの結果を出力する誤り検出
比較手段とを有する誤り検出復号装置において、前記冗
長ビット列演算手段が、前記排他的論理和演算手段から
入力されるnビットのビット列を複数(m’個)のブロ
ックに分割するブロック分割手段と、前記ブロック分割
手段で各ブロックに分割されたビット列に対応する符号
多項式を所定の生成多項式で除算したときの剰余に対応
するビット列を求め演算結果を累積排他的論理和演算手
段に出力するブロック演算手段と、前記ブロック演算手
段から入力されるビット列(m’個)と前記ビット列C
との累積排他的論理和をとり演算結果を出力する前記累
積排他的論理和演算手段とを有することを特徴とする誤
り検出復号装置。
2. An input bit sequence that outputs N ′ / n ′ bit sequences obtained by dividing an N′-bit input bit sequence (bit sequence A) for each of a plurality of bits n ′ as a bit sequence D to an exclusive OR operation means. The dividing means and the redundant bit string for the bit string (bit string F, length L '× n' bits: L '= 0, 1,..., N' / n'-1) which have been input so far are held. Redundant bit string division for dividing a bit string input from the redundant bit string holding means, outputting an n'-bit bit string (bit string B) to the exclusive OR operation means, and outputting the remaining bit string (bit string C) to the redundant bit string operation means Means for calculating an exclusive OR of the bit string D and the bit string B input from the input bit string dividing means, and outputting an operation result to the redundant bit string calculating means. Means for calculating a new redundant bit string from the bit string corresponding to the remainder when the code polynomial corresponding to the bit string input from the exclusive OR operation means is divided by a predetermined generator polynomial and the bit string C And a redundant bit string operation means for outputting the operation result to the redundant bit string holding means, and a bit string obtained by adding the bit string D to the bit string F as a new bit string F (length (L '+ 1) × n' bits). The redundant bit string holding means for updating and holding the bit string input from the redundant bit string calculation means as a new redundant bit string for the updated bit string F;
A predetermined bit pattern holding means for holding a predetermined bit string in advance to detect an error of the input bit string A; and a redundant bit string holding means and the predetermined bit pattern holding means when the processing on the bit string A is completed. And an error detection / comparison means for comparing the bit string A with an error detection result and outputting a result indicating whether or not the bit string A has an error. Block dividing means for dividing the n-bit bit string input from the arithmetic means into a plurality of (m ') blocks; and code polynomials corresponding to the bit strings divided into the respective blocks by the block dividing means are determined by a predetermined generator polynomial. A block for obtaining a bit string corresponding to a remainder after division and outputting an operation result to a cumulative exclusive OR operation means Operation means, a bit string (m 'pieces) input from the block operation means, and the bit string C
And an accumulative exclusive OR operation means for calculating the exclusive OR of the data and outputting the operation result.
【請求項3】 入力ビット列分割手段がNビットの情報
ビット列を複数ビット数nごとに分割したN/n個のビ
ット列をそれぞれ順にビット列Dとして排他的論理和演
算手段に出力し、冗長ビット列分割手段がそれまで入力
された情報ビット列(ビット列F、長さL×nビット:
ただし、L=0,1,…,N/n−1)に対する冗長ビ
ット列を保持しておく冗長ビット列保持手段から入力さ
れるビット列を分割しnビットのビット列(ビット列
B)を前記排他的論理和演算手段に残りのビット列(ビ
ット列C)を冗長ビット列演算手段に出力し、前記排他
的論理和演算手段が前記入力ビット列分割手段から入力
される前記ビット列Dと前記ビット列Bとの排他的論理
和をとり演算結果を前記冗長ビット列演算手段に出力
し、前記冗長ビット列演算手段が前記排他的論理和演算
手段から入力されるビット列に対応する符号多項式を所
定の生成多項式で除算したときの剰余に対応するビット
列と前記ビット列Cとから新たな冗長ビット列を求める
演算を行い演算結果を前記冗長ビット列保持手段に出力
し、前記冗長ビット列保持手段が前記ビット列Fに前記
ビット列Dを付加したビット列を新たなビット列F(長
さ(L+1)×nビット)として更新し前記冗長ビット
列演算手段から入力されるビット列を前記更新されたビ
ット列Fに対する新たな冗長ビット列として保持する誤
り検出符号化方法において、前記冗長ビット列演算手段
の行う新たな冗長ビット列を求める演算を、まずブロッ
ク分割手段が前記排他的論理和演算手段から入力される
nビットのビット列を複数(m個)のブロックに分割
し、次にブロック演算手段が前記ブロック分割手段で各
ブロックに分割されたビット列に対応する符号多項式を
所定の生成多項式で除算したときの剰余に対応するビッ
ト列を求め演算結果を累積排他的論理和演算手段に出力
し、最後に前記累積排他的論理和演算手段が前記ブロッ
ク演算手段から入力されるビット列(m個)と前記ビッ
ト列Cとの累積排他的論理和をとり演算結果を出力する
ことで行うことを特徴とする誤り検出符号化方法。
3. The input bit string dividing means outputs N / n bit strings obtained by dividing the N-bit information bit string for each of a plurality of bits n to the exclusive OR operation means as a bit string D in order, and outputs the redundant bit string dividing means. Is an information bit sequence (bit sequence F, length L × n bits:
However, the bit string input from the redundant bit string holding means for holding the redundant bit string for L = 0, 1,..., N / n-1) is divided and the n-bit bit string (bit string B) is exclusive-ORed. The remaining bit string (bit string C) is output to the redundant bit string calculating means to the calculating means, and the exclusive OR calculating means calculates the exclusive OR of the bit string D and the bit string B input from the input bit string dividing means. The result of the arithmetic operation is output to the redundant bit string calculating means, and the redundant bit string calculating means corresponds to the remainder when the code polynomial corresponding to the bit string input from the exclusive OR calculating means is divided by a predetermined generator polynomial. Performing an operation for obtaining a new redundant bit sequence from the bit sequence and the bit sequence C, outputting an operation result to the redundant bit sequence holding means, The updating means updates the bit string obtained by adding the bit string D to the bit string F as a new bit string F (length (L + 1) × n bits) and updates the bit string input from the redundant bit string calculating means with respect to the updated bit string F In the error detection encoding method for retaining as a new redundant bit string, the operation for obtaining a new redundant bit string performed by the redundant bit string calculating means is performed by first using a n-bit bit string input from the exclusive OR calculating means by the block dividing means. Is divided into a plurality of (m) blocks, and then the block arithmetic means divides the code polynomial corresponding to the bit string divided into each block by the block dividing means by a predetermined generator polynomial, and generates a bit string corresponding to a remainder. And outputs the operation result to the cumulative exclusive OR operation means. Finally, the cumulative exclusive OR operation means An error detection encoding method characterized by performing a cumulative exclusive OR of a bit string (m pieces) input from the block operation means and the bit string C and outputting an operation result.
【請求項4】 入力ビット列分割手段がN’ビットの入
力ビット列(ビット列A)を複数ビット数n’ごとに分
割したN’/n’個のビット列をそれぞれ順にビット列
Dとして排他的論理和演算手段に出力し、冗長ビット列
分割手段がそれまで入力されたビット列(ビット列F、
長さL’×n’ビット:ただし、L’=0,1,…,
N’/n’−1)に対する冗長ビット列を保持しておく
冗長ビット列保持手段から入力されるビット列を分割
し、n’ビットのビット列(ビット列B)を前記排他的
論理和演算手段に、残りのビット列(ビット列C)を冗
長ビット列演算手段に出力し、前記排他的論理和演算手
段が前記入力ビット列分割手段から入力される前記ビッ
ト列Dと前記ビット列Bとの排他的論理和をとり演算結
果を前記冗長ビット列演算手段に出力し、前記冗長ビッ
ト列演算手段が前記排他的論理和演算手段から入力され
るビット列に対応する符号多項式を所定の生成多項式で
除算したときの剰余に対応するビット列と前記ビット列
Cとから新たな冗長ビット列を求める演算を行い、演算
結果を前記冗長ビット列保持手段に出力し、前記冗長ビ
ット列保持手段が前記ビット列Fに前記ビット列Dを付
加したビット列を新たなビット列F(長さ(L’+1)
×n’ビット)として更新し、前記冗長ビット列演算手
段から入力されるビット列を前記更新されたビット列F
に対する新たな冗長ビット列として保持し、所定ビット
パターン保持手段が前記入力ビット列Aの誤りを検出す
るためにあらかじめ所定のビット列を保持しておき、誤
り検出比較手段が前記ビット列Aに対する処理が終了し
たときに前記冗長ビット列保持手段と前記所定ビットパ
ターン保持手段から出力されるビット列とを比較し、前
記ビット列Aに誤りがあるか否かの結果を出力する誤り
検出復号方法において、前記冗長ビット列演算手段の行
う新たな冗長ビット列を求める演算を、ブロック分割手
段がまず前記排他的論理和演算手段から入力されるn’
ビットのビット列を複数(m’個)のブロックに分割
し、次にブロック演算手段が前記ブロック分割手段で各
ブロックに分割されたビット列に対応する符号多項式を
所定の生成多項式で除算したときの剰余に対応するビッ
ト列を求め、演算結果を累積排他的論理和演算手段に出
力し、最後に前記累積排他的論理和演算手段が前記ブロ
ック演算手段から入力されるビット列(m’個)と前記
ビット列Cとの累積排他的論理和をとり演算結果を出力
することで行うことを特徴とする誤り検出復号方法。
4. An exclusive OR operation means in which N '/ n' bit strings obtained by dividing an N'-bit input bit string (bit string A) into a plurality of bit numbers n 'are sequentially set as bit strings D by an input bit string dividing means. And the redundant bit string dividing means outputs the bit string (bit string F,
Length L '× n' bits: where L '= 0, 1,...,
N ′ / n′−1), the bit string input from the redundant bit string holding means for holding the redundant bit string is divided, and the bit string of n ′ bits (bit string B) is sent to the exclusive OR operation means, A bit string (bit string C) is output to redundant bit string calculating means, and the exclusive OR calculating means calculates an exclusive OR of the bit string D and the bit string B input from the input bit string dividing means, and calculates the result of the calculation. A bit string corresponding to a remainder when the redundant bit string calculating means divides a code polynomial corresponding to the bit string input from the exclusive OR calculating means by a predetermined generator polynomial; , An operation for obtaining a new redundant bit string is performed, and the result of the operation is output to the redundant bit string holding means. Preparative column F to the bit string D bit string obtained by adding a new bit sequence F (length (L '+ 1)
× n ′ bits), and the bit string input from the redundant bit string calculating means is updated as the updated bit string F
And a predetermined bit pattern holding means holds a predetermined bit string in advance to detect an error in the input bit string A, and the error detection / comparison means completes the processing on the bit string A. Comparing the redundant bit string holding means with the bit string output from the predetermined bit pattern holding means, and outputting a result as to whether or not the bit string A has an error. The block dividing means first performs an operation for finding a new redundant bit string to be performed by n ′ input from the exclusive OR operation means.
The bit string of bits is divided into a plurality of (m ') blocks, and then the block operation means divides the code polynomial corresponding to the bit string divided into each block by the block dividing means by a predetermined generator polynomial. , And outputs the operation result to the cumulative exclusive OR operation means. Finally, the cumulative exclusive OR operation means outputs the bit string (m ′) input from the block operation means and the bit string C An error detection decoding method characterized in that the method is performed by taking a cumulative exclusive OR with the result and outputting a calculation result.
JP9015207A 1997-01-29 1997-01-29 Error detection encoding and decoding device and method Pending JPH10215187A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9015207A JPH10215187A (en) 1997-01-29 1997-01-29 Error detection encoding and decoding device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9015207A JPH10215187A (en) 1997-01-29 1997-01-29 Error detection encoding and decoding device and method

Publications (1)

Publication Number Publication Date
JPH10215187A true JPH10215187A (en) 1998-08-11

Family

ID=11882433

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9015207A Pending JPH10215187A (en) 1997-01-29 1997-01-29 Error detection encoding and decoding device and method

Country Status (1)

Country Link
JP (1) JPH10215187A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003090362A1 (en) * 2002-04-22 2003-10-30 Fujitsu Limited Error-detection encoder and decoder, and divisor
JP2008160663A (en) * 2006-12-26 2008-07-10 Fujitsu Ltd Division method for information bit string and its device
JP2014038413A (en) * 2012-08-13 2014-02-27 Fujitsu Ltd Operation circuit and control method for operation circuit
JPWO2015177917A1 (en) * 2014-05-23 2017-04-20 富士通株式会社 Arithmetic circuit, encoding circuit and decoding circuit

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003090362A1 (en) * 2002-04-22 2003-10-30 Fujitsu Limited Error-detection encoder and decoder, and divisor
US7428693B2 (en) 2002-04-22 2008-09-23 Fujitsu Limited Error-detecting encoding and decoding apparatus and dividing apparatus
JP2008160663A (en) * 2006-12-26 2008-07-10 Fujitsu Ltd Division method for information bit string and its device
JP2014038413A (en) * 2012-08-13 2014-02-27 Fujitsu Ltd Operation circuit and control method for operation circuit
JPWO2015177917A1 (en) * 2014-05-23 2017-04-20 富士通株式会社 Arithmetic circuit, encoding circuit and decoding circuit

Similar Documents

Publication Publication Date Title
JP2005102213A (en) Method for computing crc of message
US6772385B2 (en) Error-correcting device and decoder enabling fast error correction with reduced circuit scale
CN102096609A (en) Instruction-set architecture for programmable cyclic redundancy check (CRC) computations
US5535140A (en) Polynominal-set deriving apparatus and method
EP0480621A2 (en) Apparatus and method for parallel generation of cyclic redundancy check (CRC) codes
US5212695A (en) Error check or erro correction code coding device
JP3281868B2 (en) Viterbi decoding method
JPS5949618B2 (en) Serial encoder for cyclic block codes
KR100258952B1 (en) Rs decoder and method therefor having new polynomial arrangement architecture
US7299398B2 (en) Data generating method for forming desired CRC code
JPH10215187A (en) Error detection encoding and decoding device and method
JP2001251194A (en) Crc arithmetic unit
US5604752A (en) Communication method and apparatus therefor
EP1947796A2 (en) Method and apparatus for dividing information bit string
KR940011663B1 (en) Error correcting system
US6442747B1 (en) Method of synthesizing a cycle redundancy code generator circuit using hardware description language
KR100281946B1 (en) Syndrome calculation device
JP2001036414A (en) Crc code generation circuit and crc error detection circuit
US5862159A (en) Parallelized cyclical redundancy check method
JP2694794B2 (en) Error correction processing method
JPH1032497A (en) Error evaluation polynomial coefficient computing device
JPS6217256B2 (en)
US6581083B1 (en) Syndrome generator and method for generating syndromes in a video/audio processing system
JP2004120419A (en) Reed-solomon coding circuit and reed-solomon decoding circuit
JP3449339B2 (en) Decoding device and decoding method

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20011204