JP2606647B2 - Error correction method - Google Patents

Error correction method

Info

Publication number
JP2606647B2
JP2606647B2 JP5028340A JP2834093A JP2606647B2 JP 2606647 B2 JP2606647 B2 JP 2606647B2 JP 5028340 A JP5028340 A JP 5028340A JP 2834093 A JP2834093 A JP 2834093A JP 2606647 B2 JP2606647 B2 JP 2606647B2
Authority
JP
Japan
Prior art keywords
error
correction
flag
determined
symbols
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
JP5028340A
Other languages
Japanese (ja)
Other versions
JPH06244741A (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.)
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 JP5028340A priority Critical patent/JP2606647B2/en
Publication of JPH06244741A publication Critical patent/JPH06244741A/en
Application granted granted Critical
Publication of JP2606647B2 publication Critical patent/JP2606647B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明はディジタル画像記録装置
等に適用する誤り訂正方法に関し、特にリードソロモン
符号の積符号に対してユークリッド互除アルゴリズムお
よびチェンのアルゴリズムを用いイレージャ訂正する誤
り訂正方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an error correction method applied to a digital image recording apparatus and the like, and more particularly to an error correction method for performing erasure correction on a product code of a Reed-Solomon code using a Euclidean algorithm and a Chen algorithm.

【0002】[0002]

【従来の技術】ディジタル映像信号の記録再生を行うデ
ィジタル画像記録装置において、発生するバーストエラ
ーやランダムエラーを効率よく訂正するために、リード
ソロモン符号を2重に符号化した積符号が用いられてい
る。
2. Description of the Related Art In a digital image recording apparatus for recording and reproducing a digital video signal, a product code obtained by doubly encoding a Reed-Solomon code is used in order to efficiently correct a generated burst error or random error. I have.

【0003】積符号は、図7に示すように、ディジタル
データを2次元配列し、横方向のデータに対して誤り訂
正符号(外符号と称する)をそれぞれ付加し、また、縦
方向のデータおよび外符号に対して誤り訂正符号(内符
号と称する)をそれぞれ付加した2重符号化の構成とな
っている。
As shown in FIG. 7, a product code is a two-dimensional array of digital data, an error correction code (referred to as an outer code) is added to horizontal data, and vertical data and An error correcting code (referred to as an inner code) is added to the outer code to form a double coding.

【0004】一般に、このような積符号により記録され
たディジタル映像信号を復号する場合は、まず、内符号
に対し誤り訂正して復号処理を行い、その後、内符号に
より訂正されたデータに対し更に外符号によって誤り訂
正して復号する。また、内符号の誤り訂正時に訂正能力
を超える誤りが生じていることを示すエラーフラグを内
符号系列ごとに付加し、外符号による誤り訂正時にエラ
ーフラグの情報を利用してイレージャ訂正を行ってい
る。
In general, when decoding a digital video signal recorded by such a product code, first, an error correction is performed on the inner code to perform a decoding process, and then the data corrected by the inner code is further processed. The error is corrected by the outer code and decoded. Also, an error flag indicating that an error exceeding the correction capability has occurred at the time of error correction of the inner code is added for each inner code sequence, and erasure correction is performed using the error flag information at the time of error correction by the outer code. I have.

【0005】図5は、従来の内符号の誤り訂正処理の一
例を示すフローチャートである。ここでは、リードソロ
モン積符号の内符号における符号間最小距離d1 を9と
し、最大訂正可能エラーシンボル数t1 を4とした場合
について示している。なお、一般的に、t1 =(d1
1)/2である。
FIG. 5 is a flowchart showing an example of a conventional inner code error correction process. Here, a case is shown in which the minimum inter-code distance d 1 in the inner code of the Reed-Solomon product code is 9 and the maximum number of correctable error symbols t 1 is 4. Generally, t 1 = (d 1
1) / 2.

【0006】まず入力データからシンドロームS10,S
11,……,S17をそれぞれ計算する(ステップ50
1)。シンドロームS10,S11,……,S17が全て0な
らば(ステップ502)、ノーエラーモードへ移行して
エラーフラグFに「0」をセットして処理を終了する
(ステップ510)。また、シンドロームS10,S11
……,S17が全て0にならないときはエラー訂正モード
へ移行し、ユークリッド互除アルゴリズムによりシンド
ロームから誤り数値多項式および誤り位置多項式を求
め、更にチェンのアルゴリズムにより誤り数値多項式お
よび誤り位置多項式から誤り位置および誤りパターンを
計算する(ステップ503)。
First, the syndromes S 10 , S
11, ..., to calculate the S 17, respectively (Step 50
1). If the syndromes S 10 , S 11 ,..., S 17 are all 0 (step 502), the mode shifts to the no error mode, the error flag F is set to “0”, and the process ends (step 510). Also, syndromes S 10 , S 11 ,
..., when not in all S 17 0 transitions to the error correction mode, determine the error value polynomial and the error locator polynomial from the syndrome by Euclid algorithm, further error location from the error value polynomial and the error locator polynomial by the algorithm of Chen And an error pattern are calculated (step 503).

【0007】なお、ユークリッド互除アルゴリズムおよ
びチェンのアルゴリズムについては、例えば、今井他,
誤り訂正符号化技術の要点(エレクトロニクスエッセン
シャルズNo.20),日本工業技術センター,昭和6
1年3月初版,第298頁〜第307頁に記載されてい
る。
The Euclidean algorithm and Chen's algorithm are described in, for example, Imai et al.
Key points of error correction coding technology (Electronics Essentials No. 20), Japan Industrial Technology Center, Showa 6
It is described in the first edition of March 2013, pp. 298-307.

【0008】次に、ステップ503における計算結果か
らエラーシンボル数を推定して処理フローを分岐する
(ステップ504)。ここで、推定エラーシンボル数が
最大訂正可能エラーシンボル数t1 (t1 =4)よりも
大きいときは訂正不能とし、エラーフラグFに「1」を
セットして処理を終了する(ステップ509)。また、
推定エラーシンボル数が1,2,3,4ならば、それぞ
れの誤り訂正を実行し、エラーフラグFに「0」をセッ
トして処理を終了する(ステップ505,506,50
7,508)。
Next, the number of error symbols is estimated from the calculation result in step 503, and the processing flow branches (step 504). Here, when the estimated error symbol number is larger than the maximum correctable error symbol number t 1 (t 1 = 4), it is determined that the error cannot be corrected, the error flag F is set to “1”, and the process ends (step 509). . Also,
If the estimated number of error symbols is 1, 2, 3, or 4, the respective error corrections are performed, the error flag F is set to "0", and the process is terminated (steps 505, 506, and 50).
7,508).

【0009】図6は、従来の外符号の誤り訂正処理の一
例を示すフローチャートである。ここでは、外符号にお
ける符号間最小距離d2 を9とし、最大訂正可能エラー
シンボル数t2 を4とし、最大訂正可能イレージャシン
ボル数pを8とした場合について示している。なお一般
的に、t2 =(d2 −1)/2、p=2t2 である。
FIG. 6 is a flowchart showing an example of a conventional outer code error correction process. Here, a case is shown in which the minimum inter-code distance d 2 in the outer code is 9, the maximum number of correctable error symbols t 2 is 4, and the maximum number of correctable erasure symbols p is 8. In general, t 2 = (d 2 −1) / 2 and p = 2t 2 .

