JPH04351747A - Disk control system - Google Patents

Disk control system

Info

Publication number
JPH04351747A
JPH04351747A JP12635591A JP12635591A JPH04351747A JP H04351747 A JPH04351747 A JP H04351747A JP 12635591 A JP12635591 A JP 12635591A JP 12635591 A JP12635591 A JP 12635591A JP H04351747 A JPH04351747 A JP H04351747A
Authority
JP
Japan
Prior art keywords
read
counter
value
signal
mpu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP12635591A
Other languages
Japanese (ja)
Other versions
JP3104288B2 (en
Inventor
Hisao Tateishi
立石 久男
Misao Hagiwara
操 萩原
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 JP03126355A priority Critical patent/JP3104288B2/en
Publication of JPH04351747A publication Critical patent/JPH04351747A/en
Application granted granted Critical
Publication of JP3104288B2 publication Critical patent/JP3104288B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To shorten the waiting time at the time of read and write by constituting the system in such a way that the execution of an MPU command and the control on a disk device are performed by a disk controller, and a reference signal is counted by a counter, which is reset by an index signal, while its counted value is latched by a register. CONSTITUTION:A read/write processing command, etc., are written by the disk controller 1 with the MPU via a system bus 101, and after the above execution, its result is informed to the MPU. The reference signal 105 is counted by a fixed value by the counter 2, which is reset by the index signal 103. A value of the counter 2 is latched by the register 3, where read by the MPU is mediated via the bus 101, and the device is controlled by a control signal 102 and the signal 103. By this method, a physical position of each sector on a recording medium corresponds proportionally to a value of the register 3, and hence the latency time at the time of read/write of a sector can drastically be reduced.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はディスクコントロールシ
ステムに関し、特に、ディスク装置のデータをリードお
よびライト制御するディスクコントロールシステムに関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a disk control system, and more particularly to a disk control system that controls reading and writing of data in a disk device.

【0002】0002

【従来の技術】従来のディスクコントロールシステムに
おいては、ディスク装置上のデータをリードおよびライ
トする場合には、上位のMPUによりディスク装置制御
用のディスクコントローラに対して、リードおよびライ
ト動作に応じたコマンドと、シリンダ、ヘッド、セクタ
番号等から成る目的のセクタ情報を書込み、このディス
クコントローラにおいて、このコマンドとセクタ情報に
応じて、先ず目的のセクタのID(IDENTITIY
)フィールドが見付けられるまでリードし、このIDフ
ィールドが見付かった後において、この後に続くDAT
Aフィールドのデータをリードまたはライトする制御方
式が用いられている。
2. Description of the Related Art In conventional disk control systems, when reading and writing data on a disk device, a host MPU sends commands corresponding to read and write operations to a disk controller for controlling the disk device. Then, the target sector information consisting of cylinder, head, sector number, etc. is written, and this disk controller first writes the ID (IDENTITIY) of the target sector according to this command and sector information.
) field is found, and after this ID field is found, the following DAT
A control method is used to read or write data in the A field.

【0003】このような制御用コントローラとしては、
例えば、フロッピィディスク装置用としては、NEC社
製μPD765AC、またはハードディスク装置用とし
ては、NEC社製μPD7261A等がある〔NEC社
出版:「μPD765A、765B、7265  FD
Cユーザーズマニュアル」(ITM−782J)、およ
び「μPD7261、72061リードディスクコント
ローラ・ユーザーズマニュアル」(IEM−5005A
)〕。
[0003] As such a controller,
For example, for floppy disk devices, there is μPD765AC manufactured by NEC Corporation, and for hard disk devices, there is μPD7261A manufactured by NEC Corporation [Published by NEC Corporation: "μPD765A, 765B, 7265 FD"
C User's Manual" (ITM-782J), and "μPD7261, 72061 Read Disk Controller User's Manual" (IEM-5005A)
)].

