JP3280470B2 - Error correction circuit - Google Patents

Error correction circuit

Info

Publication number
JP3280470B2
JP3280470B2 JP13790593A JP13790593A JP3280470B2 JP 3280470 B2 JP3280470 B2 JP 3280470B2 JP 13790593 A JP13790593 A JP 13790593A JP 13790593 A JP13790593 A JP 13790593A JP 3280470 B2 JP3280470 B2 JP 3280470B2
Authority
JP
Japan
Prior art keywords
circuit
exclusive
output
gates
gate
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.)
Expired - Fee Related
Application number
JP13790593A
Other languages
Japanese (ja)
Other versions
JPH06348518A (en
Inventor
健 宮野
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.)
Denso Ten Ltd
Original Assignee
Denso Ten 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 Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP13790593A priority Critical patent/JP3280470B2/en
Publication of JPH06348518A publication Critical patent/JPH06348518A/en
Application granted granted Critical
Publication of JP3280470B2 publication Critical patent/JP3280470B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Error Detection And Correction (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、αをm次のガロア拡大
体GF(2m)の原始元とし、α,α3を根にもつ2重誤
り訂正(n,k)BCH符号の復号を行うための誤り訂
正回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to the decoding of a double error-correcting (n, k) BCH code having α as a primitive element of the Galois extension field GF (2 m ) of order m and α and α 3 as roots. And an error correction circuit for performing the correction.

【0002】[0002]

【従来の技術】tビット訂正BCH(Bose-Chauduri-Ho
cqenghem Codes)符号のパラメータに関して、符号長n
は、 n = 2m − 1 …(1) であり、情報数kは、 k ≧ n − mt …(2) であり、このような符号長n、情報数kのBCH符号
は、(n,k)BCH符号と呼ばれる。
2. Description of the Related Art A t-bit corrected BCH (Bose-Chauduri-Ho)
cqenghem Codes) For code parameters, code length n
Is n = 2 m -1 (1), the number of information k is k ≧ n-mt (2), and the BCH code of such a code length n and the number of information k is (n, k) Called BCH code.

【0003】誤り訂正符号の中でも、BCH符号は、実
用上、極めて重要なものであり、通信、記録分野に多く
用いられている。その中でも特に2重誤り訂正符号は、
復号の際に用いる誤り位置多項式の係数とシンドローム
の関係が明らかにされており、ハード化の検討が比較的
容易である。しかしその復号には、ガロア体上での加
算、乗算、除算なの演算が必要であるので、先行技術で
は、(a)べき数←→ベクトル表現、逆元などをリード
オンリメモリに記憶させておき、外部からアクセスする
構成、または(b)シンドロームと誤りの位置を表に求
め、同様にリードオンリメモリを外部からアクセスする
構成が実現されている。このような先行技術では、ハー
ド化する場合、リードオンリメモリに多くのメモリ容量
を必要とし、訂正数に対しコストが多くかかることにな
る。
[0003] Among error correction codes, the BCH code is extremely important in practical use, and is widely used in the fields of communication and recording. Among them, the double error correction code is
The relationship between the error locator polynomial coefficient used in decoding and the syndrome has been clarified, and it is relatively easy to consider hardware. However, the decoding requires addition, multiplication, and division operations on the Galois field. Therefore, in the prior art, (a) exponent ← → vector representation, inverse element, etc. are stored in a read-only memory. , An external access, or (b) a configuration in which a syndrome and an error position are obtained in a table and the read-only memory is accessed from the outside in the same manner. In such prior art, when hardware is used, a large memory capacity is required for the read-only memory, and the cost is high relative to the number of corrections.

【0004】たとえば図19の先行技術では、BCH符
号信号がライン1から与えられるシンドロームS1のレ
ジスタ2と、シンドロームS3のレジスタ3と、リード
オンリメモリ4とが備えられ、その受信されたBCH符
号信号をストアするデータレジスタ5が備えられ、訂正
後のBCH符号信号を導出する排他的論理和ゲート回路
6が備えられる。このような図19に示される先行技術
では、前述の先行技術(b)を実現するものであって、
上述のようにリードオンリメモリ4のメモリ容量を大き
くする必要があるという問題がある。
For example, in the prior art shown in FIG. 19, a register 2 of a syndrome S1 to which a BCH code signal is supplied from a line 1, a register 3 of a syndrome S3, and a read-only memory 4 are provided, and the received BCH code signal is provided. Is provided, and an exclusive OR gate circuit 6 for deriving a corrected BCH code signal is provided. The prior art shown in FIG. 19 realizes the above-described prior art (b),
As described above, there is a problem that the memory capacity of the read-only memory 4 needs to be increased.

【0005】[0005]

【発明が解決しようとする課題】本発明の目的は、ガロ
ア拡大体GF(2m )上の加算、乗算、除算などの操作
が簡単な構成で実現することができるようにした誤り訂
正回路を提供することである。
SUMMARY OF THE INVENTION It is an object of the present invention to provide an error correction circuit capable of realizing operations such as addition, multiplication and division on a Galois extended field GF (2 m ) with a simple configuration. To provide.

【0006】また従来から、誤り位置の導出には、チエ
ン探索法が用いられており、この方法を実現する構成で
は、外部クロック信号を必要とし、したがってリアルタ
イム処理ができないという問題がある。
Conventionally, a chain search method has been used to derive an error position. In a configuration for realizing this method, there is a problem that an external clock signal is required and real-time processing cannot be performed.

【0007】また本発明の目的は、BCH符号信号の読
み込みと同時に誤り位置の探索が可能になるようにした
誤り訂正回路を提供することである。
It is another object of the present invention to provide an error correction circuit which can search for an error position while reading a BCH code signal.

【0008】[0008]

【課題を解決するための手段】本発明は、(a)BCH
符号信号を(x−α)によって割り算して第1シンドロ
ームS1を求める第1シンドロームレジスタ9と、 (b)前記BCH符号信号を(x−α3 )による割り算
を行って第2シンドロームS3を求める第2シンドロー
ムレジスタ10と、 (c)誤り位置多項式の係数導出回路12であって、 (c1)αをm次のガロア拡大体GF(2m)の原始元
とし、α,α3を根にもつ2重誤り訂正(n,k)BC
H符号の復号において、(2m −1)個の第1α乗算器
MX1〜MXiを直列につなぎ、初段の第1α乗算器M
X1にα0を与えることによって、GF(2m)の元α〜
α(2m−1)(以下、αの(2m−1)乗を表す)を作
成する元作成回路19と、 (c2)第1シンドロームS1と元作成回路19の出力
とに応答し、S1α〜S1α(2m−1)を求めるべき
乗回路21であって、(2m−1)個の第1加算器AD
0〜ADiを有し、各加算器AD0〜ADiは、S1の
各ビットa0〜a3と、α1〜α(2m−1)の各ビッ
トb0〜b3とが与えられる第1排他的論理和ゲートE
R0〜ER3と、これらの第1排他的論理和ゲートER
0〜ER3の出力が与えられる第1NANDゲートG0
とを有し、各第1加算器AD0〜ADiは、出力L0〜
Liを導出するべき乗回路21と、 (c3)第1シンドロームS1とGF(2m)上の(2m
−1)個の元を乗算する第1乗算回路23であって、
(2m−1)個の第2α乗算器MX11〜MX1iを直
列につなぎ、初段の第2α乗算器MX11に第1シンド
ロームS1を与える第1乗算回路23と、 (c4)第1乗算回路23の結果と、べき乗回路21の
結果とに基づいて、S12 を求めるS12サーチ回路2
2であって、各第2α乗算器MX11〜MX1iの出力
と、べき乗回路21の各第1加算器AD0〜ADiの出
力L0〜Liとが、与えられる第1ANDゲートG10
〜G1iと、第1ANDゲートG10〜G1iの出力が
与えられ、S12を出力する第2排他的論理和ゲートE
R10とを有するS12サーチ回路22と、 (c5)S1の逆元を求める逆元サーチ回路25であっ
て、(2m−1)個の第3排他的論理和ゲートER30
〜ER3iであって、各第3排他的論理和ゲートER3
0〜ER3iには、α0と、第1乗算回路23の第2乗
算器MX11〜MX1iの出力とが与えられる第3排他
的論理和ゲートER30〜ER3iと、第3排他的論理
和ゲートER30〜ER3iの各出力の全ビットが論理
「0」となることを検出するNANDゲートによって実
現される全零検知回路AZ0〜AZiとを有する逆元サ
ーチ回路25と、 (c6)第2シンドロームS3とGF(2m)上の(2m
−1)個の元を乗算する第2乗算回路27であって、
(2m−1)個の第3α乗算器MX21〜MX2iを直
列につなぎ、初段の第3α乗算器MX21に、第2シン
ドロームS3を与える第2乗算回路27と、 (c7)第2乗算回路27の結果と逆元サーチ回路25
からの結果とに基づいてS3/S1を求めるS3/S1
サーチ回路26であって、 (c7−1)(2m−1)個の第2ANDゲートG20
〜G2iであって、各第2ANDゲートG20〜G2i
は、逆元サーチ回路25の各全零検知回路AZ0〜AZ
iの出力L20〜L2iと、第2乗算回路27の第3α
乗算器MX21〜MX2iからの出力とが与えられる第
2ANDゲートG20〜G2iと、 (c7−2)第2ANDゲートG20〜G2iの出力が
与えられ、S3/S1を導出する第4排他的論理和ゲー
トER5とを有するS3/S1サーチ回路26と、 (c8)S12 とS3/S1との結果を加算する回路2
8であって、S12サーチ回路22の第2排他的論理和
ゲートER10の出力S12と、S3/S1サーチ回路
26の第4排他的論理和ゲートER5の出力S3/S1
とが、各ビット毎に与えられ、(S12+S3/S1)
を出力する第5排他的論理和ゲートER60〜ER63
を有する加算回路28とを含む誤り位置多項式の係数導
出回路12と、 (d)前記誤り位置多項式の係数導出回路の出力に応答
してチエン探索を行い、誤り位置を表すチエン探索回路
13と、 (e)前記BCH符号信号を受信してストアするデータ
のレジスタ11と、 (f)チエン探索回路の出力とデータレジスタの出力と
を演算して訂正後のBCH符号信号を得る演算回路14
とを含むことを特徴とする誤り訂正回路である。
SUMMARY OF THE INVENTION The present invention provides (a) BCH
A first syndrome register 9 for dividing the code signal by (x-α) to find a first syndrome S1; and (b) dividing the BCH code signal by (x-α 3 ) to find a second syndrome S3. A second syndrome register 10; and (c) a coefficient deriving circuit 12 for an error locator polynomial, wherein (c1) α is a primitive element of an m-th order Galois extended field GF (2 m ), and α and α 3 are roots. Double error correction (n, k) BC
In decoding the H code, (2 m -1) first α multipliers MX1 to MXi are connected in series, and the first stage first α multiplier M
By giving α0 to X1, the element αα of GF (2 m )
(c2) responding to the first syndrome S1 and the output of the element creation circuit 19, which creates α (2 m -1) (hereinafter, α represents the power of (2 m -1)); A power circuit 21 for calculating S1α to S1α (2 m -1), wherein (2 m -1) first adders AD
0 to ADi, and each of the adders AD0 to ADi is a first exclusive OR gate to which each bit a0 to a3 of S1 and each bit b0 to b3 of α1 to α (2 m -1) are given. E
R0 to ER3 and these first exclusive OR gates ER
0 to ER3 are applied to first NAND gate G0
And the first adders AD0 to ADi output L0 to L0.
A power circuit 21 for deriving a li, (c3) a first syndrome S1 and the GF (2 m) on the (2 m
-1) a first multiplication circuit 23 for multiplying the elements,
(C 4) a first multiplication circuit 23 that connects the (2 m −1) second α multipliers MX11 to MX1i in series and provides the first syndrome S1 to the first-stage second α multiplier MX11; results and, based on the result of the exponentiation circuit 21, obtains the S1 2 S1 2 search circuit 2
A first AND gate G10 to which the outputs of the second α multipliers MX11 to MX1i and the outputs L0 to Li of the first adders AD0 to ADi of the power circuit 21 are provided.
~G1i and, the output of the 1AND gate G10~G1i is given, a second exclusive-OR gate E outputs the S1 2
And S1 2 search circuit 22 and a R10, (c5) S1 a inverse search circuit 25 for obtaining the inverse of, (2 m -1) pieces of third exclusive OR gate ER30
ER3i, each of the third exclusive OR gates ER3
0 to ER3i are supplied with α 0 and the outputs of the second multipliers MX11 to MX1i of the first multiplier circuit 23. The third exclusive OR gates ER30 to ER3i and the third exclusive OR gate ER30 to An inverse element search circuit 25 having all-zero detection circuits AZ0 to AZi realized by a NAND gate for detecting that all bits of each output of ER3i become logic "0"; (c6) second syndromes S3 and GF (2 m) on the (2 m
-1) a second multiplication circuit 27 for multiplying the elements,
A second multiplier circuit 27 that connects (2 m −1) third α multipliers MX21 to MX2i in series and provides a second syndrome S3 to the first-stage third α multiplier MX21; and (c7) a second multiplier circuit 27. Result and inverse element search circuit 25
S3 / S1 to obtain S3 / S1 based on the result from
(C7-1) (2 m -1) second AND gates G20
To G2i, each of the second AND gates G20 to G2i.
Are all zero detection circuits AZ0 to AZ of the inverse element search circuit 25.
i and the third α of the second multiplying circuit 27
A second AND gate G20 to G2i to which the output from the multipliers MX21 to MX2i is applied; and (c7-2) a fourth exclusive OR gate to which the output of the second AND gate G20 to G2i is applied to derive S3 / S1. and S3 / S1 search circuit 26 and a ER5, adds the result of (c8) S1 2 and S3 / S1 circuit 2
A 8, S1 2 second exclusive logical output S1 2 of OR gate ER10, S3 / S1 output S3 / S1 of the fourth exclusive OR gate ER5 the search circuit 26 of the search circuit 22
Is given for each bit, and (S1 2 + S3 / S1)
EXCLUSIVE-OR Gates ER60 to ER63 for Outputting
An error locator polynomial coefficient derivation circuit 12 including: an adder circuit 28 having: (d) a chain search circuit 13 for performing a chain search in response to an output of the error locator polynomial coefficient derivation circuit and representing an error position; (E) a register 11 for receiving and storing the BCH code signal, and (f) a calculation circuit 14 for calculating the output of the chain search circuit and the output of the data register to obtain a corrected BCH code signal.
And an error correction circuit comprising:

