JPH0785608A - Storage device - Google Patents

Storage device

Info

Publication number
JPH0785608A
JPH0785608A JP23308193A JP23308193A JPH0785608A JP H0785608 A JPH0785608 A JP H0785608A JP 23308193 A JP23308193 A JP 23308193A JP 23308193 A JP23308193 A JP 23308193A JP H0785608 A JPH0785608 A JP H0785608A
Authority
JP
Japan
Prior art keywords
data
error detection
recording medium
storage
writing
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
JP23308193A
Other languages
Japanese (ja)
Inventor
Yukio Masubuchi
幸夫 舛渕
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP23308193A priority Critical patent/JPH0785608A/en
Publication of JPH0785608A publication Critical patent/JPH0785608A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a storage device capable of surely verifying that data are accurately stored in the storage device. CONSTITUTION:This device is provided with memory arrays 12 and 14 for storing inputted data and encoded data, the encoded data read from a storing mechanism 11 ares compared with data used for writing by a comparator circuit 18, and the coded data are compared with them by a comparator circuit 19. In the case when compared results from the comparator circuits 18 and 19 are matched with each other, it is judged that data are accurately stored in a recording medium by an error operation detecting circuit. The encoded data written in the recording medium by one head of a storage mechanism 11 having two heads are read by the other head, and the memory arrays 12 and 14 for storing plural set of data are provided, so that it is surely verified that data are accurately stored in the recording medium without reducing writing speed.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、記憶装置に係わり、特
に、データの書き込みが正確に行なわれていることを確
実に検証することができる記憶装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a storage device, and more particularly to a storage device capable of surely verifying that data is written correctly.

【0002】[0002]

【従来の技術】コンピュータなどの外部記憶装置には、
磁気ディスクや、光ディスクなどの記録媒体を用いた記
憶装置が使用されている。
2. Description of the Related Art In an external storage device such as a computer,
A storage device using a recording medium such as a magnetic disk or an optical disk is used.

【0003】図4に、記録媒体を用いる記憶装置の基本
的な構成を示す。この図において、記憶機構31は、記
録媒体と、その記録媒体へのデータの書き込みと、記録
媒体からの情報の読み出しを行う1つのヘッドを備えた
装置である。符号化回路33と変調回路34は、記録媒
体への情報の書き込みを行うための回路であり、復調回
路35と復号回路36は、情報の読み出しのための回路
である。コントローラ39は、図示していないホストと
の情報の転送や、各回路のタイミング調整を受け持つ回
路である。この図を用いて、記録媒体として磁気ディス
ク媒体を用いた記憶装置を例として、その動作を簡単に
説明する。まず、データを記憶するときの動作を説明す
る。
FIG. 4 shows a basic structure of a storage device using a recording medium. In this figure, the storage mechanism 31 is an apparatus including a recording medium and one head for writing data to the recording medium and reading information from the recording medium. The encoding circuit 33 and the modulation circuit 34 are circuits for writing information on a recording medium, and the demodulation circuit 35 and the decoding circuit 36 are circuits for reading information. The controller 39 is a circuit that is in charge of information transfer with a host (not shown) and timing adjustment of each circuit. The operation of the storage device using a magnetic disk medium as a recording medium will be briefly described with reference to FIG. First, the operation of storing data will be described.

【0004】記憶すべきデータとして、ホストより転送
されたデータは、コントローラ39を介して、符号化回
路33に入力される。符号化回路33は、入力されたデ
ータを基に、誤り検出訂正符号を作成し、作成した誤り
検出訂正符号を入力されたデータに付加し、それを変調
回路34に出力する。以下の説明においては、誤り検出
訂正符号が付加されたデータを符号化データと呼ぶこと
にする。変調回路34は、入力された符号化データを、
記録媒体への書き込みに適した形態に変調する。記憶機
構31は、変調回路34の出力する変調信号に応じた電
気信号を、その内部に設けられたヘッドに供給すること
により、変調信号に応じた磁化反転パターンを、記録媒
体上に形成する。この磁化反転パターン(記録パター
ン)の形成により、書き込み動作は完了する。
The data transferred from the host as data to be stored is input to the encoding circuit 33 via the controller 39. The encoding circuit 33 creates an error detection and correction code based on the input data, adds the created error detection and correction code to the input data, and outputs it to the modulation circuit 34. In the following description, the data to which the error detection and correction code is added will be referred to as encoded data. The modulation circuit 34 converts the input coded data into
Modulate into a form suitable for writing on a recording medium. The storage mechanism 31 supplies an electric signal corresponding to the modulation signal output from the modulation circuit 34 to a head provided therein, thereby forming a magnetization reversal pattern corresponding to the modulation signal on the recording medium. The writing operation is completed by forming the magnetization reversal pattern (recording pattern).

【0005】記録媒体からのデータの読み出しは、以下
のようにして行われる。まず、記録媒体上の磁化反転パ
ターンが、その記録パターンの書き込みを行ったヘッド
で、電気信号に変換される。復調回路35は、その電気
信号に対して、変調回路34における変換の逆変換を施
し、符号化データを出力する。復号化回路36は、その
復号化データ内の誤り検出訂正符号を基に、データに誤
りがあれば、その訂正を行い、訂正後のデータを出力す
る。誤り検出訂正符号の誤り訂正能力は、そのビット数
(データのビット数に対する比率)に依存する。記憶装
置では、通常、読み出されたデータに誤りが存在する確
率が、ある一定値以下になるような、ビット数の誤り検
出訂正符号が選択される。
The reading of data from the recording medium is performed as follows. First, the magnetization reversal pattern on the recording medium is converted into an electric signal by the head that has written the recording pattern. The demodulation circuit 35 performs the inverse conversion of the conversion in the modulation circuit 34 on the electric signal, and outputs the encoded data. If there is an error in the data, the decoding circuit 36 corrects the error based on the error detection / correction code in the decoded data, and outputs the corrected data. The error correction capability of the error detection / correction code depends on the number of bits (ratio of the number of data bits). In the storage device, an error detection / correction code having a bit number is usually selected so that the probability that an error exists in the read data is a certain value or less.

【0006】このように、従来の記憶装置では、読み出
されたデータに誤りが存在する確率が所定値以下となる
ように、誤り検出訂正符号が付加されている。しかし、
この符号を用いて行われる訂正は、自己訂正であり、書
き込んだデータ通りに読み出しが行われているかを判定
するものではない。このため、従来の記憶装置に重要な
データの記憶を行う際には、ホスト側で、転送したデー
タを記憶しておき、そのデータと読みだしたデータとの
比較を行うことにより、データが正確に記憶されたこと
の検証を行なっていた。
As described above, in the conventional storage device, the error detection / correction code is added so that the probability that an error exists in the read data is equal to or less than a predetermined value. But,
The correction performed using this code is a self-correction and does not determine whether the reading is performed according to the written data. Therefore, when important data is stored in a conventional storage device, the transferred data is stored on the host side and the data is compared with the read data to ensure that the data is accurate. I was verifying that it was remembered by.

【0007】また、このようなデータ検証の代わりに、
回路系の検証を行うものに、特開昭62−252580
号公報に提案されている装置がある。この記憶装置は、
記憶機構を除いた回路でループを形成し、そのループが
正常に機能しているか否かの判定を行うことにより、回
路系の検証を行なっている。
Further, instead of such data verification,
Japanese Patent Laid-Open No. 62-252580 for verifying a circuit system.
There is a device proposed in the publication. This storage device
The circuit is verified by forming a loop with the circuit excluding the memory mechanism and determining whether the loop is functioning normally.