【0010】まず入力データからシンドロームS20,S
21,……,S27を計算する(ステップ601)。シンド
ロームS20,S21,……,S27が全て0ならば(ステッ
プ602)、ノーエラーモードへ移行してエラーフラグ
Fに「0」をセットして処理を終了する(ステップ60
9)。また、シンドロームS20,S21,……,S27が全
て0にならないならば、内符号の誤り訂正処理において
エラーフラグFに「1」がセットされたシンボル数を計
数し、この計数値が2t2 (2t2 =8)以上のときは
訂正不能と判定し、計数値が7以内のときはエラー・イ
レージャ訂正モードへ移行する(ステップ603)。訂
正不能と判定されたときはエラーフラグFに「1」をセ
ットして処理を終了する(ステップ608)。
First, the syndromes S 20 , S
21, ..., to calculate the S 27 (step 601). If the syndromes S 20 , S 21 ,..., S 27 are all 0 (step 602), the mode shifts to the no error mode, the error flag F is set to “0”, and the process is terminated (step 60).
9). If all the syndromes S 20 , S 21 ,..., S 27 do not become 0, the number of symbols in which the error flag F is set to “1” in the inner code error correction process is counted. If it is 2t 2 (2t 2 = 8) or more, it is determined that correction is impossible, and if the count value is less than 7, the mode shifts to the error erasure correction mode (step 603). When it is determined that the correction is impossible, "1" is set to the error flag F, and the process is terminated (step 608).

【0011】また、ステップ603の計数結果に応じて
イレージャを設定し、ユークリッド互除アルゴリズムに
よって誤り数値多項式および誤り位置多項式を求め、更
にチェンのアルゴリズムによって誤り位置多項式と誤り
数値多項式とから誤り位置および誤りパターンを計算す
る(ステップ604)。
Further, an erasure is set according to the counting result of step 603, an error numerical polynomial and an error position polynomial are obtained by the Euclidean algorithm, and the error position and error are obtained from the error position polynomial and the error numerical polynomial by the Chen algorithm. A pattern is calculated (step 604).

【0012】次に、ステップ603における計数結果の
イレージャシンボル数とステップ604における計算結
果の推定エラーシンボル数とにより訂正可能か否かを判
定する(ステップ605)。ここで、推定エラーシンボ
ル数が4のとき、推定エラーシンボル数が3且つイレー
ジャシンボル数が0〜2のとき、推定エラーシンボル数
が2且つイレージャシンボル数が0〜4のとき、推定エ
ラーシンボル数が1且つイレージャシンボル数が0〜6
のとき、イレージャシンボル数が1〜7ときの、いずれ
かに該当する場合は、該当するエラー訂正を行い、エラ
ーフラグFを「0」にセットして処理を終了する(ステ
ップ607)。
Next, it is determined whether or not correction is possible based on the number of erasure symbols in the counting result in step 603 and the estimated number of error symbols in the calculation result in step 604 (step 605). Here, when the number of estimated error symbols is 4, when the number of estimated error symbols is 3 and the number of erasure symbols is 0 to 2, when the number of estimated error symbols is 2 and the number of erasure symbols is 0 to 4, Number of estimated error symbols is 1 and number of erasure symbols is 0 to 6
At this time, if the number of erasure symbols corresponds to any one of 1 to 7, the corresponding error correction is performed, the error flag F is set to "0", and the process ends (step 607).

【0013】一方、いずれにも該当しない場合は、訂正
不能と判定してエラーフラグFに「1」をセットして処
理を終了する(ステップ606)。
On the other hand, if none of the above applies, it is determined that correction is impossible, and "1" is set in the error flag F, and the process is terminated (step 606).

【0014】[0014]

【発明が解決しようとする課題】上述した従来の誤り訂
正方法では、内符号の誤り訂正処理において訂正不能の
場合に、各内符号系列のエラーフラグに「1」をセッ
トし、外符号の誤り訂正処理においてエラーフラグ
「1」にセットされている数を計数してイレージャシン
ボル数を求めて誤り訂正している。しかし、内符号の誤
り訂正処理において、誤訂正の可能性が高い最大訂正可
能エラーシンボル数の誤り訂正を行った場合であって
も、また、誤訂正の可能性が低いノーエラーと判定され
た場合であっても、いずれの場合もエラーフラグ
「0」をセットしている。このため、エラーフラグの信
頼度が低いという問題点がある。
In the above-mentioned conventional error correction method, when the error cannot be corrected in the inner code error correction processing, the error flag F of each inner code sequence is set to "1" and the outer code of the outer code is set. In the error correction process, the number of the error flags F set to "1" is counted, and the number of erasure symbols is obtained to correct the error. However, in the error correction processing of the inner code, even when the error correction of the maximum correctable error symbol number with a high possibility of erroneous correction is performed, or when it is determined that there is no error with a low possibility of the erroneous correction. In any case, the error flag F is set to “0”. Therefore, there is a problem that the reliability of the error flag is low.

【0015】また、外符号の誤り訂正処理において、信
頼度が低いエラーフラグによって誤り訂正しており、ま
た、イレージャシンボル数が最大訂正可能イレージャシ
ンボル数以上の場合には訂正不能と判定しているため
に、訂正能力が十分でないという問題点を有している。
In the outer code error correction process, the error is corrected by an error flag having low reliability. When the number of erasure symbols is equal to or more than the maximum number of erasable symbols, it is determined that the error cannot be corrected. There is a problem that the correction ability is not sufficient because of the judgment.

【0016】本発明の目的は、ユークリッド互除アルゴ
リズムにおける除算回数がエラーシンボル数と一致する
こと、および誤り位置が符号長より大きくないことを利
用することにより、誤り訂正の信頼度を向上でき、リー
ドソロモン積符号の誤り訂正能力を最大限に発揮できる
誤り訂正方法を提供することにある。
An object of the present invention is to improve the reliability of error correction by utilizing the fact that the number of divisions in the Euclidean algorithm is equal to the number of error symbols and that the error position is not larger than the code length. An object of the present invention is to provide an error correction method capable of maximizing the error correction capability of a Solomon product code.

【0017】[0017]

【課題を解決するための手段】本発明は、リードソロモ
ン符号の積符号に対して内符号の誤り訂正処理後に外符
号の誤り訂正処理を行う誤り訂正方法において、前記内
符号の最大訂正可能エラーシンボル数がt1 (t1 は正
の整数)である場合における前記内符号の誤り訂正処理
は、入力データのシンドロームを計算して第1のシンド
ロームを求め、この第1のシンドロームが全て0の場合
にはノーエラーと判定し、全て0でない場合には前記第
1のシンドロームを基にユークリッド互除アルゴリズム
およびチェンのアルゴリズムにより第1の誤り位置およ
び誤りパターンを計算すると共に第1の除算回数および
第1の推定エラーシンボル数を求め、この第1の推定エ
ラーシンボル数がt1 よりも大きいときは訂正不能と判
定し、t1 以下の場合には前記第1の推定エラーシンボ
ル数と前記第1の除算回数とを比較して一致していなけ
れば訂正不能と判定し、一致していれば前記第1の誤り
位置と符号長とを比較して前記第1の誤り位置が前記符
号長よりも大きいものがあれば訂正不能と判定した後、
ノーエラーまたは訂正不能と判定されたもの以外に対し
て前記第1の推定エラーシンボル数に応じた誤り訂正を
行い、誤り訂正処理後のデータシンボルに対する誤り訂
正の信頼度を表す3ビットのエラーフラグF0 ,F1
2 に対して、ノーエラーと判定された場合には前記エ
ラーフラグF 0 ,F 1 ,F 2 の全てに「0」をセット
し、前記第1の推定エラーシンボル数が1以上でt 1
1以下の場合には前記エラーフラグF 0 のみに「1」を
セットし、前記第1の推定エラーシンボル数がt 1 の場
合には前記エラーフラグF 0 ,F 1 に「1」をそれぞれ
セットし、訂正不能と判定された場合には前記エラーフ
ラグF 0 ,F 1 ,F 2 の全てに「1」をセットするよう
に構成される。
According to the present invention, there is provided an error correction method for performing an outer code error correction process after an inner code error correction process on a product code of a Reed-Solomon code, the method comprising: When the number of symbols is t 1 (t 1 is a positive integer), the inner code error correction process calculates a syndrome of the input data to obtain a first syndrome. In this case, it is determined that there is no error, and when all are not 0, the first error position and error pattern are calculated based on the first syndrome by the Euclidean algorithm and the Chen algorithm, and the first number of divisions and the first error are calculated. estimating errors calculated the number of symbols, the first when the estimated error symbol number is greater than t 1 is determined to uncorrectable, t 1 following field Comparing the first estimated number of error symbols with the first number of divisions, if they do not match, determines that correction is impossible, and if they match, compares the first error position with the code length. If the first error position is larger than the code length, it is determined that the first error position cannot be corrected.
Error correction according to the first estimated number of error symbols is performed on the data symbols other than those determined as no error or uncorrectable, and error correction is performed on the data symbols after the error correction processing.
3-bit error flags F 0 , F 1 ,
Against F 2, the error is when it is determined that no error
Error flag F 0 , F 1 , F 2 is set to “0”
When the number of first estimated error symbols is 1 or more, t 1
In the case of 1 or less to "1" only on the error flag F 0
If the first number of estimated error symbols is t 1 ,
In this case, “1” is set to the error flags F 0 and F 1 respectively.
If it is determined that correction is impossible, the error
The lags F 0 , F 1 , and F 2 are all set to “1” .

