JPS6316776B2 - - Google Patents

Info

Publication number
JPS6316776B2
JPS6316776B2 JP57218029A JP21802982A JPS6316776B2 JP S6316776 B2 JPS6316776 B2 JP S6316776B2 JP 57218029 A JP57218029 A JP 57218029A JP 21802982 A JP21802982 A JP 21802982A JP S6316776 B2 JPS6316776 B2 JP S6316776B2
Authority
JP
Japan
Prior art keywords
circuit
data
conversion
code
error detection
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
Application number
JP57218029A
Other languages
Japanese (ja)
Other versions
JPS59108150A (en
Inventor
Masahiro Takano
Tokuhiro Tsukyama
Shinichi Arai
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP57218029A priority Critical patent/JPS59108150A/en
Publication of JPS59108150A publication Critical patent/JPS59108150A/en
Publication of JPS6316776B2 publication Critical patent/JPS6316776B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2215Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test error correction or detection circuits
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Detection And Correction Of Errors (AREA)

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、診断方式に関し、特に符号変換回路
と誤り検出・訂正回路の診断に好適な診断方式に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to a diagnostic method, and particularly to a diagnostic method suitable for diagnosing code conversion circuits and error detection/correction circuits.

〔従来技術〕[Prior art]

従来、コンピユータ等の情報処理装置に用いら
れるメイン・メモリや外部メモリ、あるいはデー
タ伝送系では、符号変換回路、誤り検出・訂正回
路が用いられており、信頼性の改善に役立つてい
る。これらの符号変換回路や誤り検出・訂正回路
を診断する方法として、従来から擬似的な誤りを
発生させることにより、符号変換機能、誤り検出
機能および誤り訂正機能をテストする方法が提案
されている。
Conventionally, code conversion circuits and error detection/correction circuits have been used in main memory, external memory, or data transmission systems used in information processing devices such as computers, and are useful for improving reliability. As a method for diagnosing these code conversion circuits and error detection/correction circuits, a method has conventionally been proposed in which the code conversion function, error detection function, and error correction function are tested by generating pseudo errors.

従来の診断方式の一例として、磁気テープ制御
装置の診断を、第1図により説明する。
As an example of a conventional diagnostic method, diagnosis of a magnetic tape control device will be explained with reference to FIG.

第1図には、磁気テープ制御装置20の内部デ
ータ・パスと磁気テープ装置6が示されている。
6250RPIのGCR(Group Coded Recording)方
式では、4ビツトのデータを5ビツトのデータに
変換し、この5ビツトの記録情報をNRZI方式で
磁気テープ上に書き込む。5ビツトに変換された
データ中では、“0”が2ビツトしか連続しない
ように構成され、PE方式と同じように自己同期
方式の復調回路が使用できるようになつている。
1, the internal data path of magnetic tape controller 20 and magnetic tape unit 6 are shown.
In the GCR (Group Coded Recording) method of 6250RPI, 4-bit data is converted to 5-bit data, and this 5-bit recording information is written on a magnetic tape using the NRZI method. In the data converted to 5 bits, only 2 bits of "0" are consecutive, so that a self-synchronizing demodulation circuit can be used like the PE method.

書き込みデータWDは、セレクタ2を通じて
ECC生成回路1で発生したエラー修正用のECC
(Error Correcting Code)バイトを付加した後、
4−5変換回路3により符号変換され、さらに変
調回路4によりNRZI符号に変調されて磁気テー
プ装置6に送り込まれる。一方、磁気テープ装置
6で読み取られたデータは、磁気テープ制御装置
20の復調回路7で復調され、5−4変換回路8
で逆変換された後、誤り検出・訂正回路9に送ら
れる。ここで、誤りが検出された場合には、
ECCを用いて誤り訂正が行われる。6250RPIの
GCR方式では、7バイトのデータに1バイトの
ECCを付加し、2トラツクにわたつて同時に発
生した誤りでも、修正できるようにしている。
Write data WD is sent through selector 2.
ECC for error correction that occurred in ECC generation circuit 1
After appending the (Error Correcting Code) byte,
The signal is code-converted by the 4-5 conversion circuit 3, further modulated into the NRZI code by the modulation circuit 4, and sent to the magnetic tape device 6. On the other hand, the data read by the magnetic tape device 6 is demodulated by the demodulation circuit 7 of the magnetic tape control device 20, and is demodulated by the 5-4 conversion circuit 8.
After being inversely transformed, the signal is sent to the error detection/correction circuit 9. If an error is detected here,
Error correction is performed using ECC. 6250RPI
In the GCR method, 1 byte is added to 7 bytes of data.
ECC is added to make it possible to correct errors that occur simultaneously across two tracks.

第1図において、誤り検出・訂正回路9の診断
を行う場合、マイクロプロセツサ10の出力によ
りアンド回路9を制御して、変調回路4の出力を
強制的に閉じ、磁気テープ装置6への出力に擬似
的に障害を発生させ、これを入力とすることによ
り、磁気テープ装置6、復調回路7、および5−
4変換回路8を経由して、誤り検出・訂正回路9
で上記擬似障害を検出・訂正させている。しか
し、この方法では、(1)変調回路4の出力側にアン
ド回路5を設ける必要があり、ハードウエアが増
加する。(2)アンド回路5を閉じる指示は、診断実
行中にマイクロプロセツサ10により行われる
が、このマイクロプロセツサ10はプログラム制
御で動作するため、マイクロプロセツサ8の処理
速度がデータ転送速度より遅くなり、データと同
期をとることが難しく、1つのデータ・ブロツク
中の任意のデータに対して擬似障害を起すことが
困難である。(3)上記(2)の理由によつて、通常は、
データ転送を行う前からアンド回路5を閉じるこ
とになるが、これではデータ・ブロツクの始めか
ら擬似障害が発生することになる。つまり、障害
が発生したトラツクについては、全くデータが入
力されないので、5−4変換回路8は動作せず、
したがつて、5−4変換回路8の内部の誤り検出
に関係する部分の診断ができない。等の欠点があ
る。
In FIG. 1, when diagnosing the error detection/correction circuit 9, the output of the microprocessor 10 controls the AND circuit 9, forcibly closes the output of the modulation circuit 4, and outputs the signal to the magnetic tape device 6. By generating a pseudo fault in the magnetic tape device 6, demodulation circuit 7, and 5-
Error detection/correction circuit 9 via conversion circuit 8
The pseudo-failure mentioned above is detected and corrected. However, in this method, (1) it is necessary to provide an AND circuit 5 on the output side of the modulation circuit 4, which increases the amount of hardware. (2) The instruction to close the AND circuit 5 is issued by the microprocessor 10 during diagnosis execution, but since the microprocessor 10 operates under program control, the processing speed of the microprocessor 8 is slower than the data transfer speed. Therefore, it is difficult to synchronize with the data, and it is difficult to cause a pseudo failure to any data in one data block. (3) For the reason mentioned in (2) above, usually,
Although the AND circuit 5 is closed before data transfer, a pseudo failure occurs from the beginning of the data block. In other words, no data is input to the faulty track, so the 5-4 conversion circuit 8 does not operate.
Therefore, the portion related to error detection inside the 5-4 conversion circuit 8 cannot be diagnosed. There are drawbacks such as.

また、誤り検出・訂正回路9の診断を行う他の
方法としては、第1図の一部を変更して第2図の
ように構成し、ECCを任意に設定する方法があ
る。すなわち、第1図のECC生成回路1とセレ
クタ2の間に別個のセレクタ12を接続し、診断
時には、書き込みデータWDを入力するととも
に、セレクタ12でECCレジスタ11側を選択
し、データWDに付加されるECCをデータから生
成するかわりに、マイクロプロセツサ10で任意
に発生し、これをECCレジスタ11にセツトし
てセレクタ2でデータにこれを付加する。このよ
うに、任意にECCを設定することにより、擬似
的に障害を発生させ診断を行う方法であつて、こ
れは、誤り検出・訂正にECCを用いることを利
用したものである。しかし、この方法では、(1)
ECを任意に設定するためセレクタ12、ECCレ
ジスタ11等のハードウエアが必要である。(2)1
つのブロツク中の任意の部分で障害を起させるた
めには、ECCの付加されるタイミングと同期を
とつて、ECCを設定する必要がある。(3)データ
自体に擬似障害を起すことができない。等の欠点
がある。
Another method for diagnosing the error detection/correction circuit 9 is to modify a part of the circuit shown in FIG. 1 to configure it as shown in FIG. 2, and to arbitrarily set the ECC. That is, a separate selector 12 is connected between the ECC generation circuit 1 and the selector 2 in FIG. Instead of generating the ECC from data, the microprocessor 10 generates it arbitrarily, sets it in the ECC register 11, and selector 2 adds it to the data. In this way, by arbitrarily setting ECC, it is a method of simulating failure and diagnosis, and this method utilizes the use of ECC for error detection and correction. However, with this method, (1)
In order to arbitrarily set the EC, hardware such as a selector 12 and an ECC register 11 is required. (2)1
In order to cause a failure in any part of a block, it is necessary to set the ECC in synchronization with the timing at which the ECC is added. (3) It is not possible to cause pseudo failures in the data itself. There are drawbacks such as.

さらに、誤り検出・訂正回路の診断を行う他の
方法としては、第2図のマイクロプロセツサ10
のかわりに保安パネルより任意のECCを発生す
る方法(特開昭55−162162号公報参照)、あるい
は、書き込みデータをそのまま読み取り回路にバ
イパスさせ、媒体を使用せずに読取り時の回路の
診断を行う方法(特開昭53−122341号公報参照)、
あるいはECC発生回路に診断データを与えて、
エラーを含むECCを発生させ、誤り検出・訂正
回路、ECC発生回路の診断を行う方法(特開昭
52−94744号公報参照)等がある。
Furthermore, as another method for diagnosing the error detection/correction circuit, the microprocessor 10 shown in FIG.
Instead, there is a method of generating arbitrary ECC from the security panel (see Japanese Patent Application Laid-open No. 162162/1983), or bypassing the write data as it is to the reading circuit, and diagnosing the circuit during reading without using the medium. method (see Japanese Patent Application Laid-Open No. 53-122341),
Or give diagnostic data to the ECC generation circuit,
A method of generating ECC including errors and diagnosing error detection/correction circuits and ECC generation circuits (Unexamined Japanese Patent Publication No.
52-94744).

しかし、いずれも前記と同じ欠点を有している
ため、最良の改善策とは云えない。
However, since both have the same drawbacks as mentioned above, they cannot be said to be the best solution.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、これら従来の欠点を解消する
ため、データの流れに同期をとることなく、デー
タ中の任意の箇所に擬似的な障害を起し、符号変
換回路および誤り検出・訂正回路の故障診断を簡
単な回路で実現できる診断方式を提供することに
ある。
The purpose of the present invention is to eliminate these conventional drawbacks by creating a pseudo failure at any point in the data without synchronizing the data flow, and by causing a pseudo fault to occur at any point in the data, thereby reducing the code conversion circuit and error detection/correction circuit. An object of the present invention is to provide a diagnostic method that can realize failure diagnosis with a simple circuit.

〔発明の概要〕[Summary of the invention]

本発明の診造方式は、ECCが付加されたデー
タを符号変換して出力するとともに、入力したデ
ータを符号逆変換して誤り検出・訂正を行う装置
において、符号変換回路に外部の指示により未定
義の符号パターンに変換して出力する回路を設
け、かつ装置の出力を入力に戻す通路を形成し
て、符号逆変換回路および誤り検出・訂正回路の
診断を行うことに特徴がある。
The diagnostic method of the present invention is a device that converts and outputs data to which ECC has been added, and also performs code inversion of input data to detect and correct errors. The present invention is characterized by providing a circuit for converting into a defined code pattern and outputting it, and forming a path for returning the output of the device to the input, thereby diagnosing the code inverse conversion circuit and the error detection/correction circuit.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明を磁気テープ制御装置の自己診断
に適用した場合を例にとつて説明する。第3図
は、本発明の実施例を示す磁気テープ制御装置内
のブロツク図である。
Hereinafter, a case where the present invention is applied to self-diagnosis of a magnetic tape control device will be described as an example. FIG. 3 is a block diagram inside a magnetic tape control device showing an embodiment of the present invention.

第3図において、チヤネル・バツフア16は、
自己診断実行時のライト・データを格納するメモ
リであつて、電源投入に伴なう起動信号Sにより
マイクロプロセツサ10が診断プログラムを実行
し、メモリ13から読み出されたテスト・データ
がセレクタ15を通してこのチヤネル・バツフア
16に書き込まれる。このテスト・データは、チ
ヤネル・バツフア16から順次出されて、ECC
付加回路17でECCが付加され、4−5変換回
路23で符号変換された後、変調回路4で変調さ
れる。自己診断時には、変調回路4の出力をセレ
クタ14を通してそのまま復調回路7へ入力し、
5−4変換回路8、誤り検出・訂正回路9を経由
したデータをマイクロプロセツサ10に取り込
み、上記チヤネル・バツフア16へ書き込んだ時
のデータとコンベアを行うことで上記各回路の診
断を行い、故障があれば装置外部へ、LEDの点
滅等により報告する。なお、磁気テープでは、9
トラツクで記録するため、3〜9の各回路は、1
データ9ビツト(データ8ビツト+パリテイ1ビ
ツト)分のデータを並列に処理できるよう9回路
分の論理を備えている。
In FIG. 3, the channel buffer 16 is
A memory that stores write data when executing self-diagnosis.The microprocessor 10 executes a diagnostic program in response to a start signal S when the power is turned on, and the test data read from the memory 13 is sent to the selector 15. is written to this channel buffer 16 through. This test data is sequentially output from channel buffer 16 and is
An additional circuit 17 adds ECC, a 4-5 conversion circuit 23 converts the code, and a modulation circuit 4 modulates the signal. During self-diagnosis, the output of the modulation circuit 4 is directly input to the demodulation circuit 7 through the selector 14,
5-4 The data that has passed through the conversion circuit 8 and the error detection/correction circuit 9 is taken into the microprocessor 10, and the data written to the channel buffer 16 is conveyed to diagnose each of the above circuits. If there is a failure, it is reported to the outside of the device by flashing LEDs, etc. In addition, with magnetic tape, 9
In order to record by track, each circuit from 3 to 9 has 1
It is equipped with logic for nine circuits so that 9 bits of data (8 bits of data + 1 bit of parity) can be processed in parallel.

4−5変換回路23は、各々のトラツクについ
て、シリアルに入力した4ビツトのデータを一定
の規則のもとに符号変換を行い、5ビツトのデー
タとしてシリアルに出力する。この4−5変換に
は、変換後の5ビツトには0が3つ以上続くパタ
ーンが存在しないという規則があるため、従来の
4−5変換回路においては、0が3つ以上続くパ
ターンが出力されることはなかつた。これに対
し、本実施例の4−5変換回路23は、マイクロ
プロセツサ10からの指示線24を持ち、この指
示線24が“0”の時は従来と同様の4−5変換
を行うが、指示線24が“1”で、かつ入力デー
タ4ビツトのうち前半の3ビツトが“0”である
時は出力5ビツトの全てを“0”、即ち通常の4
−5変換では未定義のパターンを出力する。
The 4-5 conversion circuit 23 performs code conversion on serially inputted 4-bit data for each track based on certain rules, and serially outputs it as 5-bit data. There is a rule in this 4-5 conversion that there is no pattern in which three or more 0's follow in the 5 bits after conversion, so in the conventional 4-5 conversion circuit, a pattern that continues three or more 0's is output. It was never done. On the other hand, the 4-5 conversion circuit 23 of this embodiment has an instruction line 24 from the microprocessor 10, and when this instruction line 24 is "0", it performs the same 4-5 conversion as the conventional one. , when the instruction line 24 is “1” and the first three bits of the four input data bits are “0”, all five output bits are “0”, that is, the normal four bits are “0”.
-5 conversion outputs an undefined pattern.

第5図に、GCR変換図を示す。第5図に示す
ように、データ0000〜1111の値は4−5変換回路
23で、11001〜01111のレコード値に変換され
る。レコード値は“0”が2ビツトしか連続しな
いので、NRZI方式でテープに書き込んでも、PE
方式と同じように自己同期方式の復調回路7が使
用できる。なお、データ値4ビツトは、各トラツ
クでデータ・サブグループAとBで8ビツトを形
成し、サブグループBの最後のビツトをECCビ
ツトにする。トラツク4にはパリテイ・ビツト8
ビツトを配列する。また、レコード値5ビツト
は、ストレージ・サブグループAとBで10ビツト
を形成して、磁気テープに書き込まれる。
Figure 5 shows a GCR conversion diagram. As shown in FIG. 5, the values of data 0000 to 1111 are converted into record values of 11001 to 01111 by the 4-5 conversion circuit 23. Since the record value has only 2 consecutive 0 bits, even if it is written to tape using the NRZI method, the PE
A self-synchronizing demodulation circuit 7 can be used in the same manner as in the above method. Note that the 4-bit data value forms 8 bits in data subgroups A and B for each track, with the last bit in subgroup B being the ECC bit. Parity bit 8 on track 4
Arrange bits. Also, the 5-bit record value is written to the magnetic tape with storage subgroups A and B forming 10 bits.

第3図の実施例では、自己診断時にデータ値の
うち☆印の“0001”を入力したとき“11011”に
変換されずに“00000”に変換されるようにする。
In the embodiment shown in FIG. 3, when a data value "0001" marked with a star is input during self-diagnosis, it is not converted to "11011" but to "00000".

5−4変換回路8は、4−5変換と逆の動作を
行い、入力5ビツトを4ビツトの出力に変換す
る。この回路8は、通常でも上記の様な未定義パ
ターンの5ビツトを入力した場合には、出力4ビ
ツト全てが“0”となるパターンを出力し、同時
に未定義パターンを入力した事を後段の誤り検
出・訂正回路9へ報告する。
The 5-4 conversion circuit 8 performs an operation opposite to the 4-5 conversion, converting 5 bits of input into a 4-bit output. Normally, this circuit 8 outputs a pattern in which all 4 bits are "0" when inputting 5 bits of an undefined pattern like the one described above, and at the same time, the input of an undefined pattern is detected at the subsequent stage. It is reported to the error detection/correction circuit 9.

上記の様な回路で自己診断を行う場合、マイク
ロプロセツサ10は、診断用にチヤネルバツフア
16にセツトする一連のデータの中で、擬似障害
を起したいトラツクの該当個所にだけ“0001”と
いう4ビツトのパターンを予め入れておく。そし
て、指示線24を“1”としライト(WR)の指
示を出す。これにより、チヤネルバツフア16の
データが17〜9を経由する動作が開始される
が、この時4−5変換回路23は上記の“0001”
というパターンを入力すると“00000”なるパタ
ーンを出力する。このデータは、回路4〜7を経
由して5−4変換回路8に与えられ、未定義パタ
ーンとして“0000”なるデータに変換され、同時
に未定義パターンを入力したことが誤り検出・訂
正回路9に報告される。この場合、書き込まれた
パターン“0001”と読み出されたパターン
“0000”が異なるので、5−4変換回路8ならび
に誤り検出・訂正回路9が正常であれば、障害が
1トラツクだけの時にはパリテイビツトとECC
を用いて、2トラツクの時にはさらに上記の未定
義パターンを入力したという情報をも用いて、回
路9により誤りが検出され訂正されて、マイクロ
プロセツサ10は書き込んだデータと全く同じデ
ータを受け取ることができる。
When performing self-diagnosis with a circuit such as the one described above, the microprocessor 10, among the series of data set in the channel buffer 16 for diagnosis, sets the 4-bit value "0001" only in the corresponding part of the track where a pseudo failure is to occur. Insert the pattern in advance. Then, the instruction line 24 is set to "1" to issue a write (WR) instruction. As a result, the data in the channel buffer 16 starts to pass through the channels 17 to 9, but at this time, the 4-5 conversion circuit 23 converts to the above "0001".
If you input the pattern "00000", it will output the pattern "00000". This data is given to the 5-4 conversion circuit 8 via circuits 4 to 7, where it is converted into data "0000" as an undefined pattern, and at the same time, the error detection/correction circuit 9 detects that an undefined pattern has been input. will be reported. In this case, the written pattern "0001" and the read pattern "0000" are different, so if the 5-4 conversion circuit 8 and the error detection/correction circuit 9 are normal, the parity bit will be correct when the fault is only in one track. and ECC
By using the information that the above-mentioned undefined pattern has been input when there are two tracks, the error is detected and corrected by the circuit 9, and the microprocessor 10 receives exactly the same data as the written data. Can be done.

このように指示線24と特定のデータパターン
により、データ中に擬似的に障害を発生させ、5
−4変換回路と誤り検出・訂正回路の診断を行う
ことができる。しかも与えるデータの中に予め特
定のパターンを入れておくことで、その部分だけ
に擬似障害を発生させることができるため、回路
16〜4の間のデータの流れに同期をとることな
く、1つのデータブロツク中の任意のトラツクの
任意の部分に擬似障害を発生させることが可能で
ある。
In this way, by using the instruction line 24 and a specific data pattern, a pseudo failure is caused in the data, and 5
-4 Conversion circuit and error detection/correction circuit can be diagnosed. Moreover, by including a specific pattern in advance in the data to be provided, it is possible to generate a pseudo failure only in that part, so there is no need to synchronize the data flow between circuits 16 to 4. It is possible to create a false fault on any part of any track in a data block.

本実施例における4−5変換回路23は第4図
に示すごとく、従来の4−5変換の部分26に簡
単なハードウエアを追加するだけで実現できる。
すなわち、第4図において、通常は、マイクロプ
ロセツサ10からの指示ODは“0”であるた
め、入力4ビツト(IN4B)の値にかかわらずナ
ンド回路29の出力は“1”となり、アンド回路
27を開くことによつて4−5変換部26で第5
図に示すレコード値(OUT5B)に変換され、そ
のまま出力される。自己診断時には、マイクロプ
ロセツサ10からの指示ODは“1”となるた
め、入力4ビツト(IN4B)の前3ビツトが
“0”のときのみインバータ28により“1”に
逆転され、ナンド回路29の出力が“0”となつ
てアンド回路27を閉じる。これによつて、4−
5変換部26の出力変換値にかかわらず、出力
(OUT5B)はオール“0”となる。
The 4-5 conversion circuit 23 in this embodiment can be realized by simply adding simple hardware to the conventional 4-5 conversion section 26, as shown in FIG.
That is, in FIG. 4, since the instruction OD from the microprocessor 10 is normally "0", the output of the NAND circuit 29 is "1" regardless of the value of the input 4 bits (IN4B), and the AND circuit By opening 27, the 4-5 converter 26 converts the fifth
It is converted to the record value (OUT5B) shown in the figure and output as is. During self-diagnosis, the instruction OD from the microprocessor 10 is "1", so only when the first 3 bits of the input 4 bits (IN4B) are "0", it is inverted to "1" by the inverter 28, and the NAND circuit 29 The output becomes "0" and the AND circuit 27 is closed. By this, 4-
Regardless of the output conversion value of the 5 conversion unit 26, the output (OUT5B) is all "0".

なお、従来の4−5変換部26をP−ROMで
実現すれば、第4図に示すような論理回路の追加
は不要となり、単にP−ROM中の“0001”に対
応する値を“00000”に設定しておくだけでよい。
Note that if the conventional 4-5 converter 26 is implemented with a P-ROM, there is no need to add a logic circuit as shown in FIG. 4, and the value corresponding to "0001" in the P-ROM is simply changed to "00000 ” Just set it to ”.

このようにして、自己診断時に、擬似障害を含
むトラツクのデータが誤り検出・訂正回路9を通
つて、チヤネル・バツフア16に再び格納される
と、マイクロプロセツサ10の診断プログラムに
より書き込んだデータと格納されたデータとを比
較し、一致すれば、5−4変換回路8と誤り検
出・訂正回路9の機能が正常であることを判別で
きる。すなわち、6250RPIのチエツク・キヤラク
タには、ECCキヤラクタ、Auxiliary CRCキヤ
ラクタおよびCRCキヤラクタがある。これらの
うち、ECCキヤラクタは各データ・グループの
最後のビツト(4トラツク目はパリテイ・ビツト
のため除かれる)を用いて作成され、誤り訂正回
路9は、このECCキヤラクタと各キヤラクタの
パリテイおよび各トラツクのエラー・ポインタに
より、2トラツク同時の誤り修正を行う。したが
つて、5−4変換回路8が、未定義パターンの入
力によりこれを“0000”のデータに変換して誤り
検出・訂正回路9に報告すると、訂正回路9はそ
の誤りトラツク“0000”が誤りのため、正しいビ
ツト“0001”に修正してチヤネル・バツフア16
に格納するので、比較が一致したときには、両回
路8,9ともに正常動作することになる。これに
対して、5−4変換回路8が異常のときには、未
定義パターンが入力しても何らかのデータに変換
して出力する。誤りトラツクが1トラツクの時に
はそれでも修正されるので、故障は検出されない
が、同様にして2トラツクに誤りを生じさせれ
ば、未定義パターンを入力したという情報が得ら
れないために訂正できないことから正しいビツト
“0001”に修正されないままチヤネル・バツフア
16に格納される。
In this way, during self-diagnosis, when the data of the track containing the pseudo fault passes through the error detection/correction circuit 9 and is stored again in the channel buffer 16, the data written by the diagnostic program of the microprocessor 10 and the The data is compared with the stored data, and if they match, it can be determined that the functions of the 5-4 conversion circuit 8 and the error detection/correction circuit 9 are normal. That is, the 6250RPI check characters include an ECC character, an Auxiliary CRC character, and a CRC character. Of these, the ECC character is created using the last bit of each data group (the fourth track is excluded because it is a parity bit), and the error correction circuit 9 uses this ECC character, the parity of each character, and each Simultaneous error correction of two tracks is performed using the track error pointer. Therefore, when the 5-4 conversion circuit 8 inputs an undefined pattern and converts it into data "0000" and reports it to the error detection/correction circuit 9, the correction circuit 9 detects the error track "0000". Due to an error, correct the bit to “0001” and set the channel buffer to 16.
Therefore, when the comparison results in a match, both circuits 8 and 9 will operate normally. On the other hand, when the 5-4 conversion circuit 8 is abnormal, even if an undefined pattern is input, it is converted into some data and output. If there is only one error track, it will still be corrected, so no failure will be detected, but if an error occurs in two tracks in the same way, it will not be possible to correct it because no information that an undefined pattern has been input will be obtained. It is stored in the channel buffer 16 without being corrected to the correct bit "0001".

また、5−4変換回路8で正常で“0000”を出
力しても、誤り検出・訂正回路9が異常動作すれ
ば、やはり正しいビツト“0001”に修正されな
い。修正不可能な場合、外部に誤り表示を行うこ
とも勿論可能である。
Further, even if the 5-4 conversion circuit 8 normally outputs "0000", if the error detection/correction circuit 9 operates abnormally, the bit will not be corrected to the correct bit "0001". If correction is not possible, it is of course possible to display the error externally.

このように、チヤネル・バツフア16に再び格
納されたデータと最初に格納されたデータが不一
致のときには、5−4変換回路8あるいは誤り検
出・訂正回路9のいずれか一方、または両方が障
害ないし誤動作したことになる。
In this way, when the data stored again in the channel buffer 16 and the data stored for the first time do not match, either one or both of the 5-4 conversion circuit 8 or the error detection/correction circuit 9 may fail or malfunction. That means you did it.

なお、第3図の磁気テープ制御装置において、
通常時、チヤネルCHからのコマンドや書き込み
データが送られてくると、セレクタ15をチヤネ
ルCH側に選択してチヤネル・バツフア16にこ
れを格納する。また、磁気テープから読み取つた
データは、5−4変換回路8、誤り検出・訂正回
路9を通り、セレクタ15を誤り検出・訂正回路
9側に選択することにより、バイパスしてチヤネ
ル・バツフア16に一旦格納された後、チヤネル
CHに送出される。
In addition, in the magnetic tape control device shown in FIG.
Normally, when a command or write data is sent from a channel CH, the selector 15 is selected to the channel CH side and the data is stored in the channel buffer 16. Further, the data read from the magnetic tape passes through the 5-4 conversion circuit 8 and the error detection/correction circuit 9, and by selecting the selector 15 to the error detection/correction circuit 9 side, the data is bypassed and sent to the channel buffer 16. Once stored, the channel
Sent to CH.

従来は、マイクロプロセツサ10のプログラム
制御によりデータの流れに外部から同期をとつて
擬似障害を発生させていたのに対して、本発明で
は、プログラム制御によりデータの中に擬似パタ
ーンを発生させておき、そのパターンがチヤネ
ル・バツフア16に格納された後、順次読み出さ
れる前に、診断動作の開始指示(OD)を指示線
24を介して送出するので、同期をとることな
く、擬似障害を発生することができる。
Conventionally, a pseudo failure was generated by externally synchronizing the data flow under program control of the microprocessor 10, whereas in the present invention, a pseudo pattern is generated in data under program control. After the pattern is stored in the channel buffer 16 and before it is sequentially read out, a diagnostic operation start instruction (OD) is sent via the instruction line 24, so a pseudo failure occurs without synchronization. can do.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、データ
の流れに同期をとることなく、一連のデータの任
意の箇所で擬似障害を発生させて、符号変換回路
および誤り検出・訂正回路の診断を行うことがで
き、かつ符号変換回路にP−ROM等を用いるこ
とにより、簡単に実現することができる。
As explained above, according to the present invention, a pseudo failure is generated at any point in a series of data without synchronizing with the data flow, and a code conversion circuit and an error detection/correction circuit are diagnosed. This can be easily realized by using a P-ROM or the like as a code conversion circuit.

なお、実施例では、磁気テープ制御装置に適用
した場合を説明したが、主メモリ制御装置、他の
外部メモリ制御装置、および通信システム等にも
適用可能である。
In the embodiment, a case where the present invention is applied to a magnetic tape control device has been described, but it is also applicable to a main memory control device, other external memory control devices, communication systems, etc.

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

第1図は従来の磁気テープ制御装置のブロツク
図、第2図は第1図の一部を変更したブロツク
図、第3図は本発明の実施例を示す磁気テープ制
御装置のブロツク図、第4図は第3図の符号変換
回路の具体的構成図、第5図はGCR方式の符号
変換例を示す図である。 1:ECC生成回路、4:変調回路、7:復調
回路、8:5−4変換回路、9:誤り検出・訂正
回路、10:マイクロプロセツサ、13:メモ
リ、2,12,14,15:セレクタ、16:チ
ヤネル・バツフア、17:ECC付加回路、3,
23:4−5変換回路、26:変換部。
FIG. 1 is a block diagram of a conventional magnetic tape control device, FIG. 2 is a partially modified block diagram of FIG. 1, and FIG. 3 is a block diagram of a magnetic tape control device showing an embodiment of the present invention. FIG. 4 is a specific configuration diagram of the code conversion circuit shown in FIG. 3, and FIG. 5 is a diagram showing an example of code conversion using the GCR method. 1: ECC generation circuit, 4: Modulation circuit, 7: Demodulation circuit, 8: 5-4 conversion circuit, 9: Error detection/correction circuit, 10: Microprocessor, 13: Memory, 2, 12, 14, 15: Selector, 16: Channel buffer, 17: ECC addition circuit, 3,
23: 4-5 conversion circuit, 26: conversion section.

Claims (1)

【特許請求の範囲】 1 ECCが付加されたデータを符号変換して出
力するとともに、入力したデータを符号逆変換し
て誤り検出・訂正を行う装置において、外部から
の指示があつたときだけ、未定義の符号パターン
に変換して出力する符号変換回路、および上記出
力を符号逆変換の入力側に戻す回路を設けて、符
号逆変換回路と誤り検出・訂正回路の正常動作の
診断を行うことを特徴とする診断方式。 2 前記符号変換回路は、P−ROMで構成され
ることを特徴とする特許請求の範囲第1項記載の
診断方式。
[Claims] 1. In a device that converts and outputs ECC-added data and performs code inverse conversion of input data to detect and correct errors, only when an external instruction is received. A code conversion circuit that converts into an undefined code pattern and outputs it, and a circuit that returns the above output to the input side of the code inversion conversion are provided to diagnose the normal operation of the code inversion circuit and the error detection/correction circuit. A diagnostic method characterized by 2. The diagnostic method according to claim 1, wherein the code conversion circuit is constructed of a P-ROM.
JP57218029A 1982-12-13 1982-12-13 Diagnosing method Granted JPS59108150A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57218029A JPS59108150A (en) 1982-12-13 1982-12-13 Diagnosing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57218029A JPS59108150A (en) 1982-12-13 1982-12-13 Diagnosing method

Publications (2)

Publication Number Publication Date
JPS59108150A JPS59108150A (en) 1984-06-22
JPS6316776B2 true JPS6316776B2 (en) 1988-04-11

Family

ID=16713517

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57218029A Granted JPS59108150A (en) 1982-12-13 1982-12-13 Diagnosing method

Country Status (1)

Country Link
JP (1) JPS59108150A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020174768A1 (en) * 2019-02-26 2020-09-03 日立建機株式会社 Working machine

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03260841A (en) * 1990-03-12 1991-11-20 Fujitsu Ltd Code converter

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020174768A1 (en) * 2019-02-26 2020-09-03 日立建機株式会社 Working machine

Also Published As

Publication number Publication date
JPS59108150A (en) 1984-06-22

Similar Documents

Publication Publication Date Title
US6018817A (en) Error correcting code retrofit method and apparatus for multiple memory configurations
US4827478A (en) Data integrity checking with fault tolerance
JPH05166304A (en) Data checking method for array disk device
US4224681A (en) Parity processing in arithmetic operations
JPS6316776B2 (en)
JP2806856B2 (en) Diagnostic device for error detection and correction circuit
JPH0664858B2 (en) Reading circuit diagnostic method
JP4357373B2 (en) High reliability control device
JP2513615B2 (en) Storage device with ECC circuit
JPH05165734A (en) Fixed fault diagnostic device for main storage device
JPS5835284B2 (en) Data bus check method
SU744737A1 (en) Storage checking device
JP3045532B2 (en) Memory device
JPS60171525A (en) Memory controller
JPS62226353A (en) Storage device with ras circuit
SU940242A1 (en) Device for testing rapid-access storage units
JPS6352522A (en) Check system for conversion circuit
SU951407A1 (en) Device for checking memory error correcting units
JPS605474A (en) Ram input circuit for decoder of pcm recording and reproducing device
JPH0746484B2 (en) Error correction circuit diagnostic method
JPS61202381A (en) Disk controller
SU974410A1 (en) Device for recording and reproducing data from on-line memory units with error correction
JPS598061A (en) Diagnosing method of error correction and detection circuit
JPS6013492B2 (en) Error detection and correction method
JPS59139459A (en) Diagnostic system of logical unit