【0008】図5に、特開昭62−252580号公報
記載の記憶装置の概要を示す。この記憶装置は、記録媒
体を用いた記憶機構31に記録を行なう記録系として、
メモリ32と符号化回路33と変調回路34を備え、再
生系として復調回路35と復号回路36を備える。ま
た、記憶装置31と変調回路34および復調回路25と
の間には、ループバック切換回路37が設けられ、メモ
リ32と復号化回路36の出力を比較する比較回路38
が設けられている。コントローラ39は、図示していな
いホストとの情報の転送や、各回路のタイミング調整を
行う。
FIG. 5 shows an outline of a storage device disclosed in Japanese Patent Laid-Open No. 62-252580. This storage device serves as a recording system for recording on a storage mechanism 31 using a recording medium.
A memory 32, an encoding circuit 33, and a modulation circuit 34 are provided, and a demodulation circuit 35 and a decoding circuit 36 are provided as a reproduction system. A loopback switching circuit 37 is provided between the storage device 31, the modulation circuit 34, and the demodulation circuit 25, and a comparison circuit 38 for comparing the outputs of the memory 32 and the decoding circuit 36.
Is provided. The controller 39 transfers information with a host (not shown) and adjusts the timing of each circuit.

【0009】回路系の検証を行なう場合には、ループバ
ック切換回路37を用いて、記憶機構31を介さない、
記録系と再生系とのループを形成する。検証のために入
力されたデータは、メモリ32に記憶されるとともに、
符号化回路33に送られ、ここで、誤り検出訂正符号が
付加される。その後、変調回路34により変調され、ル
ープバック切換回路37を通って、復調回路35で復調
され、復号化回路36で誤り検出とその訂正が行なわれ
る。そして、訂正後のデータとメモリ32内の、そのデ
ータの基となったデータとを、比較回路38で比較する
ことにより、ループ内の回路が正常に機能しているか否
かの判定を行っている。
When the circuit system is verified, the loopback switching circuit 37 is used and the storage mechanism 31 is not used.
A loop of the recording system and the reproducing system is formed. The data input for verification is stored in the memory 32 and
It is sent to the encoding circuit 33, where the error detection and correction code is added. After that, the signal is modulated by the modulation circuit 34, passes through the loopback switching circuit 37, is demodulated by the demodulation circuit 35, and the decoding circuit 36 performs error detection and correction. Then, the corrected data and the data that is the basis of the data in the memory 32 are compared by the comparison circuit 38 to determine whether or not the circuit in the loop is functioning normally. There is.

【0010】[0010]

【発明が解決しようとする課題】以上説明した特開昭6
2−252580号公報に記載の装置では、記録媒体に
データを記録することなく、回路系だけのチェックを行
なっているため、データが正確に記録媒体に記憶されて
いるかどうかの検証が行なえていないという問題があ
る。
DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention
In the apparatus described in JP-A-2-252580, only the circuit system is checked without recording the data on the recording medium, so that it cannot be verified whether the data is accurately stored on the recording medium. There is a problem.

【0011】また、従来、行なわれてきた、書き込みに
用いたデータと読み出されたデータとの比較によるデー
タ検証では、その検証が、誤り検出訂正された後に行な
われている。このため、変調回路や記録媒体や復調回路
に異常が発生していても、その異常が表に現れないこと
がある。すなわち、誤り検出訂正は、記録媒体上の欠陥
や、記憶機構におけるジッタやノイズなどにより、入力
されたデータに応じた記録パターンが形成されなかった
り、記録パターンから、基となったデータが読み出せな
いことにより発生する誤りを全て(可能であるならば)
訂正してしまう。このうち、ジッタやノイズによる誤り
は、不規則に発生するものであり、訂正されるべきもの
である。しかし、媒体欠陥による誤りは、データが正確
に記憶されていないことを意味するものである。また、
媒体欠陥の種類によっては、読み出しを続けるうちに、
欠陥が他の記憶領域にまで波及して、記憶されたデータ
が失われてしまう場合もある。従来のデータ検証では、
このようにデータが正確に記憶されていなくても、正常
であると誤った判定をし、その結果として、重大な障害
を引き起こしてしまう危険性があるという問題があっ
た。
In the conventional data verification by comparing the data used for writing with the data read out, the verification is performed after error detection and correction. Therefore, even if an abnormality occurs in the modulation circuit, the recording medium, or the demodulation circuit, the abnormality may not appear in the table. In other words, the error detection and correction is such that a recording pattern corresponding to the input data is not formed due to defects on the recording medium, jitter or noise in the storage mechanism, or the original data cannot be read from the recording pattern. All errors (if possible) caused by the absence
I will correct it. Among these, errors due to jitter and noise occur irregularly and should be corrected. However, an error due to a medium defect means that the data is not stored correctly. Also,
Depending on the type of media defect,
In some cases, the defects may spread to other storage areas and the stored data may be lost. In traditional data validation,
As described above, even if the data is not accurately stored, there is a risk that the data is erroneously determined to be normal and, as a result, a serious failure may occur.

【0012】そこで本発明の目的は、データの書き込み
時に、そのデータが確実に記録媒体に記憶されたことの
確認を行う記憶装置を提供することにある。
Therefore, an object of the present invention is to provide a storage device for confirming that the data is surely stored in the recording medium when writing the data.

【0013】[0013]

【課題を解決するための手段】請求項1記載の発明は、
記録媒体と、その記録媒体にデータを書き込むための第
1のヘッドと、記録媒体からデータを読み出すための第
2のヘッドとを備えた記憶機構と、記憶機構に書き込む
べきデータを複数個記憶する第1の記憶手段と、そのデ
ータを基に誤り検出および誤り訂正用の符号である誤り
検出訂正符号を作成し、作成した誤り検出訂正符号をそ
のデータに付加した符号化データを出力する符号化手段
と、この符号化手段により出力された符号化データを複
数個記憶する第2の記憶手段と、その符号化データを変
調した変調データを、第1のヘッドを用いて、記録媒体
に書き込む書込手段と、この書込手段によって書き込ま
れた変調データを、第2のヘッドを用いて読み出して、
符号化データに復調して出力する読出手段と、この読出
手段が読み出した符号化データの基となった符号化デー
タを第2の記憶手段から検索し、検索した符号化データ
と読出手段が読み出した符号化データが一致しているか
否かを判定する第1の判定手段と、読出手段が読み出し
た符号化データ内の誤り検出訂正符号を用いて誤り検出
および誤り訂正を行ない、誤り検出訂正符号を外したデ
ータを出力する復号化手段と、この復号化手段の出力す
るデータの基となったデータを第1の記憶手段から検索
し、検索したデータと復号化手段の出力したデータが一
致しているか否かを判定する第2の判定手段と、第1の
判定手段および第2の判定手段の判定結果を受けて、そ
れら2つの判定結果が共に、一致を示すものである場合
に、データが正確に記憶されたと判断する判断手段とを
具備する。
The invention according to claim 1 is
A storage medium having a recording medium, a first head for writing data to the recording medium, a second head for reading data from the recording medium, and a plurality of data to be written in the storage mechanism are stored. Encoding for generating an error detection and correction code that is a code for error detection and error correction based on the first storage means and the data, and outputting encoded data in which the created error detection and correction code is added to the data Means, a second storage means for storing a plurality of encoded data output by the encoding means, and a modulation data obtained by modulating the encoded data, written into a recording medium by using the first head. The writing means and the modulation data written by the writing means are read using the second head,
The reading means for demodulating and outputting the coded data and the coded data which is the basis of the coded data read by the reading means are searched from the second storage means, and the searched coded data and the reading means read out. Error detection and error correction using the first determination means for determining whether or not the encoded data that has been matched and the error detection and correction code in the encoded data read by the reading means are performed. The decoding means for outputting the data obtained by removing the data from the first storage means are searched for the data which is the basis of the data output by the decoding means, and the searched data and the data output by the decoding means match. The second determination means for determining whether or not the data is received, and the determination results of the first determination means and the second determination means are received, and if the two determination results both indicate a match, the data Is accurate Comprising a determining means for determining the stored.

