JP3519684B2 - Data processing device using error correction code - Google Patents

Data processing device using error correction code

Info

Publication number
JP3519684B2
JP3519684B2 JP2000401172A JP2000401172A JP3519684B2 JP 3519684 B2 JP3519684 B2 JP 3519684B2 JP 2000401172 A JP2000401172 A JP 2000401172A JP 2000401172 A JP2000401172 A JP 2000401172A JP 3519684 B2 JP3519684 B2 JP 3519684B2
Authority
JP
Japan
Prior art keywords
error correction
data
correction code
bytes
error
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
JP2000401172A
Other languages
Japanese (ja)
Other versions
JP2002202919A (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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2000401172A priority Critical patent/JP3519684B2/en
Priority to US09/813,782 priority patent/US6983413B2/en
Priority to EP01107172A priority patent/EP1223578A3/en
Priority to TW090129583A priority patent/TW579499B/en
Priority to KR10-2001-0078530A priority patent/KR100482939B1/en
Priority to CNB011435593A priority patent/CN1199178C/en
Publication of JP2002202919A publication Critical patent/JP2002202919A/en
Application granted granted Critical
Publication of JP3519684B2 publication Critical patent/JP3519684B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Error Detection And Correction (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、映像データ、音声
データ、コンピュータデータなどを媒体(例えば、光デ
ィスク、磁気ディスクなど)上に記録する場合、或は媒
体に記録されたデータを再生する場合に有効な誤り訂正
符号生成処理方法を用いたデータ処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to recording video data, audio data, computer data, etc. on a medium (for example, an optical disk, a magnetic disk, etc.) or reproducing the data recorded on the medium. The present invention relates to a data processing device using an effective error correction code generation processing method.

【0002】またこの発明は、上記の映像データなどを
伝送処理する場合、或は受信処理する場合に有効な誤り
訂正符号生成処理方法を用いたデータ処理装置に関す
る。
The present invention also relates to a data processing apparatus using an error correction code generation processing method which is effective when transmitting or receiving the above-mentioned video data or the like.

【0003】さらにまたこの発明は、上記の誤り訂正符
号処理方法を採用した記録装置、再生装置、伝送装置、
受信装置に有効である。
Furthermore, the present invention relates to a recording device, a reproducing device, a transmitting device, which adopts the above-mentioned error correction code processing method,
Effective for receiving devices.

【0004】そして特にこの発明は、誤り訂正符号処理
を行う場合に、バッファメモリを用いて誤り訂正処理を
行う方法に特徴を備えている。
In particular, the present invention is characterized by a method of performing error correction processing using a buffer memory when performing error correction code processing.

【0005】[0005]

【従来の技術】映像データ、音声データ、コンピュータ
データなどを、例えば、光ディスクや磁気ディスク上に
記録する場合、データブロックに対して誤り訂正符号が
付加される。誤り訂正符号付加処理においては、データ
ブロックを一旦メモリに格納し、そのデータブロックの
行、列に対する誤り訂正符号が生成される。
2. Description of the Related Art When video data, audio data, computer data, etc. are recorded on, for example, an optical disk or a magnetic disk, an error correction code is added to a data block. In the error correction code addition processing, the data block is temporarily stored in the memory, and the error correction code for the row and column of the data block is generated.

【0006】行に付加される誤り訂正符号は、通常イン
ナーパリティーと称され、PIと略記され、列に付加さ
れる誤り訂正符号は、通常アウターパリティーと称さ
れ、POと略記される。
The error correction code added to a row is usually called inner parity and abbreviated as PI, and the error correction code added to a column is usually called outer parity and abbreviated as PO.

【0007】[0007]

【発明が解決しようとする課題】誤り訂正符号の付加処
理において、誤り訂正符号を生成する前に、データブロ
ックを一旦メモリに格納した際、メモリ上のデータが一
部破損(エラー発生)することがある。これは、データ
のパターンやメモリの実装状態が起因するものと見られ
る。また外部からの突然のノイズが影響している場合も
ある。
In the process of adding the error correction code, when the data block is temporarily stored in the memory before the error correction code is generated, the data on the memory is partially damaged (error occurs). There is. This is considered to be due to the data pattern and the mounting state of the memory. Also, sudden noise from the outside may be affecting.

【0008】このときに生じたエラーは、メモリエラー
と称される。このような場合は、メモリエラーが生じて
いるデータブロック(改変データブロックと称すること
にする)に対する誤り訂正符号が生成され、この誤り訂
正符号が改変データブロックに付加されて記録媒体に記
録される。
The error generated at this time is called a memory error. In such a case, an error correction code for a data block in which a memory error has occurred (hereinafter referred to as a modified data block) is generated, and this error correction code is added to the modified data block and recorded on a recording medium. .

【0009】記録媒体の再生時には、誤り訂正処理回路
において、上記誤り訂正符号が用いられ改変データブロ
ックに対するエラー訂正処理が実行される。つまり改変
データブロックが正しく再現されることになる。このこ
とは、上記メモリエラーを含むデータブロックを正確に
再生したことを意味する。しかしメモリエラーは、本来
のデータには不要なエラーである。したがって、上記の
メモリエラーが発生した場合、本来の正しいデータを復
元することは不可能である。
During reproduction of the recording medium, the error correction processing circuit executes error correction processing on the modified data block using the error correction code. That is, the modified data block is correctly reproduced. This means that the data block containing the memory error has been correctly reproduced. However, the memory error is an error that is unnecessary for the original data. Therefore, when the above memory error occurs, it is impossible to restore the original correct data.

【0010】そこで本発明は、メモリ上でデータエラー
(メモリエラー)が生じた場合であっても、本来の正し
いデータを復元することが可能であり、かつメモリの利
用方法を工夫しており、動作上の信頼性を得るデータ処
理装置を提供することを目的とする。
Therefore, in the present invention, even if a data error (memory error) occurs in the memory, it is possible to restore the original correct data and devise a method of using the memory. An object of the present invention is to provide a data processing device that obtains operational reliability.

【0011】[0011]

【課題を解決するための手段】この発明の誤り訂正符号
処理方法の基本的な考え方は、以下の通りである。
The basic idea of the error correction code processing method of the present invention is as follows.

【0012】即ち、この発明は、伝送又は記録系におい
て、行列構成のデータブロックの各行に対して誤り訂正
符号PIを生成して、この誤り訂正符号PIと前記デー
タブロックを共にメモリに格納する。次に、誤り訂正符
号PIが付加された情報データブロックが前記メモリか
ら読み出されたときに、その情報データブロックの行に
対して、前記誤り訂正符号PIを用いた誤り訂正処理を
行うことを特徴とする。
That is, according to the present invention, in a transmission or recording system, an error correction code PI is generated for each row of a data block having a matrix structure, and the error correction code PI and the data block are stored together in a memory. Next, when the information data block to which the error correction code PI is added is read from the memory, an error correction process using the error correction code PI is performed on the row of the information data block. Characterize.

【0013】そして誤り訂正符号PIを用いた誤り訂正
処理を行っているときに、訂正不可能なケースを検出し
た場合は、当該行または情報データブロックが格納され
ている前記メモリの領域を変更するようにし、メモリエ
ラーが発生するのを回避できるようにしている。またメ
モリエラーが生じた領域を学習し、以後はその領域を利
用しないようにしている。
When an uncorrectable case is detected during the error correction process using the error correction code PI, the area of the memory in which the row or the information data block is stored is changed. In this way, the memory error can be avoided. Also, the area where the memory error has occurred is learned, and the area is not used thereafter.

【0014】[0014]

【発明の実施の形態】以下、この発明の実施の形態を図
面を用いて説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings.

【0015】まず、図1〜図8を参照して、データ記憶
再生装置における誤り訂正符号付加回路、および誤り訂
正回路の構成をDVD(デジタル・バーサタイル・ディ
スク)の例を用いて説明する。
First, referring to FIGS. 1 to 8, the structure of an error correction code addition circuit and an error correction circuit in a data storage / reproduction device will be described using an example of a DVD (digital versatile disk).

【0016】はじめに、図1から図6を参照して、DV
Dの記録データの構造を説明する。
First, referring to FIGS. 1 to 6, the DV
The structure of the recording data of D will be described.

【0017】図1は、DVDにおける物理セクタを得る
ためのデータ処理順序を示す図である。セクタは信号処
理の段階に従って“データセクタ”、“記録セクタ”、
および“物理セクタ”と呼ばれる。データセクタには、
図2に示すように、メインデータが2048バイト、識
別データ(ID)が4バイト、ID誤り検出符号(IE
D)(IDのエラーを検出するための符号)が2バイ
ト、著作権管理情報(CPR MAI)が6バイト、お
よび誤り検出信号(EDC)(このデータセクタの誤り
を検出するための信号)が4バイト含まれる。このよう
な、ID,IDE,CPR_MAI、EDCを付加する
工程が図1のステップA1乃至A3である。ステップA
1で、メインデータにIDが付加される。ステップA2
でさらにIEDが付加される。さらにステップA3でC
PR_MAIが付加される。
FIG. 1 is a diagram showing a data processing sequence for obtaining a physical sector in a DVD. Sectors are “data sectors”, “recording sectors”, according to the stage of signal processing.
And called the "physical sector". In the data sector,
As shown in FIG. 2, the main data is 2048 bytes, the identification data (ID) is 4 bytes, and the ID error detection code (IE
D) (code for detecting ID error) is 2 bytes, copyright management information (CPR 6 bytes of MAI) and 4 bytes of an error detection signal (EDC) (a signal for detecting an error in this data sector). The process of adding ID, IDE, CPR_MAI, and EDC is steps A1 to A3 in FIG. Step A
At 1, an ID is added to the main data. Step A2
Then, IED is added. Furthermore, C in step A3
PR_MAI is added.

【0018】次に、メインデータに対するEDCが算出
され、このEDCがメインデータに付加される。次に、
スクランブルデータがデータセクタのメインデータ(2
048バイト)に加えられる(ステップA4,A5、A
6)。その後、スクランブル後の16個のデータセクタ
が集合され、この16個のデータセクタに対して、クロ
スリードソロモン誤り訂正符号が生成及び付加される
(ステップA6)。記録セクタはECCが付加された後
のセクタであり、誤り訂正符号PI、および誤り訂正符
号POが付加されたデータセクタである(ステップA
7)。物理セクタは、記録セクタの91バイトごとの先
頭に同期符号(SYNC符号)を加えた8/16変調後
のセクタである(ステップA8)。
Next, the EDC for the main data is calculated, and this EDC is added to the main data. next,
The scrambled data is the main data (2
048 bytes) (steps A4, A5, A
6). After that, 16 scrambled data sectors are collected, and a crossed Reed-Solomon error correction code is generated and added to these 16 data sectors (step A6). The recording sector is a sector after the ECC is added, and is a data sector to which the error correction code PI and the error correction code PO are added (step A).
7). The physical sector is a sector after 8/16 modulation in which a synchronization code (SYNC code) is added to the beginning of every 91 bytes of the recording sector (step A8).

【0019】続いて、DVDのデータセクタの構造につ
いてさらに図2を用いて説明する。
Next, the structure of the data sector of the DVD will be further described with reference to FIG.

【0020】データセクタは、2048バイトのメイン
データを含む2064バイトすなわち172バイト×1
2行から成る。即ち、データセクタには、メインデータ
が2048バイト、識別データ(ID)が4バイト、I
D誤り検出符号(IED)が2バイト、著作権管理情報
(CPR MAI)が6バイト、および誤り検出符号
(EDC)が4バイト含まれる。
The data sector is 2064 bytes including 2048 bytes of main data, that is, 172 bytes × 1.
It consists of two lines. That is, in the data sector, main data is 2048 bytes, identification data (ID) is 4 bytes, and I
D error detection code (IED) is 2 bytes, copyright management information (CPR 6 bytes of MAI) and 4 bytes of error detection code (EDC) are included.

【0021】図3には、ステップA4でメインデータ
(2048バイト)にスクランブルを施すスクランブル
データSkを発生する帰還形シフトレジスタを示してい
る。スクランブルデータSkを発生するための初期値と
しては、例えばデータセクタのIDの一部のデータが用
いられる。スクランブルデータSkは、データセクタの
メインデータ(2048バイト)Dkをスクランブルす
る。これによりスクランブル後のメインデータDk’
は、Dkに対してSk(k=0〜2047)が排他的論
理和処理された結果となる。
FIG. 3 shows a feedback shift register for generating scramble data Sk for scrambling main data (2048 bytes) in step A4. As the initial value for generating the scrambled data Sk, for example, a part of the data of the data sector ID is used. The scramble data Sk scrambles the main data (2048 bytes) Dk of the data sector. As a result, the main data Dk 'after scrambled
Is the result of exclusive OR processing of Sk (k = 0 to 2047) with respect to Dk.

【0022】図4を用いてECCブロックの構成につい
て説明する。
The structure of the ECC block will be described with reference to FIG.

【0023】データブロックは、172バイト×12行
のデータセクタが16個集まった172列×192行と
して形成される。この172列×192行に対してリー
ドソロモン誤り訂正符号が生成されて付加される。ま
ず、172列の各列に対して16バイトの誤り訂正符号
POが生成されて付加される。PO系列の各列は、19
2バイト+16バイト、すなわち208バイトで構成さ
れる。次に、誤り訂正符号POの行を含む208行すべ
ての行に対して、10バイトの誤り訂正符号PIが生成
され付加される。誤り訂正符号PI,POが付加された
182列×208行が一つのECCブロックである。な
お、PO,PIの生成順序を逆にしても全く同じ符号パ
ターンが得られる。
The data block is formed as 172 columns × 192 rows in which 16 data sectors of 172 bytes × 12 rows are gathered. A Reed-Solomon error correction code is generated and added to this 172 columns × 192 rows. First, a 16-byte error correction code PO is generated and added to each of the 172 columns. Each row of PO series has 19
It consists of 2 bytes + 16 bytes, that is, 208 bytes. Next, the error correction code PI of 10 bytes is generated and added to all the 208 rows including the row of the error correction code PO. One ECC block is 182 columns × 208 rows to which the error correction codes PI and PO are added. The same code pattern can be obtained by reversing the order of generation of PO and PI.

【0024】上記ECCブロックの縦方向の1列をPO
系列、横方向の1行をPI系列と呼ぶ。1つのPO系列
は192バイト+16バイト、即ち208バイトで構成
され、1系列内で最大8バイトの誤り訂正が可能であ
る。1つのPI系列は172バイト+10バイト、即ち
182バイトで構成され、1系列内で最大5バイトの誤
り訂正が可能である。
One column in the vertical direction of the ECC block is PO
A series and one row in the horizontal direction are called a PI series. One PO series is composed of 192 bytes + 16 bytes, that is, 208 bytes, and error correction of maximum 8 bytes is possible within one series. One PI sequence is composed of 172 bytes + 10 bytes, that is, 182 bytes, and error correction of up to 5 bytes is possible within one sequence.

【0025】次に、図5および図6を参照して記録セク
タの構造について説明する。
Next, the structure of the recording sector will be described with reference to FIGS.

【0026】208行×182列からなるECCブロッ
クに対して、誤り訂正符号POを構成している16行
が、1行ごとに分離される。そして、分離された各行
は、192行のデータ部の12行ごとの間に1行ずつ挿
入され、図6に示すように再配置された形となる。これ
をPOの行インタ−リーブと言う。したがって、行イン
ターリーブ後のECCブロックは、13行×182バイ
ト(=PIを伴うデータ(12行分)+PO(1行分))
の部分が、16個集まって構成される。
With respect to the ECC block having 208 rows × 182 columns, 16 rows forming the error correction code PO are separated for each row. Then, the separated lines are inserted one by one between every 12 lines of the data section of 192 lines, and are rearranged as shown in FIG. This is called PO line interleaving. Therefore, the ECC block after row interleaving is 13 rows x 182 bytes (= data with PI (12 rows) + PO (1 row))
The 16 parts are gathered together.

【0027】1つの記録セクタは、図5に示すように、
PIを加えたデータ(12行分)+PO(1行分)、即
ち(13行×182バイト)で構成されたセクタを指
し、行インターリーブ後のECCブロックは、図6に示
すように、16個の記録セクタで構成されることを意味
する。
One recording sector is, as shown in FIG.
A sector composed of data (12 lines) plus PO (1 line), that is, (13 lines x 182 bytes) added with PI, and 16 ECC blocks after row interleaving are shown in Fig. 6. It means that it is composed of recording sectors of.

【0028】物理セクタは、13行×182バイトの記
録セクタ(2366バイト)に対し、各行の91バイト
ごとの先頭に同期(SYNC)符号を加え、かつ、0行
から行ごとに順次変調したものである。91バイトのデ
ータの先頭にSYNCコードを加えたものをSYNCフ
レームと呼ぶ。よって、物理セクタは16組×2SYN
Cフレームから構成される。
The physical sector is a recording sector (2366 bytes) of 13 rows × 182 bytes, with a sync (SYNC) code added to the beginning of every 91 bytes of each row, and sequentially modulated row by row from 0. Is. The 91-byte data with the SYNC code added to the beginning is called a SYNC frame. Therefore, the physical sector is 16 sets x 2 SYN
It is composed of C frames.

【0029】続いて、図7および図8を参照して、デー
タ記録装置における誤り訂正符号付加回路について説明
する。
Next, the error correction code adding circuit in the data recording device will be described with reference to FIGS. 7 and 8.

【0030】図7において、ホストから送信されたユー
ザーデータは、バッファメモリ2に順次格納される。格
納されたユーザデータは、バッファメモリ201から取
り出される際、セクタ情報付加手段202、EDC生成
及び付加手段203、スクランブル手段204により処
理される。この処理は、2048バイトのメインデータ
ごとに処理され、1つのデータセクタに変換される。
In FIG. 7, the user data transmitted from the host is sequentially stored in the buffer memory 2. When the stored user data is taken out from the buffer memory 201, it is processed by the sector information addition means 202, EDC generation and addition means 203, and scramble means 204. This processing is performed for each 2048-byte main data and converted into one data sector.

【0031】セクタ情報付加手段202は、識別データ
(ID)4バイト、ID誤り検出符号(IED)2バイ
ト、著作権管理情報(CPR_MAI)6バイト、をメ
インデータに付加する。EDC生成及び付加手段203
は、計2060バイトのデータに対して誤り検出符号
(EDC)4バイトを生成して付加し、計2064バイ
トのデータセクタを生成する。スクランブル手段204
は、データセクタ中のメインデータをスクランブルす
る。
The sector information adding means 202 adds identification data (ID) of 4 bytes, ID error detection code (IED) of 2 bytes, and copyright management information (CPR_MAI) of 6 bytes to the main data. EDC generation and addition means 203
Generates and adds 4 bytes of error detection code (EDC) to a total of 2060 bytes of data to generate a total of 2064 bytes of data sector. Scramble means 204
Scrambles the main data in the data sector.

【0032】スクランブルされたデータセクタは、EC
Cメモリ205に順次格納される。このECCメモリ2
05内には、172バイト×12行のデータセクタが1
6個集まった172列×192行のデータブロックが形
成される。この172列×192行のデータブロックに
対して、PI生成及び付加手段206、PO生成及び付
加手段207により、誤り訂正符号が生成されて付加さ
れる。これにより、1つのECCブロックが形成され
る。
The scrambled data sector is EC
Sequentially stored in the C memory 205. This ECC memory 2
There are 1 data sector of 172 bytes x 12 rows in 05.
A data block of 172 columns × 192 rows is formed by collecting 6 pieces. An error correction code is generated and added to the data block of 172 columns × 192 rows by the PI generation / addition means 206 and the PO generation / addition means 207. As a result, one ECC block is formed.

【0033】前記ECCブロックは、先に説明したよう
に、行インターリーブされた上で、変調・同期付加手段
208に送信される。変調・同期付加手段208は、入
力された行インターリーブされたECCブロックに対
し、8ビットの入力データを16ビットの符号語に変換
する。つまり8/16変調を施す。次に、入力データの
91バイトごとの先頭にSYNC符号を付加して物理セ
クタを形成する。形成された物理セクタは、記録データ
として送信され媒体に記録される。
As described above, the ECC block is row-interleaved and then transmitted to the modulation / synchronization adding means 208. The modulation / synchronization adding means 208 converts 8-bit input data into a 16-bit code word for the input row-interleaved ECC block. That is, 8/16 modulation is applied. Next, the SYNC code is added to the beginning of every 91 bytes of the input data to form a physical sector. The formed physical sector is transmitted as recording data and recorded on the medium.

【0034】ここで、誤り訂正符号の効果について説明
する。
Here, the effect of the error correction code will be described.

【0035】誤り検出及び訂正手段を含むデータ再生系
は、記録データを再生する。再生処理では、再生された
物理セクタのデータに誤りが発生した場合、誤りを含ん
だECCブロックに対し誤り訂正符号を用いて誤り訂正
を行う。誤り検出及び訂正手段は、その訂正能力の範囲
内においては、本来の誤りを含まないECCブロックを
復元することができる。
A data reproducing system including error detecting and correcting means reproduces recorded data. In the reproducing process, when an error occurs in the reproduced physical sector data, error correction is performed on the ECC block including the error using an error correction code. The error detection and correction means can restore an ECC block that does not include an original error within the range of its correction capability.

【0036】次に図8を参照してデータ再生側における
誤り訂正符号生成処理方式を説明する。記録媒体から読
み込まれた再生データは、同期分離・復調手段221に
より、同期符号と分離された後、さらに8/16変調デ
ータに対する復調が行なわれる。これにより記録セクタ
が取り出される。ただし記録データを記録、及び再生す
る際に、ディスクの欠陥や雑音、ジッタやクロストーク
などが原因となり誤り(再生信号エラー)が発生するた
め、再生データには誤りが含まれる。
Next, an error correction code generation processing system on the data reproducing side will be described with reference to FIG. The reproduction data read from the recording medium is separated from the sync code by the sync separation / demodulation means 221 and then demodulated for the 8/16 modulated data. As a result, the recording sector is taken out. However, when recording and reproducing the recorded data, an error (reproduction signal error) occurs due to a defect, noise, jitter, crosstalk, etc. of the disc, and thus the reproduction data includes an error.

【0037】取り出された記録セクタは、ECCメモリ
205に順次格納され、16記録セクタで構成される1
82列×208行のECCブロックが構築される。この
182列×208行のECCブロックに対して、PO訂
正手段222、PI訂正手段223により誤り訂正が行
なわれ、再生信号のエラーが修復される。
The recording sectors taken out are sequentially stored in the ECC memory 205, and each recording sector is composed of 16 recording sectors.
An ECC block of 82 columns × 208 rows is constructed. Error correction is performed on the ECC block of 182 columns × 208 rows by the PO correction unit 222 and the PI correction unit 223, and the error of the reproduction signal is restored.

【0038】PI訂正手段223は、ECCブロックの
各行に対して誤りパターン検出値シンドロームを計算
し、誤りが検出された場合には、誤り訂正を行う。シン
ドロームは、本来のデータが誤り無く再生された場合に
は0となる。信号の記録や伝送の途中でデータの誤りが
生じたときには、シンドロームは、その誤りが生じた位
置を示す誤り位置と、誤りの状態を示す誤りパターンに
よって決定される値となる。
The PI correction means 223 calculates the error pattern detection value syndrome for each row of the ECC block and corrects the error when an error is detected. The syndrome becomes 0 when the original data is reproduced without error. When a data error occurs during signal recording or transmission, the syndrome has a value determined by an error position indicating the position where the error occurred and an error pattern indicating the error state.

【0039】PO訂正手段222は、PO系列の208
バイトのデータをメモリ205より取り出し、所定の演
算を施す。この演算により、シンドロームが0でない場
合は、そのPO系列の誤り訂正を行なう。この誤り訂正
処理では、16バイトの誤り訂正符号POにより、系列
内で最大8バイトの誤り訂正が可能である。被訂正デー
タに対して誤り訂正が行なわれ、誤り訂正符号生成時点
のデータが復元された場合には、シンドロームは0とな
る。上記操作がECCブロックの182列の全てについ
て行われる。
The PO correction means 222 is a PO series 208.
The byte data is taken out from the memory 205 and a predetermined calculation is performed. By this calculation, if the syndrome is not 0, the PO series is error-corrected. In this error correction processing, the error correction code PO of 16 bytes enables error correction of up to 8 bytes in the series. When error correction is performed on the data to be corrected and the data at the time of generating the error correction code is restored, the syndrome becomes 0. The above operation is performed for all 182 columns of the ECC block.

【0040】1つのPO系列に対して8バイト以上の誤
りが存在する場合、PO訂正手段222により誤りを訂
正することは不可能となる。しかし、この場合において
も、PI訂正手段223によりPI系列に対して最大5
バイトの誤り訂正が可能であるため、182列に対して
PO訂正を施した時点で1つのPI系列に含まれる誤り
が5バイト以内であれば、その誤りを訂正可能である。
When an error of 8 bytes or more exists for one PO series, it becomes impossible for the PO correction means 222 to correct the error. However, even in this case, the PI correction means 223 causes a maximum of 5 for the PI sequence.
Since byte error correction is possible, if the error contained in one PI sequence is within 5 bytes when the PO correction is performed on the 182 column, the error can be corrected.

【0041】さらに、PO訂正、PI訂正を繰り返すこ
とで、1回のPO訂正、PI訂正で訂正できなかった誤
りについても訂正できる可能性がある。全てのシンドロ
ームが0となった時点でECCブロックの誤り訂正は終
了する。
Further, by repeating the PO correction and the PI correction, there is a possibility that an error that could not be corrected by one PO correction and PI correction can be corrected. When all the syndromes become 0, the error correction of the ECC block ends.

【0042】誤り訂正されたECCブロックは、スクラ
ンブル解除手段224に送信される。スクランブル解除
手段224は、スクランブルされたデータセクタのメイ
ンデータ2048バイトにスクランブルデータを加算
(排他的論理和演算)し、メインデータのスクランブル
を解除した上でバッファメモリ201に格納する。
The error-corrected ECC block is transmitted to the descrambling means 224. The descrambler 224 adds the scrambled data to the 2048 bytes of the main data of the scrambled data sector (exclusive OR operation), descrambles the main data, and stores it in the buffer memory 201.

【0043】EDC誤り検出手段225は、データセク
タに含まれている誤り検出符号(EDC)4バイトを基
にデータセクタの誤り検出し、誤りが検出された場合は
そのセクタの再生をやり直す。バッファメモリ201に
格納されたデータセクタは、順次ホストに送信される。
The EDC error detection means 225 detects an error in the data sector based on the 4 bytes of the error detection code (EDC) included in the data sector, and if an error is detected, the sector is replayed. The data sectors stored in the buffer memory 201 are sequentially transmitted to the host.

【0044】ところで、バッファメモリ205、201
としては、コストが低く容量が大きなDRAM(Dynami
c-RAM)が使用される。しかし、DRAMの構造上の理
由からデータのパターンやメモリの実装状態によって
は、まれにメモリ上のデータが破損(メモリエラー)す
る場合がある。メモリ上のデータの一部が破損(メモリ
エラー)し、データブロックが改変された状態におい
て、誤り訂正符号PI,POを生成及び付加した場合、
その誤り訂正符号PI,POはメモリエラーによって改
変されたデータに対して正しい、誤り訂正符号となる。
この改変されたデータに対して生成された誤り訂正符号
をもつECCブロックをそのまま記録し、再生するなら
ば、再生後に誤り訂正処理を行ったとしても改変された
データが復元されてしまう。
By the way, the buffer memories 205 and 201
As for the DRAM (Dynami
c-RAM) is used. However, due to the structure of the DRAM, the data on the memory may be rarely damaged (memory error) depending on the data pattern and the mounting state of the memory. When some of the data on the memory is damaged (memory error) and the data block is modified and error correction codes PI and PO are generated and added,
The error correction codes PI and PO are correct error correction codes for the data modified by the memory error.
If the ECC block having the error correction code generated for this modified data is recorded and reproduced as it is, the modified data will be restored even if error correction processing is performed after the reproduction.

【0045】ここで、図9を参照して、172バイト×
192行のデータブロック36の一部に対し、メモリエ
ラー32が発生しデータブロックが改変された場合につ
いて説明する。
Here, referring to FIG. 9, 172 bytes ×
A case where a memory error 32 occurs in a part of the data block 36 of 192 rows and the data block is modified will be described.

【0046】まず、172列の各列に対して誤り訂正符
号POがPO生成及び付加手段9により、生成及び付加
されるが、列31の誤り訂正符号PO33(16バイ
ト)はメモリエラー32によって改変されたデータをも
とに生成される。
First, the error correction code PO is generated and added to each of the 172 columns by the PO generation and addition means 9, but the error correction code PO33 (16 bytes) of the column 31 is modified by the memory error 32. It is generated based on the created data.

【0047】次に、誤り訂正符号POを含む208行の
すべての行に対して、PI生成及び付加回路8により1
0バイトの誤り訂正符号PIが生成され付加される。行
34に対して生成される誤り訂正符号PI36(10バ
イト)は、メモリエラー32によって改変されたデータ
をもとに生成される。
Next, for all the 208 lines including the error correction code PO, the PI generation / addition circuit 8 sets 1
A 0-byte error correction code PI is generated and added. The error correction code PI 36 (10 bytes) generated for the row 34 is generated based on the data modified by the memory error 32.

【0048】更に、16行の誤り訂正符号POに対して
生成される誤り訂正符号PI37は、メモリエラー32
によって改変されたデータをもとに生成された誤り訂正
符号PO33を含むデータをもとに生成される。
Further, the error correction code PI 37 generated for the 16 lines of the error correction code PO is the memory error 32.
It is generated based on the data including the error correction code PO33 generated based on the data modified by.

【0049】この結果、メモリエラー32によって改変
されたデータブロックに対して正常な、誤り訂正符号が
付加される。このとき、エラー32が存在する208行
に対するPI系列、および182列に対するPO系列の
誤りパターン検出値シンドロームは全て0であり、EC
Cブロックとしては誤りがないものと見なされる。実際
には、メモリエラー32により、本来のデータは改変さ
れたものである。
As a result, a normal error correction code is added to the data block modified by the memory error 32. At this time, the error pattern detection value syndromes of the PI series for the 208 row in which the error 32 exists and the PO series for the 182 column are all 0, and EC
The C block is regarded as having no error. Actually, the original data is modified by the memory error 32.

【0050】ここで、上記改変されたデータブロックを
もとに生成されたECCブロックを記録媒体に記録し、
この記録媒体から再生した際の再生データについて考え
る。
Here, an ECC block generated based on the modified data block is recorded on a recording medium,
Consider the reproduction data when reproduced from this recording medium.

【0051】再生データは、誤り訂正符号を用いて誤り
訂正処理が施される。ここで、再生されたデータに発生
した誤りは、訂正能力の範囲内において訂正され、再生
データが復元される。しかし記録前に含まれていたメモ
リエラーを訂正することはできない。即ち、誤り訂正符
号PO33を用いてPO系列31の誤り訂正を行ったと
しても、メモリエラー32を含んだデータが再現された
うえで誤り訂正が正常に終了し、本来のユーザーデータ
は復元不可能となってしまう。
The reproduced data is subjected to error correction processing using an error correction code. Here, the error that has occurred in the reproduced data is corrected within the range of the correction capability, and the reproduced data is restored. However, the memory error contained before recording cannot be corrected. That is, even if the error correction code PO33 is used to correct the error in the PO series 31, the error correction is normally completed after the data including the memory error 32 is reproduced, and the original user data cannot be restored. Will be.

【0052】また再生側において、バッファメモリ上の
データにメモリエラーが発生した場合は、メモリエラー
を含んだデータをユーザデータとしてホストに送信して
しまう可能性がある。
On the reproducing side, when a memory error occurs in the data on the buffer memory, the data including the memory error may be transmitted to the host as user data.

【0053】(本発明が着目している点)上記したよう
に、メモリ上のデータが破損(エラー発生)した場合、
メモリエラーにより改変されたデータをもとに誤り訂正
符号を生成し、記録媒体に記録するため、再生時このデ
ータを読み出し誤り訂正処理を行ったとしても、エラー
により改変されたデータは復元されるが、本来の正しい
データを復元することは不可能となる。
(Points to which the present invention focuses) As described above, when the data on the memory is damaged (error occurs),
Since an error correction code is generated based on the data modified by the memory error and recorded on the recording medium, the data modified by the error is restored even if this data is read during reproduction and error correction processing is performed. However, it is impossible to restore the original correct data.

【0054】また、再生時に、誤り訂正後のメモリ上の
データが破損(エラー発生)した場合、誤ったデータを
ホストに送信してしまう可能性がある。
When data on the memory after error correction is damaged (error occurs) during reproduction, there is a possibility that erroneous data will be transmitted to the host.

【0055】メモリ上のデータ破損(エラー発生)を防
ぐためには、データを保存するメモリをデータ破損が発
生しない構造のメモリ、例えばS−RAM等で実現する
ことが必要となるが、この構成はコストの面で好ましく
ない。
In order to prevent data corruption (error occurrence) on the memory, it is necessary to realize the memory for storing the data with a memory having a structure that does not cause data corruption, for example, S-RAM. It is not preferable in terms of cost.

【0056】そこで、本発明では、メモリ上でエラーが
起こった場合においても、本来のデータを損失すること
なく誤り訂正符号生成処理が行えるようにした誤り訂正
符号生成処理方法とその装置、方法を用いた記録装置、
再生装置、伝送装置及び受信装置を提供することであ
る。
Therefore, according to the present invention, there is provided an error correction code generation processing method, an apparatus, and a method thereof, which enable error correction code generation processing without loss of original data even when an error occurs in a memory. Recording device used,
A reproducing device, a transmitting device, and a receiving device are provided.

【0057】(本発明の基本的概念)本発明における誤
り訂正符号生成処理の基本的な考え方は、複数行のデー
タに対して、各行に誤り訂正符号PIを生成して付加す
るPI生成及び付加手段と、前記PI生成及び付加手段
で得られた、PI誤り訂正符号が付加したデータを格納
するバッファメモリと、前記バッファメモリから前記デ
ータを読み出して、各行に付加された誤り訂正符号PI
を用いて各行の誤り訂正を行なうPI誤り訂正手段と、
このPI誤り訂正手段で誤り訂正が行なわれた結果によ
り、前記バッファメモリの不良領域を判定し、この領域
を別の領域に置き換えるメモリ制御手段とを備える。
(Basic Concept of the Present Invention) The basic idea of the error correction code generation processing in the present invention is to generate and add an error correction code PI to each row for data of a plurality of rows. Means, a buffer memory for storing the data added with the PI error correction code obtained by the PI generation and addition means, and the error correction code PI added to each row by reading the data from the buffer memory.
PI error correction means for performing error correction on each line using
Memory control means for determining a defective area of the buffer memory based on the result of error correction performed by the PI error correction means and replacing this area with another area is provided.

【0058】つまり、バッファメモリに格納前のデータ
に対して、誤り訂正符号PIを生成して付加し、この誤
り訂正符号PIが付加されたデータを前記メモリに格納
し、このバッファメモリに格納されたデータに対して誤
り訂正符号POを生成して付加し、このバッファメモリ
から読み出されたデータに対して、前記誤り訂正符号P
Iを用いた誤り訂正処理を施すものである。
That is, the error correction code PI is generated and added to the data before being stored in the buffer memory, the data to which the error correction code PI is added is stored in the memory, and stored in the buffer memory. The error correction code PO is generated and added to the read data, and the error correction code P is added to the data read from the buffer memory.
The error correction process using I is performed.

【0059】誤り訂正PIを用いた誤り訂正処理におい
て、繰り返しメモリエラーが生じている場合には、前記
バッファメモリの当該エラー発生領域を別の領域に置き
換えるという制御を行なうものである。
In the error correction process using the error correction PI, when a repeated memory error occurs, the error occurrence area of the buffer memory is replaced with another area.

【0060】繰り返してメモリエラーが生じていること
の判断基準としては、特定の位置(アドレス)で繰り返
してメモリエラーが発生しているかどうかを判断する。
また特定の領域で訂正不可能なメモリエラー数が繰り返
し発生しているかどうかを判断する。また、誤り訂正符
号POの存在位置において、繰り返してメモリエラーが
発生しているどうかを判断する方法がある。
As a criterion for the repeated occurrence of the memory error, it is repeatedly determined whether or not the memory error occurs at a specific position (address).
Also, it is determined whether or not the number of uncorrectable memory errors repeatedly occurs in a specific area. There is also a method of repeatedly determining whether or not a memory error has occurred at the position where the error correction code PO exists.

【0061】エラー発生領域を別の領域に置き換える場
合には、メモリエラーが発生した行を別の領域に置き換
える。つまり行単位の置き換え処理を行なう方法があ
る。またデータブロック単位で置き換え処理を行う方法
がある。
When replacing the error occurrence area with another area, the line in which the memory error has occurred is replaced with another area. In other words, there is a method of performing replacement processing in units of lines. There is also a method of performing replacement processing in data block units.

【0062】以下、本発明の特徴部を具体的な実施例に
ついて、図面を用いて詳細に説明する。
Specific examples of the characteristic portions of the present invention will be described below in detail with reference to the drawings.

【0063】まず、図10を参照して、本発明の第1の
実施形態であるデータ記録装置における誤り訂正符号付
加回路について説明する。
First, the error correction code addition circuit in the data recording apparatus according to the first embodiment of the present invention will be described with reference to FIG.

【0064】ホストコンピュータからのユーザデータ
は、セクタ情報付加手段により、2048バイトのメ
インデータごとに1つのデータセクタに変換される。
User data from the host computer is converted by the sector information adding means 5 into one data sector for each 2048-byte main data.

【0065】セクタ情報付加手段は、メインデータ
(2048バイト)に対して、識別データ(ID)4バ
イト、ID誤り検出符号(IED)2バイト、著作権管
理情報(CPR_MAI)6バイトを付加する。EDC
生成及び付加手段は、ID,IED,CPR_MAI
を含む計2060バイトのデータに対して誤り検出符号
(EDC)4バイトを生成して付加し、計2064バイ
トのデータセクタを生成する。スクランブル手段は、
スクランブルデータをメインデータ(2048バイト)
に加算(排他的論理和演算)し、メインデータをスクラ
ンブルする。
The sector information adding means 5 adds identification data (ID) 4 bytes, ID error detection code (IED) 2 bytes, and copyright management information (CPR_MAI) 6 bytes to the main data (2048 bytes). . EDC
The generation and addition means 6 uses ID, IED, CPR_MAI
The error detection code (EDC) 4 bytes is generated and added to the total data of 2060 bytes including, and a total data sector of 2064 bytes is generated. The scramble means 7 is
The scrambled data is the main data (2048 bytes)
Is added (exclusive OR operation) to scramble the main data.

【0066】PI生成及び付加手段8は、スクランブル
されたデータセクタ(又はデータブロック)(172バ
イト×12行=2064バイト)の各行(172バイ
ト)に対して、誤り訂正符号PI(10バイト)を生成
する。そして、生成された誤り訂正符号PIは、メモリ
制御手段20を介してバッファメモリ2に順次格納され
る。また対応する172バイト×12行のデータも順次
メモリ制御手段20を介してバッファメモリ2に格納さ
れる。これにより182バイト×12行のPIが付加し
たデータ(情報データブロック)が生成される。このよ
うなデータ処理が継続され、誤り訂正符号PIが付加さ
れた16個の情報データブロックがバッファメモリ2に
構築される。つまり、バッファメモリ2内では182バ
イト×12行のデータセクタ(PI付加データ)が16
個集合され、182バイト×192行の集合PI付加デ
ータ(または集合情報データブロック)が構築される。
The PI generation / addition means 8 applies the error correction code PI (10 bytes) to each row (172 bytes) of the scrambled data sector (or data block) (172 bytes × 12 rows = 2064 bytes). To generate. Then, the generated error correction code PI is sequentially stored in the buffer memory 2 via the memory control means 20. Also, the corresponding data of 172 bytes × 12 rows is sequentially stored in the buffer memory 2 via the memory control means 20. As a result, data (information data block) to which PI of 182 bytes × 12 rows is added is generated. Such data processing is continued, and 16 information data blocks to which the error correction code PI is added are constructed in the buffer memory 2. That is, in the buffer memory 2, the data sector (PI additional data) of 182 bytes × 12 rows is 16
Individually collected, a set PI additional data (or set information data block) of 182 bytes × 192 rows is constructed.

【0067】上記の処理で生成される誤り訂正符号PI
は、本来のデータを元データとする正常な誤り訂正符号
PIである。
Error correction code PI generated by the above processing
Is a normal error correction code PI whose original data is the original data.

【0068】ここでPO生成及び付加手段9は、バッフ
ァメモリ2に格納された集合情報データブロック(18
2バイト×192行)の各列(192バイト)に対し
て、誤り訂正符号PO(16バイト)を生成して付加す
る。この結果、バッファメモリ2に格納された集合情報
データブロックに対して、誤り訂正符号PI,POが付
加されたECCブロックが構築される。
Here, the PO generation / addition means 9 has the set information data block (18) stored in the buffer memory 2.
An error correction code PO (16 bytes) is generated and added to each column (192 bytes) of 2 bytes × 192 rows. As a result, the ECC block to which the error correction codes PI and PO are added is constructed with respect to the set information data block stored in the buffer memory 2.

【0069】バッファメモリ2は、ホストコンピュータ
から送信されたデータを記録媒体に記録するまで蓄積す
る機能を持つために、ECCブロックを複数個格納する
に十分な容量を持ち、例えばDRAMで構成されてい
る。DRAMでは、データのパターンやメモリの実装状
態によって、まれにメモリ上のデータが破損する場合が
ある。いわゆるメモリエラーが発生する場合がある。ま
たこのような状態で先の誤り訂正符号POが生成される
と、この誤り訂正符号POは、メモリエラーを含んだデ
ータを元データとする誤り訂正符号となってしまう。
Since the buffer memory 2 has a function of accumulating the data transmitted from the host computer until it is recorded on the recording medium, it has a sufficient capacity to store a plurality of ECC blocks and is composed of, for example, a DRAM. There is. In the DRAM, the data on the memory may be rarely damaged depending on the data pattern and the mounting state of the memory. A so-called memory error may occur. Further, when the previous error correction code PO is generated in such a state, this error correction code PO becomes an error correction code whose original data is data including a memory error.

【0070】バッファメモリ2内のECCブロックは、
1行(182バイト)ずつ読み出され、行メモリ3に格
納される。PI訂正手段10は、行メモリ3を用いてP
I訂正処理を行う。ここで先のメモリエラーは訂正さ
れ、本来のデータ(正常なECCブロック)に回復す
る。行メモリ3は、例えばSRAM(Static−RAM)
で構成され、PI系列の1行(182バイト)を格納で
きる容量をもつ。
The ECC block in the buffer memory 2 is
Each row (182 bytes) is read out and stored in the row memory 3. The PI correction means 10 uses the row memory 3 to set P
Perform I correction processing. Here, the previous memory error is corrected, and the original data (normal ECC block) is recovered. The row memory 3 is, for example, SRAM (Static-RAM)
And has a capacity capable of storing one row (182 bytes) of the PI series.

【0071】行メモリ3から出力された行データは、順
次変調・同期付加手段4に送られ、8/16変調と同期
符号が付加され、記録媒体への記録データとして出力さ
れる。
The row data output from the row memory 3 is sequentially sent to the modulation / synchronization adding means 4, where the 8/16 modulation and the synchronization code are added, and the data is output as the recording data on the recording medium.

【0072】図11は、バッファメモリ2から出力され
たECCブロックのデータの一部にエラー(上記したメ
モリエラー、あるいは外部ノイズなどにより生じたエラ
ー42)が生じている様子を示している。
FIG. 11 shows a state in which an error (the above-mentioned memory error or the error 42 caused by an external noise or the like) occurs in a part of the data of the ECC block output from the buffer memory 2.

【0073】本発明では、誤り訂正符号PIは、バッフ
ァメモリ2にデータが格納される前にPI生成及び付加
手段8でセクタメモリを用いて誤り訂正符号PI生成さ
れている。したがって、行45を含む192行全体にわ
たって、誤り訂正符号PIは、本来のデータを元とする
誤り訂正符号である。つまり、図11の誤り訂正符号P
Iは、エラー42の存在しないデータに対して作成され
た誤り訂正符号である。
In the present invention, the error correction code PI is generated and added before the data is stored in the buffer memory 2.
The means 8 uses the sector memory to generate the error correction code PI. Therefore, the error correction code PI is the error correction code based on the original data over the entire 192 rows including the row 45. That is, the error correction code P of FIG.
I is an error correction code created for data in which the error 42 does not exist.

【0074】一方、PO生成及び付加手段9は、バッフ
ァメモリ2と相俟って各列(192バイト)のデータを
元に誤り訂正符号POを生成する。したがって、列41
に関する誤り訂正符号PO44(16バイト)は、メモ
リエラー42を含むデータを元にして作成された誤り訂
正符号である。
On the other hand, the PO generation / addition means 9 cooperates with the buffer memory 2 to generate the error correction code PO based on the data of each column (192 bytes). Therefore, column 41
The error correction code PO44 (16 bytes) regarding the error correction code PO44 is an error correction code created based on the data including the memory error 42.

【0075】積符号においては、誤り訂正符号に対する
誤り訂正符号の部分48は、先に符号PIを生成及び付
加し、次に符号POを生成して付加しても、先に符号P
Oを生成付加し、次に符号PIを生成付加しても全く同
じ符号パターンが得られる性質がある。
In the product code, the part 48 of the error correction code corresponding to the error correction code generates the code PI first and then adds the code PI, and then generates and adds the code PO.
Even if O is generated and added and then the code PI is generated and added, the same code pattern can be obtained.

【0076】ここで、誤り訂正符号PIは、エラー発生
前の本来のデータに対して付加された正しい誤り訂正符
号である。よって、誤り訂正符号PIのブロックに対し
て生成及び付加された誤り訂正符号POは本来のデータ
を元とする正しい誤り訂正符号と言える。また、図11
に示した172列のうち列41を除く他の列(171)
に付加されている誤り訂正符号POも正しい誤り訂正符
号と言える。
The error correction code PI is a correct error correction code added to the original data before the error occurred. Therefore, it can be said that the error correction code PO generated and added to the block of the error correction code PI is a correct error correction code based on the original data. In addition, FIG.
Other columns than the column 41 out of the 172 columns shown in (171)
It can be said that the error correction code PO added to is also a correct error correction code.

【0077】このようなECCブロックがバッファメモ
リ2から行順に読み出され、行メモリ3でPI訂正処理
を施された場合、行45のエラー42は、容易にPI訂
正される。つまり正しいデータの行45が復元される。
また、エラー42を含んだデータに対して作成されたP
O系の各行に対してもPI訂正が施されることにより、
正しいPO系に訂正される。即ち、行46に対してPI
訂正が施されることにより、1バイト43が訂正され
る。同様に他の行(図の三角印の位置)に関しても訂正
が行なわれ、正しいPO系が生成されることになる。
When such an ECC block is read from the buffer memory 2 in row order and subjected to PI correction processing in the row memory 3, the error 42 in the row 45 is easily PI-corrected. That is, the row 45 of correct data is restored.
In addition, the P created for the data including the error 42
By performing PI correction on each line of O series,
Corrected to the correct PO system. That is, PI for line 46
By performing the correction, one byte 43 is corrected. Similarly, the correction is performed on the other rows (the positions indicated by the triangles in the figure) to generate the correct PO system.

【0078】上記の処理は、行メモリ3を用いて、EC
Cブロックの全ての行に対してPI訂正処理を行うもの
として説明した。しかし、これに限らず、処理時間短縮
のために図の三角印の位置の各行のみに対してPI訂正
処理を行ってもよい。なぜならば、図の三角印の位置の
PO系が正しい誤り訂正符号であれば、メモリエラー4
2は、後で容易に訂正できるからである。
The above processing is performed by using the row memory 3 and EC
It has been described that the PI correction process is performed on all the rows of the C block. However, the present invention is not limited to this, and the PI correction process may be performed only on each line at the position of the triangular mark in the figure in order to shorten the processing time. This is because if the PO system at the position indicated by the triangle in the figure is a correct error correction code, memory error 4
2 is because it can be easily corrected later.

【0079】上記の説明では、POブロックが集合デー
タブロック内に1行ずつ分散されていないECCブロッ
クを用いて説明した。しかし、実際のECCブロック
は、図1、図6で説明したように誤り訂正符号POが、
集合データブロックに1行ずつ分散されている。つまり
12行の集合データブロックに対して誤り訂正符号PO
の1行が存在するように誤り訂正符号POが分散されて
いる。
In the above description, an ECC block in which PO blocks are not distributed row by row in the aggregate data block has been used. However, in the actual ECC block, the error correction code PO is as described in FIGS.
It is distributed row by row in the aggregate data block. That is, the error correction code PO is applied to the aggregate data block of 12 rows.
The error correction code PO is dispersed so that there is one row of.

【0080】上述した図10には再生系統も示している
が、これについては後述することにする。
Although the reproduction system is also shown in FIG. 10 described above, this will be described later.

【0081】次にメモリ制御手段20の機能について説
明する。メモリ制御手段20は、PI生成及び付加手段
8、同期分離・復調手段11、PO生成及び付加手段
9、PO訂正手段9、PI訂正手段10、行メモリ3か
ら、データの格納又は取り出しの要求をうける。この要
求に応じて、メモリ制御手段20は、バッファメモリ2
へのデータの書き込み、またはバッファメモリ2からの
データ読出しを実行する。この場合、メモリ制御手段2
0は、バッファメモリ2の不良メモリ領域を使用しない
ように、データ格納位置を制御することができる。
Next, the function of the memory control means 20 will be described. The memory control means 20 requests the storage or retrieval of data from the PI generation / addition means 8, the sync separation / demodulation means 11, the PO generation / addition means 9, the PO correction means 9, the PI correction means 10, and the row memory 3. box office. In response to this request, the memory control means 20 causes the buffer memory 2
Data is written to or read from the buffer memory 2. In this case, the memory control means 2
0 can control the data storage position so that the defective memory area of the buffer memory 2 is not used.

【0082】いま、PI訂正手段10がメモリ制御手段
20のデータ取り出しを要求し、1行分のデータが行メ
モリ3に格納されたとする。次にPI訂正手段10が行
メモリ3のデータの誤り訂正処理を行ったとする。この
とき誤りが検出されと、PI訂正手段10は、誤りの位
置を示す誤り情報をメモリ制御手段20に送る。
It is assumed that the PI correction means 10 requests the memory control means 20 to take out data and one row of data is stored in the row memory 3. Next, it is assumed that the PI correction means 10 performs error correction processing on the data in the row memory 3. When an error is detected at this time, the PI correction means 10 sends error information indicating the position of the error to the memory control means 20.

【0083】メモリ制御手段20は、誤りが発生したデ
ータが格納されていたアドレスをエラーアドレスレジス
タ21に登録する。エラーアドレスレジスタ21には、
同じアドレスで誤りが発生した場合、その回数も登録さ
れる。ここでメモリ制御手段20は、同じアドレスにお
いて繰り返して例えば2回メモリエラーが発生した場合
には、そのアドレスを不良アドレスとして判断する。そ
して、メモリ制御手段20は、不良アドレス情報を不良
アドレスレジスタ22に登録する。不良アドレスレジス
タ22に不良アドレス情報を登録する判断基準は、繰り
返し3回、あるいはそれ以上としてもよい。
The memory control means 20 registers in the error address register 21 the address in which the error data was stored. In the error address register 21,
When an error occurs at the same address, the number of times is also registered. Here, if the memory error occurs repeatedly at the same address twice, for example, the memory control means 20 determines that address as a defective address. Then, the memory control means 20 registers the defective address information in the defective address register 22. The criterion for registering the defective address information in the defective address register 22 may be repeated three times or more.

【0084】不良アドレスレジスタ22に登録された不
良アドレス情報は、データ書き込みアドレス及び読出し
アドレス制御部23に参照され、不良アドレスは、使用
されないようになる。
The defective address information registered in the defective address register 22 is referred to by the data write address and read address control section 23, and the defective address is not used.

【0085】例えば、図12(A)のECCブロックの
データ列(B0,0)〜(B207,181)をアドレ
スAより格納する際、アドレス(A+J)が不良アドレ
スレジスタに登録されていたとする。すると図12
(B)に示すように(B0、J)は、アドレス(A+
J)を飛ばしたアドレス(A+J+1)に格納される。
この際、(B0,J)を予め用意された代替領域に格納
してもよい。また、不良メモリ領域を管理する際は、バ
イト単位だけでなく、行単位などで管理してもよい。
For example, it is assumed that the address (A + J) is registered in the defective address register when the data strings (B0,0) to (B207,181) of the ECC block in FIG. 12A are stored from the address A. Then Fig. 12
As shown in (B), (B0, J) is the address (A +
J) is skipped and stored at the address (A + J + 1).
At this time, may be stored in the alternate area in advance prepared (B0, J). Further, when managing the defective memory area, it may be managed not only on a byte basis but also on a line basis.

【0086】次に、PI訂正が失敗した場合(不可能で
あった場合)のデータの再処理について説明する。
Next, the reprocessing of data when the PI correction fails (when it is impossible) will be described.

【0087】1行に対してメモリエラーが6個以上発生
した場合にはPI訂正は不可能となる。また、1ECC
ブロックのデータに対してメモリエラーが6個以上発生
した場合には、PO(16行)に対するPI訂正が失敗
する場合がある。
If 6 or more memory errors occur in one line, PI correction cannot be performed. Also, 1 ECC
If 6 or more memory errors occur in the block data, the PI correction for PO (16 rows) may fail.

【0088】PI訂正処理が行われた際、誤りが訂正可
能な誤り数を超えたことが検出されると、使用するメモ
リ領域を変更して再処理が行われる。再処理の際は、ホ
ストコンピュータにデータの再送を要求する。そして再
び誤り訂正符号PIを付加されたデータが、メモリ制御
手段20を介してバッファメモリ20に格納される。こ
の際、使用するメモリ領域は、さきのエラーが発生され
たエラー領域を置き換えた領域、あるいはエラー領域と
は異なる空き領域である。
When the PI correction process is performed and it is detected that the number of errors exceeds the correctable number, the memory area to be used is changed and the process is performed again. At the time of reprocessing, the host computer is requested to retransmit the data. Then, the data to which the error correction code PI is added again is stored in the buffer memory 20 via the memory control means 20. At this time, the memory area used is an area in which the error area in which the error has occurred is replaced, or an empty area different from the error area.

【0089】誤り訂正符号POが格納されている領域の
各行において、誤りが訂正可能な誤り数を超えた場合に
は、以下の方法で再処理を行うことができる。
In each row of the area where the error correction code PO is stored, if the number of errors exceeds the correctable number of errors, reprocessing can be performed by the following method.

【0090】再処理を行う際には、バッファメモリ2に
おける第1の記憶領域に記憶された192行×182バ
イトの集合情報データブロック(誤り訂正符号PIを含
む)を、バッファメモリ2の第2の記憶領域に移動す
る。そして各行に対してPI訂正処理を行った後、バッ
ファメモリ2における第2の記憶領域を使用して再度P
O生成及び付加処理を行う。このようにした場合、ホス
トコンピュータにデータの再送を要求することなく装置
内部で再処理を行なうことができる。
When performing the reprocessing, the set information data block (including the error correction code PI) of 192 rows × 182 bytes stored in the first storage area of the buffer memory 2 is stored in the second storage area of the buffer memory 2. Move to the storage area of. Then, after performing PI correction processing for each row, P is again used by using the second storage area in the buffer memory 2.
O generation and addition processing is performed. In this case, the reprocessing can be performed inside the device without requesting the host computer to retransmit the data.

【0091】図13は、バッファメモリ2上のデータの
移動を説明するための図である。
FIG. 13 is a diagram for explaining the movement of data on the buffer memory 2.

【0092】アドレスA0から格納されたECCブロッ
ク(n)は、データ移動手段24によりアドレスA3を
先頭とする空き領域に移動される。この際、移動された
データは、アドレスA0の領域に含まれていたメモリエ
ラーを含むが、各行に対してPI訂正処理を行うことに
より、これらのメモリエラーは修復される。PI訂正処
理を実行した後のデータを使用し、PO生成及び付加処
理が実行される。この際に発生するメモリエラーが5個
以内であれば、生成される誤り訂正符号POは、PI訂
正処理により誤り訂正が可能である。
The ECC block (n) stored from the address A0 is moved by the data moving means 24 to a free area starting from the address A3. At this time, the moved data includes memory errors included in the area of address A0, but these memory errors are repaired by performing PI correction processing on each row. The PO generation and addition processing is executed using the data after the PI correction processing is executed. If the number of memory errors occurring at this time is 5 or less, the generated error correction code PO can be corrected by PI correction processing.

【0093】図10に戻り、データ再生時の動作につい
て説明する。
Returning to FIG. 10, the operation during data reproduction will be described.

【0094】記録媒体から光ヘッドにより読み取られた
再生データは、同期分離・復調手段11に導入される。
この同期分離・復調手段11では、再生データから同期
検出及び分離、8/16変調の復調が施される。これに
より記録セクタが得られる。ただし、記録媒体に対して
データを記録、および再生する際に、ディスクの傷やノ
イズなどが原因となりデータに誤りが発生するため、記
録セクタ内のデータには誤りが含まれる場合がある。
The reproduction data read by the optical head from the recording medium is introduced into the sync separation / demodulation means 11.
In the sync separation / demodulation means 11, sync detection and separation from the reproduced data and demodulation of 8/16 modulation are performed. As a result, the recording sector is obtained. However, when data is recorded on or reproduced from a recording medium, an error occurs in the data due to a scratch or noise on the disc, and thus the data in the recording sector may include the error.

【0095】取り出された記録セクタはメモリ手段20
を介して、バッファメモリ2に順次格納され、16記録
セクタが集合され、バッファメモリ2内で208行×1
82列のECCブロックが形成される。この208行×
182列のECCブロックに対して、PO訂正手段1
4、PI訂正手段10により、誤り訂正が行われる。
The recording sector taken out is stored in the memory means 20.
Are sequentially stored in the buffer memory 2 via 16 and 16 recording sectors are collected, and 208 rows × 1 in the buffer memory 2
82 columns of ECC blocks are formed. This 208 lines x
PO correction means 1 for the ECC block of 182 columns
4. The PI correction means 10 performs error correction.

【0096】誤り訂正されたECCブロックは、バッフ
ァメモリ2から1行(172バイト)ずつデータ伝送順
に読み出され、行メモリ3に格納される。ここでPI訂
正手段10は、行メモリ3を用いて各行の172バイト
に対してPI訂正を行なう。これにより、バッファメモ
リ2において、スクランブルされたデータセクタにメモ
リエラーが生じてもPI訂正により修復される。
The error-corrected ECC block is read from the buffer memory 2 row by row (172 bytes) in the order of data transmission and stored in the row memory 3. Here, the PI correction means 10 uses the row memory 3 to perform PI correction on 172 bytes of each row. As a result, even if a memory error occurs in the scrambled data sector in the buffer memory 2, it is repaired by PI correction.

【0097】次にスクランブル解除手段13は、スクラ
ンブルされたデータセクタのメインデータ(2048バ
イト)に対してスクランブルデータを換算(排他的論理
和演算)し、スクランブル前のデータセクタを生成す
る。さらにEDC誤り検出手段12は、データセクタに
含まれている誤り検出符号(EDC)4バイトを用い
て、データセクタの誤りを検出する。データセクタに誤
りがないことが検出されると、そのデータセクタはホス
トに送信される。
Next, the scramble canceling means 13 converts the scrambled data to the main data (2048 bytes) of the scrambled data sector (exclusive OR operation) to generate the data sector before scramble. Further, the EDC error detection means 12 detects an error in the data sector by using 4 bytes of the error detection code (EDC) included in the data sector. When it is detected that the data sector is error free, the data sector is sent to the host.

【0098】上記したように、本発明は、メモリ上でエ
ラーが起こった場合においても、本来のデータを損失す
ることなく誤り訂正符号生成処理が行える信号伝送/記
録及び再生装置に有効である。また、本発明は、バッフ
ァメモリの不良検査を簡略化し歩留まりを上げる代わり
に、メモリエラーの発生率を上げた場合でも、本来のデ
ータを損失することなく記録媒体への記録が可能であ
り、安価な信号伝送/記録及び再生装置に採用して有効
である。伝送受信系としては、デジタル通信分野の種々
の機器に適用可能である。携帯電話器のような無線器、
コンピュータ間の送受信端末、テレビジョン送受信機な
どである。また記録再生系の分野としては、本発明は、
DVD機器、CD機器、さらには通信機能を採用したメ
モリデバイス等に採用されて有効である。
As described above, the present invention is effective for a signal transmission / recording / reproducing apparatus capable of performing error correction code generation processing without loss of original data even when an error occurs in a memory. Further, according to the present invention, instead of simplifying the defect inspection of the buffer memory and increasing the yield, even if the occurrence rate of the memory error is increased, it is possible to perform the recording on the recording medium without losing the original data, which is inexpensive. It is effective when used in various signal transmission / recording and reproducing devices. The transmission / reception system can be applied to various devices in the digital communication field. Radios like mobile phones,
It is a transmission / reception terminal between computers, a television transmission / reception device, and the like. In the field of recording / reproducing system, the present invention is
It is effective when used in a DVD device, a CD device, and a memory device having a communication function.

【0099】[0099]

【発明の効果】以上説明したようにこの発明は、メモリ
上でデータエラー(メモリエラー)が生じた場合であっ
ても、本来の正しいデータを復元することが可能な誤り
訂正符号を用いたデータ処理方法、この方法を採用した
記録系或は再生系の装置、伝送系及び受信系の装置を提
供できる。
As described above, according to the present invention, even when a data error (memory error) occurs in the memory, the data using the error correction code that can restore the original correct data is used. It is possible to provide a processing method, a recording system or a reproducing system, a transmission system and a receiving system that employ this method.

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

【図1】DVDにおける物理セクタを得るまでのデータ
処理手順を示す説明図。
FIG. 1 is an explanatory diagram showing a data processing procedure for obtaining a physical sector in a DVD.

【図2】DVDにおけるデータセクタの構成を示す説明
図。
FIG. 2 is an explanatory diagram showing the structure of a data sector in a DVD.

【図3】スクランブルデータを発生させる帰還形シフト
レジスタの説明図。
FIG. 3 is an explanatory diagram of a feedback shift register that generates scrambled data.

【図4】ECCブロックを示す説明図。FIG. 4 is an explanatory diagram showing an ECC block.

【図5】記録セクタを示す説明図。FIG. 5 is an explanatory diagram showing recording sectors.

【図6】誤り訂正符号POがインターリーブされたEC
Cブロックを示す説明図。
FIG. 6 is an EC in which the error correction code PO is interleaved.
Explanatory drawing which shows C block.

【図7】従来の記録再生装置の記録系における誤り訂正
符号生成方式を説明するために示したブロック図。
FIG. 7 is a block diagram shown for explaining an error correction code generation method in a recording system of a conventional recording / reproducing apparatus.

【図8】従来の記録再生装置の再生系における誤り訂正
処理方式を説明するために示したブロック図。
FIG. 8 is a block diagram shown for explaining an error correction processing method in a reproducing system of a conventional recording / reproducing apparatus.

【図9】従来の記録再生装置において、DRAMメモリ
エラーが発生した場合の誤り訂正符号を説明するための
図。
FIG. 9 is a diagram for explaining an error correction code when a DRAM memory error occurs in the conventional recording / reproducing apparatus.

【図10】本発明に係る誤り訂正符号生成方法の一実施
例を説明するために示した記録系及び再生系のブロック
図。
FIG. 10 is a block diagram of a recording system and a reproducing system shown for explaining an embodiment of an error correction code generation method according to the present invention.

【図11】メモリエラーが生じた場合に、本発明に係る
誤り訂正符号生成方法による誤り訂正処理の例を説明す
るために示した説明図。
FIG. 11 is an explanatory diagram shown for explaining an example of error correction processing by the error correction code generation method according to the present invention when a memory error occurs.

【図12】メモリエラーが生じた場合に、本発明に係る
誤り訂正符号生成方法によりECCブロックを処理する
例を説明するために示した説明図。
FIG. 12 is an explanatory diagram shown for explaining an example of processing an ECC block by the error correction code generation method according to the present invention when a memory error occurs.

【図13】メモリエラーが生じた場合に、本発明に係る
誤り訂正符号生成方法によりECCブロックを処理する
他の例を説明するために示した説明図。
FIG. 13 is an explanatory diagram shown for explaining another example of processing an ECC block by the error correction code generation method according to the present invention when a memory error occurs.

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

1…セクタメモリ、2…バッファメモリ、3…行メモ
リ、4…変調・同期付加手段、5…セクタ情報付加手
段、6…EDC生成及び付加手段、7…スクランブル手
段、8…PI生成及び付加手段、9…PO生成及び付加
手段、10…PI訂正手段、11…同期分離・復調手
段、12…EDC誤り検出手段、13…スクランブル解
除手段、14…PO訂正手段。
1 ... Sector memory, 2 ... Buffer memory, 3 ... Row memory, 4 ... Modulation / synchronization addition means, 5 ... Sector information addition means, 6 ... EDC generation and addition means, 7 ... Scramble means, 8 ... PI generation and addition means , 9 ... PO generation / addition means, 10 ... PI correction means, 11 ... Sync separation / demodulation means, 12 ... EDC error detection means, 13 ... Scramble deactivation means, 14 ... PO correction means.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI G11B 20/18 532 G11B 20/18 532B 544 544A H03M 13/29 H03M 13/29 (56)参考文献 特開 平11−3290(JP,A) 特開 平4−205133(JP,A) 特開 平10−229344(JP,A) 特開2002−185335(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 12/16 G06F 11/10 G11B 20/18 H03M 13/29 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 7 Identification code FI G11B 20/18 532 G11B 20/18 532B 544 544A H03M 13/29 H03M 13/29 (56) Reference JP-A-11-3290 ( JP, A) JP 4-205133 (JP, A) JP 10-229344 (JP, A) JP 2002-185335 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB) Name) G06F 12/16 G06F 11/10 G11B 20/18 H03M 13/29

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】1行がNバイトで構成される複数行のデー
タに対して、各行に誤り訂正符号PI(Pバイト)を生
成して付加するPI生成及び付加手段と、 前記PI生成及び付加手段で得られた1行がN+Pバイ
トで構成されるPI誤り訂正符号が付加したデータを格
納するバッファメモリと、M行×(N+P)列の(M×(N+P))バイトで構成
される、誤り訂正符号PIが付加した情報データブロッ
クを、K個集合させ、(K×(M×(N+P)))バイ
トの集合情報データブロックとし、前記バッファメモリ
を用いて、前記集合情報データブロックの各列に誤り訂
正符号POのSバイトを生成及び付加した誤り訂正積符
号ブロック(ECCブロック)とするPO生成及び付加
手段と、 前記バッファメモリから前記データを読み出して伝送す
る前に、行メモリを利用しながら各行に付加された誤り
訂正符号PIを用いて各行の誤り訂正を行なうPI誤り
訂正手段と、 このPI誤り訂正手段で誤り訂正が行なわれたときに、
誤りが検出されたデータが格納されている前記バッファ
メモリのメモリ領域の情報を記憶し、繰り返し誤りが検
出されたデータが格納されている前記バッファメモリの
メモリ領域を、別のメモリ領域に置き換えるメモリ制御
手段とを具備したことを特徴とする誤り訂正符号を用い
たデータ処理装置。
1. PI generation and addition means for generating and adding an error correction code PI (P bytes) to each row for a plurality of rows of data, each row of which is N bytes, and the PI generation and addition. The buffer memory for storing the data added with the PI error correction code, in which one row obtained by the means is composed of N + P bytes, and (M × (N + P)) bytes of M rows × (N + P) columns
Information data block added with error correction code PI
(K × (M × (N + P)))
And a buffer memory
Error correction to each column of the set information data block using
Error correction product code generated and added with S byte of plus sign PO
Generation and addition as PO block (ECC block)
Means and PI error correction means for performing error correction on each row by using the error correction code PI added to each row while using the row memory before reading and transmitting the data from the buffer memory; When the error is corrected by the correction means,
A memory that stores information of a memory area of the buffer memory in which data in which an error is detected is stored and replaces the memory area of the buffer memory in which data in which an error is repeatedly detected is stored with another memory area A data processing device using an error correction code, comprising: a control means.
【請求項2】ホストコンピュータから送られてくる、1
行がNバイトで構成される複数行のデータに対して、各
行に誤り訂正符号PI(Pバイト)を生成して付加する
PI生成及び付加手段と、 前記PI生成及び付加手段で得られた1行がN+Pバイ
トで構成されるPI誤り訂正符号が付加したデータを格
納するバッファメモリと、 M行×(N+P)列の(M×(N+P))バイトで構成
される、誤り訂正符号PIが付加した情報データブロッ
クを、K個集合させ、(K×(M×(N+P)))バイ
トの集合情報データブロックとし、前記バッファメモリ
を用いて、前記集合情報データブロックの各列に誤り訂
正符号POのSバイトを生成及び付加した誤り訂正積符
号ブロック(ECCブロック)とするPO生成及び付加
手段と、 前記バッファメモリから前記データを読み出して伝送す
る前に、各行に付加された誤り訂正符号PIを用いて各
行の誤り訂正を行なうPI誤り訂正手段と、 このPI誤り訂正手段で誤り訂正が行なわれたときに、
誤り訂正可能な誤り数を超えたことを検出した場合、前
記誤り訂正符号PIが付加される前のデータを前記ホ
ストコンピュータに再度要求して、前記データに対し
て、前記PI生成及び付加手段を用いて上記の誤り訂正
符号PIが付加された再度のデータを生成し、この再度
データを前記バッファメモリに格納する場合には、前
前記データを格納した第1の記憶領域とは異なる第
2の記憶領域を指定する制御手段とを具備したことを特
徴とする誤り訂正符号を用いたデータ処理装置。
2. A 1 sent from a host computer
PI generation and addition means for generating and adding an error correction code PI (P bytes) to each row with respect to a plurality of rows of data each having N bytes, and 1 obtained by the PI generation and addition means A buffer memory that stores data to which a PI error correction code is added, in which rows are composed of N + P bytes, and an error correction code PI, which is composed of (M × (N + P)) bytes in M rows × (N + P) columns, is added. The collected information data blocks are aggregated into a set of (K × (M × (N + P))) bytes, and the error correction code PO is added to each column of the aggregate information data block by using the buffer memory. PO generation and addition means that is an error correction product code block (ECC block) in which S bytes are generated and added, and before reading and transmitting the data from the buffer memory, When the PI error correcting means for performing error correction of each line with the added error correction code PI, which in this PI error correcting means error correction was performed,
When it is detected that the number of errors that can be corrected is exceeded, new data before the addition of the error correction code PI is requested to the host computer again, and the PI is generated and added to the new data. It generates again the data which the error correction code PI is added using means, this again
To store the data in the buffer memory, error correction code, characterized by comprising a control means for specifying a different second storage area from the first storage area storing the last of the data Data processing device using.
【請求項3】1行がNバイトで構成される複数行のデー
タに対して、各行に誤り訂正符号PI(Pバイト)を生
成して付加するPI生成及び付加手段と、 前記PI生成及び付加手段で得られた1行がN+Pバイ
トで構成されるPI誤り訂正符号が付加したデータを格
納するバッファメモリと、 M行×(N+P)列の(M×(N+P))バイトで構成
される、誤り訂正符号PIが付加した情報データブロッ
クを、K個集合させ、(K×(M×(N+P)))バイ
トの集合情報データブロックとし、前記バッファメモリ
を用いて、前記集合情報データブロックの各列に誤り訂
正符号POのSバイトを生成及び付加した誤り訂正積符
号ブロック(ECCブロック)とするPO生成及び付加
手段と、 前記バッファメモリから前記データを読み出して伝送す
る前に、各行に付加された誤り訂正符号PIを用いて各
行の誤り訂正を行なうPI誤り訂正手段と、 このPI誤り訂正手段で、前記誤り訂正符号POが存在
する行の誤り訂正が行なわれたときに、誤り訂正可能な
誤り数を超えたことを検出した場合、前記バッファメモ
リの第1の領域に記憶された前記(K×(M×(N+
P)))バイトの集合情報データブロックを前記バッフ
ァメモリの第2の領域に移動し、 前記第2の領域における前記(K×(M×(N+
P)))バイトの集合情報データブロックに対して、前
記PO生成及び付加手段を介して各列に誤り訂正符号P
OのSバイトを生成及び付加する制御手段を具備した
ことを特徴とする誤り訂正符号を用いたデータ処理装
置。
3. PI generation and addition means for generating and adding an error correction code PI (P bytes) to each row with respect to a plurality of rows of data, each row of which is N bytes, and the PI generation and addition. One row obtained by the means is a buffer memory for storing the data added with the PI error correction code composed of N + P bytes, and (M × (N + P)) bytes of M rows × (N + P) columns. K pieces of information data blocks to which the error correction code PI is added are aggregated to form (K × (M × (N + P))) bytes of aggregate information data blocks, and each of the aggregate information data blocks is formed by using the buffer memory. PO generation and addition means for generating an error correction product code block (ECC block) in which S bytes of the error correction code PO are generated and added to the column, and the data is read from the buffer memory and transmitted. Before that, the PI error correction means for correcting the error in each row using the error correction code PI added to each row, and the error correction for the row in which the error correction code PO exists is performed by this PI error correction means. When it is detected that the number of errors that can be corrected is exceeded, the (K × (M × (N +) stored in the first area of the buffer memory is detected.
P))) bytes of aggregate information data block are moved to a second area of the buffer memory, and the (K × (M × (N +)) in the second area.
P))) For the byte aggregate information data block, an error correction code P is added to each column through the PO generation and addition means.
O data processing apparatus using an error correction code, characterized by comprising a control means for generating and adding an S byte.
【請求項4】誤り訂正符号PIが付加された(K×M×
(N+P)))バイトの集合情報データブロックと、
(S×(N+P))バイトの誤り訂正符号POブロック
とが伝送手段あるいは記録媒体から送られて来た場合、 (但し、前記集合情報データブロックは、M行×N列の
(M×N)バイトで構成されるデータブロックがK個集
合した(K×(M×N))バイトの集合データブロック
の各行に誤り訂正符号PIのPバイトが付加されたもの
であり、また前記誤り訂正符号POブロックは、前記集
合データブロック及び前記誤り訂正符号PIのブロック
の各列に誤り訂正符号POのSバイトが生成されたも
の)バッファメモリを用いて、前記誤り訂正符号PI及
びPOにより、前記集合データブロックのエラーデータ
バイトに対する第1の誤り訂正処理を行う第1の手段
と、 前記第1の誤り訂正処理を行った後のデータに対して、
さらに前記バッファメモリより小さな容量の小メモリを
用いて、再度前記誤り訂正符号PIにより、行に対する
第2の誤り訂正処理を行う第2の手段と、 この第2の手段により、PI系の誤り訂正が行なわれた
ときに、誤りが検出されたデータが格納されている前記
バッファメモリのメモリ領域の情報を記憶し、繰り返し
誤りが検出されたデータが格納されている前記バッフ
ァメモリのメモリ領域を、別のメモリ領域に置き換える
メモリ制御手段とを具備したことを特徴とする誤り訂正
符号を用いたデータ処理装置。
4. An error correction code PI is added (K × M ×
(N + P))) bytes of aggregate information data block,
When an error correction code PO block of (S × (N + P)) bytes is sent from the transmission means or the recording medium (however, the set information data block is M rows × N columns (M × N)). A P-byte of the error correction code PI is added to each row of a data block of a set of (K × (M × N)) bytes in which K data blocks each composed of bytes are aggregated. A block is one in which S bytes of the error correction code PO are generated in each column of the set data block and the block of the error correction code PI.) Using the buffer memory, the set data is generated by the error correction code PI and PO. First means for performing a first error correction process on an error data byte of a block; and for data after performing the first error correction process,
Further, using a small memory having a smaller capacity than the buffer memory, the second means for performing the second error correction processing on the row again by the error correction code PI, and the PI system error correction by the second means. When the error is detected, the information in the memory area of the buffer memory in which the data in which the error is detected is stored is stored and repeated.
And a memory control means for replacing the memory area of the buffer memory in which the data in which the error is detected is stored with another memory area.
【請求項5】誤り訂正積符号ブロック(ECCブロッ
ク)が伝送手段或いは記録媒体から送られて来た場合、 (但し、前記ECCブロックは、M行×N列の(M×
N)バイトで構成されるデータブロックの、各行に誤り
訂正符号PIのPバイトを生成及び付加し、M行×(N
+P)列の(M×(N+P))バイトで構成される、誤
り訂正符号PIが付加した情報データブロックをK個集
合させ、(K×(M×(N+P)))バイトの集合情報
データブロックとし、前記集合情報データブロックの各
列に誤り訂正符号POの(S=K×Q)バイトを生成及
び付加し、前記誤り訂正符号POをQバイト毎に、上記
誤り訂正符号PIが付加されたK個の各情報データブロ
ックに分散配置させることで、各情報データブロック
は、情報データと誤り訂正符号によって構成される、一
定値(M+Q)×(N+P)バイトになるように構成さ
れているECCブロック)、 バッファメモリを用いて前記誤り訂正符号PI及びPO
により、前記データブロックのエラーデータバイトの第
1の誤り訂正処理を行う第1の手段と、 前記第1の誤り訂正処理を行った後のデータに対して、
さらに前記バッファメモリより小さな容量の小メモリを
用いて、再度前記誤り訂正符号PIにより、行に対する
第2の誤り訂正処理を行う第2の手段と、 この第2の手段によりPI訂正が行なわれたときに、誤
り訂正可能な誤り数を超えたことを検出した場合、 前記誤り訂正符号PIが付加される前のデータを前記
ホストコンピュータに再度要求して、前記データに対
して、前記PI生成及び付加手段を用いて上記の誤り訂
正符号PIが付加された再度のデータを生成し、この
度のデータを前記バッファメモリに格納する場合には、
前回前記データを格納した第1の記憶領域とは異なる
第2の記憶領域を指定する制御手段とを具備したことを
特徴とする誤り訂正符号を用いたデータ処理装置。
5. When an error correction product code block (ECC block) is sent from a transmission means or a recording medium, (wherein the ECC block is M rows × N columns (M × X)).
A P-byte of the error correction code PI is generated and added to each row of a data block composed of N) bytes, and M rows x (N
A set information data block of (K × (M × (N + P))) bytes, which is a set of (M × (N + P)) bytes of + P columns and which has K information data blocks added with the error correction code PI. Then, (S = K × Q) bytes of the error correction code PO are generated and added to each column of the set information data block, and the error correction code PI is added every Q bytes of the error correction code PO. By distributively arranging each of the K information data blocks, each information data block is configured to have a constant value (M + Q) × (N + P) bytes, which is composed of information data and an error correction code. Block), using the buffer memory, the error correction codes PI and PO
According to the first means for performing the first error correction processing of the error data byte of the data block, and for the data after performing the first error correction processing,
Further, using a small memory having a capacity smaller than that of the buffer memory, the second means for performing the second error correction process on the row by the error correction code PI again, and the PI correction by the second means. Occasionally, when it is detected that has exceeded the error correctable error count, the new data before the error correction code PI is added to request again to the host computer, the relative new data, the PI using the generated and adding means generates again the data which the error correction code PI is added, this re
When storing the degree data in the buffer memory,
Data processing apparatus using an error correction code, characterized by comprising a control means for specifying a different second storage area from the first storage area storing the last of the data.
JP2000401172A 2000-12-12 2000-12-28 Data processing device using error correction code Expired - Fee Related JP3519684B2 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP2000401172A JP3519684B2 (en) 2000-12-28 2000-12-28 Data processing device using error correction code
US09/813,782 US6983413B2 (en) 2000-12-12 2001-03-22 Data processing method using error-correcting code and an apparatus using the same method
EP01107172A EP1223578A3 (en) 2000-12-12 2001-03-22 Data processing method using error-correcting code and an apparatus using the same method
TW090129583A TW579499B (en) 2000-12-12 2001-11-29 Data processing method using error-correcting code and an apparatus using the same method
KR10-2001-0078530A KR100482939B1 (en) 2000-12-12 2001-12-12 Data processing method using error-correcting code and an apparatus using the same method
CNB011435593A CN1199178C (en) 2000-12-12 2001-12-12 Data treating method adopting error-correcting code and equipment adopting said method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000401172A JP3519684B2 (en) 2000-12-28 2000-12-28 Data processing device using error correction code

