JP2544327B2 - Magnetic disk controller - Google Patents

Magnetic disk controller

Info

Publication number
JP2544327B2
JP2544327B2 JP59277522A JP27752284A JP2544327B2 JP 2544327 B2 JP2544327 B2 JP 2544327B2 JP 59277522 A JP59277522 A JP 59277522A JP 27752284 A JP27752284 A JP 27752284A JP 2544327 B2 JP2544327 B2 JP 2544327B2
Authority
JP
Japan
Prior art keywords
data
magnetic disk
bytes
identification part
recording
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
JP59277522A
Other languages
Japanese (ja)
Other versions
JPS61153879A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP59277522A priority Critical patent/JP2544327B2/en
Publication of JPS61153879A publication Critical patent/JPS61153879A/en
Application granted granted Critical
Publication of JP2544327B2 publication Critical patent/JP2544327B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は,固定長のデータ記録媒体に対して可変長の
識別部情報の書込み/読取り制御が可能な磁気ディスク
制御装置に関する。
Description: TECHNICAL FIELD The present invention relates to a magnetic disk control device capable of controlling writing / reading of variable length identification information to / from a fixed length data recording medium.

情報処理装置の大容量外部記憶装置として使用されて
いる磁気ディスク装置は、高速で正確なデータの書込み
/読取り動作が要求される。
A magnetic disk device used as a large-capacity external storage device of an information processing device is required to perform high-speed and accurate data write / read operation.

書込み/読取りの対象となるデータの長さには固定長
データと可変長データがあり、実際に発生するデータの
長さから見た場合は可変長のデータを扱った方が現実的
であり、しかも記憶容量の節約,プログラムの単純化の
点からは望ましい。
There are fixed length data and variable length data in the length of data to be written / read, and it is more realistic to handle the variable length data from the viewpoint of the length of the data actually generated. Moreover, it is desirable in terms of saving storage capacity and simplifying the program.

一方、ハードウエアの構成上は固定長の方が簡単で高
速化が出来るので一般には、固定長データの演算を基本
としている。このような固定長データを記録・再生する
磁気ディスク媒体の1トラックは、セクタパルスによっ
て区切られたレコードにより構成されている。
On the other hand, in terms of hardware configuration, fixed length is simpler and faster, and therefore, it is generally based on the operation of fixed length data. One track of the magnetic disk medium for recording / reproducing such fixed length data is composed of records separated by sector pulses.

このレコードは第3図に示すように、セクタの位置を
識別しそのセクタの磁気的欠陥情報を表示する識別部
(以下ID部と称する)a、ユーザデータを記録するデー
タ部b、及びID部a,データ部bの前後に所定間隔を取る
ギャップ部G1,G2,G3から構成されている。
This record is, as shown in FIG. 3, an identification section (hereinafter referred to as an ID section) a for identifying the position of a sector and displaying magnetic defect information of the sector, a data section b for recording user data, and an ID section. It is composed of gap parts G1, G2, G3 having a predetermined space before and after the data part b.

又、このID部aは磁気ディスク装置の磁気ディスク制
御装置とのインタフェース部又は磁気ディスク制御装置
により、その構成バイト数の違うものがあり、通常それ
ぞれのID部aは専用のインタフェース部又は磁気ディス
ク制御装置のみが対応可能である。
Further, the ID part a may have a different number of constituent bytes depending on the interface part with the magnetic disk control device of the magnetic disk device or the magnetic disk control device. Normally, each ID part a is a dedicated interface part or magnetic disk. Only the control device is available.

しかし、上記のようなバイト数の違うID部aが読取ら
れた場合でも柔軟性を持って対応可能な磁気ディスク制
御装置の実現が待たれている。
However, there is a need for realization of a magnetic disk control device that can flexibly cope with the case where the ID parts a having different numbers of bytes are read.

〔従来の技術と発明が解決しようとする問題点〕[Problems to be solved by conventional technology and invention]

第2図は従来の磁気ディスク制御装置の構成を示すブ
ロック図を示す。
FIG. 2 is a block diagram showing the configuration of a conventional magnetic disk controller.

