JPH02284251A - Data transfer control system for hard disk - Google Patents

Data transfer control system for hard disk

Info

Publication number
JPH02284251A
JPH02284251A JP10677689A JP10677689A JPH02284251A JP H02284251 A JPH02284251 A JP H02284251A JP 10677689 A JP10677689 A JP 10677689A JP 10677689 A JP10677689 A JP 10677689A JP H02284251 A JPH02284251 A JP H02284251A
Authority
JP
Japan
Prior art keywords
data transfer
buffer memory
hard disk
host computer
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP10677689A
Other languages
Japanese (ja)
Inventor
Yasushi Fukuda
安志 福田
Hitoshi Shimizu
仁 清水
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
NEC Engineering Ltd
Original Assignee
NEC Corp
NEC Engineering 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 NEC Corp, NEC Engineering Ltd filed Critical NEC Corp
Priority to JP10677689A priority Critical patent/JPH02284251A/en
Publication of JPH02284251A publication Critical patent/JPH02284251A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To realize efficient and high-speed data transfer by dividing a buffer memory into, at least, three blocks, and executing the data transfer between a host computer and a hard disk drive while shifting these blocks. CONSTITUTION:The buffer memories 4A, 4B, 4C, a DMA control circuit 5, updown counters 6A, 6B, 6C and a data transfer control circuit 7 are provided, and in the case where data is transferred through the buffer memory 4 from the host computer 1 to the hard disk drive 2 (hard disk controller 3) or in a direction opposite to this, the data transfer is executed while shifting three buffer memory blocks. Thus, the efficient data transfer can be realized.

Description

【発明の詳細な説明】 技術分野 本発明はハードディスクのデータ転送制御方式ホストコ
ンピュータからハードディスクドライブに対して、ある
いはその逆方向に、バッファメモリを介してデータ転送
を行なうハードディスクのデータ転送制御方式としては
、シングルバッファリング方式とダブルバッファリング
方式とがある。
Detailed Description of the Invention Technical Field The present invention is a hard disk data transfer control method that transfers data from a host computer to a hard disk drive or vice versa via a buffer memory. There are a single buffering method and a double buffering method.

ホストコンピュータからノ1−ドディスクドライブに対
するデータ転送を行なう場合、シングルバッファリング
方式においては、ホストコピユータからバッファメモリ
に対してデータ転送を実行し、それが完了してからバッ
フ7メモリからノ\−ドディスクドライブに対してデー
タ転送を実行するようになっている。
When transferring data from the host computer to the node disk drive, in the single buffering method, data is transferred from the host computer to the buffer memory, and after the data transfer is completed, data is transferred from the buffer memory to the node disk drive. - Data transfer is performed to the hard disk drive.

ダブルバッファリング方式においては、バッファメモリ
を2つのブロック(バッファメモリAおよびB)に分離
独立させ、ホストコンピュータからバッファメモリA1
バッファメモリBからハードディスクドライブにそれぞ
れ独立にデータ転送を実行し、バッファメモリAがフル
の状態になり、かつバッファメモリBが空になると、バ
ッファメモリを切替え、ホストコンピュータからバッフ
7メモリB1バッファメモリAからハードディスクドラ
イブにデータ転送を開始する。この動作を繰返し実行す
るようになっている。
In the double buffering method, the buffer memory is separated into two independent blocks (buffer memories A and B), and the buffer memory A1 is connected to the host computer.
Data is transferred from buffer memory B to the hard disk drive independently, and when buffer memory A becomes full and buffer memory B becomes empty, the buffer memory is switched and the host computer transfers data from buffer memory B1 to buffer memory A. Start transferring data to the hard disk drive. This operation is executed repeatedly.

上述した従来のシングルバッファリング方式においては
、一方のデータ転送か完了しないと、他方のデータ転送
が行なえない。
In the conventional single buffering method described above, unless one data transfer is completed, the other data transfer cannot be performed.

