JP2503981B2 - Peripheral storage - Google Patents

Peripheral storage

Info

Publication number
JP2503981B2
JP2503981B2 JP61154904A JP15490486A JP2503981B2 JP 2503981 B2 JP2503981 B2 JP 2503981B2 JP 61154904 A JP61154904 A JP 61154904A JP 15490486 A JP15490486 A JP 15490486A JP 2503981 B2 JP2503981 B2 JP 2503981B2
Authority
JP
Japan
Prior art keywords
error
reading
read
data
correction code
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 - Lifetime
Application number
JP61154904A
Other languages
Japanese (ja)
Other versions
JPS6310378A (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.)
NEC Corp
Original Assignee
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP61154904A priority Critical patent/JP2503981B2/en
Publication of JPS6310378A publication Critical patent/JPS6310378A/en
Application granted granted Critical
Publication of JP2503981B2 publication Critical patent/JP2503981B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は書込み動作中に上位装置においてプログラム
の実行が不可能な障害が発生した場合の周辺記憶装置に
おける障害処理に関する。
The present invention relates to a failure processing in a peripheral storage device when a failure in which a program cannot be executed occurs in a host device during a write operation.

(従来の技術) 従来、この種の周辺記憶装置は書込み動作中に上位装
置において障害が発生したことを検出されると、書込み
中のフイールドの残りの部分に特定のデータ、例えばす
べて0のデータを付加し、さらにこれに誤り検出訂正コ
ードを付加して書込みを行うか、あるいは上位装置の障
害が検出されたとき直ちに書込みを中断するなどの方法
が採用されていた。
(Prior Art) Conventionally, when this type of peripheral storage device detects that a failure has occurred in a higher-level device during a write operation, specific data, for example, all zero data, is written in the remaining portion of the field being written. Has been adopted, and then an error detection / correction code is added to this to perform writing, or the writing is interrupted immediately when a failure of the host device is detected.

(発明が解決しようとする問題点) この場合、上位装置においてプログラムの実行が不可
能な障害が発生しているため、正しく書込みが行なわれ
なかつたフイールドの再書込みを行うこと、あるいはそ
のアドレス等を出力または記憶することが不可能である
ため、上述した従来の周辺記憶装置においては以下のよ
うな問題があつた。
(Problems to be solved by the invention) In this case, because a failure in which the program cannot be executed has occurred in the host device, rewriting of the field that was not correctly written, or its address, etc. Since it is impossible to output or store the above, the conventional peripheral storage device described above has the following problems.

前者の場合、後で正しく書込みが行なわれなかつたフ
イールドの読取りを行つても異常が報告されないため、
正しく書込みが行なわれなかつたことを検出することが
不可能であつた。
In the former case, no error will be reported even if the field is read correctly afterwards and the error is not reported.
It was impossible to detect that writing was not performed correctly.

また後者の場合は読取り誤りが検出されるため正しい
データの誤つて処理することは防止できるが、書込み時
の上位装置障害による読取り誤りと記憶媒体等の障害に
よる読取り誤りとを切分けることができない欠点があつ
た。
In the latter case, a read error is detected, so that it is possible to prevent incorrect data from being processed incorrectly, but it is not possible to distinguish between a read error due to a host device failure during writing and a read error due to a failure of a storage medium or the like. There was a flaw.

本発明の目的は上位装置の障害発生によつて正し書込
まれていないデータを不用意に使用することを防止し、
障害の発生個所を切分けることができる周辺記録装置を
提供することにある。
An object of the present invention is to prevent accidental use of data that has not been correctly written due to the occurrence of a failure in a host device,
An object of the present invention is to provide a peripheral recording device capable of isolating a location where a failure occurs.

