JPH0816323A - Magnetic disk device - Google Patents

Magnetic disk device

Info

Publication number
JPH0816323A
JPH0816323A JP6144783A JP14478394A JPH0816323A JP H0816323 A JPH0816323 A JP H0816323A JP 6144783 A JP6144783 A JP 6144783A JP 14478394 A JP14478394 A JP 14478394A JP H0816323 A JPH0816323 A JP H0816323A
Authority
JP
Japan
Prior art keywords
write
data
buffer
information
read
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
JP6144783A
Other languages
Japanese (ja)
Inventor
Chie Yamada
千絵 山田
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 JP6144783A priority Critical patent/JPH0816323A/en
Publication of JPH0816323A publication Critical patent/JPH0816323A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten write waiting time at a host device. CONSTITUTION:This device is provided with an HDA 3 composed of a recording medium and a magnetic head, HDA control part 4 for controlling the write and read of data at this HDA 3, buffer storage part 6A for storing write data received from a host device 9 and in a write buffer 5 and outputting the storage information of written data, and buffer reading part 6B for reading the data out of the write buffer 5, outputting them to the HDA control part 4 and outputting the read information of the read data. Then, a managing information storage part 1 storing buffer managing information composed of storage information and read information is installed together at the write buffer 5, and the buffer read part 6B is equipped with a stored information reference means for starting reading the data from the write buffer 5 while referring to the stored information and a read information updating means for updating the read information when this reading is finished.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、磁気ディスク装置に係
り、特に、処理の高速化に好適な磁気ディスク装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a magnetic disk device, and more particularly to a magnetic disk device suitable for speeding up processing.

【0002】[0002]

【従来の技術】磁気ディスク装置は、電子計算機システ
ムの外部記憶装置として使用されている。上位装置から
磁気ディスク装置への書き込み要求が発生すると、磁気
ディスク装置は、まず上位装置からの書き込み命令を受
け取り、その命令で指定された位置に磁気ヘッドを位置
付けし、その後、命令中で要求されたデータをバッファ
を介して磁気ディスクに書き込むという動作を行ってい
た。
2. Description of the Related Art A magnetic disk device is used as an external storage device of an electronic computer system. When a write request to the magnetic disk device is issued from the host device, the magnetic disk device first receives the write command from the host device, positions the magnetic head at the position specified by the command, and then the request is issued in the command. The data was written to the magnetic disk via the buffer.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記従
来例においては、上位装置から書き込み命令を受ける
と、磁気ディスクへのデータの書き込みが終了するまで
は、上位装置からの次の書き込み命令を受け付けないた
めに、上位装置には、ヘッドの位置付けと媒体へのデー
タの書き込みに要する待ち時間が発生し、特に連続して
いるデータを書き込む場合には、上位装置における待ち
時間が増大するという不都合があった。
However, in the above conventional example, when a write command is received from the host device, the next write command from the host device is not accepted until the writing of data to the magnetic disk is completed. Therefore, a waiting time is required for the host device to position the head and write the data to the medium, and especially when writing continuous data, the waiting time in the host device increases. It was

【0004】[0004]

【発明の目的】本発明の目的は、かかる従来例の有する
不都合を改善し、とくに上位装置における書き込み待ち
時間を短縮することのできる磁気ディスク装置を提供す
ることにある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a magnetic disk device capable of improving the disadvantages of the conventional example and particularly shortening the write waiting time in the host device.

【0005】[0005]

【課題を解決するための手段】そこで、請求項1記載の
本発明では、記録媒体及び磁気ヘッドからなるHDA
と、このHDAでのデータの書き込みおよび読み出しを
制御するHDA制御部と、上位装置から受信した書込デ
ータを書込バッファに格納すると共に当該書き込んだデ
ータの格納情報を出力するバッファ格納部と、書込バッ
ファからデータを読み出してHDA制御部に出力すると
共に当該読み取ったデータの読取情報を出力するバッフ
ァ読取部とを備えている。
Therefore, in the present invention according to claim 1, an HDA comprising a recording medium and a magnetic head is provided.
An HDA control unit that controls writing and reading of data in this HDA; a buffer storage unit that stores write data received from a higher-level device in a write buffer and outputs storage information of the written data. A buffer reading unit that reads data from the write buffer and outputs the data to the HDA control unit and outputs read information of the read data.

【0006】しかも、書込バッファに、格納情報及び読
取情報からなるバッファ管理情報を記憶した管理情報記
憶部を併設している。さらに、バッファ読取部が、格納
情報を参照して書込バッファからのデータの読取を開始
する格納情報参照手段と、当該読取が終了したときに読
取情報を更新する読取情報更新手段とを備えている。
Further, the write buffer is provided with a management information storage section for storing buffer management information consisting of stored information and read information. Further, the buffer reading unit includes a stored information reference unit that starts reading data from the write buffer by referring to the stored information, and a read information updating unit that updates the read information when the reading is completed. There is.