【発明が解決しようとする課題】上述した従来のディス
クコントロールシステムにおける制御方式においては、
ディスクコントローラにおいて、目的のセクタのIDフ
ィールドを見付ける処理が開始された時点において、た
またま、この目的のセクタのIDフィールドがリードラ
イトヘッドを通過した直後である状態においては、ディ
スク装置内の記憶媒体が回転しているために、目的のセ
クタが再度1回転してリード/ライトヘッドを経由して
読出されるまで待たざるを得ず、従って、目的のセクタ
のDATAフィールドをリードまたはライトするのに最
大で1回転の回転待ちを生じ、この待ち時間に対応する
時間を余分に要するという欠点がある。
[Problems to be Solved by the Invention] In the control method in the conventional disk control system described above,
When the disk controller starts the process of finding the ID field of the target sector, it happens that the ID field of the target sector has just passed the read/write head. Because of the rotation, the target sector has to wait for another revolution to be read out via the read/write head, thus it takes up to However, there is a disadvantage in that there is a waiting time for one rotation, and an extra time is required to correspond to this waiting time.

【0004】0004

【課題を解決するための手段】本発明のディスクコント
ロールシステムは、リード/ライト処理のシーケンスを
制御するMPUからのリード/ライト処理のコマンドを
受けて実行するディスクコントローラと、所定の基準信
号を一定値だけカウントして、所定のINDEX信号に
よりリセットされるカウンタと、前記カウンタの値をラ
ッチして、システムバスを介して前記MPUによるカウ
ンタ値リードを媒介するレジスタと、所定の制御信号お
よび前記INDEX信号を介して、前記ディスクコント
ローラにより制御されるディスク装置と、を備えて構成
される。
[Means for Solving the Problems] The disk control system of the present invention includes a disk controller that receives and executes read/write processing commands from an MPU that controls read/write processing sequences, and a disk controller that controls a predetermined reference signal at a constant level. a counter that counts only a value and is reset by a predetermined INDEX signal; a register that latches the counter value and mediates reading of the counter value by the MPU via a system bus; and a predetermined control signal and the INDEX signal. and a disk device controlled by the disk controller via signals.

【0005】[0005]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained with reference to the drawings.

【0006】図1は本発明の第1の実施例を示すブロッ
ク図である。図1に示されるように、本実施例は、リー
ド/ライト処理のシーケンスを制御するMPU(図示せ
ず)および制御用ファームウェア等が内蔵されるROM
等が接続されるシステムバス101に対応して、前記M
PUによりリードおよびライト処理のコマンド等が書込
まれ、その実行後に当該結果を当該MPUに報告するデ
ィスクコントローラ1と、基準信号105を一定値だけ
カウントして、INDEX信号103によりリセットさ
れるカウンタ2と、カウンタ2の値をラッチして、シス
テムバス101を介して前記MPUによるリードを媒介
するレジスタ3と、制御信号102およびINDEX信
号103を介して、ディスクコントローラにより制御さ
れるディスク装置4と、を備えて構成される。
FIG. 1 is a block diagram showing a first embodiment of the present invention. As shown in FIG. 1, this embodiment uses an MPU (not shown) that controls the sequence of read/write processing and a ROM that contains control firmware, etc.
The above-mentioned M
A disk controller 1 to which commands for read and write processing are written by the PU and after execution reports the results to the MPU, and a counter 2 which counts the reference signal 105 by a certain value and is reset by the INDEX signal 103. a register 3 that latches the value of the counter 2 and mediates reading by the MPU via the system bus 101; and a disk device 4 that is controlled by the disk controller via the control signal 102 and the INDEX signal 103. It is composed of:

【0007】図1において、ディスク装置4より出力さ
れるINDEX信号103は、ディスク装置4における
記憶媒体が1回転する度に出力される信号であり、前記
記憶媒体をセクタ単位にてフォーマットする際に基準と
なる信号である。このINDEX信号103がカウンタ
2に入力されると、カウンタ2においては、このIND
EX信号103の入力以降、順次基準信号105がカウ
ントされる。従って、カウンタ2におけるカウンタ値、
即ちレジスタ3の値に応じて、INDEX信号103よ
り記憶媒体上の各セクタの物理的な位置が比例的に対応
している。例えば基準信号105の周波数をfr とし
、記憶媒体のトラック単位に存在するセクタ数をNとす
る場合、このカウンタ2における値と各セクタの位置情
報との関係は、次表のように表わされる。
In FIG. 1, the INDEX signal 103 output from the disk device 4 is a signal output every time the storage medium in the disk device 4 rotates once, and is used when formatting the storage medium in sectors. This is a reference signal. When this INDEX signal 103 is input to counter 2, counter 2 receives this INDEX signal 103.
After the EX signal 103 is input, the reference signal 105 is sequentially counted. Therefore, the counter value at counter 2,
That is, according to the value of the register 3, the physical position of each sector on the storage medium corresponds proportionally to the INDEX signal 103. For example, when the frequency of the reference signal 105 is fr and the number of sectors existing in each track of the storage medium is N, the relationship between the value in the counter 2 and the position information of each sector is expressed as shown in the following table.

【0008】[0008]

【表1】[Table 1]

【0009】ここで、MCNT は次の式にて与えられ
る。
[0009] Here, MCNT is given by the following formula.

【0010】MCNT =(trpm *fr )/N
trpm :INDEX信号の1回転に必要とされる周
期次に、ディスク装置4の記憶媒体から読出す動作につ
いて説明する。
[0010]MCNT=(trpm*fr)/N
trpm: period required for one rotation of the INDEX signal Next, the operation of reading from the storage medium of the disk device 4 will be explained.

【0011】MPUにより、ディスク装置4の複数のセ
クタをリードする場合には、先ず、MPUによりレジス
タ3のカウンタ値をリードして、この値に応じて最短時
間にてリードすることのできるセクタ番号が算出される
。ディスクコントローラ1に対しては、リードコマンド
およびセクタ情報が書込まれる。ディスクコントローラ
1においては、これらの書込まれたセクタ情報から目的
のセクタのIDフィールドの検出が開始されるが、レジ
スタ3の値から最短時間でIDフィールドが発見される
セクタとなっているため、回転待ちをすることなく短時
間にて目的のセクタのDATAフィールドをリードおよ
びライトすることができる。同様にして、その他のセク
タについても、レジスタ3をリードしながらディスクコ
ントローラ1に対する処理が続行される。
When the MPU reads a plurality of sectors of the disk device 4, the MPU first reads the counter value of the register 3 and selects a sector number that can be read in the shortest time according to this value. is calculated. A read command and sector information are written to the disk controller 1. In the disk controller 1, detection of the ID field of the target sector is started from the written sector information, but since the ID field is found in the shortest time from the value of the register 3, The DATA field of the target sector can be read and written in a short time without waiting for rotation. Similarly, for other sectors, processing for the disk controller 1 is continued while reading the register 3.

【0012】ここにおいて、トラック上の全セクタを読
出す動作について説明する。
[0012] Here, the operation of reading all sectors on a track will be explained.

【0013】例えば、レジスタ3の値をリードし、この
カウンタ値が前述の表の第2番目のセクタ値を示すもの
である場合には、MPUにより、ディスクコントローラ
1に対して、リードコマンドおよびリード開始となる第
3番目のセクタ情報が書込まれる。これにより、第3番
目のセクタから第N番目のセクタまで、回転待ちするこ
となくリードすることが可能となる。更に、第1番目の
セクタから第2番目のセクタについては、前述のリード
動作の場合と同様に、レジスタ3をリードして最短時間
にてライトすることができるセクタを検出した後、ティ
スクコントローラ1に対して、ライト動作および開始セ
クタ情報を書込むことにより、引続き処理を続行するこ
とができる。
For example, if the value of register 3 is read and this counter value indicates the second sector value in the above table, the MPU sends a read command and a read command to disk controller 1. The third sector information, which is the start, is written. This makes it possible to read from the third sector to the Nth sector without waiting for rotation. Furthermore, for the first sector to the second sector, as in the case of the read operation described above, after reading register 3 and detecting the sector that can be written in the shortest time, the disk controller By writing the write operation and start sector information to 1, it is possible to continue processing.

