JP2913954B2 - External storage controller - Google Patents

External storage controller

Info

Publication number
JP2913954B2
JP2913954B2 JP29533691A JP29533691A JP2913954B2 JP 2913954 B2 JP2913954 B2 JP 2913954B2 JP 29533691 A JP29533691 A JP 29533691A JP 29533691 A JP29533691 A JP 29533691A JP 2913954 B2 JP2913954 B2 JP 2913954B2
Authority
JP
Japan
Prior art keywords
identification number
processing
read
sector number
register
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.)
Expired - Lifetime
Application number
JP29533691A
Other languages
Japanese (ja)
Other versions
JPH06131122A (en
Inventor
豊 石川
昇 佐藤
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
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP29533691A priority Critical patent/JP2913954B2/en
Publication of JPH06131122A publication Critical patent/JPH06131122A/en
Application granted granted Critical
Publication of JP2913954B2 publication Critical patent/JP2913954B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は外部記憶制御装置に関
し、特に書込み,読出しの最小単位のデータを識別情報
と共に単位記憶領域に記憶するコンピュータシステムの
外部記憶装置を制御する外部記憶制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an external storage control device, and more particularly to an external storage control device for controlling an external storage device of a computer system which stores data of a minimum unit of writing and reading together with identification information in a unit storage area.

【0002】[0002]

【従来の技術】外部記憶装置を制御する外部記憶制御装
置は、ホストシステム、すなわちCPUと外部記憶装置
との間に設けられ、ホストシステムによる制御のもと
に、外部記憶装置へのデータの書込み、外部記憶装置か
らのデータの読出し等の制御を行う。
2. Description of the Related Art An external storage control device for controlling an external storage device is provided between a host system, that is, a CPU and the external storage device, and writes data into the external storage device under the control of the host system. , Such as reading data from the external storage device.

【0003】代表的な外部記憶装置である磁気ディスク
装置においては、書込み,読出しの最小単位のデータを
記憶する磁気ディスク上の単位記憶領域をセクタと呼
び、このセクタに、そのセクタ固有の識別情報と前述の
最小単位のデータとを記憶する。識別情報は、そのセク
タが属する記憶面にアクセスできる磁気ヘッドを特定す
るヘッド番号と、各記憶面のトラックを特定するトラッ
ク番号と、各トラックに含まれる多数のセクタにそれぞ
れ与えられたセクタ番号とから構成されている。
In a magnetic disk device as a typical external storage device, a unit storage area on a magnetic disk for storing data of a minimum unit of writing and reading is called a sector, and this sector has identification information unique to the sector. And the data of the aforementioned minimum unit. The identification information includes a head number for specifying a magnetic head capable of accessing a storage surface to which the sector belongs, a track number for specifying a track on each storage surface, and a sector number given to a large number of sectors included in each track. It is composed of

【0004】最小単位のデータ(以下単位データとい
う)の書込み,読出しを行う場合、磁気ディスク制御装
置は、まず、ホストシステムにより指定されたセクタに
対応する磁気ヘッド及びトラックを選択し、その磁気ヘ
ッドをそのトラックまで駆動してその位置のセクタから
セクタ識別情報を読み出すように磁気ディスク装置に命
ずる。磁気ディスク制御装置は、この読み出されたセク
タ識別情報のうちのセクタ番号が上記ホストシステム指
定のセクタ番号と一致するか否かを判別し、一致すれば
このセクタに対して単位データの書込み,読出し等の処
理を行い、一致しなければ隣接セクタの識別情報を読み
出すように磁気ディスク装置を制御する。
When writing and reading data in the minimum unit (hereinafter referred to as unit data), the magnetic disk controller first selects a magnetic head and a track corresponding to a sector specified by the host system, and then selects the magnetic head. And instructs the magnetic disk drive to read the sector identification information from the sector at that position by driving to the track. The magnetic disk control device determines whether or not the sector number in the read sector identification information matches the sector number specified by the host system. Processing such as reading is performed, and if they do not match, the magnetic disk drive is controlled to read the identification information of the adjacent sector.

【0005】磁気ディスク装置においては、通常、1回
の処理要求で少なくとも1つのトラックのうちの複数の
セクタに対して単位データの書込みや読出しが行なわれ
る。従来の磁気ディスク制御装置では、まず、そのトラ
ックに対する書込みや読出し等の処理(以下、処理とい
う)の開始点のセクタ番号を第1のレジスタに、処理対
象のセクタの数又は処理の終了点のセクタ番号を第2の
レジスタに記憶する。読み出されたセクタ番号と第1の
レジスタの記憶内容すなわち処理開始点のセクタ番号と
を比較し、両者が一致すればそのセクタに対する処理を
行ったのち次のセクタのセクタ番号を読み出すように磁
気ディスク装置を制御し、第1のレジスタの記憶内容を
次のセクタのセクタ番号に更新する。また第2のレジス
タの記憶内容が処理対象のセクタの数であればその数を
1だけデクリメントする。
In a magnetic disk device, unit data is usually written or read to or from a plurality of sectors in at least one track by one processing request. In the conventional magnetic disk control device, first, the sector number of the start point of the processing such as writing or reading (hereinafter referred to as processing) for the track is stored in the first register in the number of the sector to be processed or the end point of the processing. The sector number is stored in the second register. The read sector number is compared with the contents stored in the first register, that is, the sector number of the processing start point, and if they match, processing is performed on that sector, and then the sector number of the next sector is read out. The disk device is controlled to update the contents stored in the first register to the sector number of the next sector. If the content of the second register is the number of sectors to be processed, the number is decremented by one.

【0006】読み出されたセクタ番号と第1のレジスタ
の記憶内容とが一致しないときはそのセクタに対する処
理を行なわずに次のセクタのセクタ番号を読み出すよう
に磁気ディスク装置を制御する。
If the read sector number does not match the stored contents of the first register, the magnetic disk drive is controlled so as to read the sector number of the next sector without performing processing for that sector.

【0007】上述の一連の制御が繰り返えされて、第2
のレジスタの記憶内容たる処理対象のセクタの数がゼロ
となったとき(または同レジスタの記憶内容が処理終了
点のセクタのセクタ番号であればそのセクタ番号に読み
出されたセクタ番号が一致したとき)、この読み出され
たセクタ番号は処理終了点のセクタのセクタ番号を意味
するから、このセクタ番号のセクタに対する処理を行
い、これらセクタの属するトラックについての処理が完
了する。
[0007] The above-described series of control is repeated to obtain the second control.
When the number of sectors to be processed, which is the storage content of the register, becomes zero (or if the storage content of the register is the sector number of the sector at the processing end point, the read sector number matches that sector number) At this time, since the read sector number means the sector number of the sector at the processing end point, processing is performed on the sector having this sector number, and processing on the track to which these sectors belong is completed.

【0008】この従来の磁気ディスク制御装置では、第
1のレジスタの記憶内用すなわち処理開始点のセクタ番
号と読出されたセクタ番号との一致が検出されるまで処
理が行なわれないので、最初に読み出されたセクタ番号
がたとえ処理対象のセクタのセクタ番号であっても第1
のレジスタの記憶内容たる処理開始点のセクタ番号が読
み出されるまで処理が行なわれない状態が続く。例え
ば、各トラックがセクタ番号(0)からセクタ番号(1
5)までの16セクタで構成され、処理対象のセクタの
セクタ番号が(2)から(9)までであり、磁気ヘッド
がセクタ番号(6)のセクタの直前にあったとする。第
1のレジスタにはセクタ番号(2)が記憶されている。
そしてセクタ番号の読出しが開始されると、最初に読み
出されるセクタ番号は(6)であるため、第1のレジス
タに記憶されているセクタ番号(2)とは一致しない。
従ってそのセクタに対する処理は行なわれず次のセクタ
のセクタ番号(7)が読み出される。しかしこのセクタ
番号(7)もセクタ番号(2)と一致しないので処理は
行なわれず次のセクタのセクタ番号が読み出される。こ
うしてセクタ番号(8),(9),…,(15),
(0),(1)まで処理の行われない状態が続き、セク
タ番号(2)のセクタになって初めて処理が行なわれ
る。
In this conventional magnetic disk control device, the processing is not performed until the matching of the sector number of the first register in the storage, that is, the processing start point and the read sector number is detected. Even if the read sector number is the sector number of the sector to be processed, the first
No processing is continued until the sector number of the processing start point, which is the storage content of the register, is read. For example, each track has a sector number (0) to a sector number (1).
It is assumed that the sector to be processed has sector numbers of (2) to (9), and the magnetic head is located immediately before the sector of sector number (6). The first register stores the sector number (2).
When the reading of the sector number is started, the sector number read first is (6), and therefore does not match the sector number (2) stored in the first register.
Therefore, the processing for that sector is not performed, and the sector number (7) of the next sector is read. However, since this sector number (7) also does not match the sector number (2), no processing is performed and the sector number of the next sector is read. Thus, sector numbers (8), (9), ..., (15),
The state where processing is not performed continues until (0) and (1), and processing is performed only for the sector of sector number (2).

【0009】この種の従来の磁気ディスク制御装置の具
体例について図面を参照して説明する。
A specific example of this type of conventional magnetic disk control device will be described with reference to the drawings.

【0010】図5は従来の磁気ディスク制御装置のうち
本発明による改良対象部分のブロック図である。
FIG. 5 is a block diagram of a portion to be improved according to the present invention in the conventional magnetic disk control device.

【0011】図5を参照すると、この磁気ディスク制御
装置は、主要構成要素として、シリアル・パラレル変換
器3,セレクタ処理制御部5b,処理終了制御部6及び
処理制御部7を備える。
Referring to FIG. 5, the magnetic disk control device includes a serial / parallel converter 3, a selector processing control unit 5b, a processing end control unit 6, and a processing control unit 7 as main components.

【0012】シリアル・パラレル変換器3は、図示の磁
気ディスク制御装置と磁気ディスク装置(図示してな
い)との間に挿入され、両者間で授受されるセクタ番号
や単位データを、磁気ディスク装置側ではビットシリア
ルに、磁気ディスク制御装置側ではビットパラレルにな
るように変換する。
The serial / parallel converter 3 is inserted between a magnetic disk control device shown in the figure and a magnetic disk device (not shown), and converts a sector number and unit data exchanged between them into a magnetic disk device. The conversion is performed so as to be bit serial on the side and bit parallel on the magnetic disk controller side.

【0013】セクタ処理判別部5bは、ホストシステム
からの処理要求信号R/Wが指定する1つのトラックに
含まれる一連のセクタのうちの最小のセクタ番号ADm
inをそのトラックからの読出し前(リセット状態R)
の期間に選択しその期間の経過後はインクリメントされ
たセクタ番号を選択し出力するセレクタ52と、このセ
レクタ52からのセクタ番号を判別番号ACJに応答し
て取り込み格納して出力するセクタ番号レジスタ54a
と、シリアル・パラレル変換器3を経て供給される前記
トラックからの読出し出力たるセクタ番号ADrと上記
セクタ番号レジスタ54aからのセクタ番号とを比較し
両者が一致したときオンとなる判別信号ACJを発生す
る比較器55と、セクタ番号レジスタ54aの出力たる
セクタ番号にセクタの読出し間隔の1単位(例えば隣接
するセクタを連続して順次読み出す場合は“1”、1セ
クタおきに読み出す場合は“2”)をインクリメントし
たセクタ番号を出力する加算器56とを備えている。上
述のとおりこのセクタ処理判別部5bにおいては、1つ
のトラックの最初のセクタ番号が読み出される前に、そ
のトラックに属する多数のセクタ番号のうち最小のセク
タ番号がセクタ番号レジスタ54aに格納され、その最
小セクタ番号と読み出されたセクタ番号ADrとが一致
すると判別信号ACJがオンとなり、これによりセクタ
番号レジスタ54aの内容が更新される。すなわち、こ
のセクタ処理判別部5bは、読み出されたセクタ番号が
最小のセクタ番号ADminに等しくなると判別信号A
CJをオンにして出力すると同時にセクタ番号レジスタ
54aの記憶内容を次のセクタ番号に更新し、以降読み
出されたセクタ番号がこのセクタ番号レジスタ54aか
らのセクタ番号と一致するたびに判別信号ADJのオン
とこのセクタ番号レジスタ54aの記憶内容の更新を繰
り返えし、両者が一致しないときは判別信号ADJはオ
フのままとしセクタ番号レジスタ54aの記憶内容もそ
のままとする。
The sector processing judging section 5b has a minimum sector number ADm of a series of sectors included in one track specified by the processing request signal R / W from the host system.
before reading from the track (reset state R)
And a selector 52a for selecting and outputting an incremented sector number after the lapse of the period, and a sector number register 54a for fetching, storing, and outputting the sector number from the selector 52 in response to the discrimination number ACJ.
And the sector number ADr read from the track and output via the serial / parallel converter 3 and the sector number from the sector number register 54a, and a discrimination signal ACJ which is turned on when both coincide with each other is generated. The comparator 55 and the sector number output from the sector number register 54a have one unit of the sector read interval (for example, “1” when adjacent sectors are sequentially read sequentially, and “2” when every other sector is read). ) Is provided, and an adder 56 that outputs a sector number obtained by incrementing ()) is provided. As described above, in the sector processing determining unit 5b, before the first sector number of one track is read, the smallest sector number among a large number of sector numbers belonging to that track is stored in the sector number register 54a. When the minimum sector number coincides with the read sector number ADr, the discrimination signal ACJ is turned on, whereby the contents of the sector number register 54a are updated. That is, the sector processing determining unit 5b determines that the read sector number is equal to the minimum sector number ADmin, and that the determination signal A
When the CJ is turned on and output, the contents stored in the sector number register 54a are updated to the next sector number at the same time. Whenever the read sector number matches the sector number from this sector number register 54a, the discrimination signal ADJ is output. ON and updating of the storage contents of the sector number register 54a are repeated, and when they do not match, the discrimination signal ADJ is kept off and the storage contents of the sector number register 54a are also kept as they are.

【0014】処理終了制御部6は、ホストシステムから
の処理要求信号R/Wが指定する最小のセクタ番号AD
minと最大のセクタ番号ADmaxとからそのトラッ
クの処理範囲内のセクタ数を算出し出力する減算器61
と、リセット状態(R)で減算器61からのセクタ数を
選択しそれ以外のときデクリメントされたセクタ数を選
択して出力するセレクタ62と、リセット状態及び判別
信号ACJがオン状態のたびにセレクタ62からのセク
タ数を取り込み格納して出力する処理残数レジスタ63
と、処理残数レジスタ63からのセクタ数から“1”を
デクリメントしたセクタ数として出力する減算器64
と、処理残数レジスタ63からのセクタ数がゼロになっ
たことを検出して処理終了信号ENDを発生するゼロ検
出回路65とを備えている。上述のとおり、この処理終
了制御部6は、処理要求信号R/W指定の処理範囲内の
セクタ数を処理残数レジスタ63に格納し、そのセクタ
数を判別信号ACJがオンになるたびごとにデクリメン
とし、そのセクタ数がゼロになったとき処理終了信号E
NDを発生し、それによって1つのトラックに対する処
理の完了を検出する。
The processing end control unit 6 controls the minimum sector number AD specified by the processing request signal R / W from the host system.
subtracter 61 that calculates and outputs the number of sectors within the processing range of the track from min and the maximum sector number ADmax.
A selector 62 for selecting the number of sectors from the subtractor 61 in the reset state (R) and otherwise selecting and outputting the decremented sector number, and a selector 62 each time the reset state and the discrimination signal ACJ are turned on. Remaining number of registers 63 for taking in, storing, and outputting the number of sectors from 62
And a subtractor 64 that outputs "1" as the number of sectors decremented from the number of sectors from the remaining processing number register 63.
And a zero detection circuit 65 that detects that the number of sectors from the remaining processing number register 63 has become zero and generates a processing end signal END. As described above, the processing end control unit 6 stores the number of sectors within the processing range specified by the processing request signal R / W in the remaining processing number register 63, and determines the number of sectors each time the determination signal ACJ is turned on. Decrement, and when the number of sectors becomes zero, the processing end signal E
ND is generated, thereby detecting the completion of processing for one track.

【0015】処理制御回路7は、処理要求信号R/W,
判別信号ACJ及び処理終了信号ENDの供給を受け、
トラックから読み出されたセクタ番号対応の判別信号A
CJがオフのときはそのセクタ番号のセクタに対する処
理を行うことなく次のセクタのセクタ番号を読み出し、
上記判別信号ACJがオンのときはそのセクタ番号のセ
クタに対する処理を行って次のセクタのセクタ番号を読
み出し以下のこ動作を繰り返し、処理終了信号ENDの
発生を応答してその処理終了信号END対応のセクタ番
号のセクタに対する処理を行った後はそれ以後のセクタ
のセクタ番号の読出しを停止する。これによって1つの
トラックに対する処理が終了したことになる。
The processing control circuit 7 includes a processing request signal R / W,
Receiving the determination signal ACJ and the processing end signal END,
Discrimination signal A corresponding to the sector number read from the track
When the CJ is off, the sector number of the next sector is read out without performing processing for the sector of that sector number,
When the discrimination signal ACJ is on, the process for the sector of that sector number is performed, the sector number of the next sector is read, and the following operations are repeated. In response to the generation of the process end signal END, the process end signal END After performing the processing for the sector having the sector number of, the reading of the sector numbers of the subsequent sectors is stopped. This means that the processing for one track has been completed.

【0016】上述のとおり、この磁気ディスク制御装置
により制御される磁気ディスク装置は、処理要求信号R
/W指定のトラックからの読出しセクタ番号が処理要求
信号R/W指定の処理範囲内の最小のセクタ番号と一致
するとその読出しセクタ番号からセクタに対する処理を
始め、以後順次セクタに対する処理を行なって上記処理
範囲内の最大セクタ番号に達するとそのセクタに対する
処理を終了する。その終了は1つのトラックの処理の終
了に他ならない。
As described above, the magnetic disk device controlled by the magnetic disk control device operates with the processing request signal R
When the sector number read from the / W designated track matches the minimum sector number within the processing range designated by the processing request signal R / W, processing for the sector is started from the read sector number, and then processing for the sectors is performed sequentially. When the maximum sector number within the processing range is reached, the processing for that sector ends. The end is nothing but the end of processing of one track.

【0017】次に、従来技術による磁気ディスク制御装
置のもう一つの例を示す図6を参照すると、この例は処
理終了制御部6bの一部を除き図5の例と同一であるの
で、図5と共通な構成要素には共通の符号数字をつける
に留め詳細な説明は省略する。
Next, referring to FIG. 6 showing another example of the magnetic disk control apparatus according to the prior art, this example is the same as the example of FIG. 5 except for a part of the processing end control unit 6b. Only the same reference numerals are given to the constituent elements common to 5 and detailed description is omitted.

【0018】処理終了制御部6bは、処理要求信号R/
W指定のトラックの処理範囲内の最大セクタ番号ADm
axをリセット状態(R)の期間に格納しておき出力す
る処理終了セクタ番号レジスタ68と、このレジスタ6
8からの最大セクタ番号とシリアル・パラレル変換器3
から供給される読出し出力のセクタ番号との一致に応答
して処理終了信号ENDを発生する比較器69とを備え
ている。上述の点以外は図5の例と共通である。
The processing end control unit 6b receives the processing request signal R /
Maximum sector number ADm within the processing range of the track specified by W
ax is stored in the reset state (R) and output, and a processing end sector number register 68 is provided.
Maximum sector number from 8 and serial / parallel converter 3
And a comparator 69 for generating a processing end signal END in response to a match with the sector number of the read output supplied from the CPU. Except for the points described above, the example is common to the example of FIG.

【0019】図5及び図6にに示した従来の磁気ディス
ク制御装置によって磁気ディスク上のセクタに対する処
理が実際にどのように行われるかを図7に示す。
FIG. 7 shows how a process on a sector on a magnetic disk is actually performed by the conventional magnetic disk controller shown in FIGS.

【0020】この図7を参照すると、磁気ディスク10
0には複数のトラック101があり、これらトラック1
01は、セクタ番号(0)からセクタ番号(15)まで
の16のセクタに区分されている。
Referring to FIG. 7, the magnetic disk 10
0 has a plurality of tracks 101 and these tracks 1
01 is divided into 16 sectors from sector number (0) to sector number (15).

【0021】ホストシステムからの処理要求信号R/W
指定の磁気ヘッドが選択されて所定のトラック101に
移動し、セクタ番号を読み出す前の初期状態でセクタ番
号(6)のセクタの直前(図7のSHPの位置)にある
ものとする。また、処理対象のセクタはセクタ番号
(2)からセクタ番号(9)まで(すなわち、上記「処
理範囲」はセクタ(2)からセクタ(9)まで)とし、
これらセクタに対する処理が順次行われるものとする。
上の説明から明らかなとおり、この条件の下ではセクタ
番号レジスタ54aにはセクタ番号(2)が格納されて
いる。
Processing request signal R / W from host system
It is assumed that the specified magnetic head is selected, moves to the predetermined track 101, and is located immediately before the sector of the sector number (6) (SHP position in FIG. 7) in an initial state before the sector number is read. The processing target sector is from sector number (2) to sector number (9) (that is, the “processing range” is from sector (2) to sector (9)),
It is assumed that the processing for these sectors is performed sequentially.
As is clear from the above description, under this condition, the sector number (2) is stored in the sector number register 54a.

【0022】トラック101のセクタ番号の読出しの開
始に伴い最初に読み出されるセクタ番号は(6)である
ので、比較器55による比較結果は不一致となり、判別
信号ACJはオフのままである。この結果、セクタ番号
(6)のセクタに対する処理は行われず、セクタ番号
(7)が読み出される。このセクタ番号(7)もセクタ
番号レジスタ54aの記憶内容すなわちセクタ番号
(2)と一致しないので、判別信号ACJはオフのまま
となり、番号(7)のセクタに対する処理も行われず次
のセクタのセクタ番号(8)が読み出される。
Since the sector number which is read first at the start of reading of the sector number of the track 101 is (6), the comparison result by the comparator 55 becomes inconsistent, and the discrimination signal ACJ remains off. As a result, the process for the sector with the sector number (6) is not performed, and the sector number (7) is read. Since this sector number (7) also does not match the storage content of the sector number register 54a, that is, the sector number (2), the discrimination signal ACJ remains off, the processing for the sector of the number (7) is not performed, and the sector of the next sector is not performed. The number (8) is read.

【0023】このように、セクタ番号(1)までのセク
タすなわちセクタ番号(6)からセクタ番号(1)まで
のセクタに対する処理の行われない状態が続き、セクタ
番号(2)が読み出されるとそれがセクタ番号レジスタ
54aに格納されているセクタ番号(2)と一致するの
で、その番号(2)のセクタに対する処理が行われる。
同時に、セクタ番号レジスタ54aの記憶内容すなわち
セクタ番号(2)が(3)に更新され、一方、次のセク
タのセクタ番号(3)が読み出されてこれらセクタ番号
が比較器55で比較される。
As described above, the state in which processing is not performed on the sectors up to the sector number (1), that is, the sectors from the sector number (6) to the sector number (1) continues, and when the sector number (2) is read out, Coincides with the sector number (2) stored in the sector number register 54a, so that the processing for the sector with that number (2) is performed.
At the same time, the storage contents of the sector number register 54a, that is, the sector number (2) is updated to (3), while the sector number (3) of the next sector is read out, and these sector numbers are compared by the comparator 55. .

【0024】こうしてセクタ番号(8)までのセクタに
対する処理が終り、セクタ番号(9)がセクタ番号レジ
スタ54aに格納される一方セクタ番号(9)が読み出
されると、処理終了制御部6または6bは処理終了信号
ENDを発生し、このセクタ番号(9)のセクタに対す
る処理の終了とともにこのトラック101に対する処理
が終了する。
When the processing for the sectors up to the sector number (8) is completed and the sector number (9) is stored in the sector number register 54a and the sector number (9) is read, the processing end control unit 6 or 6b A processing end signal END is generated, and the processing for the track 101 ends when the processing for the sector with the sector number (9) ends.

【0025】なお、上述の磁気ディスク制御装置と同様
の制御が適用できる外部記憶装置には、上述の磁気ディ
スク装置だけでなく、フレキシブルディスク記憶装置や
光ディスク記憶装置などが含まれる。
The external storage device to which the same control as the above-described magnetic disk control device can be applied includes not only the above-mentioned magnetic disk device but also a flexible disk storage device and an optical disk storage device.

【0026】[0026]

【発明が解決しようとする課題】このように、従来の外
部記憶制御装置では、ヘッドがたとえ処理対象のセクタ
にあっても、第1のレジスタ(セクタ番号レジスタ)の
記憶内容たる最小セクタ番号と読み出されたセクタ番号
とが一致するまではヘッド現在位置のセクタに対する処
理が行なわれない状態が続くので、1つのトラックに対
する処理の完了に要する時間が長くなるという欠点があ
った。
As described above, in the conventional external storage control device, even if the head is located in the sector to be processed, the minimum sector number as the storage content of the first register (sector number register) is stored. Until the read sector number matches, the state in which the processing on the sector at the current head position is not performed continues, so that there is a disadvantage that the time required to complete the processing on one track becomes long.

【0027】本発明の目的は、外部記憶装置の1つのト
ラックに対する「処理」の所要時間を短縮できる外部記
憶制御装置を提供することにある。
An object of the present invention is to provide an external storage control device which can reduce the time required for "processing" for one track of the external storage device.

【0028】[0028]

