JPH0241763B2 - - Google Patents
Info
- Publication number
- JPH0241763B2 JPH0241763B2 JP58162669A JP16266983A JPH0241763B2 JP H0241763 B2 JPH0241763 B2 JP H0241763B2 JP 58162669 A JP58162669 A JP 58162669A JP 16266983 A JP16266983 A JP 16266983A JP H0241763 B2 JPH0241763 B2 JP H0241763B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- magnetic disk
- circuit
- control signal
- disk device
- 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
Links
- 238000001514 detection method Methods 0.000 description 3
- 238000007792 addition Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000000034 method Methods 0.000 description 1
Landscapes
- Detection And Correction Of Errors (AREA)
Description
【発明の詳細な説明】
「産業上の利用分野」
本発明はCPUと外部記憶装置としての磁気デ
イスク装置との間でデータの転送を行わせるため
に用いられる磁気デイスク制御装置に関する。DETAILED DESCRIPTION OF THE INVENTION "Field of Industrial Application" The present invention relates to a magnetic disk control device used for transferring data between a CPU and a magnetic disk device as an external storage device.
「従来の技術」
CPU(中央処理装置)の処理するデータと磁気
デイスク装置の処理するデータとはそれらのデー
タ形式が異なつているのが通常である。例えば
CPUはパラレルなデータを処理するのに対して、
磁気デイスク装置の読み書きするデータは通常シ
リアルなデータである。また、磁気デイスク装置
に書き込まれるデータには、エラー検出用のチエ
ツクビツトが付加されていることを多い。更にま
た、CPUと磁気デイスク装置ではデータの処理
速度が異なつているのが通常である。このような
ことから、両装置間でデータの転送を行うための
装置として磁気デイスク制御装置が用いられる。``Prior Art'' Normally, data processed by a CPU (central processing unit) and data processed by a magnetic disk device have different data formats. for example
While the CPU processes parallel data,
Data read and written by a magnetic disk device is usually serial data. Furthermore, check bits for error detection are often added to data written to magnetic disk drives. Furthermore, the data processing speeds of a CPU and a magnetic disk device are usually different. For this reason, a magnetic disk control device is used as a device for transferring data between the two devices.
第1図は従来使用された磁気デイスク制御装置
の一般的な構成を表わしたものである。CPUに
よつて作成されたバイトパラレルなデータD1
は、バツフア回路11に蓄えられる。シリアル回
路12はバツフア回路11から出力されるデータ
D2をビツトシリアルなデータD3に変換する。 FIG. 1 shows the general configuration of a conventionally used magnetic disk control device. Byte parallel data D1 created by CPU
is stored in the buffer circuit 11. The serial circuit 12 converts the data D2 output from the buffer circuit 11 into bit-serial data D3.
このデータD3は、第1および第2の選択回路
13,14に入力される。第1の選択回路13
は、磁気デイスク装置15から読み出されたデー
タD4と前記したデータD3とを入力するように
なつている。磁気デイスク装置15への書き込み
時には、タイミング発生回路16から供給される
読み書き制御信号17によつてデータD3が選択
され、CRC発生回路18に送られる。 This data D3 is input to the first and second selection circuits 13 and 14. First selection circuit 13
is adapted to input data D4 read from the magnetic disk device 15 and the above-mentioned data D3. When writing to the magnetic disk device 15, data D3 is selected by the read/write control signal 17 supplied from the timing generation circuit 16 and sent to the CRC generation circuit 18.
ところでデータD1はカウンタ回路19にも供
給される。カウンタ回路19は、磁気デイスク装
置15に書き込むための一まとまりのデータの供
給が開始された段階で、計数動作を開始する。計
数値を表わした計数値信号21はデコーダ22で
解読され、CRC発生回路制御信号23および選
択回路制御信号24が作成される。 Incidentally, the data D1 is also supplied to the counter circuit 19. The counter circuit 19 starts counting operation at the stage when the supply of a batch of data to be written to the magnetic disk device 15 is started. A count value signal 21 representing a count value is decoded by a decoder 22, and a CRC generation circuit control signal 23 and a selection circuit control signal 24 are generated.
CRC発生回路制御信号23はCRC発生回路1
8に供給され、チエツクビツトの付加されたデー
タD5の作成が行われる。データD5は第2の選
択回路14に供給される。選択回路制御信号24
は第2の選択回路14に供給され、データD3と
データD5の切り分けのための制御に用いられ
る。第2の選択回路14から出力されるデータD
6が磁気デイスク装置15に書き込まれる。 CRC generation circuit control signal 23 is CRC generation circuit 1
8, and data D5 with check bits added thereto is created. Data D5 is supplied to the second selection circuit 14. Selection circuit control signal 24
is supplied to the second selection circuit 14 and used for control for separating data D3 and data D5. Data D output from the second selection circuit 14
6 is written to the magnetic disk device 15.
一方、磁気デイスク装置15から読み出される
データD4はシリアル回路12に供給され、ここ
でバイトパラレルなデータD7に変換される。同
期検出回路26は、データD7が同期マークを構
成しているときこれを検出し、マーク検出信号2
7をタイミング発生回路16に供給する。タイミ
ング発生回路16はこれと共に各部の制御を開始
し、CPUへの情報転送を開始させる。すなわち
データD7はバツフア回路28に一時的に蓄えら
れた後、データD8としてCPUに送られる。こ
のようにして送り出されたデータD8の基となる
データD4は、第1の選択回路13を経てCRC
発生回路18に供給され、ここで誤りの有無をチ
エツクされる。 On the other hand, data D4 read from the magnetic disk device 15 is supplied to the serial circuit 12, where it is converted into byte-parallel data D7. The synchronization detection circuit 26 detects when the data D7 constitutes a synchronization mark, and outputs the mark detection signal 2.
7 is supplied to the timing generation circuit 16. At the same time, the timing generation circuit 16 starts controlling each section and starts information transfer to the CPU. That is, data D7 is temporarily stored in the buffer circuit 28 and then sent to the CPU as data D8. The data D4, which is the basis of the data D8 sent out in this way, passes through the first selection circuit 13 and then passes through the CRC
The signal is supplied to the generating circuit 18, where it is checked for errors.
このようにCPUと磁気デイスク装置との間で
データの転送速度が異なるために、従来の磁気デ
イスク制御装置ではカウンタ回路19およびデコ
ーダ22を設けて、所定の長さのデータD1に対
してチエツクビツトを付加するたものタイミング
同期を行つていた。これらの回路はカウント値や
デコード値を設定するための回路部分を含んでお
り、論理素子等を多く用いるため磁気デイスク制
御装置自体が高価となるという欠点があつた。ま
た、磁気デイスク制御装置自体に汎用性がなく、
新たな仕様の磁気デイスク装置をCPUに接続す
るときには、磁気デイスク制御装置を新しく設計
しなおさなければならないという問題もあつた。 Because the data transfer speeds differ between the CPU and the magnetic disk device, conventional magnetic disk control devices are provided with a counter circuit 19 and a decoder 22 to check bits for a predetermined length of data D1. I was synchronizing the timing of the additions. These circuits include circuit parts for setting count values and decode values, and have the disadvantage that the magnetic disk control device itself becomes expensive because it uses many logic elements and the like. In addition, the magnetic disk control device itself is not versatile;
When connecting a magnetic disk device with new specifications to the CPU, there was also the problem that the magnetic disk control device had to be redesigned.
「発明の目的」
本発明はこのような事情に鑑み、装置が簡略化
され、かつ新たな磁気デイスク装置にも容易に対
処することのできる磁気デイスク制御装置を提供
することをその目的とする。OBJECTS OF THE INVENTION In view of the above circumstances, it is an object of the present invention to provide a magnetic disk control device that is simplified and can be easily adapted to new magnetic disk devices.
「発明の構成」
本発明では、マイクロプログラムによつて制御
される中央処理装置から出力されるチエツクビツ
ト付加用の制御信号(タイミング信号)を一時的
に格納する格納手段と、この格納結果を前記した
中央処理装置から同じく出力される記憶用のデー
タと同期して書き込むFIFOメモリと、磁気デイ
スク装置の動作クロツクに同期してこのFIFOメ
モリに書き込まれたデータおよび制御信号を読み
出す読出手段と、読み出された制御信号を用いて
データにチエツクビツトを付加するチエツクビツ
ト付加手段とを磁気デイスク制御装置に具備させ
る。``Structure of the Invention'' The present invention includes a storage means for temporarily storing a control signal (timing signal) for adding check bits output from a central processing unit controlled by a microprogram, and a storage means for temporarily storing the control signal (timing signal) for adding a check bit, and the storage result as described above. A FIFO memory for writing in synchronization with storage data also output from the central processing unit, a reading means for reading out the data and control signals written to the FIFO memory in synchronization with the operating clock of the magnetic disk device, and The magnetic disk control device is provided with a check bit adding means for adding check bits to data using the received control signal.
そして、チエツクビツト付加用の制御信号を用
いて、カウンタやデコーダを必要とすることなく
チエツクビツトの付加されたデータを作成し、こ
のデータを磁気デイスク装置の動作クロツクに同
期して外部記憶装置に書き込ませる。 Then, using the check bit addition control signal, data with check bits added is created without the need for a counter or decoder, and this data is written to an external storage device in synchronization with the operating clock of the magnetic disk device. .
「実施例」 以下実施例につき本発明を詳細に説明する。"Example" The present invention will be explained in detail with reference to Examples below.
第2図は、本実施例の磁気デイスク制御装置を
表わしたものである。第1図と同一部分には同一
の符号を付し、それらの部分の説明を省略する。 FIG. 2 shows the magnetic disk control device of this embodiment. Components that are the same as those in FIG. 1 are given the same reference numerals, and explanations of those components will be omitted.
ところでCPUは、一般にマイクロプログラム
によつて制御されている。CPUからはバイトパ
ラレルな可変長のデータD1(第3図aのDo〜
D0)と、チエツクビツト付加用の制御信号D1
1がこの磁気デイスク制御装置に供給されてく
る。このうち後者の制市信号D11はパラレルな
2ビツトの信号であり、このうちの一方の信号は
可変長のデータD1の区間を表わしている。ま
た、他方の信号はCRC付加のためのタイミング
を表わしている。これらの制御信号D11は、第
1のラツチ回路31に供給される。 By the way, the CPU is generally controlled by a microprogram. From the CPU, byte-parallel variable length data D1 (D o ~
D 0 ) and a control signal D1 for adding check bits.
1 is supplied to this magnetic disk controller. Of these, the latter control signal D11 is a parallel 2-bit signal, one of which represents a section of variable length data D1. Moreover, the other signal represents the timing for adding CRC. These control signals D11 are supplied to the first latch circuit 31.
第1のラツチ回路31は、例えば並列に配置さ
れた2つのD・フリツプフロツプで構成されてお
り、パラレルな2ビツトの制御用データD11を
それぞれラツチする。第1のラツチ回路31のラ
ツチ出力34はパラレな2ビツトの信号であり、
前記した可変長のデータD1の区間を表わしたラ
ツチ出力34A(第3図b)とCRC付加のための
タイミングを表わしたラツチ出力34Bとがバイ
トパラレルなデータD1(第3図aのDo〜D0)
と共にバツフア回路33に供給される。 The first latch circuit 31 is composed of, for example, two D flip-flops arranged in parallel, and each latches parallel 2-bit control data D11. The latch output 34 of the first latch circuit 31 is a parallel 2-bit signal,
The latch output 34A (FIG. 3b) representing the section of the variable length data D1 described above and the latch output 34B representing the timing for adding CRC are byte-parallel data D1 (D o to D in FIG. 3A). D0 )
It is also supplied to the buffer circuit 33.
制御信号D11をラツチ回路31に一度ラツチ
させてからラツチ出力34としてバツフア回路3
3に供給することにしたのは、CPUの異なつた
部分で作成されたデータD1と制御信号D11の
間の時間軸上のずれをバツフア回路33の入力側
で補正し、両者のタイミングを正確に一致させる
ようにするためである。バツフア回路33は、デ
ータD1とラツチ出力34とを同時にパラレルに
入力するFIFO(FIRST IN FIRST OUT)メモ
リによつて構成されている。 The control signal D11 is once latched by the latch circuit 31 and then output as the latch output 34 to the buffer circuit 3.
The reason why we decided to supply the data to the control signal D11 is to correct the time axis deviation between the data D1 and the control signal D11 created in different parts of the CPU on the input side of the buffer circuit 33, so that the timing of both can be accurately adjusted. This is to make them match. The buffer circuit 33 is constituted by a FIFO (FIRST IN FIRST OUT) memory that inputs the data D1 and the latch output 34 simultaneously in parallel.
バツフア回路33は磁気デイスク装置15への
データの書込速度に同期してデータD2(第3図
d)および2種類の制御信号35A,35B(第
3図e,f)を出力する。これらパラレルな2ビ
ツトの制御信号35A,35Bは、タイミング発
生回路16から出力されるタイミング制御信号3
7によつて第2のラツチ回路38にラツチされ
る。 The buffer circuit 33 outputs data D2 (FIG. 3d) and two types of control signals 35A and 35B (FIG. 3e and f) in synchronization with the data writing speed to the magnetic disk device 15. These parallel 2-bit control signals 35A and 35B are the timing control signal 3 output from the timing generation circuit 16.
7 into the second latch circuit 38.
第2のラツチ回路38も第1のラツチ回路31
と同一の回路構成をしている。バツフア回路33
から出力された2種類の制御信号35A,35B
をラツチすることにしたのは、バツフア回路33
内の独立した回路を経てそれぞれ出力された信号
間での時間軸上でのずれを補正して、これらのタ
イミングを完全に一致させるためである。したが
つて、データD2がシリアル回路12に入力され
るタイミングと、2種類の制御信号35A,35
Bがラツチ回路38にラツチされるタイミングは
正確に一致することになる。 The second latch circuit 38 is also the same as the first latch circuit 31.
It has the same circuit configuration as . Buffer circuit 33
Two types of control signals 35A and 35B output from
It was decided to latch the buffer circuit 33.
This is to correct the deviation on the time axis between the signals outputted through independent circuits within the circuit, so that their timings completely match. Therefore, the timing at which data D2 is input to the serial circuit 12 and the two types of control signals 35A, 35
The timing at which B is latched by the latch circuit 38 will be exactly the same.
シリアル回路12に供給されたデータD2は、
シリアルなデータD3(第3図g)に変換され
る。第3図hは、このシリアル変換後のデータを
表わし、第3図iはこのシリアル変換後のデータ
D3の詳細を表わしたものである。 The data D2 supplied to the serial circuit 12 is
It is converted into serial data D3 (Fig. 3g). FIG. 3h shows the data after this serial conversion, and FIG. 3i shows the details of the data D3 after this serial conversion.
第2のラツチ回路38では制御信号35のラツ
チ出力として、シリアルなデータD3とタイミン
グが正確に一致したCRC発生回路制御信号23
(第3図k)および選択回路制御信号24(第3
図j)をそれぞれ出力する。これらによつて
CRC発生回路18および第2の選択回路14が
制御され、データD6(第3図l)が磁気デイス
ク装置15に書き込まれる。 The second latch circuit 38 outputs the CRC generation circuit control signal 23 whose timing accurately matches the serial data D3 as a latch output of the control signal 35.
(Fig. 3k) and selection circuit control signal 24 (Fig. 3k)
Figure j) is output respectively. By these
The CRC generation circuit 18 and the second selection circuit 14 are controlled, and data D6 (FIG. 3l) is written to the magnetic disk device 15.
磁気デイスク装置15からデータの読み出しを
行う回路動作は、第1図に示した従来例と同様で
ある。 The circuit operation for reading data from the magnetic disk device 15 is similar to the conventional example shown in FIG.
「発明の効果」
以上説明したように本発明によれば、磁気デイ
スク装置の所定のセクタに記憶させるデータの量
を予め知つている中央処理装置側が、その量とセ
クタにおける残りの容量との関係でチエツクビツ
トを付加する割合を定めて、これをチエツクビツ
ト付加用のタイミングを表わした制御信号として
出力し、チエツクビツトを付加するものであるか
ら、チエツクビツトに割り当てうる記憶容量との
関係で該当するセクタを有効に使用することがで
き、データのチエツクの信頼性も最大限に向上さ
せることができる。もちろん、従来の磁気デイス
ク制御装置でも中央処理装置から所定のセクタに
記憶させるデータの量の通知を受けてチエツクビ
ツトに割り当てることのできる容量を計算し、こ
れに応じてチエツクビツトを付加することは可能
である。しかしながら、このためには磁気デイス
ク制御装置側に演算回路等を配置する必要があ
り、装置が複雑化し高価となる。本発明ではこの
意味で、装置を安価にかつ簡易に製作することが
できるという効果がある。"Effects of the Invention" As explained above, according to the present invention, the central processing unit, which knows in advance the amount of data to be stored in a predetermined sector of a magnetic disk device, can determine the relationship between that amount and the remaining capacity of the sector. The rate at which check bits are added is determined by the check bits, and this is output as a control signal representing the timing for adding check bits.Since the check bits are added, it is necessary to enable the corresponding sector in relation to the storage capacity that can be allocated to the check bits. It can be used to maximize the reliability of data checks. Of course, it is also possible for conventional magnetic disk controllers to receive notification from the central processing unit of the amount of data to be stored in a predetermined sector, calculate the capacity that can be allocated to check bits, and add check bits accordingly. be. However, for this purpose, it is necessary to arrange an arithmetic circuit and the like on the magnetic disk control device side, which makes the device complicated and expensive. In this sense, the present invention has the effect that the device can be manufactured easily and at low cost.
また、本発明ではCPU側と磁気デイスク装置
側の動作クロツクの違いを吸収するために設けた
FIFOメモリにチエツクビツト付加用の制御信号
を記憶用のデータと同期して書き込むことにした
ので、従来必要としたカウンタ回路およびデコー
ダが不要となり、装置が簡略化する。 In addition, in the present invention, a
Since the control signal for adding check bits to the FIFO memory is written in synchronization with the data for storage, the counter circuit and decoder that were conventionally required are no longer required, simplifying the device.
更に本発明では中央処理装置側がチエツクビツ
トの付加されるデータの長さを自由に設定するこ
とができるので、ワードまたはバイド単位の制御
が可能となる。従つて磁気デイスク装置を性能の
良い上位の装置と交換する場合でも、マイクロプ
ログラムを変更するのみでこれが可能となり、ハ
ードウエアの変更を要しない。すなわち融通性お
よび汎用性のある磁気デイスク制御装置を構成す
ることが可能である。 Furthermore, in the present invention, since the central processing unit can freely set the length of data to which check bits are added, control can be performed in units of words or bytes. Therefore, even if a magnetic disk device is to be replaced with a superior device with better performance, this can be done simply by changing the microprogram, and there is no need to change the hardware. In other words, it is possible to construct a flexible and versatile magnetic disk control device.
第1図は従来の磁気デイスク制御装置のブロツ
ク図、第2図は本発明の一実施例における磁気デ
イスク制御装置のブロツク図、第3図はこの実施
例における磁気デイスク制御装置の動作を説明す
るための各種タイミング図である。
15……磁気デイスク装置、18……CRC発
生回路(チエツクビツト付加手段)、31……第
1のラツチ回路、33……バツフア回路(FIFO
メモリ)。
Fig. 1 is a block diagram of a conventional magnetic disk control device, Fig. 2 is a block diagram of a magnetic disk control device in an embodiment of the present invention, and Fig. 3 explains the operation of the magnetic disk control device in this embodiment. FIG. 15...Magnetic disk device, 18...CRC generation circuit (check bit adding means), 31...first latch circuit, 33...buffer circuit (FIFO
memory).
Claims (1)
処理装置から出力されるチエツクビツト付加用の
制御信号を一時的に格納する格納手段と、 この格納結果を前記中央処理装置から同じく出
力される記憶用のデータと同期して書き込む
FIFOメモリと、 磁気デイスク装置の動作クロツクに同期してこ
のFIFOメモリに書き込まれたデータおよび制御
信号を読み出す読出手段と、 読み出された制御信号を用いてデータにチエツ
クビツトを付加するチエツクビツト付加手段とを
備え、 チエツクビツトの付加されたデータを前記磁気
デイスク装置に記憶させることを特徴とする磁気
デイスク制御装置。[Scope of Claims] 1. Storage means for temporarily storing a check bit addition control signal output from a central processing unit controlled by a microprogram; Write in synchronization with storage data
A FIFO memory, a reading means for reading data and control signals written in the FIFO memory in synchronization with an operating clock of a magnetic disk device, and a check bit adding means for adding check bits to data using the read control signals. A magnetic disk control device, comprising: storing data to which a check bit has been added in the magnetic disk device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58162669A JPS6055431A (en) | 1983-09-06 | 1983-09-06 | Magnetic disk controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58162669A JPS6055431A (en) | 1983-09-06 | 1983-09-06 | Magnetic disk controller |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6055431A JPS6055431A (en) | 1985-03-30 |
| JPH0241763B2 true JPH0241763B2 (en) | 1990-09-19 |
Family
ID=15759027
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58162669A Granted JPS6055431A (en) | 1983-09-06 | 1983-09-06 | Magnetic disk controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6055431A (en) |
-
1983
- 1983-09-06 JP JP58162669A patent/JPS6055431A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6055431A (en) | 1985-03-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5056010A (en) | Pointer based DMA controller | |
| US4825403A (en) | Apparatus guaranteeing that a controller in a disk drive system receives at least some data from an invalid track sector | |
| US4612613A (en) | Digital data bus system for connecting a controller and disk drives | |
| US4644545A (en) | Digital encoding and decoding apparatus | |
| US4733366A (en) | Apparatus for providing an interrupt signal in response to a permanent or transient power failure | |
| US4630269A (en) | Methods for diagnosing malfunctions in a disk drive | |
| US4600990A (en) | Apparatus for suspending a reserve operation in a disk drive | |
| JPS62298970A (en) | Sequential buffer | |
| US3787815A (en) | Apparatus for the detection and correction of errors for a rotational storage device | |
| JPH0241763B2 (en) | ||
| JPH07200192A (en) | Optical disk device | |
| JPS60181851A (en) | Partial writing control system | |
| JPH0410096B2 (en) | ||
| JPS5947364B2 (en) | Preamble detection device | |
| JPS584468A (en) | Microprocessor system | |
| JPS6214379A (en) | Magnetic disk device | |
| JPH02136951A (en) | Dma transfer system | |
| JPS5872263A (en) | Data correcting device | |
| JPS6382043A (en) | Burst signal generating circuit | |
| JPH01246651A (en) | Data rewriting device in memory module with ecc mechanism | |
| JPH0332823B2 (en) | ||
| JPH06202819A (en) | Disk device | |
| JPS6326886A (en) | Optical disk controller | |
| JPH04148253A (en) | Memory read/write control system | |
| HU203416B (en) | Method and apparatus for connecting 16-byte microprocessor system with 8-byte modules |