JPH01260674A - Magnetic disk device - Google Patents

Magnetic disk device

Info

Publication number
JPH01260674A
JPH01260674A JP8945288A JP8945288A JPH01260674A JP H01260674 A JPH01260674 A JP H01260674A JP 8945288 A JP8945288 A JP 8945288A JP 8945288 A JP8945288 A JP 8945288A JP H01260674 A JPH01260674 A JP H01260674A
Authority
JP
Japan
Prior art keywords
data
data length
section
key
signal line
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
JP8945288A
Other languages
Japanese (ja)
Inventor
Toshibumi Mori
俊文 森
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 JP8945288A priority Critical patent/JPH01260674A/en
Publication of JPH01260674A publication Critical patent/JPH01260674A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To prevent the destruction and the reading error of a format by comparing the data length of a key part and a data part at the time of reading/ writing a count part with the data length of the writing/reading to the key part or the data part and informing to a host device when they do not coincide. CONSTITUTION:A storing part 1 stores the data length of the key part and the data part of the count part in which the writing/reading is executed and a selecting part 2 selects the data length of the key part or the data length of the data part outputted from the storing circuit 1. A counter 1 counts up the unit data of the key part of the data part one by one according to the writing/reading operation thereof and counts the number of times of the operations as the data length. In a comparing means 3, the output of the selecting circuit 2 is compared with the output of the counter 4 and when both the data do not coincide, the discord of the data length is informed to the host device. Thereby, the destruction of the format or the generation of the data error can be prevented.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は磁気ディスク装置に格納されるデータのデータ
長に関し、特にその書込み/読出し方式(従来の技術) 従来、この種の磁気ディスク装置において単位レコード
はカウント部およびデータ部から構成されているか、あ
るいはカウント部、キイ部、ならびにデータ部から構成
されている。カウント部のデータ長はシリンダアドレス
、ヘッドアドレス、ならびにレコード番号に依存せずに
固定長である。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention relates to the data length of data stored in a magnetic disk device, and particularly to its writing/reading method (prior art). A unit record consists of a count section and a data section, or a count section, a key section, and a data section. The data length of the count section is a fixed length independent of the cylinder address, head address, and record number.

しかし、キイ部およびデータ部において、データ長はシ
リンダアドレス、ヘッドアドレス、ならびにレコード番
号により異なっており、それぞれのデータ長は同一レコ
ードのカウント部の情報として書込まれている。
However, in the key section and the data section, the data length differs depending on the cylinder address, head address, and record number, and each data length is written as information in the count section of the same record.

通常、カウント部、キイ部、およびデータ部に対して磁
気ディスク装置は上位装置から送出される書込み信号が
アクティブである期間に書込み動作を続け、上位装置か
ら送出される読出し信号がアクティブである期間に読出
し動作を続けるように構成されている。
Normally, a magnetic disk drive continues writing to the count section, key section, and data section during the period when the write signal sent from the host device is active, and during the period when the read signal sent from the host device is active. The device is configured to continue the read operation.

(発明が解決しようとする課題) 上述した従来の磁気ディスク装置では、上位装置からの
書込み/読出し信号がアクティブである期間に書込み/
読出し動作を続けている。このため、上位装置の故障、
またはE”、/W動作上のバグなどにより、書込み信号
が書込まれるデータ長と一致していない場合忙はフォー
マットを破壊してしまい、読出し信号が読出されるデー
タ長と一致しない場合には読出しエラーが発生するとい
う欠点がある。
(Problems to be Solved by the Invention) In the conventional magnetic disk device described above, writing/reading signals from the host device are active.
Read operation continues. For this reason, failure of the host device,
If the write signal does not match the data length to be written due to a bug in the /W operation, the format will be destroyed, and if the read signal does not match the data length to be read, The disadvantage is that read errors occur.

本発明の目的は、カウント部の書込み/読出しの際に、
キイ部およびデータ部のデータ長と、キイ部またはデー
タ部への書込み/読出しのデータ長とを比較し、上記両
者が一致しないときには上位装置へデータ長の一致しな
い旨を報告することにより上記欠点を除去し、フォーマ
ットの破壊やデータエラーの発生を防ぐこ七ができるよ
うに構成した磁気ディスク装置を提供することにある。
An object of the present invention is to: When writing/reading the count section,
Compare the data length of the key part and data part with the data length of writing/reading to the key part or data part, and if the two do not match, report the fact that the data lengths do not match to the host device, thereby eliminating the above drawbacks. It is an object of the present invention to provide a magnetic disk device configured to remove data and prevent format destruction and data errors.

(饋」度を解決するための手段) 本発明による磁気ディスク装置は、記憶回路と、選択回
路と、カウンタと、比較手段とを具備して構成したもの
である。
(Means for Solving the Feedback Level) A magnetic disk drive according to the present invention includes a storage circuit, a selection circuit, a counter, and a comparison means.

記憶回路は、書込み/読出しの行なわれるカウント部デ
ータのキイ部およびデータ部のデータ長を記憶するため
のものである。
The memory circuit is for storing the data length of the key part and data part of the count part data to be written/read.

選択回路は、記憶回路から出力されるキイ部のデータ長
、あるいはデータ部のデータ長を選択するためのもので
ある。
The selection circuit is for selecting the data length of the key section or the data length of the data section output from the storage circuit.

カウンタは、キイ部またはデータ部の単位データの書込
み/読出し動作によって一つづつカウントアツプし、上
記動作の回数をデータ長として計数するためのものであ
る。
The counter is used to count up one by one by write/read operations of unit data in the key section or data section, and count the number of the above operations as the data length.

比較手段は、選択回路の出力とカウンタの出力とを比較
し、データ長の不一致を報告するためのものである。
The comparison means is for comparing the output of the selection circuit and the output of the counter and reporting a discrepancy in data length.

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

第1図は、本発明による磁気ディスク装置の一実施例を
示すブロック図である。第1図において、1は記憶回路
、2は選択回路、3は比較回路、4はカウンタ、5はN
OTゲート、6.フはそれぞれANDゲート、8はOR
ゲートである。
FIG. 1 is a block diagram showing an embodiment of a magnetic disk device according to the present invention. In FIG. 1, 1 is a storage circuit, 2 is a selection circuit, 3 is a comparison circuit, 4 is a counter, and 5 is an N
OT gate, 6. F is an AND gate, 8 is an OR gate.
It is a gate.

書込み時には信号線9を介して配憶回路1ヘカウント部
書込み/読出しデータが入力される。そこで、記憶回路
1はキイ部およびデータ部のデータを記憶する。読出し
時に記憶回路1は信号線12上にキイ部のデータ長を送
出し、信号線13上にデータ部のデータ長を送出する。
At the time of writing, count section write/read data is input to the storage circuit 1 via the signal line 9. Therefore, the memory circuit 1 stores the data of the key section and the data section. At the time of reading, the memory circuit 1 sends out the data length of the key section onto the signal line 12, and sends out the data length of the data section onto the signal line 13.

キイ部への書込み/読出し時に信号線10上のセレクト
信号がt 1 #になると、選択回路2は信号線12上
のキイ部データ長、あるいは信号線13上のデータ部デ
ータ長のいずれかを選択し、得られたデータ長を信号線
14上に送出する。
When the select signal on the signal line 10 becomes t 1 # during writing/reading to the key section, the selection circuit 2 selects either the key section data length on the signal line 12 or the data section data length on the signal line 13. The selected data length is sent onto the signal line 14.

信号線11からの書込み/読出し信号は、キイ部または
データ部への書込み/読出し時に亀1#になる。書込み
/読出し信号が一1gの間に、カウンタ4は単位データ
ごとに1づつカウントアツプし、カウント信号を信号線
1S上に送出する。
The write/read signal from the signal line 11 becomes the key 1# when writing to/reading from the key section or the data section. While the write/read signal is 11g, the counter 4 counts up by 1 for each unit of data and sends a count signal onto the signal line 1S.

カウンタ4から信号線15上に送出されたカウントs号
と、選択回路2から信号線14上に送出されたデータ長
とが比較回路3により比較される。
The comparison circuit 3 compares the count number s sent from the counter 4 onto the signal line 15 and the data length sent from the selection circuit 2 onto the signal line 14 .

信号@14上に送出されたデータ長の値が信号線15上
に送出されたカウント信号の値よりも大きい場合、比較
回路3より信号線1フ上に送出された判定値が%11と
なる。一方、信号線14上に送出されたデータ長の値が
信号線15上に送出されたカウント信号の値よりも小さ
い場合、比較回路3より信号線16上に送出された判定
値が%lIとなる。
If the value of the data length sent out on the signal @14 is larger than the value of the count signal sent out on the signal line 15, the judgment value sent out on the signal line 1f from the comparison circuit 3 becomes %11. . On the other hand, if the value of the data length sent out on the signal line 14 is smaller than the value of the count signal sent out on the signal line 15, the judgment value sent out on the signal line 16 from the comparison circuit 3 is %lI. Become.

信号線11上の書込み/読出し信号が%1#のとき信号
線16上の判定値が11#であればANDゲート6の出
力は% 11になる。一方、信号線11上の書込み/読
出し信号カーOFのとき信号線17上の判定値が%1F
であれば、ANDゲート7の出力は亀1#になる。
If the write/read signal on signal line 11 is %1# and the judgment value on signal line 16 is 11#, the output of AND gate 6 will be %11. On the other hand, when the write/read signal on signal line 11 is OF, the judgment value on signal line 17 is %1F.
If so, the output of AND gate 7 becomes Kame 1#.

ANDゲート6、フのいずれかの出力が蟻1 #である
か、あるいは両方が%INであればORゲート8から信
号線18上へ送出された信号が%1Nとなる。
If either the output of AND gate 6 or F is 1#, or both are %IN, the signal sent from OR gate 8 onto signal line 18 will be %1N.

次に、上記動作のシーケンスを順次説明する。Next, the sequence of the above operations will be sequentially explained.

キイ部またはデータ部に書込み/読出[7動作を行なう
前に、いったんカウント部の読出し動作を行なうため、
カウント部のデータは信号線9を介して記憶回路IK加
えられ、そのキイ部およびデータ部のデータ長が記憶回
路1に記憶される。
Writing/reading to the key section or data section [7] Before performing the operation, read the count section once.
The data in the count section is applied to the memory circuit IK via the signal line 9, and the data lengths of the key section and data section are stored in the memory circuit 1.

次に、キイ部またはデータ部に書込み/読出し動作を行
なうとき、キイ部のデータ長またはデータ部のデータ長
が信号線10上のセレクト(M号の制御により選択回路
2により選択され、信号線14上に出力される。
Next, when performing a write/read operation to the key section or the data section, the data length of the key section or the data length of the data section is selected by the selection circuit 2 under the control of the select signal (M) on the signal line 10, and 14.

キイ部またはデータ部への書込み、/読出し動作が開始
されると、信号線11上の書込み/読出し信号が%II
となり、カウンタ4がカウントアツプを始める。
When a write/read operation to the key section or data section is started, the write/read signal on the signal line 11 becomes %II.
Then, counter 4 starts counting up.

ここで、キイ部のデータ長、またはデータ部のデータ長
より短い状態で、書込み/読出し動作が終了した場合、
信号線1)上の判定信号出力は亀11となり、信号線1
1上の書込み/続出し信号は%ONとなる。このため、
ANDゲート7の両人力信号はともに11 #となり、
ANDゲート7の出力は%1#七なってORゲー ト8
から信号線18への出力が%1 #となる。
Here, if the write/read operation ends with the data length of the key part or the data length of the data part shorter,
The judgment signal output on signal line 1) becomes turtle 11, and signal line 1
The write/continue output signal above 1 becomes %ON. For this reason,
Both input signals of AND gate 7 become 11 #,
The output of AND gate 7 is %1#7 and OR gate 8
The output from the signal line 18 to the signal line 18 becomes %1#.

書込み/読出し動作がキイ部のデータ長、またはデータ
部のデータ長より長い状態では、信号線16上の判定信
号出力が11′となり、信号線11上の書込み/読出し
信号が1111となる。このため、ANDゲート6の出
力はtINとなり、ORゲート8から信号線18上への
出力が%11となる。
When the write/read operation is longer than the data length of the key section or the data section, the determination signal output on signal line 16 becomes 11', and the write/read signal on signal line 11 becomes 1111. Therefore, the output of the AND gate 6 becomes tIN, and the output from the OR gate 8 onto the signal line 18 becomes %11.

信号線18上の出力信号は上位装置に送出され、データ
長の一致していないことが報告される。
The output signal on the signal line 18 is sent to the host device, and it is reported that the data lengths do not match.