【0018】[0018]

【0019】本発明の誤り訂正方法における前記外符号
の誤り訂正処理は、前記外符号の最大訂正可能エラーシ
ンボル数がt2 (t2 は正の整数)である場合、入力デ
ータのシンドロームを計算して第2のシンドロームを求
め、この第2のシンドロームが全て0の場合はノーエラ
ーと判定し、全て0でない場合には前記エラーフラグF
1 ,F2 に基づき前記内符号の誤り訂正処理におけるエ
ラー訂正数がt1 であったシンボル数および訂正不能と
判定されたシンボル数を計数し、この計数結果が2t2
よりも大きい場合は訂正不能と判定し、2t2 以内の場
合には前記エラーフラグF1 ,F2 に応じてイレージャ
フラグを設定し、前記シンドロームを基にユークリッド
互除アルゴリズムおよびチェンのアルゴリズムにより第
2の誤り位置および誤りパターンを計算すると共に第2
の除算回数および第2の推定エラーシンボル数並びにイ
レージャシンボル数を求め、この第2の推定エラーシン
ボル数とイレージャシンボル数とにより訂正不能か否か
を判定し、訂正不能でないと判定された場合には前記第
2の推定エラーシンボル数と前記第2の除算回数とを比
較し一致していなければ訂正不能と判定し、一致してい
れば前記第2の誤り位置と符号長とを比較して前記第2
の誤り位置が前記符号長よりも大きいものがあれば訂正
不能と判定した後、ノーエラーまたは訂正不能と判定さ
れたもの以外について前記第2の推定エラーシンボル数
に応じた誤り訂正を行い、外符号の誤り訂正の信頼度を
表す1ビットのエラーフラグに対して判定条件に応じ
て「0」または「1」をセットするように構成される。
In the error correction method for the outer code in the error correction method according to the present invention, the syndrome of the input data is calculated when the maximum correctable error symbol number of the outer code is t 2 (t 2 is a positive integer). To obtain a second syndrome. If all the second syndromes are 0, it is determined that no error has occurred.
1, the number of error correction in said error correction processing of the code based on F 2 is counting the number of symbols is determined as the symbol rate and uncorrectable was t 1, the count result is 2t 2
If it is larger than 2t 2 , it is determined that correction is impossible, and if it is within 2t 2 , an erasure flag is set according to the error flags F 1 and F 2, and the second Euclidean algorithm and the Chen algorithm are used based on the syndrome. The error position and error pattern are calculated and the second
Is obtained, the number of second estimated error symbols and the number of erasure symbols are determined, and it is determined whether or not correction is impossible based on the second estimated error symbol number and the number of erasure symbols. In this case, the second estimated number of error symbols is compared with the second number of divisions, and if they do not match, it is determined that correction is impossible. If they do, the second error position and the code length are determined. And comparing the second
If there is an error position whose error position is larger than the code length, it is determined that the error cannot be corrected, and then error correction is performed according to the second estimated number of error symbols except for those determined to be no error or uncorrectable. Error correction reliability
1-bit error flag F that represents
Is set to "0" or "1" .

【0020】また、前記イレージャフラグにセットする
値は、前記エラーフラグF1 が「1」となっている数が
2t2 −1以下の場合、前記エラーフラグF1 の値をセ
ットし、前記エラーフラグF2 が「1」となっている数
が2t2 −1以下の場合、前記エラーフラグF2 の値を
セットし、前記エラーフラグF1 ,F2 が共に「1」と
なっている数が2t2 の場合、前記エラーフラグF1
値をセットするよう構成される。
Also, the erasure flag is set.
Value is the case the error flag F 1 is the number that is the "1" is 2t 2 -1 or less, Se the value of the error flag F 1
Tsu collected by said When the error flag F 2 is the number that is the "1" is 2t 2 -1 or less, the value of the error flag F 2
Set, the number of error flags F 1, F 2 are both "1" is the case of 2t 2, the error flag F 1
It is configured to set a value .

【0021】更に、前記第2の推定エラーシンボル数と
イレージャシンボル数とによる訂正不能か否かの判定
は、前記第2の推定エラーシンボル数をu(uは正の整
数)としイレージャシンボル数をv(vは正の整数)と
すれば、前記エラーフラグF1が「1」となっている数
が2t2 −1以下の場合、u=t2 のとき、u=t2
i(iはi=1,2,…,t2 −1)且つv=0ないし
v=2iのとき、u=0且つv=1ないしv=2t2
1のときの、いずれにも該当しないときに訂正不能と判
定し、前記エラーフラグF2 が「1」となっている数が
2t2 −1以下の場合、u=t2 のとき、u=t2 −i
且つv=0ないしv=2i(iはi=1,2,…,t2
−1)のとき、u=0且つv=1ないしv=2t2 −1
のときの、いずれにも該当しないときに訂正不能と判定
し、前記エラーフラグF1 ,F2 が共に「1」となって
いる数が2t2 の場合、v=2t2 でないときに訂正不
能と判定するように構成される。
Further, the determination as to whether or not the correction is impossible based on the second estimated error symbol number and the erasure symbol number is performed by setting the second estimated error symbol number to u (u is a positive integer). If the Ja number of symbols v and (v is a positive integer), the when the error flag F 1 is the number that is the "1" is 2t 2 -1 or less, when u = t 2, u = t 2 −
When i (i is i = 1, 2,..., t 2 −1) and v = 0 to v = 2i, u = 0 and v = 1 to v = 2t 2
When the 1, also determines that uncorrectable when not correspond to any, the When the error flag F 2 is the number that is the "1" is 2t 2 -1 or less, when u = t 2, u = t 2 -i
And v = 0 to v = 2i (i is i = 1, 2,..., T 2
-1), u = 0 and v = 1 to v = 2t 2 −1
Is determined to be uncorrectable when none of the above applies, and when the number of the error flags F 1 and F 2 both being “1” is 2t 2 , the correction is impossible when v = 2t 2 is not satisfied. Is determined.