【0014】すなわち請求項1記載の発明では、たとえ
ば、磁気ディスク媒体や光ディスク媒体などのデータの
書き込みが可能な記録媒体に、同時にアクセスできる2
つのヘッドを備えた記憶機構を用い、書き込み動作の2
つの過程におけるデータを一時記憶するための第1およ
び第2の記憶手段を設け、読み出したデータと対応する
書き込み系におけるデータを比較することにより、デー
タが確実に記憶されたことの確認を行う。なお、記憶機
構の2つのヘッドは、独立に移動できる必要はなく、独
立に読み書き可能なものであれば、たとえば、1つのス
ライダに2つのヘッドが設けられているものであっても
よい。
That is, according to the first aspect of the present invention, for example, a data writable recording medium such as a magnetic disk medium or an optical disk medium can be simultaneously accessed.
Using a memory mechanism with two heads
First and second storage means for temporarily storing data in one process are provided, and it is confirmed that the data has been reliably stored by comparing the read data with the data in the corresponding write system. It should be noted that the two heads of the storage mechanism do not have to be able to move independently, and as long as they can read and write independently, for example, one slider may be provided with two heads.

【0015】第1の記憶手段は、複数個の、処理単位長
のデータをそのままの形態で、記憶するために用いら
れ、たとえば、メモリアレイや多段ラッチ回路により構
成される。そのデータは、符号化手段によって、誤り検
出訂正符号が付加され、第2の記憶手段に記憶されると
ともに、書込手段に供給される。書込手段は、符号化デ
ータを記録媒体への記憶に適当な信号に変調して、その
信号で記憶機構のヘッドを駆動することにより、記録媒
体上に、磁化反転パターンなどの符号化データに応じた
記録パターンを形成する。なお、ここで、符号化データ
とは、誤り検出訂正符号が付加されたデータのことを示
す。
The first storage means is used to store a plurality of data of the processing unit length as it is, and is composed of, for example, a memory array or a multistage latch circuit. The error detection and correction code is added to the data by the encoding means, the data is stored in the second storage means, and the data is supplied to the writing means. The writing means modulates the encoded data into a signal suitable for storage in the recording medium, and drives the head of the storage mechanism with the signal to generate encoded data such as a magnetization reversal pattern on the recording medium. A corresponding recording pattern is formed. Here, the encoded data refers to data to which the error detection and correction code is added.

【0016】読出手段は、記録媒体上の記録パターンを
電気信号に変換して、それを符号化データに復調し、そ
の符号化データを第1の判定手段と、復号化回路に出力
する。第1の判定手段は、読み出された符号化データの
基となった符号化データを第2の記憶手段から検索し、
その検索した符号化データと、読み出された符号化デー
タとの一致、不一致の判定を行なう。復号化手段は、読
み出された符号化データ内の誤り検出訂正符号に基づい
て、検出した誤りを訂正し、誤り検出訂正符号を外した
データを出力する。第2の判定手段は、このデータの基
となったデータを第1の記憶手段から検索し、両データ
の一致、不一致を判定する。第1および第2の判定手段
の判定結果は、判断手段に出力され、判断手段は、2つ
の判定手段が共に一致を判定したときに限り、データが
正確に記録媒体に記憶されたものと判断し、それ以外の
場合には、それらの判定結果に応じて、たとえば、記憶
機構に誤動作が生じているなどの判断を下す。
The reading means converts the recording pattern on the recording medium into an electric signal, demodulates it to encoded data, and outputs the encoded data to the first judging means and the decoding circuit. The first determination means searches the second storage means for the encoded data which is the basis of the read encoded data,
Matching or non-matching between the retrieved encoded data and the read encoded data is determined. The decoding means corrects the detected error based on the error detection / correction code in the read encoded data, and outputs the data without the error detection / correction code. The second determination means searches the first storage means for the data that is the basis of this data, and determines whether or not the two data match. The determination results of the first and second determining means are output to the determining means, and the determining means determines that the data is accurately stored in the recording medium only when the two determining means both determine a match. However, in other cases, it is determined, for example, that the storage mechanism is malfunctioning according to the determination results.

【0017】このように、復号化回路による誤り検出訂
正が行なわれる以前の段階での、書き込みに用いた符号
化データと読み出した符号化データとの比較をも行なっ
ているので、データの記録媒体へ正確に記憶されたこと
を確実に検証することができる。また、2つのヘッドを
有する記憶機構と、複数のデータを記憶できる第1およ
び第2の記憶手段は、通常の書き込み動作と同じタイミ
ングでの記録媒体へのデータの書き込みを可能にしてい
る。
As described above, since the encoded data used for writing and the encoded data read out before the error detection and correction by the decoding circuit are also performed, the data recording medium is also compared. It is possible to reliably verify that the data is correctly stored. Further, the storage mechanism having two heads and the first and second storage means capable of storing a plurality of data enable writing of data to the recording medium at the same timing as the normal writing operation.

【0018】請求項2記載の発明は、記録媒体と、その
記録媒体にデータを書き込むための第1のヘッドと、記
録媒体からデータを読み出すための第2のヘッドとを備
えた記憶機構と、記憶機構に書き込むべきデータを記憶
する第1の記憶手段と、そのデータを基に誤り検出およ
び誤り訂正用の符号である誤り検出訂正符号を作成し、
作成した誤り検出訂正符号をそのデータに付加した符号
化データを出力する符号化手段と、この符号化手段によ
り出力された符号化データを記憶する第2の記憶手段
と、その符号化データを変調した変調データを、第1の
ヘッドを用いて、記録媒体に書き込む書込手段と、この
書込手段によって書き込まれた変調データを、第2のヘ
ッドを用いて読み出して、符号化データに復調して出力
する読出手段と、この読出手段が読み出した符号化デー
タと第2の記憶手段に記憶された符号化データとが一致
しているか否かを判定する第1の判定手段と、読出手段
が読み出した符号化データ内の誤り検出訂正符号を用い
て誤り検出および誤り訂正を行ない、誤り検出訂正符号
を外したデータを出力する復号化手段と、この復号化手
段の出力するデータと第1の記憶手段に記憶されたデー
タとが一致しているか否かを判定する第2の判定手段
と、第1の判定手段および第2の判定手段の判定結果を
受けて、それら2つの判定結果が共に、一致を示すもの
である場合に、データが正確に記憶されたと判断する判
断手段とを具備する。
According to a second aspect of the present invention, there is provided a storage mechanism comprising a recording medium, a first head for writing data on the recording medium, and a second head for reading data from the recording medium, First storage means for storing data to be written in the storage mechanism, and error detection and correction code which is a code for error detection and error correction based on the data,
Coding means for outputting coded data in which the created error detection and correction code is added to the data, second storage means for storing the coded data output by this coding means, and the coded data are modulated. Writing means for writing the modulated data on the recording medium by using the first head, and the modulated data written by the writing means is read by using the second head and demodulated into encoded data. The read means for outputting the read data, the first judging means for judging whether or not the coded data read by the read means and the coded data stored in the second storage means match, and the read means. Decoding means for performing error detection and error correction using the error detection and correction code in the read encoded data, and outputting data without the error detection and correction code, and data output by this decoding means The second judgment means for judging whether or not the data stored in the first storage means agree with each other, and the judgment results of the first judgment means and the second judgment means, and the two judgments are made. And determining means for determining that the data has been correctly stored when the results both show a match.

【0019】すなわち、請求項2記載の発明では、第1
および第2の記憶手段として、処理単位長のデータを1
つ記憶できる、たとえば、ラッチ回路などで構成される
記憶手段を用い、符号化手段の前後に設けられた、それ
ら記憶手段内のデータと、読み出し系における対応する
データの比較を行う。判断手段は、2つの判定手段が共
に一致を判定したときに限り、データが正確に記録媒体
に記憶されたものと判断し、それ以外の場合には、それ
らの判定結果に応じて、たとえば、記憶機構に誤動作が
生じているなどの判断を下す。このように、復号化回路
による誤り検出訂正が行なわれる以前の段階での、書き
込みに用いた符号化データと読み出した符号化データと
の比較をも行なっているので、データの記録媒体へ正確
に記憶されたことを確実に検証することができる。
That is, in the invention according to claim 2, the first
And, as the second storage means, the data of the processing unit length is 1
By using a storage means which can be stored, such as a latch circuit, the data in the storage means provided before and after the encoding means is compared with the corresponding data in the reading system. The judging means judges that the data is accurately stored in the recording medium only when the two judging means judge the coincidence, and in other cases, for example, according to the judgment results, Make a decision that the memory is malfunctioning. As described above, since the encoded data used for writing and the encoded data read out before the error detection and correction by the decoding circuit are also compared, the data is accurately recorded on the recording medium. The stored information can be surely verified.