また、ダブルバッファリング方式においては、シングル
バッファリング方式に比較して効率の良い転送が行なえ
ても、一方のデータ転送が終了して、他方のデータ転送
が終了しない限り(すなわち、両方のデータ転送が終了
しない限り)、バッファメモリの切替えによって、デー
タ転送の継続ができない。
In addition, in the double buffering method, even if transfer is more efficient than in the single buffering method, unless one data transfer is completed and the other data transfer is not completed (in other words, both data transfers are (unless the process is completed), data transfer cannot be continued by switching the buffer memory.

発明の目的 したがって、本発明の目的は、効率のよいデータ転送が
行なえるハードディスクのデータ転送制御方式を提供す
ることである。
OBJECTS OF THE INVENTION Accordingly, an object of the present invention is to provide a hard disk data transfer control system that allows efficient data transfer.

発明の構成 本発明によれば、コンピュータシステムに接続されるバ
ッファメモリを持ち、ホストコンピュータとハードディ
スクドライブとの間のデータ転送をバッファメモリを介
してダイレクトメモリアクセス方式で行なう際、前記バ
ッファメモリを少なくとも三つのブロックに分離し、前
記少なくとも三つのバッファメモリブロックをシフトさ
せながら、前記データ転送を行なうことを特徴とするハ
ードディスクのデータ転送制御方式が得られる。
According to the present invention, a buffer memory connected to a computer system is provided, and when data transfer between a host computer and a hard disk drive is performed by a direct memory access method via the buffer memory, at least A hard disk data transfer control method is obtained, which is characterized in that the data transfer is performed by dividing the data into three blocks and shifting the at least three buffer memory blocks.

実施例 次に、本発明の一実施例を示した図面を参1!ダシて、
本発明の詳細な説明する。
Embodiment Next, please refer to the drawings showing an embodiment of the present invention! Dashi,
The present invention will be described in detail.

第1図は本発明の一実施例によるデータ転送方式のブロ
ック図である。本実施例においては、ホストコンピュー
タ1からハードディスクドライブ2(ハードディスクコ
ントローラ3)に対して、あるいはその逆方向に、バッ
ファメモリ4を介してデータ転送を行なうが、説明を簡
単にするために、以下の説明においては、ホストコンピ
ュータ1からハードディスクドライブ2(ハードディス
クコントローラ3)に対するライト動作の場合について
述べる。
FIG. 1 is a block diagram of a data transfer system according to an embodiment of the present invention. In this embodiment, data is transferred from the host computer 1 to the hard disk drive 2 (hard disk controller 3) or vice versa via the buffer memory 4, but for the sake of simplicity, the following In the description, a write operation from the host computer 1 to the hard disk drive 2 (hard disk controller 3) will be described.

ホストコンピュータ1からのダイレクトメモリアクセス
(以下、DMAという)要求信号aをDM A IQ 
8回路5に出力し、ホストコンピュータ1からバッファ
メモリ4Aにデータ転送を開始する。
A direct memory access (hereinafter referred to as DMA) request signal a from the host computer 1 is sent to the DMA IQ.
8 circuit 5, and data transfer from host computer 1 to buffer memory 4A is started.

DMA制御回路5からアップダウンカウンタ6Aに入る
アップ信号すによって、ホストコンピュータ1からバッ
ファメモリ4Aへのデータ転送数がカウントされる。カ
ウトタ6Aのカウント値が、バッファメモリ4Aがフル
の状態を表す値になると、データ転送制御部3から三つ
のバッファメモリ4 (4A、4B、4C)に対して、
制御信号Cが出力される。
The number of data transferred from the host computer 1 to the buffer memory 4A is counted by the up signal input from the DMA control circuit 5 to the up/down counter 6A. When the count value of the counter 6A reaches a value indicating that the buffer memory 4A is full, the data transfer control unit 3 sends a message to the three buffer memories 4 (4A, 4B, 4C).
Control signal C is output.

制御信号Cには、バッファメモリ4をホストコンピュー
タ1とつなぐライトイネーブル信号およびハードディス
クコントローラ3とつなぐリードイネーブル信号とがあ
る。この制御信号Cによって、三つのバッファメモリ4
がシフトし、ホストコンピュータ1は空の状態のバッフ
ァメモリ4Bか4C(この場合はバッファメモリ4Bと
する)とデータ転送を実行し、またフルの状態となった
バッファメモリ4Aはハードディスクコントロラ3とデ
ータ転送を実行する。バッファメモリ4Aからハードデ
ィスクコントローラ3へのデータ転送に先立ち、ハード
ディスクコントローラ3から、D M A要求信号dが
出力される。
The control signal C includes a write enable signal that connects the buffer memory 4 to the host computer 1 and a read enable signal that connects the buffer memory 4 to the hard disk controller 3. By this control signal C, the three buffer memories 4
is shifted, the host computer 1 transfers data to the empty buffer memory 4B or 4C (in this case, buffer memory 4B), and the full buffer memory 4A transfers data to the hard disk controller 3. Perform the transfer. Prior to data transfer from the buffer memory 4A to the hard disk controller 3, the hard disk controller 3 outputs a DMA request signal d.

ホストコンピュータ1の転送能力とハードディスクコン
トローラ3の転送能力とに差があるとき、ホストコンピ
ュータ1からバッファメモリ4Bへのデータ転送の方が
早く終了した場合(すなわち、バッファメモリ4Bがフ
ルの状態になる方が早い場合)、三つのバッファメモリ
4に制御信号Cが入力されて池の空の状態あるバッファ
メモリ4Cに対してホストコンピュータ1がデータ転送
を実行する。バッファメモリ4Aからハードディスクコ
ントローラ3へのデータ転送は、そのまま継続される。
When there is a difference between the transfer capacity of the host computer 1 and the transfer capacity of the hard disk controller 3, if the data transfer from the host computer 1 to the buffer memory 4B ends earlier (that is, the buffer memory 4B becomes full). (if it is earlier), the control signal C is input to the three buffer memories 4, and the host computer 1 executes data transfer to the empty buffer memory 4C. Data transfer from the buffer memory 4A to the hard disk controller 3 continues as is.

転送が終了する(バッファメモリ4Aが空の状態になる
)と、三つのバッファメモリ4に制御信号Cが人力され
、フルの状態にあるバッファメモリ4Bからハードディ
スクコントローラ3へのデータ転送が実行される。
When the transfer is completed (the buffer memory 4A becomes empty), the control signal C is manually applied to the three buffer memories 4, and data transfer from the full buffer memory 4B to the hard disk controller 3 is executed. .

ホストコンピュータ1からバッファメモリ4Cへのデー
タ転送が終了しても、まだバッファメモリ4Aからハー
ドディスクコントローラ3へのデータ転送が終了してい
ない場合は、データ転送制御部7からホストコンピュー
タ1へ、ライトマスク信号eを出力してバッファメモリ
への書込を停止し、バッファメモリ4Aからハードディ
スクコントローラ3へのデータ転送が終了するのを待つ
Even if the data transfer from the host computer 1 to the buffer memory 4C is completed, if the data transfer from the buffer memory 4A to the hard disk controller 3 is not yet completed, a write mask is sent from the data transfer control unit 7 to the host computer 1. It outputs the signal e to stop writing to the buffer memory, and waits for the data transfer from the buffer memory 4A to the hard disk controller 3 to be completed.

データ転送が終了すると、ライトマスク信号eをクリア
する。
When the data transfer is completed, the write mask signal e is cleared.

次に、バッファメモリ4Aからハードディスクコントロ
ーラ3へのデータ転送の方が、早く終了した場合、デー
タ転送制御部7からノ1−ドディスクコントローラ3ヘ
リードマスク信号fを出力してバッファメモリ4Bから
の読出しを停止し、ホストコンピュータ1からバッファ
メモリ4Bへのデータ転送が終了するのを待つ。
Next, if the data transfer from the buffer memory 4A to the hard disk controller 3 is completed earlier, the data transfer control unit 7 outputs a read mask signal f to the node disk controller 3 to transfer data from the buffer memory 4B. The reading is stopped and waits for the data transfer from the host computer 1 to the buffer memory 4B to be completed.

データ転送が終了すると、リードマスク信号fをクリア
する。同時に、三つのバッファメモリ4に制御信号Cが
入力され、ホストコンピュータ1からバッファメモリ4
C,バッファメモリ4Bからハードディスクコントロー
ラ3へのデータ転送をそれぞれ実行する。
When the data transfer is completed, the read mask signal f is cleared. At the same time, the control signal C is input to the three buffer memories 4, and the host computer 1 inputs the control signal C to the three buffer memories 4.
C and data transfer from the buffer memory 4B to the hard disk controller 3, respectively.

ホストコンピュータ1からバッファメモリ4へのデータ
転送において、最後のデータがバッファメモリがフルの
状態に達しないで終了した場合、ホストコンピュータ1
からの転送カウント終了信号gを用いて、データ転送制
御部7から三つのバッファメモリ4へ制御信号Cを入力
させ最後のバッファメモリ4からハードディスクコント
ローラ3へのデータ転送を実行する。
When transferring data from the host computer 1 to the buffer memory 4, if the last data ends before the buffer memory reaches a full state, the host computer 1
Using the transfer count end signal g from the data transfer controller 7, the control signal C is inputted to the three buffer memories 4, and data transfer from the last buffer memory 4 to the hard disk controller 3 is executed.

また、転送方向がハードディスクコントローラ3からの
リード動作の場合は、上述した説明の論理条件が相反す
るだけである。
Furthermore, when the transfer direction is a read operation from the hard disk controller 3, the logical conditions described above are simply contradictory.

発明の詳細 な説明したように、本発明によれば、ホストコンピュー
タとハードディスクドライブとの間に設けられたバッフ
ァメモリを少くとも三つのブロックに分割し、それらを
シフトさせながら、ホストコンピュータとハードディス
クドライブとの間のデータ転送を実行することにより、
効率的な高速データ転送が実現できる。
DETAILED DESCRIPTION OF THE INVENTION According to the present invention, the buffer memory provided between the host computer and the hard disk drive is divided into at least three blocks, and while these blocks are shifted, the buffer memory provided between the host computer and the hard disk drive is divided into at least three blocks. By performing data transfer between
Efficient high-speed data transfer can be achieved.

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

第1図は本発明の一実施例のブロック図である。 主要部分の符号の説明 1・・・・・・ホストコンピュータ 2・・・・・・ハードディスクドライブ3・・・・・・
ハードディスクコントローラ4 (4A、4B、4C) ・・・・・データ格納用バッファメモリ5・・・・・D
MA制御回路 出願人 日本電気株式会社(外1名)
FIG. 1 is a block diagram of one embodiment of the present invention. Explanation of symbols of main parts 1...Host computer 2...Hard disk drive 3...
Hard disk controller 4 (4A, 4B, 4C) ... Data storage buffer memory 5 ...D
MA control circuit applicant: NEC Corporation (1 other person)

Claims (1)

【特許請求の範囲】[Claims] (1)コンピュータシステムに接続されるバッファメモ
リを持ち、ホストコンピュータとハードディスクドライ
ブとの間のデータ転送をバッファメモリを介してダイレ
クトメモリアクセス方式で行なう際、前記バッファメモ
リを少なくとも三つのブロックに分離し、前記少なくと
も三つのバッファメモリブロックをシフトさせながら、
前記データ転送を行なうことを特徴とするハードディス
クのデータ転送制御方式。
(1) When having a buffer memory connected to a computer system and performing data transfer between a host computer and a hard disk drive using the direct memory access method via the buffer memory, the buffer memory is divided into at least three blocks. , while shifting the at least three buffer memory blocks;
A data transfer control method for a hard disk, characterized in that the data transfer is performed as described above.
JP10677689A 1989-04-26 1989-04-26 Data transfer control system for hard disk Pending JPH02284251A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10677689A JPH02284251A (en) 1989-04-26 1989-04-26 Data transfer control system for hard disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10677689A JPH02284251A (en) 1989-04-26 1989-04-26 Data transfer control system for hard disk

Publications (1)

Publication Number Publication Date
JPH02284251A true JPH02284251A (en) 1990-11-21

Family

ID=14442307

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10677689A Pending JPH02284251A (en) 1989-04-26 1989-04-26 Data transfer control system for hard disk

Country Status (1)

Country Link
JP (1) JPH02284251A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008192211A (en) * 2007-02-01 2008-08-21 Marvell World Trade Ltd Magnetic disk controller and method
JP2008192209A (en) * 2007-02-01 2008-08-21 Marvell World Trade Ltd Magnetic disk controller and method
JP2008192210A (en) * 2007-02-01 2008-08-21 Marvell World Trade Ltd Magnetic disk controller and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008192211A (en) * 2007-02-01 2008-08-21 Marvell World Trade Ltd Magnetic disk controller and method
JP2008192209A (en) * 2007-02-01 2008-08-21 Marvell World Trade Ltd Magnetic disk controller and method
JP2008192210A (en) * 2007-02-01 2008-08-21 Marvell World Trade Ltd Magnetic disk controller and method

Similar Documents

Publication Publication Date Title
JPH02284251A (en) Data transfer control system for hard disk
JPH04311219A (en) Data backup system
JPH02226454A (en) Computer system and transfer of data
JPS61127026A (en) Optical disk controller
JPS61150055A (en) Dma data transfer system
JPS6368957A (en) Data transfer system in information processor
JPH0222748A (en) Non-volatile memory control circuit
JP2906739B2 (en) Storage device
JPH06348645A (en) Dma circuit
JPS61127025A (en) Optical disk controller
JPS61193230A (en) Magnetic disk controller
JPH0578859B2 (en)
JPH03103958A (en) Peripheral controller
JPS59128621A (en) Controlling device of dma
JPS61285566A (en) Input and output controller
JPS63167948A (en) Computer system
JPH03189755A (en) Inter-memory transfer device
JPH01314350A (en) Ms control system
JPS58101358A (en) Memory controlling system
JPH0520182A (en) Information processing system
JPH02122357A (en) Input/output controller
JPS63211169A (en) Magnetic tape control mechanism
JPH02148125A (en) Magnetic disk controller
JPH05181614A (en) Data saving/restoring device for parallel magnetic disk device and method therefor
JPH05216750A (en) Data processing system