JPH01277372A - Input/output control device - Google Patents

Input/output control device

Info

Publication number
JPH01277372A
JPH01277372A JP10591288A JP10591288A JPH01277372A JP H01277372 A JPH01277372 A JP H01277372A JP 10591288 A JP10591288 A JP 10591288A JP 10591288 A JP10591288 A JP 10591288A JP H01277372 A JPH01277372 A JP H01277372A
Authority
JP
Japan
Prior art keywords
data
input
buffer memory
written
magnetic disk
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
JP10591288A
Other languages
Japanese (ja)
Inventor
Kiyoshi Kato
清 加藤
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 JP10591288A priority Critical patent/JPH01277372A/en
Publication of JPH01277372A publication Critical patent/JPH01277372A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To easily and surely inspect the correctness of data written in a recording medium and to improve the reliability of data to be recorded by reading out data written in an I/O device by a comparing means and comparing the read data with data stored in a data buffer memory. CONSTITUTION:When the quantity of data to be recorded is larger than the capacity of a data buffer memory 2, new data are substituted for the initial data. Since the length of data to be compared with a comparator 5 has been already set up in a counter 7 by a CPU 10, access check is executed and the comparator 5 starts to compare the data stored in the memory 2 with data read out from a magnetic disk. At the time of detecting the discrepancy (error) of the data, the comparator 5 informs the error to the CPU 10. Then, the data recorded in the magnetic disk are transferred to the host side through a data buffer register 9. Consequently, the correctness of data written in the recording medium can be easily and surely inspected.

Description