【課題を解決するための手段】本発明の外部記憶制御装
置は、ホストシステムからの処理要求信号の指定する1
つのトラックに属するセクタ番号のうち最小及び最大の
セクタ番号を格納する最小セクタ番号レジスタ及び最大
セクタ番号レジスタと、上記トラックから読み出された
セクタ番号が上記処理要求信号指定の処理範囲内のセク
タ番号か否かを前記2つのレジスタの記憶内容に基ずき
検知する処理範囲検知部と、この処理範囲検知部の出力
および上記2つのレジスタの記憶内容に基ずき上記トラ
ックからのセクタ番号が上記処理範囲内のものでありか
つそのトラックからの最初の読出しセクタ番号のときオ
フ、2番目以降の読出しセクタ番号のときオンとなり上
記処理範囲外のときオフとなる判別信号を発生するセク
タ処理判別部と、上記読出しセクタ番号がそのトラック
に対する処理の最後の処理となるセクタのセクタ番号と
なったとき処理終了信号を発生する処理終了制御部とを
備える。この外部記憶制御装置は、上記判別信号がオフ
のときにこの判別信号に対応するセクタに対する処理を
行うことなく次のセクタのセクタ番号を読み出し、同信
号がオンのときは対応セクタに対する処理を行ったのち
次のセクタ番号を読み出し、上記処理終了信号の発生に
応答してこの処理終了信号対応のセクタに対する処理を
行い、それ以後のセクタ番号の読出しは停止するように
外部記憶装置を制御する。
According to the present invention, there is provided an external storage control device which designates a processing request signal from a host system.
A minimum sector number register and a maximum sector number register for storing minimum and maximum sector numbers of sector numbers belonging to one track, and a sector number read from the track being a sector number within a processing range specified by the processing request signal. A processing range detecting unit for detecting whether or not the data is stored in the two registers; and outputting the sector number from the track based on the output of the processing range detecting unit and the stored contents of the two registers. A sector processing discrimination unit that generates a discrimination signal that is off when the sector number is within the processing range and is the first read sector number from the track and is on when the second and subsequent read sector numbers are out of the processing range. When the read sector number becomes the sector number of the sector to be the last processing of the track, the processing is terminated. And a processing completion control unit for generating a signal. The external storage control device reads the sector number of the next sector without performing the processing for the sector corresponding to the determination signal when the determination signal is off, and performs the processing for the corresponding sector when the signal is on. Thereafter, the next sector number is read, and in response to the generation of the processing end signal, processing is performed on the sector corresponding to the processing end signal, and the external storage device is controlled so that reading of the sector number thereafter is stopped.

【0029】上記セクタ処理判別部はセクタ番号レジス
タと比較器とを備え、処理要求信号R/W指定のトラッ
クからの読出しセクタ番号が上記処理範囲内のセクタ番
号でありかつこのトラックからの最初の読出しセクタ番
号のときそのセクタ番号レジスタに次の読出しセクタ番
号を格納し、2番目以降の読出しセクタ番号のときその
レジスタの記憶内容をその次の読出しセクタ番号で更新
し、前記最大のセクタ番号に達すると上記レジスタに上
記最小セクタ番号を格納し、上記トラックからの読出し
セクタ番号とレジスタの記憶内容とを上記比較器で比較
し両者が一致したときオンとなる判別信号を発生する。
The sector processing judging section has a sector number register and a comparator, and the sector number read from the track designated by the processing request signal R / W is a sector number within the processing range and the first from the track. When the sector number is the read sector number, the next read sector number is stored in the sector number register. When the sector number is the second or later read sector number, the storage content of the register is updated with the next read sector number. Upon reaching, the minimum sector number is stored in the register, the sector number read from the track and the storage content of the register are compared by the comparator, and a discrimination signal that is turned on when both match is generated.

【0030】また、上記処理終了制御部は処理残数レジ
スタとゼロ検出回路とを備え、処理要求信号R/W指定
のトラックからのセクタ読出しの前に上記処理範囲内の
セクタの総数をこの処理残数レジスタに格納し、上記判
別信号がONになるたびにこのレジスタの記憶内容を1
だけデクリメントし、このレジスタの記憶内容がゼロと
なったとき前記ゼロ検出回路が前記処理終了信号を発生
する。
Further, the processing end control unit includes a remaining processing number register and a zero detection circuit, and performs the processing on the total number of sectors within the processing range before reading the sector from the track designated by the processing request signal R / W. It is stored in the remaining number register, and each time the determination signal is turned on, the stored content of this register is incremented by one.
And the zero detection circuit generates the processing end signal when the content of the register becomes zero.

【0031】さらに前記処理終了制御部は、処理終了セ
クタ番号レジスタを備え処理要求信号指定のトラックか
らの最初の読出しセクタ番号が前記処理範囲内のセクタ
番号であるときはそのセクタ番号をそのまま上記レジス
タに格納し、その処理範囲の範囲外のセクタ番号である
ときは同処理範囲内の最大のセクタ番号を同レジスタに
格納し、読出しセクタ番号がこのレジスタの記憶内容と
一致したとき処理終了信号を発生する。
Further, the processing end control section has a processing end sector number register, and when the first read sector number from the track designated by the processing request signal is a sector number within the processing range, the sector number is left as it is in the register. If the sector number is out of the processing range, the largest sector number in the processing range is stored in the same register. When the read sector number matches the storage content of this register, a processing end signal is output. Occur.

【0032】[0032]

【実施例】次に本発明の実施例について図面を参照して
説明する。
Next, an embodiment of the present invention will be described with reference to the drawings.

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

【0034】この実施例は磁気ディスク制御装置に適用
したもので、ホストシステム(例えばCPU)からの処
理要求信号R/Wが指定する1つのトラックに対する処
理の開始点のセクタに対応する最小セクタ番号を格納す
る最小セクタ番号レジスタ1,同処理の終了点のセクタ
に対応する最大セクタ番号を格納する最大セクタ番号レ
ジスタ2,シリアル・パラレル変換器3,処理範囲検知
部4,セクタ処理判別部5,処理終了制御部6及び処理
制御部7で構成される。図示の構成から明らかなとお
り、本実施例は、最小セクタ番号レジスタ1,最大セク
タ番号レジスタ2及び処理範囲検知部4が付加されてい
ること、およびセクタ処理判別部5の内部構成において
図5の従来技術による磁気ディスク制御装置と相違して
いる。
This embodiment is applied to a magnetic disk controller, and has the minimum sector number corresponding to the sector at the start point of processing for one track specified by the processing request signal R / W from the host system (eg, CPU). , A maximum sector number register for storing the maximum sector number corresponding to the sector at the end point of the processing, a serial / parallel converter, a processing range detecting section, a sector processing determining section, It comprises a processing end control unit 6 and a processing control unit 7. As is apparent from the configuration shown in the figure, the present embodiment is different from FIG. 5 in that the minimum sector number register 1, the maximum sector number register 2, and the processing range detection unit 4 are added, and This is different from the conventional magnetic disk control device.

【0035】最小セクタ番号レジスタ1及び最大セクタ
番号レジスタ2は、1つのトラック処理範囲内の多数の
セクタのうち最小のセクタ番号及び最大のセクタ番号を
それぞれ格納する。
The minimum sector number register 1 and the maximum sector number register 2 store the minimum sector number and the maximum sector number of a large number of sectors in one track processing range, respectively.

【0036】処理範囲検知部4は、シリアル・パラレル
変換器3から供給される処理要求信号R/W指定のトラ
ックから読み出されたセクタ番号ADrを最小セクタ番
号レジスタ1及び最大セクタ番号レジスタ2からの上記
最小及び最大のセクタ番号と比較し、セクタ番号ADr
が上記処理範囲内のセクタ番号であるか否かを識別す
る。このような処理範囲検知部4は、セクタ番号の大小
を比較する比較器と論理ゲートとを組合わせることによ
り容易に実現できる。
The processing range detector 4 reads the sector number ADr read from the track designated by the processing request signal R / W supplied from the serial / parallel converter 3 from the minimum sector number register 1 and the maximum sector number register 2. And the sector number ADr
Is a sector number within the processing range. Such a processing range detection unit 4 can be easily realized by combining a comparator for comparing the magnitude of the sector number with a logic gate.