【0009】また本発明は、(a)BCH符号信号を
(x−α)によって割り算して第1シンドロームS1を
求める第1シンドロームレジスタ9と、 (b)前記BCH符号信号を(x−α3 )による割り算
を行って第2シンドロームS3を求める第2シンドロー
ムレジスタ10と、 (c)誤り位置多項式の係数導出回路12であって、 (c1)αをm次のガロア拡大体GF(2m)の原始元
とし、α,α3を根にもつ2重誤り訂正(n,k)BC
H符号の復号において、(2m −1)個の第1α乗算器
MX1〜MXiを直列につなぎ、初段の第1α乗算器M
X1にα0を与えることによって、GF(2m)の元α〜
α(2m−1)(以下、αの(2m−1)乗を表す)を作
成する元作成回路19と、 (c2)第1シンドロームS1と元作成回路19の出力
とに応答し、S1α〜S1α(2m−1)を求めるべき
乗回路21であって、(2m−1)個の第1加算器AD
0〜ADiを有し、各加算器AD0〜ADiは、S1の
各ビットa0〜a3と、α1〜α(2m−1)の各ビッ
トb0〜b3とが与えられる第1排他的論理和ゲートE
R0〜ER3と、これらの第1排他的論理和ゲートER
0〜ER3の出力が与えられる第1NANDゲートG0
とを有し、各第1加算器AD0〜ADiは、出力L0〜
Liを導出するべき乗回路21と、 (c3)第1シンドロームS1とGF(2m)上の(2m
−1)個の元を乗算する第1乗算回路23であって、
(2m−1)個の第2α乗算器MX11〜MX1iを直
列につなぎ、初段の第2α乗算器MX11に第1シンド
ロームS1を与える第1乗算回路23と、 (c4)第1乗算回路23の結果と、べき乗回路21の
結果とに基づいて、S12 を求めるS12サーチ回路2
2であって、各第2α乗算器MX11〜MX1iの出力
と、べき乗回路21の各第1加算器AD0〜ADiの出
力L0〜Liとが、与えられる第1ANDゲートG10
〜G1iと、第1ANDゲートG10〜G1iの出力が
与えられ、S12を出力する第2排他的論理和ゲートE
R10とを有するS12サーチ回路22と、 (c5)S1の逆元を求める逆元サーチ回路25であっ
て、(2m−1)個の第3排他的論理和ゲートER30
〜ER3iであって、各第3排他的論理和ゲートER3
0〜ER3iには、α0と、第1乗算回路23の第2乗
算器MX11〜MX1iの出力とが与えられる第3排他
的論理和ゲートER30〜ER3iと、第3排他的論理
和ゲートER30〜ER3iの各出力の全ビットが論理
「0」となることを検出するNANDゲートによって実
現される全零検知回路AZ0〜AZiとを有する逆元サ
ーチ回路25と、 (c6)第2シンドロームS3とGF(2m)上の(2m
−1)個の元を乗算する第2乗算回路27であって、
(2m−1)個の第3α乗算器MX21〜MX2iを直
列につなぎ、初段の第3α乗算器MX21に、第2シン
ドロームS3を与える第2乗算回路27と、 (c7)第2乗算回路27の結果と逆元サーチ回路25
からの結果とに基づいてS3/S1を求めるS3/S1
サーチ回路26であって、 (c7−1)(2m−1)個の第2ANDゲートG20
〜G2iであって、各第2ANDゲートG20〜G2i
は、逆元サーチ回路25の各全零検知回路AZ0〜AZ
iの出力L20〜L2iと、第2乗算回路27の第3α
乗算器MX21〜MX2iからの出力とが与えられる第
2ANDゲートG20〜G2iと、 (c7−2)第2ANDゲートG20〜G2iの出力が
与えられ、S3/S1を導出する第4排他的論理和ゲー
トER5とを有するS3/S1サーチ回路26と、 (c8)S12 とS3/S1との結果を加算する回路2
8であって、S12サーチ回路22の第2排他的論理和
ゲートER10の出力S12と、S3/S1サーチ回路
26の第4排他的論理和ゲートER5の出力S3/S1
とが、各ビット毎に与えられ、(S12+S3/S1)
を出力する第5排他的論理和ゲートER60〜ER63
を有する加算回路28とを含む誤り位置多項式の係数導
出回路12と、 (d)誤り位置検出回路であって、 (d1)その誤り位置多項式を σ(z) = 1 + Az + Bz2 としたとき、(2m −2)個の第4α乗算器MX31〜
MX3iを直列につなぎ、初段の第4α乗算器MX31
に、S12サーチ回路22の第2排他的論理和ゲートE
R10の出力S12であるAを与えることによってAαi
(i=0,1,2,…,2m−2)を出力する第1演算
回路41と、 (d2)(2m −2)個の第5α乗算器を直列につな
ぎ、初段の第5α乗算器に、加算回路28の第5排他的
論理和ゲートER60〜ER63からの出力(S12
S3/S1)であるBを与えることによってBαj(j
=0,1,2,…,2m−2)を出力する第2演算回路
42と、 (d3)Bαk(k=0,1,2,…,2m−2)に対し
第6α乗算器MX41;MX51,MX52;MX6
1,MX62,MX63;…をk個つなぐことによって
B(αk2を出力する第3演算回路43と、 (d4)第1演算回路41と第3演算回路43との出力
に基づいて、前記誤り位置多項式が、 σ(αL)=0 (L=0,1,2,…,2m−2) となるLを判別し、受信符号語の誤り位置を指示する出
力を導出する回路44であって、AαiおよびB(αi
2(i=0,1,…,2m−2)が与えられる第3加算器
AD10〜AD1iを有し、各第3加算器AD10〜A
D1iは、AαiおよびB(αi2の各ビットが与えら
れる各ビット毎の第6排他的論理和ゲートER70〜E
R7m-1と、第2ビット以降のビットa1〜am-1,b1
〜bm-1が与えられる第6排他的論理和ゲートER71
〜ER7m-1の出力が与えられる第2NANDゲートG
3と、第1ビットa0,b0が与えられる第6排他的論
理和ゲートER70と、第2NANDゲートG3との出
力が与えられるANDゲートG2とを有する誤り位置指
示出力導出回路44とを含む誤り位置検出回路53と、 (e)S1=0,S3≠0のとき、訂正不可能な誤りが
生じたとして訂正出力をクリアする訂正制御回路17
と、 (f)BCH符号信号をストアして誤り位置検出回路と
訂正制御回路の出力によって訂正を行って訂正後のBC
H符号信号を得るデータレジスタ18とを含むことを特
徴とする誤り訂正回路である。
The present invention also provides (a) a first syndrome register 9 for dividing a BCH code signal by (x-α) to obtain a first syndrome S1, and (b) converting the BCH code signal to (x-α 3 And (c) a coefficient derivation circuit 12 for the error locator polynomial, wherein (c1) α is an m-th order Galois extended field GF (2 m ) Error correction (n, k) BC with α, α 3 as roots
In decoding the H code, (2 m -1) first α multipliers MX1 to MXi are connected in series, and the first stage first α multiplier M
By giving α0 to X1, the element αα of GF (2 m )
(c2) responding to the first syndrome S1 and the output of the element creation circuit 19, which creates α (2 m -1) (hereinafter, α represents the power of (2 m -1)); A power circuit 21 for calculating S1α to S1α (2 m -1), wherein (2 m -1) first adders AD
0 to ADi, and each of the adders AD0 to ADi is a first exclusive OR gate to which each bit a0 to a3 of S1 and each bit b0 to b3 of α1 to α (2 m -1) are given. E
R0 to ER3 and these first exclusive OR gates ER
0 to ER3 are applied to first NAND gate G0
And the first adders AD0 to ADi output L0 to L0.
A power circuit 21 for deriving a li, (c3) a first syndrome S1 and the GF (2 m) on the (2 m
-1) a first multiplication circuit 23 for multiplying the elements,
(C 4) a first multiplication circuit 23 that connects the (2 m −1) second α multipliers MX11 to MX1i in series and provides the first syndrome S1 to the first-stage second α multiplier MX11; results and, based on the result of the exponentiation circuit 21, obtains the S1 2 S1 2 search circuit 2
A first AND gate G10 to which the outputs of the second α multipliers MX11 to MX1i and the outputs L0 to Li of the first adders AD0 to ADi of the power circuit 21 are provided.
~G1i and, the output of the 1AND gate G10~G1i is given, a second exclusive-OR gate E outputs the S1 2
And S1 2 search circuit 22 and a R10, (c5) S1 a inverse search circuit 25 for obtaining the inverse of, (2 m -1) pieces of third exclusive OR gate ER30
ER3i, each of the third exclusive OR gates ER3
0 to ER3i are supplied with α 0 and the outputs of the second multipliers MX11 to MX1i of the first multiplier circuit 23. The third exclusive OR gates ER30 to ER3i and the third exclusive OR gate ER30 to An inverse element search circuit 25 having all-zero detection circuits AZ0 to AZi realized by a NAND gate for detecting that all bits of each output of ER3i become logic "0"; (c6) second syndromes S3 and GF (2 m) on the (2 m
-1) a second multiplication circuit 27 for multiplying the elements,
A second multiplier circuit 27 that connects (2 m −1) third α multipliers MX21 to MX2i in series and provides a second syndrome S3 to the first-stage third α multiplier MX21; and (c7) a second multiplier circuit 27. Result and inverse element search circuit 25
S3 / S1 to obtain S3 / S1 based on the result from
(C7-1) (2 m -1) second AND gates G20
To G2i, each of the second AND gates G20 to G2i.
Are all zero detection circuits AZ0 to AZ of the inverse element search circuit 25.
i and the third α of the second multiplying circuit 27
A second AND gate G20 to G2i to which the output from the multipliers MX21 to MX2i is applied; and (c7-2) a fourth exclusive OR gate to which the output of the second AND gate G20 to G2i is applied to derive S3 / S1. and S3 / S1 search circuit 26 and a ER5, adds the result of (c8) S1 2 and S3 / S1 circuit 2
A 8, S1 2 second exclusive logical output S1 2 of OR gate ER10, S3 / S1 output S3 / S1 of the fourth exclusive OR gate ER5 the search circuit 26 of the search circuit 22
Is given for each bit, and (S1 2 + S3 / S1)
EXCLUSIVE-OR Gates ER60 to ER63 for Outputting
And (d) an error position detection circuit, wherein (d1) the error position polynomial is σ (z) = 1 + Az + Bz 2 . Then, (2 m −2) fourth α multipliers MX31 to MX31
MX3i are connected in series, and a first-stage fourth α multiplier MX31
The second exclusive OR gate E of the S1 2 search circuit 22
By giving A which is the output S1 2 of R10, Aα i
The first arithmetic circuit 41 that outputs (i = 0, 1, 2,..., 2 m −2) is connected in series with (d2) (2 m −2) fifth α multipliers, and the first stage 5α to the multiplier, the output from the fifth exclusive OR gate ER60~ER63 of the adder circuit 28 (S1 2 +
S3 / S1) to give Bα j (j
= 0,1,2, ..., the second arithmetic circuit 42 for outputting a 2 m -2), (d3) Bα k (k = 0,1,2, ..., 2 m -2) to the 6α multiplier MX41; MX51, MX52; MX6
, MX62, MX63; are connected to each other to output B (α k ) 2. (D4) Based on the outputs of the first and third arithmetic circuits 41 and 43, A circuit for determining L where the error locator polynomial is σ (α L ) = 0 (L = 0, 1, 2,..., 2 m −2) and deriving an output indicating the error position of the received codeword 44, Aα i and B (α i )
2 (i = 0, 1,..., 2 m −2) are provided, and the third adders AD10 to AD1i are provided.
D1i is, A.alpha i and B (α i) for each bit, each bit of 2 is given sixth exclusive OR gates ER70~E
R7 m-1 and bits a1 to am -1 , b1 after the second bit
Sixth exclusive OR gates ~b m-1 is given ER71
To the output of ER7 m-1
And an error position indication output deriving circuit 44 having an AND gate G2 to which an output of the sixth exclusive OR gate ER70 to which the first bits a0 and b0 are applied and an output of the second NAND gate G3. A detection circuit 53; (e) a correction control circuit 17 for clearing a correction output when S1 = 0, S3 ≠ 0, assuming that an uncorrectable error has occurred;
(F) storing the BCH code signal, performing correction by the output of the error position detection circuit and the correction control circuit, and correcting the corrected BC
An error correction circuit including a data register for obtaining an H code signal.

【0010】[0010]

【0011】[0011]

【0012】[0012]

【作用】誤り位置多項式導出回路についてまず説明す
る。2重誤り訂正BCH符号は、ガロア拡大体GF(2
m)のαを原始元とするとき、α,α3を根にもつ。い
ま、誤り位置をL1,L2とするとき、シンドロームS
1,S3は、 S1 = αL1 + αL2 …(3) S3 = α3L1 + α3L2 …(4) となる。これを用いて誤り位置多項式は、 σ(x) = 1 + S1x + (S12 +S3/S1)x2 …(5) となる。xの係数S1は求められているので、(S12
+S3/S1)を求めればよい。この計算に、従来はR
OMによる参照が行われていた。しかしゲート回路によ
り直接S12 およびS3/S1の演算は難しい。そこで
本発明では次のように構成する。
Operation The error locator polynomial derivation circuit will be described first. The double error correcting BCH code is a Galois extended field GF (2
When α in m ) is a primitive element, it has α and α 3 as roots. Now, when the error positions are L1 and L2, the syndrome S
1, S3 becomes S1 = α L1 + α L2 ... (3) S3 = α 3L1 + α 3L2 ... (4). Error position polynomial using this, the σ (x) = 1 + S1x + (S1 2 + S3 / S1) x 2 ... (5). Since the coefficient S1 of x has been obtained, (S1 2
+ S3 / S1). Conventionally, this calculation uses R
References were made by OM. But it is difficult operations directly S1 2 and S3 / S1 by the gate circuit. Therefore, the present invention is configured as follows.

【0013】まず、S12 であるが、S1はガロア拡大
体のGF(2m)上の(2m−1)個の元のいずれかであ
る。よってα乗算回路MX1〜MXiを(2m −1)個
直列につなぐことにより、
[0013] First, an S1 2, S1 is either Galois extension field GF (2 m) on the (2 m -1) of the number of elements. Therefore, by connecting (2 m -1) α multiplication circuits MX1 to MXi in series,

【0014】[0014]

【数1】 (Equation 1)

【0015】を求めればS12はこのうちのいずれかであ
る。今、S1=αiとすると、 S12 = S1αi mod 2m −1 …(6) であるから、前記グループGR1のうち、αiの演算結
果がS12になる。前述の式6においてmodは、元の
べき数の演算結果を2m −1で割った剰余をとることを
意味する。
By obtaining the [0015] S1 2 is any of this. Assuming that S1 = alpha i, since it is S1 2 = S1α i mod 2 m -1 ... (6), of the group GR1, the calculation result of alpha i is S1 2. In the above equation 6, mod means taking the remainder obtained by dividing the operation result of the original exponent by 2 m -1.

【0016】一方、S3/S1を演算するにはS1の逆
元を求める必要がある。前述と同様にS1=αiとする
と、αiの逆元αjは、 αi・αj = αo mod 2m −1 …(7) となるものであり、これによって、S3/S1は、 S3/S1 = S3・α-i = S3・αj mod 2m −1 …(8) で求められる。
On the other hand, to calculate S3 / S1, it is necessary to find the inverse of S1. When the same manner as described above S1 = alpha i, inverse alpha j of alpha i serves as a α i · α j = α o mod 2 m -1 ... (7), whereby, S3 / S1 is , S3 / S1 = S3 · α− i = S3 · αj mod 2 m −1 (8)

【0017】まず、前述のグループGR1と同様に、First, similarly to the aforementioned group GR1,

【0018】[0018]

【数2】 (Equation 2)

【0019】を求めておく。そしてグループGR1の中
から S1αj = αo mod 2m −1 …(9) となるαjを探す。そうすればαjがS1の逆元であるか
らグループGR2のうち、αjによるS3との乗算結果
が求めるS3/S1である。
## EQU1 ## And Find S1α j = α o mod 2 m -1 ... to become α j (9) from the group GR1. Then, since α j is the inverse element of S1, S3 / S1 is the result of multiplying S3 by α j in group GR2.

【0020】以上のようにして演算したS12とS3/
S1を加算すれば、それが式5のx2についての係数と
なる。
S1 2 and S3 /
If added to S1, it is the coefficient for x 2 of Formula 5.

【0021】次に誤り位置検出回路について説明する。Next, the error position detecting circuit will be described.

【0022】前述の式5に対して σ(αi ) = 0 (i=0,1,…,2m −2) …(10) となるとき、 i+j mod 2m−1=0 となるjが誤りの位置を示す。よって誤り位置の導出に
は、αi(i=1,2,…,2m−2)を逐次代入し、σ
(αi)=0を調べればよい。
When σ (α i ) = 0 (i = 0, 1,..., 2 m −2)... (10) with respect to equation (5) above, j = i + j mod 2 m −1 = 0 Indicates the location of the error. Therefore, in deriving the error position, α i (i = 1, 2,..., 2 m −2) is sequentially substituted, and σ
It is sufficient to check (α i ) = 0.

【0023】これをハード的に実現するため、チエン探
索法が用いられるが、符号長分のクロックが必要とな
る。そこで、本発明では、次のようにした。
To implement this in hardware, a chain search method is used, but a clock for the code length is required. Therefore, the present invention is as follows.

【0024】まず、A,Bに対し、α乗算回路を2m
2個直列に入力することで
First, for A and B, an α multiplication circuit is set to 2 m
By inputting two in series

【0025】[0025]

【数3】 (Equation 3)

【0026】が同時に計算できる。Aα0,Bα0は、
A,Bそのものと考える。
Can be calculated simultaneously. Aα 0 and Bα 0 are
Consider A and B themselves.

【0027】前述のグループGR3は、式5の第2項目
をすべてのαi(i=0,1,…,2m−2)について計
算したものである。しかし式5の3項目を求めるには、
αi(i=0,1,…,2m−2)の2乗が必要である。
The above-mentioned group GR3 is obtained by calculating the second item of Expression 5 for all α i (i = 0, 1,..., 2 m −2). However, to find the three items in Equation 5,
The square of α i (i = 0, 1,..., 2 m −2) is required.

【0028】本発明では、前述のグループGR4のBα
i(i=0,1,…,2m−2)に対し、α乗算器をi個
直列につなぐことにより、 (Bαi)・αi = B(αi2 (i=0,1,…,2m−2) …(11) を得ている。
According to the present invention, Bα of the aforementioned group GR4
For i (i = 0, 1,..., 2 m −2), by connecting i multipliers in series, (Bα i ) · α i = B (α i ) 2 (i = 0, 1 , ..., 2m- 2) ... (11).

【0029】Aαi,B(αi2(i=0,1,…,2m
−2)が計算できたので、これを各々のiについて加算
し、 1 + Aαi + B(αi2 = 0 …(12) つまり、 となれば、i+j mod 2m −1を満たすjが誤り
の位置を示す。
i , B (α i ) 2 (i = 0, 1,..., 2 m
Since −2) was calculated, this is added for each i, and 1 + Aα i + B (α i ) 2 = 0 (12) Then, j satisfying i + j mod 2 m -1 indicates the position of the error.

【0030】以上の演算はすべてのαi(i=0,1,
…,2m −2)に対し、同時に行うため、誤り位置の探
索が高速にできる。
The above operation is performed for all α i (i = 0, 1,
, 2 m -2) are simultaneously performed, so that an error position can be searched at high speed.

【0031】[0031]

【実施例】図1は、本発明の一実施例の誤り訂正回路の
全体の構成を示すブロック図である。BCH符号信号
は、ライン8から入力され、(x−α)によって割り算
してシンドロームS1を求めるmビットのシンドローム
レジスタ9と、(x−α3 )によるBCH符号信号の割
り算を行ってシンドロームS3を求めるmビットのシン
ドロームレジスタ10とに与えられる。またこの誤り訂
正回路には、BCH符号信号が与えられるnビットデー
タレジスタ11が備えられ、さらに各シンドロームレジ
スタ9,10からのシンドロームS1,S3がそれぞれ
与えられる誤り位置多項式の係数導出回路12が設けら
れる。この誤り位置多項式の係数導出回路12の出力S
1,S12 +S3/S1は、チエン探索回路13に与え
られ、排他的論理和ゲート14は、チエン探索回路13
の出力とデータレジスタ11の出力とを演算して訂正後
のBCH符号信号を得る。こうしてnビット符号語が読
み込まれた時点で、シンドロームレジスタ9,10によ
ってシンドロームS1,S3が計算され、さらに誤り位
置多項式の係数も同時に計算される。その後、α-i(i
=0,1,…,2m −2)を代入してゆき、σ(αi
=0となるiが誤り位置を表す。この演算は、チエン探
索回路13で容易に実現することができる。チエン探索
回路は、たとえば今井秀樹著「符号理論」第166頁に
開示されている。
FIG. 1 is a block diagram showing an entire configuration of an error correction circuit according to one embodiment of the present invention. The BCH code signal is input from a line 8 and is divided by (x-α) to obtain a syndrome S1. An m-bit syndrome register 9 is used to divide the BCH code signal by (x-α 3 ) to generate a syndrome S3. This is supplied to the m-bit syndrome register 10 to be obtained. The error correction circuit includes an n-bit data register 11 to which a BCH code signal is applied, and a coefficient derivation circuit 12 of an error locator polynomial to which syndromes S1 and S3 from the syndrome registers 9 and 10 are respectively provided. Can be The output S of the coefficient derivation circuit 12 for the error locator polynomial
1, S1 2 + S3 / S1 is applied to the chain search circuit 13, and the exclusive OR gate 14 is connected to the chain search circuit 13
And the output of the data register 11 are operated to obtain a corrected BCH code signal. When the n-bit code word is read in this way, the syndromes S1 and S3 are calculated by the syndrome registers 9 and 10, and the coefficients of the error locator polynomial are also calculated at the same time. Then, α -i (i
= 0, 1,..., 2 m −2), and σ (α i )
I where = 0 indicates an error position. This calculation can be easily realized by the chain search circuit 13. The chain search circuit is disclosed, for example, in "Code Theory", page 166, written by Hideki Imai.

【0032】図2はまた、本発明の他の実施例の誤り訂
正回路の全体の構成を示すブロック図である。この実施
例は、図1に示される実施例に類似し、対応する部分に
は同一の参照符を付す。この実施例では、前述のチエン
探索回路13を用いる代りに、誤り位置検出回路53が
備えられる。誤り位置多項式係数導出回路12からライ
ン16には、S1=0,S3≠0のとき、訂正不可能な
誤りが生じたとして訂正出力をクリアする信号を導出
し、訂正制御回路17に与える。この訂正制御回路17
の出力は、受信符号語のデータレジスタ18に与えられ
る。このような図2に示される構成によれば、図1に示
される実施例におけるチエン探索回路13を用いる必要
がなく、したがってチエン探索回路において必要とされ
る外部クロック信号が図2の実施例では不要となり、そ
のため誤り位置の検出がリアルタイムで可能となる。
FIG. 2 is a block diagram showing the entire configuration of an error correction circuit according to another embodiment of the present invention. This embodiment is similar to the embodiment shown in FIG. 1 and corresponding parts are denoted by the same reference numerals. In this embodiment, an error position detection circuit 53 is provided instead of using the chain search circuit 13 described above. From the error locator polynomial coefficient deriving circuit 12, a signal for clearing the corrected output on the line 16 is determined as having an uncorrectable error when S1 = 0 and S3 ≠ 0, and is supplied to the correction control circuit 17. This correction control circuit 17
Is provided to the data register 18 of the received codeword. According to the configuration shown in FIG. 2, there is no need to use the chain search circuit 13 in the embodiment shown in FIG. 1, and therefore, the external clock signal required in the chain search circuit is not used in the embodiment shown in FIG. This is not necessary, and the error position can be detected in real time.

【0033】図3は、図1および図2の各実施例におけ
る誤り位置多項式の係数導出回路12の具体的な構成を
示すブロック図である。元作成回路19は、m次のガロ
ア拡大体GF(2m)のすべての元を表す回路である。
この元作成回路19は、(2m−1)個のα乗算器MX
1〜MXiを直列に接続することによって実現される。
図3およびその他の図面における二重線矢印は、ガロア
拡大体GF(2m )上のmビットの並列データの流れを
示している。
FIG. 3 is a block diagram showing a specific configuration of the error derivation polynomial coefficient derivation circuit 12 in each of the embodiments shown in FIGS. The element creation circuit 19 is a circuit that represents all elements of the m-th order Galois extended field GF (2 m ).
The element creation circuit 19 includes (2 m -1) α multipliers MX
1 to MXi are connected in series.
Double arrows in FIG. 3 and other drawings indicate the flow of m-bit parallel data on the Galois extended field GF (2 m ).

【0034】図4は、α乗算器MX1の具体的な構成を
示し、これは(15,7)BCH符号(m=4)におけ
る構成を示す。α乗算器MX1は、排他的論理和ゲート
20を備え、随伴行列を用いることによって簡単な構成
によって実現することができる。
FIG. 4 shows a specific configuration of the α multiplier MX1, which shows a configuration in the (15,7) BCH code (m = 4). The α multiplier MX1 includes the exclusive OR gate 20, and can be realized by a simple configuration by using an adjoint matrix.

【0035】べき乗回路21は、シンドロームS1とガ
ロア拡大体GF(2m )上の元を乗算するものであっ
て、シンドロームS1がガロア拡大体GF(2m )上の
どの元と等しいかを探す働きをする。
The power circuit 21 is for multiplying the original on the syndrome S1 and the Galois extension field GF (2 m), look for whether the syndrome S1 is equal to any original on Galois extension field GF (2 m) Work.

【0036】図5は、べき乗回路21の具体的な構成を
示すブロック図である。このべき乗回路21は、加算器
AD0〜ADiを有し、S1=(am-1,…,a0)、α
i =(bm-1,…,b0)としたとき、 ai = (bi)(i=0,1,2,…,m−1) …(14) となるαi を求める構成を実現すればよいことになる。
FIG. 5 is a block diagram showing a specific configuration of the power circuit 21. The exponentiation circuit 21 has adders AD0 to ADi, and S1 = (a m−1 ,..., A 0 ), α
When i = (b m−1 ,..., b 0 ), a configuration for finding α i such that a i = (bi) (i = 0, 1, 2,..., m−1) (14) That is what we need to do.

【0037】図6は、加算器AD0の具体的な構成を示
す。加算器AD0は、各ビットa0〜a3,b0〜b3
を、排他的論理和ゲートER0〜ER3で演算し、全出
力が論理「0」であればよい。この図6の構成では、
(15,7)BCH符号(m=4)における構成を示
す。排他的論理和ゲートER0〜ER3の出力はNAN
DゲートG0に与えられる。各加算器AD0〜ADiの
出力ラインL0〜Liにおける制御信号は、 S1 = αi …(15) となるiについてのみ後述のS12 サーチ回路22に与
えられる制御信号が論理「1」になる。
FIG. 6 shows a specific configuration of the adder AD0. The adder AD0 outputs the bits a0 to a3, b0 to b3
Is calculated by exclusive OR gates ER0 to ER3, and all outputs may be logic "0". In the configuration of FIG. 6,
The configuration in the (15, 7) BCH code (m = 4) is shown. The output of the exclusive OR gates ER0 to ER3 is NAN.
This is applied to D gate G0. Control signal at the output lines L0~Li of the adders AD0~ADi the control signal applied only to the S1 2 search circuit 22 to be described later for i to be S1 = α i ... (15) becomes a logic "1".

【0038】第1乗算回路23は、シンドロームS1と
ガロア拡大体GF(2m)上の(2m−1)個の元を乗算
する。この第1乗算回路23は、(2m −1)個のα乗
算器MX11,MX1iを直列につないで実現され、そ
の構成は、前述の元作成回路19のα乗算器MX1〜M
Xiと同様である。
The first multiplication circuit 23 multiplies the syndrome S1 by (2 m -1) elements on the Galois extended field GF (2 m ). The first multiplying circuit 23 is realized by connecting (2 m -1) α multipliers MX11 and MX1i in series, and the configuration thereof is the same as that of the α multipliers MX1 to MX1
Same as Xi.

【0039】図7は、S12 サーチ回路22の具体的な
構成を示すブロック図である。このS12 サーチ回路2
2は、第1乗算回路23の結果と、べき乗回路21の結
果とに基づいて、S12 を求めるもとのであって、S1
αi(i=0,1,…,2m−2)からS12 となるもの
を選ぶ働きをし、ANDゲートG10〜G1iに、ライ
ンL0〜Liの制御信号が与えられ、また第1乗算回路
23のα乗算器MX11〜MX1iからの各出力がそれ
ぞれ与えられ、排他的論理和ゲートER10に、それら
のANDゲートG10〜G1iの出力が与えられ、こう
して排他的論理和ゲートER10からライン10には、
S12 の出力が導出される。
FIG. 7 is a block diagram showing a specific configuration of the S1 2 search circuit 22. This S1 2 search circuit 2
2 is based on the result of the first multiplying circuit 23 and the result of the exponentiation circuit 21 to obtain S1 2.
α i (i = 0, 1,..., 2 m −2) to select S1 2 , control signals for lines L0 to Li are given to AND gates G10 to G1i, and the first multiplication is performed. The outputs from the α multipliers MX11 to MX1i of the circuit 23 are respectively provided, and the outputs of the AND gates G10 to G1i are provided to the exclusive OR gate ER10. Is
S1 output 2 is derived.

【0040】図8は、図7に示されるS12 サーチ回路
22の一部をもっと具体的に示す電気回路図である。
(15,7)BCH符号(m=4)を用いるとき、前述
のANDゲートG10は、ANDゲートG20〜G23
によって実現され、排他的論理和ゲートER20〜ER
23には、各ANDゲートG20〜G23の出力と、次
のANDゲートG11に関連して接続される排他的論理
和ゲートの出力が与えられる。こうして排他的論理和ゲ
ートER20〜ER23は、出力S12 を導出する。
FIG. 8 is an electric circuit diagram more specifically showing a part of the S1 2 search circuit 22 shown in FIG.
When the (15, 7) BCH code (m = 4) is used, the above-mentioned AND gate G10 is connected to AND gates G20 to G23.
And exclusive-OR gates ER20 to ER
The output of each of the AND gates G20 to G23 and the output of an exclusive OR gate connected in connection with the next AND gate G11 are given to 23. Thus exclusive OR gates ER20~ER23 derives an output S1 2.

【0041】S1逆元サーチ回路25は、S1αk(i
=0,1,…,2m−2)から S1αi = i0 …(16) となるもの、つまりS1の逆元となるαiを求める。
The S1 inverse element search circuit 25 calculates S1α k (i
= 0, 1,..., 2 m −2), S1α i = i 0 (16), that is, α i which is the inverse of S1 is obtained.

【0042】図9は、S1逆元サーチ回路25の具体的
な構成を示すブロック図である。S1逆元サーチ回路2
5は、前述の図7に示されるS1サーチ回路22に類似
し、 S1αi =(am-1,…,a0), α0 =(0,…,1) としたとき、前述の式16が成立するαi を求めればよ
い。したがって第1乗算回路23の各α乗算器MX11
〜MX1iからの出力は、排他的論理和ゲートER30
〜ER3iに、α0 とともに与えられ、すなわち各ビッ
トを排他的論理和演算し、全出力が全零検知回路AZ0
〜AZiで、論理「0」となることを検出し、その出力
をラインL20〜L2iからそれぞれ導出する。
FIG. 9 is a block diagram showing a specific configuration of the S1 inverse search circuit 25. S1 inverse element search circuit 2
5 is similar to the S1 search circuit 22 shown in FIG. 7 described above, and when S1α i = (a m−1 ,..., A 0 ) and α 0 = (0,. Α i that satisfies 16 may be obtained. Therefore, each α multiplier MX11 of the first multiplication circuit 23
To MX1i are output from an exclusive OR gate ER30.
ER3i together with α 0 , that is, exclusive OR operation is performed on each bit, and all outputs are all zero detection circuit AZ0
AAZi, it is detected that the logic becomes “0”, and the output is derived from the lines L20 to L2i, respectively.

【0043】図10は、排他的論理和ゲートER30と
全零検知回路AZ0の具体的な構成を示す電気回路図で
ある。
FIG. 10 is an electric circuit diagram showing a specific configuration of the exclusive OR gate ER30 and the all-zero detection circuit AZ0.

【0044】(15,7)BCH符号(m=4)の信号
処理のために、排他的論理和ゲートER30には、各ビ
ット毎の排他的論理和ゲートER40〜ER44が備え
られ、また全零検知回路AZ0は、NANDゲートによ
って実現される。前述の式16が成立するiについての
み、後述のS3/S1サーチ回路26に与えられる制御
信号が論理「1」になる。
For signal processing of the (15, 7) BCH code (m = 4), the exclusive OR gate ER30 is provided with exclusive OR gates ER40 to ER44 for each bit and all zeros. The detection circuit AZ0 is realized by a NAND gate. The control signal applied to the S3 / S1 search circuit 26 described later becomes logic "1" only for i for which the above-mentioned Expression 16 holds.

【0045】第2乗算回路27は、シンドロームS3と
ガロア拡大体GF(2m)の(2m−1)個の元を乗算す
る。この第2乗算回路27は、α乗算器MX21〜MX
2iを備え、その構成は、前述の元作成回路19と同様
である。
The second multiplication circuit 27 multiplies the syndrome S3 by (2 m -1) elements of the Galois extended field GF (2 m ). The second multiplying circuit 27 includes α multipliers MX21 to MX21
2i, and the configuration is the same as that of the original creation circuit 19 described above.

【0046】S3/S1サーチ回路26は、S3α
i(i=0,1,…,2m−2)からS3/S1の演算結
果となるものを選ぶ働きをする。
The S3 / S1 search circuit 26 generates S3α
i (i = 0, 1,..., 2 m −2) is used to select an S3 / S1 operation result.

【0047】図11は、S3/S1サーチ回路26の全
体の構成を示すブロック図である。このS3/S1サー
チ回路26は、前述のS12 サーチ回路22の構成に類
似し、S1逆元サーチ回路25のラインL20〜L2i
の出力と第2乗算回路27の各α乗算器MX21〜MX
2iの各出力とが与えられるANDゲートG20〜G2
iと、排他的論理和ゲートER5とが備えられ、ライン
L30からは、S3/S1が導出される。すなわち、ラ
インL20〜L21からの制御信号が論理「1」である
S3αi がS3/S1であり、この出力だけが選択され
る。
FIG. 11 is a block diagram showing the overall configuration of the S3 / S1 search circuit 26. The S3 / S1 search circuit 26 is similar to the configuration of the S1 2 search circuit 22 described above, and includes lines L20 to L2i of the S1 inverse search circuit 25.
And the α multipliers MX21 to MX2 of the second multiplication circuit 27
AND gates G20 to G2 supplied with respective outputs
i and an exclusive OR gate ER5, and S3 / S1 is derived from a line L30. That is, the control signal from the line L20~L21 is S3arufa i is S3 / S1 is a logic "1", only the output is selected.

【0048】S12サーチ回路22のラインL10から
の出力S12と、S3/S1サーチ回路26のラインL
30からの出力S3/S1とは、排他的論理和ゲート2
8によって実現される加算回路28に与えられ、これに
よって(S12 +S3/S1)が出力される。この排他
的論理和ゲート28の具体的な構成は、(15,7)B
CH符号(m=4)の場合、図12に示されるように、
各ビット毎に排他的論理和ゲートER60〜ER63に
よって実現される。これらの排他的論理和ゲートER6
0〜ER63の出力は、ラインL40から導出されて、
(S12 +S3/S1)が得られる。
[0048] S1 2 and the output S1 2 from the line L10 of the search circuit 22, S3 / S1 line L of the search circuit 26
The output S3 / S1 from the exclusive OR gate 2
8 to the adder circuit 28, which outputs (S1 2 + S3 / S1). The specific configuration of the exclusive OR gate 28 is (15,7) B
In the case of the CH code (m = 4), as shown in FIG.
This is realized by exclusive OR gates ER60 to ER63 for each bit. These exclusive OR gates ER6
The outputs of 0 to ER63 are derived from line L40,
(S1 2 + S3 / S1) is obtained.

【0049】図13は、チエン探索回路13の具体的な
構成を示すブロック図である。S12 サーチ回路22の
ラインL10を介する出力S12 と、排他的論理和ゲー
ト28のラインL40からの出力(S12 +S3/S
1)とは、初期値としてそれらの値がストアされるmビ
ットのデータレジスタ29,30にそれぞれストアされ
る。これらのレジスタ29,30には、カウンタによっ
て実現されるクロック発生器31からのクロック信号が
与えられる。各レジスタ29,30には、α乗算器32
およびα2 乗算器33がそれぞれ接続されて閉ループ3
4,35が構成され、それらの出力は、位数mのガロア
拡大体GF(2m )の加算回路36に与えられ、ライン
37から、前述の図1に示される排他的論理和ゲート1
4に与えられる。加算回路36は、排他的論理和ゲート
によって実現される。
FIG. 13 is a block diagram showing a specific configuration of the chain search circuit 13. As shown in FIG. The output S1 2 of the S1 2 search circuit 22 via the line L10 and the output of the exclusive OR gate 28 from the line L40 (S1 2 + S3 / S
1) are stored in m-bit data registers 29 and 30 in which those values are stored as initial values, respectively. A clock signal from a clock generator 31 realized by a counter is applied to these registers 29 and 30. Each register 29, 30 has an α multiplier 32
And α 2 multiplier 33 are connected to form a closed loop 3
4 and 35 are provided, and their outputs are applied to an addition circuit 36 of a Galois extended field GF (2 m ) of order m, and an exclusive OR gate 1 shown in FIG.
4 given. The adding circuit 36 is realized by an exclusive OR gate.

【0050】前述の図2に示される誤り位置検出回路5
3の具体的な構成は、図14に示されている。第1の演
算回路41には、誤り位置多項式係数導出回路12に含
まれているS12 サーチ回路22からラインL10を介
してS12 が与えられる。この演算回路41は、図15
に示されるように、α乗算器MX31,MX32,…,
MX3iが直列に接続されて構成され、こうしてすべて
のαi (i=0,1,…,2m−2)に対してAαiの演
算を行い、ラインL50〜L5iにそれぞれ導出する。
The error position detection circuit 5 shown in FIG.
FIG. 14 shows a specific configuration of No. 3. The first arithmetic circuit 41, S1 2 is given from the error position polynomial coefficient derivation is included in circuit 12 S1 2 search circuit 22 via a line L10. This arithmetic circuit 41 is provided in FIG.
, The α multipliers MX31, MX32,.
MX3i is constituted by connecting in series, thus all α i (i = 0,1, ... , 2 m -2) performs calculation of A.alpha i relative to derive respective line L50~L5i.

【0051】もう1つの演算回路42もまた、上述の演
算回路41と同様な構成を有し、誤り位置多項式係数導
出回路12の排他的論理和ゲート28(前述の図3参
照)におけるラインL40からの(S12 +S3/S
1)が与えられて、Bαi (i=0,1,…,2m
2)を、ラインL60〜L6iにそれぞれ導出する。
Another arithmetic circuit 42 also has the same configuration as the above-described arithmetic circuit 41, and is connected to line L40 in exclusive OR gate 28 (see FIG. 3 described above) of error locator polynomial coefficient deriving circuit 12. Of (S1 2 + S3 / S
1), Bα i (i = 0, 1,..., 2 m
2) are derived to lines L60 to L6i, respectively.

【0052】演算回路43は、演算回路42からのBα
iの出力に応答して、B(αi2 を求める。この演算回
路43の具体的な構成は、図16に示されている。Bα
1 に対して、B(αi2を求めるには、Bαi にi個の
α乗算器MX41;MX51,MX52;MX61,M
X62,MX63;…を用いる。これはi個のα乗算を
行列で用意しておき、αi 回路を構成することで実現す
るようにしてもよい。
The arithmetic circuit 43 calculates the value of Bα from the arithmetic circuit 42.
B (α i ) 2 is obtained in response to the output of i . A specific configuration of the arithmetic circuit 43 is shown in FIG. Bα
Relative to 1, B (α i) to determine the 2, i pieces of alpha multiplier Bα i MX41; MX51, MX52; MX61, M
X62, MX63; are used. This may be realized by preparing i α multiplications in a matrix and configuring an α i circuit.

【0053】誤り位置検出器44は、すべてのAαi
よびB(αi2 (i=0,1,…,2m −2)から前
述の式10の条件を満たすiを求める働きをする。この
誤り位置検出器44の具体的な構成は、図17に示され
る。
The error position detector 44 functions to obtain i satisfying the condition of the above-mentioned expression 10 from all Aα i and B (α i ) 2 (i = 0, 1,..., 2 m −2). . The specific configuration of the error position detector 44 is shown in FIG.

【0054】図17に示される誤り位置検出器44は、
式10の条件が満たされるiについて論理「1」の信号
をラインL80〜L8iに導出する働きをする。この働
きを達成するために、誤り位置検出器44の各ビット毎
に加算器AD10〜AD1iが設けられる。
The error position detector 44 shown in FIG.
It serves to derive a logical "1" signal to lines L80-L8i for i for which the condition of Equation 10 is satisfied. In order to achieve this function, adders AD10 to AD1i are provided for each bit of the error position detector 44.

【0055】図18は、誤り位置検出器44に備えられ
る加算器AD10の具体的構成を示す電気回路図であ
る。各ビットA0〜Am-1およびB0〜Bm-1の出力は、
加算回路を構成する排他的論理和ゲートをER70〜E
R7m-1 にそれぞれ与えられ、それらの出力は、AND
ゲートG2およびNANDゲートG3にそれぞれ与えら
れる。NANDゲートG3には、第2ビット以降のビッ
トa1〜am-1,b1〜bm-1が与えられる。ANDゲー
トG2には、第1ビットa0,b0が与えられる。
FIG. 18 is an electric circuit diagram showing a specific configuration of the adder AD10 provided in the error position detector 44. The output of each bit A0 - Am -1 and B0 - Bm -1 is
Exclusive OR gates forming the adder circuit are designated by ER70 to ER70.
R7 m-1 and their outputs are AND
Gate G2 and NAND gate G3, respectively. The second and subsequent bits a1 to am -1 , b1 to bm -1 are applied to the NAND gate G3. AND gate G2 is supplied with first bits a0 and b0.

【0056】Aαi=(am-1,am-2,…,a0)、 B(ai2=(bm-1,bm-2,…,b0) としたとき、 a0+b0 = 1 mod 2 …(17) aj+bj = 0 mod 2 (j=1,2,…,m−1) …(18) の2つの条件が満たされれば、式10が成立したことと
なり、論理「1」が出力される。
[0056] Aα i = (a m-1 , a m-2, ..., a0), B (a i) 2 = (b m-1, b m-2, ..., b0) when a, a0 + b0 = 1 mod 2... (17) aj + bj = 0 mod 2 (j = 1, 2,..., M−1) If the two conditions are satisfied, Expression 10 is satisfied, and the logic “1” is satisfied. Is output.

【0057】 受信語Y=(ym-1,ym-2,…,y0)(m=符号長) として、ラインL80〜L8iからの出力のうち、i=
L1,i=L2が論理「1」、 0 ≦ L1 < L2 < 2m − 2 となれば、
Assuming that the received word Y = (y m−1 , y m−2 ,..., Y 0) (m = code length), among the outputs from the lines L80 to L8i, i =
If L1 and i = L2 are logic “1” and 0 ≦ L1 <L2 <2 m −2,

【0058】[0058]

【数4】 (Equation 4)

【0059】のビットが誤りであり、それを反転すれば
よいことになる。この反転動作は、データレジスタ18
において達成される。
This bit is an error, and it is sufficient to invert it. This inversion operation is performed by the data register 18.
Is achieved.

【0060】本発明は、上述の2重誤り訂正符号のため
だけでなく、もっと訂正数の大きい符号に対しても、ユ
ークリッド法、バーレカンプ・マツシイ法によって誤り
位置多項式の係数とシンドロームの関係を求めることに
よって、ハード化のために本発明を実施することができ
る。
According to the present invention, the relationship between the coefficients of the error locator polynomial and the syndrome is obtained not only for the above-mentioned double error correction code but also for a code having a larger number of corrections by the Euclidean method and the Berlekamp-Matsushii method. Thus, the present invention can be implemented for hardware.

【0061】[0061]

【発明の効果】以上のように本発明の誤り位置多項式の
係数導出回路によれば、ガロア拡大体GF(2m )上の
加算、乗算、および逆元の導出のための除算という操作
が、単純なゲート回路で実現され、したがってその演算
を高速度で行うことができる。またこのゲート回路など
の構成は、α乗算器を中心とする単純な回路構成である
という効果もまた、達成される。さらに本発明によれ
ば、外部のリードオンリメモリによるアクセスの必要が
なくなる。さらに本発明の構成は、集積回路によって実
現することが容易であり、またコストが低いという効果
もある。
As described above, according to the error derivation polynomial coefficient derivation circuit of the present invention, the operations of addition, multiplication, and division for deriving the inverse element on the Galois extended field GF (2 m ) It is realized by a simple gate circuit, so that its operation can be performed at high speed. Further, the effect that the configuration such as the gate circuit is a simple circuit configuration centering on the α multiplier is also achieved. Further, according to the present invention, the need for access by an external read-only memory is eliminated. Further, the structure of the present invention can be easily realized by an integrated circuit, and has an effect of reducing cost.

【0062】さらに本発明の誤り位置検出回路によれ
ば、誤り位置の検出をリアルタイムで行うことができ、
外部クロックを必要とせず、さらにまたゲート回路だけ
で構成することができ、集積回路化が容易であり、コス
トが低減されるという効果が達成される。このように本
発明によれば、具体的な回路構成によって、BCH符号
信号の読み込みと同時に誤り位置の探索が可能になる。
Further, according to the error position detecting circuit of the present invention, the error position can be detected in real time,
An external clock is not required, and furthermore, it can be constituted only by a gate circuit, so that an effect that the integration is easy and the cost is reduced is achieved. As described above, according to the present invention, it is possible to search for an error position simultaneously with reading of a BCH code signal by a specific circuit configuration.

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

【図1】本発明の一実施例の誤り訂正回路の全体の構成
を示すブロック図である。
FIG. 1 is a block diagram showing an entire configuration of an error correction circuit according to an embodiment of the present invention.

【図2】本発明の他の実施例の誤り訂正回路の全体の構
成を示すブロック図である。
FIG. 2 is a block diagram showing an entire configuration of an error correction circuit according to another embodiment of the present invention.

【図3】誤り位置多項式の係数導出回路12の具体的な
構成を示すブロック図である。
FIG. 3 is a block diagram showing a specific configuration of an error locator polynomial coefficient derivation circuit 12;

【図4】元作成回路19に含まれるα乗算器MX1の具
体的な構成を示す電気回路図である。
FIG. 4 is an electric circuit diagram showing a specific configuration of an α-multiplier MX1 included in the element creating circuit 19.

【図5】べき乗回路21の具体的構成を示すブロック図
である。
FIG. 5 is a block diagram showing a specific configuration of a power circuit 21;

【図6】べき乗回路21に含まれる加算器AD0の具体
的構成を示すブロック図である。
FIG. 6 is a block diagram showing a specific configuration of an adder AD0 included in the power circuit 21.

【図7】S12 サーチ回路22の具体的構成を示すブロ
ック図である。
7 is a block diagram showing a specific structure of S1 2 search circuit 22.

【図8】図7に示されるS12 サーチ回路22のもっと
具体的な構成を示す電気回路図である。
8 is an electric circuit diagram showing a more specific configuration of the S1 2 search circuit 22 shown in FIG.

【図9】S1逆元サーチ回路25の具体的構成を示すブ
ロック図である。
FIG. 9 is a block diagram showing a specific configuration of the S1 inverse search circuit 25;

【図10】図9に示されるS1逆元サーチ回路25に含
まれる排他的論理和ゲートER30および全零検知回路
AZ0の具体的構成を示す電気回路図である。
10 is an electric circuit diagram showing a specific configuration of an exclusive OR gate ER30 and an all-zero detection circuit AZ0 included in the S1 inverse element search circuit 25 shown in FIG.

【図11】S3/S1サーチ回路26の具体的な構成を
示すブロック図である。
FIG. 11 is a block diagram showing a specific configuration of an S3 / S1 search circuit 26;

【図12】加算回路28の具体的な構成を示す電気回路
図である。
FIG. 12 is an electric circuit diagram showing a specific configuration of an adding circuit 28.

【図13】図1のチエン探索回路13の具体的構成を示
すブロック図である。
FIG. 13 is a block diagram showing a specific configuration of a chain search circuit 13 of FIG. 1;

【図14】図2に示される誤り位置検出回路53の具体
的構成を示す全体のブロック図である。
14 is an overall block diagram showing a specific configuration of an error position detection circuit 53 shown in FIG.

【図15】図14に示される演算回路41の具体的構成
を示すブロック図である。
FIG. 15 is a block diagram showing a specific configuration of an arithmetic circuit 41 shown in FIG.

【図16】2乗回路43の具体的構成を示すブロック図
である。
FIG. 16 is a block diagram showing a specific configuration of a squaring circuit 43.

【図17】誤り位置検出器44の具体的な構成を示すブ
ロック図である。
FIG. 17 is a block diagram showing a specific configuration of the error position detector 44.

【図18】図17に示される誤り位置検出器44に含ま
れる加算器AD10の具体的構成を示す電気回路図であ
る。
FIG. 18 is an electric circuit diagram showing a specific configuration of an adder AD10 included in the error position detector 44 shown in FIG.

【図19】先行技術の誤り訂正回路の全体の構成を示す
ブロック図である。
FIG. 19 is a block diagram showing the overall configuration of a prior art error correction circuit.

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

9,10 シンドロームレジスタ 11 nビットデータレジスタ 12 誤り位置多項式の係数導出回路 13 チエン探索回路 14 加算回路 17 訂正制御回路 18 データレジスタ 19 元作成回路 21 べき乗回路 22 S12サーチ回路 23 乗算回路 25 S1逆元サーチ回路 26 S3/S1サーチ回路 27 乗算回路 28 加算回路 41,42 演算回路 43 2乗回路 44 誤り位置検出器 53 誤り位置検出回路9,10 syndrome register 11 n-bit data register 12 error derivation polynomial coefficient derivation circuit 13 chain search circuit 14 addition circuit 17 correction control circuit 18 data register 19 element creation circuit 21 exponentiation circuit 22 S1 2 search circuit 23 multiplication circuit 25 S1 inverse Original search circuit 26 S3 / S1 search circuit 27 Multiplication circuit 28 Addition circuit 41, 42 Arithmetic circuit 43 Square circuit 44 Error position detector 53 Error position detection circuit

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H03M 13/00 G06F 11/10 330 H04L 1/00 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) H03M 13/00 G06F 11/10 330 H04L 1/00

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 (a)BCH符号信号を(x−α)によ
って割り算して第1シンドロームS1を求める第1シン
ドロームレジスタ9と、 (b)前記BCH符号信号を(x−α3 )による割り算
を行って第2シンドロームS3を求める第2シンドロー
ムレジスタ10と、 (c)誤り位置多項式の係数導出回路12であって、 (c1)αをm次のガロア拡大体GF(2m)の原始元
とし、α,α3を根にもつ2重誤り訂正(n,k)BC
H符号の復号において、(2m −1)個の第1α乗算器
MX1〜MXiを直列につなぎ、初段の第1α乗算器M
X1にα0を与えることによって、GF(2m)の元α〜
α(2m−1)(以下、αの(2m−1)乗を表す)を作
成する元作成回路19と、 (c2)第1シンドロームS1と元作成回路19の出力
とに応答し、S1α〜S1α(2m−1)を求めるべき
乗回路21であって、 (2m−1)個の第1加算器AD0〜ADiを有し、 各加算器AD0〜ADiは、 S1の各ビットa0〜a3と、α1〜α(2m−1)の
各ビットb0〜b3とが与えられる第1排他的論理和ゲ
ートER0〜ER3と、 これらの第1排他的論理和ゲートER0〜ER3の出力
が与えられる第1NANDゲートG0とを有し、 各第1加算器AD0〜ADiは、出力L0〜Liを導出
するべき乗回路21と、 (c3)第1シンドロームS1とGF(2m)上の(2m
−1)個の元を乗算する第1乗算回路23であって、
(2m−1)個の第2α乗算器MX11〜MX1iを直
列につなぎ、初段の第2α乗算器MX11に第1シンド
ロームS1を与える第1乗算回路23と、 (c4)第1乗算回路23の結果と、べき乗回路21の
結果とに基づいて、S12 を求めるS12サーチ回路2
2であって、 各第2α乗算器MX11〜MX1iの出力と、べき乗回
路21の各第1加算器AD0〜ADiの出力L0〜Li
とが、与えられる第1ANDゲートG10〜G1iと、 第1ANDゲートG10〜G1iの出力が与えられ、S
2を出力する第2排他的論理和ゲートER10とを有
するS12サーチ回路22と、 (c5)S1の逆元を求める逆元サーチ回路25であっ
て、 (2m−1)個の第3排他的論理和ゲートER30〜E
R3iであって、各第3排他的論理和ゲートER30〜
ER3iには、α0と、第1乗算回路23の第2乗算器
MX11〜MX1iの出力とが与えられる第3排他的論
理和ゲートER30〜ER3iと、 第3排他的論理和ゲートER30〜ER3iの各出力の
全ビットが論理「0」となることを検出するNANDゲ
ートによって実現される全零検知回路AZ0〜AZiと
を有する逆元サーチ回路25と、 (c6)第2シンドロームS3とGF(2m)上の(2m
−1)個の元を乗算する第2乗算回路27であって、
(2m−1)個の第3α乗算器MX21〜MX2iを直
列につなぎ、初段の第3α乗算器MX21に、第2シン
ドロームS3を与える第2乗算回路27と、 (c7)第2乗算回路27の結果と逆元サーチ回路25
からの結果とに基づいてS3/S1を求めるS3/S1
サーチ回路26であって、 (c7−1)(2m−1)個の第2ANDゲートG20
〜G2iであって、各第2ANDゲートG20〜G2i
は、逆元サーチ回路25の各全零検知回路AZ0〜AZ
iの出力L20〜L2iと、 第2乗算回路27の第3α乗算器MX21〜MX2iか
らの出力とが与えられる第2ANDゲートG20〜G2
iと、 (c7−2)第2ANDゲートG20〜G2iの出力が
与えられ、S3/S1を導出する第4排他的論理和ゲー
トER5とを有するS3/S1サーチ回路26と、 (c8)S12 とS3/S1との結果を加算する回路2
8であって、 S12サーチ回路22の第2排他的論理和ゲートER1
0の出力S12と、S3/S1サーチ回路26の第4排
他的論理和ゲートER5の出力S3/S1とが、各ビッ
ト毎に与えられ、(S12+S3/S1)を出力する第
5排他的論理和ゲートER60〜ER63を有する加算
回路28とを含む誤り位置多項式の係数導出回路12
と、 (d)前記誤り位置多項式の係数導出回路の出力に応答
してチエン探索を行い、誤り位置を表すチエン探索回路
13と、 (e)前記BCH符号信号を受信してストアするデータ
のレジスタ11と、 (f)チエン探索回路の出力とデータレジスタの出力と
を演算して訂正後のBCH符号信号を得る演算回路14
とを含むことを特徴とする誤り訂正回路。
1. A first syndrome register 9 for dividing a BCH code signal by (x-α) to obtain a first syndrome S1; and (b) dividing the BCH code signal by (x-α 3 ). And (c1) a coefficient deriving circuit 12 for an error locator polynomial, wherein (c1) α is a primitive element of a Galois extension field GF (2 m ) of the m-th order And a double error correction (n, k) BC having α and α 3 as roots
In decoding the H code, (2 m -1) first α multipliers MX1 to MXi are connected in series, and the first stage first α multiplier M
By giving α0 to X1, the element αα of GF (2 m )
(c2) responding to the first syndrome S1 and the output of the element creation circuit 19, which creates α (2 m -1) (hereinafter, α represents the power of (2 m -1)); a power circuit 21 for obtaining the S1α~S1α (2 m -1), ( 2 m -1) has a number of first adder AD0~ADi, the adders AD0~ADi, each bit a0 of S1 -A3 and bits b0-b3 of α1-α (2 m -1) are provided, and the outputs of these first exclusive-OR gates ER0-ER3 are Each of the first adders AD0 to ADi has a power circuit 21 for deriving outputs L0 to Li, and (c3) first syndromes S1 and (2m) on GF (2 m ). m
-1) a first multiplication circuit 23 for multiplying the elements,
(C 4) a first multiplication circuit 23 that connects the (2 m −1) second α multipliers MX11 to MX1i in series and provides the first syndrome S1 to the first-stage second α multiplier MX11; results and, based on the result of the exponentiation circuit 21, obtains the S1 2 S1 2 search circuit 2
2, the outputs of the second α multipliers MX11 to MX1i and the outputs L0 to Li of the first adders AD0 to ADi of the power circuit 21.
And the outputs of the first AND gates G10 to G1i are given.
And S1 2 search circuit 22 and a second exclusive OR gate ER10 for outputting 1 2, (c5) S1 a inverse search circuit 25 for obtaining the inverse of, (2 m -1) pieces of the 3 exclusive OR gates ER30-E
R3i, each of the third exclusive OR gates ER30 to ER30.
ER3i is provided with third exclusive OR gates ER30 to ER3i to which α 0 and outputs of the second multipliers MX11 to MX1i of the first multiplier circuit 23 are provided, and ER3i of the third exclusive OR gates ER30 to ER3i. An inverse element search circuit 25 having all-zero detection circuits AZ0 to AZi realized by a NAND gate for detecting that all bits of each output become logic "0"; (c6) second syndromes S3 and GF (2 m ) on (2 m
-1) a second multiplication circuit 27 for multiplying the elements,
A second multiplier circuit 27 that connects (2 m −1) third α multipliers MX21 to MX2i in series and provides a second syndrome S3 to the first-stage third α multiplier MX21; and (c7) a second multiplier circuit 27. Result and inverse element search circuit 25
S3 / S1 to obtain S3 / S1 based on the result from
(C7-1) (2 m -1) second AND gates G20
To G2i, each of the second AND gates G20 to G2i.
Are all zero detection circuits AZ0 to AZ of the inverse element search circuit 25.
second AND gates G20 to G2 to which outputs L20 to L2i of i and outputs from third α multipliers MX21 to MX2i of second multiplying circuit 27 are provided.
and i, and (C7-2) output is supplied first 2AND gate G20~G2i, S3 / S1 search circuit 26 and a fourth exclusive OR gate ER5 to derive S3 / S1, (c8) S1 2 2 for adding the results of S3 and S3 / S1
8, the second exclusive OR gate ER1 of the S1 2 search circuit 22
The output S1 2 of 0 and the output S3 / S1 of the fourth exclusive OR gate ER5 of the S3 / S1 search circuit 26 are given for each bit, and the fifth exclusive output that outputs (S1 2 + S3 / S1) is provided. Error locator polynomial coefficient deriving circuit 12 including an addition circuit 28 having logical OR gates ER60 to ER63
(D) a chain search circuit 13 for performing a chain search in response to an output of the coefficient derivation circuit of the error locator polynomial to indicate an error position; and (e) a register for receiving and storing the BCH code signal. And (f) an arithmetic circuit 14 for calculating the output of the chain search circuit and the output of the data register to obtain a corrected BCH code signal.
And an error correction circuit comprising:
【請求項2】 (a)BCH符号信号を(x−α)によ
って割り算して第1シンドロームS1を求める第1シン
ドロームレジスタ9と、 (b)前記BCH符号信号を(x−α3 )による割り算
を行って第2シンドロームS3を求める第2シンドロー
ムレジスタ10と、 (c)誤り位置多項式の係数導出回路12であって、 (c1)αをm次のガロア拡大体GF(2m)の原始元
とし、α,α3を根にもつ2重誤り訂正(n,k)BC
H符号の復号において、(2m −1)個の第1α乗算器
MX1〜MXiを直列につなぎ、初段の第1α乗算器M
X1にα0を与えることによって、GF(2m)の元α〜
α(2m−1)(以下、αの(2m−1)乗を表す)を作
成する元作成回路19と、 (c2)第1シンドロームS1と元作成回路19の出力
とに応答し、S1α〜S1α(2m−1)を求めるべき
乗回路21であって、 (2m−1)個の第1加算器AD0〜ADiを有し、 各加算器AD0〜ADiは、 S1の各ビットa0〜a3と、α1〜α(2m−1)の
各ビットb0〜b3とが与えられる第1排他的論理和ゲ
ートER0〜ER3と、 これらの第1排他的論理和ゲートER0〜ER3の出力
が与えられる第1NANDゲートG0とを有し、 各第1加算器AD0〜ADiは、出力L0〜Liを導出
するべき乗回路21と、 (c3)第1シンドロームS1とGF(2m)上の(2m
−1)個の元を乗算する第1乗算回路23であって、
(2m−1)個の第2α乗算器MX11〜MX1iを直
列につなぎ、初段の第2α乗算器MX11に第1シンド
ロームS1を与える第1乗算回路23と、 (c4)第1乗算回路23の結果と、べき乗回路21の
結果とに基づいて、S12 を求めるS12サーチ回路2
2であって、 各第2α乗算器MX11〜MX1iの出力と、べき乗回
路21の各第1加算器AD0〜ADiの出力L0〜Li
とが、与えられる第1ANDゲートG10〜G1iと、 第1ANDゲートG10〜G1iの出力が与えられ、S
2を出力する第2排他的論理和ゲートER10とを有
するS12サーチ回路22と、 (c5)S1の逆元を求める逆元サーチ回路25であっ
て、 (2m−1)個の第3排他的論理和ゲートER30〜E
R3iであって、各第3排他的論理和ゲートER30〜
ER3iには、α0と、第1乗算回路23の第2乗算器
MX11〜MX1iの出力とが与えられる第3排他的論
理和ゲートER30〜ER3iと、 第3排他的論理和ゲートER30〜ER3iの各出力の
全ビットが論理「0」となることを検出するNANDゲ
ートによって実現される全零検知回路AZ0〜AZiと
を有する逆元サーチ回路25と、 (c6)第2シンドロームS3とGF(2m)上の(2m
−1)個の元を乗算する第2乗算回路27であって、
(2m−1)個の第3α乗算器MX21〜MX2iを直
列につなぎ、初段の第3α乗算器MX21に、第2シン
ドロームS3を与える第2乗算回路27と、 (c7)第2乗算回路27の結果と逆元サーチ回路25
からの結果とに基づいてS3/S1を求めるS3/S1
サーチ回路26であって、 (c7−1)(2m−1)個の第2ANDゲートG20
〜G2iであって、各第2ANDゲートG20〜G2i
は、逆元サーチ回路25の各全零検知回路AZ0〜AZ
iの出力L20〜L2iと、 第2乗算回路27の第3α乗算器MX21〜MX2iか
らの出力とが与えられる第2ANDゲートG20〜G2
iと、 (c7−2)第2ANDゲートG20〜G2iの出力が
与えられ、S3/S1を導出する第4排他的論理和ゲー
トER5とを有するS3/S1サーチ回路26と、 (c8)S12 とS3/S1との結果を加算する回路2
8であって、 S12サーチ回路22の第2排他的論理和ゲートER1
0の出力S12と、S3/S1サーチ回路26の第4排
他的論理和ゲートER5の出力S3/S1とが、各ビッ
ト毎に与えられ、(S12+S3/S1)を出力する第
5排他的論理和ゲートER60〜ER63を有する加算
回路28とを含む誤り位置多項式の係数導出回路12
と、 (d)誤り位置検出回路であって、 (d1)その誤り位置多項式を σ(z) = 1 + Az + Bz2 としたとき、(2m −2)個の第4α乗算器MX31〜
MX3iを直列につなぎ、初段の第4α乗算器MX31
に、S12サーチ回路22の第2排他的論理和ゲートE
R10の出力S12であるAを与えることによってAαi
(i=0,1,2,…,2m−2)を出力する第1演算
回路41と、 (d2)(2m −2)個の第5α乗算器を直列につな
ぎ、初段の第5α乗算器に、加算回路28の第5排他的
論理和ゲートER60〜ER63からの出力(S12
S3/S1)であるBを与えることによってBαj(j
=0,1,2,…,2m−2)を出力する第2演算回路
42と、 (d3)Bαk(k=0,1,2,…,2m−2)に対し
第6α乗算器MX41;MX51,MX52;MX6
1,MX62,MX63;…をk個つなぐことによって
B(αk2を出力する第3演算回路43と、 (d4)第1演算回路41と第3演算回路43との出力
に基づいて、前記誤り位置多項式が、 σ(αL)=0 (L=0,1,2,…,2m−2) となるLを判別し、受信符号語の誤り位置を指示する出
力を導出する回路44であって、AαiおよびB(αi
2(i=0,1,…,2m−2)が与えられる第3加算器
AD10〜AD1iを有し、 各第3加算器AD10〜AD1iは、 AαiおよびB(αi2の各ビットが与えられる各ビッ
ト毎の第6排他的論理和ゲートER70〜ER7
m-1と、 第2ビット以降のビットa1〜am-1,b1〜bm-1が与
えられる第6排他的論理和ゲートER71〜ER7m-1
の出力が与えられる第2NANDゲートG3と、 第1ビットa0,b0が与えられる第6排他的論理和ゲ
ートER70と、第2NANDゲートG3との出力が与
えられるANDゲートG2とを有する誤り位置指示出力
導出回路44とを含む誤り位置検出回路53と、 (e)S1=0,S3≠0のとき、訂正不可能な誤りが
生じたとして訂正出力をクリアする訂正制御回路17
と、 (f)BCH符号信号をストアして誤り位置検出回路と
訂正制御回路の出力によって訂正を行って訂正後のBC
H符号信号を得るデータレジスタ18とを含むことを特
徴とする誤り訂正回路。
2. (a) a first syndrome register 9 for dividing a BCH code signal by (x-α) to obtain a first syndrome S1; and (b) dividing the BCH code signal by (x-α 3 ). And (c1) a coefficient deriving circuit 12 for an error locator polynomial, wherein (c1) α is a primitive element of a Galois extension field GF (2 m ) of the m-th order And a double error correction (n, k) BC having α and α 3 as roots
In decoding the H code, (2 m -1) first α multipliers MX1 to MXi are connected in series, and the first stage first α multiplier M
By giving α0 to X1, the element αα of GF (2 m )
(c2) responding to the first syndrome S1 and the output of the element creation circuit 19, which creates α (2 m -1) (hereinafter, α represents the power of (2 m -1)); a power circuit 21 for obtaining the S1α~S1α (2 m -1), ( 2 m -1) has a number of first adder AD0~ADi, the adders AD0~ADi, each bit a0 of S1 -A3 and bits b0-b3 of α1-α (2 m -1) are provided, and the outputs of these first exclusive-OR gates ER0-ER3 are Each of the first adders AD0 to ADi has a power circuit 21 for deriving outputs L0 to Li, and (c3) first syndromes S1 and (2m) on GF (2 m ). m
-1) a first multiplication circuit 23 for multiplying the elements,
(C 4) a first multiplication circuit 23 that connects the (2 m −1) second α multipliers MX11 to MX1i in series and provides the first syndrome S1 to the first-stage second α multiplier MX11; results and, based on the result of the exponentiation circuit 21, obtains the S1 2 S1 2 search circuit 2
2, the outputs of the second α multipliers MX11 to MX1i and the outputs L0 to Li of the first adders AD0 to ADi of the power circuit 21.
And the outputs of the first AND gates G10 to G1i are given.
And S1 2 search circuit 22 and a second exclusive OR gate ER10 for outputting 1 2, (c5) S1 a inverse search circuit 25 for obtaining the inverse of, (2 m -1) pieces of the 3 exclusive OR gates ER30-E
R3i, each of the third exclusive OR gates ER30 to ER30.
ER3i is provided with third exclusive OR gates ER30 to ER3i to which α 0 and outputs of the second multipliers MX11 to MX1i of the first multiplier circuit 23 are provided, and ER3i of the third exclusive OR gates ER30 to ER3i. An inverse element search circuit 25 having all-zero detection circuits AZ0 to AZi realized by a NAND gate for detecting that all bits of each output become logic "0"; (c6) second syndromes S3 and GF (2 m ) on (2 m
-1) a second multiplication circuit 27 for multiplying the elements,
A second multiplication circuit 27 that connects (2 m -1) third α multipliers MX21 to MX2i in series and provides a second syndrome S3 to the first-stage third α multiplier MX21; and (c7) a second multiplication circuit 27. Result and inverse element search circuit 25
S3 / S1 to obtain S3 / S1 based on the result from
(C7-1) (2 m -1) second AND gates G20
To G2i, each of the second AND gates G20 to G2i.
Are all zero detection circuits AZ0 to AZ of the inverse element search circuit 25.
second AND gates G20 to G2 to which outputs L20 to L2i of i and outputs from third α multipliers MX21 to MX2i of second multiplying circuit 27 are provided.
and i, and (C7-2) output is supplied first 2AND gate G20~G2i, S3 / S1 search circuit 26 and a fourth exclusive OR gate ER5 to derive S3 / S1, (c8) S1 2 2 for adding the results of S3 and S3 / S1
8, the second exclusive OR gate ER1 of the S1 2 search circuit 22
The output S1 2 of 0 and the output S3 / S1 of the fourth exclusive OR gate ER5 of the S3 / S1 search circuit 26 are given for each bit, and the fifth exclusive output that outputs (S1 2 + S3 / S1) is provided. Error locator polynomial coefficient deriving circuit 12 including an addition circuit 28 having logical OR gates ER60 to ER63
If, (d) an error position detecting circuit, (d1) when the error position polynomial σ and (z) = 1 + Az + Bz 2, (2 m -2) pieces of the 4α multiplier MX31~
MX3i are connected in series, and a first-stage fourth α multiplier MX31
The second exclusive OR gate E of the S1 2 search circuit 22
By giving A which is the output S1 2 of R10, Aα i
The first arithmetic circuit 41 that outputs (i = 0, 1, 2,..., 2 m −2) is connected in series with (d2) (2 m −2) fifth α multipliers, and the first stage 5α to the multiplier, the output from the fifth exclusive OR gate ER60~ER63 of the adder circuit 28 (S1 2 +
S3 / S1) to give Bα j (j
= 0,1,2, ..., the second arithmetic circuit 42 for outputting a 2 m -2), (d3) Bα k (k = 0,1,2, ..., 2 m -2) to the 6α multiplier MX41; MX51, MX52; MX6
, MX62, MX63; are connected to each other to output B (α k ) 2. (D4) Based on the outputs of the first and third arithmetic circuits 41 and 43, A circuit for determining L where the error locator polynomial is σ (α L ) = 0 (L = 0, 1, 2,..., 2 m −2) and deriving an output indicating the error position of the received codeword 44, Aα i and B (α i )
2 (i = 0, 1,..., 2 m −2) are provided, and each of the third adders AD10 to AD1i is provided with each of Aα i and B (α i ) 2 . Sixth exclusive OR gates ER70 to ER7 for each bit to which a bit is applied
sixth exclusive OR gates ER71 to ER7 m-1 to which m-1 and the second and subsequent bits a1 to am -1 , b1 to bm -1 are given.
Error position indicating output having a second NAND gate G3 to which the output of the second NAND gate G3 is applied, a sixth exclusive OR gate ER70 to which the first bits a0 and b0 are applied, and an AND gate G2 to which the output of the second NAND gate G3 is applied. An error position detection circuit 53 including a derivation circuit 44; and (e) a correction control circuit 17 for clearing a correction output as an uncorrectable error has occurred when S1 = 0 and S3 ≠ 0.
(F) storing the BCH code signal, performing correction by the output of the error position detection circuit and the correction control circuit, and correcting the corrected BC
An error correction circuit comprising: a data register for obtaining an H code signal.
JP13790593A 1993-06-08 1993-06-08 Error correction circuit Expired - Fee Related JP3280470B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13790593A JP3280470B2 (en) 1993-06-08 1993-06-08 Error correction circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13790593A JP3280470B2 (en) 1993-06-08 1993-06-08 Error correction circuit

Publications (2)

Publication Number Publication Date
JPH06348518A JPH06348518A (en) 1994-12-22
JP3280470B2 true JP3280470B2 (en) 2002-05-13

Family

ID=15209425

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13790593A Expired - Fee Related JP3280470B2 (en) 1993-06-08 1993-06-08 Error correction circuit

Country Status (1)

Country Link
JP (1) JP3280470B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11196006A (en) 1997-12-26 1999-07-21 Nec Corp Parallel processing syndrome calculation circuit and reed solomon decoding circuit
CN109981116B (en) * 2019-03-25 2023-04-18 眸芯科技(上海)有限公司 Inversion circuit of BM algorithm in BCH code, implementation method and application

Also Published As

Publication number Publication date
JPH06348518A (en) 1994-12-22

Similar Documents

Publication Publication Date Title
US6637002B1 (en) Decoder for error correcting block codes
US5291496A (en) Fault-tolerant corrector/detector chip for high-speed data processing
EP0167627B1 (en) Method and apparatus for decoding error correction code
JPH0831803B2 (en) Method and apparatus for error correction
JP2001502153A (en) Hardware-optimized Reed-Solomon decoder for large data blocks
JP3176171B2 (en) Error correction method and apparatus
TW566008B (en) Apparatus for solving key equation polynomials in decoding error correction codes
EP0723342B1 (en) Error correction apparatus
JP3280470B2 (en) Error correction circuit
JPH10112660A (en) Error decoding method and device utilizing reed solomon code
US6915478B2 (en) Method and apparatus for computing Reed-Solomon error magnitudes
JP3343857B2 (en) Decoding device, arithmetic device, and methods thereof
US5666369A (en) Method and arrangement of determining error locations and the corresponding error patterns of received code words
WO1994015406A1 (en) Method of and circuit for correcting errors
JP2907138B2 (en) Error correction arithmetic processing method and processing circuit
JPH10322226A (en) Reed solomon decoding method
US10623018B2 (en) Method of arrangement of an algorithm in cyclic redundancy check
KR100335482B1 (en) Error correcting system
JPS6217256B2 (en)
JP3230888B2 (en) Euclidean circuit
CN201025531Y (en) BCH coding random error detection and correction device
KR930002796B1 (en) Error correcting system
JP2553571B2 (en) Galois field arithmetic unit
JP3135552B2 (en) Error detection and correction device for Reed-Solomon code
JPH05268101A (en) Chain search circuit

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020205

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080222

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090222

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090222

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100222

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees