JPH0945014A - Error correction apparatus for recording/reproducing - Google Patents
Error correction apparatus for recording/reproducingInfo
- Publication number
- JPH0945014A JPH0945014A JP21286795A JP21286795A JPH0945014A JP H0945014 A JPH0945014 A JP H0945014A JP 21286795 A JP21286795 A JP 21286795A JP 21286795 A JP21286795 A JP 21286795A JP H0945014 A JPH0945014 A JP H0945014A
- Authority
- JP
- Japan
- Prior art keywords
- error
- correction
- series
- error correction
- recording
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012937 correction Methods 0.000 title claims abstract description 222
- 238000001514 detection method Methods 0.000 claims abstract description 14
- 208000011580 syndromic disease Diseases 0.000 abstract description 85
- 238000000034 method Methods 0.000 abstract description 63
- 238000006243 chemical reaction Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 4
- 230000000630 rising effect Effects 0.000 description 4
- 238000011156 evaluation Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000009191 jumping Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
Landscapes
- Error Detection And Correction (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、2重のリードソロ
モン符号を採用したエラー訂正装置に関し、特にMD
(ミニディスク)に記録されたオーディオ信号を再生し
たり、かかるMDへの記録を行う際に好適なエラー訂正
装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an error correction device using a double Reed-Solomon code, and more particularly to an MD.
The present invention relates to an error correction device suitable for reproducing an audio signal recorded on a (mini disc) or recording on the MD.
【0002】[0002]
【従来の技術】一般に、MDでは、主としてランダムエ
ラー訂正用のC1系列と、主としてバーストエラー訂正
用のC2系列の2重のリードソロモン(RS)符号がク
ロスインターリーブされている。また、MDのC1系列
はW0〜W31までの32ワードで構成され、C2系列
はW0〜W27までの28ワードで構成されている。さ
らに、MDのパリティはC1、C2系列ともに4ワード
であり、記録モード時及び再生時のC2系列のイレージ
ャ訂正は最大4イレージャ訂正までである。2. Description of the Related Art Generally, in MD, a double Reed-Solomon (RS) code mainly consisting of a C1 sequence for random error correction and a C2 sequence mainly for burst error correction is cross-interleaved. The MD C1 series is composed of 32 words W0 to W31, and the C2 series is composed of 28 words W0 to W27. Further, the parity of MD is 4 words for both C1 and C2 series, and the erasure correction for the C2 series during the recording mode and the reproduction is up to 4 erasure correction.
【0003】MD再生時のエラー訂正ではC1系列の訂
正を最初に行い、このC1訂正では1エラー訂正、2エ
ラー訂正及び3個以上のエラーの検出を行い、表1に示
すように訂正状況を示すポインタとして「エラー訂正な
し」、「1エラー訂正」、「2エラー訂正」、「3エラ
ー以上、訂正しない」を示すC1フラグ(C1F=F
0,F1,F2)をセットし、このC1フラグC1Fは
C2訂正においてエラーの位置を示す情報として用いら
れる。In error correction during MD reproduction, the C1 series is first corrected, and in this C1 correction, 1 error correction, 2 error corrections and 3 or more error detections are performed. A C1 flag (C1F = F) indicating "no error correction", "1 error correction", "2 error correction", and "3 or more errors not corrected" as a pointer
0, F1, F2) is set, and this C1 flag C1F is used as information indicating an error position in C2 correction.
【0004】[0004]
【表1】 [Table 1]
【0005】C2訂正では上記C1訂正によりエラー位
置が判っている場合、すなわち、C2系列における28
ワードW0〜W27の内、どのワードがエラーであるか
が判っている場合にエラーを訂正する、いわゆるイレー
ジャ訂正を行う。ここで、C2系列の28ワードW0〜
W27はC1系列においてもいずれかのブロックに属し
ているので、イレージャ訂正ではC2系列の各ワードに
ついてそのワードが属しているC1系列のブロックのC
1フラグC1Fを読み出し、1エラー訂正、2エラー訂
正及び3個以上のエラーの検出を行う。続いて、C1フ
ラグC1Fの位置をエラーの位置とみなして4ワードま
でのイレージャ訂正を行い、訂正不能な場合には補間フ
ラグをセットする。In the C2 correction, when the error position is known by the C1 correction, that is, 28 in the C2 series.
When it is known which of the words W0 to W27 is in error, the error is corrected, so-called erasure correction is performed. Here, 28 words W0 of C2 series
Since W27 belongs to any block in the C1 series, in erasure correction, for each word of the C2 series, the C of the block of the C1 series to which the word belongs
The 1 flag C1F is read to perform 1 error correction, 2 error correction, and detection of 3 or more errors. Subsequently, the position of the C1 flag C1F is regarded as an error position, and erasure correction of up to 4 words is performed. If the position cannot be corrected, the interpolation flag is set.
【0006】また、記録時にはC1、C2の各系列につ
いて所定のフローに従ってパリティ計算が行われる。こ
の動作は、前述の再生時のエラー訂正とは異なるので、
記録部と再生部を有する記録・再生装置ではハード的に
もソフト的にも、記録系と再生系は別個に独立してい
た。Further, at the time of recording, parity calculation is performed for each series of C1 and C2 according to a predetermined flow. Since this operation is different from the error correction during playback described above,
In a recording / reproducing apparatus having a recording unit and a reproducing unit, the recording system and the reproducing system were separate and independent in terms of hardware and software.
【0007】[0007]
【発明が解決しようとする課題】かかる従来のMD用の
記録・再生用エラー訂正装置では記録部と再生部とにお
けるリードソロモン符号を用いたエラー訂正処理が各々
独立して行われているため、ハードウェア・ソフトウェ
アともに別々に用意されている。このため、部品点数が
多く、スペースを要するとともに部品コスト、組立コス
ト、ソフトウェア作成コストなどが高くなっていた。In such a conventional recording / reproducing error correction device for MD, the error correcting process using the Reed-Solomon code in the recording unit and the reproducing unit is independently performed. Both hardware and software are prepared separately. Therefore, the number of parts is large, space is required, and parts cost, assembly cost, software creation cost, etc. are high.
【0008】従って、本発明は例えばMDのようにC2
系列エラー訂正時に最大4個までのイレージャ訂正を行
う場合に、部品数を減少させ、省スペース化が可能であ
り、製造諸コストを低減させることのできる記録・再生
用エラー訂正装置を提供することを目的とする。Therefore, the present invention uses C2, such as MD.
To provide a recording / reproducing error correction device capable of reducing the number of parts, saving space, and reducing various manufacturing costs when performing erasure correction of up to 4 at the time of series error correction. With the goal.
【0009】[0009]
【課題を解決するための手段】本発明は上記目的を達成
するために、記録時におけるエラー訂正処理と再生時に
おけるエラー訂正処理の手順中、共通しているところは
同一のソフトウェアのプログラムを実行し、互いに異な
るところでは必要に応じてジャンプするようにし、記録
時は再生時におけるエラーの位置検出動作をパリティの
位置検出動作に置き代えてパリティ計算を行うととも
に、C2系列エラー訂正時に最大4個までのイレージャ
訂正を行うようにしている。In order to achieve the above-mentioned object, the present invention executes the same software program in the steps of the error correction processing during recording and the error correction processing during reproduction. However, when different from each other, a jump is made as necessary, and at the time of recording, the error position detecting operation at the time of reproduction is replaced with the position detecting operation of the parity to perform parity calculation, and at the time of C2 error correction, a maximum of 4 I am trying to correct the erasure up to.
【0010】すなわち本発明によれば、C1系列とC2
系列の2重のリードソロモン符号を採用した記録・再生
用エラー訂正装置であって、記録モードか再生モードか
を判別するモード判別手段と、前記モード判別手段によ
り再生モードと判別されたときはエラーの位置を検出し
てエラー訂正を行う手段と、前記モード判別手段により
記録モードと判別されたときは前記エラー訂正を行う手
段におけるエラーの位置検出動作をパリティの位置設定
動作に置き代えてパリティ計算を行う手段とを有し、前
記エラー訂正を行う手段が、前記C1系列の各ブロック
のエラーを訂正するとともに、ブロック毎にエラーフラ
グを記憶するC1系列エラー訂正手段と、前記C1系列
エラー訂正手段により記憶されているC2系列の各ワー
ドに対応するエラーフラグを読み出して前記C2系列の
各ブロックのエラーを訂正するC2系列エラー訂正手段
とを有する記録・再生用エラー訂正装置が提供される。That is, according to the present invention, the C1 series and the C2 series are
An error correction device for recording / reproduction, which employs a double Reed-Solomon code of a series, comprising: a mode discriminating means for discriminating between a recording mode and a reproducing mode; Means for detecting the position of the error and correcting the error, and when the mode determining means determines the recording mode, the error position detecting operation in the error correcting means is replaced with the parity position setting operation. And a means for performing error correction, wherein the means for performing error correction corrects an error in each block of the C1 series and stores an error flag for each block, and the C1 series error correction means. The error flag corresponding to each word of the C2 series stored by is read and the error of each block of the C2 series is read. Recording and reproducing error correction device is provided having a C2 sequence error correcting means for correcting.
【0011】[0011]
【発明の実施の形態】以下、図面を参照して本発明の記
録・再生用エラー訂正装置の実施の形態をその実施例に
よって説明する。図1は本発明に係る誤り訂正装置の一
実施例を示すブロック図、図2はリードソロモン符号の
C1系列を訂正するルーチンを説明するためのフローチ
ャート、図3はリードソロモン符号のC2系列を訂正す
るルーチンを説明するためのフローチャートである。BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of a recording / reproducing error correction apparatus of the present invention will be described below with reference to the accompanying drawings. 1 is a block diagram showing an embodiment of an error correction device according to the present invention, FIG. 2 is a flowchart for explaining a routine for correcting a C1 sequence of a Reed-Solomon code, and FIG. 3 is a flowchart for correcting a C2 sequence of a Reed-Solomon code. 6 is a flowchart for explaining a routine to be executed.
【0012】先ず、図1に示す回路を概略的に説明する
と、回路2〜20が入力端子1から入力する信号の誤り
を訂正するように構成され、また、この誤り訂正回路を
構成する部分2〜20は、回路2〜8を含むシンドロー
ム演算ブロック22と、回路9〜14を含むラッチブロ
ック23及び回路15〜20を含む訂正ブロック26に
より大別される。また、このブロック22、23および
26はアドレスブロック24と、インストラクションブ
ロック25により制御される。First, the circuit shown in FIG. 1 will be briefly described. The circuits 2 to 20 are configured to correct an error of a signal input from the input terminal 1, and a part 2 constituting the error correction circuit. .. to 20 are roughly divided into a syndrome calculation block 22 including circuits 2 to 8, a latch block 23 including circuits 9 to 14 and a correction block 26 including circuits 15 to 20. The blocks 22, 23 and 26 are controlled by an address block 24 and an instruction block 25.
【0013】エラーフラグ検出回路2は、再生時にC2
系列のイレージャ訂正のためのC1エラーフラグ評価を
行う回路であり、C2系列の各ワードに対応したC1エ
ラーフラグを読み出し、C1の2ワードエラーおよび3
ワード以上エラーの位置と数を検出する。また、この回
路2はエラーフラグの読み出しのためのRAMアドレス
を生成し、出力する。The error flag detection circuit 2 uses C2 during reproduction.
A circuit for evaluating a C1 error flag for erasure correction of a series, reading a C1 error flag corresponding to each word of the C2 series, and detecting a 2-word error of C1 and 3
Detects the position and number of errors of more than word. The circuit 2 also generates and outputs a RAM address for reading the error flag.
【0014】パリティロケーション設定回路3は、記録
時にイレージャ訂正を使ってパリティを計算するために
パリティの位置をC1、C2の各系列に合わせてロケー
ション選択回路4に出力する。ロケーション選択回路4
は、再生モード時にエラーフラグ位置検出回路2からの
エラーの位置を選択し、記録モード時にパリティロケー
ション設定回路3からのパリティの位置を選択し、レジ
スタ出力選択回路9、11に出力する。The parity location setting circuit 3 outputs the parity position to the location selection circuit 4 in accordance with each sequence of C1 and C2 in order to calculate the parity by using erasure correction during recording. Location selection circuit 4
Selects the error position from the error flag position detection circuit 2 in the reproduction mode, selects the parity position from the parity location setting circuit 3 in the recording mode, and outputs it to the register output selection circuits 9 and 11.
【0015】シンドロームチェック回路5は、入力端子
1より入力されるRAM(図示省略)からのデータを受
け取って後述するようにC1系列では4個のシンドロー
ムS0〜S3を演算し、C2系列では4個のシンドロー
ムSq0〜Sq3を演算してシンドローム選択回路6に
出力する。シンドローム選択回路6はシンドローム選択
回路6からのシンドローム、レジスタ19または16か
らの出力を選択し、指数に変換するためのテーブルのα
−i変換ROM7に出力する。The syndrome check circuit 5 receives data from a RAM (not shown) input from the input terminal 1 and calculates four syndromes S0 to S3 in the C1 series and four in the C2 series, as will be described later. The syndromes Sq0 to Sq3 are calculated and output to the syndrome selection circuit 6. The syndrome selection circuit 6 selects the syndrome from the syndrome selection circuit 6 and the output from the register 19 or 16 and converts it into an α in the table for converting into an exponent.
-I Output to the conversion ROM 7.
【0016】シンドローム格納レジスタ8には、α−i
変換ROM7によりα−i変換されたシンドロームが格
納され、このレジスタ8はまた、格納されたシンドロー
ムが全て「00」の場合にフラグ「1」を出力する。レ
ジスタ出力選択回路9、11は、シンドローム格納レジ
スタ8に格納されたシンドローム、ロケーション選択回
路4により選択されたデータ及びレジスタ14に格納さ
れたデータを選択して加算回路12に出力し、また、訂
正データシンボルアドレスラッチ回路10は、エラー訂
正を実行するときに演算により得られたエラー位置を記
憶し、RAMアドレス出力回路24に出力する。The syndrome storage register 8 stores α-i
The conversion ROM 7 stores the α-i converted syndrome, and this register 8 also outputs a flag “1” when all the stored syndromes are “00”. The register output selection circuits 9 and 11 select the syndrome stored in the syndrome storage register 8, the data selected by the location selection circuit 4 and the data stored in the register 14 and output them to the adder circuit 12, and also make corrections. The data symbol address latch circuit 10 stores the error position obtained by the operation when executing the error correction, and outputs it to the RAM address output circuit 24.
【0017】加算回路12はレジスタ出力選択回路9、
11により選択されたデータを加算するが、この加算は
αの指数部の加算であるので、インストラクションでは
乗算となる。レジスタ入出選択回路13は、加算回路1
2の出力またはROM7によりα−i変換されたシンド
ロームを選択して後段のレジスタ14に記憶させる。な
お、このレジスタ14は演算途中のデータを一時記憶し
てレジスタ出力選択回路9、11に出力するために用い
られる。The adder circuit 12 is a register output selection circuit 9,
The data selected by 11 is added. Since this addition is addition of the exponent part of α, the instruction is multiplication. The register input / output selection circuit 13 is the addition circuit 1
The output of 2 or the syndrome which is α-i converted by the ROM 7 is selected and stored in the register 14 in the subsequent stage. The register 14 is used to temporarily store the data during the calculation and output it to the register output selection circuits 9 and 11.
【0018】i−α変換回路15は加算回路12の出力
をi−α変換し、このデータは排他的論理和回路17に
より、レジスタ19に格納されたデータと加算されて再
度レジスタ19に格納される。レジスタ16は、2ワー
ド訂正時にZ2 +Z+X=0の解「Z」を求めるために
「X」の値を入力すると「Z」の値に変換して記憶して
出力する。訂正データ出力回路20は、i−α変換回路
15からのデータとデータバス上の誤りデータとから排
他的論理和回路18により得られる訂正データをデータ
バス上に出力する。The i-α conversion circuit 15 performs an i-α conversion on the output of the adder circuit 12, and this data is added to the data stored in the register 19 by the exclusive OR circuit 17 and stored again in the register 19. It Register 16, Z 2 + Z + X = 0 the solution was stored converted by entering a value of "X" in order to obtain the "Z" to the value "Z" is output when two words corrected. The corrected data output circuit 20 outputs the corrected data obtained by the exclusive OR circuit 18 from the data from the i-α conversion circuit 15 and the error data on the data bus onto the data bus.
【0019】RAMアドレス出力回路24は、C1系列
のRAMアドレス(C1RAMAD)と、C1系列のエ
ラーフラグのRAMアドレス(C1FLGAD)と、C
2系列のRAMアドレス(C2RAMAD)と、C2系
列のエラーフラグのRAMアドレス(C2FLGAD)
と、各系列のエラーフラグデータ(ERFLGBUF)
を生成して出力する。The RAM address output circuit 24 includes a C1 series RAM address (C1RAMAD), a C1 series error flag RAM address (C1FLGAD), and a C1 series RAM address.
2 series RAM addresses (C2RAMAD) and C2 series error flag RAM addresses (C2FLGAD)
And error flag data of each series (ERFLGBUF)
Is generated and output.
【0020】次に、インストラクション回路25を詳細
に説明すると、先ず、クロック発生器(CLOCKGE
N)は各入力信号から、この装置内部で使用される各種
クロックを生成する。インストラクションカウンタ(I
NSTCNT)はC1、C2のシンドローム演算及びC
1エラーフラグ評価インストラクション用の10ビット
カウンタであり、このカウンタの出力がインストラクシ
ョンROM(INSTROM)25aのアドレスとな
る。このインストラクションの1ステップは、クロック
の立ち上がりから立ち上がりまでであり、クロックによ
りカウントアップする。また、このインストラクション
のジャンプは、下記の飛び先アドレスをこのカウンタに
ロードすることにより行われる。Next, the instruction circuit 25 will be described in detail. First, the clock generator (CLOCKGE).
N) generates various clocks used in this device from each input signal. Instruction counter (I
NSTCNT) is the C1 and C2 syndrome operation and C
This is a 10-bit counter for one error flag evaluation instruction, and the output of this counter is the address of the instruction ROM (INSTROM) 25a. One step of this instruction is from the rising edge of the clock to the rising edge, and is counted up by the clock. The jump of this instruction is performed by loading the following jump destination address into this counter.
【0021】インストラクションROM25aはインス
トラクションカウンタ(INSTCNT)から出力され
るカウント値をアドレスとして16ビットデータを出力
し、このデータがインストラクションの各ステップにお
ける処理動作を決定する。インストラクションセレクタ
(INSTSEL)はインストラクションROM25a
から出力される16ビットデータを処理の種類(シンド
ローム演算、エラーフラグ処理など)に応じて出力先を
振り分ける。この出力はクロックのタイミングで出力さ
れる。また、このセレクタはRAMアクセス時にインス
トラクションを止める信号を出力する。The instruction ROM 25a outputs 16-bit data with the count value output from the instruction counter (INSTCNT) as an address, and this data determines the processing operation in each step of the instruction. The instruction selector (INSTSEL) is an instruction ROM 25a.
Output destinations of the 16-bit data output from are distributed according to the type of processing (syndrome calculation, error flag processing, etc.). This output is output at the clock timing. Further, this selector outputs a signal for stopping the instruction when accessing the RAM.
【0022】ロードアドレス発生器(LOADAD)は
インストラクションカウンタ(INSTCNT)から出
力されるカウント値をラッチしたデータを読み取り、こ
のデータがジャンプを行うアドレスの場合に各入力条件
に従って飛び先アドレスを決定してインストラクション
カウンタ(INSTCNT)に出力する。The load address generator (LOADAD) reads the data in which the count value output from the instruction counter (INSTCNT) is latched, and when this data is an address for jumping, determines the jump destination address according to each input condition. Output to the instruction counter (INSTCNT).
【0023】ここで、シンドローム演算と訂正処理のイ
ンストラクションが同時に進行しているが、RAMには
同時にアクセスすることができないので、インストラク
ションコントローラ(INSTCONT)がアドレスを
監視し、RAMアクセスが衝突しないようにインストラ
クションカウンタ(INSTCNT)をコントロールし
ている。また、シンドローム演算と訂正処理を同時に行
うが、訂正処理されている系列は、同時に行われるシン
ドローム演算の1系列前のシンドロームであるので、フ
ラグコントローラ(FLGCONT)がシンドローム演
算に関する情報およびフラグを記憶し、この情報および
フラグが訂正処理に用いられる。Here, although the instruction of the syndrome calculation and the instruction of the correction process are proceeding at the same time, the RAM cannot be accessed at the same time. Therefore, the instruction controller (INSTCONT) monitors the address so that the RAM access does not collide. It controls the instruction counter (INSTCNT). In addition, although the syndrome calculation and the correction process are performed at the same time, since the sequence being corrected is the syndrome one sequence before the syndrome calculation performed at the same time, the flag controller (FLGCONT) stores the information and the flag related to the syndrome calculation. , This information and flags are used in the correction process.
【0024】次に、図2及び図3におけるエラー訂正処
理と消失(イレージャ)訂正処理について説明する。 1.エラー訂正 エラー訂正とは、受信したデータに対してシンドローム
演算(以下、シンドロームチェックと言う。)を行い、
その結果に基づいてデータの位置と値を訂正することで
ある。この場合、1個の誤りデータには2個の未知数
(位置と値)が存在し、また、C1、C2系列ともにパ
リティが4個であるので2ワードまでのエラー訂正が可
能である。ここで、MDにおけるC1系列のシンドロー
ムS0〜S3と、C2系列のシンドロームSq0〜Sq
3はそれぞれ次式(数1、数2)のように演算される。Next, the error correction process and the erasure correction process in FIGS. 2 and 3 will be described. 1. Error correction Error correction is performed on the received data by performing a syndrome operation (hereinafter referred to as syndrome check).
Correcting the position and value of the data based on the result. In this case, one error data has two unknowns (position and value), and since both C1 and C2 sequences have four parities, error correction of up to 2 words is possible. Here, in the MD, the syndromes S0 to S3 of the C1 series and the syndromes Sq0 to Sq of the C2 series.
3 is calculated as in the following equations (Equation 1 and Equation 2).
【0025】[0025]
【数1】 [Equation 1]
【0026】[0026]
【数2】 [Equation 2]
【0027】以下、1ワード及び2ワードエラー訂正に
ついて説明する。 1−1.1エラー訂正 エラーが1個の場合、シンドローチェックの結果(S0
〜S3)は、Eiをエラーの大きさとし、Xiをエラー
の位置とすると、次のようになる。 S0= Ei S1=Xi *Ei S2=Xi2 *Ei S3=Xi3 *EiThe one-word and two-word error correction will be described below. 1-1.1 Error correction When there is one error, the result of the thin check (S0
S3) is as follows, where Ei is the error magnitude and Xi is the error position. S0 = Ei S1 = Xi * Ei S2 = Xi 2 * Ei S3 = Xi 3 * Ei
【0028】上記S0〜S3を用いてEi及びXiを求
めると、 Xi=S1/S0 Ei=S0 誤った受信データの値をDi、正しいデータ値をWiと
するとWhen Ei and Xi are obtained by using S0 to S3, Xi = S1 / S0 Ei = S0 If an erroneous received data value is Di and a correct data value is Wi.
【0029】[0029]
【数3】 (Equation 3)
【0030】訂正処理はメモリアドレスXiのデータD
iを読み出し、Eiを加算した結果をメモリアドレスX
iに書き込むことにより終了する。 1−2.2エラー訂正 エラーが2個の場合のシンドロームは、Ei、Ejをエ
ラーの大きさ、Xi、Xjをエラーの位置としてThe correction process is performed by the data D at the memory address Xi.
i is read and the result of adding Ei is the memory address X
It ends by writing to i. 1-2.2 Error correction The syndrome when there are two errors has Ei and Ej as error magnitudes and Xi and Xj as error positions.
【0031】[0031]
【数4】 (Equation 4)
【0032】となる。この4個の連立方程式を解くこと
によって4個の未知数を求める方法もあるが、ここでは
位置の根の方程式を導入して処理ステップを減少してい
る。先ず、エラーの位置の和と積を定義する。## EQU1 ## There is also a method of obtaining four unknowns by solving these four simultaneous equations, but here, the equation of the root of the position is introduced to reduce the processing steps. First, the sum and product of error positions are defined.
【0033】[0033]
【数5】 (Equation 5)
【0034】このXi、Xjは次の方程式F(Y)の根
となる。These Xi and Xj are the roots of the following equation F (Y).
【0035】[0035]
【数6】 (Equation 6)
【0036】この式を展開すると、Expanding this equation,
【0037】[0037]
【数7】 (Equation 7)
【0038】この形式ではテーブルの参照が不可能であ
るので、変数をY=C1*Zと変形すると、前記式はSince it is not possible to refer to the table in this format, if the variable is transformed into Y = C1 * Z, the above equation becomes
【0039】[0039]
【数8】 (Equation 8)
【0040】C2/C12 とZとの対照ROM7により
Zを求めて Xi=C1*Z Xj=C2/Xi としてXi、Xjを求めることができる。また、C1、
C2はシンドロームS0〜S3の関数で与えられる。It is possible to obtain Zi by obtaining Z by the contrast ROM 7 of C2 / C1 2 and Z and Xi = C1 * Z Xj = C2 / Xi. Also, C1,
C2 is given as a function of the syndromes S0 to S3.
【0041】[0041]
【数9】 [Equation 9]
【0042】実際の訂正作業ではC1、C2を求め、そ
の結果を対照ROM7に参照し、参照結果にC1を乗じ
てXiを求める。エラーの大きさEi、EjはIn the actual correction work, C1 and C2 are obtained, the result is referred to the control ROM 7, and the reference result is multiplied by C1 to obtain Xi. The error magnitudes Ei and Ej are
【0043】[0043]
【数10】 (Equation 10)
【0044】以上の演算結果を基にメモリのデータを書
き直すことにより2ワードのエラー訂正が完了する。The error correction of 2 words is completed by rewriting the data in the memory based on the above calculation result.
【0045】2.イレージャ訂正 イレージャ訂正はエラーの位置が予め判っていて、エラ
ーの値だけを求める訂正方法であり、MDではC2系列
のパリティの数が4個であるので、最大4ワードのイレ
ージャ訂正を行うことができる。イレージャ訂正につい
て詳細に説明すると、今、4個のエラーを仮定し、これ
らのエラーの位置をX1、X2、X3、X4とし、以下
の計算を行う。2. Erasure correction Erasure correction is a correction method in which the position of an error is known in advance and only the error value is obtained. In MD, since the number of C2 sequence parities is 4, it is possible to perform erasure correction of a maximum of 4 words. it can. The erasure correction will be described in detail. Now, assuming four errors, the positions of these errors are X1, X2, X3, and X4, and the following calculation is performed.
【0046】[0046]
【数11】 [Equation 11]
【0047】エラーの位置X1〜X4に対応するエラー
の値をY1、Y2、Y3、Y4とする。T3は以下の式
で定義する。The error values corresponding to the error positions X1 to X4 are Y1, Y2, Y3, and Y4. T3 is defined by the following formula.
【0048】[0048]
【数12】 (Equation 12)
【0049】Y4は次式で与えられる。 Y4=T3/I4 これで、先ず4番目のデータが訂正できたことになる。
次いで、Y3を求めるためにシンドロームを修正し、シ
ンドロームからY4を消去する。Y4 is given by the following equation. Y4 = T3 / I4 With this, the fourth data can be corrected first.
The syndrome is then modified to find Y3 and Y4 is erased from the syndrome.
【0050】[0050]
【数13】 (Equation 13)
【0051】この修正されたシンドロームよりT2、Y
3を求める。From this modified syndrome, T2, Y
Ask for 3.
【0052】[0052]
【数14】 [Equation 14]
【0053】同様な処理をY2についても行う。Similar processing is performed for Y2.
【0054】[0054]
【数15】 (Equation 15)
【0055】最後にY1の演算を行う。Finally, Y1 is calculated.
【0056】[0056]
【数16】 (Equation 16)
【0057】以上により4ワードのイレージャ訂正が完
了する。次に、図2を参照してC1訂正処理について説
明する。C1訂正処理がスタートすると(ステップS1
01)、先ず、前述した式(数1)によりシンドローム
S0〜S3を演算し(ステップS102)、次いで、シ
ンドロームS0〜S3をα→i変換してレジスタ8に格
納する。With the above, erasure correction of 4 words is completed. Next, the C1 correction process will be described with reference to FIG. When the C1 correction process starts (step S1
01), first, the syndromes S0 to S3 are calculated by the above-mentioned formula (Equation 1) (step S102), and then the syndromes S0 to S3 are converted into α → i and stored in the register 8.
【0058】ステップS102の後に、現在の動作モー
ドが記録モードか否かを判断する(ステップ103)。
この判断は、対象となるMD記録・再生機の操作スイッ
チにより、記録モードとされているときに所定のフラグ
をたてておき、このフラグを見ることによりなされる。
記録モードでない場合は、再生モードとみなす。すなわ
ち、記録、再生以外の巻き戻しなどのモードについて
も、すべて再生モードとして取り扱う。以下ステップS
103で再生モードと判断された場合について先に説明
する。After step S102, it is determined whether the current operation mode is the recording mode (step 103).
This judgment is made by setting a predetermined flag when the recording mode is set by the operation switch of the target MD recording / reproducing apparatus and observing this flag.
If it is not in recording mode, it is regarded as playback mode. That is, all modes other than recording and reproduction such as rewinding are handled as reproduction modes. Step S below
The case in which the reproduction mode is determined in 103 will be described first.
【0059】再生モードの場合、シンドロームS0〜S
3が全て「0」か否かを判別し(ステップ104)、Y
ESの場合にはC1エラーフラグF0、F1、F2にと
もに「0」を書き込み(ステップS105)、次いで全
ブロックが終了した場合には図3に示すC2訂正処理へ
進む(ステップS118)。他方、ステップS104に
おいてシンドロームS0〜S3が全て「0」でない場合
には、先ず、次式In the reproduction mode, the syndromes S0 to S
It is determined whether all 3 are "0" (step 104), and Y
In the case of ES, "0" is written in each of the C1 error flags F0, F1, and F2 (step S105), and when all blocks are completed, the process proceeds to the C2 correction process shown in FIG. 3 (step S118). On the other hand, when all the syndromes S0 to S3 are not “0” in step S104, first,
【0060】[0060]
【数17】 [Equation 17]
【0061】に基づいて1ワードエラーを検出するため
の変形シンドロームσ1〜σ3を演算し(ステップS1
06)、1ワードエラーか否かを判別する(ステップS
107)。1ワードエラーの場合には前述した1ワード
訂正を行って訂正データを書き込み(ステップS10
8)、次いで表1にも基づいてC1エラーフラグF0に
「1」を書き込む(ステップS109)。次いで、全ブ
ロックが終了した場合には図3に示すC2訂正処理へ進
む(ステップS118)。Based on the above, the modified syndromes σ1 to σ3 for detecting the one-word error are calculated (step S1
06) It is determined whether or not there is a one-word error (step S
107). In the case of a 1-word error, the 1-word correction described above is performed and the corrected data is written (step S10).
8) Then, based on Table 1 as well, "1" is written in the C1 error flag F0 (step S109). Next, when all the blocks are completed, the process proceeds to the C2 correction process shown in FIG. 3 (step S118).
【0062】他方、ステップS107において1ワード
エラーでない場合には、2ワードエラーを検出するため
のX1、X2、φ1〜φ4を演算し(ステップS11
0)、次いで、2ワードエラーか否かを判別する(ステ
ップS111)。そして、2ワードエラーの場合には前
述したように2ワード訂正を行って訂正データXi 、X
j を書き込み(ステップS112)、次いで表1に示す
ようにC1エラーフラグF1に「1」を書き込む(ステ
ップS112)。次いで、全ブロックが終了した場合に
は図3に示すC2訂正処理へ進む(ステップS11
8)。On the other hand, if the one-word error is not detected in step S107, X1, X2, and φ1 to φ4 for detecting the two-word error are calculated (step S11).
0), and then it is determined whether or not there is a 2-word error (step S111). In the case of a two-word error, the two-word correction is performed as described above to obtain the corrected data Xi, X.
j is written (step S112), and then "1" is written in the C1 error flag F1 as shown in Table 1 (step S112). Next, when all the blocks are completed, the process proceeds to the C2 correction process shown in FIG. 3 (step S11).
8).
【0063】また、ステップS111において2ワード
エラーでない場合には表1に示すようにC1エラーフラ
グF2に「1」を書き込み(ステップS114)、次い
で全ブロックが終了した場合には図3に示すC2訂正処
理へ進む(ステップS118)。If it is not a 2-word error in step S111, "1" is written in the C1 error flag F2 as shown in Table 1 (step S114), and when all blocks are finished, C2 shown in FIG. Proceed to the correction process (step S118).
【0064】ステップS103において記録モードと判
断された場合は、パリティの位置(S28〜S31)を
ロードし(ステップS115)、前演算を行って(ステ
ップS116)4イレージャ訂正を行う(ステップS1
17)。次いで全ブロックが終了した場合には図3に示
すC2訂正処理へ進む(ステップS118)。If the recording mode is determined in step S103, the parity position (S28 to S31) is loaded (step S115), pre-computation is performed (step S116), and 4 erasure correction is performed (step S1).
17). Next, when all the blocks are completed, the process proceeds to the C2 correction process shown in FIG. 3 (step S118).
【0065】次に、図3を参照してC2訂正処理につい
て説明する。このC2訂正処理は、1エラー訂正、2エ
ラー訂正及び3個以上のエラー検出を行う。また、C1
フラグの位置をエラーの位置とみなして最大4ワードま
でのイレージャ訂正を行う。Next, the C2 correction process will be described with reference to FIG. This C2 correction processing performs 1 error correction, 2 error correction, and 3 or more error detections. Also, C1
Erasure correction of up to 4 words is performed by regarding the flag position as an error position.
【0066】先ず、C1フラグを読み出す(ステップS
122)。ここで、F0、F1のC1フラグはC1訂正
においてそれぞれ1エラー訂正、2エラー訂正が行われ
たことを示し、F2のC1フラグは3個以上のエラーを
検出したことを示すが、C1訂正では3以上のエラーを
2エラーとして誤訂正する確率が高い。そこで、C2訂
正ではF1、F2フラグの数及び位置に着目して訂正を
行う。次いで前述したシンドロームSq0〜Sq3を算
出し(ステップS122)、シンドロームSq0〜Sq
3をα→i変換してレジスタ8に格納する。First, the C1 flag is read (step S
122). Here, the C1 flags of F0 and F1 indicate that 1 error correction and 2 error correction were performed in the C1 correction, and the C1 flag of F2 indicates that three or more errors were detected. There is a high probability of erroneously correcting 3 or more errors as 2 errors. Therefore, in the C2 correction, attention is paid to the numbers and positions of the F1 and F2 flags to perform the correction. Next, the syndromes Sq0 to Sq3 described above are calculated (step S122), and the syndromes Sq0 to Sq are calculated.
3 is α → i converted and stored in the register 8.
【0067】次いで、C1のときと同様に、記録モード
か否かを判断し(ステップS124)、再生モードのと
きにはステップS125以下に進む。ステップS125
以下ではシンドロームSq0〜Sq3が全て「0」か否
かを判別することによりエラー数が「0」か否かを判別
し(ステップS125)、「0」の場合にはC2エラー
フラグF0、F1、F2にともに「0」を書き込み(ス
テップS126)、C2訂正処理を終了する(ステップ
S127)。Then, similarly to the case of C1, it is judged whether or not the recording mode is set (step S124), and if it is the reproduction mode, the process proceeds to step S125 and thereafter. Step S125
In the following, it is determined whether or not the number of errors is "0" by determining whether or not all of the syndromes Sq0 to Sq3 are "0" (step S125), and if "0", the C2 error flags F0, F1, "0" is written in both F2 (step S126), and the C2 correction process is completed (step S127).
【0068】他方、ステップS125においてシンドロ
ームSq0〜Sq3が全て「0」でない場合には、1ワ
ードエラーを検出するための変形シンドロームσ1〜σ
3を演算し(ステップS128)、次いで、1ワードエ
ラーか否かを判別する(ステップS129)。そして、
1ワードエラーの場合には1ワード訂正を行って訂正デ
ータを書き込み(ステップS130)、次いでC2エラ
ーフラグF0、F1、F2にともに「0」を書き込み
(ステップS131)C2訂正処理を終了する(ステッ
プS127)。On the other hand, when the syndromes Sq0 to Sq3 are not all "0" in step S125, the modified syndromes σ1 to σ for detecting the one-word error.
3 is calculated (step S128), and then it is determined whether there is a one-word error (step S129). And
In the case of a 1-word error, 1-word correction is performed to write the corrected data (step S130), and then "0" is written to the C2 error flags F0, F1, and F2 (step S131), and the C2 correction process is completed (step S131). S127).
【0069】他方、ステップS129において1ワード
エラーでない場合には、2ワードエラーを検出するため
の変形シンドロームX1、X2、φ1〜φ4を演算し
(ステップS132)、次いで、2ワードエラーか否か
を判別する(ステップ133)。そして、2ワードエラ
ーの場合には2ワード訂正を行って訂正データXi、Xj
を書き込み(ステップS134)、次いでC2エラーフ
ラグF0、F1、F2にともに「0」を書き込み(ステ
ップS135)C2訂正処理を終了する(ステップS1
27)。On the other hand, if the one-word error is not detected in step S129, the modified syndromes X1, X2, φ1 to φ4 for detecting the two-word error are calculated (step S132), and then it is determined whether or not there is a two-word error. It is determined (step 133). Then, in the case of a 2-word error, 2-word correction is performed to make correction data Xi, Xj.
Is written (step S134), and then "0" is written in the C2 error flags F0, F1, and F2 (step S135), and the C2 correction process is completed (step S1).
27).
【0070】また、ステップS133において2ワード
エラーでない場合には最大4のイレージャ処理を行い
(ステップS136)、次いで訂正可能な場合にはC2
エラーフラグF0、F1、F2にともに「0」を書き込
み(ステップS137→S138)、C2訂正処理を終
了する(ステップS127)。また、ステップS137
において訂正可能でない場合にはC2エラーフラグF
0、F1、F2にそれぞれ「0」、「1」、「1」又は
全てに「1」を書き込み(ステップS138)、C2訂
正処理を終了する(ステップS127)。If it is not a 2-word error in step S133, a maximum of 4 erasure processes are performed (step S136).
“0” is written in each of the error flags F0, F1, and F2 (step S137 → S138), and the C2 correction process is ended (step S127). In addition, step S137
C2 error flag F if not correctable in
“0”, “1”, “1” or “1” is written to 0, F1, and F2, respectively (step S138), and the C2 correction process ends (step S127).
【0071】ステップS124において記録モードのと
きは、パリティの位置をロードし(ステップS14
0)、前演算を行って(ステップS141)、4イレー
ジャ訂正を行いパリティ計算を行う(ステップS14
2)。In the recording mode in step S124, the parity position is loaded (step S14).
0), pre-calculation is performed (step S141), 4 erasure correction is performed, and parity calculation is performed (step S14).
2).
【0072】上記のように、記録モードのときに再生モ
ードと異なる処理を行うのは、記録時にはC1、C2系
列のパリティを計算しなくてはならないからである。パ
リティの位置はあらかじめ分かっているので、イレージ
ャ訂正を応用してエラー訂正の代りにパリティ計算を行
う。前述のように再生時においてはエラーの位置は分か
らないのでC1訂正によってエラーフラグを書き込み、
C2訂正時にそれを読み出すことでエラーの位置を検出
していたが、記録時はパリティの位置が分かっているの
で、C1系列においてもイレージャ訂正を使ってパリテ
ィ計算を行うことができるのである。As described above, the reason why the recording mode is different from the reproducing mode is that the parities of the C1 and C2 series must be calculated during recording. Since the position of parity is known in advance, erasure correction is applied and parity calculation is performed instead of error correction. As described above, since the position of the error is unknown during reproduction, the error flag is written by C1 correction,
Although the position of the error was detected by reading it during C2 correction, the position of the parity was known at the time of recording, so that parity calculation can be performed using erasure correction even in the C1 series.
【0073】[0073]
【発明の効果】以上説明したように本発明によれば、リ
ードソロモン符号を用いたエラー訂正装置において、記
録系と再生系の処理を一部兼用できるように、再生モー
ドにおけるC1フラグの読み出しステップに代えて、記
録モードではパリティの位置のロードを行い、C1、C
2ともに4イレージャ訂正を行うことにより、パリティ
計算を実現している。したがって記録系、再生系でハー
ドウェアと一部のプログラムを共有でき、同じソフトウ
ェアに記録のサブルーチンを持たせておき、モード切り
替えによってプログラムのジャンプアドレスを切り替え
ることで記録ルーチンを実行することができる。As described above, according to the present invention, in the error correction apparatus using the Reed-Solomon code, the step of reading the C1 flag in the reproduction mode so that the processing of both the recording system and the reproduction system can be shared. Alternatively, in the recording mode, the parity position is loaded, and C1, C
Parity calculation is realized by performing both 4 erasure correction. Therefore, the recording system and the reproducing system can share a part of the program with the hardware, and the recording routine can be executed by switching the jump address of the program by switching the mode by providing the same software with a recording subroutine.
【図1】本発明に係る記録・再生用エラー訂正装置の一
実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of a recording / reproducing error correction device according to the present invention.
【図2】リードソロモン符号のC1系列を訂正するルー
チンを説明するためのフローチャートである。FIG. 2 is a flowchart illustrating a routine for correcting a C1 sequence of Reed-Solomon code.
【図3】リードソロモン符号のC2系列を訂正するルー
チンを説明するためのフローチャートである。FIG. 3 is a flowchart for explaining a routine for correcting a C2 sequence of Reed-Solomon code.
2 フラグロケーション回路 22 シンドローム演算ブロック 23 ラッチブロック 24 アドレスブロック 25 インストラクションブロック 26 訂正ブロック 2 flag location circuit 22 syndrome operation block 23 latch block 24 address block 25 instruction block 26 correction block
─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───
【手続補正書】[Procedure amendment]
【提出日】平成7年12月25日[Submission date] December 25, 1995
【手続補正1】[Procedure amendment 1]
【補正対象書類名】明細書[Document name to be amended] Statement
【補正対象項目名】全文[Correction target item name] Full text
【補正方法】変更[Correction method] Change
【補正内容】[Correction contents]
【書類名】 明細書[Document Name] Statement
【発明の名称】 記録・再生用エラー訂正装置Title of the invention: Error correction device for recording and reproduction
【特許請求の範囲】[Claims]
【発明の詳細な説明】Detailed Description of the Invention
【0001】[0001]
【発明の属する技術分野】本発明は、2重のリードソロ
モン符号を採用したエラー訂正装置に関し、特にMD
(ミニディスク)に記録されたオーディオ信号を再生し
たり、かかるMDへの記録を行う際に好適なエラー訂正
装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an error correction device using a double Reed-Solomon code, and more particularly to an MD
The present invention relates to an error correction device suitable for reproducing an audio signal recorded on a (mini disc) or recording on the MD.
【0002】[0002]
【従来の技術】一般に、MDでは、主としてランダムエ
ラー訂正用のC1系列と、主としてバーストエラー訂正
用のC2系列の2重のリードソロモン(RS)符号がク
ロスインターリーブされている。また、MDのC1系列
はW0〜W31までの32ワードで構成され、C2系列
はW0〜W27までの28ワードで構成されている。さ
らに、MDのパリティはC1、C2系列ともに4ワード
であり、記録モード時及び再生時のC2系列のイレージ
ャ訂正は最大4イレージャ訂正までである。2. Description of the Related Art Generally, in MD, a double Reed-Solomon (RS) code mainly consisting of a C1 sequence for random error correction and a C2 sequence mainly for burst error correction is cross-interleaved. The MD C1 series is composed of 32 words W0 to W31, and the C2 series is composed of 28 words W0 to W27. Further, the parity of MD is 4 words for both C1 and C2 series, and the erasure correction for the C2 series during the recording mode and the reproduction is up to 4 erasure correction.
【0003】MD再生時のエラー訂正ではC1系列の訂
正を最初に行い、このC1訂正では1エラー訂正、2エ
ラー訂正及び3個以上のエラーの検出を行い、表1に示
すように訂正状況を示すポインタとして「エラー訂正な
し」、「1エラー訂正」、「2エラー訂正」、「3エラ
ー以上、訂正しない」を示すC1フラグ(C1F=F
0,F1,F2)をセットし、このC1フラグC1Fは
C2訂正においてエラーの位置を示す情報として用いら
れる。In error correction during MD reproduction, the C1 series is first corrected, and in this C1 correction, 1 error correction, 2 error corrections and 3 or more error detections are performed. A C1 flag (C1F = F) indicating "no error correction", "1 error correction", "2 error correction", and "3 or more errors not corrected" as a pointer
0, F1, F2) is set, and this C1 flag C1F is used as information indicating an error position in C2 correction.
【0004】[0004]
【表1】[Table 1]
【0005】C2訂正では上記C1訂正によりエラー位
置が判っている場合、すなわち、C2系列における28
ワードW0〜W27の内、どのワードがエラーであるか
が判っている場合にエラーを訂正する、いわゆるイレー
ジャ訂正を行う。ここで、C2系列の28ワードW0〜
W27はC1系列においてもいずれかのブロックに属し
ているので、イレージャ訂正ではC2系列の各ワードに
ついてそのワードが属しているC1系列のブロックのC
1フラグC1Fを読み出し、1エラー訂正、2エラー訂
正及び3個以上のエラーの検出を行う。続いて、C1フ
ラグC1Fの位置をエラーの位置とみなして4ワードま
でのイレージャ訂正を行い、訂正不能な場合には補間フ
ラグをセットする。In the C2 correction, when the error position is known by the C1 correction, that is, 28 in the C2 series.
When it is known which of the words W0 to W27 is in error, the error is corrected, so-called erasure correction is performed. Here, 28 words W0 of C2 series
Since W27 belongs to any block in the C1 series, in erasure correction, for each word of the C2 series, the C of the block of the C1 series to which the word belongs
The 1 flag C1F is read to perform 1 error correction, 2 error correction, and detection of 3 or more errors. Subsequently, the position of the C1 flag C1F is regarded as an error position, and erasure correction of up to 4 words is performed. If the position cannot be corrected, the interpolation flag is set.
【0006】また、記録時にはC1、C2の各系列につ
いて所定のフローに従ってパリティ計算が行われる。こ
の動作は、前述の再生時のエラー訂正とは異なるので、
記録部と再生部を有する記録・再生装置ではハード的に
もソフト的にも、記録系と再生系は別個に独立してい
た。Further, at the time of recording, parity calculation is performed for each series of C1 and C2 according to a predetermined flow. Since this operation is different from the error correction during playback described above,
In a recording / reproducing apparatus having a recording unit and a reproducing unit, the recording system and the reproducing system were separate and independent in terms of hardware and software.
【0007】[0007]
【発明が解決しようとする課題】かかる従来のMD用の
記録・再生用エラー訂正装置では記録部と再生部とにお
けるリードソロモン符号を用いたエラー訂正処理が各々
独立して行われているため、ハードウェア・ソフトウェ
アともに別々に用意されている。このため、部品点数が
多く、スペースを要するとともに部品コスト、組立コス
ト、ソフトウェア作成コストなどが高くなっていた。In such a conventional recording / reproducing error correction device for MD, the error correcting process using the Reed-Solomon code in the recording unit and the reproducing unit is independently performed. Both hardware and software are prepared separately. Therefore, the number of parts is large, space is required, and parts cost, assembly cost, software creation cost, etc. are high.
【0008】従って、本発明は例えばMDのようにC2
系列エラー訂正時に最大4個までのイレージャ訂正を行
う場合に、部品数を減少させ、省スペース化が可能であ
り、製造諸コストを低減させることのできる記録・再生
用エラー訂正装置を提供することを目的とする。Therefore, the present invention uses C2, such as MD.
To provide a recording / reproducing error correction device capable of reducing the number of parts, saving space, and reducing various manufacturing costs when performing erasure correction of up to 4 at the time of series error correction. With the goal.
【0009】[0009]
【課題を解決するための手段】本発明は上記目的を達成
するために、記録時におけるエラー訂正処理と再生時に
おけるエラー訂正処理の手順中、共通しているところは
同一のソフトウェアのプログラムを実行し、互いに異な
るところでは必要に応じてジャンプするようにし、記録
時は再生時におけるエラーの位置検出動作をパリティの
位置設定動作に置き代えてパリティ計算を行うととも
に、C2系列エラー訂正時に最大4個までのイレージャ
訂正を行うようにしている。In order to achieve the above-mentioned object, the present invention executes the same software program in the steps of the error correction processing during recording and the error correction processing during reproduction. However, when different from each other, a jump is made as needed, and at the time of recording, the error position detection operation at the time of reproduction is replaced with the parity position setting operation to perform parity calculation, and at the time of C2 series error correction, a maximum of four I am trying to correct the erasure up to.
【0010】すなわち本発明によれば、C1系列とC2
系列の2重のリードソロモン符号を採用した記録・再生
用エラー訂正装置であって、記録モードか再生モードか
を判別するモード判別手段と、前記モード判別手段によ
り再生モードと判別されたときはエラーの位置を検出し
てエラー訂正を行う手段と、前記モード判別手段により
記録モードと判別されたときは前記エラー訂正を行う手
段におけるエラーの位置検出動作をパリティの位置設定
動作に置き代えてパリティ計算を行う手段とを有し、前
記エラー訂正を行う手段が、前記C1系列の各ブロック
のエラーを訂正するとともに、ブロック毎にエラーフラ
グを記憶するC1系列エラー訂正手段と、前記C1系列
エラー訂正手段により記憶されているC2系列の各ワー
ドに対応するエラーフラグを読み出して前記C2系列の
各ブロックのエラーを訂正するC2系列エラー訂正手段
とを有する記録・再生用エラー訂正装置が提供される。That is, according to the present invention, the C1 series and the C2 series are
An error correction device for recording / reproduction, which employs a double Reed-Solomon code of a series, comprising: a mode discriminating means for discriminating between a recording mode and a reproducing mode; Means for detecting the position of the error and correcting the error, and when the mode determining means determines the recording mode, the error position detecting operation in the error correcting means is replaced with the parity position setting operation. And a means for performing error correction, wherein the means for performing error correction corrects an error in each block of the C1 series and stores an error flag for each block, and the C1 series error correction means. The error flag corresponding to each word of the C2 series stored by is read and the error of each block of the C2 series is read. Recording and reproducing error correction device is provided having a C2 sequence error correcting means for correcting.
【0011】[0011]
【発明の実施の形態】以下、図面を参照して本発明の記
録・再生用エラー訂正装置の実施の形態をその実施例に
よって説明する。図1は本発明に係る誤り訂正装置の一
実施例を示すブロック図、図2はリードソロモン符号の
C1系列を訂正するルーチンを説明するためのフローチ
ャート、図3はリードソロモン符号のC2系列を訂正す
るルーチンを説明するためのフローチャートである。BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of a recording / reproducing error correction apparatus of the present invention will be described below with reference to the accompanying drawings. 1 is a block diagram showing an embodiment of an error correction device according to the present invention, FIG. 2 is a flowchart for explaining a routine for correcting a C1 sequence of a Reed-Solomon code, and FIG. 3 is a flowchart for correcting a C2 sequence of a Reed-Solomon code. 6 is a flowchart for explaining a routine to be executed.
【0012】先ず、図1に示す回路を概略的に説明する
と、回路2〜20が入出力端子1から入力する信号の誤
りを訂正するように構成され、また、この誤り訂正回路
を構成する部分2〜20は、回路2〜8を含むシンドロ
ーム演算ブロック22と、回路9〜14を含むラッチブ
ロック23及び回路15〜20を含む訂正ブロック26
により大別される。また、このブロック22、23およ
び26はアドレスブロック24と、インストラクション
ブロック25により制御される。First, the circuit shown in FIG. 1 will be briefly described. The circuits 2 to 20 are configured to correct an error of a signal input from the input / output terminal 1, and a portion configuring the error correction circuit. 2 to 20 are syndrome calculation blocks 22 including circuits 2 to 8, a latch block 23 including circuits 9 to 14 and a correction block 26 including circuits 15 to 20.
It is roughly classified by. The blocks 22, 23 and 26 are controlled by an address block 24 and an instruction block 25.
【0013】エラーフラグ検出回路2は、再生時にC2
系列のイレージャ訂正のためのC1エラーフラグ評価を
行う回路であり、C2系列の各ワードに対応したC1エ
ラーフラグを読み出し、C1の2ワードエラーおよび3
ワード以上エラーの位置と数を検出する。また、この回
路2はエラーフラグの読み出しのためのRAMアドレス
を生成し、出力する。The error flag detection circuit 2 uses C2 during reproduction.
A circuit for evaluating a C1 error flag for erasure correction of a series, reading a C1 error flag corresponding to each word of the C2 series, and detecting a 2-word error of C1 and 3
Detects the position and number of errors of more than word. The circuit 2 also generates and outputs a RAM address for reading the error flag.
【0014】パリティロケーション設定回路3は、記録
時にイレージャ訂正を使ってパリティを計算するために
パリティの位置をC1、C2の各系列に合わせてロケー
ション選択回路4に出力する。ロケーション選択回路4
は、再生モード時にエラーフラグ位置検出回路2からの
エラーの位置を選択し、記録モード時にパリティロケー
ション設定回路3からのパリティの位置を選択し、レジ
スタ出力選択回路9、11に出力する。The parity location setting circuit 3 outputs the parity position to the location selection circuit 4 in accordance with each sequence of C1 and C2 in order to calculate the parity by using erasure correction during recording. Location selection circuit 4
Selects the error position from the error flag position detection circuit 2 in the reproduction mode, selects the parity position from the parity location setting circuit 3 in the recording mode, and outputs it to the register output selection circuits 9 and 11.
【0015】シンドロームチェック回路5は、入出力端
子1より入力されるRAM(図示省略)からのデータを
受け取って後述するようにC1系列では4個のシンドロ
ームS0〜S3を演算し、C2系列では4個のシンドロ
ームSq0〜Sq3を演算してシンドローム選択回路6
に出力する。シンドローム選択回路6はシンドローム選
択回路6からのシンドローム、レジスタ19または16
からの出力を選択し、指数に変換するためのテーブルの
α−i変換ROM7に出力する。The syndrome check circuit 5 receives data from a RAM (not shown) input from the input / output terminal 1 and calculates four syndromes S0 to S3 in the C1 series and 4 in the C2 series as described later. Syndrome selection circuit 6 by computing the syndromes Sq0 to Sq3
Output to The syndrome selection circuit 6 receives the syndrome, register 19 or 16 from the syndrome selection circuit 6.
To output to the α-i conversion ROM 7 of a table for converting into an exponent.
【0016】シンドローム格納レジスタ8には、α−i
変換ROM7によりα−i変換されたシンドロームが格
納され、このレジスタ8はまた、格納されたシンドロー
ムが全て「00」の場合にフラグ「1」を出力する。レ
ジスタ出力選択回路9、11は、シンドローム格納レジ
スタ8に格納されたシンドローム、ロケーション選択回
路4により選択されたデータ及びレジスタ14に格納さ
れたデータを選択して加算回路12に出力し、また、訂
正データシンボルアドレスラッチ回路10は、エラー訂
正を実行するときに演算により得られたエラー位置を記
憶し、RAMアドレス出力回路24に出力する。The syndrome storage register 8 stores α-i
The conversion ROM 7 stores the α-i converted syndrome, and this register 8 also outputs a flag “1” when all the stored syndromes are “00”. The register output selection circuits 9 and 11 select the syndrome stored in the syndrome storage register 8, the data selected by the location selection circuit 4 and the data stored in the register 14 and output them to the adder circuit 12, and also make corrections. The data symbol address latch circuit 10 stores the error position obtained by the operation when executing the error correction, and outputs it to the RAM address output circuit 24.
【0017】加算回路12はレジスタ出力選択回路9、
11により選択されたデータを加算するが、この加算は
αの指数部の加算であるので、インストラクションでは
乗算となる。レジスタ入出選択回路13は、加算回路1
2の出力またはROM7によりα−i変換されたシンド
ロームを選択して後段のレジスタ14に記憶させる。な
お、このレジスタ14は演算途中のデータを一時記憶し
てレジスタ出力選択回路9、11に出力するために用い
られる。The adder circuit 12 is a register output selection circuit 9,
The data selected by 11 is added. Since this addition is addition of the exponent part of α, the instruction is multiplication. The register input / output selection circuit 13 is the addition circuit 1
The output of 2 or the syndrome which is α-i converted by the ROM 7 is selected and stored in the register 14 in the subsequent stage. The register 14 is used to temporarily store the data during the calculation and output it to the register output selection circuits 9 and 11.
【0018】i−α変換回路15は加算回路12の出力
をi−α変換し、このデータは排他的論理和回路17に
より、レジスタ19に格納されたデータと加算されて再
度レジスタ19に格納される。レジスタ16は、2ワー
ド訂正時にZ2 +Z+X=0の解「Z」を求めるために
「X」の値を入力すると「Z」の値に変換して記憶して
出力する。訂正データ出力回路20は、i−α変換回路
15からのデータとデータバス上の誤りデータとから排
他的論理和回路18により得られる訂正データをデータ
バス上に出力し入出力端子1から出力する。The i-α conversion circuit 15 performs an i-α conversion on the output of the adder circuit 12, and this data is added to the data stored in the register 19 by the exclusive OR circuit 17 and stored again in the register 19. It Register 16, Z 2 + Z + X = 0 the solution was stored converted by entering a value of "X" in order to obtain the "Z" to the value "Z" is output when two words corrected. The correction data output circuit 20 outputs the correction data obtained by the exclusive OR circuit 18 from the data from the i-α conversion circuit 15 and the error data on the data bus to the data bus and outputs it from the input / output terminal 1. .
【0019】RAMアドレス出力回路24は、C1系列
のRAMアドレス(C1RAMAD)と、C1系列のエ
ラーフラグのRAMアドレス(C1FLGAD)と、C
2系列のRAMアドレス(C2RAMAD)と、C2系
列のエラーフラグのRAMアドレス(C2FLGAD)
と、各系列のエラーフラグデータ(ERFLGBUF)
を生成して出力する。The RAM address output circuit 24 includes a C1 series RAM address (C1RAMAD), a C1 series error flag RAM address (C1FLGAD), and a C1 series RAM address.
2 series RAM addresses (C2RAMAD) and C2 series error flag RAM addresses (C2FLGAD)
And error flag data of each series (ERFLGBUF)
Is generated and output.
【0020】次に、インストラクション回路25を詳細
に説明すると、先ず、クロック発生器(CLOCKGE
N)は各入力信号から、この装置内部で使用される各種
クロックを生成する。インストラクションカウンタ(I
NSTCNT)はC1、C2のシンドローム演算及びC
1エラーフラグ評価インストラクション用の10ビット
カウンタであり、このカウンタの出力がインストラクシ
ョンROM(INSTROM)25aのアドレスとな
る。このインストラクションの1ステップは、クロック
の立ち上がりから立ち上がりまでであり、クロックによ
りカウントアップする。また、このインストラクション
のジャンプは、下記の飛び先アドレスをこのカウンタに
ロードすることにより行われる。Next, the instruction circuit 25 will be described in detail. First, the clock generator (CLOCKGE).
N) generates various clocks used in this device from each input signal. Instruction counter (I
NSTCNT) is the C1 and C2 syndrome operation and C
This is a 10-bit counter for one error flag evaluation instruction, and the output of this counter is the address of the instruction ROM (INSTROM) 25a. One step of this instruction is from the rising edge of the clock to the rising edge, and is counted up by the clock. The jump of this instruction is performed by loading the following jump destination address into this counter.
【0021】インストラクションROM25aはインス
トラクションカウンタ(INSTCNT)から出力され
るカウント値をアドレスとして16ビットデータを出力
し、このデータがインストラクションの各ステップにお
ける処理動作を決定する。インストラクションセレクタ
(INSTSEL)はインストラクションROM25a
から出力される16ビットデータを処理の種類(シンド
ローム演算、エラーフラグ処理など)に応じて出力先を
振り分ける。この出力はクロックのタイミングで出力さ
れる。また、このセレクタはRAMアクセス時にインス
トラクションを止める信号を出力する。The instruction ROM 25a outputs 16-bit data with the count value output from the instruction counter (INSTCNT) as an address, and this data determines the processing operation in each step of the instruction. The instruction selector (INSTSEL) is an instruction ROM 25a.
Output destinations of the 16-bit data output from are distributed according to the type of processing (syndrome calculation, error flag processing, etc.). This output is output at the clock timing. Further, this selector outputs a signal for stopping the instruction when accessing the RAM.
【0022】ロードアドレス発生器(LOADAD)は
インストラクションカウンタ(INSTCNT)から出
力されるカウント値をラッチしたデータを読み取り、こ
のデータがジャンプを行うアドレスの場合に各入力条件
に従って飛び先アドレスを決定してインストラクション
カウンタ(INSTCNT)に出力する。The load address generator (LOADAD) reads the data in which the count value output from the instruction counter (INSTCNT) is latched, and when this data is an address for jumping, determines the jump destination address according to each input condition. Output to the instruction counter (INSTCNT).
【0023】ここで、シンドローム演算と訂正処理のイ
ンストラクションが同時に進行しているが、RAMには
同時にアクセスすることができないので、インストラク
ションコントローラ(INSTCONT)がアドレスを
監視し、RAMアクセスが衝突しないようにインストラ
クションカウンタ(INSTCNT)をコントロールし
ている。また、シンドローム演算と訂正処理を同時に行
うが、訂正処理されている系列は、同時に行われるシン
ドローム演算の1系列前のシンドロームであるので、フ
ラグコントローラ(FLGCONT)がシンドローム演
算に関する情報およびフラグを記憶し、この情報および
フラグが訂正処理に用いられる。Here, although the instruction of the syndrome calculation and the instruction of the correction process are proceeding at the same time, the RAM cannot be accessed at the same time. Therefore, the instruction controller (INSTCONT) monitors the address so that the RAM access does not collide. It controls the instruction counter (INSTCNT). In addition, although the syndrome calculation and the correction process are performed at the same time, since the sequence being corrected is the syndrome one sequence before the syndrome calculation performed at the same time, the flag controller (FLGCONT) stores the information and the flag related to the syndrome calculation. , This information and flags are used in the correction process.
【0024】次に、図2及び図3におけるエラー訂正処
理と消失(イレージャ)訂正処理について説明する。 1.エラー訂正 エラー訂正とは、受信したデータに対してシンドローム
演算(以下、シンドロームチェックと言う。)を行い、
その結果に基づいてデータの位置と値を訂正することで
ある。この場合、1個の誤りデータには2個の未知数
(位置と値)が存在し、また、C1、C2系列ともにパ
リティが4個であるので2ワードまでのエラー訂正が可
能である。ここで、MDにおけるC1系列のシンドロー
ムS0〜S3と、C2系列のシンドロームSq0〜Sq
3はそれぞれ次式(数1、数2)のように演算される。Next, the error correction process and the erasure correction process in FIGS. 2 and 3 will be described. 1. Error correction Error correction is performed on the received data by performing a syndrome operation (hereinafter referred to as syndrome check).
Correcting the position and value of the data based on the result. In this case, one error data has two unknowns (position and value), and since both C1 and C2 sequences have four parities, error correction of up to 2 words is possible. Here, in the MD, the syndromes S0 to S3 of the C1 series and the syndromes Sq0 to Sq of the C2 series.
3 is calculated as in the following equations (Equation 1 and Equation 2).
【0025】[0025]
【数1】(Equation 1)
【0026】[0026]
【数2】(Equation 2)
【0027】以下、1ワード及び2ワードエラー訂正に
ついて説明する。 1−1.1エラー訂正 エラーが1個の場合、シンドローチェックの結果(S0
〜S3)は、Eiをエラーの大きさとし、Xiをエラー
の位置とすると、次のようになる。 S0= Ei S1=Xi *Ei S2=Xi2 *Ei S3=Xi3 *EiThe one-word and two-word error correction will be described below. 1-1.1 Error correction When there is one error, the result of the thin check (S0
S3) is as follows, where Ei is the error magnitude and Xi is the error position. S0 = Ei S1 = Xi * Ei S2 = Xi 2 * Ei S3 = Xi 3 * Ei
【0028】上記S0〜S3を用いてEi及びXiを求
めると、 Xi=S1/S0 Ei=S0 誤った受信データの値をDi、正しいデータ値をWiと
するとWhen Ei and Xi are obtained by using S0 to S3, Xi = S1 / S0 Ei = S0 If an erroneous received data value is Di and a correct data value is Wi.
【0029】[0029]
【数3】(Equation 3)
【0030】訂正処理はメモリアドレスXiのデータD
iを読み出し、Eiを加算した結果をメモリアドレスX
iに書き込むことにより終了する。 1−2.2エラー訂正 エラーが2個の場合のシンドロームは、Ei、Ejをエ
ラーの大きさ、Xi、Xjをエラーの位置としてThe correction process is performed by the data D at the memory address Xi.
i is read and the result of adding Ei is the memory address X
It ends by writing to i. 1-2.2 Error correction The syndrome when there are two errors has Ei and Ej as error magnitudes and Xi and Xj as error positions.
【0031】[0031]
【数4】(Equation 4)
【0032】となる。この4個の連立方程式を解くこと
によって4個の未知数を求める方法もあるが、ここでは
位置の根の方程式を導入して処理ステップを減少してい
る。先ず、エラーの位置の和と積を定義する。## EQU1 ## There is also a method of obtaining four unknowns by solving these four simultaneous equations, but here, the equation of the root of the position is introduced to reduce the processing steps. First, the sum and product of error positions are defined.
【0033】[0033]
【数5】(Equation 5)
【0034】このXi、Xjは次の方程式F(Y)の根
となる。These Xi and Xj are the roots of the following equation F (Y).
【0035】[0035]
【数6】(Equation 6)
【0036】この式を展開すると、Expanding this equation,
【0037】[0037]
【数7】(Equation 7)
【0038】この形式ではテーブルの参照が不可能であ
るので、変数をY=C1*Zと変形すると、前記式はSince it is not possible to refer to the table in this format, if the variable is transformed into Y = C1 * Z, the above equation becomes
【0039】[0039]
【数8】(Equation 8)
【0040】C2/C12 とZとの対照ROM7により
Zを求めて Xi=C1*Z Xj=C2/Xi としてXi、Xjを求めることができる。また、C1、
C2はシンドロームS0〜S3の関数で与えられる。It is possible to obtain Zi by obtaining Z by the contrast ROM 7 of C2 / C1 2 and Z and Xi = C1 * Z Xj = C2 / Xi. Also, C1,
C2 is given as a function of the syndromes S0 to S3.
【0041】[0041]
【数9】[Equation 9]
【0042】実際の訂正作業ではC1、C2を求め、そ
の結果を対照ROM7に参照し、参照結果にC1を乗じ
てXiを求める。エラーの大きさEi、EjはIn the actual correction work, C1 and C2 are obtained, the result is referred to the control ROM 7, and the reference result is multiplied by C1 to obtain Xi. The error magnitudes Ei and Ej are
【0043】[0043]
【数10】[Equation 10]
【0044】以上の演算結果を基にメモリのデータを書
き直すことにより2ワードのエラー訂正が完了する。The error correction of 2 words is completed by rewriting the data in the memory based on the above calculation result.
【0045】2.イレージャ訂正 イレージャ訂正はエラーの位置が予め判っていて、エラ
ーの値だけを求める訂正方法であり、MDではC2系列
のパリティの数が4個であるので、最大4ワードのイレ
ージャ訂正を行うことができる。イレージャ訂正につい
て詳細に説明すると、今、4個のエラーを仮定し、これ
らのエラーの位置をX1、X2、X3、X4とし、以下
の計算を行う。2. Erasure correction Erasure correction is a correction method in which the position of an error is known in advance and only the error value is obtained. In MD, since the number of C2 sequence parities is 4, it is possible to perform erasure correction of a maximum of 4 words. it can. The erasure correction will be described in detail. Now, assuming four errors, the positions of these errors are X1, X2, X3, and X4, and the following calculation is performed.
【0046】[0046]
【数11】[Equation 11]
【0047】エラーの位置X1〜X4に対応するエラー
の値をY1、Y2、Y3、Y4とする。T3は以下の式
で定義する。The error values corresponding to the error positions X1 to X4 are Y1, Y2, Y3, and Y4. T3 is defined by the following formula.
【0048】[0048]
【数12】[Equation 12]
【0049】Y4は次式で与えられる。 Y4=T3/I4 これで、先ず4番目のデータが訂正できたことになる。
次いで、Y3を求めるためにシンドロームを修正し、シ
ンドロームからY4を消去する。Y4 is given by the following equation. Y4 = T3 / I4 With this, the fourth data can be corrected first.
The syndrome is then modified to find Y3 and Y4 is erased from the syndrome.
【0050】[0050]
【数13】[Equation 13]
【0051】この修正されたシンドロームよりT2、Y
3を求める。From this modified syndrome, T2, Y
Ask for 3.
【0052】[0052]
【数14】[Equation 14]
【0053】同様な処理をY2についても行う。Similar processing is performed for Y2.
【0054】[0054]
【数15】(Equation 15)
【0055】最後にY1の演算を行う。Finally, Y1 is calculated.
【0056】[0056]
【数16】[Equation 16]
【0057】以上により4ワードのイレージャ訂正が完
了する。次に、図2を参照してC1訂正処理について説
明する。C1訂正処理がスタートすると(ステップS1
01)、先ず、前述した式(数1)によりシンドローム
S0〜S3を演算し(ステップS102)、次いで、シ
ンドロームS0〜S3をα→i変換してレジスタ8に格
納する。With the above, erasure correction of 4 words is completed. Next, the C1 correction process will be described with reference to FIG. When the C1 correction process starts (step S1
01), first, the syndromes S0 to S3 are calculated by the above-mentioned formula (Equation 1) (step S102), and then the syndromes S0 to S3 are converted into α → i and stored in the register 8.
【0058】ステップS102の後に、現在の動作モー
ドが記録モードか否かを判断する(ステップ103)。
この判断は、対象となるMD記録・再生機の操作スイッ
チにより、記録モードとされているときに所定のフラグ
をたてておき、このフラグを見ることによりなされる。
記録モードでない場合は、再生モードとみなす。すなわ
ち、記録、再生以外の巻き戻しなどのモードについて
も、すべて再生モードとして取り扱う。以下ステップS
103で再生モードと判断された場合について先に説明
する。After step S102, it is determined whether the current operation mode is the recording mode (step 103).
This judgment is made by setting a predetermined flag when the recording mode is set by the operation switch of the target MD recording / reproducing apparatus and observing this flag.
If it is not in recording mode, it is regarded as playback mode. That is, all modes other than recording and reproduction such as rewinding are handled as reproduction modes. Step S below
The case in which the reproduction mode is determined in 103 will be described first.
【0059】再生モードの場合、シンドロームS0〜S
3が全て「0」か否かを判別し(ステップ104)、Y
ESの場合にはC1エラーフラグF0、F1、F2にと
もに「0」を書き込み(ステップS105)、次いで図
3に示すC2訂正処理へ進む(ステップS118)。他
方、ステップS104においてシンドロームS0〜S3
が全て「0」でない場合には、先ず、次式In the reproduction mode, the syndromes S0 to S
It is determined whether all 3 are "0" (step 104), and Y
In the case of ES, "0" is written in each of the C1 error flags F0, F1, and F2 (step S105), and then the C2 correction process shown in FIG. 3 is performed (step S118). On the other hand, in steps S104, the syndromes S0 to S3 are
If all are not "0", first,
【0060】[0060]
【数17】[Equation 17]
【0061】に基づいて1ワードエラーを検出するため
の変形シンドロームσ1〜σ3を演算し(ステップS1
06)、1ワードエラーか否かを判別する(ステップS
107)。1ワードエラーの場合には前述した1ワード
訂正を行って訂正データを書き込み(ステップS10
8)、次いで表1にも基づいてC1エラーフラグF0に
「1」を書き込む(ステップS109)。次いで、図3
に示すC2訂正処理へ進む(ステップS118)。Based on the above, the modified syndromes σ1 to σ3 for detecting the one-word error are calculated (step S1
06) It is determined whether or not there is a one-word error (step S
107). In the case of a 1-word error, the 1-word correction described above is performed and the corrected data is written (step S10).
8) Then, based on Table 1 as well, "1" is written in the C1 error flag F0 (step S109). Then, FIG.
The process proceeds to the C2 correction process shown in (step S118).
【0062】他方、ステップS107において1ワード
エラーでない場合には、2ワードエラーを検出するため
のX1、X2、φ1、φ2を数18で示す式に従って演
算し(ステップS110)、次いで、2ワードエラーか
否かを判別する(ステップS111)。On the other hand, if it is determined in step S107 that there is no one-word error, X1, X2, φ1, and φ2 for detecting a two-word error are calculated according to the equation (18) (step S110). It is determined whether or not (step S111).
【0063】[0063]
【数18】 (Equation 18)
【0064】そして、2ワードエラーの場合には前述し
たように2ワード訂正を行って訂正データを書き込み
(ステップS112)、次いで表1に示すようにC1エ
ラーフラグF1に「1」を書き込む(ステップS11
3)。次いで、図3に示すC2訂正処理へ進む(ステッ
プS118)。In the case of a 2-word error, 2-word correction is performed as described above and the corrected data is written (step S112), and then "1" is written in the C1 error flag F1 as shown in Table 1 (step S112). S11
3). Then, the process proceeds to the C2 correction process shown in FIG. 3 (step S118).
【0065】また、ステップS111において2ワード
エラーでない場合には表1に示すようにC1エラーフラ
グF2に「1」を書き込み(ステップS114)、次い
で図3に示すC2訂正処理へ進む(ステップS11
8)。If it is not a 2-word error in step S111, "1" is written in the C1 error flag F2 as shown in Table 1 (step S114), and then the process proceeds to the C2 correction process shown in FIG. 3 (step S11).
8).
【0066】ステップS103において記録モードと判
断された場合は、パリティの位置(S28〜S31)を
ロードし(ステップS115)、前演算を行って(ステ
ップS116)4イレージャ訂正を行う(ステップS1
17)。次いで図3に示すC2訂正処理へ進む(ステッ
プS118)。If the recording mode is determined in step S103, the parity position (S28 to S31) is loaded (step S115), pre-computation is performed (step S116), and 4 erasure correction is performed (step S1).
17). Then, the process proceeds to the C2 correction process shown in FIG. 3 (step S118).
【0067】次に、図3を参照してC2訂正処理につい
て説明する。このC2訂正処理は、1エラー訂正、2エ
ラー訂正及び3個以上のエラー検出を行う。また、C1
フラグの位置をエラーの位置とみなして最大4ワードま
でのイレージャ訂正を行う。Next, the C2 correction process will be described with reference to FIG. This C2 correction processing performs 1 error correction, 2 error correction, and 3 or more error detections. Also, C1
Erasure correction of up to 4 words is performed by regarding the flag position as an error position.
【0068】先ず、C1フラグを読み出す(ステップS
122)。ここで、F0、F1のC1フラグはC1訂正
においてそれぞれ1エラー訂正、2エラー訂正が行われ
たことを示し、F2のC1フラグは3個以上のエラーを
検出したことを示すが、C1訂正では3以上のエラーを
2エラーとして誤訂正する確率が高い。そこで、C2訂
正ではF1、F2フラグの数及び位置に着目して訂正を
行う。次いで前述したシンドロームSq0〜Sq3を算
出し(ステップS123)、シンドロームSq0〜Sq
3をα→i変換してレジスタ8に格納する。First, the C1 flag is read (step S
122). Here, the C1 flags of F0 and F1 indicate that 1 error correction and 2 error correction were performed in the C1 correction, and the C1 flag of F2 indicates that three or more errors were detected. There is a high probability of erroneously correcting 3 or more errors as 2 errors. Therefore, in the C2 correction, attention is paid to the numbers and positions of the F1 and F2 flags to perform the correction. Next, the syndromes Sq0 to Sq3 described above are calculated (step S123), and the syndromes Sq0 to Sq are calculated.
3 is α → i converted and stored in the register 8.
【0069】次いで、C1のときと同様に、記録モード
か否かを判断し(ステップS124)、再生モードのと
きにはステップS125以下に進む。ステップS125
以下ではシンドロームSq0〜Sq3が全て「0」か否
かを判別することによりエラー数が「0」か否かを判別
し(ステップS125)、「0」の場合にはC2エラー
フラグF0、F1、F2にともに「0」を書き込み(ス
テップS126)、C2訂正処理を終了する(ステップ
S127)。Then, similarly to the case of C1, it is judged whether or not the recording mode is set (step S124), and if it is the reproduction mode, the process proceeds to step S125 and thereafter. Step S125
In the following, it is determined whether or not the number of errors is "0" by determining whether or not all of the syndromes Sq0 to Sq3 are "0" (step S125), and if "0", the C2 error flags F0, F1, "0" is written in both F2 (step S126), and the C2 correction process is completed (step S127).
【0070】他方、ステップS125においてシンドロ
ームSq0〜Sq3が全て「0」でない場合には、1ワ
ードエラーを検出するための変形シンドロームσ1〜σ
3を演算し(ステップS128)、次いで、1ワードエ
ラーか否かを判別する(ステップS129)。そして、
1ワードエラーの場合には1ワード訂正を行って訂正デ
ータを書き込み(ステップS130)、次いでC2エラ
ーフラグF0、F1、F2にともに「0」を書き込み
(ステップS131)C2訂正処理を終了する(ステッ
プS127)。On the other hand, if the syndromes Sq0 to Sq3 are not all "0" in step S125, the modified syndromes σ1 to σ for detecting the one-word error.
3 is calculated (step S128), and then it is determined whether there is a one-word error (step S129). And
In the case of a 1-word error, 1-word correction is performed to write the corrected data (step S130), and then "0" is written to the C2 error flags F0, F1, and F2 (step S131), and the C2 correction process is completed (step S131). S127).
【0071】他方、ステップS129において1ワード
エラーでない場合には、2ワードエラーを検出するため
の変形シンドロームX1、X2、φ1、φ2を演算し
(ステップS132)、次いで、2ワードエラーか否か
を判別する(ステップ133)。そして、2ワードエラ
ーの場合には2ワード訂正を行って訂正データを書き込
み(ステップS134)、次いでC2エラーフラグF
0、F1、F2にともに「0」を書き込み(ステップS
135)C2訂正処理を終了する(ステップS12
7)。On the other hand, if the one-word error is not detected in step S129, the modified syndromes X1, X2, φ1 and φ2 for detecting the two-word error are calculated (step S132), and then it is determined whether or not there is a two-word error. It is determined (step 133). Then, in the case of a 2-word error, 2-word correction is performed to write the corrected data (step S134), and then the C2 error flag F
Write "0" to both 0, F1, and F2 (step S
135) The C2 correction process ends (step S12).
7).
【0072】また、ステップS133において2ワード
エラーでない場合には最大4のイレージャ訂正を行い
(ステップS136)、次いで訂正可能な場合にはC2
エラーフラグF0、F1、F2にともに「0」を書き込
み(ステップS137→S138)、C2訂正処理を終
了する(ステップS127)。また、ステップS137
において訂正可能でない場合にはC2エラーフラグF
0、F1、F2にそれぞれ「0」、「1」、「1」又は
全てに「1」を書き込み(ステップS139)、C2訂
正処理を終了する(ステップS127)。If it is not a 2-word error in step S133, a maximum of 4 erasure corrections are performed (step S136).
“0” is written in each of the error flags F0, F1, and F2 (step S137 → S138), and the C2 correction process is ended (step S127). In addition, step S137
C2 error flag F if not correctable in
“0”, “1”, “1” or “1” is written to 0, F1, and F2, respectively (step S139), and the C2 correction process ends (step S127).
【0073】ステップS124において記録モードのと
きは、パリティの位置をロードし(ステップS14
0)、前演算を行って(ステップS141)、4イレー
ジャ訂正を行いパリティ計算を行う(ステップS14
2)。In the recording mode in step S124, the parity position is loaded (step S14).
0), pre-calculation is performed (step S141), 4 erasure correction is performed, and parity calculation is performed (step S14).
2).
【0074】上記のように、記録モードのときに再生モ
ードと異なる処理を行うのは、記録時にはC1、C2系
列のパリティを計算しなくてはならないからである。パ
リティの位置はあらかじめ分かっているので、イレージ
ャ訂正を応用してエラー訂正の代りにパリティ計算を行
う。前述のように再生時においてはエラーの位置は分か
らないのでC1訂正によってエラーフラグを書き込み、
C2訂正時にそれを読み出すことでエラーの位置を検出
していたが、記録時はパリティの位置が分かっているの
で、C1系列においてもイレージャ訂正を使ってパリテ
ィ計算を行うことができるのである。As described above, the reason why the recording mode is different from the reproducing mode is that the parities of the C1 and C2 series must be calculated during recording. Since the position of parity is known in advance, erasure correction is applied and parity calculation is performed instead of error correction. As described above, since the position of the error is unknown during reproduction, the error flag is written by C1 correction,
Although the position of the error was detected by reading it during C2 correction, the position of the parity was known at the time of recording, so that parity calculation can be performed using erasure correction even in the C1 series.
【0075】[0075]
【発明の効果】以上説明したように本発明によれば、リ
ードソロモン符号を用いたエラー訂正装置において、記
録系と再生系の処理を一部兼用できるように、再生モー
ドにおけるC1フラグの読み出しステップに代えて、記
録モードではパリティの位置のロードを行い、C1、C
2ともに4イレージャ訂正を行うことにより、パリティ
計算を実現している。したがって記録系、再生系でハー
ドウェアと一部のプログラムを共有でき、同じソフトウ
ェアに記録のサブルーチンを持たせておき、モード切り
替えによってプログラムのジャンプアドレスを切り替え
ることで記録ルーチンを実行することができる。As described above, according to the present invention, in the error correction apparatus using the Reed-Solomon code, the step of reading the C1 flag in the reproduction mode so that the processing of both the recording system and the reproduction system can be shared. Alternatively, in the recording mode, the parity position is loaded, and C1, C
Parity calculation is realized by performing both 4 erasure correction. Therefore, the recording system and the reproducing system can share a part of the program with the hardware, and the recording routine can be executed by switching the jump address of the program by switching the mode by providing the same software with a recording subroutine.
【図面の簡単な説明】[Brief description of drawings]
【図1】本発明に係る記録・再生用エラー訂正装置の一
実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of a recording / reproducing error correction device according to the present invention.
【図2】リードソロモン符号のC1系列を訂正するルー
チンを説明するためのフローチャートである。FIG. 2 is a flowchart illustrating a routine for correcting a C1 sequence of Reed-Solomon code.
【図3】リードソロモン符号のC2系列を訂正するルー
チンを説明するためのフローチャートである。FIG. 3 is a flowchart for explaining a routine for correcting a C2 sequence of Reed-Solomon code.
【符号の説明】 2 フラグロケーション回路 22 シンドローム演算ブロック 23 ラッチブロック 24 アドレスブロック 25 インストラクションブロック 26 訂正ブロック[Explanation of Codes] 2 Flag Location Circuit 22 Syndrome Operation Block 23 Latch Block 24 Address Block 25 Instruction Block 26 Correction Block
【手続補正2】[Procedure amendment 2]
【補正対象書類名】図面[Document name to be amended] Drawing
【補正対象項目名】図1[Correction target item name] Fig. 1
【補正方法】変更[Correction method] Change
【補正内容】[Correction contents]
【図1】 FIG.
フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H03M 13/00 H03M 13/00 Continuation of the front page (51) Int.Cl. 6 Identification code Office reference number FI Technical display location H03M 13/00 H03M 13/00
Claims (1)
モン符号を採用した記録・再生用エラー訂正装置であっ
て、 記録モードか再生モードかを判別するモード判別手段
と、前記モード判別手段により再生モードと判別された
ときはエラーの位置を検出してエラー訂正を行う手段
と、 前記モード判別手段により記録モードと判別されたとき
は前記エラー訂正を行う手段におけるエラーの位置検出
動作をパリティの位置設定動作に置き代えてパリティ計
算を行う手段とを有し、前記エラー訂正を行う手段が、 前記C1系列の各ブロックのエラーを訂正するととも
に、ブロック毎にエラーフラグを記憶するC1系列エラ
ー訂正手段と、 前記C1系列エラー訂正手段により記憶されているC2
系列の各ワードに対応するエラーフラグを読み出して前
記C2系列の各ブロックのエラーを訂正するC2系列エ
ラー訂正手段とを有する記録・再生用エラー訂正装置。1. A recording / reproducing error correction device employing a double Reed-Solomon code of C1 series and C2 series, comprising: a mode determining means for determining whether a recording mode or a reproducing mode, and the mode determining means. When the reproduction mode is determined, an error position is detected by an error position detection means, and when the mode determination means determines the recording mode, the error position detection operation in the error correction means is performed by a parity check. C1 series error correction, which has a means for performing parity calculation in place of the position setting operation, wherein the means for performing error correction corrects an error in each block of the C1 series and stores an error flag for each block. Means and C2 stored by the C1 series error correction means
An error correction device for recording / reproduction having C2 series error correction means for reading out an error flag corresponding to each word of the series and correcting an error in each block of the C2 series.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP21286795A JPH0945014A (en) | 1995-07-28 | 1995-07-28 | Error correction apparatus for recording/reproducing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP21286795A JPH0945014A (en) | 1995-07-28 | 1995-07-28 | Error correction apparatus for recording/reproducing |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0945014A true JPH0945014A (en) | 1997-02-14 |
Family
ID=16629602
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP21286795A Pending JPH0945014A (en) | 1995-07-28 | 1995-07-28 | Error correction apparatus for recording/reproducing |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0945014A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8968615B2 (en) | 2004-09-02 | 2015-03-03 | Eastman Chemical Company | Low melting polyester polymers |
-
1995
- 1995-07-28 JP JP21286795A patent/JPH0945014A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8968615B2 (en) | 2004-09-02 | 2015-03-03 | Eastman Chemical Company | Low melting polyester polymers |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI421679B (en) | Error correction device and method thereof | |
US5020060A (en) | Error code correction device having a galois arithmetic unit | |
JP3260421B2 (en) | CD-ROM playback device | |
JPH0945014A (en) | Error correction apparatus for recording/reproducing | |
JP2605966B2 (en) | Error correction circuit | |
EP0629052A1 (en) | Method of and circuit for correcting errors | |
JPH0963208A (en) | Error correction device | |
KR940000900B1 (en) | Method of modifying error in cd-rom | |
US6690630B1 (en) | Compact disc decoder and method for correcting address errors in header data based on an input error flag | |
JPH07123013A (en) | Error correction device | |
US20040221141A1 (en) | Method for managing a microprocessor stack for saving contextual data | |
JPH0793913A (en) | Error corrector | |
JPH07296527A (en) | Recording/reproducing error correction device | |
JP3880144B2 (en) | Error correction method | |
KR100425083B1 (en) | Error correction code circuit for different kinds of optical disks | |
JP3271685B2 (en) | Patrol type storage device | |
JPH07106985A (en) | Error correcting device | |
JP2907114B2 (en) | Method and apparatus for correcting 1-bit error in EEPROM | |
JPH07160520A (en) | Error corrector | |
JP3257237B2 (en) | Error correction device | |
KR100936033B1 (en) | Efficient Detection / Correcting Method and Device for Address Information of Optical Recording / Reproducing Equipment | |
JPH07244927A (en) | Cd-rom decoder | |
JPS59110098A (en) | Error correcting device of data storage device | |
JPS59129995A (en) | Storage device | |
JPH0520215A (en) | Information processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20010925 |