JPS62283462A - Magnetic disk controller - Google Patents

Magnetic disk controller

Info

Publication number
JPS62283462A
JPS62283462A JP61126192A JP12619286A JPS62283462A JP S62283462 A JPS62283462 A JP S62283462A JP 61126192 A JP61126192 A JP 61126192A JP 12619286 A JP12619286 A JP 12619286A JP S62283462 A JPS62283462 A JP S62283462A
Authority
JP
Japan
Prior art keywords
data
correction code
error detection
magnetic disk
central processing
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
JP61126192A
Other languages
Japanese (ja)
Inventor
Hiroshi Tomita
弘 富田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP61126192A priority Critical patent/JPS62283462A/en
Publication of JPS62283462A publication Critical patent/JPS62283462A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To recognize a data being in error at read and not written normally by inverting an added error detection correction code to a write data detecting a data under run at write. CONSTITUTION:In detecting the data under run, a processing circuit 130 drives a circuit 140 to generate an error detection correction code being the inversion of the normal value, transfers the result to a buffer 120, where the write data stored therein and the data added with the correction code are written in a magnetic disk device. In reading a data block having a data run at the data write, the central processing unit judges the occurrence of a data error and that the block is defective.

Description

【発明の詳細な説明】 3、発明の詳細な説明 産業上の利用分野 本発明は、磁気ディスク制御装置に関し、特に磁気ディ
スク装置へのデータ書込み時にデータアンダーランが発
生したときの処理に関するものである。
[Detailed Description of the Invention] 3. Detailed Description of the Invention Field of Industrial Application The present invention relates to a magnetic disk control device, and particularly relates to processing when data underrun occurs when writing data to a magnetic disk device. be.

従来の技術 従来、この種の磁気ディスク制御装置は、第2図に示す
ように、データ部とデータ誤り□を訂正するための誤り
検出訂正コード及びこのブロックのアドレスを示すヘッ
ダ部から構成されるデータブロックを磁気ディスク装置
に書込む場合に、データ部の書込み動作時にデータアン
ダーランを検出した場合でもデータ部の後に付加する誤
り検出訂正コードについては、正常な値を書込んでいた
2. Description of the Related Art Conventionally, as shown in FIG. 2, this type of magnetic disk control device consists of a data section, an error detection and correction code for correcting data errors, and a header section indicating the address of this block. When writing a data block to a magnetic disk device, even if a data underrun was detected during the write operation of the data section, a normal value was written for the error detection and correction code added after the data section.

磁気ディスク装置に書込まれているデータを読出す場合
には、データ書込み時にデータアンダーランが発生した
データ部を読出すときでも、誤り検出訂正コードが正常
に書込まれているために、データ誤りが発生せずに正常
に読出すことができた。
When reading data written to a magnetic disk drive, even when reading a data section where a data underrun occurred during data writing, the error detection and correction code is written normally, so the data is The data could be read normally without any errors.

発明が解決しようとする問題点 しかしながら、上述した従来の磁気ディスク制@装置は
、磁気ディスク装置へのデータ書込み時にデータアンダ
ーランを検出した場合でもデータ部の後に付加する誤り
検出訂正コードは正常な値を書込んでいたために、デー
タ書込み時にデータアンダーランが発生したデータ部を
読出すときでも誤り検出訂正コードが正常に書込まれて
いるため、データ誤りが発生せずに正常に読出すことが
できるので、読出したデータは正常に書込まれたデータ
であると誤認識するという欠点がある。
Problems to be Solved by the Invention However, in the conventional magnetic disk @ device described above, even if a data underrun is detected when writing data to the magnetic disk device, the error detection and correction code added after the data section is not correct. Even when reading a data section where a data underrun occurred during data writing due to a value being written, the error detection and correction code is written correctly, so the data can be read normally without any data errors. Therefore, there is a drawback that the read data is erroneously recognized as data that has been written normally.

本発明は従来のL記四情に鑑みてなされたものであり、
従って本発明の目的は、従来の技術に内在する上記欠点
を解消することを可能としたtrri3!な磁気テープ
制御S!!装置を提供することにある。
The present invention has been made in view of the conventional four circumstances of L.
Therefore, an object of the present invention is to provide a tri3! Magnetic tape control S! ! The goal is to provide equipment.

問題点を解決するための手段 上記目的を達成する為に、本発明に係る磁気ディスク制
gll装置は、中央処理装置から送出される書込みデー
タを取込む第1のバッファと、磁気ディスク装置に書込
むために誤り検出訂正フードを付加した書込みデータを
一時的に貯える第2のノ(ノファと、誤り検出訂正コー
ドを生成する誤り検出訂旧フード生成回路と、磁気ディ
スク装置へのデータ書込みは、中央処理装置から送出さ
れる書込みデータを前記第1のバッファが取込むときに
データアンダーランをチェックすると共に、該書込みデ
ータに前記誤り検出訂正フード生成回路で生成した正常
な誤り検出訂正コードを付加して前記第2のバッファに
一時的に貯えて磁気ディスク装置にデータを書込ませる
ことで行い、もしデータアンダーランを検出したときの
磁気ディスク装置へのデータ書込みは、誤り検出訂正コ
ードを反転させることで中央処理装置から送出される書
込みデータに、反転した誤り検出訂正コードを付加した
データを書込むことで行う磁気ディスク処理回路とを汀
している。
Means for Solving the Problems In order to achieve the above object, a magnetic disk control GLL device according to the present invention includes a first buffer for receiving write data sent from a central processing unit, and a first buffer for receiving write data sent from a central processing unit, and a first buffer for receiving write data sent from a central processing unit. A second memory is used to temporarily store the written data to which an error detection and correction code is added in order to write the data, an error detection and correction code is generated, and an error detection and correction code is generated. When the first buffer takes in the write data sent from the central processing unit, a data underrun is checked, and a normal error detection and correction code generated by the error detection and correction hood generation circuit is added to the write data. This is done by temporarily storing the data in the second buffer and writing the data to the magnetic disk device.If a data underrun is detected, data is written to the magnetic disk device by inverting the error detection and correction code. By doing so, the magnetic disk processing circuit writes data with an inverted error detection and correction code added to the write data sent from the central processing unit.

実施例 次に、本発明をその好ましい一実施例について図面を参
照して具体的に説明する。
Embodiment Next, a preferred embodiment of the present invention will be specifically explained with reference to the drawings.

第1図は本発明の一実施例を示すブロック構成図である
。第1図において、本発明ζこ係る磁気ディスク制御装
!+00は、第1のバッフyl101第2のバッフy1
20、磁気ディスク処理回路!30、誤り検出訂正コー
ド生成回路+40から構成されている。磁気ディスク処
理回路+30は、中央処理装置(図示せず)から1a2
QIを通して磁気ディスク装置(図示せず)への書込み
指示を受は取ると、中央処PI!H1tから送出される
書込みデータを線200を通して第1のバッファ+10
に取込んだ後、線203を通して第2のバッファ!20
に転送すると共に、線202を通してデータアンダーラ
ンのチェックを行い、データアンダーランを検出しない
時には、線204を通して誤り検出訂正コード生成回路
140を駆動して生成した正常な誤り検出訂正コードを
線205を通して第2のバッファ120に転送すること
で、第2のバッファ120に一時的に貯えられた中央処
理装置から送出された書込みデータと正常な誤り検出訂
正コードを付加したデータを、4!il 20Bを通し
て磁気ディスク装置に書込む。
FIG. 1 is a block diagram showing one embodiment of the present invention. In FIG. 1, a magnetic disk control device according to the present invention is shown! +00 is the first buffer yl101 the second buffer y1
20. Magnetic disk processing circuit! 30, error detection and correction code generation circuit +40. The magnetic disk processing circuit +30 is connected to 1a2 from the central processing unit (not shown).
When a write instruction to a magnetic disk device (not shown) is received through the QI, the central processing PI! The write data sent from H1t is passed through line 200 to the first buffer +10
through line 203 to the second buffer! 20
At the same time, data underrun is checked through line 202, and when no data underrun is detected, the error detection and correction code generation circuit 140 is driven through line 204, and the generated normal error detection and correction code is transmitted through line 205. By transferring to the second buffer 120, the write data sent from the central processing unit temporarily stored in the second buffer 120 and the data with a normal error detection and correction code are transferred to 4! il 20B to the magnetic disk device.

データアンダーランを検出した場合には、磁気ディスク
処理回路+30は、線204を通して誤り検出訂正コー
ド生成回路140 @駆動して正常な値を反転した誤り
検出訂正コードを生成させ、&1j205を通して第2
のバッフlI20に転送することで第2のバッファ12
Gに一時的に貯えられた中央処理装置から送出された舊
込みデータと反転した誤り検出訂正コードを付加したデ
ータをlit 20Bを通して磁気ディスク装置に書込
む。
When a data underrun is detected, the magnetic disk processing circuit +30 drives the error detection and correction code generation circuit 140 @ through the line 204 to generate an error detection and correction code inverted from the normal value, and outputs the second error detection and correction code through the &1j 205.
The second buffer 12 is transferred to the second buffer lI20.
The input data sent from the central processing unit temporarily stored in G and the data with the inverted error detection and correction code added are written to the magnetic disk device through the lit 20B.

中央処理装置は、データ書込み時にデータアンダーラン
が発生したデータブロックを読出すときには、データ誤
りが発生するので該データブロックは不良であると判断
することができる。
When the central processing unit reads a data block in which a data underrun has occurred during data writing, a data error occurs and the central processing unit can determine that the data block is defective.

発明の詳細 な説明したように、本発明によれば、磁気ディスク装置
へのデータ書込み時にデータアンダーランを検出した場
合、中央処理装置から送出される田込みデータに付加す
る誤り検出訂正フードを反転させるために、書込みデー
タと反転した誤り検出訂正コードを付加したデータを磁
気ディスク装置に書込むことにより、データ書込み時に
データアンダーランが発生したデータブロックを読出し
たときにはデータ誤りとなるために、該データブロック
が正常に書込まれたデータではないと認識できる効果が
得られる。
As described in detail, according to the present invention, when a data underrun is detected when writing data to a magnetic disk device, the error detection and correction hood added to the data sent from the central processing unit is reversed. By writing data to the magnetic disk drive with an error detection and correction code inverted from the write data, a data error will occur when reading a data block in which a data underrun occurred during data writing. This provides the effect of recognizing that the data block is not normally written data.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例を示すブロック構成図、第2
図はデータブロックのフォーマットを示す図である。 100 、 、 、磁気ディスク制御装置、+10 、
 、 。 第1のバッファ、120.、.7JS2のバッフy、1
3001.@気ディスク処理回路、140 、 、 、
 W’rり検出計+Eコード生成回路
FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG.
The figure shows the format of a data block. 100, , magnetic disk control device, +10,
, . first buffer, 120. ,.. 7JS2 buffer y, 1
3001. @Ki disk processing circuit, 140 , , ,
W'r detection meter + E code generation circuit

Claims (1)

【特許請求の範囲】[Claims] 中央処理装置に接続され、該中央処理装置からの指示に
従って動作し、複数台の磁気ディスク装置を制御する磁
気ディスク制御装置において、中央処理装置からの書込
み指示で書込みデータを受取り該書込みデータに対し誤
り検出訂正コードを付加して該磁気ディスク装置にデー
タを書込む機能を有する磁気ディスク制御装置であって
、中央処理装置から送出される書込みデータを取込む第
1のバッファと、磁気ディスク装置に書込むために誤り
検出訂正コードを付加した書込みデータを一時的に貯え
る第2のバッファと、誤り検出訂正コードを生成する誤
り検出訂正コード生成回路と、磁気ディスク装置へのデ
ータ書込み動作について中央処理装置から送出される書
込みデータを前記第1のバッファに取込むときにデータ
アンダーランのチェックをすると共に該書込みデータに
前記誤り検出、訂正コード生成回路で生成した正常な誤
り検出訂正コードを付加して前記第2のバッファに一時
的に貯えて磁気ディスク装置にデータを書込ませること
で行いもしデータアンダーランを検出したときには前記
誤り検出訂正コード生成回路で誤り検出訂正コードを反
転して生成させることで磁気ディスク装置へのデータ書
込みを中央処理装置から送出される書込みデータに反転
した誤り検出訂正コードを付加して行う磁気ディスク処
理回路とを有することを特徴とした磁気ディスク制御装
置。
In a magnetic disk control device that is connected to a central processing unit, operates according to instructions from the central processing unit, and controls multiple magnetic disk devices, it receives write data in response to a write instruction from the central processing unit and processes the written data. A magnetic disk control device having a function of writing data to the magnetic disk device by adding an error detection and correction code, the device comprising: a first buffer for receiving write data sent from a central processing unit; A second buffer that temporarily stores write data to which an error detection and correction code has been added for writing, an error detection and correction code generation circuit that generates an error detection and correction code, and a central processing unit for data write operations to the magnetic disk device. When the write data sent from the device is taken into the first buffer, a data underrun is checked and a normal error detection and correction code generated by the error detection and correction code generation circuit is added to the write data. If a data underrun is detected, the error detection and correction code generation circuit inverts and generates an error detection and correction code. 1. A magnetic disk control device comprising: a magnetic disk processing circuit that writes data to a magnetic disk device by adding an inverted error detection and correction code to write data sent from a central processing unit.
JP61126192A 1986-05-31 1986-05-31 Magnetic disk controller Pending JPS62283462A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61126192A JPS62283462A (en) 1986-05-31 1986-05-31 Magnetic disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61126192A JPS62283462A (en) 1986-05-31 1986-05-31 Magnetic disk controller

Publications (1)

Publication Number Publication Date
JPS62283462A true JPS62283462A (en) 1987-12-09

Family

ID=14928975

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61126192A Pending JPS62283462A (en) 1986-05-31 1986-05-31 Magnetic disk controller

Country Status (1)

Country Link
JP (1) JPS62283462A (en)

Similar Documents

Publication Publication Date Title
JP2003516598A (en) Error correction device
JPS62283462A (en) Magnetic disk controller
JPS5835284B2 (en) Data bus check method
JPH04115340A (en) Duplex storage circuit
JPS63269233A (en) Error detecting and correcting circuit
JP2601038B2 (en) Microprogram error detection / correction device
JPH0612270A (en) Test circuit
KR940006268B1 (en) Data processing method in optical storage device
JPS6148054A (en) Information processing device
SU951407A1 (en) Device for checking memory error correcting units
JPH0646505B2 (en) Magnetic bubble memory system
JPS5936359B2 (en) data buffer device
JPS6261974B2 (en)
JPH0520215A (en) Information processor
JPH02103639A (en) Microprogram error correction circuit
JPS5985548A (en) Error processing system of information processor
JPH02202655A (en) Storage device
JPS58175200A (en) Checking system of storage system
JPS6125259A (en) Rewriting control system of memory
JPH04329444A (en) Error correcting and detecting system for information processor
JPH01236735A (en) Error detecting and correcting system
JPS62125453A (en) Storage device
JPS5927936B2 (en) Partial write control line parity bit generation method
JPH0298758A (en) Microprogram controller
JPH06202819A (en) Disk device