通常、磁気ディスク制御装置1が磁気ディスク装置
(デバイス)2に対してデータの記録・再生動作制御を
行う場合、まず磁気ディスク装置(デバイス)2のID部
aの内容を予めマイクロプロセッサ(以下MPUと称す
る)4よりID情報が設定されているIDバッファ部5(即
ち、シフトレジスタ12に相当する)との内容を比較し
て、一致した時点でデータ部bへのデータの記録又は読
取り動作の制御を行う。
Normally, when the magnetic disk control device 1 controls the recording / reproducing operation of data for the magnetic disk device (device) 2, first, the contents of the ID part a of the magnetic disk device (device) 2 is previously stored in a microprocessor (hereinafter referred to as MPU). 4), the contents of the ID buffer unit 5 (that corresponds to the shift register 12) in which the ID information is set are compared, and at the time of coincidence, the data recording or reading operation of the data unit b is performed. Take control.

即ち、磁気ディスク装置(デバイス)2で読取ったID
部aのシリアルリードデータをシリアル/パラレル変換
回路7でパラレルリードデータに変換し、データ比較回
路6の一方の端子に送出する。又、IDバッファ部5は格
納しているデータをデータ比較回路6のもう一方の端子
に送出する。
That is, the ID read by the magnetic disk device (device) 2
The serial read data of the part a is converted into parallel read data by the serial / parallel conversion circuit 7 and sent to one terminal of the data comparison circuit 6. Further, the ID buffer unit 5 sends the stored data to the other terminal of the data comparison circuit 6.

尚、ID部aのデータ内容は、例えば6バイトで構成
し、障害等があった場合のフラグを立てる部分、ID部a
の位置しているシリンダ番号及び対応するヘッド番号等
のデータが記録されている。
The data content of the ID part a is composed of, for example, 6 bytes, and a part for setting a flag when there is a failure, the ID part a
The data such as the cylinder number where is located and the corresponding head number are recorded.

データ比較回路6は入力したデータを比較して一致す
れば所定信号を論理積回路6へ出力する。この所定信号
は、現在ID部aの内容の読取りを制御していることを示
すID部信号との論理積条件を取り、その出力内容をフリ
ップフロップ回路(但し、J-K型フリップフロップ回路
で、以下J-K・F.F回路と称する)9にセットする。
The data comparison circuit 6 compares the input data and outputs a predetermined signal to the AND circuit 6 if they match. This predetermined signal takes a logical product condition with the ID part signal indicating that the reading of the contents of the ID part a is currently controlled, and the output contents are flip-flop circuits (however, in the JK type flip-flop circuit, Set to 9).

フォーマット制御回路11は、上位のホスト計算機(図
示してない)から転送され、データバッファ3に格納し
たデータを記録する場合は、磁気ディスク装置2内の媒
体のフォーマットをMPU4で設定された内容にもとずき決
定する制御を行うと共に、J-K・F.F回路9からの信号が
入力すると、データ部bへのデータの記録又は再生動作
を制御する。
When recording the data transferred from the host computer (not shown) and stored in the data buffer 3, the format control circuit 11 sets the format of the medium in the magnetic disk device 2 to the content set by the MPU 4. When the signal from the JK / FF circuit 9 is input, the recording / reproducing operation of the data in the data section b is controlled while controlling the original determination.

尚、データバッファ3は磁気ディスク装置2から転送
されて来たデータを上位のホスト計算機(図示してな
い)に送出するために、一時的にデータを蓄える機能を
も果たす。又、エラー訂正符号回路(以下ECC回路と称
する)10は、ID部a及びデータ部bに付加されているEC
Cにより、それぞれのデータのビットエラーを検出し、
訂正する回路である。
The data buffer 3 also has a function of temporarily storing the data transferred from the magnetic disk device 2 in order to send the data to the host computer (not shown). An error correction code circuit (hereinafter referred to as an ECC circuit) 10 is an EC added to the ID part a and the data part b.
C detects bit error of each data,
It is a circuit to correct.

上述のようなID部aは、磁気ディスク装置2のインタ
フェース部(図示してない)や磁気ディスク制御装置1
により構成するバイト数が異なっている。一方、IDバッ
ファ部5に格納されるバイト数は固定されているため、
もし、IDバッファ部5に予め格納されている内容と、磁
気ディスク装置2から送られて来たID部aのバイト数が
一致しなかった場合は対応出来ない。
The ID section a as described above is used for the interface section (not shown) of the magnetic disk device 2 and the magnetic disk control device 1.
The number of bytes configured by is different. On the other hand, since the number of bytes stored in the ID buffer unit 5 is fixed,
If the contents stored in advance in the ID buffer unit 5 and the number of bytes of the ID unit a sent from the magnetic disk device 2 do not match, it cannot be handled.

即ち、従来はID部aのバイト数が一致しない磁気ディ
スク装置2の動作(記録・再生動作)の制御が出来ない
ばかりではなく、例えばIDバッファ部5のシフトレジス
タ12が8段あれば、最初にセットしたデータを最終段に
移すためには、毎回8回IDバッファ部5に書込む等その
処理時間に多くの時間を要する等の問題点があった。
That is, conventionally, not only the operation (recording / reproducing operation) of the magnetic disk device 2 in which the number of bytes of the ID part a does not match can not be controlled, but, for example, if the shift register 12 of the ID buffer part 8 has eight stages, In order to move the data set in the last stage to the final stage, there is a problem that it takes a lot of processing time such as writing in the ID buffer section 8 eight times each time.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、上記問題点を解消した新規な磁気ディスク
制御装置を実現することを目的とするものであり、該問
題点は、識別部内容比較用データを準備し、使用するデ
ータのバイト数を該固定長レコードから読取った該識別
部のバイト数に合わせて切り換える機能を持つバッファ
手段を設け、前記バッファ手段の出力と、該固定長レコ
ードから読取った該識別部の内容とを比較した結果によ
り該磁気ディスク装置の制御を行う本発明による磁気デ
ィスク制御装置により解決される。
The present invention is intended to realize a new magnetic disk control device that solves the above-mentioned problems, and the problem is to prepare the data for comparing the contents of the discriminating portion and determine the number of bytes of the data to be used. Buffer means having a function of switching according to the number of bytes of the identification section read from the fixed-length record is provided, and the output of the buffer means is compared with the content of the identification section read from the fixed-length record. This is solved by the magnetic disk control device according to the present invention which controls the magnetic disk device.

〔作用〕[Action]

即ち、IDバッファ部を所定段のシフトレジスタと前記
シフトレジスタからのデータ出力を切換えるマルチプレ
クサ(以下MPXと称する)によって構成し、フォーマッ
ト制御用のIDバイト数指定に従い前記MPXを切換えて、I
Dバッファ部の出力サイズをID部に合わせることによ
り、種々のID部サイズのものに対して柔軟性を持って対
応し、制御することが可能となる。
That is, the ID buffer section is composed of a shift register of a predetermined stage and a multiplexer (hereinafter referred to as MPX) that switches the data output from the shift register, and the MPX is switched according to the designation of the number of ID bytes for format control.
By adjusting the output size of the D buffer unit to the ID unit, it becomes possible to flexibly handle and control various ID unit sizes.

〔実施例〕〔Example〕

以下本発明の要旨を第1図に示す実施例により具体的
に説明する。
The gist of the present invention will be specifically described below with reference to the embodiment shown in FIG.

第1図は本発明に係る一実施例を示す磁気ディスク制
御装置のブロック図を示す。尚全図を通じて同一符号は
同一対象物を示す。
FIG. 1 is a block diagram of a magnetic disk control device showing an embodiment according to the present invention. The same reference numerals denote the same objects throughout the drawings.

シフトレジスタ14は各種ID部a(例えば、ID部a容量
が4バイト,6バイト等がある)の最大容量より大きい容
量(例えば,8バイト)に対応出来る段数を持つものとす
る。又、シフトレジスタ14の出力リードは各種ID部aに
対応するバイト数に相当する出力を取出せるようになっ
ている。
It is assumed that the shift register 14 has a number of stages that can accommodate a capacity (for example, 8 bytes) larger than the maximum capacity of various ID sections a (for example, the capacity of the ID section a is 4 bytes, 6 bytes, etc.). Further, the output read of the shift register 14 can take out the output corresponding to the number of bytes corresponding to various ID parts a.

MPX13はシフトレジスタ14からの複数の出力リードを
レジスタ15にMPU4より格納され、出力するデータに応じ
て切換え、1つの出力リードを選択し出力する。
The MPX 13 stores a plurality of output leads from the shift register 14 in the register 15 by the MPU 4, switches them according to the data to be output, selects one output lead and outputs it.

尚、レジスタ15はMPU4で指定する電源投入時にデバイ
スの特定レコードをリードして得られたフオーマット制
御用のIDバイト数を格納している。又、シフトレジスタ
14もMPU4で指定する最大のIDバイト数を予め初期セット
しているものとする。
The register 15 stores the number of ID bytes for format control, which is obtained by reading a specific record of the device when the power supply specified by the MPU 4 is turned on. Also, shift register
14 also assumes that the maximum number of ID bytes specified by MPU4 has been initially set.

データ比較回路6は、レジスタ15の出力データに応じ
て切換え、1つの出力リードを選択したMPX13の出力デ
ータと、磁気ディスク装置2から転送され、シリアル/
パラレル変換回路7で変換したパラレルリードデータと
を比較すると共にデータ内容を確認する。
The data comparison circuit 6 is switched according to the output data of the register 15 and the output data of the MPX13 in which one output lead is selected and the data transferred from the magnetic disk device 2 are serial / serial.
The parallel read data converted by the parallel conversion circuit 7 is compared and the data content is confirmed.

比較内容が一致すると論理積回路8に一致信号を出力
し、ID部信号との論理積条件を取りJ-K・F.F回路9に一
致信号をセットする。フォーマット制御回路11はJ-K・
F.F回路9にセットした信号により、次の動作の制御を
行う。
When the comparison contents match, a coincidence signal is output to the AND circuit 8, the condition of the AND with the ID part signal is taken, and the coincidence signal is set in the JK / FF circuit 9. Format control circuit 11 is JK
The signal set in the FF circuit 9 controls the next operation.

上述のような本発明を実施した場合、ID部aのバイト
数とIDバッファ部5の出力バイト数とが一致するため、
IDバッファ部5への余分のセット動作を行う必要がな
く、従ってID部aの処理時間を短縮することが可能とな
る。
When the present invention as described above is carried out, the number of bytes of the ID section a and the number of output bytes of the ID buffer section 5 match,
It is not necessary to perform an extra setting operation to the ID buffer unit 5, so that the processing time of the ID unit a can be shortened.

〔発明の効果〕〔The invention's effect〕

以上のような本発明によれば、各種ID部サイズのもの
を1つの磁気ディスク制御装置で制御出来ると言う効果
がある。
According to the present invention as described above, it is possible to control various ID section sizes with one magnetic disk controller.

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