(問題点を解決するための手段) 前記目的を達成するために本発明による周辺記憶装置
は、上記装置の障害が、発生したことを検出する障害検
出手段と、データに付加されて記録媒体に書込まれる誤
り検出訂正コードを生成する誤り検出訂正コード生成手
段と、データの書込み時に前記障害検出手段により上位
装置の障害が検出されたとき前記誤り検出訂正コード生
成手段の出力を反転して誤り検出訂正コードの書込みを
行う反転手段と、記録媒体からのデータの読取り時にデ
ータに付加されている誤り検出訂正コードを用いて読取
り誤りの検査を行う第1読取り誤り検査手段と、データ
に付加されている誤り検出訂正コードを反転したのち読
取り誤りの検査を行う第2読取り誤り検査手段と、記録
媒体の読取り動作終了とともに読取り誤りの有無を調査
し、第1読取り誤り検査手段に読取り誤りが検出されて
いなければ正常に読取りが行われたことを上位装置に通
知し、第1読取り誤り検査手段に読取り誤りが検出され
ている場合第2読取り誤り検査手段に読り誤りが検出さ
れていなければデータが正しく書込まれなかつたことを
上位装置に通知し、第2読取り誤り検査手段に読取り誤
りが検出されていれば読取りが不可能であることを上位
装置に通知する命令実行制御手段とを含んで構成されて
いる。
(Means for Solving Problems) In order to achieve the above-mentioned object, a peripheral storage device according to the present invention has a failure detection means for detecting the occurrence of a failure of the above-mentioned device and a recording medium added to the data. An error detection / correction code generation means for generating an error detection / correction code to be written, and an error by inverting the output of the error detection / correction code generation means when a failure of the host device is detected by the failure detection means at the time of writing data. Inversion means for writing the detection and correction code, first read error checking means for checking the read error using the error detection and correction code added to the data at the time of reading the data from the recording medium, and additional read error checking means Second read error checking means for checking the read error after inverting the error detection and correction code, and the read error upon completion of the read operation of the recording medium. Whether or not the reading error is detected by the first reading error checking means, the upper device is notified that the reading is normally performed, and the reading error is detected by the first reading error checking means. In this case, if the reading error is not detected by the second read error checking means, the higher-level device is notified that the data has not been written correctly, and if the second reading error checking means detects the reading error, the reading is completed. It is configured to include an instruction execution control means for notifying the upper device that it is impossible.

(実 施 例) 次に本発明の実施例を図面を参照して説明する。(Examples) Next, examples of the present invention will be described with reference to the drawings.

第1図は本発明による周辺記憶装置の一実施例をブロ
ツク的に示した回路図である。
FIG. 1 is a block diagram showing a block diagram of an embodiment of a peripheral memory device according to the present invention.

周辺記憶装置20は障害検出回路201、上位装置接続回
路202、データ転送制御回路203、ECC生成回路204、反転
回路205、記憶ユニツト接続回路206、命令実行制御回路
207、第1読取り誤り検査回路208、第2読取り誤り検査
回路209、および複数個の記憶ユニツト211…212から構
成されている。
The peripheral storage device 20 includes a fault detection circuit 201, a host device connection circuit 202, a data transfer control circuit 203, an ECC generation circuit 204, an inversion circuit 205, a storage unit connection circuit 206, and an instruction execution control circuit.
207, a first read error check circuit 208, a second read error check circuit 209, and a plurality of storage units 211 ... 212.

本実施例においては、データの書込み命令に先行して
位置決め命令が発行され、書込みを行うべき記憶ユニツ
トの選択、シリンダへの位置決め、トラツクの選択、レ
コードの検索が行なわれるが、本発明とは直接関係ない
のでその詳細な説明は省略する。
In the present embodiment, the positioning command is issued prior to the data writing command to select the storage unit to be written, the cylinder positioning, the track selection, and the record retrieval. Since it is not directly related, its detailed description is omitted.

位置決め命令に続いて上位装置10より書込み命令が発
行されると、書込み命令は信号線251、上位装置接続回
路202、信号線265を通して命令実行制御回路207に伝達
される。命令実行制御回路207は信号線264、記憶ユニツ
ト接続回路206、信号線271を通して先行する位置決め命
令により選択された記憶ユニツト211に書込み命令を発
行し、さらに信号線261を通してデータ転送制御回路203
に書込み処理を行うよう指示する。
When a write command is issued from the host device 10 following the positioning command, the write command is transmitted to the command execution control circuit 207 through the signal line 251, the host device connection circuit 202, and the signal line 265. The instruction execution control circuit 207 issues a write command to the storage unit 211 selected by the preceding positioning command through the signal line 264, the storage unit connection circuit 206, and the signal line 271, and further through the signal line 261 the data transfer control circuit 203.
To write the data.

