JPS6310378A - Peripheral memory device - Google Patents

Peripheral memory device

Info

Publication number
JPS6310378A
JPS6310378A JP15490486A JP15490486A JPS6310378A JP S6310378 A JPS6310378 A JP S6310378A JP 15490486 A JP15490486 A JP 15490486A JP 15490486 A JP15490486 A JP 15490486A JP S6310378 A JPS6310378 A JP S6310378A
Authority
JP
Japan
Prior art keywords
correction code
error detection
host device
circuit
data
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.)
Granted
Application number
JP15490486A
Other languages
Japanese (ja)
Other versions
JP2503981B2 (en
Inventor
Hisao Hashimoto
橋本 久雄
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 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

Landscapes

  • Debugging And Monitoring (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To prevent data that is not written correctly from being used imprudently by inverting and writing an error detection correction code when the fault occurs in a host device during a read action and inspecting that the error detection correction code is inverted and written at the time of reading. CONSTITUTION:If the fault occurs in the host device 10 during a read action, an inversion circuit 205 inverts the error detection correction code generated by an ECC generation circuit 204 and transmits it to a storage unit 211 when a signal line 253 is effective. Read errors are inspected without the inversion of the error detection correction code transmitted from the storage unit 211 in the first read inspection circuit 208, and with the inversion of the error detection correction code in the second read error inspection circuit 209. Thus, data that is not correctly written is prevented from being used imprudently due to the occurrence of the fault in the host device, and the place in which the fault occurs can be partitioned.

Description

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

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

(発明が解決しようとする問題点) この場合、上位装置においてプログラムの実行が不可能
な障害が発生しているため、正しく簀込みが行なわれな
かったフィールドの再誉込みを行うこと、あるいはその
アドレス等を出力筐たは記憶することが不可能であるた
め、上述した従来の周辺記憶装置においては以下のよう
な問題があった。
(Problem to be solved by the invention) In this case, since a fault has occurred in the host device that makes it impossible to execute the program, it is necessary to re-enter the field that was not correctly populated, or Since it is impossible to output or store addresses, etc., the above-mentioned conventional peripheral storage devices have the following problems.

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

また後者の場合は読取り誤りが検出されるため正しいデ
ータと誤って処理することは防止できるが、書込み時の
上位装置障害による読取り誤りと記録媒体等の障害によ
る読取り誤りとを切分けることができない欠点があった
In the latter case, since reading errors are detected, it is possible to prevent incorrect data from being processed incorrectly, but it is not possible to distinguish between reading errors due to a failure in the host device during writing and reading errors due to failures in the recording medium, etc. There were drawbacks.

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

(問題点を解決するための手段) 前記目的全達成するために本発明による周辺記憶装置は
上位装置の障害が発生したことを検出する障害検出手段
と、データに付加されて記録媒体に書込まれる誤り検出
訂正コードを生成する誤り検出訂正コード生成手段と、
データの書込み時に前記障害検出手段により上位装置の
障害が検出されたとき前記誤り検出訂正コード生成手段
の出力を反転して誤り検出訂正コードの書込みを行う反
転手段と、記録媒体からのデータの読取り時にデータに
付加されている誤り検出訂正コードを用いて読取り誤り
の検査を行う第1読取り誤り検査手段と、データに付加
されている誤り検出訂正コードを反転したのち読取り誤
りの検査を行う第2読取り誤ジ検査手段とから構成され
ている。
(Means for Solving the Problems) In order to achieve all of the above objects, the peripheral storage device according to the present invention includes a failure detection means for detecting the occurrence of a failure in a host device, and a failure detection means that is added to data and written to a recording medium. error detection and correction code generation means for generating an error detection and correction code;
an inverting means for writing an error detection and correction code by inverting the output of the error detection and correction code generation means when a fault in the host device is detected by the fault detection means during data writing; A first reading error checking means for checking for reading errors using an error detection and correction code added to the data; and a second reading error checking means for checking for reading errors after inverting the error detection and correction code added to the data. and a reading error checking means.

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

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

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

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

位置決め命令に続いて上位装Ti110よV書込み命令
が発行されると、書込み命令は信号線251、上位装置
接続回路202%信号線265を通して命令実行制御回
路207に伝達される。
When the host device Ti 110 issues a V write command following the positioning command, the write command is transmitted to the command execution control circuit 207 through the signal line 251 and the host device connection circuit 202% signal line 265.

命令実行制御回路207は信号線264、記憶ユニット
接続回路206、信号線271を通して先行する位置決
め命令により選択された記憶ユニット211に書込み指
令上発行し、さらに信号線261全通してデータ転送制
御回路203に書込み処理を行うよう指示する。
The command 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 issues the data transfer control circuit 203 through the signal line 261. instructs to perform write processing.

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

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

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

書込み動作中に上位装置10の障害が発生すると、上位
装置10は信号線251、上位装置接続回路202、信
号線252全通して障害検出回路201に上位装置の障
害が発生したことを通知する。また、上位装置10から
障害発生が通知されない場合でも障害検出口%201は
上位装置接続回路202、信号線252を通して信号線
251の動作状況から上位装置lOの障害を検出するこ
とができる。障害検出回路201は上位装置lOの障害
が発生したことを検出すると信号線253を有効にして
反転回路205にこれケ通知する。反転回路205は信
号線253が有効であるときEOO生成回路204によ
り生成された誤り検出訂正コードを反転させ、記憶ユニ
ット211に転送する。
When a failure occurs in the host device 10 during a write operation, the host device 10 notifies the failure detection circuit 201 through the signal line 251, the host device connection circuit 202, and the signal line 252 that a failure has occurred in the host device. Furthermore, even when the occurrence of a fault is not notified from the host device 10, the fault detection port % 201 can detect a fault in the host device 1O from the operating status of the signal line 251 through the host device connection circuit 202 and the signal line 252. When the fault detection circuit 201 detects that a fault has occurred in the host device 10, it enables the signal line 253 and notifies the inverting circuit 205 of this fact. The inversion circuit 205 inverts the error detection and correction code generated by the EOO generation circuit 204 when the signal line 253 is valid, and transfers it to the storage unit 211 .

一方、読取V動作においても書込み命令の場合と同様に
上位装置1oより位置決め命令が発行され、続いて読取
り命令が発行される。
On the other hand, in the read V operation as well, the host device 1o issues a positioning command, followed by a read command, as in the case of the write command.

命令実行制御回w5207が読取り命令を受取ると、信
号線264.記憶ユニット選択回fN5206、信号線
271を通して記憶ユニット211に読取9指令を発行
し、さらに信号線261全通し′てデータ転送制御回路
203にm@り処理を行うよう指示する。
When the instruction execution control circuit w5207 receives a read instruction, the signal line 264. The storage unit selection circuit fN5206 issues a read 9 command to the storage unit 211 through the signal line 271, and further instructs the data transfer control circuit 203 to perform m@ processing through the signal line 261.

記憶ユニット211から読取られたデータは信号線27
11記憶ユニット選択回w1206、信号線260.デ
ータ転送制御回路203、信号線255、上位装置接続
回路202、信号線251全通して上位装置lOに転送
される。
The data read from the storage unit 211 is transferred to the signal line 27.
11 storage unit selection circuit w1206, signal line 260. The data is transferred to the higher-level device IO through the data transfer control circuit 203, signal line 255, higher-level device connection circuit 202, and signal line 251.

また記憶ユニット211から耽堰られたデータおよび誤
り検出訂正コードは信号線260全通して第1読増9誤
り検査回路208および第2読取り誤り検査回路209
に送られる。第1読取り検査回路208においては記憶
ユニット211から送られた誤り検出訂正コード全反転
させないで、また第2読棺り誤り検査回路209にお込
ては誤り検出訂正コード全反転させて読取り誤りの検査
を行う。
Furthermore, the data and error detection and correction codes received from the storage unit 211 are passed through the entire signal line 260 to the first reading error checking circuit 208 and the second reading error checking circuit 209.
sent to. In the first reading error checking circuit 208, the error detection and correction code sent from the storage unit 211 is not completely inverted, and in the second reading error checking circuit 209, the error detection and correction code is completely inverted to detect reading errors. Perform inspection.

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

第1読取り誤り検査回路208において読取り誤りが検
出されていなければ、命令実行制御回路207は信号線
265、上位装置接続回路202、信号線251全通し
て上位装置10に正常に読取りが行なわれたことを通知
する。第1読取り誤り検査回路208において読取り誤
りが検出されている場合、第2読取り誤り検査回路20
9の状態を調べ、読取り誤りが検出されていなければ命
令実行制御回路207は読取られたデータの書込み時に
上位装置の障害が発生したため、データが正しく書込ま
れたものでないこと金上位装置lOに報告する。
If no reading error is detected in the first read error checking circuit 208, the instruction execution control circuit 207 indicates that the reading has been performed normally to the host device 10 through the signal line 265, the host device connection circuit 202, and the signal line 251. to notify you of this. If a reading error is detected in the first reading error checking circuit 208, the second reading error checking circuit 208
9, and if no read error is detected, the instruction execution control circuit 207 informs the host device 10 that the data was not written correctly because a failure occurred in the host device when writing the read data. Report.

第2読取り誤り検査回路209においても読取り誤ジが
検出されているとき、命令実行制御回路207は誤り訂
正あるいは読取り再試行を試みても前述のいずれかの状
態とならない場合、耽増りが不可能であることを上位装
置lOに通知する。
When a read error is also detected in the second read error check circuit 209, the instruction execution control circuit 207 determines that if one of the above states does not occur even if error correction or read retry is attempted, the indulgence is not detected. Notify the higher-level device IO that it is possible.

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

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

第1図は本発明による周辺記憶装置の一実施例をブロッ
ク的に示した回路図である。 10・・・上位装置  20・・・周辺記憶装置201
・・・障害検出回路 202・・・上位装置接続回路 203・・・データ転送制御回路 204・・・E 00生成回路 205・・・反転回路 206・・・記憶ユニット接続回路 207・・・命令実行制御回路
FIG. 1 is a circuit diagram showing in block form one embodiment of a peripheral storage device according to the present invention. 10... Host device 20... Peripheral storage device 201
...Failure detection circuit 202...Upper device connection circuit 203...Data transfer control circuit 204...E00 generation circuit 205...Inversion circuit 206...Storage unit connection circuit 207...Instruction execution control circuit

Claims (1)

【特許請求の範囲】[Claims] 上位装置の障害が発生したことを検出する障害検出手段
と、データに付加されて記録媒体に書込まれる誤り検出
訂正コードを生成する誤り検出訂正コード生成手段と、
データの書込み時に前記障害検出手段により上位装置の
障害が検出されたとき前記誤り検出訂正コード生成手段
の出力を反転して誤り検出訂正コードの書込みを行う反
転手段と、記録媒体からのデータの読取り時にデータに
付加されている誤り検出訂正コードを用いて読取り誤り
の検査を行う第1読取り誤り検査手段と、データに付加
されている誤り検出訂正コードを反転したのち読取り誤
りの検査を行う第2読取り誤り検査手段とを含んで構成
したことを特徴とする周辺記憶装置。
a failure detection means for detecting the occurrence of a failure in the host device; an error detection and correction code generation means for generating an error detection and correction code that is added to the data and written on the recording medium;
an inverting means for writing an error detection and correction code by inverting the output of the error detection and correction code generation means when a fault in the host device is detected by the fault detection means during data writing; A first reading error checking means for checking for reading errors using an error detection and correction code added to the data; and a second reading error checking means for checking for reading errors after inverting the error detection and correction code added to the data. A peripheral storage device comprising: reading error checking means.
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 true JPS6310378A (en) 1988-01-16
JP2503981B2 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)

Citations (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

Patent Citations (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
JP2503981B2 (en) 1996-06-05

Similar Documents

Publication Publication Date Title
US3735105A (en) Error correcting system and method for monolithic memories
JPS6310378A (en) Peripheral memory device
KR950012495B1 (en) Memory device diagnosis apparatus and method thereof
JPS6051142B2 (en) Logging error control method
JPH05324487A (en) Memory control system
JPH01156834A (en) Diagnosing system for check circuit
JPH04239355A (en) Electronic disk device
JPH04125753A (en) On-lined diagnostic system for memory
JPH02238539A (en) Memory control system
JPS6051144B2 (en) Alternate memory inspection method
JPH0216658A (en) Memory device
JPS6356751A (en) Memory patrol control system
JPH01309421A (en) Error correction system
JP2000207289A (en) Data error detecting system and its method
JPS6223336B2 (en)
JPS63177240A (en) Control system for memory diagnosis
JPS61161563A (en) Storage device
JPH0368035A (en) Information processor
JPS6142033A (en) Information processor
JPH0529934B2 (en)
JPH04115338A (en) Alternating memory system
JPS5953949A (en) Patrolling system
JPS5823679B2 (en) Storage device
JPH02178862A (en) Information processor
JPS6320643A (en) Error detecting circuit

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term