第1図は本発明に係る一実施例を示す磁気ディスク制御
装置のブロック図、 第2図は従来の磁気ディスク制御装置の構成を示すブロ
ック図、 第3図はレコードの構成図、 をそれぞれ示す。 図において、 1は磁気ディスク制御装置、 2は磁気ディスク装置、3はデータバッファ部、 4はMPU、5はIDバッファ部、 6はデータ比較回路、 7はシリアル/パラレル変換回路、 8は論理積回路、9はJ-K・F.F回路、 10はECC回路、 11はフォーマット制御回路、 12,14はシフトレジスタ、 13はMPX、15はレジスタ、 をそれぞれ示す。
FIG. 1 is a block diagram of a magnetic disk controller showing an embodiment according to the present invention, FIG. 2 is a block diagram showing a structure of a conventional magnetic disk controller, and FIG. 3 is a block diagram of a record. . In the figure, 1 is a magnetic disk control device, 2 is a magnetic disk device, 3 is a data buffer unit, 4 is an MPU, 5 is an ID buffer unit, 6 is a data comparison circuit, 7 is a serial / parallel conversion circuit, and 8 is a logical product. Reference numeral 9 is a JK / FF circuit, 10 is an ECC circuit, 11 is a format control circuit, 12 and 14 are shift registers, 13 is MPX, and 15 is a register.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】データの項目を識別し、そのデータの性質
を表示するレコードの識別部、データ部及び前記識別
部、データ部間の所定間隔を取るギャップ部から構成す
る固定長レコードを有する磁気ディスク装置へのデータ
の記録・再生動作を制御し、しかも前記記録・再生動作
の制御は前記固定長レコードの識別部の内容を予め蓄積
している内容と比較し、一致することを確認した後該デ
ータ部へのデータの記録・再生動作を制御する装置にお
いて、 前記識別部内容比較用データを準備し、使用するデータ
のバイト数を該固定長レコードから読取った該識別部の
バイト数に合わせて切り換える機能を持つバッファ手段
を設け、 前記バッファ手段の出力と、該固定長レコードから読取
った該識別部の内容とを比較し、一致することを確認し
た後該磁気ディスク装置の制御を行なうことを特徴とす
る磁気ディスク装置。
1. A magnetic field having a fixed length record comprising an identification part of a record for identifying the item of data and displaying the property of the data, the data part and the identification part, and a gap part having a predetermined interval between the data parts. After controlling the recording / reproducing operation of the data to the disk device, and further comparing the recording / reproducing operation with the contents of the identification part of the fixed-length record and the contents stored in advance, after confirming that they match. An apparatus for controlling the recording / reproducing operation of data in the data part, wherein the identification part content comparison data is prepared, and the number of bytes of the data to be used is adjusted to the number of bytes of the identification part read from the fixed length record. By providing a buffer means having a function of switching the output, the output of the buffer means is compared with the content of the identification part read from the fixed length record, and it is confirmed that they match. Magnetic disk device characterized by controlling the magnetic disk device.
JP59277522A 1984-12-26 1984-12-26 Magnetic disk controller Expired - Lifetime JP2544327B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59277522A JP2544327B2 (en) 1984-12-26 1984-12-26 Magnetic disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59277522A JP2544327B2 (en) 1984-12-26 1984-12-26 Magnetic disk controller

Publications (2)

Publication Number Publication Date
JPS61153879A JPS61153879A (en) 1986-07-12
JP2544327B2 true JP2544327B2 (en) 1996-10-16

Family

ID=17584757

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59277522A Expired - Lifetime JP2544327B2 (en) 1984-12-26 1984-12-26 Magnetic disk controller

Country Status (1)

Country Link
JP (1) JP2544327B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3136036B2 (en) * 1993-11-16 2001-02-19 富士通株式会社 Control method of disk controller

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60122424A (en) * 1983-12-06 1985-06-29 Mitsubishi Electric Corp Control system of disc device

Also Published As

Publication number Publication date
JPS61153879A (en) 1986-07-12

Similar Documents

Publication Publication Date Title
US5384669A (en) Combining small records into a single record block for recording on a record media
US5414570A (en) Tape marks recorded in user data blocks having identifications of the recorded tape marks
KR900004758B1 (en) Mass storage disk drive deefective media handling
JPH0378649B2 (en)
US5084789A (en) "Parallel transfer type disk system"
EP0689208A1 (en) Method for block oriented addressing
JPS627572B2 (en)
KR100659915B1 (en) Method and apparatus for transferring data
JP2544327B2 (en) Magnetic disk controller
EP0080878A2 (en) Cache memory and method of control for use with magnetic disks
US4647991A (en) Disk channel controller
JP2852935B2 (en) Information playback device
JPS6095762A (en) Magnetic disc controller
JPS6246468A (en) Disk memory device
JPS63306567A (en) Rotary type storage device
JPS6358668A (en) Access controller for magnetic recording/reproducing device
JPH0628779A (en) Method for recording and controlling data in disk device
JPS63255888A (en) File device
JPS58225464A (en) Subsystem of external storage
JPH02270163A (en) Magnetic disk device
JPS6247735A (en) Controller for external memory device
JPH04322341A (en) Disk cache controller
JPS59157813A (en) Controller for magnetic memory of rotor
JPH0594672A (en) Information recording and reproducing device
JPH03176868A (en) Magnetic disk controller