【0037】セクタ処理判別部5は、上記読み出された
セクタ番号ADrにセクタの読出し間隔の1単位(通常
1)を加算し出力する第1の加算器51と、供給される
セクタ番号を1つのトラックの最初のセクタ番号の読出
し時(タイミングパルス1R)に取り込み格納しそれ以
外のときは判別信号ADJのオンに応答してセクタ番号
を取り込み格納し出力するセクタ番号レジスタ54と、
このセクタ番号レジスタ54からのセクタ番号にセクタ
の読出し間隔の1単位をインクリメントしたセクタ番号
を出力する第2の加算器56と、前記トラックの最初の
セクタ番号の読出し時(1R)に第1の加算器51から
のセクタ番号を選択しそれ以外のときは第2の加算器5
6からのインクリメントされたセクタ番号を選択して出
力する第1のセレクタ52と、最大セクタ番号レジスタ
2からの最大セクタ番号とセクタ番号レジスタ54から
のセクタ番号とを比較しこれらが一致したか否かを検出
する比較器58と、初期状態及び比較器58の比較結果
が一致したときはリセット状態となり上記読み出された
セクタ番号ADrが検知部4により処理範囲内にあると
判断されたときはセット状態となるフリップフロップ5
7と、このフリップフロップ57がセット状態のときセ
レクタ52からのセクタ番号を選択しリセット状態のと
き最小セクタ番号レジスタ1からのセクタ番号を選択し
てセクタ番号レジスタ54へ供給する第2のセレクタ5
3と、上記読み出されたセクタ番号ADrをセクタ番号
レジスタ54からのセクタ番号と比較しこれらが一致し
たときにON、不一致のときOFFとなる判別信号AC
Jを発生する比較器55とを備えている。
The sector processing discriminating section 5 adds a unit (usually 1) of the read interval of the sector to the read sector number ADr and outputs the result. A sector number register 54 for taking in and storing when reading the first sector number of one track (timing pulse 1R), and otherwise taking in and storing and outputting the sector number in response to the ON of the discrimination signal ADJ;
A second adder 56 outputs a sector number obtained by incrementing the sector read interval by one unit to the sector number from the sector number register 54, and a first adder 56 reads the first sector number of the track (1R). The sector number from the adder 51 is selected. Otherwise, the second adder 5 is selected.
6, the first selector 52 that selects and outputs the incremented sector number from the first sector number, compares the maximum sector number from the maximum sector number register 2 with the sector number from the sector number register 54, and determines whether they match. When the initial state and the comparison result of the comparator 58 coincide with each other, the reset state is established, and when the read sector number ADr is determined to be within the processing range by the detection unit 4, Flip-flop 5 in set state
7 and the second selector 5 which selects the sector number from the selector 52 when the flip-flop 57 is set and selects the sector number from the minimum sector number register 1 when the flip-flop 57 is reset and supplies it to the sector number register 54.
3 and the read-out sector number ADr is compared with the sector number from the sector number register 54, and the discrimination signal AC that turns on when they match and turns off when they do not match.
And a comparator 55 for generating J.

【0038】シリアル・パラレル変換器3,処理終了制
御部6及び処理制御部7は図5に示した従来の磁気ディ
スク制御装置と同一であるのでその説明は省略する。
Since the serial / parallel converter 3, the processing end control unit 6 and the processing control unit 7 are the same as those of the conventional magnetic disk control device shown in FIG. 5, their description will be omitted.

【0039】次に図7と同様の磁気ディスクの平面図を
示す図2を参照すると、磁気ディスク100のトラック
101はセクタ番号(0)からセクタ番号(15)まで
の16セクタに区分され、セクタ番号(2)からセクタ
番号(9)までが処理対象に指定されているものとす
る。
Referring next to FIG. 2, which is a plan view of a magnetic disk similar to FIG. 7, the track 101 of the magnetic disk 100 is divided into 16 sectors from sector number (0) to sector number (15). It is assumed that numbers (2) to (9) are designated as processing targets.

【0040】トラック100から最初に読み出されたセ
クタ番号ADrが処理要求信号R/W指定の処理範囲内
にある場合についてまず説明するために初期状態におけ
る磁気ヘッドの位置SHPがセクタ番号(6)のセクタ
の直前にあるものとする。
In order to describe first the case where the sector number ADr read first from the track 100 is within the processing range specified by the processing request signal R / W, the position SHP of the magnetic head in the initial state is set to the sector number (6). It is assumed that it is immediately before the sector of.

【0041】処理要求信号W/R指定のトラックから最
初に読み出されたセクタ番号ADrが上記処理範囲内に
あることが検知されると、フリップフロップ57がセッ
ト状態となってセレクタ53はセレクタ52の出力を選
択し、セレクタ52は加算器51の出力を選択し、セク
タ番号レジスタ54は記憶内容の更新する。従って、最
初に読み出されたセクタ番号(図2では(6)、以下同
様)の次のセクタ番号(7)がセクタ番号レジスタ54
に格納される。この最初に読み出されたセクタ番号
(6)に対し、セクタ番号レジスタ54は何も格納して
いない状態からセクタ番号(7)を格納した状態への変
化するので、比較器55による比較結果は「不一致」と
なり、判別信号ACJはオフのままである。セクタ番号
(6)のセクタに対しては処理は行なわれないので次の
セクタ番号(7)が読み出されることになる。
When it is detected that the sector number ADr first read from the track designated by the processing request signal W / R is within the processing range, the flip-flop 57 is set and the selector 53 is switched to the selector 52. , The selector 52 selects the output of the adder 51, and the sector number register 54 updates the stored contents. Therefore, the sector number (7) next to the first read sector number ((6) in FIG. 2, the same applies hereinafter) is stored in the sector number register 54.
Is stored in Since the sector number register 54 changes from a state in which nothing is stored to a state in which the sector number (7) is stored with respect to the first read sector number (6), the comparison result by the comparator 55 is It becomes “mismatch” and the discrimination signal ACJ remains off. Since the process is not performed on the sector with the sector number (6), the next sector number (7) is read.

【0042】次に読み出されるセクタ番号(7)は、セ
クタ番号レジスタ54の記憶内容と一致するので、判別
信号ACJはオンとなり、処理制御部7によりセクタ番
号(7)のセクタに対する処理が行われ次のセクタ番号
(8)が読み出される。また判別信号ACJによりセク
タ番号レジスタ54の記憶内容がセクタ番号(8)に更
新される。
Since the sector number (7) to be read next matches the contents stored in the sector number register 54, the discrimination signal ACJ is turned on, and the processing for the sector with the sector number (7) is performed by the processing control section 7. The next sector number (8) is read. The storage content of the sector number register 54 is updated to the sector number (8) by the discrimination signal ACJ.

【0043】以下同様の動作が繰り返えされてセクタ番
号レジスタ54の記憶内容が上記処理範囲の中の最大の
セクタ番号たるセクタ番号(9)に更新されると、比較
器58の出力によりフリップフロップ57がリセット状
態となり、セレクタ53は最小セクタ番号レジスタ1の
出力、すなわち処理範囲内の最小のセクタ番号を選択す
る。セクタ番号(9)が読み出され判別信号ACJがオ
ンになるとセクタ番号レジスタ54の記憶内容は最小の
セクタ番号(2)に更新される。セクタ番号(9)のセ
クタに対する処理が行なわれた後、読出されるセクタ番
号は(10)であるので、判別信号ACJはオフとな
り、このセクタ番号(10)に対する処理は行なわれず
次のセクタ番号の読出しが行なわれる。このときセクタ
番号レジスタ54の記憶内容は更新されない。
When the same operation is repeated and the storage contents of the sector number register 54 are updated to the sector number (9) which is the largest sector number in the processing range, the flip-flop is output by the output of the comparator 58. The selector 57 is reset, and the selector 53 selects the output of the minimum sector number register 1, that is, the minimum sector number within the processing range. When the sector number (9) is read and the discrimination signal ACJ is turned on, the contents stored in the sector number register 54 are updated to the minimum sector number (2). After the process for the sector with the sector number (9) is performed, the sector number to be read is (10), so that the discrimination signal ACJ is turned off, the process for the sector number (10) is not performed, and the next sector number is not performed. Is read out. At this time, the contents stored in the sector number register 54 are not updated.

【0044】以下同様の動作が繰り返えされ、セクタ番
号(1)に達するまで、セクタ番号の読み出しのみが行
なわれる。
Thereafter, the same operation is repeated, and only reading of the sector number is performed until the sector number (1) is reached.

【0045】セクタ番号(2)が読み出されると、判別
信号ACJはオンとなり、セクタ番号(2)のセクタの
処理が行なわれたのちセクタ番号(3)が読み出され
る。また、処理範囲検知部4によりフリップフロップ5
7がセット状態となって、加算器56,セレクタ52,
53を介してセクタ番号レジスタ54の記憶内容がセク
タ番号(3)に更新される。以下同様の動作が繰り返え
される。
When the sector number (2) is read, the discrimination signal ACJ is turned on, and after processing of the sector of the sector number (2) is performed, the sector number (3) is read. Further, the processing range detection unit 4 controls the flip-flop 5
7 is set, and the adder 56, the selector 52,
The storage content of the sector number register 54 is updated to the sector number (3) via 53. Hereinafter, the same operation is repeated.

【0046】一方、判別信号ACJがオンになるたびに
処理残数レジスタ63の記憶内容たるセクタ数は少なく
なり、セクタ番号(6)が読み出されて判別信号ACJ
がオンになると処理残数レジスタ63の記憶内容たるセ
クタ数はゼロとなる。これに応答するゼロ検出回路65
は処理終了信号ENDを出力し、処理制御部7は、セク
タ番号(6)のセクタの処理を行った後セクタ番号のそ
れ以後の読出しを停止する。
On the other hand, each time the discrimination signal ACJ is turned on, the number of sectors, which is the storage content of the remaining processing number register 63, decreases, and the sector number (6) is read out, and the discrimination signal ACJ
Is turned on, the number of sectors, which is the storage content of the remaining processing number register 63, becomes zero. Zero detection circuit 65 responding to this
Outputs a processing end signal END, and the processing control section 7 performs processing on the sector with the sector number (6) and then stops reading the sector number thereafter.

