JPS62162275A - Magnetic disk controller - Google Patents

Magnetic disk controller

Info

Publication number
JPS62162275A
JPS62162275A JP292486A JP292486A JPS62162275A JP S62162275 A JPS62162275 A JP S62162275A JP 292486 A JP292486 A JP 292486A JP 292486 A JP292486 A JP 292486A JP S62162275 A JPS62162275 A JP S62162275A
Authority
JP
Japan
Prior art keywords
magnetic disk
address
sector
contents
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP292486A
Other languages
Japanese (ja)
Other versions
JPH0668876B2 (en
Inventor
Shigeru Oshima
茂 大島
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 JP292486A priority Critical patent/JPH0668876B2/en
Publication of JPS62162275A publication Critical patent/JPS62162275A/en
Publication of JPH0668876B2 publication Critical patent/JPH0668876B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To shorten a rotation waiting time by calculating an end sector obtained by adding the number of sectors up to the sector starting reading or writing operation to the number of sectors to be executed and executing the operation of a magnetic disk whose end sector value is smaller than any one of starting sector values of plural magnetic disk devices with priority. CONSTITUTION:A microprocessor 20 loads the read starting sector No. of a magnetic disk device 200 and the number of sectors to be executed in address X and address X+1 of a local memory respectively. Then, the microprocessor 20 outputs a sector searching instruction for the magnetic disk device 200 to a magnetic disk control circuit 10 and loads the sector No. to address X+2 of the memory 30. Then the contents of the address X+2 of the memory 30. Then the contents of the address X+2 are subtracted from that of address X, the subtracted value is loaded to the address X+3 of the memory 30, the contents of the address X+1 is added to the contents of the address X+3, and the added value is loaded to address X+4. Similarly to X, the added contents are loaded to address Y+4 and the contents of the address Y+4 are compared with that of address Y+3.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置に使用する磁気ディスク制御装置
に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a magnetic disk control device used in an information processing device.

〔従来の技術〕[Conventional technology]

従来、各セクタを識別するためのセクタID(識別符号
)を媒体上に有する固定セクタ方式の磁気ディスク装置
を2台以上制御する磁気ディスク制御装置において、接
続された複数の磁気ディスク装置に対してそれぞれ読出
しあるいは書込み命令が入力された場合、命令の処理順
序としては、命令が入力された順に実行する方法や磁気
ディスり装置の機器アドレス順に実行する方法があった
Conventionally, in a magnetic disk control device that controls two or more fixed sector type magnetic disk devices that have a sector ID (identification code) on the medium to identify each sector, a When a read or write command is input, the commands can be processed in the order in which they are input or in the order of the device addresses of the magnetic disk drive.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した磁気ディスク制御装置においては、1つの命令
を実行するたびに読出しあるいは書込み動作をすべきセ
クタの先頭セクタのサーチ動作から開始せねばならず、
先頭セクタのサーチ動作を完了するまでには平均1 /
”’ 2回転ディスクが回転する時間、いわゆる回転待
ちの時間が必要となり、その間読出しあるいは書込み動
作を実行出来ないという欠点があった。
In the magnetic disk control device described above, each time one instruction is executed, it is necessary to start with a search operation for the first sector of the sectors to be read or written.
It takes an average of 1/1 to complete the search operation for the first sector.
``' This method requires time for the two-rotation disk to rotate, so-called rotation waiting time, and there is a drawback that reading or writing operations cannot be performed during this time.

本発明の目的は、従来の回転待ちの時間を短縮し、読出
しあるいは書込みの動作の終了を早くした磁気ディスク
制御装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a magnetic disk control device that shortens the conventional rotation waiting time and quickly finishes reading or writing operations.

[−問題点を解決するための手段〕 本発明の構成は、セクタ識別符号をディスク上に記憶す
る固定セクタ方式の複数の磁気ディスク装置を中央処理
装置によって制御する磁気ディスク制御装置において、
前記中央処理装置との間の信号及びデータの授受を行う
バス制御回路と、前記各磁気ディスク装置との間の信号
の授受を行う磁気ディスク制御回路と、これらバス制御
回路と磁気ディスク制御回路とを制御するマイクロプロ
セッサと、このマイクロプロセッサと接続されるローカ
ルメモリとを備え、各々の磁気ディスク装置に読出しあ
るいは書込み命令が入力された場合、この命令が入力さ
れた前記磁気ディスク装置の前記セクタ識別符号をその
ディスクから読出し、読出しあるいは書込み動作を開始
するセクタまでのセクタ個数を求め、前記動作を連続実
行するセクタ関数と開始セクタの値を加えた終了セクタ
求め、この終了セクタの値がこれらの磁気ディスク装置
の開始セクタの値のどれよりも小さい時、前記終了セク
タの値が小さい磁気ディスク装置に対する読出しいある
いは書込み動作を優先して実行することを特徴とする。
[-Means for Solving the Problems] The present invention provides a magnetic disk control device in which a central processing unit controls a plurality of fixed sector type magnetic disk devices that store sector identification codes on disks.
A bus control circuit that sends and receives signals and data to and from the central processing unit, a magnetic disk control circuit that sends and receives signals to and from each of the magnetic disk devices, and these bus control circuits and magnetic disk control circuits. and a local memory connected to the microprocessor, and when a read or write command is input to each magnetic disk device, the sector identification of the magnetic disk device to which this instruction is input is provided. Read the code from the disk, calculate the number of sectors up to the sector where the read or write operation starts, calculate the end sector by adding the value of the start sector and the sector function that continuously executes the above operation, and calculate the end sector value by adding the value of the start sector. The present invention is characterized in that when the value of the start sector of a magnetic disk drive is smaller than any of the values, the read or write operation to the magnetic disk drive whose end sector value is smaller is executed with priority.

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

第1図は本発明の一実施例を含むシステムのプロ・ツク
図である。磁気ディスク制御装置100は、磁気ディス
ク制御回路10、マイクロプロセッサ20、ローカルメ
モリ30、及びバス制御回路40より構成されている。
FIG. 1 is a block diagram of a system including one embodiment of the present invention. The magnetic disk control device 100 includes a magnetic disk control circuit 10, a microprocessor 20, a local memory 30, and a bus control circuit 40.

又、磁気ディスク制御装置100は、磁気ディスク装置
200及び磁気ディスク装置201と接続されるととも
に、バス300を介して中央処理装置400及び主記憶
装置500と接続されている。
Further, the magnetic disk control device 100 is connected to a magnetic disk device 200 and a magnetic disk device 201, and is also connected to a central processing unit 400 and a main storage device 500 via a bus 300.

第2図は第1図のセクタIDのフォーマット型式の例を
示す図である。このセクタIDは、図のように、同期を
検出する5YNC(同期)バイトと、ソフI・ウェアで
使用するFLAG(フラグ)バイI・と、ディスクのシ
リンダの番号を示すシリンダ番号と、ディスクのトラッ
クの番号を示すI・う・ツク番号と、ディスクのセクタ
番号を示すセクタ番号と、巡回冗長検査符号を示すCR
cとから構成される。
FIG. 2 is a diagram showing an example of the format of the sector ID shown in FIG. As shown in the figure, this sector ID includes the 5YNC (synchronization) byte that detects synchronization, the FLAG (flag) used by software, the cylinder number that indicates the disk cylinder number, and the disk. The I-U-TSUK number that indicates the track number, the sector number that indicates the sector number of the disk, and the CR that indicates the cyclic redundancy check code.
It consists of c.

この様に構成された磁気ディスク制御装置100の動作
は次の通りである。中央処理装置400より磁気ディス
ク装置200に対するリード命令と磁気ディスク装置2
01に対するライト命令がバス300を介して磁気ディ
スク制御装置100に入力されたとすると、マイクロプ
ロセッサ20は磁気ディスク装置200に対するリード
開始セクタ番号をローカルメモリ30のX番地に、リー
ド動作を実行するセクタ個数をX+1番地にロードする
とともに、磁気ディスク装置201に対するライト開始
セクタ番号をローカルメモリ30のY番地に、ライト動
作を実行するセクタ個数をY+1番地にロードする。次
にマイクロブロセ・ソサ20は磁気ディスク制御回路1
0に対し磁気ディスク装置200に対するセクタサーチ
命令を出力する。
The operation of the magnetic disk control device 100 configured in this manner is as follows. A read command from the central processing unit 400 to the magnetic disk device 200 and the magnetic disk device 2
If a write command for 01 is input to the magnetic disk control device 100 via the bus 300, the microprocessor 20 sets the read start sector number for the magnetic disk device 200 at address At the same time, the write start sector number for the magnetic disk device 201 is loaded into the Y address of the local memory 30, and the number of sectors to perform the write operation is loaded into the Y+1 address. Next, the microbrosé source 20 is the magnetic disk control circuit 1.
0, a sector search command for the magnetic disk device 200 is output.

セクタサーチ命令を開始した磁気ディスク制御回路10
は、磁気ディスク装置200からのインデックスパルス
又はセクタパルスが来ると、第2図に示すセクタIDを
認識するため、5YNCバイI・をサーチする動作を開
始する。この5YNCバイ1〜が認識されると、磁気デ
ィスク制御回路10は、F L A Gバイト、シリン
ダ番号、及びトラック番号を読み飛ばし、セクタ番号を
入力してCReチェック動作を実行する。このCRCチ
ェッりがノーエラーとなると、磁気ディスク制御回路1
0は、マイクロプロセッサ20にセクタ番号を出力して
動作を終了する。
Magnetic disk control circuit 10 that started the sector search command
When the index pulse or sector pulse from the magnetic disk device 200 arrives, it starts an operation to search for 5YNCbyI. in order to recognize the sector ID shown in FIG. When this 5YNCby1~ is recognized, the magnetic disk control circuit 10 skips the FLAG byte, cylinder number, and track number, inputs the sector number, and executes the CRe check operation. If this CRC check results in no error, the magnetic disk control circuit 1
0 outputs the sector number to the microprocessor 20 and ends the operation.

マイクロプロセッサ20は、セクタ番号が入力されると
、セクタ番号をローカルメモリ30のX+2番地にロー
ドする。同様に、マイクロプロセッサ20は、磁気ディ
スク制御回路10に対し磁気ディスク装置201に対す
るセクタサーチ命令を出力し、磁気ディスク制御回路1
0でのセクタサーチ動作が終了し、セクタ番号が入力さ
れると、セクタ番号をローカルメモリのY+2番地にロ
ードする。
When the sector number is input, the microprocessor 20 loads the sector number into address X+2 of the local memory 30. Similarly, the microprocessor 20 outputs a sector search command for the magnetic disk device 201 to the magnetic disk control circuit 10, and
When the sector search operation at 0 is completed and the sector number is input, the sector number is loaded into address Y+2 of the local memory.

次に、マイクロプロセッサ20は、ローカルメモリ30
からX番地の内容及びX+2番地の内容を読出し、X番
地の内容からX+2番地の内容を引き、その値をローカ
ルメモリ30のX+3番地にロードする。なお、ロード
すべき値が負になっていた場合、ルリンダ当りのセクタ
数を加えた後、ローカルメモリ30のX+3番地にロー
ドする。次に、マイクロプロセッサ20は、ローカルメ
モリ30からX+を番地とX+3番地の内容を読出し、
X−ML1番地内容とX −1−3番地の内容とを加え
てその値をX+4番地にロードする4同様にマイクロ7
0セツサ20は、ローカルメモリ30のY番地の内容か
らY+2番地の内容を引きX+3番地にロードし、Y+
1番地の内容にX+3番地の内容を加えて、その値をY
 +44番地ロードする7 次に、マイクロプロセッサ20は、ローカルメモリ30
の内容を読出し、X+3番地及びY十・1番地の内容を
比較する動作を開始し、X+4番地の内容がX+3番地
を内容より小さい場合、磁気ディスク装置201に対す
るライI・動作を開始し、X+4番地の内容がX+3番
地の内容より大きい場=、Ia気ディスク装置200に
対するリード動作を開始する。すなわち、終了セクタの
値が小さい磁気ディスク装置に対する読出し、書込み動
作が殴先的に実行される0、 [発明の効果〕 以上説明したように、本発明の磁気ディスク制御装置を
採用することにより、磁気ディスク制御装置に接続され
た2台以上の磁気ディスク装置に対する読出しあるいは
書込動作の終了が従来のらのと比較し、速くなるという
効果がある。
Next, the microprocessor 20 stores the local memory 30
The contents of address X and the contents of address X+2 are read from the contents of address X, the contents of address X+2 are subtracted from the contents of address Note that if the value to be loaded is negative, the number of sectors per Lulinda is added and then loaded to address X+3 of the local memory 30. Next, the microprocessor 20 reads address X+ and the contents of address X+3 from the local memory 30,
Add the contents of address X-ML1 and the contents of address X-1-3 and load the value to address X+4.4 Similarly, micro7
The 0 setter 20 subtracts the contents at address Y+2 from the contents at address Y in the local memory 30, loads it into address X+3, and loads it into address Y+3.
Add the contents of address X + 3 to the contents of address 1 and set the value to Y
Load +44 address 7 Next, the microprocessor 20 loads the local memory 30.
reads out the contents of address X+3 and compares the contents of address Y10/1, and if the contents of address X+4 is smaller than the contents of address X+3, starts the write operation for the magnetic disk device 201, If the content of the address is greater than the content of address X+3, a read operation for the Ia disk device 200 is started. That is, read and write operations are performed on a magnetic disk device with a small end sector value. [Effects of the Invention] As explained above, by adopting the magnetic disk control device of the present invention, This has the effect that reading or writing operations for two or more magnetic disk devices connected to a magnetic disk control device can be completed more quickly than in the conventional case.

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

第1図は本発明の一実施例の示すブロック図、第2図は
第1図のセクタIDのフォーマット型式の一例を示す図
である。 10・・・磁気ディスク制御回路、20・・・マイクロ
70セツサ、30・・・ローカルメモリ、110・・・
バス制御回路、100・・・磁気ディスク制御装置、2
00.201・・・磁気ディスク装置、300・・・バ
ス、400・・・中央処理装置、500・・・主記憶装
置。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a diagram showing an example of the format of the sector ID shown in FIG. DESCRIPTION OF SYMBOLS 10... Magnetic disk control circuit, 20... Micro 70 setter, 30... Local memory, 110...
Bus control circuit, 100... magnetic disk control device, 2
00.201...Magnetic disk device, 300...Bus, 400...Central processing unit, 500...Main storage device.

Claims (1)

【特許請求の範囲】[Claims] セクタ識別符号をディスク上に記憶する固定セクタ方式
の複数の磁気ディスク装置を中央処理装置によつて制御
する磁気ディスク制御装置において、前記中央処理装置
との間の信号及びデータの授受を行うバス制御回路と、
前記各磁気ディスク装置との間の信号の授受を行う磁気
ディスク制御回路と、これらバス制御回路と磁気ディス
ク制御回路とを制御するマイクロプロセッサと、このマ
イクロプロセッサと接続されるローカルメモリとを備え
、各々の磁気ディスク装置に読出しあるいは書込み命令
が入力された場合、この命令が入力された前記磁気ディ
スク装置の前記セクタ識別符号をそのディスクから読出
し、読出しあるいは書込み動作を開始するセクタまでの
セクタ個数を求め、前記動作を連続実行するセクタ個数
と開始セクタの値を加えた終了セクタ求め、この終了セ
クタの値がこれらの磁気ディスク装置の開始セクタの値
のどれよりも小さい時、前記終了セクタの値が小さい磁
気ディスク装置に対する読出しあるいは書込み動作を優
先して実行することを特徴とする磁気ディスク制御装置
In a magnetic disk control device in which a central processing unit controls a plurality of fixed-sector type magnetic disk devices that store sector identification codes on the disks, bus control is used to exchange signals and data with the central processing unit. circuit and
A magnetic disk control circuit that sends and receives signals to and from each of the magnetic disk devices, a microprocessor that controls these bus control circuits and the magnetic disk control circuit, and a local memory connected to the microprocessor, When a read or write command is input to each magnetic disk device, the sector identification code of the magnetic disk device to which this command was input is read from that disk, and the number of sectors up to the sector where the read or write operation starts is calculated. calculate the end sector by adding the number of sectors for which the above operation is to be continuously executed and the value of the start sector; and if the value of this end sector is smaller than any of the values of the start sector of these magnetic disk devices, the value of the end sector is determined. 1. A magnetic disk control device characterized in that a read or write operation for a small magnetic disk device is executed with priority.
JP292486A 1986-01-10 1986-01-10 Magnetic disk controller Expired - Lifetime JPH0668876B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP292486A JPH0668876B2 (en) 1986-01-10 1986-01-10 Magnetic disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP292486A JPH0668876B2 (en) 1986-01-10 1986-01-10 Magnetic disk controller

Publications (2)

Publication Number Publication Date
JPS62162275A true JPS62162275A (en) 1987-07-18
JPH0668876B2 JPH0668876B2 (en) 1994-08-31

Family

ID=11542889

Family Applications (1)

Application Number Title Priority Date Filing Date
JP292486A Expired - Lifetime JPH0668876B2 (en) 1986-01-10 1986-01-10 Magnetic disk controller

Country Status (1)

Country Link
JP (1) JPH0668876B2 (en)

Also Published As

Publication number Publication date
JPH0668876B2 (en) 1994-08-31

Similar Documents

Publication Publication Date Title
JPS62162275A (en) Magnetic disk controller
JPS60101788A (en) Optical disk controller
JPS61259334A (en) Data transferring system
JPS63239521A (en) Data processing system for magnetic tape device
JPS6238569A (en) Magnetic disc controller
JPS5969856A (en) Method for controlling built-in magnetic disc
JPS6389964A (en) Loading and confirming system for microprogram
JP2845746B2 (en) Micro program controller
JPS5940309A (en) Memory controller
JPH036614A (en) Magnetic disk controller
JPH02171913A (en) Optical disk device control system
JPH0233786A (en) Optical disk device
JPS6254885A (en) Magnetic disc controller
JPS63148349A (en) Cache memory positioning system
JPH01251375A (en) Magnetic disk controller
JPH01312782A (en) Defect sector processing system
JPH04359312A (en) Electronic disk subsystem
JPS6278625A (en) Magnetic disk controller
JPS59157813A (en) Controller for magnetic memory of rotor
JPS63108567A (en) Control circuit for optical disk
JPH02257349A (en) Network address setting system
JPS63124124A (en) Method for reading out data from disk device
JPH036634A (en) File storing system for floppy disk
JPH11120089A (en) Parallel storage device
JPS59186048A (en) Microprogram control system