JPH10255404A - Data transfer method for storage device - Google Patents

Data transfer method for storage device

Info

Publication number
JPH10255404A
JPH10255404A JP9057860A JP5786097A JPH10255404A JP H10255404 A JPH10255404 A JP H10255404A JP 9057860 A JP9057860 A JP 9057860A JP 5786097 A JP5786097 A JP 5786097A JP H10255404 A JPH10255404 A JP H10255404A
Authority
JP
Japan
Prior art keywords
data
error
sector
reading
buffer
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.)
Withdrawn
Application number
JP9057860A
Other languages
Japanese (ja)
Inventor
Takehito Kayano
岳人 茅野
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP9057860A priority Critical patent/JPH10255404A/en
Publication of JPH10255404A publication Critical patent/JPH10255404A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PROBLEM TO BE SOLVED: To surely execute a transfer without reducing the transfer rate, by executing the error correction processes, in which error data are read from a buffer, errors are corrected and the data are again written in the buffer in the period which is other than the data reading period from a data region. SOLUTION: While data are being read, an ECC4 always conducts an error check. While Data 0, which is the data region of a first sector 0, are read, error checks are conducted against all the data of the Data 0. If an error is found in the Data 0, the ECC4 reports the fact that there is an error in the present sector against a BM5 in the region other than the non-data region between the reading of the Data 0 is completed and before start reading Data 1 of a next sector 1. If the BM5 receives the report, the BM5 stores and holds the leading address of a buffer 6 of the Data 0 stored in the buffer 6. This is to conduct a smooth correction in a next error data correction process. The corrected data are then transferred to a host 8 from the buffer 6 through a host I/F 7.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は記憶装置、特にディ
スク装置のエラーデータ訂正処理におけるデータ転送方
法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transfer method in error data correction processing of a storage device, particularly a disk device.

【0002】[0002]

【従来の技術】従来この種のディスク装置のエラーデー
タ訂正処理におけるデータ転送方法は、例えば特開昭6
2―132270号公報に代表されるようにデータ転送
の空き時間にエラーデータをバッファから読み出し、こ
のデータを訂正後データ転送の空き時間に同アドレスに
書き込むといった内容であった。
2. Description of the Related Art Conventionally, a data transfer method in error data correction processing of a disk device of this kind is disclosed in, for example,
As typified by Japanese Patent Application Laid-Open No. 2-132270, error data is read from a buffer during an idle time of data transfer, and this data is written to the same address during an idle time of data transfer after correction.

【0003】この従来の実施例のブロック図を図4に、
タイミング図を図5にそれぞれ示す。従来のディスク装
置は図4のようにメモリ管理プロセッサ60がメインコ
ントローラ10の制御部11、DMAコントローラ4
0、ディスクインターフェース20の制御部21に対
し、それぞれディスク30からデータを読み出すための
命令を出す。これを受けてディスクインターフェース2
0はディスク30からデータを読み出し、ドライブイン
ターフェース23を通じてセクタバッファ22へ一旦格
納する。この読み出したデータはすべてエラープロセッ
サ24でエラーチェックされている。この後データはD
MAコントローラ40を介してメインメモリ50へ格納
される。もしエラーが発見された場合、メインコントロ
ーラ10はメインメモリ50からエラーデータをセクタ
バッファ12へ読み込み、これをエラープロセッサ13
に基づいてデータを訂正し、再びメインメモリ50へ真
のデータを格納する。
FIG. 4 shows a block diagram of this conventional embodiment.
The timing chart is shown in FIG. In the conventional disk drive, as shown in FIG. 4, the memory management processor 60 is configured such that the control unit 11 of the main controller 10 and the DMA controller 4
0, and issues a command for reading data from the disk 30 to the control unit 21 of the disk interface 20. In response to this, Disk Interface 2
0 reads data from the disk 30 and temporarily stores it in the sector buffer 22 through the drive interface 23. All of the read data are checked for errors by the error processor 24. After this, the data is D
It is stored in the main memory 50 via the MA controller 40. If an error is found, the main controller 10 reads the error data from the main memory 50 into the sector buffer 12 and sends it to the error processor 13.
And correct data is stored in the main memory 50 again.

【0004】この詳細のタイミングを示したのが図5で
ある。これを見ると、ディスクインターフェースはディ
スクからデータR1、R2、R3、R4、R5と1デー
タづつ読み出している。この後ディスクインターフェー
スからDMAコントローラに対して図のようにデータW
0、W1、W2、W3,W4を1メモリサイクルで転送
し、そのままメインメモリにデータは格納される。ここ
でデータR1にエラーが発見されると、DMAコントロ
ーラはデータW1の転送後、メインメモリからエラーデ
ータr1を読み出し、メインコントローラへ送出する。
メインコントローラはエラーデータr1のエラー回復を
行い、回復が終了するとデータW3転送後にエラーデー
タr1を訂正した真のデータw1をDMAコントローラ
に送出し、DMAコントローラはこれをメインメモリに
格納する。
FIG. 5 shows the detailed timing. Looking at this, the disk interface reads data R1, R2, R3, R4, and R5 one by one from the disk. Thereafter, the data W is transmitted from the disk interface to the DMA controller as shown in FIG.
0, W1, W2, W3, and W4 are transferred in one memory cycle, and the data is stored in the main memory as it is. If an error is found in the data R1, the DMA controller reads the error data r1 from the main memory after transferring the data W1, and sends it to the main controller.
The main controller performs error recovery of the error data r1, and when the recovery is completed, after transferring the data W3, sends the true data w1 obtained by correcting the error data r1 to the DMA controller, and the DMA controller stores this in the main memory.

【0005】以上のように従来のディスク装置はデータ
転送の空き時間にエラーデータの読み出しと訂正データ
の書き込みを行っている。
As described above, the conventional disk device performs reading of error data and writing of correction data during idle time of data transfer.

【0006】[0006]

【発明が解決しようとする課題】しかし、従来の技術で
はディスクからデータ読み出し時にエラーが複数発見さ
れた場合、その都度エラーデータの読み出しや訂正デー
タの書き込みをデータ転送の空き時間に行うため、制御
が難しくまたデータバスの空き時間が少なくなり、この
結果データの転送レートが落ちるかもしくは転送不可能
という危険性まで出てくる。このように従来の手法は非
計画的にエラーデータ訂正処理におけるデータ転送を行
っているため、上で述べたように複数のエラー時の対処
が非常に困難になる恐れがある。
However, in the prior art, when a plurality of errors are found when reading data from a disk, the error data is read and the corrected data is written each time the data transfer is vacant. It is difficult to use the data bus, and the available time of the data bus is reduced. As a result, there is a danger that the data transfer rate is reduced or the data cannot be transferred. As described above, since the conventional method performs data transfer in error data correction processing unplannedly, there is a possibility that it is very difficult to cope with a plurality of errors as described above.

【0007】本発明は上記課題を解決するためのもので
あり、その目的は、ディスクのフォーマット形式がセク
タ単位で構成されていて、そのセクタはユーザーデータ
が書き込まれているデータ領域とそれ以外の領域に別れ
ているディスクと、そのディスクよりデータを読み出
し、読み出したデータにエラーがあるかチェックしなが
らデータをバッファへ一旦格納し、もしエラーがあれば
エラー算出後バッファからエラーデータを読み出し、こ
れを訂正した後再びバッファへ格納するディスク装置に
おいて、ディスク上のセクタ内のデータ領域読み出し時
以外の時間にエラーデータをバッファから読み出し、エ
ラー訂正後同アドレスへ書き込むといった計画的な手法
によりエラーデータ訂正処理を行うデータ転送方法を実
現することである。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problem, and an object of the present invention is to provide a disk format in which a sector is formed in units of sectors, and the sector is composed of a data area in which user data is written and other data areas. Read the data from the disk and the disk separated into the area, temporarily store the data in the buffer while checking whether there is an error in the read data, read the error data from the buffer after calculating the error if there is an error, and Error data is read out from the buffer at a time other than when reading the data area in a sector on the disk, and then written to the same address after error correction in a disk device that stores the data in the buffer again after correcting the error data. It is to realize a data transfer method for performing processing.

【0008】[0008]

【課題を解決するための手段】上記課題を解決するた
め、本発明の記憶装置のデータ転送方法は、 (1)記録媒体のフォーマット形式がセクタ単位で構成
され、該セクタはユーザーデータが書き込まれているデ
ータ領域と該データ領域以外の領域に別れている記録媒
体を使用する記憶装置のデータ転送方法において、エラ
ーデータをバッファから読み出してエラー訂正後再び前
記バッファへデータを書き込むエラーデータ訂正処理
を、前記データ領域からデータを読み出す時以外の時に
行うことを特徴とする。
In order to solve the above-mentioned problems, a data transfer method for a storage device according to the present invention comprises the following steps. (1) The format format of a recording medium is constituted by sectors, and user data is written in the sectors. In a data transfer method for a storage device using a recording medium separated into a data area and an area other than the data area, an error data correction process of reading error data from a buffer, correcting the error, and writing data to the buffer again is performed. , At a time other than when data is read from the data area.

【0009】(2)読み出し中のデータにエラーが検出
された時、このセクタのデータ領域の読み出し時と次セ
クタのデータ領域の読み出し時の間にエラー検出ビット
をアサートさせることを特徴とする。
(2) When an error is detected in the data being read, an error detection bit is asserted between the time of reading the data area of this sector and the time of reading the data area of the next sector.

【0010】(3)前記エラー検出ビットを受けて、エ
ラーデータが発見されたセクタのデータが格納された前
記バッファの先頭アドレスを記憶保持しておくことを特
徴とする。
(3) In response to the error detection bit, the head address of the buffer storing the data of the sector in which the error data is found is stored and held.

【0011】(4)エラー算出が終了した時、現在読み
出しているセクタのデータ領域の読み出し時と次セクタ
のデータ領域の読み出し時の間にエラー訂正ビットをア
サートさせることを特徴とする。
(4) When the error calculation is completed, the error correction bit is asserted between the time of reading the data area of the sector currently being read and the time of reading the data area of the next sector.

【0012】(5)前記エラー訂正ビットをアサートさ
せると同時にエラーデータの場所を表すオフセットアド
レスを送出することを特徴とする。
(5) The offset address indicating the location of the error data is transmitted at the same time as asserting the error correction bit.

【0013】(6)読み出し中のデータにエラーが検出
された時、このセクタのデータ領域の読み出し時と次セ
クタのデータ領域の読み出し時の間にエラー検出ビット
をアサートさせ、前記エラー検出ビットを受けて、エラ
ーデータが発見されたセクタのデータが格納された前記
バッファの先頭アドレスを記憶保持し、エラー算出が終
了した時、現在読み出しているセクタのデータ領域の読
み出し時と次セクタのデータ領域の読み出し時の間にエ
ラー訂正ビットをアサートさせ、前記エラー訂正ビット
をアサートさせると同時にエラーデータの場所を表すオ
フセットアドレスを送出し、前記エラー訂正ビットを受
けて、前記先頭アドレスと前記オフセットアドレスを加
算したバッファアドレスからエラーデータを読み出し、
データを訂正後に前記加算したバッファアドレスにデー
タを書き込むことを特徴とする。
(6) When an error is detected in the data being read, an error detection bit is asserted between the time of reading the data area of this sector and the time of reading the data area of the next sector. And the head address of the buffer in which the data of the sector in which the error data is found is stored, and when the error calculation is completed, the data area of the currently read sector is read and the data area of the next sector is read. During the time, the error correction bit is asserted, the error correction bit is asserted, and at the same time, the offset address indicating the location of the error data is transmitted, and the error correction bit is received, and the buffer address obtained by adding the start address and the offset address is received. Read error data from
After correcting the data, the data is written to the added buffer address.

【0014】(7)データ領域の読み出し時以外でエラ
ーデータ訂正処理が終了した後、さらに前セクタにエラ
ーデータが発見された場合、エラー訂正ビットをネゲー
トさせた後にエラー検出ビットをアサートさせることを
特徴とする。
(7) If error data is found in the previous sector after the error data correction processing is completed except at the time of reading the data area, the error detection bit is asserted after the error correction bit is negated. Features.

【0015】[0015]

【作用】本発明の上記構成によれば、ディスク上のデー
タ領域読み出し時以外にバッファからエラーデータの読
み出し及びバッファへ訂正データの書き込み動作を行う
ことにより、計画的にエラーデータ訂正処理ができ、こ
れによって転送レートを落とすことなくデータ転送が可
能となる。
According to the above configuration of the present invention, error data can be systematically corrected by reading error data from the buffer and writing correction data to the buffer other than when reading the data area on the disk. This enables data transfer without lowering the transfer rate.

【0016】[0016]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

(実施例)記憶装置としてディスク装置を例にとって説
明する。
(Embodiment) A disk device will be described as an example of a storage device.

【0017】図1は本発明の実施例の全体構成を示すブ
ロック図、図2は発明の実施例のエラーデータ読み出し
及び訂正データ書き込み時のタイミングを示すタイミン
グ図、図3は図2のさらに詳細なタイミングを示すタイ
ミング図である。
FIG. 1 is a block diagram showing the overall configuration of an embodiment of the present invention, FIG. 2 is a timing chart showing timings for reading error data and writing corrected data according to the embodiment of the present invention, and FIG. 3 is a more detailed view of FIG. FIG. 4 is a timing chart showing various timings.

【0018】まず、通常のディスク装置のリード(読み
出し)時のデータの流れを説明する。
First, the flow of data at the time of reading (reading) a normal disk device will be described.

【0019】図1のように、まずホスト8よりリード
(読み出し)コマンドをホストI/F7を通じてCPU
1が受け取る。これを受けてCPU1は各ブロックに対
して読み出し命令を送出する。ディスクI/F3はディ
スク2よりディスク2上に書かれているデータを読み出
す。ディスクI/F3では、ディスク2上のセクタのデ
ータ領域とそれ以外の領域をそれぞれ分離して検出す
る。ディスク2はフォーマットはまちまちであるが、通
常セクタ単位で構成されており、このセクタの中身は図
2のようにユーザーデータが書かれているデータ領域と
それ以外の領域とに別れている。抽出したデータはEC
C4に送出され、ここでデータにエラーがあるかどうか
チェックを行いながら、BM(バッファマネージャ)5
を経由してバッファ6へ格納される。ECC4でデータ
にエラーが検出されるとエラー算出を行い、BM5がバ
ッファ6からエラーデータを取り出してこれを訂正後再
びバッファ6へ格納する。訂正されたデータはこの後バ
ッファ6からホストI/F7を経由してホスト8へ転送
される。
As shown in FIG. 1, a read command is first sent from the host 8 through the host I / F 7 to the CPU.
1 receives. In response to this, the CPU 1 sends a read command to each block. The disk I / F 3 reads data written on the disk 2 from the disk 2. In the disk I / F 3, the data area of the sector on the disk 2 and the other area are separately detected. Although the format of the disk 2 varies, the disk 2 is usually configured in units of sectors, and the contents of these sectors are divided into a data area in which user data is written and other areas as shown in FIG. The extracted data is EC
The data is sent to C4, where it is checked whether there is an error in the data.
Is stored in the buffer 6 via When an error is detected in the data by the ECC 4, the error is calculated, and the BM 5 takes out the error data from the buffer 6, corrects the error data, and stores it in the buffer 6 again. The corrected data is then transferred from the buffer 6 to the host 8 via the host I / F 7.

【0020】以上述べたようにディスク装置では読み出
しの動作をする。
As described above, the disk device performs a reading operation.

【0021】次に本発明の詳細を説明する。 図1のB
M5を中心にしてリードデータの流れを説明すると、ま
ずECC4よりBM5に対してデータを送出したい時、
データリクエスト(Data Request)をアサ
ートし、データ(Data)を送出する。BM5はこれ
を受け取ると他のブロックからリクエストがなければも
しくは他のブロックからリクエストがあってもECC4
からのリクエストの方が優先順位が高ければ、ECC4
に対してデータアクノリッジ(Data Acknow
ledge)をアサートするとともに、データを内部に
取り込む。通常このデータは1バイト(8ビット)単位
もしくは1ワード(16ビット)単位である。BM5は
この後、バッファ6に対してバッファアドレス(Buf
ferAddress)を指定して、書き込み信号(B
uffer Control)をアサートしながら先ほ
どのデータ(Buffer Data)をバッファ6へ
格納する。通常は1バイトもしくは1ワード単位で1回
づつ処理を行う訳であるが、例えばDRAMではページ
モードが使えるものもあり、これを使用するとデータを
連続的に処理できる。
Next, the details of the present invention will be described. FIG. 1B
Explaining the flow of read data focusing on M5, first, when data is to be transmitted from ECC4 to BM5,
Asserts a data request (Data Request) and sends out data (Data). Upon receiving this, the BM 5 receives the ECC 4 if there is no request from another block or even if there is a request from another block.
If the request from is higher priority, ECC4
Data Acknowledge (Data Acknowledgment)
edge) is asserted, and data is fetched internally. Usually, this data is in units of 1 byte (8 bits) or 1 word (16 bits). Thereafter, the BM 5 sends the buffer address (Buf
ferAddress) and the write signal (B
While asserting “buffer control”, the data (buffer data) is stored in the buffer 6. Normally, processing is performed once in units of one byte or one word. For example, in some DRAMs, a page mode can be used, and when this is used, data can be processed continuously.

【0022】次にエラー訂正時の動作を説明する。先に
説明したようにデータを読み出している時はECC4で
常にエラーチェックを行う。図2を見ると最初のセクタ
0のデータ領域であるData0を読み込んでいる最中
はData0のすべてのデータに対して行う。通常1セ
クタは512バイトであったり、1024バイトもしく
は2048バイトのデータの固まりである。図2のよう
にData0でエラーが1個所発見されると、Data
0の読み出しが終わり次のセクタ1のデータ領域である
Data1を読み出す前のデータ以外の領域であるNo
t Data1の間に、ECC4からBM5に対して今
のセクタ0のデータ領域のData0にエラーがあった
ことを報告する。図2で示すようにエラー検出ビット
(Error Detect)をNot Data1の時
にアサートにしている。BM5はこのError De
tectを受け取ると、今バッファ6へ格納したDat
a0のバッファ内の先頭アドレスを記憶保持しておく。
このように記憶保持しておくのは次にエラーデータ訂正
処理を行う時にスムーズに訂正させるためである。
Next, the operation at the time of error correction will be described. As described above, an error check is always performed by the ECC 4 when data is being read. Referring to FIG. 2, while reading the data area Data0 of the first sector 0, all data of the data area Data0 are read. Usually, one sector is 512 bytes, or a block of 1024 bytes or 2048 bytes of data. If one error is found in Data0 as shown in FIG.
No. is an area other than the data before reading Data1, which is the data area of the next sector 1 after reading of 0 is completed.
During t Data1, the ECC 4 reports to the BM 5 that there is an error in Data 0 in the data area of the current sector 0. As shown in FIG. 2, the error detection bit (Error Detect) is asserted at the time of Not Data1. BM5 is this Error De
When receiving Tect, the Dat stored in buffer 6
The head address in the buffer of a0 is stored and held.
The reason why the data is stored and held in this way is to smoothly correct the error data when the next error data correction process is performed.

【0023】次にセクタ1のNot Data1終了
後、セクタ1のデータ領域であるData1を読み出す
がこの時ECC4内部でセクタ0のデータ領域であるD
ata0のエラー算出を行っている。図2のようにDa
ta1転送中にData0のエラー算出が終了し、EC
C4からいつでもBM5へ訂正データを送出できる状態
になる。この後Data1の転送終了後次のセクタ2の
データ領域以外であるNot Data2の間、Dat
a0のエラーデータの訂正を行う。図2のようにエラー
訂正ビット(Error Correct)とData
Requestをアサートし、ECC4からBM5に対
してData0の訂正データを送出することを伝える。
BM5はこれを受け取ると先にも述べたように他のブロ
ックからリクエストがなければまたは他のブロックから
リクエストがあってもECC4からのリクエストの優先
順位が高ければECC4に対してData Ackno
wledgeをアサートしてデータを取り込む。この詳
細のタイミングの一例を図3に示す。
Next, after the end of Not Data1 of sector 1, Data1, which is the data area of sector 1, is read out.
The error calculation of data0 is performed. As shown in FIG.
Data0 error calculation is completed during the ta1 transfer, and EC
C4 is ready to send corrected data to BM5. After this, after the transfer of Data1 is completed, during Not Data2 which is other than the data area of the next sector 2, Data
The error data of a0 is corrected. As shown in FIG. 2, an error correction bit (Error Correct) and Data
Request is asserted, and the ECC 4 notifies the BM 5 that the corrected data of Data 0 will be transmitted.
When the BM 5 receives this, as described above, if there is no request from another block, or if there is a request from another block, if the priority of the request from the ECC 4 is high, Data ACKNO is sent to the ECC 4
Assert wledge to capture data. An example of this detailed timing is shown in FIG.

【0024】これを見ると、まず最初のクロック(CL
OCK)の立ち上がりでECC4はData Requ
estとError Correctがアサートすると
同時に訂正データ(Din1)とエラーの場所を表すオ
フセットアドレス(Offset Address)を
送出する。
Looking at this, first, the first clock (CL
OCK) rises and ECC4 becomes Data Req
At the same time as est and Error Correct are asserted, the correction data (Din1) and the offset address (Offset Address) indicating the location of the error are transmitted.

【0025】次のクロックの立ち上がりでBM5は先に
述べたようにECC4からのリクエストの優先順位が高
ければData AcknowledgeをECC4に
返し、訂正データとオフセットアドレスを取り込む。
At the next rising edge of the clock, the BM 5 returns Data Acknowledge to the ECC 4 if the priority of the request from the ECC 4 is high as described above, and takes in the correction data and the offset address.

【0026】次のクロックの立ち上がりでECC4はD
ata Requestをネゲートし、訂正データとオ
フセットアドレスの送出を停止する。BM5は先に記憶
保持しておいたエラー検出されたセクタ0のデータ領域
であるData0の格納されたバッファの先頭アドレス
(Start Address)とECC4から受け取
ったエラー場所を示すオフセットアドレス(Offse
t Address)を加算し、このアドレスからエラ
ーデータ(Din2)を読み出す。図3のようにバッフ
ァへ対してBuffer Control Read(バ
ッファからの読み出し制御信号)をアサートし、Buf
fer AddressにAddress1=Star
t Address + Offset Addressを
送出し、エラーデータであるBuffer Data
(Din2)を取り込む。
At the next rising edge of the clock, ECC4 becomes D
The data request is negated, and the transmission of the correction data and the offset address is stopped. The BM 5 is a start address (Start Address) of a buffer in which Data 0 which is a data area of the sector 0 in which an error is detected and stored, and an offset address (Offse) indicating an error location received from the ECC 4.
t Address), and error data (Din2) is read from this address. As shown in FIG. 3, Buffer Control Read (a read control signal from the buffer) is asserted to the buffer, and the buffer is read.
Address1 = Star in the far Address
t Address + Offset Address is transmitted, and Buffer Data which is error data is transmitted.
(Din2).

【0027】次のクロックの立ち上がりでBM5内に取
り込んだエラーデータ(Din2)をECC4より取り
込んだ訂正データ(Din1)に基づいて訂正する。こ
の実施例ではDin1とDin2のExclusive
―OR(排他的和)をとっている。
At the next rising edge of the clock, the error data (Din2) fetched into the BM 5 is corrected based on the correction data (Din1) fetched from the ECC 4. In this embodiment, Din1 and Din2 are exclusive.
-OR (exclusive sum) is taken.

【0028】次のクロックの立ち上がりでBM5は訂正
したデータ(Dout)をバッファへ書き込む。この時
バッファアドレスは先と同様にAddress1であ
る。Buffer Control Write(バッフ
ァへの書き込み制御信号)をアサートし、Buffer
AddressにAddress1とBuffer D
ataにDoutをそれぞれ送出して、バッファへ真の
データを格納する。
At the next rising edge of the clock, the BM 5 writes the corrected data (Dout) to the buffer. At this time, the buffer address is Address1 as before. Asserts Buffer Control Write (buffer control signal for writing) to Buffer
Address1 and Buffer D in Address
Dout is sent to each data, and true data is stored in the buffer.

【0029】次のクロックの立ち上がりでError
Correctをネゲートし、エラーデータ訂正処理を
終了する。もしエラーが複数ある場合はこのError
Correctをアサートの状態で引き続き上記の動
作を繰り返せばよい。
Error at the next rising edge of the clock
Correct is negated, and the error data correction processing ends. If there are multiple errors, this Error
What is necessary is just to repeat the above operation | movement in the state of asserting Correct.

【0030】また図2のようにセクタ1のデータ領域で
あるData1にエラーが検出された場合、セクタ2の
データ領域以外であるNot Data2の間、セクタ
0のデータ領域であるData0のエラーデータ訂正処
理が終了してからつまりError Correctが
ネゲートされてからError Detectをアサー
トさせる。後の処理は先に述べた通りである。
When an error is detected in the data area Data1 of the sector 1 as shown in FIG. 2, the error data correction of the data area Data0 of the sector 0 is performed during Not Data2 other than the data area of the sector 2. After the processing is completed, that is, after Error Correct is negated, Error Detect is asserted. The subsequent processing is as described above.

【0031】以上のようにエラーデータ訂正処理は1デ
ータにつき5クロックで処理される訳である。この手法
を使用することによりディスクがセクタ単位でデータ領
域とそれ以外の領域に構成されているすべてのディスク
装置に応用できることは言うまでもない。
As described above, the error data correction processing is performed with five clocks per data. It is needless to say that by using this method, the disk can be applied to all disk devices configured in the data area and the other area in sector units.

【0032】[0032]

【発明の効果】 以上説明したように本発明によれば、
ディスクがセクタ単位で構成されているあらゆるディス
ク装置において、ディスク上のセクタのデータ領域読み
出し時以外の時にエラーデータ訂正処理を行うといった
計画的な手法を用いることにより、転送レートを落とす
ことなく確実に処理ができる。
According to the present invention as described above,
In any disk device in which the disk is configured in sector units, by using a planned method such as performing error data correction processing other than when reading the data area of the sector on the disk, the transfer rate can be reliably reduced without lowering Can be processed.

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

【図1】 本発明の実施例の全体構成を示すブロック図
である。
FIG. 1 is a block diagram showing an overall configuration of an embodiment of the present invention.

【図2】 本発明の実施例のエラーデータ読み出し及び
訂正データ書き込み時のタイミングを示すタイミング図
である。
FIG. 2 is a timing chart showing timings for reading error data and writing corrected data according to the embodiment of the present invention.

【図3】 本発明の実施例のエラーデータ読み出し及び
訂正データ書き込み時の詳細なタイミングを示すタイミ
ング図である。
FIG. 3 is a timing chart showing detailed timings at the time of error data reading and correction data writing according to the embodiment of the present invention.

【図4】 従来の発明の実施例の全体構成を示すブロッ
ク図である。
FIG. 4 is a block diagram showing the entire configuration of an embodiment of the conventional invention.

【図5】 従来の発明の実施例のエラーデータ読み出し
及び訂正データ書き込み時のタイミングを示すタイミン
グ図である。
FIG. 5 is a timing chart showing timings of reading error data and writing correction data according to the embodiment of the conventional invention.

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

1 CPU 2 ディスク 3 ディスクI/F 4 ECC 5 BM 6 バッファ 7 ホストI/F 8 ホスト 10 メインコントローラ 11 制御部 12 セクタバッファ 13 エラープロセッサ 20 ディスクインターフェース 21 制御部 22 セクタバッファ 23 ドライブインターフェース 24 エラープロセッサ 30 ディスク 40 DMAコントローラ 50 メインメモリ 60 メモリ管理プロセッサ 1 CPU 2 Disk 3 Disk I / F 4 ECC 5 BM 6 Buffer 7 Host I / F 8 Host 10 Main Controller 11 Control Unit 12 Sector Buffer 13 Error Processor 20 Disk Interface 21 Control Unit 22 Sector Buffer 23 Drive Interface 24 Error Processor 30 Disk 40 DMA controller 50 main memory 60 memory management processor

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 記録媒体のフォーマット形式がセクタ単
位で構成され、該セクタはユーザーデータが書き込まれ
ているデータ領域と該データ領域以外の領域に別れてい
る記録媒体を使用する記憶装置のデータ転送方法におい
て、 エラーデータをバッファから読み出してエラー訂正後再
び前記バッファへデータを書き込むエラーデータ訂正処
理を、前記データ領域からデータを読み出す時以外の時
に行うことを特徴とする記憶装置のデータ転送方法。
1. A data transfer method for a storage device using a recording medium in which a format format of a recording medium is configured in units of sectors and the sectors are separated into a data area in which user data is written and an area other than the data area. A data transfer method for a storage device, wherein an error data correction process of reading error data from a buffer, correcting the error, and writing data to the buffer again is performed at a time other than when data is read from the data area.
【請求項2】 読み出し中のデータにエラーが検出され
た時、このセクタのデータ領域の読み出し時と次セクタ
のデータ領域の読み出し時の間にエラー検出ビットをア
サートさせることを特徴とする請求項1記載の記憶装置
のデータ転送方法。
2. The method according to claim 1, wherein when an error is detected in the data being read, an error detection bit is asserted between the time of reading the data area of this sector and the time of reading the data area of the next sector. Data transfer method for a storage device.
【請求項3】 前記エラー検出ビットを受けて、エラー
データが発見されたセクタのデータが格納された前記バ
ッファの先頭アドレスを記憶保持しておくことを特徴と
する請求項2記載の記憶装置のデータ転送方法。
3. The storage device according to claim 2, wherein in response to the error detection bit, a start address of the buffer storing data of a sector in which the error data is found is stored. Data transfer method.
【請求項4】 エラー算出が終了した時、現在読み出し
ているセクタのデータ領域の読み出し時と次セクタのデ
ータ領域の読み出し時の間にエラー訂正ビットをアサー
トさせることを特徴とする請求項1記載の記憶装置のデ
ータ転送方法。
4. The storage according to claim 1, wherein when the error calculation is completed, an error correction bit is asserted between the time of reading the data area of the currently read sector and the time of reading the data area of the next sector. Device data transfer method.
【請求項5】 前記エラー訂正ビットをアサートさせる
と同時にエラーデータの場所を表すオフセットアドレス
を送出することを特徴とする請求項4記載の記憶装置の
データ転送方法。
5. The data transfer method for a storage device according to claim 4, wherein said error correction bit is asserted and an offset address indicating a location of error data is transmitted at the same time.
【請求項6】 読み出し中のデータにエラーが検出され
た時、このセクタのデータ領域の読み出し時と次セクタ
のデータ領域の読み出し時の間にエラー検出ビットをア
サートさせ、 前記エラー検出ビットを受けて、エラーデータが発見さ
れたセクタのデータが格納された前記バッファの先頭ア
ドレスを記憶保持し、 エラー算出が終了した時、現在読み出しているセクタの
データ領域の読み出し時と次セクタのデータ領域の読み
出し時の間にエラー訂正ビットをアサートさせ、 前記エラー訂正ビットをアサートさせると同時にエラー
データの場所を表すオフセットアドレスを送出し、 前記エラー訂正ビットを受けて、前記先頭アドレスと前
記オフセットアドレスを加算したバッファアドレスから
エラーデータを読み出し、 データを訂正後に前記加算したバッファアドレスにデー
タを書き込むことを特徴とする請求項1記載の記憶装置
のデータ転送方法。
6. When an error is detected in the data being read, an error detection bit is asserted between the time of reading the data area of this sector and the time of reading the data area of the next sector. The head address of the buffer in which the data of the sector in which the error data was found is stored and held, and when the error calculation is completed, between the time of reading the data area of the currently read sector and the time of reading the data area of the next sector Asserting the error correction bit to, and simultaneously transmitting the offset address indicating the location of the error data while asserting the error correction bit, receiving the error correction bit, from the buffer address obtained by adding the start address and the offset address Reads error data and corrects data before Data transfer method of a storage apparatus according to claim 1, wherein the write data to the addition to the buffer address.
【請求項7】 データ領域の読み出し時以外でエラーデ
ータ訂正処理が終了した後、さらに前セクタにエラーデ
ータが発見された場合、エラー訂正ビットをネゲートさ
せた後にエラー検出ビットをアサートさせることを特徴
とする請求項1記載の記憶装置のデータ転送方法。
7. An error detection bit is asserted after negating the error correction bit when error data is found in the previous sector after the error data correction processing is completed except at the time of reading the data area. 2. The data transfer method for a storage device according to claim 1, wherein
JP9057860A 1997-03-12 1997-03-12 Data transfer method for storage device Withdrawn JPH10255404A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9057860A JPH10255404A (en) 1997-03-12 1997-03-12 Data transfer method for storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9057860A JPH10255404A (en) 1997-03-12 1997-03-12 Data transfer method for storage device

Publications (1)

Publication Number Publication Date
JPH10255404A true JPH10255404A (en) 1998-09-25

Family

ID=13067757

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9057860A Withdrawn JPH10255404A (en) 1997-03-12 1997-03-12 Data transfer method for storage device

Country Status (1)

Country Link
JP (1) JPH10255404A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006079810A (en) * 2004-09-08 2006-03-23 Fujitsu Ltd Method and device for correcting errors in read data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006079810A (en) * 2004-09-08 2006-03-23 Fujitsu Ltd Method and device for correcting errors in read data

Similar Documents

Publication Publication Date Title
US6691205B2 (en) Method for using RAM buffers with simultaneous accesses in flash based storage systems
EP0226412B1 (en) Apparatus for detecting & correcting data transfer errors in a magnetic disk system
JP2003516598A (en) Error correction device
US8151167B2 (en) Program processing device and program processing method
US7924521B1 (en) Data wedge format table synchronization
US6680870B2 (en) Memory device, data processing method and data processing program
US20080301403A1 (en) System for integrity protection for standard 2n-bit multiple sized memory devices
US7437593B2 (en) Apparatus, system, and method for managing errors in prefetched data
KR100843199B1 (en) High speed IDE interface device and method for the same
JP2001202295A (en) Subsystem
US20040128602A1 (en) Direct memory access with error correction
JPH10255404A (en) Data transfer method for storage device
US20170206178A1 (en) Information processing apparatus, method of transferring data, and non-transitory computer-readable recording medium
US20110205654A1 (en) Control apparatus, nonvolatile storage apparatus and data initialization method
US20070168839A1 (en) Interface apparatus for connecting a device and a host system, and method of controlling the interface apparatus
JPH11259238A (en) Signal processor
US8019936B1 (en) Fast disk start system
JP3962853B2 (en) Memory data error correction method
JP2000155737A (en) Data packet receiving device
US6697991B1 (en) Data check circuit of magnetic disk device and data checking method of magnetic disk device
JP2002073285A (en) Reproduction method of recorded data and recorder- reproducer
JP2004126911A (en) Control unit
US20070174738A1 (en) Disk device, method of writing data in disk device, and computer product
JPH06149685A (en) Memory error recovering circuit
JPS58223860A (en) Magnetic disk controller

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20040601