上位装置10より信号線251を通して送られる書込みデ
ータは上位装置接続回路202、信号線254、データ転送制
御回路203、信号線256、記憶ユニツト接続回路206、信
号線271を通して記憶ユニツト211に書込まれる。このと
き同時に上位装置から転送された書込みデータはデータ
転送制御回路203から信号線257を通してECC生成回路204
に送られ、ECC生成回路204において誤り検出訂正コード
が生成される。
Write data sent from the host device 10 through the signal line 251 is written to the storage unit 211 through the host device connection circuit 202, the signal line 254, the data transfer control circuit 203, the signal line 256, the storage unit connection circuit 206, and the signal line 271. . At this time, the write data transferred from the host device at the same time is transferred from the data transfer control circuit 203 through the signal line 257 to the ECC generation circuit 204.
The error detection / correction code is generated in the ECC generation circuit 204.

上位装置10から書込むべきすべてのデータが転送され
ると、ECC生成回路204において生成された誤り検出訂正
コードが信号線258、反転回路205、信号線259、記憶ユ
ニツト接続回路206、信号線271を通して記憶ユニツト21
1に送られ、上位装置10から送られた書込みデータに続
いて書込まれる。
When all the data to be written is transferred from the higher-level device 10, the error detection / correction code generated in the ECC generation circuit 204 is signal line 258, inversion circuit 205, signal line 259, storage unit connection circuit 206, signal line 271. Through memory unit 21
The write data sent to 1 and written from the higher-level device 10 is written subsequently.

書込み動作中に上位装置10の障害が検出されなければ
反転回路205において誤り検出訂正コードの反転は行な
われない。
If no failure of the host device 10 is detected during the write operation, the inversion circuit 205 does not invert the error detection / correction code.

書込み動作中に上位装置10の障害が発生すると、上位
装置10は信号線251、上位装置接続回路202、信号線252
を通して障害検出回路201に上位装置の障害が発生した
ことを通知する。また、上位装置10から障害発生が通知
されない場合でも障害検出回路201は上位装置接続回路2
02、信号線252を通して信号線251の動作状況から上位装
置10の障害を検出することができる。障害検出回路201
は上位装置10の障害が発生したことを検出すると信号線
253を有効にして反転回路205にこれを通知する。反転回
路205は信号線253が有効であるときECC生成回路204によ
り生成された誤り検出訂正コードを反転させ、記憶ユニ
ツト211に転送する。
When a failure of the host device 10 occurs during the write operation, the host device 10 uses the signal line 251, the host device connection circuit 202, and the signal line 252.
The failure detection circuit 201 is notified of the occurrence of a failure of the host device. In addition, even if the failure is not notified from the higher-level device 10, the failure detection circuit 201 is connected to the higher-level device connection circuit 2
02, the failure of the host device 10 can be detected from the operation status of the signal line 251 through the signal line 252. Fault detection circuit 201
Detects that a failure of the upper device 10 has occurred, the signal line
It makes 253 valid and notifies the inverting circuit 205 of this. The inversion circuit 205 inverts the error detection and correction code generated by the ECC generation circuit 204 when the signal line 253 is valid, and transfers it to the storage unit 211.

一方、読取り動作においても書込み命令と場合と同様
に上位装置10より位置決め命令が発行され、続いて読取
り命令が発行される。
On the other hand, also in the read operation, the positioning command is issued from the upper level device 10 as in the case of the write command, and then the read command is issued.

命令実行制御回路207が読取り命令を受取ると、信号
線264、記憶ユニツト選択回路206、信号線271を通して
記憶ユニツト211に読取り指令を発行し、さらに信号線2
61を通してデータ転送制御回路203に読取り処理を行う
ように指示する。
When the instruction execution control circuit 207 receives the read command, it issues a read command to the memory unit 211 through the signal line 264, the memory unit selection circuit 206, and the signal line 271, and further the signal line 2
Through 61, the data transfer control circuit 203 is instructed to perform the reading process.

記憶ユニツト211から読取られたデータは信号線271、
信号ユニツト選択回路206、信号線260、データ転送制御
回路203、信号線255、上位装置接続回路202、信号線251
を通して上位装置10に転送される。
The data read from the memory unit 211 is the signal line 271,
Signal unit selection circuit 206, signal line 260, data transfer control circuit 203, signal line 255, host device connection circuit 202, signal line 251
Is transferred to the higher-level device 10.