【0007】請求項2記載の本発明では、バッファ格納
部が、書込バッファへの書込データの格納が終了したと
きに上位装置へ書込終了通知を出力する終了通知発行手
段を備えている。
According to the second aspect of the present invention, the buffer storage section is provided with an end notification issuing means for outputting a write end notification to the upper device when the storage of the write data in the write buffer is completed. .

【0008】請求項3記載の本発明では、バッファ格納
部が、上位装置から受信した書込データに基づいて当該
書込データの書込データ量及びHDAにおける書込位置
とを格納情報として出力する格納情報管理手段を備えて
いる。
According to the third aspect of the present invention, the buffer storage section outputs the write data amount of the write data and the write position in the HDA as the storage information based on the write data received from the host device. The storage information management means is provided.

【0009】請求項4記載の本発明では、バッファ格納
部が、書込バッファの容量及び書込データ量から空き容
量を算出するバッファアドレス管理手段と、上位装置か
ら書込データを受信したときに当該書込データ量と空き
容量とを比較して当該書込データ量が大きい場合にバッ
ファ読取部を起動する読取部制御手段とを備えている。
According to another aspect of the present invention, when the buffer storage unit receives the write data from the buffer address management means for calculating the free space from the write buffer capacity and the write data amount, and the host device. And a reading unit control means for activating the buffer reading unit when the write data amount is compared with the free space and the write data amount is large.

【0010】請求項5記載の本発明では、格納情報管理
手段が、上位装置から受信した書込データを書込バッフ
ァへ格納したときにデータ受信フラグを格納情報として
出力すると共に当該書込バッファ上でのアドレスを開始
位置アドレスとして出力する機能を有し、読取情報更新
手段が、当該データ受信フラグが付加された書込データ
を開始位置アドレスから読み出してHDAに出力する機
能を備えている。
According to the fifth aspect of the present invention, the storage information management means outputs the data reception flag as the storage information when the write data received from the higher-level device is stored in the write buffer, and the storage information management means stores the data in the write buffer. The read information updating means has a function of reading the write data to which the data reception flag is added from the start position address and outputting the same to the HDA.

【0011】本発明では、これらの手段によって、上述
した目的を達成しようとするものである。
The present invention is intended to achieve the above-mentioned object by these means.

【0012】[0012]

【作用】請求項1記載の本発明では、バッファ格納部
は、上位装置から受信した書込データを受信すると、当
該書込データを書込バッファに格納すると共に、書き込
んだデータの格納情報を管理情報記憶部に出力する。こ
こで、書込バッファへの書込データの格納が終了したと
きに上位装置へ書込終了通知を出力するようにしてもよ
い(終了通知発行手段)。バッファ読取部は、格納情報
を参照して書込バッファからのデータの読取を開始する
(格納情報参照手段)。バッファ読取部は、この読み取
ったデータをHDA制御部に出力すると共に当該読み取
ったデータの読取情報を管理情報記憶部に出力する。
According to the first aspect of the present invention, when the buffer storage section receives the write data received from the host device, the buffer storage section stores the write data in the write buffer and manages the stored information of the written data. Output to the information storage unit. Here, when the storage of the write data in the write buffer is completed, the write completion notification may be output to the upper-level device (end notification issuing means). The buffer reading unit starts reading data from the write buffer with reference to the stored information (stored information reference means). The buffer reading unit outputs the read data to the HDA control unit and also outputs the read information of the read data to the management information storage unit.

【0013】HDA制御部は、記録媒体及び磁気ヘッド
からなるHDAを駆動制御して、当該読み取ったデータ
を記録媒体に記録する。さらに、バッファ読取部は、書
込バッファからの読取が終了したときに管理情報記憶部
内の読取情報を更新する(読取情報更新手段)。
The HDA controller drives and controls the HDA including a recording medium and a magnetic head to record the read data on the recording medium. Further, the buffer reading unit updates the read information in the management information storage unit when reading from the write buffer is completed (read information updating unit).

【0014】[0014]

【実施例】以下、本発明の一実施例を図面を参照して説
明する。図1は本実施例の構成を示す機能ブロック図で
ある。記録媒体3A及び磁気ヘッド3BからなるHDA
3と、このHDA3でのデータの書き込みおよび読み出
しを制御するHDA制御部4と、上位装置9から受信し
た書込データを書込バッファ5に格納すると共に当該書
き込んだデータの格納情報を出力するバッファ格納部6
Aと、書込バッファ5からデータを読み出してHDA制
御部4に出力すると共に当該読み取ったデータの読取情
報を出力するバッファ読取部6Bとを備えている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a functional block diagram showing the configuration of the present embodiment. HDA composed of recording medium 3A and magnetic head 3B
3, an HDA controller 4 that controls writing and reading of data in the HDA 3, and a buffer that stores the write data received from the higher-level device 9 in the write buffer 5 and outputs the storage information of the written data. Storage 6
A and a buffer reading unit 6B that reads data from the write buffer 5 and outputs it to the HDA control unit 4 and outputs read information of the read data.

【0015】しかも、書込バッファ5に、格納情報及び
読取情報からなるバッファ管理情報を記憶した管理情報
記憶部1を併設している。さらに、バッファ読取部6B
が、格納情報を参照して書込バッファ5からのデータの
読取を開始する格納情報参照手段と、当該読取が終了し
たときに読取情報を更新する読取情報更新手段とを備え
ている。
Moreover, the write buffer 5 is provided with the management information storage unit 1 for storing buffer management information consisting of stored information and read information. Further, the buffer reading unit 6B
However, it is provided with a stored information reference means for starting the reading of data from the write buffer 5 by referring to the stored information and a read information updating means for updating the read information when the reading is completed.

【0016】これを詳細に説明する。図2の実施例は、
記録媒体へのデータの書き込みおよび読み出しを行うH
DA(ヘッドディスクアセンブリ)3と、HDA3での
データの書き込みおよび読み出しを制御するHDA制御
部4と、上位装置9とのデータの入出力を制御するイン
ターフェース制御部8と、インターフェース制御部8を
介して受信した上位装置9からの書き込みデータを一時
的に格納する書込バッファ5と、書込バッファ5から読
み出したデータをHDA3に適した型へデータ変換する
フォーマット制御部7と、書込バッファ5およびHDA
3への書き込み情報(バッファ管理情報)のテーブルで
ある書込管理テーブル1aと、上位装置9からの書き込
みデータに基づいて書込管理テーブル1aを作成し書込
バッファ5への格納が終了すると上位装置9に書き込み
終了を通知するとともに書込管理テーブル1aに基づい
て各制御部を制御して書き込みデータを記録媒体へ書き
込むメイン制御部2とから構成される。
This will be described in detail. The embodiment of FIG. 2 is
H for writing and reading data to and from the recording medium
Via a DA (head disk assembly) 3, an HDA controller 4 that controls writing and reading of data in the HDA 3, an interface controller 8 that controls input / output of data to / from a higher-level device 9, and an interface controller 8. Write buffer 5 for temporarily storing write data received from host device 9, format controller 7 for converting the data read from write buffer 5 into a type suitable for HDA 3, and write buffer 5 And HDA
Write management table 1a, which is a table of write information (buffer management information) to the memory 3, and the write management table 1a based on the write data from the higher-level device 9, and when storage in the write buffer 5 ends The main control unit 2 notifies the device 9 of the end of writing and controls each control unit based on the write management table 1a to write the write data to the recording medium.

【0017】ここで、メイン制御部2としてはマイクロ
プロセッサ(MPU)が用いられる。
Here, a microprocessor (MPU) is used as the main controller 2.

【0018】HDA3は、データを記録する記録媒体3
Aと、記録媒体3Aの所定位置にデータを書き込むとと
もに記録媒体3Aの所定位置からデータを読み出すため
のヘッド3Bとを具備する。HDA制御部4は、HDA
3におけるヘッド位置を制御するサーボ制御部4Aと、
サーボ制御部4Aにおいて位置付けされたヘッドを介し
て記録媒体上におけるデータの書き込みおよび読み出し
を制御するリードライト制御部4Bとを具備する。
The HDA 3 is a recording medium 3 for recording data
A and a head 3B for writing data in a predetermined position of the recording medium 3A and reading data from a predetermined position of the recording medium 3A. HDA control unit 4 is HDA
A servo control unit 4A for controlling the head position in 3;
The servo control unit 4A includes a read / write control unit 4B that controls writing and reading of data on a recording medium via a head positioned in the servo control unit 4A.

【0019】書込バッファ5は、上位装置9からの書き
込みデータを一時的に記憶する。ここでは、本体に設置
されているRAMの一部を領域確保して、書込バッファ
5として使用している。また、書込バッファ5には、こ
の書込バッファ5へのデータの書き込みおよび読み出し
を制御するバッファ管理部6が併設されている。メイン
制御部2とこのバッファ管理部6とで、前述したバッフ
ァ格納部6A及びバッファ読取部6Bとして機能してい
る。即ち、バッファ管理部6はRAMに対する書込及び
読取を制御し、実際のデータ転送に係る部分はメイン制
御部2によって行われる。
The write buffer 5 temporarily stores write data from the host device 9. Here, a part of the RAM installed in the main body is reserved as an area and used as the write buffer 5. The write buffer 5 is also provided with a buffer management unit 6 that controls writing and reading of data to and from the write buffer 5. The main control unit 2 and the buffer management unit 6 function as the buffer storage unit 6A and the buffer reading unit 6B described above. That is, the buffer management unit 6 controls writing and reading with respect to the RAM, and the part related to the actual data transfer is performed by the main control unit 2.

【0020】書込管理テーブル1aは、管理情報記憶部
1に格納されていて、図3に示されるように、n個の書
き込み命令テーブルT1と、データ読み込みポインタT
2、データ書き込みポインタT3とで構成される。
The write management table 1a is stored in the management information storage unit 1 and, as shown in FIG. 3, n write command tables T1 and a data read pointer T.
2 and a data write pointer T3.

【0021】書き込み命令テーブルT1は、データ受信
フラグエリアT4と、バッファ開始アドレスエリアT5
と、書き込みデータ数エリアT6と、書き込みアドレス
エリアT7の4つのエリアから成る。
The write command table T1 includes a data reception flag area T4 and a buffer start address area T5.
And a write data number area T6 and a write address area T7.

【0022】上位装置1から受信した書き込み命令1つ
に対して1つの書き込み命令テーブルT1が割り当てら
れる。
One write command table T1 is assigned to one write command received from the host device 1.

【0023】そして、上位装置9が記録媒体に書き込み
を要求しているデータ数が書き込みデータ数エリアT6
に、記録媒体における書き込み位置が書き込みアドレス
エリアT7に書き込まれる。
The number of data requested to be written in the recording medium by the host device 9 is the write data number area T6.
Then, the write position on the recording medium is written in the write address area T7.

【0024】データ受信フラグエリアT4は、この命令
で書き込むデータの全てを書込バッファ5に格納した時
にセット(格納情報)され、その書込バッファ5のデー
タを全て記録媒体に書き込んだときにリセット(読取情
報)される。
The data reception flag area T4 is set (stored information) when all the data to be written by this command is stored in the write buffer 5, and reset when all the data in the write buffer 5 is written to the recording medium. (Read information).

【0025】また、バッファ開始アドレスエリアT5に
は、書込バッファ5にデータを格納したときにそのデー
タの先頭を示すアドレスが書き込まれる(格納情報)。
そして、そのデータを全て記録媒体に書き込んだ時にク
リアされる(読取情報)。
In the buffer start address area T5, when data is stored in the write buffer 5, an address indicating the head of the data is written (stored information).
Then, when all the data is written in the recording medium, it is cleared (read information).

【0026】書込管理テーブル1aは、管理情報記憶部
1に格納されていて、管理情報記憶部1はRAM上に領
域確保されている。
The write management table 1a is stored in the management information storage unit 1, and the management information storage unit 1 has an area secured in the RAM.

【0027】次に、本実施例の動作について図4及び図
5を参照して説明する。ここでは、まず上位装置9のデ
ータを書込バッファ5に格納する動作を説明し、次いで
書込バッファ5のデータを記録媒体に書き込む動作を説
明する。
Next, the operation of this embodiment will be described with reference to FIGS. Here, the operation of storing the data of the host device 9 in the write buffer 5 will be described first, and then the operation of writing the data of the write buffer 5 in the recording medium will be described.

【0028】(I).バッファ格納部6Aの動作。(I). Operation of the buffer storage unit 6A.

【0029】.インターフェース制御部8は、上位装
置9から書き込み命令を受信するとMPU2に通知する
(ステップA1)。
.. When the interface controller 8 receives the write command from the higher-level device 9, the interface controller 8 notifies the MPU 2 (step A1).

【0030】.MPU2は、インターフェース制御部
8から通知を受けると、受信命令をインターフェース制
御部8から取り出し、その内容に沿って、書込管理テー
ブル1aにおける書き込みデータ数エリアT6と書き込
みアドレスエリアT7に値を設定し、その他のエリアは
クリアして、データ読み込みポインタT2の示す位置に
書き込み命令テーブルT1を格納する(ステップA2:
格納情報管理手段)。
[0030] Upon receiving the notification from the interface control unit 8, the MPU 2 fetches the reception command from the interface control unit 8, and sets the values in the write data number area T6 and the write address area T7 in the write management table 1a according to the contents thereof. , Other areas are cleared, and the write instruction table T1 is stored at the position indicated by the data read pointer T2 (step A2:
Stored information management means).

【0031】.次にMPU2は、あらかじめ管理して
いる書込バッファ5の記憶容量と、書き込みデータ数を
比較し、書込バッファ5に受信した全データの格納可能
な空き領域が存在するか否かをチェックする(ステップ
A3: バッファアドレス管理手段)。
[0031] Next, the MPU 2 compares the storage capacity of the write buffer 5 that is managed in advance with the number of write data, and checks whether or not there is a free space in the write buffer 5 in which all the received data can be stored. (Step A3: Buffer address management means).

【0032】.MPU2は、データの格納が可能であ
ると判断すれば、書き込み命令テーブルT1におけるバ
ッファ開始アドレスエリアT5に値を設定するとともに
(ステップA5: バッファアドレス管理手段)、設定
したバッファアドレスから上位装置9からのデータを格
納するように、バッファ管理部6に対して命令を発行す
る。
[0032] When the MPU 2 determines that the data can be stored, the MPU 2 sets a value in the buffer start address area T5 in the write command table T1 (step A5: buffer address management means), and the upper device 9 uses the set buffer address. A command is issued to the buffer management unit 6 so as to store the data.

【0033】一方、MPU2は、書込バッファ5に空き
容量が存在しない場合には空きができるまで待ち(ステ
ップA4)、バッファ読取部6Bが起動していないとき
にはこれを起動して書込バッファ5に空き容量が発生す
るように制御する(読取部制御手段)。
On the other hand, if there is no free space in the write buffer 5, the MPU 2 waits until there is free space (step A4), and if the buffer reading unit 6B is not running, activates it to write buffer 5. It is controlled so that a free space is generated (reading section control means).

【0034】.バッファ管理部6は、MPU2からデ
ータ格納の指令を受けると、インターフェース制御部8
を介して上位装置9からのデータを受信し、書込バッフ
ァ5の所定アドレスに格納する。
.. When the buffer management unit 6 receives a data storage command from the MPU 2, the interface management unit 8
The data is received from the higher-level device 9 via the, and stored in a predetermined address of the write buffer 5.

【0035】バッファ管理部6は、全データの格納が完
了すると、MPU2に完了通知を出力する(ステップA
6: 終了通知発行手段)。
When the storage of all data is completed, the buffer management unit 6 outputs a completion notice to the MPU 2 (step A
6: Termination notification issuing means).

【0036】.MPU2は、バッファ管理部6から完
了通知を受け取ると、データ読み込みポインタT2が示
す書き込み命令テーブルT1中のデータ受信フラグT4
をセットし(ステップA7)、データ読み込みポインタ
T2を進行方向に1つ進める(ステップA8)。
.. Upon receiving the completion notification from the buffer management unit 6, the MPU 2 receives the data reception flag T4 in the write instruction table T1 indicated by the data read pointer T2.
Is set (step A7), and the data read pointer T2 is advanced by 1 in the direction of travel (step A8).

【0037】.そしてMPU2は、インターフェース
制御部8を介して上位装置9に書き込み命令の終了を通
知する(ステップA9)。
.. Then, the MPU 2 notifies the host device 9 of the end of the write command via the interface control unit 8 (step A9).

【0038】(II).次に書込バッファ5のデータを
記録媒体に書き込む動作について、図5のフローチャー
トを用いて説明する。
(II). Next, the operation of writing the data of the write buffer 5 to the recording medium will be described with reference to the flowchart of FIG.

【0039】.MPU2は、書込管理テーブル1aの
データ読み込みポインタT2とデータ書き込みポインタ
T3を比較することにより、書込管理テーブル1aに命
令テーブルT1が存在するか否かをチェックする(ステ
ップB1)。
.. The MPU 2 compares the data read pointer T2 of the write management table 1a with the data write pointer T3 to check whether or not the instruction table T1 exists in the write management table 1a (step B1).

【0040】MPU2は、データ読み込みポインタT2
とデータ書き込みポインタT3が一致する場合は、書込
管理テーブル1aに書き込み命令テーブルT1が存在し
ないと判断し、記録媒体への書き込み処理を終了する
(ステップB10)。
The MPU2 has a data read pointer T2.
And the data write pointer T3 match, it is determined that the write command table T1 does not exist in the write management table 1a, and the write processing to the recording medium ends (step B10).

【0041】.MPU2は、書込管理テーブル1aに
命令テーブルT1が存在する場合には、データ書き込み
ポインタT3の示す書き込み命令テーブルT1−1を取
り出し(ステップB2)、書込バッファ5へのデータの
格納が完了しているか否かをチェックする(ステップB
3)。
.. If the instruction table T1 exists in the write management table 1a, the MPU 2 takes out the write instruction table T1-1 indicated by the data write pointer T3 (step B2), and the storage of the data in the write buffer 5 is completed. Check whether or not (Step B
3).

【0042】MPU2は、取り出した書き込み命令テー
ブルT1において、データ受信フラグT4がセットされ
ていれば、書込バッファ5にデータが存在するため、デ
ータの受信が完了していると判断し、書き込みアドレス
エリアT7の内容に従ってヘッドの位置決めを実行する
よう、サーボ制御部4Aに対し指令を発行す(ステップ
B4)。
If the data reception flag T4 is set in the fetched write instruction table T1, the MPU 2 judges that the data reception is completed because the data exists in the write buffer 5, and the write address is completed. A command is issued to the servo control unit 4A to execute head positioning according to the contents of the area T7 (step B4).

【0043】一方、MPU2は、取り出した書き込み命
令テーブルにおいて、データ受信フラグT4がセットさ
れていない場合は、書込バッファ5中にデータが存在し
ないため、データの受信が完了していないと判断し、上
記(I)で説明したように、上位装置9からのデータを
書込バッファ5に格納し(ステップB8)、全てのデー
タを格納した後、書き込み命令テーブルT1のデータ受
信フラグT4をセットする(ステップB9)。
On the other hand, when the data reception flag T4 is not set in the fetched write command table, the MPU 2 judges that the data reception is not completed because there is no data in the write buffer 5. As described in (I) above, the data from the host device 9 is stored in the write buffer 5 (step B8), and after storing all the data, the data reception flag T4 of the write command table T1 is set. (Step B9).

【0044】.サーボ制御部4Aは、MPU2からヘ
ッドの位置決め指令を受け取ると、HDA3中のヘッド
を記録媒体上の所定の位置に移動させる。
[0044] Upon receiving the head positioning command from the MPU 2, the servo control unit 4A moves the head in the HDA 3 to a predetermined position on the recording medium.

【0045】ヘッドが記録媒体上の所定の位置に移動す
ると、サーボ制御部4Aは、位置付け完了通知をMPU
2に送る。
When the head moves to a predetermined position on the recording medium, the servo controller 4A sends a positioning completion notification to the MPU.
Send to 2.

【0046】.MPU2は、サーボ制御部4Aからヘ
ッドの位置付けの完了通知を受けると、バッファ管理部
6に対し、書込バッファ5に格納されているデータをフ
ォーマット制御部7へ送るよう指示する。
[0046] Upon receiving the head positioning completion notification from the servo control unit 4A, the MPU 2 instructs the buffer management unit 6 to send the data stored in the write buffer 5 to the format control unit 7.

【0047】.バッファ管理部6は、MPU2から指
令を受け取ると、書込バッファ5に格納されているデー
タをフォーマット制御部7に送る。
.. When receiving the command from the MPU 2, the buffer management unit 6 sends the data stored in the write buffer 5 to the format control unit 7.

【0048】.フォーマット制御部7は、受け取った
データを記録媒体に記録するのに適した符号に変換し、
リードライト制御部4Bへ送る。
.. The format control unit 7 converts the received data into a code suitable for recording on a recording medium,
It is sent to the read / write control unit 4B.

【0049】.リードライト制御部4Bは、受け取っ
た符号をHDA3のヘッドを介して記録媒体に書き込む
(ステップB5)。
.. The read / write control unit 4B writes the received code on the recording medium via the head of the HDA 3 (step B5).

【0050】.バッファ管理部6は、全てのデータの
書き込みを完了するとMPU2へ書き込み完了通知を送
る。
.. The buffer management unit 6 sends a write completion notification to the MPU 2 when writing of all data is completed.

【0051】.MPU2は、バッファ管理部6から通
知を受け取ると、データ書き込みポインタT3の示すテ
ーブルのデータ受信フラグT4をリセットし(ステップ
B6)、またその他のエリアをクリアした後、データ書
き込みポインタT3を進行方向に1つ進める(ステップ
B7)。
.. Upon receiving the notification from the buffer management unit 6, the MPU 2 resets the data reception flag T4 in the table indicated by the data write pointer T3 (step B6), clears other areas, and then moves the data write pointer T3 in the traveling direction. Advance one (step B7).

【0052】そして、上記処理に戻る。Then, the process returns to the above.

【0053】以上のように、上位装置9から書き込みデ
ータを受信すると、書込バッファ5への書き込みデータ
の格納が終了した時に、上位装置9に書き込み終了を通
知するため、上位装置9は、少ない待ち時間で次の書き
込みデータを送信することができる。
As described above, when the write data is received from the higher-level device 9, when the storage of the write data in the write buffer 5 is completed, the higher-level device 9 is notified of the end of the write. The next write data can be transmitted during the waiting time.

【0054】また、書き込みデータが連続する場合に
は、ヘッドの位置付け時間を短縮することができるた
め、記録媒体への書き込み時間も短縮することができ
る。
Further, when the write data is continuous, the head positioning time can be shortened, so that the writing time on the recording medium can also be shortened.

【0055】[0055]

【発明の効果】本発明は以上のように構成され機能する
ので、これによると、上位装置からの書き込みデータを
バッファに格納した時点で上位装置に終了報告を通知
し、その後にバッファに格納されたデータを記録媒体に
書き込むができ、これがため、記録媒体への書き込み速
度に影響されることなく上位装置から書き込みデータを
受け取ることができるという従来にない優れた磁気ディ
スク装置を提供することができる。
Since the present invention is constructed and functions as described above, according to this, when the write data from the higher-level device is stored in the buffer, the higher-level device is notified of the end report and then stored in the buffer. It is possible to provide an unprecedented excellent magnetic disk device in which write data can be written to a recording medium, and thus write data can be received from a higher-level device without being affected by the writing speed to the recording medium. .

【0056】また、上位装置のデータ転送速度が、記録
媒体への書き込み速度より十分に大きく、かつ、書き込
み命令及びそのデータが連続している場合には、回転待
ち時間などのヘッドの駆動時間がなくなるために、上位
装置に対する書き込み命令の処理時間を低減することが
できる。
When the data transfer speed of the host device is sufficiently higher than the write speed to the recording medium and the write command and its data are continuous, the head drive time such as the rotation waiting time is increased. Since it is eliminated, it is possible to reduce the processing time of the write command to the host device.

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

【図1】本発明の一実施例を示す機能ブロック図であ
る。
FIG. 1 is a functional block diagram showing an embodiment of the present invention.

【図2】図1に示した実施例の構成図である。FIG. 2 is a configuration diagram of the embodiment shown in FIG.

【図3】図1に示した実施例の書込管理テーブルであ
る。
FIG. 3 is a write management table of the embodiment shown in FIG.

【図4】図2に示した上位装置からのデータ受信時の動
作を説明するためのフローチャートである。
FIG. 4 is a flowchart for explaining an operation when receiving data from the host device shown in FIG.

【図5】図2の実施例における記録媒体へのデータ書き
込み時の動作を説明するためのフローチャートである。
5 is a flow chart for explaining an operation at the time of writing data to the recording medium in the embodiment of FIG.

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

1 管理情報記憶部 1a 書込管理テーブル 2 メイン制御部(マイクロプロセッサ:MPU) 3 HDA(ヘッドディスクアセンブリ) 3A 記録媒体 3B 磁気ヘッド 4 HDA制御部 4A サーボ制御部 4B リードライト制御部 5 書込バッファ 6 バッファ管理部 6A バッファ格納部 6B バッファ読取部 7 フォーマット制御部 8 インターフェース制御部 9 上位装置 1 Management Information Storage Unit 1a Write Management Table 2 Main Control Unit (Microprocessor: MPU) 3 HDA (Head Disk Assembly) 3A Recording Medium 3B Magnetic Head 4 HDA Control Unit 4A Servo Control Unit 4B Read / Write Control Unit 5 Write Buffer 6 buffer management unit 6A buffer storage unit 6B buffer reading unit 7 format control unit 8 interface control unit 9 host device

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 記録媒体及び磁気ヘッドからなるHDA
と、このHDAを駆動制御することでデータの書き込み
および読み出しを行うHDA制御部と、上位装置から受
信した書込データを書込バッファに格納すると共に当該
書き込んだデータの格納情報を出力するバッファ格納部
と、前記書込バッファからデータを読み出して前記HD
A制御部に出力すると共に当該読み取ったデータの読取
情報を出力するバッファ読取部とを備え、 前記書込バッファに、前記格納情報及び読取情報からな
るバッファ管理情報を記憶した管理情報記憶部を併設
し、前記バッファ読取部が、前記格納情報を参照して前
記書込バッファからのデータの読取を開始する格納情報
参照手段と、当該読取が終了したときに前記読取情報を
更新する読取情報更新手段とを備えたことを特徴とする
磁気ディスク装置。
1. An HDA comprising a recording medium and a magnetic head
And an HDA control unit that drives and controls the HDA to write and read data, and a buffer storage that stores write data received from a higher-level device in a write buffer and outputs storage information of the written data. And the HD by reading data from the write buffer.
A buffer reading unit that outputs the read information of the read data together with the control information storage unit that stores the buffer management information including the storage information and the read information in the write buffer. Then, the buffer reading unit refers to the stored information to start reading the data from the write buffer, and a read information updating unit that updates the read information when the reading is completed. A magnetic disk device comprising:
【請求項2】 前記バッファ格納部が、前記書込バッフ
ァへの前記書込データの格納が終了したときに前記上位
装置へ書込終了通知を出力する終了通知発行手段を備え
たことを特徴とする請求項1記載の磁気ディスク装置。
2. The buffer storage unit comprises an end notification issuing means for outputting a write end notification to the higher-level device when storage of the write data in the write buffer is completed. The magnetic disk drive according to claim 1.
【請求項3】 前記バッファ格納部が、上位装置から受
信した書込データに基づいて当該書込データの書込デー
タ量及び前記HDAにおける書込位置とを前記格納情報
として出力する格納情報管理手段を備えたことを特徴と
する請求項1又は2記載の磁気ディスク装置。
3. The storage information management means for outputting the write data amount of the write data and the write position in the HDA as the storage information, based on the write data received from the host device. 3. The magnetic disk drive according to claim 1, further comprising:
【請求項4】 前記バッファ格納部が、前記書込バッフ
ァの容量及び前記書込データ量から空き容量を算出する
バッファアドレス管理手段と、上位装置から書込データ
を受信したときに当該書込データ量と前記空き容量とを
比較して当該書込データ量が大きい場合に前記バッファ
読取部を起動する読取部制御手段とを備えたことを特徴
とする請求項3記載の磁気ディスク装置。
4. The buffer storage unit calculates a free space from the capacity of the write buffer and the write data amount, and the write data when the write data is received from a host device. 4. A magnetic disk device according to claim 3, further comprising: a reading unit control means for comparing the amount of data and the free space and activating the buffer reading unit when the amount of write data is large.
【請求項5】 前記格納情報管理手段が、上位装置から
受信した書込データを前記書込バッファへ格納したとき
にデータ受信フラグを前記格納情報として出力すると共
に当該書込バッファ上でのアドレスを開始位置アドレス
として出力する機能を有し、前記読取情報更新手段が、
当該データ受信フラグが付加された書込データを前記開
始位置アドレスから読み出して前記HDAに出力する機
能を備えたことを特徴とする請求項3記載の磁気ディス
ク装置。
5. The storage information management means outputs a data reception flag as the storage information when storing the write data received from the higher-level device in the write buffer, and at the same time outputs the address on the write buffer. The read information updating means has a function of outputting as a start position address,
4. The magnetic disk device according to claim 3, further comprising a function of reading the write data added with the data reception flag from the start position address and outputting the read data to the HDA.
JP6144783A 1994-06-27 1994-06-27 Magnetic disk device Pending JPH0816323A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6144783A JPH0816323A (en) 1994-06-27 1994-06-27 Magnetic disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6144783A JPH0816323A (en) 1994-06-27 1994-06-27 Magnetic disk device

