JPS63124124A - Method for reading out data from disk device - Google Patents

Method for reading out data from disk device

Info

Publication number
JPS63124124A
JPS63124124A JP26987086A JP26987086A JPS63124124A JP S63124124 A JPS63124124 A JP S63124124A JP 26987086 A JP26987086 A JP 26987086A JP 26987086 A JP26987086 A JP 26987086A JP S63124124 A JPS63124124 A JP S63124124A
Authority
JP
Japan
Prior art keywords
data
sector
reading
read
buffer
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
JP26987086A
Other languages
Japanese (ja)
Inventor
Kenji Takahashi
賢治 高橋
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP26987086A priority Critical patent/JPS63124124A/en
Publication of JPS63124124A publication Critical patent/JPS63124124A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To ensure a data reading method with which a fixed reading time is always assured by adding a process where data are read out at and after a sector emerged first and transferred and a process where data are read out at and after the first sector and transferred. CONSTITUTION:A disk controller 2 starts reading with the data on the n-th sector that emerged first after a data read instruction is delivered and the read data equivalent to a following track are transferred to a data buffer in the first process. In the second process the reading job is started with the data equivalent to the first sector in the data buffer and the buffer data corresponding to a following track are transferred to outside. In such a reading method, a fixed processing time is maintained with maximum efficiency in a disk access mode and furthermore it is not required at all to change the processing method of software at the host processor side.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はディスク装置のデータ読出方法に関し、特に1
トラック分のデータバッファを備えるディスク装置のデ
ータ読出方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data reading method for a disk device, and particularly to a method for reading data from a disk device.
The present invention relates to a data reading method for a disk device having a data buffer for tracks.

[従来の技術] 従来のこの種のディスク装置のデータ読出方法はインデ
クスマークの検出をして後にデータの読出を開始するも
のであった。第4図(a)は従来のデータリード動作を
示すタイミングチャート、第4図(b)は従来のトラッ
クバッファのアクセス態様を示す図である。従って、第
4図(a)に示すように、例えば回転している磁気円盤
に対して読出命令発生のタイミング■の後の最初に表わ
れたセクタが第1のセクタでない場合はリード動作は行
われず、更に1回転後に検知されるインデク入信号まで
待ち状態であった。そのため、例えば1回転約17ms
のハードディスク装置を使った場合は、最悪のケースで
の読出時間は、回転待ち時間の略17ms+データ読出
時間の17m5+ホスト装置へのデータ転送時間の例え
ば3msであり、合計37m5になった。一方、理想的
なケースでは、即ち、インデクスマーク直後の第1のセ
クタを最初に検知してリードした場合は、回転待ち時間
の略Oms+データ読出時間の17ms+データ転送時
間の3m=20msであり、実に最悪のケースでは37
÷20=1.9倍の読出時間を要することになり、シス
テムの効率を大幅に下げるという欠点があった。
[Prior Art] A conventional method for reading data in this type of disk device is to detect an index mark and then start reading data. FIG. 4(a) is a timing chart showing a conventional data read operation, and FIG. 4(b) is a diagram showing a conventional track buffer access mode. Therefore, as shown in FIG. 4(a), for example, if the first sector that appears after timing ① when a read command is generated on a rotating magnetic disk is not the first sector, the read operation will not be performed. The motor was in a waiting state until the index input signal was detected after one rotation. Therefore, for example, one rotation takes approximately 17ms.
When using a hard disk drive, the read time in the worst case is approximately 17 ms of rotational waiting time + 17 m5 of data read time + 3 ms of data transfer time to the host device, for a total of 37 m5. On the other hand, in the ideal case, that is, when the first sector immediately after the index mark is first detected and read, the rotation waiting time is approximately Oms + the data read time is 17ms + the data transfer time is 3m = 20ms, In the very worst case, 37
This requires 1.9 times the reading time (÷20), which has the drawback of significantly lowering the efficiency of the system.

[発明が解決しようとする問題点コ 本発明は上記の従来技術の欠点を除去するものであり、
その目的とする所は、常に一定のデータ読出時間を保証
できるディスク装置のデータ読出方法を提案することに
ある。
[Problems to be Solved by the Invention] The present invention eliminates the above-mentioned drawbacks of the prior art,
The purpose is to propose a data read method for a disk device that can always guarantee a constant data read time.

[問題点を解決するための手段] 本発明のディスク装置のデータ読出方法は上記目的を達
成するために、データ読出命令発生後の最初に表われた
第nのセクタのデータから読み出しを開始して続く1ト
ラック分の読出データを前記データバッファに転送する
第1の工程と、前記データバッファ内の前記第1のセク
タに相当するデータから読み出しを開始して続く1トラ
ック分のバッファデータを外部に転送する第2の工程を
備える。
[Means for Solving the Problems] In order to achieve the above object, the data read method for a disk device of the present invention starts reading data from the n-th sector that appears first after a data read command is generated. a first step of transferring one track's worth of read data to the data buffer; and a first step of starting reading from data corresponding to the first sector in the data buffer and transferring the following one track's worth of buffer data to an external device. A second step of transferring the data to

[作用] 第1の工程では、ホスト装置からのデータ読出命令の発
生を検知すると、その後の最初に表われた第nのセクタ
のデータから読み出しを開始して続く1トラック分の読
出データをデータバッファに転送する。第2の工程では
前記データバッファ内の第1のセクタに相当するデータ
から読み出しを開始して続く1トラック分のバッファデ
ータを外部に転送する。
[Operation] In the first step, when the occurrence of a data read command from the host device is detected, reading starts from the data in the n-th sector that appears first, and the read data for the following one track is read out. Transfer to buffer. In the second step, reading is started from data corresponding to the first sector in the data buffer, and the following one track's worth of buffer data is transferred to the outside.

[実施例の説明] 以下、添付図面に従って本発明の実施例を詳細に説明す
る。
[Description of Embodiments] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

第1図は実施例を適用するディスク装置のブロック構成
図である。図において、1は実施例のディスク装置をア
クセスする外部のホストプロセッサ、2及び3は実施例
のディスク装置を構成しており、2はディスクコントロ
ーラ、3は磁気記録媒体である。また、ディスクコント
ローラ2において、2−1はデータのリード/ライト及
びヘッドの、例えば第2図のフローチャートに従った、
シーク等を行う制御部であり、2−2は第1のセクタか
ら第Nのセクタを含む1トラック分のデータを記憶する
トラックバッファ(TB)である。
FIG. 1 is a block diagram of a disk device to which an embodiment is applied. In the figure, 1 is an external host processor that accesses the disk device of the embodiment, 2 and 3 constitute the disk device of the embodiment, 2 is a disk controller, and 3 is a magnetic recording medium. Further, in the disk controller 2, 2-1 performs data read/write and head operations, for example, according to the flowchart shown in FIG.
It is a control unit that performs seek, etc., and 2-2 is a track buffer (TB) that stores one track worth of data including the first sector to the Nth sector.

更に前記制御部2−1はトラックバッファ2−2のデー
タ読書アドレスを保持するメモリアドレスレジスタ(M
AR)21と、トラックバッファ2−2について転送す
るデータのセクタ数をカウントするセクタカウンタ(S
C)22を含む、また、交1はホストプロセッサ1とデ
ィスクコントローラ2の間でコマンドやデータのやりと
りをする信号線、旦2は制御部2−1とトラックバッフ
ァ2−2間でデータやアドレス信号のやりとりをする信
号線、旦3は磁気記録媒体3とディスクコントローラ2
の間でデータの読書信号のやりとりをする信号線である
Furthermore, the control unit 2-1 has a memory address register (M
AR) 21 and a sector counter (S) that counts the number of sectors of data to be transferred for the track buffer 2-2.
C) 22, and 1 is a signal line for exchanging commands and data between the host processor 1 and the disk controller 2, and 2 is a signal line for exchanging commands and data between the control unit 2-1 and the track buffer 2-2. A signal line for exchanging signals, dan 3 is a magnetic recording medium 3 and a disk controller 2
This is a signal line that exchanges data reading and writing signals between the two.

かかる構成において、アクセスコマンドがホストプロセ
ッサ1より発行されると制御部2−1は信号縁立1上の
コマンドを解析し、例えばリード命令を実行する場合は
磁気記録媒体3より3−文3→2−2という径路で読出
データが転送され、トラックバッファ2−2に格納され
る。次にバッファデータは2−2→文2→2−1→交1
→1の径路でホストプロセッサ1に転送される。
In such a configuration, when an access command is issued by the host processor 1, the control unit 2-1 analyzes the command on the signal edge 1, and, for example, when executing a read command, reads 3-statement 3→ from the magnetic recording medium 3. The read data is transferred through a path 2-2 and stored in the track buffer 2-2. Next, the buffer data is 2-2 → sentence 2 → 2-1 → intersection 1
→ Transferred to host processor 1 via path 1.

第2図は実施例のデータリード処理を示すフローチャー
ト、第3図(a)は実施例のデータリード動作を示すタ
イミングチャート、第3図(b)は実施例のトラックバ
ッファのアクセス態様を示す図である。第2図において
、ホストプロセッサ1からのデータ続出命令を受は取る
と工程s1に入力する。工程S2ではMARを0番地に
し、工程S3ではSCを0にする。工程S4では最初に
表われるセクタマークを待つ、セクタマークは記録媒体
3から実際に読み出されるものでもよいし、インデクス
信号の周期を分周して電気的に発生されるものでもよい
。セクタマークを検出すると工程S5に進み、そのセク
タ番号nをポインタレジスタ(PR)に保持する。工程
S6ではセクタ番号nのリードデータをTB2−2に転
送する。同時にMAR21は1バイトが転送される度に
更新(+1)される。1セクタ分のデータ転送が終ると
工程S7で5C22の内容に+1する。
FIG. 2 is a flowchart showing the data read process of the embodiment, FIG. 3(a) is a timing chart showing the data read operation of the embodiment, and FIG. 3(b) is a diagram showing the track buffer access mode of the embodiment. It is. In FIG. 2, when a data succession command is received from the host processor 1, it is input to step s1. In step S2, MAR is set to address 0, and in step S3, SC is set to 0. Step S4 waits for the first sector mark to appear. The sector mark may be one that is actually read from the recording medium 3, or may be electrically generated by dividing the period of the index signal. When a sector mark is detected, the process proceeds to step S5, and the sector number n is held in the pointer register (PR). In step S6, the read data of sector number n is transferred to TB2-2. At the same time, MAR21 is updated (+1) every time one byte is transferred. When data transfer for one sector is completed, the contents of 5C22 are incremented by 1 in step S7.

工程S8では5C22の内容がNか否かを判別する。N
でなければ工程S9に進み、次のセクタマークを待つ。
In step S8, it is determined whether the content of 5C22 is N or not. N
If not, the process advances to step S9 and waits for the next sector mark.

セクタマークを検出すると工程S6に進み、次の1セク
タ分のデータ転送を行う、やがて工程S8で5C=Nを
判別すると、1トラック分のデータが転送されたことに
なる。即ち、TB2−2は第3図(b)に示すようなシ
ーケンスで1トラック分のリードデータを記憶したこと
になる。これによりフローは工程S10に進み、MAR
21に内容(N−(PR)+1)をセットする。ここで
、本例の場合はPRの内容(PR)はnであるから、結
局、MAR21はTB2−2の中の第1のセクタに対応
するデータを指すことになる。工程SllではSCをO
にする。工程S12ではTB2−2のセクタ番号1に対
応するバッファデータをホストプロセッサ1に転送する
When a sector mark is detected, the process proceeds to step S6, where data for the next one sector is transferred.When 5C=N is determined in step S8, it means that data for one track has been transferred. That is, TB2-2 stores one track worth of read data in the sequence shown in FIG. 3(b). This causes the flow to proceed to step S10, where the MAR
21 is set to the content (N-(PR)+1). Here, in this example, since the content of PR (PR) is n, MAR21 ultimately points to data corresponding to the first sector in TB2-2. In process Sll, SC is set to O.
Make it. In step S12, buffer data corresponding to sector number 1 of TB2-2 is transferred to host processor 1.

同時にMAR21は1バイトが転送される度に更新(+
1)される、そしてMAR21の内容はTB2−2の最
大のアドレスを越えるときにアドレスOに復帰するよう
に動作する。1セクタ分のデータ転送が終ると工程S1
3で5C22の内容に+1する。工程514では5C2
2の内容がNか否かを判別する。Nでなければ工程31
2に進み、次の1セクタ分のデータ転送を行う、やがて
工程314で5C−Nを判別すると工程515に進み、
リターンする。こうして1トラック分のデータがホスト
プロセッサ1に転送されたことになる。
At the same time, MAR21 is updated every time 1 byte is transferred (+
1), and the contents of MAR21 operate to return to address O when it exceeds the maximum address of TB2-2. When data transfer for one sector is completed, step S1
3 adds +1 to the contents of 5C22. In step 514, 5C2
It is determined whether the content of 2 is N or not. If not N, step 31
2, the next one sector worth of data is transferred, and when 5C-N is determined in step 314, the process proceeds to step 515.
Return. In this way, data for one track has been transferred to the host processor 1.