【0020】請求項3記載の発明では、記録媒体と、こ
の記録媒体へのデータの書き込み、および、記録媒体か
らのデータの読み出しを行なうヘッドを備えた記憶機構
と、記憶機構に書き込むべきデータを記憶する第1の記
憶手段と、そのデータを基に誤り検出および誤り訂正用
の符号を作成し、作成した誤り検出訂正符号をそのデー
タに付加した符号化データを出力する符号化回路と、こ
の符号化手段により出力された符号化データを記憶する
第2の記憶手段と、その符号化データを変調した変調デ
ータを記録媒体に書き込む書込手段と、この書込手段に
よって書き込まれた変調データを読み出して、符号化デ
ータに復調して出力する読出手段と、この読出手段が読
み出した符号化データと、第2の記憶手段に記憶された
符号化データとが一致しているか否かを判定する第1の
判定手段と、読出手段が読み出した符号化データ内の誤
り検出訂正符号を用いて誤り検出および誤り訂正を行な
い、誤り検出訂正符号を外したデータを出力する復号化
手段と、この復号化手段の出力するデータと第1の記憶
手段に記憶されたデータとが一致しているか否かを判定
する第2の判定手段と、第1の判定手段および第2の判
定手段の判定結果を受けて、それら2つの判定結果が共
に、一致を示すものである場合に、データが正確に記憶
されたと判断する判断手段とを具備する。
According to the third aspect of the present invention, there is provided a recording medium, a storage mechanism having a head for writing data to the recording medium, and a head for reading data from the recording medium, and data to be written in the storage mechanism. First storage means for storing, a coding circuit for creating a code for error detection and error correction based on the data, and outputting coded data in which the created error detection and correction code is added to the data, and Second storage means for storing the encoded data output by the encoding means, writing means for writing the modulated data obtained by modulating the encoded data in a recording medium, and the modulated data written by the writing means The reading unit that reads out, demodulates into encoded data, and outputs the encoded data, the encoded data read by the reading unit, and the encoded data stored in the second storage unit. Error detection and error correction are performed using the first determination means for determining whether or not the error detection correction code is included in the encoded data read by the reading means, and the data without the error detection and correction code is output. Decoding means, a second judging means for judging whether or not the data output from the decoding means and the data stored in the first storing means match, the first judging means and the first judging means. The determination means for receiving the determination result of the second determination means and determining that the data is correctly stored when both of the two determination results indicate coincidence.

【0021】すなわち、請求項3記載の発明では、記憶
機構として、1つのヘッドで読み出しと書き込みを行う
記憶機構を用いる。このように、構成しても、復号化回
路による誤り検出訂正が行なわれる以前の段階での、書
き込みに用いた符号化データと読み出した符号化データ
との比較をも行なっているので、データの記録媒体へ正
確に記憶されたことを確実に検証することができる。
That is, according to the third aspect of the invention, as the storage mechanism, a storage mechanism for reading and writing with one head is used. Even with this configuration, since the encoded data used for writing and the encoded data read out before the error detection and correction by the decoding circuit are also compared, It is possible to reliably verify that the data is correctly stored in the recording medium.

【0022】[0022]

【実施例】以下、実施例につき本発明を詳細に説明す
る。
EXAMPLES The present invention will be described in detail below with reference to examples.

【0023】図1に、本発明の一実施例における記憶装
置の構成を示す。実施例の記憶装置では、記憶機構とし
てヘッドを2つ有するディスク駆動機構11を用いた。
ディスク駆動機構11へのデータの書き込みには、メモ
リアレイ12と誤り検出訂正符号化回路13とメモリア
レイ14と変調回路15とが使用される。メモリアレイ
12は、処理単位となるデータを複数個、格納できるメ
モリである。誤り検出訂正符号化回路13は、メモリア
レイ12を介して入力されたデータを基に、誤り検出訂
正符号を作成して、そのデータに誤り検出訂正符号を付
加したデータをメモリアレイ14に出力する回路であ
る。以下の説明においては、この誤り検出訂正符号を付
加したデータを符号化データと呼ぶことにする。また、
変調回路15は、メモリアレイ14から供給される符号
化データに変調を加えて、変調した信号を、ディスク駆
動機構11に供給する。
FIG. 1 shows the configuration of a storage device according to an embodiment of the present invention. In the storage device of the embodiment, the disk drive mechanism 11 having two heads is used as the storage mechanism.
To write data to the disk drive mechanism 11, the memory array 12, the error detection / correction coding circuit 13, the memory array 14, and the modulation circuit 15 are used. The memory array 12 is a memory that can store a plurality of data as a processing unit. The error detection / correction encoding circuit 13 creates an error detection / correction code based on the data input via the memory array 12, and outputs the data obtained by adding the error detection / correction code to the memory array 14. Circuit. In the following description, the data to which the error detection and correction code is added will be referred to as encoded data. Also,
The modulation circuit 15 modulates the encoded data supplied from the memory array 14 and supplies the modulated signal to the disk drive mechanism 11.

【0024】記憶機構11からのデータの読み出しは、
復調回路16と誤り検出訂正復号化回路17とで行なわ
れる。復調回路16は、変調回路15の逆の動作を行な
う回路である。誤り検出訂正復号化回路17は、符号化
データ内の誤り検出訂正符号を基にデータの誤りを検出
し、誤りが検出された場合には、訂正を施し、誤り検出
訂正符号を外したデータを出力する回路である。
Reading data from the storage mechanism 11
This is performed by the demodulation circuit 16 and the error detection / correction decoding circuit 17. The demodulation circuit 16 is a circuit that performs the reverse operation of the modulation circuit 15. The error detection / correction decoding circuit 17 detects an error in the data based on the error detection / correction code in the encoded data. When an error is detected, the error detection / correction decoding circuit 17 corrects the data and removes the data from which the error detection / correction code is removed. This is the output circuit.

【0025】実施例の記憶装置は、データが確実に記録
媒体に記憶されたかどうかの判定を行いながら、データ
の書き込みを行う。その判定には、2つの比較回路18
および19と、誤動作検出回路20が用いられる。比較
回路18には、メモリアレイ14の出力と、復調回路1
6の出力とが入力され、比較回路18は、これらの出力
が一致しているか否かを判定して、その判定結果を誤動
作検出回路20に出力する。比較回路19は、メモリア
レイ12の内容と誤り検出訂正回路17の出力の内容と
を比較し、その比較結果を誤動作検出回路20に出力す
る。誤動作検出回路20は、これら2つの判定結果を基
に、データが確実に記憶媒体に記憶されたかどうかを判
断する。
The storage device of the embodiment writes data while determining whether or not the data is surely stored in the recording medium. Two comparison circuits 18 are used for the determination.
And 19, and the malfunction detection circuit 20 is used. The comparison circuit 18 includes the output of the memory array 14 and the demodulation circuit 1
The output of 6 is input, and the comparison circuit 18 determines whether these outputs match and outputs the determination result to the malfunction detection circuit 20. The comparison circuit 19 compares the contents of the memory array 12 with the contents of the output of the error detection / correction circuit 17, and outputs the comparison result to the malfunction detection circuit 20. The malfunction detection circuit 20 determines whether or not the data is reliably stored in the storage medium based on these two determination results.

【0026】なお、記録媒体に書き込むべきデータは、
コントローラ21を介して、図示していないホストコン
ピュータより、メモリアレイ12に入力される。また、
誤動作検出回路20の判断結果も、このコントローラ2
1を介して、ホストコンピュータに出力される。さら
に、メモリアレイ12、14内に記憶された複数個のデ
ータからの比較対象とするデータの選択も、このコント
ローラ21が行う。
The data to be written in the recording medium is
The data is input to the memory array 12 from a host computer (not shown) via the controller 21. Also,
The judgment result of the malfunction detection circuit 20 is also the controller 2
1 to the host computer. Further, the controller 21 also selects the data to be compared from the plurality of data stored in the memory arrays 12 and 14.