【0022】また更に、前記外符号の誤り訂正の信頼度
を表す1ビットのエラーフラグにセットする値は、ノ
ーエラーのとき及びエラー訂正を行ったときには「0」
をセットし、前記イレージャフラグに前記エラーフラグ
1 の値がセットされて訂正不能と判定されたときには
前記エラーフラグF0 の値をセットし、前記イレージャ
フラグに前記エラーフラグF 2 の値がセットされて訂正
不能と判定されたときには前記エラーフラグF1 値を
セットするように構成される。
Still further, the reliability of the error correction of the outer code.
The value to be set in the error flag F of 1 bit representing the will, when subjected to and the error correction when no error "0"
And set the error flag in the erasure flag.
Sets the value of the error flag F 0 when the value of F 1 is determined to uncorrectable is set, the erasure
Value of the flag error flag F 2 is configured to <br/> sets the value of the error flag F 1 when it is determined that the uncorrectable is set.

【0023】[0023]

【実施例】次に本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0024】図1は、リードソロモン積符号の内符号に
対する本発明の誤り訂正処理の一実施例を示すフローチ
ャートである。ここでは、内符号の符号間最小距離d1
を9とし、最大訂正可能エラーシンボル数t1 を4とし
ている。また、符号語のエラーフラグとして、3ビット
のエラーフラグF0 ,F1 ,F2 をそれぞれ設けてい
る。
FIG. 1 is a flowchart showing one embodiment of the error correction processing of the present invention for the inner code of a Reed-Solomon product code. Here, the minimum distance d 1 between codes of the inner code
Is set to 9, and the maximum number of correctable error symbols t 1 is set to 4. Also, as the error flag code words are provided three bits <br/> error flag F 0 of, F 1, F 2, respectively.

【0025】まず入力データからシンドロームS10,S
11,……,S17をそれぞれ計算する(ステップ10
1)。シンドロームS10,S11,……,S17が全て0な
らば(ステップ102)、ノーエラーモードへ移行して
エラーフラグF0 ,F1 ,F2 の全てに「0」をセット
して処理を終了する(ステップ115)。また、シンド
ロームS10,S11,……,S17が全て0にならないなら
ばエラー訂正モードへ移行し、ユークリッド互除アルゴ
リズムによってシンドロームを基に誤り数値多項式およ
び誤り位置多項式を求め、更にチェンのアルゴリズムに
よって誤り数値多項式および誤り位置多項式を基に誤り
位置および誤りパターンを計算する(ステップ10
3)。
First, the syndromes S 10 , S
11, ..., to calculate the S 17, respectively (Step 10
1). If the syndromes S 10 , S 11 ,..., S 17 are all 0 (step 102), the processing shifts to the no error mode, and all the error flags F 0 , F 1 , F 2 are set to “0” and the processing is performed. The process ends (step 115). If all of the syndromes S 10 , S 11 ,..., S 17 do not become 0, the mode shifts to the error correction mode, and an error numerical polynomial and an error position polynomial are obtained based on the syndromes by the Euclidean mutual algorithm. The error position and error pattern are calculated based on the error numerical polynomial and the error position polynomial (step 10).
3).

【0026】次にステップ103における計算結果から
エラーシンボル数を推定し、この推定エラーシンボル数
に応じて処理フローを判定する(ステップ104)。す
なわち、推定エラーシンボル数が最大訂正可能エラーシ
ンボル数t1 (t1 =4)よりも大きいときは訂正不能
とする。また、推定エラーシンボル数が1のとき、推定
エラーシンボル数が2ないし3のとき、推定エラーシン
ボル数が最大訂正可能エラーシンボル数t1 のときのそ
れぞれに応じて処理ルートを判定する。
Next, the number of error symbols is estimated from the calculation result in step 103, and the processing flow is determined according to the estimated number of error symbols (step 104). That is, when the estimated number of error symbols is greater than the maximum number of correctable error symbols t 1 (t 1 = 4), it is determined that correction is impossible. Further, it is determined if the estimated error symbol number 1, when to estimate the error symbol number 2 or 3, the process route in accordance with the respective time estimated error symbol number of the maximum correctable error symbol number t 1.

【0027】その後、推定エラーシンボル数とユークリ
ッド互除アルゴリズムにおける除算回数とが一致してい
るか否かを調べ、一致していなければ訂正不能と判定す
る(ステップ105,106,107)。同時に、ステ
ップ103において計算された誤り位置が符号長よりも
大きければ訂正不能と判定する(ステップ108,10
9,110)。訂正不能と判定されたときは、エラーフ
ラグF0 ,F1 ,F2の全てに「1」をセットして処理
を終了する(ステップ114)。
Thereafter, it is checked whether or not the estimated number of error symbols matches the number of divisions in the Euclidean algorithm, and if they do not match, it is determined that correction is impossible (steps 105, 106, 107). At the same time, if the error position calculated in step 103 is larger than the code length, it is determined that correction is impossible (steps 108 and 10).
9, 110). If it is determined that the correction is impossible, "1" is set to all of the error flags F 0 , F 1 , and F 2 , and the process ends (step 114).

【0028】一方、推定エラーシンボル数が1であって
訂正不能と判定されなかったときは、エラーフラグF0
に「1」を、F1 に「0」を、F2 に「0」をそれぞれ
セットし誤り訂正して処理を終了する(ステップ11
1)。また、推定エラーシンボル数が2ないし3であっ
て訂正不能と判定されなかったときは、エラーフラグF
0 に「1」を、F1 に「0」を、F2 に「0」をそれぞ
れセットし誤り訂正して処理を終了する(ステップ11
2)。更に、推定エラーシンボル数が4であって訂正不
能と判定されなかったときは、エラーフラグF0
「1」を、F1 に「1」を、F2 に「0」をそれぞれセ
ットし誤り訂正して処理を終了する(ステップ11
3)。このように3ビットのエラーフラグF0 ,F1
2 は、誤り訂正の信頼度を示すパラメータとなる。上
述した内符号の誤り訂正処理を実現する回路のブロック
図を図3に示している。ここで、シンドローム計算部3
1は、入力データからシンドロームS10,S11,……,
17を計算する。ユークリッド計算部32は、ユークリ
ッド互除アルゴリズムによってシンドロームを基に誤り
数値多項式および誤り位置多項式を計算すると共に除算
回数kを示す信号を送出する。チェン計算部33は、チ
ェンのアルゴリズムによって誤り数値多項式および誤り
位置多項式を基に誤り位置E1および誤りパターンEp
を計算すると共に推定エラーシンボル数mを示す信号を
送出する。比較部34は、推定エラーシンボル数mと除
算回数kとを比較して比較結果を送出する。比較部35
は、誤り位置E1および所定の符号長nを示す信号を受
けて比較して比較結果を送出する。訂正部36は、シン
ドロームS10,S11,……,S17と誤り位置E1と誤り
パターンEpと推定エラーシンボル数mと比較部34,
35の比較結果とをそれぞれ受けて誤り訂正を実行し、
同時にエラーフラグF0 ,F1 ,F2 を判定条件に応じ
てセットする。
On the other hand, when the estimated number of error symbols is 1 and it is not determined that correction is impossible, the error flag F 0
To "1", "0" to F 1, is set respectively to "0" to F 2 ends the error correction to the process (Step 11
1). If the estimated number of error symbols is two or three and it is not determined that correction is impossible, the error flag F
"1" to 0, "0" to F 1, is set respectively to "0" to F 2 ends the error correction to the process (Step 11
2). Further, when the estimated number of error symbols is 4 and it is not determined that the error cannot be corrected, the error flag F 0 is set to “1”, F 1 is set to “1”, and F 2 is set to “0”. Correct and end the process (step 11
3). Thus, the 3- bit error flags F 0 , F 1 ,
F 2 is a parameter indicating the reliability of the error correction. FIG. 3 is a block diagram of a circuit for realizing the above-described inner code error correction processing. Here, the syndrome calculation unit 3
1 indicates that the syndromes S 10 , S 11 ,...
To calculate the S 17. The Euclidean calculation unit 32 calculates an error numerical polynomial and an error locator polynomial based on the syndrome by the Euclidean algorithm and sends a signal indicating the number of divisions k. The Chien calculator 33 calculates the error position E1 and the error pattern Ep based on the error numerical polynomial and the error locator polynomial according to the Chen algorithm.
And sends a signal indicating the estimated number m of error symbols. The comparing section 34 compares the estimated error symbol number m with the number of divisions k and sends out a comparison result. Comparison unit 35
Receives and compares the signal indicating the error position E1 and the predetermined code length n, and sends out a comparison result. Correcting unit 36, the syndrome S 10, S 1 1, ...... , S 1 7 and the error position E1 and the error pattern Ep and the estimated error symbol number m a comparison unit 34,
The error correction is performed by receiving each of the 35 comparison results,
At the same time, error flags F 0 , F 1 , and F 2 are set according to the determination conditions.