第3図(a)によれば、インデクス信号タイミング■の
後のセクタ2の途中のタイミング■でデータ読出命令が
発生している。この場合はセクタ3からデータ読出を開
始できるので、TB2−2へのデータ格納時間は次のイ
ンデクス信号タイミング■の後のセクタ2で終了し、そ
の後はホストプロセッサ1にデータ転送可能になる。こ
れを第4図(a)の場合と比較すると略1回転分の待ち
時間が省略されていることが分る。
According to FIG. 3(a), a data read command is generated at timing 2 in the middle of sector 2 after index signal timing 2. In this case, data reading can be started from sector 3, so the data storage time in TB2-2 ends at sector 2 after the next index signal timing 3, and data can then be transferred to host processor 1. Comparing this with the case of FIG. 4(a), it can be seen that the waiting time for approximately one rotation is omitted.

また、上述した第2図の処理に従えば、TB2−2には
第3図(b)に示すような態様でリードデータが転送さ
れる。即ち、第1の工程ではTB2−2の最初のアドレ
スから開始して1トラック分のリードデータを記憶し、
第2の工程ではTB2−2の第N−n+1のセクタに相
当するアドレスから開始して1トラック分のバッファデ
ータを外部に出力するのである。
Further, according to the process shown in FIG. 2 described above, read data is transferred to TB2-2 in the manner shown in FIG. 3(b). That is, in the first step, starting from the first address of TB2-2, read data for one track is stored,
In the second step, starting from the address corresponding to the (N-n+1)th sector of TB2-2, one track's worth of buffer data is output to the outside.

一方、MAR21等の制御を変えることで次のようにT
B2−2の読書制御をしても良い。
On the other hand, by changing the control of MAR21 etc., T
B2-2 reading control may also be used.

即ち、第1の工程ではTB2−2の第nのセクタに相当
するアドレスから開始して1トラック分のリードデータ
を記憶し、第2の工程ではTB2−2の最初のアドレス
から開始して1トラック分のバッファデータを外部に出
力するのである。
That is, in the first step, read data for one track is stored starting from the address corresponding to the n-th sector of TB2-2, and in the second step, read data for one track is stored starting from the first address of TB2-2. It outputs buffered data for tracks to the outside.

尚、実施例の説明ではデータ読出制御について述べたが
、同様の考えでデータ書込の制御も容易に行える。
In the description of the embodiment, data read control has been described, but data write control can also be easily performed using the same idea.

[発明の効果] 以上説明したように本発明によれば、データ読出命令発
生後の最初に表われた第nのセクタのデータから読み出
しを開始して続く1トラック分の読出データをデータバ
ッファに転送するので、待ち時間がなく、ディスクアク
セス時の処理時間を一定かつ最大効率に維持できる効果
がある。
[Effects of the Invention] As explained above, according to the present invention, reading is started from the data in the n-th sector that appears first after a data read command is generated, and the read data for one subsequent track is stored in the data buffer. Since data is transferred, there is no waiting time, and the processing time during disk access can be maintained at a constant and maximum efficiency.

さらに、ディスク装置からトラックバッファへは任意の
セクタnから転送されるが、ホストプロセッサに対して
は常にセクタ1から転送されるため、ホストプロセッサ
側のソフトウェアの処理方法を変える必要は全くないと
いう効果がある。
Furthermore, data is transferred from the disk device to the track buffer starting from arbitrary sector n, but data is always transferred from sector 1 to the host processor, so there is no need to change the software processing method on the host processor side. There is.

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

第1図は実施例を適用したディスク装置のブロック構成
図、 第2図は実施例のデータリード処理を示すフローチャー
ト、 第3図(a)は実施例のデータリード動作を示すタイミ
ングチャート、 第3図(b)は実施例のトラックバッファのアクセス態
様を示す図、 第4図(a)は従来のデータリード動作を示すタイミン
グチャート、 第4図(b)は従来のトラックバッファのアクセス態様
を示す図である。 図中、1・・・ホストプロセッサ、2・・・ディスクコ
ントローラ、3・・・磁気記録媒体、2−1・・・制御
部、2−2・・・トラックバッファである。
1 is a block configuration diagram of a disk device to which the embodiment is applied; FIG. 2 is a flowchart showing data read processing in the embodiment; FIG. 3(a) is a timing chart showing data read operation in the embodiment; FIG. 4(b) is a diagram showing the access mode of the track buffer of the embodiment. FIG. 4(a) is a timing chart showing the conventional data read operation. FIG. 4(b) is a diagram showing the access mode of the conventional track buffer. It is a diagram. In the figure, 1... host processor, 2... disk controller, 3... magnetic recording medium, 2-1... control section, 2-2... track buffer.