【0027】図2に示す動作タイミング図を参照し、図
1を主に用いて、以下に、実施例の記憶装置の動作を説
明する。なお、図2は、図1において、SA ないしSF
で示した部分の信号の時間変化を模式的に示してたタイ
ミング図である。
With reference to the operation timing chart shown in FIG. 2 and mainly using FIG. 1, the operation of the memory device of the embodiment will be described below. It should be noted that FIG. 2 corresponds to S A to S F in FIG.
FIG. 6 is a timing diagram schematically showing a time change of a signal in a portion indicated by.

【0028】データがコントローラ21を介して入力さ
れると、そのデータ“D1 ”は、メモリアレイ12に記
憶され、“D1 ”は、以下に示す処理により、データが
正確に記憶装置11に記録されたことが確認されるまで
(信号SF に “D1 ”が出力され、比較が完了するま
で)、メモリアレイ12に保持される。なお、メモリア
レイ12を介しての、誤り検出訂正符号化回路13への
データ“D2 ”、“D 3 ”の供給は、比較完了をまつこ
となく実行される。誤り検出訂正符号化回路13は、入
力されたデータ“D1 ”を基に、誤り検出訂正符号“E
1 ”を作成し、データ“D1 ”を、メモリアレイ14に
出力した後に、作成した誤り検出訂正符号“E1 ”を出
力する。図2では、データ“D1 ”と誤り検出訂正符号
“E1 ”からなる符号化データを、“D1 +E1 ”と示
してある。
Data is input via the controller 21.
Then, the data "D1Is written in the memory array 12.
Remembered, "D1”Means that the data is
Until it is confirmed that the data has been accurately recorded in the storage device 11.
(Signal SFTo “D1Is output and the comparison is completed.
In memory array 12). In addition,
To the error detection / correction coding circuit 13 via the ray 12.
Data "D2"," D 3"Supply of the comparison completed
Will be executed without any. The error detection / correction coding circuit 13 is turned on.
Forced data "D1Error detection and correction code "E
1", Create the data" D1To the memory array 14
After output, the created error detection and correction code "E1Out
Force In FIG. 2, the data “D1Error detection and correction code
"E1The encoded data consisting of "1+ E1"
I am doing it.

【0029】変調回路15は、この符号化データ“D1
+E1 ”を変調して、ディスク駆動機構11に供給す
る。ディスク駆動機構11内に設けられた書込回路(図
示せず)は、入力された変調信号に応じた電流を、書き
込み用ヘッドに供給して、記録媒体上に符号化データに
応じた磁化反転パターンを形成していく。
The modulation circuit 15 receives the encoded data "D 1
+ E 1 ″ is modulated and supplied to the disk drive mechanism 11. A write circuit (not shown) provided in the disk drive mechanism 11 supplies a current corresponding to the input modulation signal to the write head. Then, the magnetization reversal pattern corresponding to the encoded data is formed on the recording medium.

【0030】記録媒体上に書き込まれた磁化反転パター
ンは、書き込みヘッドとは異なる、読み出しヘッドで、
電気信号に変換され、復調回路16により、符号化デー
タ“D1 +E1 ”に復調される。信号SD の開始と、信
号SE の開始の時間差“t”は、書き込み用ヘッドと読
み出し用ヘッドとの位置関係に依存する。読み出された
符号化データ“D1 +E1 ”は、比較回路18と誤り検
出訂正復号化回路17とに出力される。比較回路18
は、復調回路16からの符号化データを受け取ったとき
に、その符号化データ“D1 +E1 ”を、その基となっ
たメモリアレイ14内の符号化データ“D1 +E1 ”と
比較することにより、その一致、不一致に応じた信号
“C1 ”を、誤動作検出回路20に出力する。
The magnetization reversal pattern written on the recording medium is different from that of the write head by the read head.
It is converted into an electric signal and demodulated by the demodulation circuit 16 into coded data “D 1 + E 1 ”. The time difference "t" between the start of the signal S D and the start of the signal S E depends on the positional relationship between the write head and the read head. The read encoded data “D 1 + E 1 ” is output to the comparison circuit 18 and the error detection / correction decoding circuit 17. Comparison circuit 18
, Upon receiving the encoded data from the demodulation circuit 16, and compares the coded data "D 1 + E 1", the encoded data "D 1 + E 1" in the memory array 14 from which it based As a result, the signal “C 1 ” corresponding to the match or mismatch is output to the malfunction detection circuit 20.

【0031】これら2つの符号化データが一致していな
いときは、ディスク駆動機構11または変調回路15ま
たは復調回路16が不調であるか、ノイズにより誤動作
が生じた場合である。また、この比較が完了した段階
で、メモリアレイ14内の“D 1 +E1 ”は、不要とな
り、その記憶に用いられていた領域は解放される。
These two encoded data do not match.
If not, the disk drive mechanism 11 or the modulation circuit 15
Or the demodulator circuit 16 is malfunctioning or malfunctions due to noise
Is the case. Also, when this comparison is complete
Then, "D" in the memory array 14 1+ E1"Is unnecessary
The area used for storage is released.

【0032】誤り検出訂正復号化回路17に入力された
符号化データ“D1 +E1 ”は、符号化データ内の誤り
検出訂正符号を基に、データ内の誤りが検出され、その
誤りの数が訂正可能な数であるならときには、その誤り
は訂正され、データ部分だけが出力される。比較回路1
9は、このデータ“D1 ”と、その基となったメモリア
レイ12内のデータ“D1 ”を比較し、それらの一致、
不一致に応じた信号“C2 ”を誤動作検出回路20に出
力する。
The coded data “D 1 + E 1 ” input to the error detection / correction decoding circuit 17 has an error in the data detected based on the error detection / correction code in the coded data, and the number of the errors is detected. If is a correctable number, then the error is corrected and only the data portion is output. Comparison circuit 1
9 compares this data “D 1 ” with the data “D 1 ” in the memory array 12 on which the data “D 1 ” is based, and matches them.
The signal “C 2 ” corresponding to the mismatch is output to the malfunction detection circuit 20.

【0033】誤動作検出回路20が、比較回路18、1
9の信号の内容に応じて行う動作の概要を以下に示す。
The malfunction detection circuit 20 includes comparator circuits 18 and 1
The outline of the operation performed according to the content of the signal of 9 is shown below.

【0034】比較回路18、19が共に一致信号を出力
した場合:この場合、記憶装置は全て正常であり、デー
タは正確に記録媒体に記憶されたので、誤動作検出回路
20は、コントローラ21に、メモリアレイ12内の
“D1 ”の消去(書き換え)を許可する。
When the comparison circuits 18 and 19 both output the coincidence signal: In this case, since the storage devices are all normal and the data is correctly stored in the recording medium, the malfunction detection circuit 20 causes the controller 21 to Erase (rewrite) of "D 1 " in the memory array 12 is permitted.

【0035】比較回路18が不一致信号を出力し、比較
回路19が一致信号を出力した場合:この場合、ディス
ク駆動機構11のディスク媒体の記憶領域にアクセス異
常な部分が生じている可能性がある。しかし、ノイズに
よる誤動作である可能性もあるので、誤動作検出回路2
0は、コントローラ21に、その旨を通知することによ
り、メモリアレイ12内の“D1 ”の書き換えを不許可
にする。コントローラ21は、ホストからのアクセスが
中断したときに、メモリアレイ12内の“D1”を用い
て、同じ記憶領域にデータの書き込みを行い、再度、同
じ比較結果が得られたときには、その記録領域に対して
代替処理を行うとともに、そのデータを新しく割り当て
られた代替領域に移動する。“D1 ”の再度の書き込み
で、2つの比較回路から一致信号が得られるようになっ
た場合は、ノイズによる誤動作であったと判断する。
When the comparison circuit 18 outputs the non-coincidence signal and the comparison circuit 19 outputs the coincidence signal: In this case, there is a possibility that an abnormal access is generated in the storage area of the disk medium of the disk drive mechanism 11. . However, since there is a possibility of malfunction due to noise, the malfunction detection circuit 2
0 notifies the controller 21 of that fact, thereby disallowing rewriting of "D 1 " in the memory array 12. When the access from the host is interrupted, the controller 21 writes the data in the same storage area using "D 1 " in the memory array 12, and when the same comparison result is obtained again, the recording is performed. The substitution process is performed on the area and the data is moved to the newly assigned substitution area. If the coincidence signals can be obtained from the two comparison circuits by rewriting "D 1 ", it is determined that the malfunction is caused by noise.