【0014】図3に示されるのは、カウンタにおけるカ
ウンタ値と、対応する記憶媒体上のセクタ番号との対応
関係を示す図であるが、明らかに、両者の関係は直線的
な比例関係となっている。
FIG. 3 is a diagram showing the correspondence between the counter value in the counter and the corresponding sector number on the storage medium, and it is clear that the relationship between the two is a linear proportional relationship. ing.

【0015】次に、本発明の第2の実施例について説明
する。図2は、本実施例を示すブロック図である。図2
に示されるように、本実施例は、システムバス106に
対応して、MPU(図示されない)によりリードおよび
ライト処理のコマンド等を書込まれ、その実行後におい
て、その結果を前記MPUに報告するディスクコントロ
ーラ5と、基準信号111を一定値だけカウントして、
INDEX信号110と選択信号108が入力されるO
R回路6の出力によりリセットされるカウンタ8と、同
様に、基準信号111を一定値だけカウントして、IN
DEX信号110と選択信号109が入力されるOR回
路7の出力によりリセットされるカウンタ10と、カウ
ンタ8の値をラッチして、システムバス106を介して
前記MPUによるリードを媒介するレジスタ9と、同様
に、カウンタ10の値をラッチして、システムバス10
6を介して前記MPUによるリードを媒介するレジスタ
11と、制御信号107およびINDEX信号110、
ならびにディスク装置を選択する選択信号108および
109を介して、ディスクコントローラ5により制御さ
れるディスク装置12および13とを備えて構成される
Next, a second embodiment of the present invention will be described. FIG. 2 is a block diagram showing this embodiment. Figure 2
As shown in , in this embodiment, read and write processing commands and the like are written by an MPU (not shown) in correspondence with the system bus 106, and after execution, the results are reported to the MPU. The disk controller 5 and the reference signal 111 are counted by a certain value,
O to which the INDEX signal 110 and selection signal 108 are input
Similarly, the counter 8, which is reset by the output of the R circuit 6, counts the reference signal 111 by a certain value and outputs the IN signal.
a counter 10 that is reset by the output of the OR circuit 7 to which the DEX signal 110 and the selection signal 109 are input; a register 9 that latches the value of the counter 8 and mediates reading by the MPU via the system bus 106; Similarly, the value of counter 10 is latched and the value of system bus 10 is latched.
6, a register 11 that mediates reading by the MPU, a control signal 107 and an INDEX signal 110,
and disk devices 12 and 13 controlled by the disk controller 5 via selection signals 108 and 109 for selecting disk devices.

【0016】本実施例の第1の実施例と異なる点は、デ
ィスク装置が二つ備えられていることであり、これに伴
なって、カウンタおよびレジスタと関連するOR回路が
それぞれ二つ設けられていることである。この場合にお
いては、INDEX信号110を、ディスク装置12お
よび13に対応する選択信号108および109を介し
て、OR回路6および7においてゲートすることにより
、これらのディスク装置12および13に対応して、デ
ィスク装置内のリード/ライトの物理的な位置情報を得
ることができる。云うまでもなく、INDEX信号11
0とは、前述のように、ディスク装置12および13に
おける記憶媒体が一回転する度に出力される信号であり
、前記記憶媒体をセクタ単位にフォーマットする際に基
準となる信号である。従って、対応するカウンタ8およ
び10においては、INDEX信号110の入力以降、
順次基準信号105がカウントされ、第1の実施例の場
合と同様に、カウンタ8および10におけるカウンタ値
、即ちレジスタ9および11の値に応じて、記憶媒体上
の各セクタの物理的な位置が、各ディスク装置ごとに特
定される。なお、ディスク装置12および13に対応す
るディスクコントローラ5、カウンタ8および10、レ
ジスタ9および11等の動作については、前述の第1の
実施例の場合と全く同様であり、それぞれのディスク装
置ごとにカウンタおよびレジスタを有することにより、
各ディスク装置ごとの対応が可能となる。
The difference between this embodiment and the first embodiment is that two disk devices are provided, and along with this, two OR circuits each associated with a counter and a register are provided. That is what we are doing. In this case, by gating the INDEX signal 110 in the OR circuits 6 and 7 via the selection signals 108 and 109 corresponding to the disk drives 12 and 13, Physical read/write position information within the disk device can be obtained. Needless to say, INDEX signal 11
As mentioned above, 0 is a signal that is output every time the storage medium in the disk drives 12 and 13 rotates once, and is a reference signal when formatting the storage medium in units of sectors. Therefore, in the corresponding counters 8 and 10, after the input of the INDEX signal 110,
The reference signal 105 is counted sequentially, and the physical position of each sector on the storage medium is determined according to the counter values in counters 8 and 10, that is, the values in registers 9 and 11, as in the first embodiment. , specified for each disk device. The operations of the disk controller 5, counters 8 and 10, registers 9 and 11, etc. corresponding to the disk devices 12 and 13 are exactly the same as in the first embodiment described above, and the operations are different for each disk device. By having counters and registers,
It becomes possible to handle each disk device separately.

【0017】なお、具体例として、本発明をフロッピィ
・ディスク装置に適用した場合、記憶媒体の回転数が3
00rpmの場合には、1回転に要する時間は200m
s(ミリセカンド)であり、基準信号102として1m
s周期の信号を入力して、カウンタのフルカウント値を
200に設定するものとすると、1トラック当り10セ
クタ構成として、カウンタ値の20単位の範囲が個々の
セクタに対応することになる。
As a specific example, when the present invention is applied to a floppy disk device, the number of revolutions of the storage medium is 3.
In the case of 00 rpm, the time required for one rotation is 200 m.
s (milliseconds), and 1 m as the reference signal 102.
If a signal with a period of s is input and the full count value of the counter is set to 200, each track has 10 sectors, and a range of 20 units of the counter value corresponds to each sector.

【0018】また、ハードディスク装置に適用した場合
には、記憶媒体の回転数が3600rpmの場合には、
1回転に要する時間は16.7msであり、基準信号1
02として0.1ms周期の信号を入力して、カウンタ
のフルカウント値を167に設定するものとすると、1
トラック当り33セクタ構成として、カウンタ値の5単
位の範囲が個々のセクタに対応することになる。
Furthermore, when applied to a hard disk device, if the rotation speed of the storage medium is 3600 rpm,
The time required for one rotation is 16.7ms, and the reference signal 1
If a signal with a period of 0.1 ms is input as 02 and the full count value of the counter is set to 167, then 1
With a 33 sector per track configuration, a range of 5 units of counter value will correspond to an individual sector.

【0019】従って、このように、カウンタを用いてリ
ードまたはライト動作を実行する場合には、最短時間に
てリード/ライトを実行することのできるセクタを予め
予測することができるため、従来、最大1回転時間セク
タのアクセスに必要とされていた時間を低減することが
可能となる。上記の例の場合には、フロッピィ・ディス
ク装置の場合においては、およそ200msであり、ハ
ードディスク装置の場合においては、およそ16.7m
sである。
Therefore, when a read or write operation is executed using a counter, it is possible to predict in advance the sector in which read/write can be executed in the shortest time. It becomes possible to reduce the time required to access one rotation time sector. In the above example, in the case of a floppy disk device, it is approximately 200ms, and in the case of a hard disk device, it is approximately 16.7ms.
It is s.

【発明の効果】以上説明したように、本発明は、ディス
ク装置のセクタをリードおよびライトする場合に、当該
ディスク装置の記憶媒体の回転による回転待ち時間を大
幅に削減することができるという効果がある。
As explained above, the present invention has the effect that when reading and writing sectors of a disk device, the rotation waiting time caused by the rotation of the storage medium of the disk device can be significantly reduced. be.

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

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

【図2】本発明の第2の実施例を示すブロック図である
FIG. 2 is a block diagram showing a second embodiment of the invention.

【図3】カウンタにおけるカウンタ値とセクタ番号との
関係を示す図である。
FIG. 3 is a diagram showing the relationship between a counter value and a sector number in a counter.

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

1、5    ディスクコントローラ 2、8、10    カウンタ 3、9、11    レジスタ 4、12、13    ディスク装置 6、7    OR回路 1, 5 Disk controller 2, 8, 10 counter 3, 9, 11 Register 4, 12, 13 Disk device 6, 7 OR circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  リード/ライト処理のシーケンスを制
御するMPUからのリード/ライト処理のコマンドを受
けて実行するディスクコントローラと、所定の基準信号
を一定値だけカウントして、所定のINDEX信号によ
りリセットされるカウンタと、前記カウンタの値をラッ
チして、システムバスを介して前記MPUによるカウン
タ値リードを媒介するレジスタと、所定の制御信号およ
び前記INDEX信号を介して、前記ディスクコントロ
ーラにより制御されるディスク装置と、を備えることを
特徴とするディスクコントロールシステム。
Claim 1: A disk controller that receives and executes a read/write processing command from an MPU that controls a read/write processing sequence, and a predetermined reference signal that is counted by a certain value and reset by a predetermined INDEX signal. a register that latches the value of the counter and mediates reading of the counter value by the MPU via a system bus, and a predetermined control signal and the INDEX signal, which are controlled by the disk controller. A disk control system comprising a disk device.
JP03126355A 1991-05-30 1991-05-30 Disk control system Expired - Fee Related JP3104288B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03126355A JP3104288B2 (en) 1991-05-30 1991-05-30 Disk control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03126355A JP3104288B2 (en) 1991-05-30 1991-05-30 Disk control system

Publications (2)

Publication Number Publication Date
JPH04351747A true JPH04351747A (en) 1992-12-07
JP3104288B2 JP3104288B2 (en) 2000-10-30

Family

ID=14933135

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03126355A Expired - Fee Related JP3104288B2 (en) 1991-05-30 1991-05-30 Disk control system

Country Status (1)

Country Link
JP (1) JP3104288B2 (en)

Also Published As

Publication number Publication date
JP3104288B2 (en) 2000-10-30

Similar Documents

Publication Publication Date Title
US5603002A (en) Hard disk drive having buffer memory employing directory based cache controller with data replacement scheme
JPH0620393A (en) Disk driving system
KR20060042133A (en) Data storage device, control method thereof and magnetic disk storage device
US5576910A (en) Burst comparison and sequential technique for determining servo control in a mass storage disk device
JPH0667805A (en) Method and device for controlling asynchronous dasd
KR100274742B1 (en) Initiating method for copying hard-disk drive and copying apparatus thereof
JPH04351747A (en) Disk control system
JP2596315B2 (en) Head positioning control device for magnetic disk
JPH02280221A (en) System for controlling disk
KR100189927B1 (en) Hard disk drive control device and method
JP3034826B2 (en) Hard disk drive device and method
JPS6095762A (en) Magnetic disc controller
KR100346681B1 (en) Head switching method of magnetic recording medium
JPH0562360A (en) System for processing defective sector of rotary type storage device
JPH0234109B2 (en) DEISUKUSEIGYONIOKERUSEKUTABANGOKENSHUTSUHOHO
JPH04283472A (en) Control system for disk device
KR930008151B1 (en) Disk control device
US20050099716A1 (en) System and method for writing servo track in sealed HDD
KR0176611B1 (en) Hard disk drive control and method
JPH07147059A (en) Magnetic disk device
KR100338723B1 (en) Method and device for generating sector pulse of hard disc drive
JP2536118B2 (en) Disk controller
JPS6032242B2 (en) file device
JPH03250462A (en) Method for measuring number of format skew sector
JPH02214075A (en) Disk controller

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000801

LAPS Cancellation because of no payment of annual fees