Claims (3)

【特許請求の範囲】[Claims] (1)第1のセクタから第Nのセクタを含む1トラック
分のデータバッファを備えるディスク装置のデータ読出
方法において、データ読出命令発生後の最初に表われた
第nのセクタのデータから読み出しを開始して続く1ト
ラック分の読出データを前記データバッファに転送する
第1の工程と、前記データバッファ内の前記第1のセク
タに相当するデータから読み出しを開始して続く1トラ
ック分のバッファデータを外部に転送する第2の工程を
備えることを特徴とするディスク装置のデータ読出方法
(1) In a data reading method for a disk device equipped with a data buffer for one track including sectors 1 to N, data is read from the data in the n-th sector that appears first after a data read command is generated. a first step of starting and transferring one track's worth of read data to the data buffer; and starting reading from data corresponding to the first sector in the data buffer and continuing one track's worth of buffered data. 1. A method for reading data from a disk device, comprising a second step of transferring the data to the outside.
(2)第1の工程ではデータバッファの最初のアドレス
から転送を開始し、第2の工程ではデータバッファの第
N−n+1のセクタに相当するアドレスから転送を開始
することを特徴とする特許請求の範囲第1項記載のディ
スク装置のデータ読出方法。
(2) A patent claim characterized in that in the first step, the transfer is started from the first address of the data buffer, and in the second step, the transfer is started from the address corresponding to the N-n+1th sector of the data buffer. A method for reading data from a disk device according to item 1.
(3)第1の工程ではデータバッファの第nのセクタに
相当するアドレスから転送を開始し、第2の工程ではデ
ータバッファの最初のアドレスから転送を開始すること
を特徴とする特許請求の範囲第1項記載のディスク装置
のデータ読出方法。
(3) In the first step, the transfer is started from an address corresponding to the n-th sector of the data buffer, and in the second step, the transfer is started from the first address of the data buffer. 2. A method for reading data from a disk device according to item 1.
JP26987086A 1986-11-14 1986-11-14 Method for reading out data from disk device Pending JPS63124124A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26987086A JPS63124124A (en) 1986-11-14 1986-11-14 Method for reading out data from disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26987086A JPS63124124A (en) 1986-11-14 1986-11-14 Method for reading out data from disk device

Publications (1)

Publication Number Publication Date
JPS63124124A true JPS63124124A (en) 1988-05-27

Family

ID=17478358

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26987086A Pending JPS63124124A (en) 1986-11-14 1986-11-14 Method for reading out data from disk device

Country Status (1)

Country Link
JP (1) JPS63124124A (en)

Similar Documents

Publication Publication Date Title
JPH06110617A (en) Disk control method
JPH0535415A (en) Information storage device
JPS63124124A (en) Method for reading out data from disk device
JPH04111113A (en) Hard disk emulator
JP3549744B2 (en) Information storage device and control method thereof
JPH0793101A (en) Data backup device
EP0080878A2 (en) Cache memory and method of control for use with magnetic disks
JPH0628779A (en) Method for recording and controlling data in disk device
JPS6095762A (en) Magnetic disc controller
JPS6325876A (en) Optical disk controller
JPH0562360A (en) System for processing defective sector of rotary type storage device
JPH031370A (en) Write / read control circuit for magnetic disk device
JPH11175261A (en) Control method for disk
JPS58114151A (en) Common controlling system
JPH054693B2 (en)
JPH0684283A (en) Transfer method for magneto-optical disk data
JPS6149229A (en) Information processor
JPH06103510A (en) Method for processing data of recording and reproducing device
JPS58171724A (en) Copy controller of magnetic disc tape
JPS60150270A (en) Automatic changing system of data format
JPS63108567A (en) Control circuit for optical disk
JPH03260956A (en) Magnetic disk re-formatting system
JPS6247735A (en) Controller for external memory device
JPS61196323A (en) Rotary disk control system
JPS6135570B2 (en)