【0036】このように、実施例の記憶装置では、自動
的に代替処理を行うように装置を構成してあるが、代替
処理を行わせずに、コントローラ21を介して、ホスト
への、ディスク媒体の記憶領域にアクセス異常な部分が
生じている可能性がある旨の通知だけを行うように構成
してもよい。
As described above, in the storage device of the embodiment, the device is configured to automatically perform the alternative process. However, without performing the alternative process, the disk is sent to the host via the controller 21. It may be configured to only notify that there is a possibility that an abnormal access has occurred in the storage area of the medium.

【0037】比較回路19が不一致信号を出力した場
合:この場合、データが正確に記憶さていないので、誤
動作検出回路20は、コントローラ21に、データの書
き込み動作の中止を指示するとともに、比較回路18の
比較結果に応じた故障箇所の推定結果をコントローラ2
1を介して、ホストに通知する。すなわち、比較回路1
8が一致信号を出力している場合には、故障箇所は、誤
り検出訂正回路13または誤り検出訂正復号化回路17
でありため、その旨を通知する。また、比較回路18が
不一致信号を出力していた場合には、ディスク駆動機構
11または変調回路15または復調回路16の障害であ
る可能性が高いので、その旨を通知する。
When the comparison circuit 19 outputs the non-coincidence signal: In this case, since the data is not accurately stored, the malfunction detection circuit 20 instructs the controller 21 to stop the data write operation and the comparison circuit 18 The controller 2 calculates the estimation result of the failure point according to the comparison result of
Notify the host via 1. That is, the comparison circuit 1
When 8 outputs the coincidence signal, the failure location is the error detection / correction circuit 13 or the error detection / correction decoding circuit 17
Therefore, the fact is notified. If the comparison circuit 18 outputs a mismatch signal, there is a high possibility that the disk drive mechanism 11 or the modulation circuit 15 or the demodulation circuit 16 has a fault, and this is notified.

【0038】実施例の記憶装置では、2つの独立に移動
できるヘッドを用いたディスク駆動機構を記憶機構とし
て用いたが、2つのヘッドは、独立に移動できる必要は
なく、同一トラック上のデータに対して、独立にアクセ
スが行えるものであればよい。たとえば、1つのスライ
ダに2つのヘッドが組み込まれた読み書き機構を有する
ディスク駆動機構を構成して、スライダの後ろ側に位置
するヘッドを読み込み専用のヘッドとすることにより、
記録媒体への書き込み開始と、記録媒体からの読み出し
開始の時間差“t”を短くすることができ、メモリアレ
イの容量が少なくて済む記憶装置を構成することもでき
る。また、実施例の記憶装置では、メモリアレイを用い
ているが、多段ラッチ回路などの他の記憶手段を用いて
もよいことは当然である。
In the storage device of the embodiment, the disk drive mechanism using the two independently movable heads is used as the storage mechanism, but the two heads do not need to be independently movable, and the data on the same track is not used. On the other hand, it is only necessary that they can be accessed independently. For example, by configuring a disk drive mechanism having a read / write mechanism in which two heads are incorporated in one slider, and making the head located behind the slider a read-only head,
The time difference “t” between the start of writing to the recording medium and the start of reading from the recording medium can be shortened, and a storage device that requires a small memory array capacity can also be configured. Further, although the memory device of the embodiment uses the memory array, it goes without saying that other memory means such as a multistage latch circuit may be used.

【0039】第1の変形例 First Modification

【0040】実施例の装置では、記憶装置のアクセス速
度を低下させないために、データを複数個格納できるメ
モリアレイを用いたが、変形例の記憶装置では、処理単
位長のデータを1つだけ記憶するメモリを用いる。変形
例の記憶装置の構成は、図1のメモリアレイが、メモリ
に置き替わるだけであるので、その説明は省略する。
In the apparatus of the embodiment, a memory array capable of storing a plurality of data is used in order not to reduce the access speed of the storage apparatus. However, in the storage apparatus of the modified example, only one data of the processing unit length is stored. Use a memory that does. The configuration of the storage device of the modification is the same as that of FIG. 1, except that the memory array is replaced with a memory, and therefore the description thereof is omitted.

【0041】図3に変形例の記憶装置の動作タイミング
を示す。実施例の記憶装置では、データの入力を連続し
て行えたが、変形例の記憶装置では、比較回路による比
較が完了するまで、比較回路にデータが供給できるよう
にしなければならない。このため、その比較が完了する
まで、メモリ12の内容を書き換えることはできず、信
号SA に示したように、データを受け付けることができ
ない時間が発生する。しかし、2つの比較回路で確実に
データが記憶されたことを確認しつつ、書き込み動作を
行うことができるので、データの信頼性は、やはり、非
常に高いものとなる。また、前述のように1つのスライ
ダに2つのヘッドを組み込めば、SD とSE の時間差
“t”を短縮すること、たとえば、処理単位長のデータ
の書き込みが完了するまえに,読み出しを開始すること
ができ、データが受け付けられない時間を、短くするこ
とができる。
FIG. 3 shows the operation timing of the storage device of the modified example. In the memory device of the embodiment, data can be continuously input, but in the memory device of the modification, it is necessary to supply the data to the comparison circuit until the comparison by the comparison circuit is completed. Therefore, until the comparison is completed, the contents of the memory 12 cannot be rewritten, and as shown by the signal S A , there occurs a time when data cannot be accepted. However, since the write operation can be performed while confirming that the data is surely stored by the two comparison circuits, the reliability of the data is still very high. If two heads are incorporated in one slider as described above, the time difference "t" between S D and S E can be shortened, for example, reading can be started before the writing of data of the processing unit length is completed. Therefore, it is possible to shorten the time during which the data is not accepted.

【0042】また、この変形例の記憶装置では、データ
の検証を行なうことにより、記録媒体に対する書き込み
速度が、低下するため、重要なデータの記憶を行なうと
きに限り、この検証動作が行なわれるように装置を構成
してもよい。
Further, in the memory device of this modification, the data verification speed decreases the writing speed to the recording medium. Therefore, this verification operation is performed only when important data is stored. The device may be configured as follows.

【0043】第2の変形例 Second modification

【0044】第2の変形例の記憶装置では、第1の変形
例の記憶装置における、2つのヘッドを有した記憶機構
の代わりに、通常の、1つのヘッドで読み書きを行う記
憶機構を用いる。この記憶装置の構成も、図1に示した
ものと同様のものであるため、その説明は省略する。ま
た、その動作タイミングも、図3に示したものと同様の
ものとなり、SD とSE の時間差“t”が、ディスク媒
体の1回転に要する時間になるといった違いが存在する
だけである。
The storage device of the second modification uses a normal storage mechanism for reading and writing with one head, instead of the storage mechanism having two heads in the storage device of the first modification. The configuration of this storage device is also the same as that shown in FIG. 1, so description thereof will be omitted. The operation timing is also the same as that shown in FIG. 3, and the difference is that the time difference "t" between S D and S E is the time required for one rotation of the disk medium.

【0045】すなわち、第2の変形例の記憶装置におい
ても、その動作速度は、実施例、または、第1の変形例
の記憶装置よりも、遅くなるといった欠点はあるもの
の、データが正確に記録媒体に記憶されたことを確実に
検証することができる。
That is, even in the storage device of the second modification, the operating speed thereof is slower than that of the storage device of the embodiment or the first modification, but the data is accurately recorded. It is possible to reliably verify that the data is stored in the medium.