【0029】次に外符号の誤り訂正処理フローについて
図2により説明する。
Next, the error correction processing flow for the outer code will be described with reference to FIG.

【0030】ここでは、外符号の符号間最小距離d2
9とし、最大訂正可能エラーシンボル数t2 を4とし、
最大訂正可能イレージャシンボル数pを8としている。
また、1ビットのエラーフラグFを設けている。なお一
般的に、t2 =(d2 −1)/2、p=2t2 である。
Here, the minimum distance d 2 between codes of the outer code is 9, the maximum number of error symbols t 2 that can be corrected is 4, and
The maximum correctable erasure symbol number p is set to eight.
Further, a 1- bit error flag F is provided. In general, t 2 = (d 2 −1) / 2 and p = 2t 2 .

【0031】まず入力データからシンドロームS20,S
21,……,S27をそれぞれ計算する(ステップ20
1)。シンドロームS20,S21,……,S27が全て0な
らば(ステップ202)、ノーエラーモードへ移行して
エラーフラグFに「0」をセットして処理を終了する
(ステップ221)。また、シンドロームS20,S21
……,S27が全て0にならないならばエラー・イレージ
ャ訂正モードへ移行し、内符号の誤り訂正処理において
エラーフラグF1 ,F2 が「1」にセットされたシンボ
ル数を計数して処理フローを判定する。ここで、エラー
フラグF1 が「1」にセット(以下、F1 =「1」のよ
うに記す)されているシンボル数が7以下の場合、つま
り、2t2 −1以下の場合(ステップ203)、エラー
フラグF2 =「1」のシンボル数が7以下の場合(ステ
ップ204)、エラーフラグF1 =「1」またはF2
「1」のシンボル数が共に8の場合、つまり、最大訂正
可能イレージャシンボル数2t2 と等しい場合(ステッ
プ205)の、いずれかにより判定する。なお、いずれ
の場合にも該当しないときは訂正不能と判定する。その
後、エラーフラグF1 ,F2 による判定条件に応じてイ
レージャフラグを設定する。すなわち、エラーフラグF
1 =「1」のシンボル数が7以下の場合はイレージャフ
ラグにエラーフラグF 1 の値をセットし、エラーフラグ
2 =「1」のシンボル数が7以下の場合はイレージャ
フラグにエラーフラグF 2 の値をセットし、F 1
「1」またはF 2 =「1」の数が8の場合はイレージャ
フラグにエラーフラグF 1 の値をセットする。そして、
ユークリッド互除アルゴリズムを用いて誤り数値多項式
および誤り位置多項式を求め、更にチェンのアルゴリズ
ムにより誤り位置および誤りパターンを計算する(ステ
ップ206)。
First, the syndromes S 20 , S
21, ..., to calculate the S 27, respectively (Step 20
1). If the syndromes S 20 , S 21 ,..., S 27 are all 0 (step 202), the mode shifts to the no error mode, the error flag F is set to “0”, and the process ends (step 221). Also, syndromes S 20 , S 21 ,
..., if not to all S 27 0 and goes to the error erasure correction mode, the error correction processing of the inner code error flag F 1, F 2 is counting the number of symbols is set to "1" process Determine the flow. Here, when the number of symbols for which the error flag F 1 is set to “1” (hereinafter, described as F 1 = “1”) is 7 or less, that is, when 2t 2 −1 or less (step 203) ), When the number of symbols of the error flag F 2 = "1" is 7 or less (step 204), the error flag F 1 = "1" or F 2 =
For symbol number are both 8 of "1" is determined, that is, equal to the maximum correctable erasure symbol number 2t 2 in (step 205), either. If none of the above cases applies, it is determined that correction is impossible. After that, the erasure flag is set according to the determination condition based on the error flags F 1 and F 2 . That is, the error flag F
1 = Erajaf when the number of symbols of "1" is 7 or less
It sets the value of the error flag F 1 to lag, error flag
When the number of symbols of F 2 = “1” is 7 or less, the erasure
The value of the error flag F 2 is set in the flag , and F 1 =
If the number of “1” or F 2 = “1” is 8, the erasure
It sets the value of the error flag F 1 in the flag. And
An error numerical polynomial and an error locator polynomial are obtained by using the Euclidean algorithm, and an error position and an error pattern are calculated by the Chen algorithm (step 206).

【0032】次に、ステップ203におけるイレージャ
シンボル数とステップ206における推定エラーシンボ
ル数とにより判定する。すなわち、エラーフラグF1
「1」のシンボル数が7以下およびエラーフラグF2
「1」のシンボル数が7以下の場合においては、推定エ
ラーシンボル数が4のとき、推定エラーシンボル数が3
且つイレージャシンボル数が0〜2のとき、推定エラー
シンボル数が2且つイレージャシンボル数が0〜4のと
き、推定エラーシンボル数が1且つイレージャシンボル
数が0〜6のとき、イレージャシンボル数が1〜7とき
の、いずれかに該当するか否かを判定する(ステップ2
07,208)。また、F1 =「1」またはF2
「1」の数が8の場合は、イレージャシンボル数が8で
あるか否かにより判定する(ステップ209)。
Next, determination is made based on the number of erasure symbols in step 203 and the estimated number of error symbols in step 206. That is, the error flag F 1 =
The number of symbols of “1” is 7 or less and the error flag F 2 =
In the case where the number of symbols of “1” is 7 or less, when the number of estimated error symbols is 4, the number of estimated error symbols is 3
When the number of erasure symbols is 0 to 2, when the number of estimated error symbols is 2 and the number of erasure symbols is 0 to 4, when the number of estimated error symbols is 1 and the number of erasure symbols is 0 to 6, , It is determined whether the number of erasure symbols is 1 to 7 (step 2).
07, 208). Also, F 1 = “1” or F 2 =
If the number of “1” is 8, it is determined whether or not the number of erasure symbols is 8 (step 209).

【0033】なお、ステップ207,208,209に
おいて訂正不能と判定されない条件を一般的に表現すれ
ば、次の通りである。ここでは、推定エラーシンボル数
をu(uは正の整数)、イレージャシンボル数をv(v
は正の整数)とする。
The conditions that are not determined to be uncorrectable in steps 207, 208, and 209 are generally expressed as follows. Here, the number of estimated error symbols is u (u is a positive integer), and the number of erasure symbols is v (v
Is a positive integer).

【0034】エラーフラグF1 =「1」となっている数
が2t2 −1以下の場合は、u=t2 のとき、u=t2
−i(iはi=1,2,…,t2 −1)且つv=0ない
しv=2iのとき、u=0且つv=1ないしv=2t2
−1のとき。
When the number of error flags F 1 = “1” is 2t 2 −1 or less, when u = t 2 , u = t 2
-I (i is i = 1, 2,..., T 2 −1) and v = 0 to v = 2i, u = 0 and v = 1 to v = 2t 2
When -1.