【0047】上述の動作により処理要求信号R/W指定
のトラックの処理範囲内のセクタの処理が全て終了し、
このトラックに対する処理が完了する。
By the above-described operation, the processing of all the sectors within the processing range of the track designated by the processing request signal R / W is completed.
The processing for this track is completed.

【0048】最初に読み出されたセクタ番号ADrが処
理範囲外(例えば(14))であるときは、処理範囲検
知部4によりフリップフロップ57がリセット状態にな
り、セレクタ53により最小セクタ番号レジスタ1の出
力、すなわち最小のセクタ番号(2)が選択され、セク
タ番号レジスタ54に格納される。
When the first read sector number ADr is out of the processing range (for example, (14)), the processing range detection unit 4 resets the flip-flop 57, and the selector 53 sets the minimum sector number register 1 , Ie, the smallest sector number (2) is selected and stored in the sector number register 54.

【0049】次に、セクタ番号(2)が読み出されるま
でセクタ番号の読み出しのみが行なわれる。セクタ番号
(2)が読み出された後の動作は前述の処理範囲内のセ
クタに対する動作と同様である。最大のセクタ番号
(9)に達すると、処理終了信号ENDが発生し、セク
タ番号(9)のセクタに対する処理が終了して1つのト
ラックに対する処理が終了する。
Next, only the reading of the sector number is performed until the sector number (2) is read. The operation after the sector number (2) is read is the same as the operation for the sector within the processing range described above. When the maximum sector number (9) is reached, a processing end signal END is generated, the processing for the sector with the sector number (9) ends, and the processing for one track ends.

【0050】上述のとおり、本実施例においては、処理
要求信号R/W指定の1つのトラックから最初に読み出
されたセクタ番号が同信号R/W指定の処理範囲内であ
れば、その読み出されたセクタの次のセクタから処理が
開始されるので、そのトラックに対する処理の所要時間
を短縮できる。なお、上記最初に読み出されたセクタ番
号の次のセクタから処理が開始されるようにした理由は
読み出されたセクタ番号の比較器55への伝達時点で
は、セクタ番号レジスタ54には所望のセクタ番号がま
だ格納されていないからである。
As described above, in the present embodiment, if the sector number first read from one track specified by the processing request signal R / W is within the processing range specified by the signal R / W, the reading is performed. Since the processing is started from the sector next to the issued sector, the time required for processing for that track can be reduced. The reason why the processing is started from the sector next to the first read sector number is that when the read sector number is transmitted to the comparator 55, the desired number is stored in the sector number register 54. This is because the sector number has not been stored yet.

【0051】次に、本発明の第2の実施例を示す図3を
参照すると、この実施例のセクタ処理判別部5aは、上
述の第1の実施例における2つの加算器51および56
を1つの加算器51とし、この加算器51に処理要求信
号R/W指定のトラックからの最初に読み出されるセク
タ番号またはセクタ番号レジスタ54の出力をセレクタ
52により選択して供給し、この加算器51の出力をセ
レクタ53のセット側(S)の選択入力に供給している
以外は上述の第1の実施例と共通である。すなわち、こ
の第2の実施例は、第1の実施例の加算器56の機能を
加算器51に兼ねさせた点を除き上述の第1の実施例と
同一であるので、これ以上の説明は省略する。
Next, referring to FIG. 3, which shows a second embodiment of the present invention, the sector processing determining section 5a of this embodiment is different from the first embodiment in that the two adders 51 and 56 are used.
Is used as one adder 51, and the selector 52 selects and supplies the first sector number or the output of the sector number register 54 read from the track designated by the processing request signal R / W to the adder 51. This is the same as the first embodiment except that the output of 51 is supplied to the selection input on the set side (S) of the selector 53. That is, the second embodiment is the same as the above-described first embodiment except that the function of the adder 56 of the first embodiment is also used for the adder 51. Omitted.

【0052】この第2の実施例は、回路構成を簡単にで
きる点において第1の実施例よりも有利である。
The second embodiment is more advantageous than the first embodiment in that the circuit configuration can be simplified.

【0053】次に、本発明の第3の実施例を示す図4を
参照すると、この第3の実施例は、処理終了制御部6a
の構成を除き上述の第1の実施例と同一であるので以下
の説明はこの制御部6aの説明に留め、実施例全体の説
明は省略する。
Next, referring to FIG. 4 showing a third embodiment of the present invention, the third embodiment is different from the processing end control section 6a in the third embodiment.
Since the configuration is the same as that of the first embodiment except for the configuration described above, the following description is limited to the description of the control unit 6a, and the description of the entire embodiment is omitted.

【0054】処理終了制御部6aは、処理要求信号R/
W指定のトラックから最初に読み出されたセクタ番号A
Drを取り込み格納して出力する処理終了セクタ番号レ
ジスタ68と、上記最初に読み出されたセクタ番号が処
理要求信号R/W指定の処理範囲内であると上述の処理
範囲検知部4が認識したときオンとなる信号を出力する
AND型の論理回路66と、この論理回路66の出力信
号がオンのとき上記最初に読み出されたセクタ番号を選
択しオフのとき最大セクタ番号レジスタ2からの上記最
大セクタ番号を選択して処理終了セクタ番号レジスタ6
8へ供給するセレクタ67と、上記セクタ番号ADrと
処理終了セクタ番号レジスタ68からのセクタ番号とが
一致したとき処理終了信号ENDを発生する比較器69
とを備える。
The processing end control unit 6a receives the processing request signal R /
Sector number A first read from track specified by W
The processing end sector number register 68 that captures, stores, and outputs Dr, and the processing range detection unit 4 recognizes that the first read sector number is within the processing range specified by the processing request signal R / W. AND logic circuit 66 that outputs a signal that is turned on when the output signal of the logic circuit 66 is on, selects the first read sector number when the output signal is on, and outputs the signal from the maximum sector number register 2 when the output signal is off. Select the maximum sector number and end the processing. Sector number register 6
And a comparator 69 for generating a processing end signal END when the sector number ADr matches the sector number from the processing end sector number register 68.
And

【0055】この第3の実施例においては、処理要求信
号R/W指定のトラックからの最初に読み出されたセク
タ番号が処理要求信号R/W指定の処理範囲内にあれば
その最初のセクタ番号読出しのタイミングで、このセク
タ番号が処理終了セクタ番号レジスタ68に格納され
る。この最初に読み出されたセクタ番号のセクタに対し
ては、処理は行なわれない(上述の第1および第2の実
施例と同様)。
In the third embodiment, if the first sector number read from the track designated by the processing request signal R / W is within the processing range designated by the processing request signal R / W, the first sector is read. At the timing of the number reading, this sector number is stored in the processing end sector number register 68. No processing is performed on the sector with the sector number read first (similar to the above-described first and second embodiments).

【0056】以後、上述の第1の実施例と同様の動作を
繰り返し、上記最初に読み出されたセクタ番号が再び読
み出されると、比較器69から処理終了信号ENDが出
力され、このセクタ番号のセクタに対する処理が行なわ
れ、それによって1つのトラックに対する処理が終了す
る。
Thereafter, the same operation as in the first embodiment described above is repeated, and when the first sector number read out is read out again, the processing end signal END is output from the comparator 69, and the sector number is output. The processing for the sector is performed, whereby the processing for one track ends.

【0057】上記最初に読み出されたセクタ番号が上記
処理範囲外であるときは、処理範囲内の最大のセクタ番
号が処理終了セクタ番号レジスタ68に格納される。そ
れ以降の動作は、図6に示された従来技術による磁気デ
ィスク制御装置の例と同様であるので、説明は省略す
る。
If the first read sector number is out of the processing range, the largest sector number in the processing range is stored in the processing end sector number register 68. Subsequent operations are the same as those of the example of the conventional magnetic disk control device shown in FIG.

【0058】この第3の実施例は、処理終了制御部を簡
単にできる点において第1の実施例よりも有利である。
The third embodiment is more advantageous than the first embodiment in that the processing end control unit can be simplified.

【0059】なお、この第3の実施例において、セクタ
処理判別部5を、上述の第2の実施例のセクタ処理判別
部5a(図3)に置換することもできる。
In the third embodiment, the sector processing determining section 5 can be replaced with the sector processing determining section 5a (FIG. 3) of the second embodiment.

【0060】上述の3つの実施例は、磁気ディスクを制
御する磁気ディスク制御装置の形をとっているが、本発
明による外部記憶制御装置は、データ構成が共通であれ
ば、記憶媒体を異にする外部記憶装置、たとえばフレキ
シブルディスク装置や光ディスク装置などの制御にも適
用できる。
Although the above three embodiments take the form of a magnetic disk controller for controlling a magnetic disk, the external storage controller according to the present invention uses a different storage medium if the data configuration is common. The present invention can be applied to the control of an external storage device such as a flexible disk device or an optical disk device.

【0061】[0061]

【発明の効果】以上説明したように本発明は、処理要求
信号の指定トラックからの最初の読出しセクタ番号が処
理要求信号の処理範囲内であれば次のセクタから処理が
開始されるので、従来のこの種の制御装置に不可欠であ
った最小セクタ番号到達までの処理保留が不要となり、
トラック1つあたりの処理の所要時間を短縮できる効果
がある。
As described above, according to the present invention, if the first read sector number of the processing request signal from the designated track is within the processing range of the processing request signal, the processing is started from the next sector. It is no longer necessary to suspend processing until reaching the minimum sector number, which was indispensable for this type of control device.
This has the effect of reducing the time required for processing per track.

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

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

【図2】図1に示された実施例の動作を説明するための
磁気ディスクの平面図である。
FIG. 2 is a plan view of the magnetic disk for explaining the operation of the embodiment shown in FIG. 1;

【図3】本発明の第2の実施例のセクタ処理判別部のブ
ロック図である。
FIG. 3 is a block diagram of a sector processing determination unit according to a second embodiment of the present invention.

【図4】本発明の第3の実施例のブロック図である。FIG. 4 is a block diagram of a third embodiment of the present invention.

【図5】従来の外部記憶制御装置の第1の例のブロック
図である。
FIG. 5 is a block diagram of a first example of a conventional external storage control device.

【図6】従来の外部記憶制御装置の第2の例のブロック
図である。
FIG. 6 is a block diagram of a second example of a conventional external storage control device.

【図7】図5及び図6に示された外部記憶制御装置の動
作を説明するための磁気ディスクの平面図である。
FIG. 7 is a plan view of the magnetic disk for explaining the operation of the external storage control device shown in FIGS. 5 and 6;

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

1 最小セクタ番号レジスタ 2 最大セクタ番号レジスタ 3 シリアル・パラレル変換器 4 処理範囲検知部 5,5a,5b セクタ処理判別部 6,6a,6b 処理終了制御部 7 処理制御部 51 加算器 52,53 セレクタ 54,54a セクタ番号レジスタ 55 比較器 56 加算器 57 フリップフロップ 58 比較器 61 減算器 62 セレクタ 63 処理残数レジスタ 64 減算器 65 ゼロ検出回路 66 論理回路 67 セレクタ 68 処理終了セクタ番号レジスタ 69 比較器 100 磁気ディスク 101 トラック DESCRIPTION OF SYMBOLS 1 Minimum sector number register 2 Maximum sector number register 3 Serial / parallel converter 4 Processing range detection part 5, 5a, 5b Sector processing determination part 6, 6a, 6b Processing end control part 7 Processing control part 51 Adder 52, 53 Selector 54, 54a Sector number register 55 Comparator 56 Adder 57 Flip-flop 58 Comparator 61 Subtractor 62 Selector 63 Remaining processing register 64 Subtractor 65 Zero detection circuit 66 Logic circuit 67 Selector 68 Processing end sector number register 69 Comparator 100 Magnetic disk 101 tracks

フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G06F 3/06 Continuation of the front page (58) Field surveyed (Int.Cl. 6 , DB name) G06F 3/06

Claims (8)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 中央処理装置からの処理要求信号に応答
して外部記憶装置における前記処理要求信号指定の記憶
領域に対しデータの読出し・書込み等の処理を前記デー
タの単位量ごとに行うよう前記外部記憶装置を制御する
外部記憶制御装置であって、前記外部記憶装置が前記デ
ータの単位量をそれぞれ記憶できる複数の単位記憶領域
に各各が区分された多数の同心円状の記憶トラックを円
形平板状の記憶媒体の表面にもつ記憶装置であり、前記
処理要求信号による前記記憶領域の指定が前記記憶トラ
ックとそのトラックへの前記処理の開始点および終了点
にあたる前記単位記憶領域との特定により行われる外部
記憶制御装置において、前記処理要求信号が指定する指
定トラックに属する前記単位記憶領域の識別番号のうち
の最小の識別番号と最大の識別番号とをそれぞれ格納す
る第1および第2のレジスタと、前記指定トラックから
読み出された前記識別番号が前記処理要求信号の指定す
る処理範囲に含まれる単位記憶領域の識別番号であるか
否かを判定する処理範囲判定手段と、この処理範囲判定
手段に応答し前記指定トラックから読み出された前記識
別番号が前記処理範囲に含まれる単位記憶領域の識別番
号でありその指定トラックからの最初の読出し識別番号
であるときはオフとなり、前記処理範囲に含まれる単位
記憶領域の識別番号でありその指定トラックからの2番
目以降の読出し識別番号であるときはオンとなり、前記
処理範囲に含まれない単位記憶領域の識別番号であると
きはオフとなる判別信号を発生する単位記憶領域判別手
段と、この単位記憶領域判別手段に応答し前記指定トラ
ックから読み出された前記識別番号が前記処理範囲内の
単位記憶領域の中で最後の処理の対象となる単位記憶領
域の識別番号であるときは処理終了信号を発生する処理
終了制御手段と、前記処理要求信号に応答して前記指定
トラックに属する単位記憶領域の識別番号の読出しを開
始し、前記判別信号がオフのときはこの判別信号対応の
単位記憶領域に対する処理を行うことなく次の単位記憶
領域の識別番号を読み出し、前記判別信号がオンのとき
はこの判別信号対応の単位記憶領域に対する処理を行っ
たのち次の単位記憶領域の識別番号を読み出すととも
に、前記処理終了信号に応答してこの処理終了信号対応
の単位記憶領域に対する処理を行ったのちそれ以後の識
別番号の読出しを停止する読出し停止手段とを有するこ
とを特徴とする外部記憶制御装置。
1. A data processing method according to claim 1, further comprising: reading and writing data to and from a storage area designated by said processing request signal in an external storage device in response to a processing request signal from a central processing unit. An external storage control device for controlling an external storage device, wherein the external storage device stores a large number of concentric storage tracks each divided into a plurality of unit storage areas each capable of storing a unit amount of the data. A storage device provided on the surface of a disk-shaped storage medium, wherein the designation of the storage area by the processing request signal is performed by specifying the storage track and the unit storage area corresponding to a start point and an end point of the processing on the track. In the external storage control device, the smallest identification number among the identification numbers of the unit storage areas belonging to the designated track specified by the processing request signal First and second registers respectively storing a maximum identification number, and the identification number read from the specified track is an identification number of a unit storage area included in a processing range specified by the processing request signal. Processing range determining means for determining whether or not the identification number read from the designated track in response to the processing range determining means is an identification number of a unit storage area included in the processing range; Is turned off when it is the first read identification number, and turned on when it is the identification number of the unit storage area included in the processing range and is the second or later read identification number from the designated track. A unit storage area discriminating means for generating a discrimination signal that turns off when the identification number of the unit storage area is not included; And a processing end control for generating a processing end signal when the identification number read from the designated track is an identification number of a unit storage area to be processed last in the unit storage areas within the processing range. Means for reading the identification number of the unit storage area belonging to the designated track in response to the processing request signal, and when the determination signal is off, without performing processing for the unit storage area corresponding to the determination signal. The identification number of the next unit storage area is read out. When the discrimination signal is on, processing is performed on the unit storage area corresponding to the discrimination signal, and then the identification number of the next unit storage area is read out. Reading stop means for responding to the processing of the unit storage area corresponding to the processing end signal and then stopping reading of the subsequent identification number External storage control device according to claim.
【請求項2】 前記外部記憶装置が磁気ディスク装置で
ある請求項1記載の外部記憶制御装置。
2. The external storage control device according to claim 1, wherein said external storage device is a magnetic disk device.
【請求項3】 前記指定トラックから読み出された前記
識別番号が前記処理範囲に含まれる単位記憶領域の識別
番号でありそのトラックからの最初の読出し識別番号で
あるときはその次に読み出された識別番号を格納する識
別番号レジスタと、前記指定トラックからの読出し識別
番号が前記処理範囲内の単位記憶領域の識別番号であり
そのトラックからの2番目以降の読出し識別番号である
ときは前記識別番号レジスタの記憶内容たる識別番号を
所定のタイミングでその識別番号の次の単位記憶領域の
識別番号に更新する手段と、前記識別番号レジスタの記
憶内容たる識別番号が前記処理範囲に含まれる単位記憶
領域の識別番号のうち最大の識別番号となったとき同識
別番号のうち最小の識別番号をこの識別番号レジスタに
所定のタイミングで格納する手段と、前記指定トラック
からの読出し識別番号を前記識別番号レジスタの記憶内
容たる識別番号と比較両者が一致したときオンとなる前
記判別信号を発生する比較器とを前記単位記憶領域判別
手段が備える請求項1記載の外部記憶制御装置。
3. If the identification number read from the specified track is the identification number of a unit storage area included in the processing range and is the first read identification number from that track, the identification number is read next. An identification number register for storing the identification number, and an identification number when the identification number read from the specified track is an identification number of a unit storage area within the processing range and a second or subsequent read identification number from the track. Means for updating the identification number, which is the storage content of the number register, to the identification number of the unit storage area next to the identification number at a predetermined timing; and a unit storage in which the identification number as the storage content of the identification number register is included in the processing range. When the largest identification number among the identification numbers of the area is reached, the smallest identification number of the identification numbers is stored in this identification number register at a predetermined timing. A unit for storing the identification number read from the designated track and an identification number as the storage content of the identification number register; and a comparator for generating the determination signal that is turned on when both match. 2. The external storage control device according to claim 1, further comprising:
【請求項4】 前記指定トラックからの前記識別番号の
読出し前の初期状態において前記識別番号レジスタに前
記最小の識別番号を格納するようにした請求項3記載の
外部記憶制御装置。
4. The external storage control device according to claim 3, wherein said minimum identification number is stored in said identification number register in an initial state before reading said identification number from said designated track.
【請求項5】 前記指定トラックからの前記識別番号の
読出し前の初期状態において前記処理範囲に含まれる単
位記憶領域の総数を格納する処理残数レジスタと、前記
判別信号がオンになるたびに前記総数からカウント1ず
つデクリメントする手段と、前記処理残数レジスタの記
憶内容たる前記総数がゼロになったとき前記処理終了信
号を発生するゼロ検出手段とを前記処理終了制御手段が
備える請求項1記載の外部記憶制御装置。
5. An unprocessed number register for storing a total number of unit storage areas included in the processing range in an initial state before reading the identification number from the designated track, and each time the determination signal is turned on, 2. The processing end control means comprising: means for decrementing the count by one from the total number; and zero detecting means for generating the processing end signal when the total number, which is the storage content of the remaining processing number register, becomes zero. External storage controller.
【請求項6】 前記指定トラックからの最初の読出し識
別番号が前記処理範囲に含まれる単位記憶領域の識別番
号であるときはその識別番号を格納するとともにその処
理範囲に含まれない単位記憶領域の識別番号であるとき
は前記処理範囲に含まれる単位記憶領域の識別番号のう
ち最大の識別番号を格納する処理終了識別番号レジスタ
と、前記指定トラックからの読出し識別番号とこのレジ
スタの記憶内容たる識別番号とを比較し両者が一致した
ときは前記処理終了信号を発生する手段とを前記処理終
了制御手段が備える請求項1記載の外部記憶制御装置。
6. When the first read identification number from the designated track is the identification number of a unit storage area included in the processing range, the identification number is stored and the unit storage area not included in the processing range is stored. If it is an identification number, a processing end identification number register for storing the largest identification number among the identification numbers of the unit storage areas included in the processing range, an identification number read from the specified track, and an identification as storage contents of this register 2. The external storage control device according to claim 1, wherein the processing end control means includes means for comparing the numbers with each other and generating the processing end signal when the numbers match.
【請求項7】 前記指定トラックの読出し識別番号にカ
ウント1を加算する第1の加算器と、前記指定トラック
からの前記読出し識別番号を所定のタイミングで格納し
出力する識別番号レジスタと、この識別番号レジスタの
記憶内容たる識別番号にカウント1を加算する第2の加
算器と、前記最大識別番号レジスタの記憶内容たる識別
番号を前記識別番号レジスタの記憶内容たる識別番号と
比較する第1の比較器と、前記初期状態のときおよび前
記第1の比較器の出力が比較対象たる2つの識別番号の
不一致を示すときはリセット状態となり前記処理範囲判
定手段の出力が前記処理範囲内の識別番号であることを
示すときセット状態となるフリップフロップと、前記識
別番号が前記指定トラックからの最初の読出し識別番号
であるときのみ前記第1の加算器からの識別番号を選択
しそれ以外のときは前記第2の加算器からの識別番号を
選択して出力する第1のセレクタと、前記フリップフロ
ップが前記リセット状態のときは前記最小識別レジスタ
の記憶内容たる識別番号を選択し前記セット状態のとき
は前記第1のセレクタからの識別番号を選択して前記識
別番号レジスタに供給する第2のセレクタと、前記指定
トラックからの読出し識別番号を前記識別レジスタの記
憶内容たる識別番号と比較し両者が一致したときオンと
なる前記判別信号を出力する第2の比較器とを前記単位
記憶領域判別部が備える請求項3記載の外部記憶制御装
置。
7. A first adder for adding count 1 to the read identification number of the specified track, an identification number register for storing and outputting the read identification number from the specified track at a predetermined timing, A second adder for adding count 1 to the identification number stored in the number register, and a first comparison for comparing the identification number stored in the maximum identification number register with the identification number stored in the identification number register When the initial state and the output of the first comparator indicate a mismatch between the two identification numbers to be compared, the reset state is set, and the output of the processing range determination means is an identification number within the processing range. A flip-flop that is set to indicate that there is, and the flip-flop is set only when the identification number is the first read identification number from the designated track. A first selector for selecting an identification number from the first adder and otherwise selecting and outputting an identification number from the second adder; and a selector when the flip-flop is in the reset state. A second selector for selecting an identification number as the storage content of the minimum identification register and selecting the identification number from the first selector to supply the identification number to the identification number register when the set state is established; 4. The external storage unit according to claim 3, wherein the unit storage area determination unit includes a second comparator that compares the identification number with an identification number that is the storage content of the identification register and outputs the determination signal that is turned on when the two match. Storage controller.
【請求項8】 前記第1および第2の加算器が1つの加
算器により構成され、前記単位記憶領域の識別番号が前
記指定トラックからの最初の読出し識別番号であるとき
のみその識別番号を選択しそれ以外のときは前記識別番
号レジスタの記憶内容たる識別番号を選択して出力する
回路手段で前記第1のセレクタが構成され、前記第2の
セレクタの前記フリップフロップがセット状態のときに
選択される側の入力端に前記1つの加算器の出力を供給
した単位記憶領域判別部を備える請求項7記載の外部記
憶制御装置。
8. The first and second adders are constituted by one adder, and select the identification number only when the identification number of the unit storage area is the first read identification number from the designated track. Otherwise, the first selector is constituted by circuit means for selecting and outputting the identification number as the storage content of the identification number register, and is selected when the flip-flop of the second selector is in the set state. 8. The external storage control device according to claim 7, further comprising: a unit storage area determination unit that supplies an output of said one adder to an input terminal on a side to be processed.
JP29533691A 1990-11-13 1991-11-12 External storage controller Expired - Lifetime JP2913954B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29533691A JP2913954B2 (en) 1990-11-13 1991-11-12 External storage controller

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
JP30657090 1990-11-13
JP2-306570 1990-11-13
JP2-315341 1990-11-20
JP31534190 1990-11-20
JP29533691A JP2913954B2 (en) 1990-11-13 1991-11-12 External storage controller

Publications (2)

Publication Number Publication Date
JPH06131122A JPH06131122A (en) 1994-05-13
JP2913954B2 true JP2913954B2 (en) 1999-06-28

Family

ID=27337974

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29533691A Expired - Lifetime JP2913954B2 (en) 1990-11-13 1991-11-12 External storage controller

Country Status (1)

Country Link
JP (1) JP2913954B2 (en)

Also Published As

Publication number Publication date
JPH06131122A (en) 1994-05-13

Similar Documents

Publication Publication Date Title
US4723223A (en) Direct memory access controller for reducing access time to transfer information from a disk
US4442485A (en) Dynamically buffered data transfer system for large capacity data source
US4516166A (en) Device for the automatic computer-control of the operation of a plurality of videorecorders
JP2001023317A (en) Optical disk recording and reproducing method, device therefor and medium storing optical disk recording and reproducing program
JPH1064170A (en) Method for copying data of hard disk
JP2913954B2 (en) External storage controller
JP3834985B2 (en) Recording data control device
US5379397A (en) Disk storage control device including a sector number register and range detection circuitry for reading and writing to a range of detectors
JPH05233513A (en) Interface circuit for controlling data transfer
JP2684717B2 (en) Disk controller bad track control method
KR0176615B1 (en) Hard disk drive control device and method thereof
KR100403043B1 (en) Apparatus for improving data write of hard disk drive
KR0176611B1 (en) Hard disk drive control and method
JPH0628779A (en) Method for recording and controlling data in disk device
JP3808935B2 (en) Information recording / reproducing device
JPH024075B2 (en)
JPH04111015A (en) Information recorder
JPH09282842A (en) Information recording and reproducing method
JPH05189868A (en) Data writing control system of write once optical disc apparatus
JP2001084712A (en) Magnetic disk apparatus and error rewrite control method therefor
JPH01285078A (en) Read retry control system for magnetic disk device
JPH05298702A (en) Information memory employing cd-rom
JPS62121523A (en) Rising system for information processing system
JPH04102916A (en) Magnetic disk device
JPH09128291A (en) Cache memory managing method

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: 19990316