【0046】第2の変形例の記憶装置では、比較対象と
する書き込み系のデータを記憶するために、処理単位長
のデータを1つ記憶できるメモリを用いたが、このメモ
リをメモリアレイとして、記憶機構のヘッドが,書き込
みにも読み出しにも使用されていない時間を短縮するよ
うに構成してもよいことは当然である。また、第1の変
形例で述べたように、重要なデータの書き込み時にの
み、検証機能を用いれるように装置を構成してもよい。
In the memory device of the second modified example, a memory capable of storing one data of the processing unit length was used to store the write-system data to be compared, but this memory is used as a memory array. Of course, the head of the storage mechanism may be configured to reduce the time it is not used for writing or reading. Further, as described in the first modification, the device may be configured so that the verification function is used only when writing important data.

【0047】[0047]

【発明の効果】以上説明したように、請求項1記載の発
明によれば、データ書込み時に、誤り検出訂正処理の前
後、2か所において、書き込み系におけるデータと、対
応する読み出し系におけるデータとの比較を行なってい
るので、データが正確に記録媒体に記憶されたことを確
実に検証することができる。また、2つの比較回路から
の判定結果から、障害箇所の推定を行なうこともでき
る。さらに、比較対象となるデータを複数個記憶する記
憶手段を設けてあるので、データが正確に記憶されたこ
との確認を、書き込み動作速度を低下させることなく行
なうことができる。
As described above, according to the first aspect of the present invention, at the time of writing data, the data in the writing system and the data in the corresponding reading system are provided at two places before and after the error detection / correction process. Therefore, it is possible to reliably verify that the data is accurately stored in the recording medium. Further, it is also possible to estimate the failure location from the determination results from the two comparison circuits. Further, since the storage means for storing a plurality of data to be compared is provided, it is possible to confirm that the data is accurately stored without lowering the write operation speed.

【0048】請求項2記載の発明によれば、データ書込
み時に、誤り検出訂正処理の前後、2か所において、書
き込み系におけるデータと、対応する読み出し系におけ
るデータとの比較を行なっているので、データが正確に
記録媒体に記憶されたことを確実に検証することができ
る。また、2つの比較回路からの判定結果から、障害箇
所の推定を行なうこともできる。さらに、2つのヘッド
を備えた記憶機構を使用しているため、書き込まれたデ
ータを読み出すために必要となる時間を短縮することが
できる。
According to the second aspect of the invention, since the data in the write system and the data in the corresponding read system are compared at two places before and after the error detection and correction process at the time of writing the data, It is possible to reliably verify that the data is accurately stored in the recording medium. Further, it is also possible to estimate the failure location from the determination results from the two comparison circuits. Furthermore, since the storage mechanism having two heads is used, the time required to read the written data can be shortened.

【0049】請求項3記載の発明によれば、データ書込
み時に、誤り検出訂正処理の前後、2か所において、書
き込み系におけるデータと、対応する読み出し系におけ
るデータとの比較を行なっているので、データが正確に
記録媒体に記憶されたことを確実に検証することができ
る。また、2つの比較回路からの判定結果から、障害箇
所の推定を行なうこともできる。
According to the third aspect of the invention, since the data in the write system and the data in the corresponding read system are compared at two places before and after the error detection / correction process when writing data, It is possible to reliably verify that the data is accurately stored in the recording medium. Further, it is also possible to estimate the failure location from the determination results from the two comparison circuits.

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

【図1】 本発明の一実施例における記憶装置の概要を
示す構成図である。
FIG. 1 is a configuration diagram showing an outline of a storage device according to an embodiment of the present invention.

【図2】 実施例による記憶装置の動作のタイミングを
示すタイミング図である。
FIG. 2 is a timing chart showing the timing of the operation of the storage device according to the embodiment.

【図3】 第1の変形例による記憶装置の動作のタイミ
ングを示すタイミング図である。
FIG. 3 is a timing chart showing the timing of the operation of the storage device according to the first modification.

【図4】 従来例による記憶装置の構成を示すブロック
図である。
FIG. 4 is a block diagram showing a configuration of a storage device according to a conventional example.

【図5】 従来例による、記憶機構を介さないループを
形成して回路チェックを行う記憶装置の構成を示すブロ
ック図である。
FIG. 5 is a block diagram showing a configuration of a storage device that performs a circuit check by forming a loop without a storage mechanism according to a conventional example.

【符号の説明】[Explanation of symbols]