(発明の効果) 以上説明したように本発明は、カウント部の書込み/読
出しの際にキイ部およびデータ部のデータ長と、キイ部
またはデータ部への書込み/読出しのデータ長とを比較
し、上記両者が一致しないときには上位装置へデータの
一致しない旨を報告することにより、上位装置で再試行
を行なうことができ、フォーマットの破壊、および読出
しエラーをなくすことができるので、信頼性を向上でき
るという効果がある。
(Effects of the Invention) As explained above, the present invention compares the data length of the key part and the data part with the data length of the key part or the data part when writing/reading the count part. , when the above two do not match, by reporting the data mismatch to the host device, the host device can retry, eliminating format corruption and read errors, improving reliability. There is an effect that it can be done.

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

第1図は、本発明による磁気ディスク装置の一実施例を
示すブロック図である。 1・・・記憶回路 2・・・選択回路 3・・・比較回路 4・・・カウンタ 5・・・NOT回路 6.7・・・ANDゲート 8・・・ORゲート 9〜18・・・信号線
FIG. 1 is a block diagram showing an embodiment of a magnetic disk device according to the present invention. 1...Memory circuit 2...Selection circuit 3...Comparison circuit 4...Counter 5...NOT circuit 6.7...AND gate 8...OR gates 9-18...Signal line

Claims (1)

【特許請求の範囲】[Claims] 書込み/読出しの行なわれるカウント部データのキイ部
およびデータ部のデータ長を記憶するための記憶回路と
、前記記憶回路から出力される前記キイ部のデータ長、
あるいは前記データ部のデータ長を選択するための選択
回路と、前記キイ部またはデータ部の単位データの書込
み/読出し動作によつて一つづつカウントアップし、前
記動作の回数をデータ長として計数するためのカウンタ
と、前記選択回路の出力と前記カウンタの出力とを比較
し、前記データ長の不一致を報告するための比較手段と
を具備して構成したことを特徴とする磁気ディスク装置
a memory circuit for storing the data length of the key part and data part of the count part data to be written/read; and the data length of the key part output from the memory circuit;
Alternatively, a selection circuit for selecting the data length of the data section and a writing/reading operation of unit data of the key section or the data section are used to count up one by one, and the number of the operations is counted as the data length. 1. A magnetic disk drive comprising: a counter for the selection circuit; and comparison means for comparing the output of the selection circuit with the output of the counter and reporting a discrepancy in the data length.
JP8945288A 1988-04-12 1988-04-12 Magnetic disk device Pending JPH01260674A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8945288A JPH01260674A (en) 1988-04-12 1988-04-12 Magnetic disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8945288A JPH01260674A (en) 1988-04-12 1988-04-12 Magnetic disk device

Publications (1)

Publication Number Publication Date
JPH01260674A true JPH01260674A (en) 1989-10-17

Family

ID=13971082

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8945288A Pending JPH01260674A (en) 1988-04-12 1988-04-12 Magnetic disk device

Country Status (1)

Country Link
JP (1) JPH01260674A (en)

Similar Documents

Publication Publication Date Title
JPS6221143B2 (en)
JPH0654586B2 (en) Track byte guarantee method
JPH01260674A (en) Magnetic disk device
JPH05324950A (en) Logical card for information processor
JP3098363B2 (en) Storage device
JPH0581789A (en) Optical disk device
JPH0441375B2 (en)
JPS60181855A (en) Function monitor for memory
JP3019175B2 (en) Improved mirrored array disk and its data input / output method
JPH04167120A (en) Magnetic disk subsystem
JPS6031035B2 (en) magnetic bubble storage device
JPS6180564A (en) Alternate track write control circuit
JPS6113259B2 (en)
JPH05150908A (en) Auxiliary storage device of high reliability
JPH0158580B2 (en)
JPS5831668B2 (en) Index clock supervisory circuit
JPS6151345B2 (en)
JPS6379151A (en) Disk cache device
JPH07160436A (en) Disk array device
JPH02297620A (en) Input/output control system
JPH04102274A (en) Control system for magnetic memory
JPS617947A (en) Control storage device
JPS5953949A (en) Patrolling system
JPS62197844A (en) Disk cache device
JPH01220265A (en) Controller