また記憶ユニツト211から読取られたデータおよび誤
り検出訂正コードは信号線260を通して第1読取り誤り
検査回路208および第2読取り誤り検査回路209に送られ
る。第1読取り検査回路208においては記憶ユニツト211
から送られた誤り検出訂正コードを反転させないで、ま
た第2読取り誤り検査回路209においては誤り検出訂正
コードを反転させて読取り誤りの検出を行う。
The data read from the storage unit 211 and the error detection / correction code are sent to the first read error check circuit 208 and the second read error check circuit 209 through the signal line 260. In the first read inspection circuit 208, the memory unit 211
A read error is detected by inverting the error detection / correction code sent from the above, and inverting the error detection / correction code in the second read error check circuit 209.

記憶ユニツト211において読取り動作が終了すると命
令実行制御回路207は信号線262および263を通して読取
り誤りの有無を調査する。
When the read operation is completed in the memory unit 211, the instruction execution control circuit 207 checks for a read error through the signal lines 262 and 263.

第1読取り誤り検査回路208において読取り誤りが検
出されていなければ、命令実行制御回路207は信号線26
5、上位装置接続回路202、信号線251を通して上位装置1
0に正常に読取りが行なわれたことを通知する。第1読
取り誤り検査回路208において読取り誤りが検出されて
いる場合、第2読取り誤り検査回路209の状態を調べ、
読取り誤りが検出されていなければ命令実行制御回路20
7に読取られたデータの書込み時に上位装置の障害が発
生したため、データが正しく書込まれたものでないこと
を上位装置10に報告する。
If no read error is detected in the first read error check circuit 208, the instruction execution control circuit 207 outputs the signal line 26.
5, host device connection circuit 202, host device 1 through signal line 251
Notify 0 that the read was successful. When a read error is detected in the first read error check circuit 208, the state of the second read error check circuit 209 is checked,
If no reading error is detected, the instruction execution control circuit 20
It reports to the host device 10 that the data was not written correctly because a failure of the host device occurred when writing the data read in 7.

第2読取り誤り検査回路209においても読取り誤りが
検出されているとき、命令実行制御回路207は誤り訂正
あるいは読取り再試行を試みても前述のいずれかの状態
とならない場合、読取りが不可能であることを上位装置
10に通知する。
When the second read error check circuit 209 also detects a read error, the instruction execution control circuit 207 cannot read if the error correction or the read retry does not result in any of the above states. That the upper device
Notify 10

(発明の効果) 以上、説明したように本発明は書込み動作中に上位装
置の障害が発生した場合に誤り検出訂正コードを反転し
て書込みを行い、さらに読取り時に誤り検出訂正コード
が反転して書込まれていることを検査することによつて
データの記録形式を変更することなく正しく書込まれて
いないデータは不用意に使用されることを防止するとが
できるとともに、記録媒体あるいは装置障害による読取
り誤りとの切分けを容易に行うことを可能にする効果が
ある。
(Effects of the Invention) As described above, according to the present invention, the error detection and correction code is inverted for writing when a failure occurs in the host device during the writing operation, and the error detection and correction code is inverted during reading. By checking that the data has been written, it is possible to prevent inadvertent use of data that has not been written correctly without changing the recording format of the data. This has the effect of making it easy to distinguish from reading errors.

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

第1図は本発明による周辺記憶装置の一実施例をブロツ
ク的に示した回路図である。 10……上位位置、20……周辺記憶装置 201……障害検出回路 202……上位装置接続回路 203……データ転送制御回路 204……ECC生成回路 205……反転回路 206……記憶ユニツト接続回路 207……命令実行制御回路 208……第1読取り誤り検査回路 209……第2読取り誤り検査回路 211,212……記憶ユニツト
FIG. 1 is a block diagram showing a block diagram of an embodiment of a peripheral memory device according to the present invention. 10 ... High-order position, 20 ... Peripheral storage device 201 ... Fault detection circuit 202 ... High-order device connection circuit 203 ... Data transfer control circuit 204 ... ECC generation circuit 205 ... Inversion circuit 206 ... Memory unit connection circuit 207 ... Instruction execution control circuit 208 ... First read error check circuit 209 ... Second read error check circuit 211, 212 ... Storage unit

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】上記装置の障害が、発生したことを検出す
る障害検出手段と、 データに付加されて記録媒体に書込まれる誤り検出訂正
コードを生成する誤り検出訂正コード生成手段と、 データの書込み時に前記障害検出手段により上位装置の
障害が検出されたとき前記誤り検出訂正コード生成手段
の出力を反転して誤り検出訂正コードの書込みを行う反
転手段と、 記録媒体からのデータの読取り時にデータに付加されて
いる誤り検出訂正コードを用いて読取り誤りの検査を行
う第1読取り誤り検査手段と、 データに付加されている誤り検出訂正コードを反転した
のち読取り誤りの検査を行う第2読取り誤り検査手段
と、 記録媒体の読取り動作終了とともに読取り誤りの有無を
調査し、第1読り誤り検査手段に読取り誤りが検出され
ていなければ正常に読取りが行われたことを上位装置に
通知し、第1読取り誤り検査手段に読取り誤りが検出さ
れている場合第2読取り誤り検査手段に読取り誤りが検
出されていなければデータが正しく書込まれなかつたこ
とを上位装置に通知し、第2読取り誤り検査手段にも読
取り誤りが検出されていれば読取りが不可能であること
を上位装置に通知する命令実行制御手段とを含んで構成
したことを特徴とする周辺記憶装置。
1. A failure detection means for detecting the occurrence of a failure of the device, an error detection / correction code generation means for generating an error detection / correction code added to data and written in a recording medium, and data Inversion means for inverting the output of the error detection and correction code generation means to write the error detection and correction code when the failure detection means detects a failure of the host device at the time of writing, and data when reading the data from the recording medium. First read error checking means for checking a read error using the error detection and correction code added to the second read error and second read error for checking the read error after inverting the error detection and correction code added to the data. The inspection means and the reading operation of the recording medium should be completed and the presence or absence of a reading error should be checked. The first reading error checking means must detect the reading error. If the reading error is detected in the first reading error checking means and the reading error is not detected in the second reading error checking means, the data is correctly written. And instruction execution control means for notifying the host device that it has not been jammed, and notifying the host device that reading is impossible if the second read error checking means also detects a read error. A peripheral storage device characterized by the above.
JP61154904A 1986-07-01 1986-07-01 Peripheral storage Expired - Lifetime JP2503981B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61154904A JP2503981B2 (en) 1986-07-01 1986-07-01 Peripheral storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61154904A JP2503981B2 (en) 1986-07-01 1986-07-01 Peripheral storage

Publications (2)

Publication Number Publication Date
JPS6310378A JPS6310378A (en) 1988-01-16
JP2503981B2 true JP2503981B2 (en) 1996-06-05

Family

ID=15594500

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61154904A Expired - Lifetime JP2503981B2 (en) 1986-07-01 1986-07-01 Peripheral storage

Country Status (1)

Country Link
JP (1) JP2503981B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57147199A (en) * 1981-03-09 1982-09-10 Toshiba Corp Memory device
JPS58177506A (en) * 1982-04-09 1983-10-18 Nec Corp Magnetic tape controller

Also Published As

Publication number Publication date
JPS6310378A (en) 1988-01-16

Similar Documents

Publication Publication Date Title
JPS648382B2 (en)
JP2503981B2 (en) Peripheral storage
JP2513615B2 (en) Storage device with ECC circuit
JP2601038B2 (en) Microprogram error detection / correction device
JPS6051142B2 (en) Logging error control method
JPS62250563A (en) Magnetic disk storage device
JPH0327433A (en) Electronic disk device
JPS5818684B2 (en) Erroneous writing prevention method for magnetic tape control device
JPH04239355A (en) Electronic disk device
JPS6113259B2 (en)
JPS6218943B2 (en)
JPH0525893Y2 (en)
JPH05324487A (en) Memory control system
JPS6261974B2 (en)
JPH0254582B2 (en)
JPS6051144B2 (en) Alternate memory inspection method
JP2000207289A (en) Data error detecting system and its method
JPS6156537B2 (en)
JPH02238539A (en) Memory control system
JPS6043542B2 (en) information processing equipment
JPS6155131B2 (en)
JPS5823679B2 (en) Storage device
JPH0529934B2 (en)
JPS61175743A (en) Memory control system
JPS6320643A (en) Error detecting circuit

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term