11、31…記憶機構、12、14…メモリアレイ、1
3…誤り検出訂正符号化回路、15、34…変調回路、
16、35…復調回路、17…誤り検出訂正復号化回
路、18、19…比較回路、20…誤動作検出回路、2
1、39…コントローラ、32…メモリ、33…符号化
回路、36…復号化回路、37…ループバック切換回路
11, 31 ... Storage mechanism, 12, 14 ... Memory array, 1
3 ... Error detection / correction coding circuit, 15, 34 ... Modulation circuit,
16, 35 ... Demodulation circuit, 17 ... Error detection / correction decoding circuit, 18, 19 ... Comparison circuit, 20 ... Malfunction detection circuit, 2
1, 39 ... Controller, 32 ... Memory, 33 ... Encoding circuit, 36 ... Decoding circuit, 37 ... Loopback switching circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 記録媒体と、その記録媒体にデータを書
き込むための第1のヘッドと、記録媒体からデータを読
み出すための第2のヘッドとを備えた記憶機構と、 前記記憶機構に書き込むべきデータを複数個記憶する第
1の記憶手段と、 そのデータを基に誤り検出および誤り訂正用の符号であ
る誤り検出訂正符号を作成し、作成した誤り検出訂正符
号をそのデータに付加した符号化データを出力する符号
化手段と、 この符号化手段により出力された符号化データを複数個
記憶する第2の記憶手段と、 前記符号化データを変調した変調データを、前記第1の
ヘッドを用いて、前記記録媒体に書き込む書込手段と、 この書込手段によって書き込まれた前記変調データを、
前記第2のヘッドを用いて読み出して、符号化データに
復調して出力する読出手段と、 この読出手段が読み出した符号化データの基となった符
号化データを前記第2の記憶手段から検索し、検索した
符号化データと読出手段が読み出した符号化データが一
致しているか否かを判定する第1の判定手段と、 前記読出手段が読み出した符号化データ内の誤り検出訂
正符号を用いて誤り検出および誤り訂正を行ない、誤り
検出訂正符号を外したデータを出力する復号化手段と、 この復号化手段の出力するデータの基となったデータを
前記第1の記憶手段から検索し、検索したデータと復号
化手段の出力したデータが一致しているか否かを判定す
る第2の判定手段と、 前記第1の判定手段および第2の判定手段の判定結果を
受けて、それら2つの判定結果が共に、一致を示すもの
である場合に、データが正確に記憶されたと判断する判
断手段とを具備することを特徴とする記憶装置。
1. A storage mechanism comprising a recording medium, a first head for writing data to the recording medium, and a second head for reading data from the recording medium; and a storage mechanism to be written in the storage mechanism. First storage means for storing a plurality of data, an error detection and correction code which is a code for error detection and error correction is created based on the data, and the created error detection and correction code is added to the data Encoding means for outputting data, second storage means for storing a plurality of encoded data output by the encoding means, modulated data obtained by modulating the encoded data, using the first head Writing means for writing on the recording medium, and the modulation data written by the writing means,
Read-out means for reading using the second head, demodulating into coded data and outputting the coded data, and coded data as a basis of the coded data read by the read-out means are retrieved from the second storage means. Then, the first determination means for determining whether the searched encoded data and the encoded data read by the reading means match, and the error detection and correction code in the encoded data read by the reading means are used. Error detection and error correction are performed, and decoding means for outputting the data from which the error detection and correction code is removed, and the data which is the basis of the data output by this decoding means are searched from the first storage means, The second judgment means for judging whether the searched data and the data output by the decoding means match, and the two judgment results of the first judgment means and the second judgment means Size A storage device, comprising: a determination unit that determines that the data has been correctly stored when both the determination results show a match.
【請求項2】 記録媒体と、その記録媒体にデータを書
き込むための第1のヘッドと、記録媒体からデータを読
み出すための第2のヘッドとを備えた記憶機構と、 前記記憶機構に書き込むべきデータを記憶する第1の記
憶手段と、 そのデータを基に誤り検出および誤り訂正用の符号であ
る誤り検出訂正符号を作成し、作成した誤り検出訂正符
号をそのデータに付加した符号化データを出力する符号
化手段と、 この符号化手段により出力された符号化データを記憶す
る第2の記憶手段と、 前記符号化データを変調した変調データを、前記第1の
ヘッドを用いて、前記記録媒体に書き込む書込手段と、 この書込手段によって書き込まれた前記変調データを、
前記第2のヘッドを用いて読み出して、符号化データに
復調して出力する読出手段と、 この読出手段が読み出した符号化データと前記第2の記
憶手段に記憶された符号化データとが一致しているか否
かを判定する第1の判定手段と、 前記読出手段が読み出した符号化データ内の誤り検出訂
正符号を用いて誤り検出および誤り訂正を行ない、誤り
検出訂正符号を外したデータを出力する復号化手段と、 この復号化手段の出力するデータと前記第1の記憶手段
に記憶されたデータとが一致しているか否かを判定する
第2の判定手段と、 前記第1の判定手段および第2の判定手段の判定結果を
受けて、それら2つの判定結果が共に、一致を示すもの
である場合に、データが正確に記憶されたと判断する判
断手段とを具備することを特徴とする記憶装置。
2. A storage mechanism comprising a recording medium, a first head for writing data to the recording medium, and a second head for reading data from the recording medium; and a storage mechanism to be written to the storage mechanism. First storage means for storing data, and an error detection and correction code, which is a code for error detection and error correction, is created based on the data, and encoded data obtained by adding the created error detection and correction code to the data is generated. Encoding means for outputting, second storage means for storing the encoded data output by the encoding means, and modulated data obtained by modulating the encoded data, using the first head, to record the data. Writing means for writing on the medium, and the modulation data written by the writing means,
A read unit that reads using the second head, demodulates into encoded data and outputs the encoded data, and the encoded data read by the reading unit and the encoded data stored in the second storage unit are integrated. Error detection and error correction using the error detection and correction code in the encoded data read by the reading means, and the data from which the error detection and correction code has been removed Decoding means for outputting, second judging means for judging whether or not the data outputted by the decoding means and the data stored in the first storing means match, the first judging means Means for receiving the determination results of the second determining means, and determining means for determining that the data has been correctly stored when both of the two determination results indicate coincidence. Memory apparatus.
【請求項3】 記録媒体と、この記録媒体へのデータの
書き込み、および、記録媒体からのデータの読み出しを
行なうヘッドを備えた記憶機構と、 前記記憶機構に書き込むべきデータを記憶する第1の記
憶手段と、 そのデータを基に誤り検出および誤り訂正用の符号を作
成し、作成した誤り検出訂正符号をそのデータに付加し
た符号化データを出力する符号化回路と、 この符号化手段により出力された符号化データを記憶す
る第2の記憶手段と、 前記符号化データを変調した変調データを前記記録媒体
に書き込む書込手段と、 この書込手段によって書き込まれた前記変調データを読
み出して、符号化データに復調して出力する読出手段
と、 この読出手段が読み出した符号化データと、前記第2の
記憶手段に記憶された符号化データとが一致しているか
否かを判定する第1の判定手段と、 前記読出手段が読み出した符号化データ内の誤り検出訂
正符号を用いて誤り検出および誤り訂正を行ない、誤り
検出訂正符号を外したデータを出力する復号化手段と、 この復号化手段の出力するデータと前記第1の記憶手段
に記憶されたデータとが一致しているか否かを判定する
第2の判定手段と、 前記第1の判定手段および第2の判定手段の判定結果を
受けて、それら2つの判定結果が共に、一致を示すもの
である場合に、データが正確に記憶されたと判断する判
断手段とを具備することを特徴とする記憶装置。
3. A storage mechanism having a recording medium, a head for writing data to the recording medium, and reading data from the recording medium; and a first storage unit for storing data to be written in the storage mechanism. A storage unit, an encoding circuit that creates an error detection and error correction code based on the data, and outputs encoded data in which the created error detection and correction code is added to the data, and an output by this encoding unit Second storage means for storing the encoded data that has been written, writing means for writing modulated data obtained by modulating the encoded data in the recording medium, and reading the modulated data written by the writing means, The read means for demodulating and outputting the coded data, the coded data read by the read means, and the coded data stored in the second storage means match each other. Error detection and error correction are performed using the first determination means for determining whether or not the error detection and correction code in the encoded data read by the reading means is used, and the data from which the error detection and correction code is removed is removed. Decoding means for outputting, second judging means for judging whether or not the data outputted by the decoding means and the data stored in the first storing means match, the first judging means Means for receiving the determination results of the second determining means, and determining means for determining that the data has been correctly stored when both of the two determination results indicate coincidence. Storage device.
JP23308193A 1993-09-20 1993-09-20 Storage device Pending JPH0785608A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23308193A JPH0785608A (en) 1993-09-20 1993-09-20 Storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23308193A JPH0785608A (en) 1993-09-20 1993-09-20 Storage device

Publications (1)

Publication Number Publication Date
JPH0785608A true JPH0785608A (en) 1995-03-31

Family

ID=16949506

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23308193A Pending JPH0785608A (en) 1993-09-20 1993-09-20 Storage device

Country Status (1)

Country Link
JP (1) JPH0785608A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7468938B2 (en) 2001-03-22 2008-12-23 Panasonic Corporation Recording method, reproduction method, recording apparatus, reproduction apparatus, and information recording medium
US7564752B2 (en) 2004-11-25 2009-07-21 Sony Corporation Disc signal evaluation apparatus and disc signal evaluation method
JP2011223365A (en) * 2010-04-12 2011-11-04 For-A Co Ltd Filing device, filing method and video audio playback system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7468938B2 (en) 2001-03-22 2008-12-23 Panasonic Corporation Recording method, reproduction method, recording apparatus, reproduction apparatus, and information recording medium
US7508743B2 (en) 2001-03-22 2009-03-24 Panasonic Corporation Recording method, reproduction method, recording apparatus, reproduction apparatus, and information recording medium
US7903516B2 (en) 2001-03-22 2011-03-08 Panasonic Corporation Recording medium and information reproduction method for reproducing management information from the information recording medium
US7564752B2 (en) 2004-11-25 2009-07-21 Sony Corporation Disc signal evaluation apparatus and disc signal evaluation method
JP2011223365A (en) * 2010-04-12 2011-11-04 For-A Co Ltd Filing device, filing method and video audio playback system

Similar Documents

Publication Publication Date Title
US5799145A (en) Disk drive apparatus having security function using password
JPS61208673A (en) Information recording and reproducing device
US5122913A (en) Data recording/reproducing apparatus with error detection and data re-recording
JPH0636473A (en) Device and method for recording optical information
US5499147A (en) Rotary head recording and reproduction apparatus with memory and method of operation which compares a reproduced signal with an original signal
JPH0785608A (en) Storage device
JPH0620403A (en) Magnetic disk device
JP2589673B2 (en) Address data detection device
JPS62200576A (en) Normal/defective condition deciding system for sector data
JP3257024B2 (en) Optical disk drive
JP2718953B2 (en) Data recording method to optical card
JPH08297927A (en) Recording and reproducing device and magnetic recording and reproducing device
JPH03156775A (en) Method and device for information recording
JPH11134818A (en) Digital signal reproducing device and digital signal reproducing method
JP3795539B2 (en) Information reproducing method for information reproducing apparatus
JPH06267202A (en) Information recording and reproducing device
JPH05217303A (en) Magnetic disk device
JPH1021657A (en) Error correcting device
JPH056631A (en) Code-error correcting apparatus
JPS6376154A (en) Detection system for synchronizing signal
JPS61260473A (en) Information recording and reproducing device
JPH0581784A (en) Magnetic recording and reproducing device
JPH0349077A (en) Digital information recording and reproducing device
JPH11328677A (en) Reproducing apparatus
JPH04337570A (en) Error deciding method in information recording and reproducing device