Publications (2)

Publication Number Publication Date
JP2002202919A JP2002202919A (en) 2002-07-19
JP3519684B2 true JP3519684B2 (en) 2004-04-19

Family

ID=18865648

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000401172A Expired - Fee Related JP3519684B2 (en) 2000-12-12 2000-12-28 Data processing device using error correction code

Country Status (1)

Country Link
JP (1) JP3519684B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013054409A (en) * 2011-08-31 2013-03-21 Toshiba Corp Information storage device and information storage method

Also Published As

Publication number Publication date
JP2002202919A (en) 2002-07-19

Similar Documents

Publication Publication Date Title
US6983413B2 (en) Data processing method using error-correcting code and an apparatus using the same method
US6553533B2 (en) Method and apparatus for detecting and correcting errors and erasures in product ECC-coded data arrays for DVD and similar storage subsystems
US4881232A (en) Method and apparatus for error correction
US5974580A (en) Concurrent row/column syndrome generator for a product code
US6751771B2 (en) Method and apparatus for error processing in optical disk memories
US20090037793A1 (en) Method for error processing in optical disk memories
US6378103B1 (en) Apparatus and method for error correction in optical disk system
JP3239863B2 (en) Data decoding processing apparatus and method
US7047476B2 (en) Code error corrector
KR20060032098A (en) Digital signal processing method having repeating error correction time which is changeable
JP3519684B2 (en) Data processing device using error correction code
JP4140344B2 (en) Decoding device and computer program
JP3619151B2 (en) Data processing method using error correction code and apparatus using the method
JP2003338141A (en) Data reproduction controller
US20080109706A1 (en) Error correction method and apparatus for optical information storage medium recording/reproducing apparatus
US7213190B2 (en) Data processing apparatus and method
JPH07169205A (en) Method for reproducing data and device therefor
JP3342422B2 (en) Error correction method and device
JP3651332B2 (en) Data processing method and data processing apparatus
JP2004152337A (en) Recording and reproducing device, computer program and transmitting and receiving system
JP2003173633A (en) Optical disk device
JPS63298776A (en) Error correction processing system
JP2004087018A (en) Error correcting method and error correcting device
JPS63298777A (en) Correction system for error detection
JPH06103702A (en) Information recording and reproducing device

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040129

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

Free format text: PAYMENT UNTIL: 20080206

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090206

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100206

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100206

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110206

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120206

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120206

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130206

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20140206

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees