JPH0528667A - Magnetic disk control part - Google Patents

Magnetic disk control part

Info

Publication number
JPH0528667A
JPH0528667A JP18677291A JP18677291A JPH0528667A JP H0528667 A JPH0528667 A JP H0528667A JP 18677291 A JP18677291 A JP 18677291A JP 18677291 A JP18677291 A JP 18677291A JP H0528667 A JPH0528667 A JP H0528667A
Authority
JP
Japan
Prior art keywords
ecc
magnetic disk
read
data
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP18677291A
Other languages
Japanese (ja)
Inventor
Jun Sato
純 佐藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Software Shikoku Ltd
Original Assignee
NEC Software Shikoku Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Software Shikoku Ltd filed Critical NEC Software Shikoku Ltd
Priority to JP18677291A priority Critical patent/JPH0528667A/en
Publication of JPH0528667A publication Critical patent/JPH0528667A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To prevent the waiting rotation of a magnetic disk device from entering by a correction processing when a correction possible ECC error exists in read data from the magnetic disk device. CONSTITUTION:An inner part memory 40 storing data belonging to an ECC part for the portion of required one transfer sector number is provided and read data belonging to the ECC part read from the magnetic disk device 200 is written in the inner part memory. A system is provided with a function where a data part except the ECC part is simultaneously transferred to a main storing device 500 so that data stored in the inner part memory 40 is corrected and transferred to the main storing device 500 after the termination of reading from the magnetic disk device 200. Thus, waiting rotation due to the correction processing is not generated so that there is an effect that a read operation is shortened even if lots of ECC read errors occur.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は情報処理装置に使用され
る磁気ディスク制御部に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a magnetic disk control unit used in an information processing apparatus.

【0002】[0002]

【従来の技術】従来、磁気ディスク制御部において、E
CC訂正可能エラーに対する磁気ディスク制御部での処
理としては、ECC訂正用内部メモリを1セクタ分を有
し、1セクタ毎にECC訂正を行っていた。
2. Description of the Related Art Conventionally, in a magnetic disk controller, E
As a process of the magnetic disk control unit for the CC correctable error, the ECC correction internal memory has one sector, and the ECC correction is performed for each sector.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の磁気デ
ィスク制御部のECC訂正可能リードエラーに対する処
理方法は一連のデータ転送中にECCの訂正を行う為、
ECC訂正の間に磁気ディスク装置のオーバーランが生
じて回転待ちが発生し、リード動作の終了が大幅に遅れ
るという欠点がある。
According to the above-described conventional method for processing the ECC correctable read error of the magnetic disk controller, the ECC is corrected during a series of data transfer.
There is a drawback that overrun of the magnetic disk device occurs during ECC correction, rotation wait occurs, and the end of the read operation is significantly delayed.

【0004】[0004]

【課題を解決するための手段】本発明の磁気ディスク制
御部は、上位装置からの一回の転送要求セクタ分のEC
C(エラー訂正コード)部付リードデータを保持する内
部メモリと、磁気ディスク装置より読み出したECC部
付リードデータを前記内部メモリへ書き込む手段と、前
記ECC部付リードデータを前記内部メモリへ書き込む
と同時にECC部を除いたデータ部を主記憶装置へ転送
する手段と、前記磁気ディスク装置から前記ECC付リ
ードデータを読み出し中にECCのチェックを行い、E
CCエラー発生時には該ECCエラーが発生したセクタ
情報を複数記憶する手段と、前記磁気ディスク装置によ
り読み出しが終了した後に前記記憶手段に格納されてい
るECCエラー発生セクタ情報に対応する内部メモリ上
のECCエラーが訂正可能か否かをチェックする手段
と、前記チェック手段により訂正可能である場合、EC
C訂正コードを発生し、内部メモリのデータ部を訂正す
る手段と、前記訂正したデータ部を主記憶装置へ転送す
る手段とを備えて構成される。
A magnetic disk control unit of the present invention is an EC for one transfer request sector from a host device.
An internal memory for holding read data with a C (error correction code) portion; a unit for writing the read data with an ECC portion read from the magnetic disk device to the internal memory; and a unit for writing the read data with an ECC portion to the internal memory. At the same time, a means for transferring the data part excluding the ECC part to the main storage device, and an ECC check while reading the read data with ECC from the magnetic disk device,
A means for storing a plurality of sector information in which the ECC error has occurred when a CC error occurs, and an ECC on the internal memory corresponding to the ECC error occurrence sector information stored in the storage means after the magnetic disk device finishes reading. A means for checking whether or not the error can be corrected, and if it can be corrected by the checking means, an EC
It is provided with means for generating a C correction code and correcting the data portion of the internal memory, and means for transferring the corrected data portion to the main storage device.

【0005】[0005]

【実施例】次に本発明について図面を参照して説明す
る。
The present invention will be described below with reference to the drawings.

【0006】図1は本発明の一実施例の構成を示すブロ
ック図である。図1において、磁気ディスク制御部10
0は、バス制御回路10、マイクロプロセッサ回路2
0、磁気ディスク制御回路30、内部メモリ40、EC
Cリードデータチェック回路50、RAM60、及びE
CC訂正コード発生回路70より構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In FIG. 1, a magnetic disk control unit 10
0 is a bus control circuit 10 and a microprocessor circuit 2
0, magnetic disk control circuit 30, internal memory 40, EC
C read data check circuit 50, RAM 60, and E
It is composed of a CC correction code generation circuit 70.

【0007】また、磁気ディスク制御部100は磁気デ
ィスク装置200に接続されるとともに、バス300を
介して、中央処理装置400及び主記憶装置500に接
続されている。
The magnetic disk control unit 100 is connected to the magnetic disk device 200, and is also connected to the central processing unit 400 and the main storage device 500 via the bus 300.

【0008】このように構成された磁気ディスク制御部
100の動作は次の通りである。中央処理装置400よ
り磁気ディスク装置200に対するリード命令がバス3
00を介して磁気ディスク制御部100に入力されたと
すると、マイクロプロセッサ回路20は磁気ディスク制
御回路30を介して磁気ディスク装置200に対してシ
ーク動作を実行させる。
The operation of the magnetic disk controller 100 thus constructed is as follows. A read command from the central processing unit 400 to the magnetic disk unit 200 is sent to the bus 3
If it is input to the magnetic disk control unit 100 via 00, the microprocessor circuit 20 causes the magnetic disk device 200 to execute a seek operation via the magnetic disk control circuit 30.

【0009】シーク動作の完了を磁気ディスク制御回路
30を介して、マイクロプロセッサ回路20が認識する
と、マイクロプロセッサ回路20は、磁気ディスク制御
回路30に対しリード動作を指示する。磁気ディスク制
御回路30は磁気ディスク装置200から目的のセクタ
を検出すると、ECC部付データを読み出し、内部メモ
リ40へ書き込むとともに、ECC部を除いたデータ部
をバス制御回路10、バス300を介して主記憶装置5
00へ書き込む。また、ECCリードデータチェック回
路50は、ECC付データを取り込み、ECCのチェッ
クを行う。
When the microprocessor circuit 20 recognizes the completion of the seek operation via the magnetic disk control circuit 30, the microprocessor circuit 20 instructs the magnetic disk control circuit 30 to perform a read operation. When the magnetic disk control circuit 30 detects a target sector from the magnetic disk device 200, it reads the ECC section-attached data and writes it in the internal memory 40, and the data section excluding the ECC section is transferred via the bus control circuit 10 and the bus 300. Main memory 5
Write to 00. Further, the ECC read data check circuit 50 fetches the data with ECC and checks the ECC.

【0010】マイクロプロセッサ回路20は、1セクタ
の読み出し動作が終了する毎にECCリードデータチェ
ック回路50をチェックし、ECCエラーが検出されて
いる場合、そのセクタ値をRAM60に書き込む。
The microprocessor circuit 20 checks the ECC read data check circuit 50 every time the read operation of one sector is completed, and if an ECC error is detected, writes the sector value into the RAM 60.

【0011】また、磁気ディスク制御回路30を介して
リードセクタ数のチェックを行い、リード動作の終了を
認識すると、RAM60の内容をチェックし、これまで
のリード動作中におけるECCエラーの存在を確認す
る。もし、ECCエラーが存在していなければ、リード
動作の終了割り込みを、バス制御回路10、バス300
を介して中央処理装置400へ出力して、リード動作を
終了する。また、ECCエラーが存在していればRAM
60に書かれているセクタ情報に対応する内部メモリ4
0のデータ部およびECC部をチェックし、訂正可能で
あれば、ECC訂正コード発生回路70により、ECC
訂正コードを生成し、データ部の訂正を行い、その訂正
したデータ部をバス300を介して主記憶装置500へ
転送する。RAM60に書かれているすべてのセクタ情
報の処理が終了すると、マイクロプロセッサ回路20は
終了割り込みをバス制御回路10、バス300を介して
中央処理装置400へ出力しリード動作を終了する。
Further, when the number of read sectors is checked through the magnetic disk control circuit 30 and the end of the read operation is recognized, the contents of the RAM 60 are checked to confirm the existence of an ECC error during the read operation so far. .. If no ECC error exists, a read operation end interrupt is issued to the bus control circuit 10 and the bus 300.
To the central processing unit 400, and the read operation is completed. If there is an ECC error, RAM
Internal memory 4 corresponding to the sector information written in 60
The data section and the ECC section of 0 are checked, and if correctable, the ECC correction code generation circuit 70
A correction code is generated, the data section is corrected, and the corrected data section is transferred to the main storage device 500 via the bus 300. When the processing of all the sector information written in the RAM 60 is completed, the microprocessor circuit 20 outputs an end interrupt to the central processing unit 400 via the bus control circuit 10 and the bus 300 to end the read operation.

【0012】もし、訂正不可能なECCエラーが検出さ
れれば、リードエラーとして処理を中止し、マイクロプ
ロセッサ回路20は終了割り込みをバス制御回路10、
バス300を介して中央処理装置400へ出力しリード
動作を終了する。
If an uncorrectable ECC error is detected, the processing is stopped as a read error, and the microprocessor circuit 20 issues an end interrupt to the bus control circuit 10,
The data is output to the central processing unit 400 via the bus 300 and the read operation is completed.

【0013】[0013]

【発明の効果】以上説明したように、本発明の磁気ディ
スク制御部を採用することにより、訂正可能なECCリ
ードエラーが多発した場合でも、その訂正処理による回
転待ちが発生せず、リード動作の実行時間を短くできる
という効果がある。
As described above, by adopting the magnetic disk control unit of the present invention, even if a correctable ECC read error occurs frequently, the rotation waiting due to the correction processing does not occur and the read operation is performed. The effect is that the execution time can be shortened.

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

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

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

10 バス制御回路 20 マイクロプロセッサ回路 30 磁気ディスク制御回路 40 内部メモリ 50 ECCリードエラーチェック回路 60 RAM 70 ECC訂正コード発生回路 100 磁気ディスク制御部 200 磁気ディスク装置 300 バス 400 中央処理装置 500 主記憶装置 10 bus control circuit 20 microprocessor circuit 30 magnetic disk control circuit 40 internal memory 50 ECC read error check circuit 60 RAM 70 ECC correction code generation circuit 100 magnetic disk control unit 200 magnetic disk device 300 bus 400 central processing unit 500 main storage device

Claims (1)

【特許請求の範囲】 【請求項1】 上位装置からの一回の転送要求セクタ分
のECC(エラー訂正コード)部付リードデータを保持
する内部メモリと、 磁気ディスク装置より読み出したECC部付リードデー
タを前記内部メモリへ書き込む手段と、 前記ECC部付リードデータを前記内部メモリへ書き込
むと同時にECC部を除いたデータ部を主記憶装置へ転
送する手段と、 前記磁気ディスク装置から前記ECC付リードデータを
読み出し中にECCのチェックを行い、ECCエラー発
生時には該ECCエラーが発生したセクタ情報を複数記
憶する手段と、 前記磁気ディスク装置により読み出しが終了した後に前
記記憶手段に格納されているECCエラー発生セクタ情
報に対応する内部メモリ上のECCエラーが訂正可能か
否かをチェックする手段と、 前記チェック手段により訂正可能である場合、ECC訂
正コードを発生し、内部メモリのデータ部を訂正する手
段と、 前記訂正したデータ部を主記憶装置へ転送する手段とを
備えて成ることを特徴とする磁気ディスク制御部。
Claim: What is claimed is: 1. An internal memory for holding read data with an ECC (error correction code) portion for one transfer request sector from a host device; and an ECC portion read read from a magnetic disk device. A unit for writing data to the internal memory; a unit for writing the read data with an ECC unit to the internal memory and simultaneously transferring a data unit excluding the ECC unit to a main storage device; and a read unit with an ECC from the magnetic disk device. A means for checking the ECC while reading the data and storing a plurality of sector information in which the ECC error has occurred when an ECC error occurs; and an ECC error stored in the storage means after the magnetic disk device finishes reading. Check whether ECC error in internal memory corresponding to the generated sector information can be corrected And a means for generating an ECC correction code to correct the data portion of the internal memory and a means for transferring the corrected data portion to the main storage device, if the correction is possible by the checking means. A magnetic disk control unit characterized by the above.
JP18677291A 1991-07-26 1991-07-26 Magnetic disk control part Pending JPH0528667A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18677291A JPH0528667A (en) 1991-07-26 1991-07-26 Magnetic disk control part

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18677291A JPH0528667A (en) 1991-07-26 1991-07-26 Magnetic disk control part

Publications (1)

Publication Number Publication Date
JPH0528667A true JPH0528667A (en) 1993-02-05

Family

ID=16194360

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18677291A Pending JPH0528667A (en) 1991-07-26 1991-07-26 Magnetic disk control part

Country Status (1)

Country Link
JP (1) JPH0528667A (en)

Similar Documents

Publication Publication Date Title
US6691205B2 (en) Method for using RAM buffers with simultaneous accesses in flash based storage systems
US7921339B2 (en) Flash storage device with data correction function
JP2003516598A (en) Error correction device
US8151167B2 (en) Program processing device and program processing method
JPH0528667A (en) Magnetic disk control part
JPH1078853A (en) Storage device
JPH05257616A (en) Magnetic disk control part
US20040243912A1 (en) Method and apparatus for detecting and correcting errors in stored information
JPS62250563A (en) Magnetic disk storage device
JP2913873B2 (en) Data processing system
JPS6113259B2 (en)
JP3335969B2 (en) Magnetic disk drive
JPH04351764A (en) Magnetic disk device
JPH0440794B2 (en)
JPS6050672A (en) Read control system of rotary memory
JPH04311218A (en) External storage controller
JPH0431129B2 (en)
JPH06124173A (en) Disk controller
JPH0816864B2 (en) Magnetic disk processing device
JPH04128917A (en) Read retrying circuit
JPH0227570A (en) Magnetic disk controller
JPS62192830A (en) Disk cache control system
JPH05289947A (en) Ecc check system
JPH0731639B2 (en) Magnetic disk controller
JPH04290115A (en) Retrying method for disk controller