Publications (1)

Publication Number Publication Date
JPH0816323A true JPH0816323A (en) 1996-01-19

Family

ID=15370345

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6144783A Pending JPH0816323A (en) 1994-06-27 1994-06-27 Magnetic disk device

Country Status (1)

Country Link
JP (1) JPH0816323A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5851367A (en) * 1981-09-24 1983-03-26 Fujitsu Ltd Control processing system for floppy disk device
JPS59123974A (en) * 1982-12-29 1984-07-17 Fujitsu Ltd Vector data storage control system
JPH05113854A (en) * 1991-06-27 1993-05-07 Nec Corp Disk device with buffer
JPH05298034A (en) * 1992-04-17 1993-11-12 Ricoh Co Ltd Control method for external storage device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5851367A (en) * 1981-09-24 1983-03-26 Fujitsu Ltd Control processing system for floppy disk device
JPS59123974A (en) * 1982-12-29 1984-07-17 Fujitsu Ltd Vector data storage control system
JPH05113854A (en) * 1991-06-27 1993-05-07 Nec Corp Disk device with buffer
JPH05298034A (en) * 1992-04-17 1993-11-12 Ricoh Co Ltd Control method for external storage device

Similar Documents

Publication Publication Date Title
JP3032321B2 (en) Access control method for optical disk device
US7546403B2 (en) Method and apparatus for a disc drive client interface
JPH0816323A (en) Magnetic disk device
US6795893B2 (en) Recordable disk recording controller with batch register controller
US5261075A (en) Optical recording medium access system
JPS6331806B2 (en)
JP2001014219A (en) Method and device for controlling cache
JPH10254781A (en) Auxiliary storage device
JP3376316B2 (en) Disk array device, high-speed communication method used therefor, and recording medium recording control program therefor
JPH0684283A (en) Transfer method for magneto-optical disk data
JPS58219658A (en) Magnetic disk controller
JPH0528651A (en) Information recorder and reproducer
JPH05181613A (en) Information processor
JPH0934782A (en) Information storage device
JPH05242605A (en) Disk control device
JPH0863396A (en) Disk cache device
JPH05182369A (en) Magnetic disk control method
JPH04322341A (en) Disk cache controller
JPH012155A (en) External storage device write control method
JPH11296305A (en) Computer readable medium for recording program for allowing computer to execute copying method and copying device
JPS6234227A (en) Auxiliary memory device
JPH0314019A (en) Access system for medium collective device
JPH04148351A (en) Disk cache controller
JPH04359312A (en) Electronic disk subsystem
JPS6194167A (en) Peripheral controller

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19961203