【0035】エラーフラグF2 が「1」となっている数
が2t2 −1以下の場合は、u=t2 のとき、u=t2
−i且つv=0ないしv=2i(iはi=1,2,…,
2−1)のとき、u=0且つv=1ないしv=2t2
−1のとき。
When the number of error flags F 2 set to “1” is 2t 2 −1 or less, when u = t 2 , u = t 2
−i and v = 0 to v = 2i (i is i = 1, 2,...,
When t 2 −1), u = 0 and v = 1 to v = 2t 2
When -1.

【0036】エラーフラグF1 ,F2 が共に「1」とな
っている数が2t2 の場合は、v=2t2 のとき。
When the number of the error flags F 1 and F 2 both set to “1” is 2t 2 , v = 2t 2 .

【0037】さて、ステップ207,208,209に
おいて訂正不能と判定されないときは、推定エラーシン
ボル数とユークリッド互除アルゴリズムによる除算回数
とが一致している否かを調べる。ここで一致しなければ
訂正不能とする(ステップ210,211,212)。
また一致していれば、ステップ206において計算され
た誤り位置と符号長とを比較し、誤り位置が所定の符号
長よりも大きければ訂正不能とする(ステップ213,
214,215)。
If it is not determined in Steps 207, 208, and 209 that the correction is impossible, it is checked whether the estimated number of error symbols matches the number of divisions by the Euclidean algorithm. If they do not match, it cannot be corrected (steps 210, 211, 212).
If they match, the error position calculated in step 206 is compared with the code length, and if the error position is larger than a predetermined code length, it is determined that correction is impossible (step 213, step 213).
214, 215).

【0038】このようなステップを経由した後、各判定
条件に対応したエラー訂正を行うと共に、次のようにエ
ラーフラグFをセットして処理を終了する。
After passing through these steps, error correction corresponding to each determination condition is performed, and an error flag F is set as follows, and the process is terminated.

【0039】ノーエラー(シンドロームが全て0)のと
き又は誤り訂正を行ったときは、エラーフラグF=
「0」とする(ステップ217,219,220,22
1)。内符号の誤り訂正処理においてエラーフラグF1
=「1」にセットされていて訂正不能と判定されたとき
は、エラーフラグFにF0 と同じフラグ(以下、F=
「F0 」と記す)をセットし(ステップ216)、ま
た、エラーフラグF2 =「1」にセットされていて訂正
不能と判定されたときは、エラーフラグF=「F1 」と
する(ステップ218)。
When there is no error (the syndromes are all 0) or when error correction is performed, the error flag F =
"0" (steps 217, 219, 220, 22)
1). Error flag F 1 in the error correction processing of the inner code
= “1” and it is determined that correction is impossible, the error flag F is set to the same flag as F 0 (hereinafter, F =
"F 0" hereinafter) is set to (step 216), also the error flag F 2 = "1" have been set when it is determined that uncorrectable, an error flag F = a "F 1" ( Step 218).

【0040】図4は、上述した外符号の誤り訂正処理を
実現する回路のブロック図である。
FIG. 4 is a block diagram of a circuit for realizing the above-described outer code error correction processing.

【0041】ここで、シンドローム計算部41は、入力
データからシンドロームS20,S21,……,S27を計算
する。エラーフラグ計数部42は、図3に示した内符号
の誤り訂正処理回路からエラーフラグF0 ,F1 ,F2
を受け、エラーフラグF1 ,F2 が「1」にセットされ
たシンボル数を計数して計数値cを送出する。ユークリ
ッド計算部43は、計数値cに応じてユークリッド互除
アルゴリズムによりシンドロームS20,S21,……,S
27から誤り数値多項式および誤り位置多項式を計算する
と共に除算回数kを示す信号を送出する。チェン計算部
44は、チェンのアルゴリズムによって誤り数値多項式
および誤り位置多項式から誤り位置E1および誤りパタ
ーンEpを計算すると共にエラーシンボル数mを示す信
号を送出する。比較部45は、エラーシンボル数mと除
算回数kとを比較して比較結果を送出する。比較部46
は、誤り位置E1と符号長nとを示す信号を受けて比較
して比較結果を送出する。訂正部47は、シンドローム
20,S21,……,S27とエラーフラグF0 ,F1 ,F
2 と誤り位置E1と誤りパターンEpとエラーシンボル
数mと比較部45,46の比較結果とをそれぞれ受けて
誤り訂正を実行し、同時にエラーフラグFをセットす
る。
Here, the syndrome calculating section 41 calculates syndromes S 20 , S 21 ,..., S 27 from the input data. The error flag counting section 42 outputs the error flags F 0 , F 1 , F 2 from the inner code error correction processing circuit shown in FIG.
In response to this, the number of symbols for which the error flags F 1 and F 2 are set to “1” is counted and a count value c is transmitted. The Euclidean calculator 43 calculates the syndromes S 20 , S 21 ,..., S by the Euclidean algorithm according to the count value c.
An error numerical polynomial and an error position polynomial are calculated from 27 and a signal indicating the number of divisions k is transmitted. The Chien calculation unit 44 calculates the error position E1 and the error pattern Ep from the error numerical value polynomial and the error position polynomial by the algorithm of Chen, and sends out a signal indicating the number m of error symbols. The comparison unit 45 compares the number m of error symbols with the number k of divisions and sends out a comparison result. Comparison section 46
Receives and compares the signal indicating the error position E1 and the code length n, and sends out a comparison result. The correction unit 47 includes syndromes S 20 , S 21 ,..., S 27 and error flags F 0 , F 1 , F
2 , the error position E1, the error pattern Ep, the number m of error symbols, and the comparison results of the comparison units 45 and 46, respectively, to execute error correction, and at the same time, set the error flag F.

【0042】[0042]

【発明の効果】以上説明したように本発明によれば、リ
ードソロモン積符号の内符号の誤り訂正処理において、
各符号語に誤り訂正の信頼度を示す3ビットのエラーフ
ラグを設け、ユークリッド互除アルゴリズムおよびチェ
ンのアルゴリズムによって求めたエラーシンボル数、除
算回数、誤り位置等により訂正不能を判定し、また、各
判定条件に応じて誤り訂正すると共に3ビットのエラー
フラグに所定値をセットした後、外符号の誤り訂正処理
において、3ビットのエラーフラグに基づきユークリッ
ド互除アルゴリズムおよびチェンのアルゴリズムにより
エラーシンボル数、イレージャシンボル数、除算回数、
誤り位置等を求めて訂正不能を判定し、各判定条件に応
じて誤り訂正することにより、誤り訂正の信頼度を向上
でき、リードソロモン積符号の誤り訂正能力を最大限に
発揮できるという効果を有する。
As described above, according to the present invention, in the error correction processing of the inner code of the Reed-Solomon product code,
Each codeword is provided with a 3-bit error flag indicating the reliability of error correction, and it is determined whether correction is impossible based on the number of error symbols, the number of divisions, the error position, and the like obtained by the Euclidean algorithm and Chen's algorithm. after setting the predetermined value to the 3-bit error flag with error correction according to the conditions, in the error correction processing of the outer code, the algorithm of the Euclidean <br/> de mutual division algorithm and Chen based on the error flag of 3 bits error The number of symbols, the number of erasure symbols, the number of divisions,
Error correction is determined based on the error position, etc., and error correction is performed according to each determination condition, thereby improving the reliability of error correction and maximizing the error correction capability of Reed-Solomon product codes. Have.

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

【図1】本発明の一実施例における内符号の誤り訂正処
理のフローチャートである。
FIG. 1 is a flowchart of an inner code error correction process according to an embodiment of the present invention.