【発明の詳細な説明】 [発明の目的コ (産業上の利用分野) 本発明は入出力制御装置に関する。[Detailed description of the invention] [Purpose of the invention] (Industrial application field) The present invention relates to an input/output control device.

(従来の技術) 近年、データのリード/ライトが可能な光ディスクや磁
気ディスク等の記録媒体を用いた記憶装置が普及してい
る。
(Prior Art) In recent years, storage devices using recording media such as optical disks and magnetic disks from which data can be read and written have become widespread.

そして、例えばハードディスクタイプの磁気ディスク装
置にあっては、間隔を置き積重ねられた状態に配置され
た3、5インチ、5.25インチ、8インチ等の記録媒
体である磁気ディスクに、これら磁気ディスクに対応さ
せて配置された磁気ヘッドによりデータが書込まれる。
For example, in a hard disk type magnetic disk device, these magnetic disks, which are recording media of 3, 5 inches, 5.25 inches, 8 inches, etc., are stacked at intervals. Data is written by a magnetic head arranged in correspondence with the magnetic head.

ところで各磁気ディスクに書込まれたデータの正誤の検
証は、一般にコントローラのCRCまたはECCチエツ
ク機能により行われている。
By the way, verification of the correctness of data written on each magnetic disk is generally performed by the CRC or ECC check function of the controller.

(発明が解決しようとする課8) しかしながら、磁気ディスクに書込まれたデータの正誤
の検証をコントローラのCRCまたはECCチエツク機
能で行う場合、これら機能に拘らないデータについては
チエツクを行うことができず、これによりデータの正誤
の検証が不完全となってしまう。
(Problem 8 to be solved by the invention) However, when verifying the correctness of data written on a magnetic disk using the CRC or ECC check function of the controller, it is not possible to check data that is not related to these functions. As a result, verification of the correctness of the data becomes incomplete.

この場合、磁気ディスクに書込まれたデータを読出して
検証すればよいが、容量の大きなデータを検証する場合
、大容量のバッファメモリが必要となってしまう。
In this case, data written on the magnetic disk can be read and verified, but if a large amount of data is to be verified, a large capacity buffer memory is required.

本発明は、このような事情により成されたもので、記録
媒体に書込まれたデータの正誤の検証を容易かつ確実に
行うことができる入出力制御装置を提供することを目的
とする。
The present invention was made in view of the above circumstances, and an object of the present invention is to provide an input/output control device that can easily and reliably verify the correctness of data written on a recording medium.

[発明の構成] (課題を解決するための手段) 本発明の入出力制御装置は、上記目的を達成するために
、入出力装置に書込むデータを一旦格納するデータバッ
ファメモリを有した入出力制御装置において、入出力装
置に正しくデータが書込まれたかどうかを検証する際、
入出力装置に書込んだデータを読出してデータバッファ
メモリに格納されているデータと比較する比較手段と、
この比較手段の比較を許可するフラグ手段と、比較すべ
きデータの開始位置が設定されこの開始位置でフラグ手
段をセットさせるセット手段と、比較すべきデータの長
さが設定されこのデータ長のデータ比較が終了した後、
フラグ手段をリセットするリセット手段とを備えたもの
である。
[Structure of the Invention] (Means for Solving the Problem) In order to achieve the above object, an input/output control device of the present invention has an input/output control device having a data buffer memory for temporarily storing data to be written to the input/output device. When verifying whether data has been correctly written to the input/output device in the control device,
Comparing means for reading data written to the input/output device and comparing it with data stored in the data buffer memory;
A flag means for permitting the comparison means to compare, a setting means for setting the start position of the data to be compared and setting the flag means at this start position, and a setting means for setting the length of the data to be compared and setting the data of this data length. After the comparison is finished,
and reset means for resetting the flag means.

(作 用) 本発明の入出力制御装置では、比較手段が入出力装置に
書込んだデータを読出してデータバッファメモリに格納
されているデータと比較することができる。
(Function) In the input/output control device of the present invention, data written to the input/output device by the comparing means can be read and compared with data stored in the data buffer memory.

(実施例) 以下、本発明の実施例の詳細を図面に基づいて説明する
(Example) Hereinafter, details of an example of the present invention will be described based on the drawings.

第一1図は、本発明を磁気ディスク装置に適用した場合
の一実施例を示す制御部のブロック図である。
FIG. 11 is a block diagram of a control section showing an embodiment in which the present invention is applied to a magnetic disk device.

同図に示すように、制御部には、ホストからのデータを
データバッファレジスタ1を介して一旦格納するデータ
バッファメモリ2、データバッファメモリ2からのデー
タを磁気ディスク(図示省略)に書込むためのデータバ
ッファレジスタ3、磁気ディスクからデータを読出すた
めのデータバッファレジスタ4が備えられている。
As shown in the figure, the control unit includes a data buffer memory 2 for temporarily storing data from the host via a data buffer register 1, and a data buffer memory 2 for writing data from the data buffer memory 2 to a magnetic disk (not shown). A data buffer register 3 and a data buffer register 4 for reading data from a magnetic disk are provided.

また制御部には、データバッファメモリ2の内容と磁気
ディスクから読出されたデータとを比較する比較器5、
データの比較開始位置を指定するカウンタ6、比較器5
の比較するデータ長を指定するカウンタ7、カウンタ6
およびカウンタ7の値に基づき比較器5にフラグ設定す
るフラグ設定部8、磁気ディスクから読出されたデータ
をホストに転送するためのデータバッファレジスタ9、
各構成要素の動作を制御するCPU 10が備えられて
いる。
The control unit also includes a comparator 5 that compares the contents of the data buffer memory 2 with data read from the magnetic disk.
Counter 6 and comparator 5 that specify the data comparison start position
Counter 7 and Counter 6 specify the data length to be compared.
and a flag setting unit 8 for setting a flag in the comparator 5 based on the value of the counter 7, a data buffer register 9 for transferring data read from the magnetic disk to the host,
A CPU 10 is provided to control the operation of each component.

このような構成の制御部は、次のような動作を行う。The control section having such a configuration performs the following operations.

まず、ホストから磁気ディスクに対し書込みコマンドが
出力されると、磁気ディスクに記録すべきデータがデー
タバッファレジスタ1を介して一旦、データバッファメ
モリ2に格納される。次いで、データバッファメモリ2
に格納されたデータは、データバッファレジスタ3を介
して磁気ディスクに書込まれる。ここで、データバッフ
ァメモリ2は、FIFO(First In Firs
t 0ut)管理されているので、記録すべきデータ量
がデータバッファメモリ2の容量より大きい場合、最初
のデータが新たなデータに置換えられる。
First, when a write command is output from the host to the magnetic disk, data to be recorded on the magnetic disk is temporarily stored in the data buffer memory 2 via the data buffer register 1. Next, data buffer memory 2
The data stored in is written to the magnetic disk via the data buffer register 3. Here, the data buffer memory 2 is a FIFO (First In First
t0ut) Since the amount of data to be recorded is larger than the capacity of the data buffer memory 2, the first data is replaced with new data.

このときすてにCPU 10により、カウンタ7に比較
器5の比較すべきデータの長さがセットされており、ま
たカウンタ6には比較すべきデータの開始位置がセット
されている。
At this time, the length of the data to be compared in the comparator 5 has already been set in the counter 7 by the CPU 10, and the start position of the data to be compared has been set in the counter 6.

またこのとき、呼出しチエツクを行ってゆき、指定位置
までカウンタ6がカウントされるとcPUloはフラグ
設定部8をセットする。これにより、比較器5はデータ
バッファメモリ2に格納されているデータと磁気ディス
クから読出したデータとの比較を開始する。
At this time, a call check is performed, and when the counter 6 counts up to the specified position, cPUlo sets the flag setting section 8. Thereby, the comparator 5 starts comparing the data stored in the data buffer memory 2 and the data read from the magnetic disk.

そして比較すべきデータが指定された長さとなったとき
、CPUl0によりフラグ設定部8がリセットされ、比
較器5の動作が停止する。また比較器5がデータの不一
致(誤り)を検出すると、CPU 10に対しエラーを
通知する。
When the data to be compared reaches the specified length, the flag setting section 8 is reset by the CPU 10, and the operation of the comparator 5 is stopped. Further, when the comparator 5 detects a data mismatch (error), it notifies the CPU 10 of the error.

この後、ホストから磁気ディスクに対し読出しコマンド
が出力されると、磁気ディスクに記録されたデータがデ
ータバッファレジスタ9を介してホスト側に転送される
Thereafter, when a read command is output from the host to the magnetic disk, the data recorded on the magnetic disk is transferred to the host via the data buffer register 9.

なお、データバッファメモリ2の容量を越えたデータに
ついては、通常のCRCまたはFCCチエツクが行われ
る。
Note that for data exceeding the capacity of the data buffer memory 2, a normal CRC or FCC check is performed.

このように、本実施例では、磁気ディスクに記録された
データとデータバッファメモリ2に格納されているデー
タとが比較器5により比較されるので、磁気ディスクに
記録すべきデータの信頼性を向上させることができる。
In this way, in this embodiment, the data recorded on the magnetic disk and the data stored in the data buffer memory 2 are compared by the comparator 5, so that the reliability of the data to be recorded on the magnetic disk is improved. can be done.

なお、本実施例では、本発明を磁気ディスク装置に適用
した場合について説明したが、この例に限らず、光ディ
スク等の記録媒体を用いた他の記憶装置に適用してもよ
い。
In this embodiment, a case has been described in which the present invention is applied to a magnetic disk device, but the present invention is not limited to this example, and may be applied to other storage devices using recording media such as optical disks.

[発明の効果コ 以上説明したように、本発明の入出力制御装置によれば
、比較手段が入出力装置に書込んだデータを読出してデ
ータバッファメモリに格納されているデータと比較する
ことができるので、記録媒体に書込まれたデータの正誤
の検証を容易かつ確実に行うことができ、これにより記
録すべきデータの信頼性が向上する。
[Effects of the Invention] As explained above, according to the input/output control device of the present invention, it is possible for the comparison means to read the data written to the input/output device and compare it with the data stored in the data buffer memory. Therefore, it is possible to easily and reliably verify whether the data written on the recording medium is correct, thereby improving the reliability of the data to be recorded.

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

第1図は本発明を磁気ディスク装置に適用した場合の一
実施例を示す制御部のブロック図である。 1.3.4・・・データバッファレジスタ、2・・・デ
ータバッファメモリ、5・・・比較器、6・・・カウン
タ、7・・・カウンタ、8・・・フラグ設定部、9・・
・データバッファレジスタ、10・・・cpu 。 出願人     株式会社 東芝 代理人 弁理士 須 山 佐 −
FIG. 1 is a block diagram of a control section showing an embodiment in which the present invention is applied to a magnetic disk device. 1.3.4...Data buffer register, 2...Data buffer memory, 5...Comparator, 6...Counter, 7...Counter, 8...Flag setting section, 9...
- Data buffer register, 10...cpu. Applicant Toshiba Corporation Representative Patent Attorney Sasa Suyama −

Claims (1)

【特許請求の範囲】[Claims] (1)入出力装置に書込むデータを一旦格納するデータ
バッファメモリを有した入出力制御装置において、前記
入出力装置に正しくデータが書込まれたかどうかを検証
する際、前記入出力装置に書込んだデータを読出して前
記データバッファメモリに格納されているデータと比較
する比較手段と、この比較手段の比較を許可するフラグ
手段と、比較すべきデータの開始位置が設定されこの開
始位置で前記フラグ手段をセットさせるセット手段と、
比較すべきデータの長さが設定されこのデータ長のデー
タ比較が終了した後、前記フラグ手段をリセットするリ
セット手段とを備えたことを特徴とする入出力制御装置
(1) In an input/output control device that has a data buffer memory that temporarily stores data to be written to an input/output device, when verifying whether data has been correctly written to the input/output device, a comparison means for reading the stored data and comparing it with the data stored in the data buffer memory; a flag means for permitting the comparison by the comparison means; and a start position of the data to be compared is set, and the start position of the data is set and a setting means for setting the flag means;
An input/output control device comprising: reset means for resetting the flag means after a length of data to be compared is set and data comparison of this data length is completed.
JP10591288A 1988-04-28 1988-04-28 Input/output control device Pending JPH01277372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10591288A JPH01277372A (en) 1988-04-28 1988-04-28 Input/output control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10591288A JPH01277372A (en) 1988-04-28 1988-04-28 Input/output control device

Publications (1)

Publication Number Publication Date
JPH01277372A true JPH01277372A (en) 1989-11-07

Family

ID=14420076

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10591288A Pending JPH01277372A (en) 1988-04-28 1988-04-28 Input/output control device

Country Status (1)

Country Link
JP (1) JPH01277372A (en)

Similar Documents

Publication Publication Date Title
US8140909B2 (en) Efficient method to detect disk write errors
KR100345632B1 (en) A memory device and a method for controlling the same
US7801930B2 (en) Recording medium, host device, and data processing method
US6625096B1 (en) Optical disk recording and reproduction method and apparatus as well as medium on which optical disk recording and reproduction program is recorded
US5537552A (en) Apparatus for selectively comparing pointers to detect full or empty status of a circular buffer area in an input/output (I/O) buffer
JPH01277372A (en) Input/output control device
JP3264528B2 (en) Information replacement processing method for write-protected information recording medium
JPH04114371A (en) Sector managing method
JPH0441375B2 (en)
JP2614130B2 (en) Magnetic tape unit
JPH0440794B2 (en)
JP2910803B2 (en) Highly reliable auxiliary storage device
JPS6347937Y2 (en)
JPS629444A (en) Copy and inspection control method between floppy medias of computer system
JPH01298507A (en) Disk driving device
JPS6180564A (en) Alternate track write control circuit
JPS6013360A (en) Storage device
JPH0258768A (en) Disk controller
JPS6113259B2 (en)
JPS60254440A (en) File device
JPS63195877A (en) Data recording and reproducing system
JPH0384778A (en) Data check retrial system
US20100110854A1 (en) Disk device, and data moving program and method
US20030056033A1 (en) Method of ensuring the integrity of a command instruction exchanged between a host device and an ATA device
JPH02254679A (en) System for recording and reproducing information