【図2】本発明の一実施例における外符号の誤り訂正処
理のフローチャートである。
FIG. 2 is a flowchart of an outer code error correction process according to an embodiment of the present invention.

【図3】図1に示した内符号の誤り訂正処理を実現する
回路のブロック図である。
FIG. 3 is a block diagram of a circuit that realizes an error correction process of the inner code shown in FIG.

【図4】図2に示した外符号の誤り訂正処理を実現する
回路のブロック図である。
FIG. 4 is a block diagram of a circuit that realizes an outer code error correction process shown in FIG. 2;

【図5】従来の内符号の誤り訂正処理の一例を示すフロ
ーチャートである。
FIG. 5 is a flowchart illustrating an example of a conventional inner code error correction process.

【図6】従来の外符号の誤り訂正処理の一例を示すフロ
ーチャートである。
FIG. 6 is a flowchart illustrating an example of a conventional outer code error correction process.

【図7】積符号の構成を示す図である。FIG. 7 is a diagram illustrating a configuration of a product code.

【符号の説明】 31,41 シンドローム計算部 32,43 ユークリッド計算部 33,44 チェン計算部 34,35,45,46 比較部 36,47 訂正部 42 エラーフラグ計数部 101〜115 内符号の誤り訂正処理ステップ 201〜221 外符号の誤り訂正処理ステップ[Description of Codes] 31, 41 Syndrome calculation unit 32, 43 Euclidean calculation unit 33, 44 Chien calculation unit 34, 35, 45, 46 Comparison unit 36, 47 Correction unit 42 Error flag counting unit 101-115 Error correction of inner code Processing steps 201 to 221 Outer code error correction processing steps

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 リードソロモン符号の積符号に対して内
符号の誤り訂正処理後に外符号の誤り訂正処理を行う誤
り訂正方法において、前記内符号の最大訂正可能エラー
シンボル数がt1 (t1 は正の整数)である場合におけ
る前記内符号の誤り訂正処理は、入力データのシンドロ
ームを計算して第1のシンドロームを求め、この第1の
シンドロームが全て0の場合にはノーエラーと判定し、
全て0でない場合には前記第1のシンドロームを基にユ
ークリッド互除アルゴリズムおよびチェンのアルゴリズ
ムにより第1の誤り位置および誤りパターンを計算する
と共に第1の除算回数および第1の推定エラーシンボル
数を求め、この第1の推定エラーシンボル数がt1 より
も大きいときは訂正不能と判定し、t1 以下の場合には
前記第1の推定エラーシンボル数と前記第1の除算回数
とを比較して一致していなければ訂正不能と判定し、一
致していれば前記第1の誤り位置と符号長とを比較して
前記第1の誤り位置が前記符号長よりも大きいものがあ
れば訂正不能と判定した後、ノーエラーまたは訂正不能
と判定されたもの以外に対して前記第1の推定エラーシ
ンボル数に応じた誤り訂正を行い、誤り訂正処理後のデ
ータシンボルに対する誤り訂正の信頼度を表す3ビット
のエラーフラグF0 ,F1 ,F2 に対して、ノーエラー
と判定された場合には前記エラーフラグF 0 ,F 1 ,F
2 の全てに「0」をセットし、前記第1の推定エラーシ
ンボル数が1以上でt 1 −1以下の場合には前記エラー
フラグF 0 のみに「1」をセットし、前記第1の推定エ
ラーシンボル数がt 1 の場合には前記エラーフラグ
0 ,F 1 に「1」をそれぞれセットし、訂正不能と判
定された場合には前記エラーフラグF 0 ,F 1 ,F 2
全てに「1」をセットすることを特徴とする誤り訂正方
法。
1. An error correction method for performing error correction of an outer code after error correction of an inner code for a product code of a Reed-Solomon code, wherein the maximum number of error-correctable error symbols of the inner code is t 1 (t 1 Is a positive integer), the inner code error correction process calculates a syndrome of the input data to obtain a first syndrome, and when all the first syndromes are 0, determines that there is no error;
If not all 0, the first error position and error pattern are calculated by the Euclidean algorithm and Chen algorithm based on the first syndrome, and the first number of divisions and the first number of estimated error symbols are obtained. If the first estimated error symbol number is greater than t 1 , it is determined that correction is impossible. If the first estimated error symbol number is less than t 1, the first estimated error symbol number is compared with the first division number to obtain one. If they do not match, it is determined that correction is impossible, and if they match, the first error position is compared with the code length, and if there is one whose first error position is larger than the code length, it is determined that correction is impossible. After that, error correction according to the first estimated number of error symbols is performed on the data other than those determined as no error or uncorrectable, and the data after the error correction processing is performed.
For the 3-bit error flags F 0 , F 1 , and F 2 representing the reliability of error correction for data symbols,
Are determined, the error flags F 0 , F 1 , F
2 is set to “0”, and the first estimated error
If the number of symbols is 1 or more and t 1 -1 or less, the above error occurs.
Only the flag F 0 is set to “1”, and the first estimation error is set.
The error flag if error symbol number of t 1
Set “1” to F 0 and F 1 respectively, and determine that
Wherein if it is a constant error flag F 0, the F 1, F 2
An error correction method characterized by setting "1" to all .
【請求項2】 前記外符号の最大訂正可能エラーシンボ
ル数がt2 (t2 は正の整数)である場合における前記
外符号の誤り訂正処理は、入力データのシンドロームを
計算して第2のシンドロームを求め、この第2のシンド
ロームが全て0の場合はノーエラーと判定し、全て0で
ない場合には前記エラーフラグF1 ,F2 に基づき前記
内符号の誤り訂正処理におけるエラー訂正数がt1 であ
ったシンボル数および訂正不能と判定されたシンボル数
を計数し、この計数結果が2t2 よりも大きい場合は訂
正不能と判定し、2t2 以内の場合には前記エラーフラ
グF1 ,F2 に応じてイレージャフラグを設定して前記
シンドロームを基にユークリッド互除アルゴリズムおよ
びチェンのアルゴリズムにより第2の誤り位置および誤
りパターンを計算すると共に第2の除算回数および第2
の推定エラーシンボル数並びにイレージャシンボル数を
求め、この第2の推定エラーシンボル数とイレージャシ
ンボル数とにより訂正不能か否かを判定し、訂正不能で
ないと判定された場合には前記第2の推定エラーシンボ
ル数と前記第2の除算回数とを比較し一致していなけれ
ば訂正不能と判定し、一致していれば前記第2の誤り位
置と符号長とを比較して前記第2の誤り位置が前記符号
長よりも大きいものがあれば訂正不能と判定した後、ノ
ーエラーまたは訂正不能と判定されたもの以外について
前記第2の推定エラーシンボル数に応じた誤り訂正を行
い、外符号の誤り訂正の信頼度を表す1ビットのエラー
フラグに対し判定条件に応じて「0」または「1」
セットすることを特徴とする請求項1記載の誤り訂正方
法。
2. The error correction process for the outer code in the case where the maximum number of error-correctable error symbols of the outer code is t 2 (t 2 is a positive integer), calculates a syndrome of the input data, A syndrome is obtained. If all the second syndromes are 0, it is determined that there is no error. If not all the errors are 0, the number of error corrections in the error correction processing of the inner code is t 1 based on the error flags F 1 and F 2. And the number of symbols determined to be uncorrectable are counted. If the counted result is greater than 2t 2 , it is determined that correction is impossible. If the counted result is within 2t 2, the error flags F 1 and F 2 are determined. Calculating the second error position and error pattern by the Euclidean algorithm and Chen's algorithm based on the syndrome by setting the erasure flag according to Both the second number of divisions and the second
The number of estimated error symbols and the number of erasure symbols are determined, and it is determined whether or not correction is impossible based on the second estimated number of error symbols and the number of erasure symbols. The second number of estimated error symbols is compared with the second number of divisions. If they do not match, it is determined that correction is impossible. If they do match, the second error position is compared with the code length to compare the second error position with the code length. If the error position of No. 2 is larger than the code length, it is determined that the error cannot be corrected, and then error correction is performed according to the second estimated number of error symbols except for the one determined to be no error or uncorrectable. 2. The error correction method according to claim 1, wherein "0" or "1" is set to a one-bit error flag F representing the reliability of error correction of the code in accordance with a determination condition.
【請求項3】 前記イレージャフラグにセットする値
は、 前記エラーフラグF1 が「1」となっている数が2t2
−1以下の場合、前記エラーフラグF1 の値をセット
し、 前記エラーフラグF2 が「1」となっている数が2t2
−1以下の場合、前記エラーフラグF2 の値をセット
、 前記エラーフラグF1 ,F2 が共に「1」となっている
数が2t2 の場合、前記エラーフラグF1 の値をセット
することを特徴とする請求項記載の誤り訂正方法。
(3)Value to be set in the erasure flag
Is  The error flag F12t is "1"Two
-1 or less, the error flag F1 Set the value of
And the error flag FTwo2t is "1"Two
-1 or less, the error flag FTwo Set the value of
IThe error flag F1, FTwoAre both "1"
Number is 2tTwoThe error flag F1 Set the value of
Claims characterized by2Error correction method described.
【請求項4】 前記第2の推定エラーシンボル数とイレ
ージャシンボル数とによる訂正不能か否かの判定は、前
記第2の推定エラーシンボル数をu(uは正の整数)と
しイレージャシンボル数をv(vは正の整数)とすれ
ば、 前記エラーフラグF1 が「1」となっている数が2t2
−1以下の場合、u=t2 のとき、u=t2 −i(iは
i=1,2,…,t2 −1)且つv=0ないしv=2i
のとき、u=0且つv=1ないしv=2t2 −1のとき
の、いずれにも該当しないときに訂正不能と判定し、 前記エラーフラグF2 が「1」となっている数が2t2
−1以下の場合、u=t2 のとき、u=t2 −i且つv
=0ないしv=2i(iはi=1,2,…,t2 −1)
のとき、u=0且つv=1ないしv=2t2 −1のとき
の、いずれにも該当しないときに訂正不能と判定し、 前記エラーフラグF1 ,F2 が共に「1」となっている
数が2t2 の場合、v=2t2 でないときに訂正不能と
判定することを特徴とする請求項記載の誤り訂正方
法。
4. A determination as to whether correction is impossible based on the second estimated error symbol number and the erasure symbol number is performed by setting the second estimated error symbol number to u (u is a positive integer). Assuming that the number of jasymbols is v (v is a positive integer), the number of times that the error flag F 1 is “1” is 2t 2
−1 or less, when u = t 2 , u = t 2 −i (i is i = 1, 2,..., T 2 −1) and v = 0 to v = 2i
, When u = 0 and v = 1 to v = 2t 2 −1, it is determined that correction is impossible when none of the above applies, and the number of times when the error flag F 2 is “1” is 2t Two
−1 or less, when u = t 2 , u = t 2 −i and v
= 0 to v = 2i (i is i = 1, 2,..., T 2 -1)
When u = 0 and v = 1 to v = 2t 2 −1, it is determined that correction is impossible when none of the above applies, and both the error flags F 1 and F 2 become “1”. 4. The error correction method according to claim 3 , wherein when the number of the bits is 2t 2 , it is determined that the correction is not possible when v = 2t 2 is not satisfied.
【請求項5】 前記外符号の誤り訂正の信頼度を表す1
ビットのエラーフラグにセットする値は、ノーエラー
のとき及びエラー訂正を行ったときには「0」をセット
し、前記イレージャフラグに前記エラーフラグF 1 の値
がセットされて訂正不能と判定されたときには前記エラ
ーフラグF0 の値をセットし、前記イレージャフラグに
前記エラーフラグF 2 の値がセットされて訂正不能と判
定されたときには前記エラーフラグF1 値をセットす
ることを特徴とする請求項記載の誤り訂正方法。
5. A 1 representing the reliability of error correction of the outer code.
The value to be set in the bit error flag F is set to “0” when there is no error and when error correction is performed, and the value of the error flag F 1 is set in the erasure flag.
There is set the value of the error flag F 0 when it is determined that the uncorrectable is set, the erasure flag
Error correction method of claim 4, wherein the setting the value of the error flag F 1 when the value of the error flag F 2 is determined to uncorrectable is set.
JP5028340A 1993-02-18 1993-02-18 Error correction method Expired - Fee Related JP2606647B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5028340A JP2606647B2 (en) 1993-02-18 1993-02-18 Error correction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5028340A JP2606647B2 (en) 1993-02-18 1993-02-18 Error correction method

Publications (2)

Publication Number Publication Date
JPH06244741A JPH06244741A (en) 1994-09-02
JP2606647B2 true JP2606647B2 (en) 1997-05-07

Family

ID=12245875

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5028340A Expired - Fee Related JP2606647B2 (en) 1993-02-18 1993-02-18 Error correction method

Country Status (1)

Country Link
JP (1) JP2606647B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999014685A1 (en) * 1997-09-16 1999-03-25 Hitachi, Ltd. Data processor and data processing system
JP3214478B2 (en) 1998-12-28 2001-10-02 日本電気株式会社 Error correction decoding device
JP4039227B2 (en) 2002-12-13 2008-01-30 日本電気株式会社 Decoding method and program, and decoding circuit using the same
JP5699737B2 (en) * 2011-03-28 2015-04-15 富士通株式会社 Error correction apparatus and error correction method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0834440B2 (en) * 1987-06-18 1996-03-29 松下電器産業株式会社 Galois field calculation method
JPH02146820A (en) * 1988-11-28 1990-06-06 Nec Home Electron Ltd Double reed solomon code decoding system
JPH05120814A (en) * 1991-04-30 1993-05-18 Toshiba Corp Digital audio tape recorder
JP2999881B2 (en) * 1992-05-12 2000-01-17 シャープ株式会社 Reed-Solomon decoding device

Also Published As

Publication number Publication date
JPH06244741A (en) 1994-09-02

Similar Documents

Publication Publication Date Title
US8429489B2 (en) Data retrieval from a storage device using a combined error correction and detection approach
US7392461B2 (en) Decoding for algebraic geometric code associated with a fiber product
JPH084233B2 (en) Error correction code decoding device
KR100734307B1 (en) Post-viterbi error correction method and apparatus for the same
JP2606647B2 (en) Error correction method
US5809042A (en) Interleave type error correction method and apparatus
JP3734486B2 (en) Error correction apparatus and error correction method
JP2605966B2 (en) Error correction circuit
KR100330642B1 (en) Error Correction Method and Error Correction Device
JP3271208B2 (en) Error correction decoding device
JPH048979B2 (en)
US8209589B2 (en) Reed-solomon decoder with a variable number of correctable errors
JP3537722B2 (en) Recording / playback device
US7096414B2 (en) In-line wire error correction
JP2796291B2 (en) Error correction method
JP2694794B2 (en) Error correction processing method
JP3583905B2 (en) Error correction device
KR19990039252A (en) Eraser correction method and apparatus
JP2605269B2 (en) Error correction method
JP2002009634A (en) Device and method for error correction
JP2567598B2 (en) Error count determination method
JP4129608B2 (en) Reed-Solomon code setting method
JPS59131237A (en) Decoding circuit
JP2001160761A (en) Error correction device and error correction method
JP2003224543A (en) Method and program for decoding error correction and error correction decoder

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: 19961224

LAPS Cancellation because of no payment of annual fees