Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2794052B2 - Control device for magnetic disk drive - Google Patents
[go: Go Back, main page]

JP2794052B2 - Control device for magnetic disk drive - Google Patents

Control device for magnetic disk drive

Info

Publication number
JP2794052B2
JP2794052B2 JP2081720A JP8172090A JP2794052B2 JP 2794052 B2 JP2794052 B2 JP 2794052B2 JP 2081720 A JP2081720 A JP 2081720A JP 8172090 A JP8172090 A JP 8172090A JP 2794052 B2 JP2794052 B2 JP 2794052B2
Authority
JP
Japan
Prior art keywords
magnetic disk
fifo buffer
data
speed
capacity
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 - Fee Related
Application number
JP2081720A
Other languages
Japanese (ja)
Other versions
JPH03280124A (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.)
ADOBANTESUTO KK
Original Assignee
ADOBANTESUTO KK
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 ADOBANTESUTO KK filed Critical ADOBANTESUTO KK
Priority to JP2081720A priority Critical patent/JP2794052B2/en
Publication of JPH03280124A publication Critical patent/JPH03280124A/en
Application granted granted Critical
Publication of JP2794052B2 publication Critical patent/JP2794052B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 「産業上の利用分野」 この発明は磁気デイスク装置に対し、データを書込み
又はそのデータを読出す制御装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a controller for writing data to or reading data from a magnetic disk device.

「従来の技術」 従来この種の制御装置においては、中央処理装置(CP
U)などのメモリは磁気デイスクが使用可能となってい
ない場合があるが、磁気デイスク側は定回転数で定レー
トのデータを書込み/読出すことが必要である。そのた
め第3図に示すようにメモリ11と磁気デイスク装置12と
の間にFiFo(First in First out)と呼ばれるバッファ
13が介在され、書込み時にはメモリ11から書込みデータ
が間欠的にFiFoバッファ13に送られ、そのFiFoのバッフ
ァ13にデータが満された後、FiFoバッファ13からデータ
を連続的に磁気デイスク装置12へ送って書込みを行う。
読出し時には磁気デイスク装置12から連続的に読出され
たデータがFiFoバッファ13に格納され、FiFoバッファ13
から間欠的にメモリ11へ転送される。例えば磁気デイス
ク装置12の書込み速度が、メモリ11及びFiFoバッファ13
間のデータ転送速度の1.5倍速い時に、1.5Mバイトのデ
ータを磁気デイスク装置12へ書込むには、0.5Mバイト分
のデータ不足が生じるから、0.5Mバイト分のデータをFi
Foバッファ13に予め先取りした後に、FiFoバッファ13か
ら磁気デイスク装置12へ書込データを転送する。
"Conventional technology" Conventionally, in this type of control device, a central processing unit (CP
A memory such as U) may not be able to use a magnetic disk, but the magnetic disk needs to write / read data at a constant rate at a constant rotation speed. Therefore, a buffer called FiFo (First in First out) is provided between the memory 11 and the magnetic disk device 12 as shown in FIG.
13 is interposed, and at the time of writing, write data is intermittently sent from the memory 11 to the FiFo buffer 13, and after the buffer 13 of the FiFo is filled with data, the data is continuously transferred from the FiFo buffer 13 to the magnetic disk device 12. Send and write.
At the time of reading, data continuously read from the magnetic disk device 12 is stored in the FiFo buffer
Is transferred to the memory 11 intermittently. For example, the writing speed of the magnetic disk device 12 is
In order to write 1.5 Mbytes of data to the magnetic disk device 12 when the data transfer speed is 1.5 times faster than the data transfer speed between the two, there is a shortage of 0.5 Mbytes of data.
After prefetching in advance to the Fo buffer 13, the write data is transferred from the FiFo buffer 13 to the magnetic disk device 12.

「発明が解決しようとする課題」 従来においてはメモリ11から磁気デイスク装置12へ1
回の転送で書込むデータが最大量の時に、データ不足が
生ずるデータ量をFiFoバッファ13の容量としていた。Fi
Foバッファ13はデータが満された後に、データを磁気デ
イスク装置12へ送るため、1回の転送量が少ない書込み
データの場合は、その転送には不要の分までデータの先
取りを行い、FiFoバッファ13が満杯となるのに時間がか
かり、磁気デイスク装置12に対する書込みが遅れる問題
があった。
[Problem to be Solved by the Invention] Conventionally, the memory 11 is transferred from the memory 11 to the magnetic disk device 12.
When the amount of data to be written in each transfer is the maximum amount, the data amount at which data shortage occurs is determined as the capacity of the FiFo buffer 13. Fi
Since the Fo buffer 13 sends the data to the magnetic disk device 12 after the data is full, in the case of write data with a small transfer amount at one time, the data is prefetched to an unnecessary amount for the transfer and the FiFo buffer There is a problem that it takes time for the disk 13 to become full and writing to the magnetic disk device 12 is delayed.

「課題を解決するための手段」 この発明による磁気ディスク装置は、CPUから1回の
転送データ量Mのデータが速度ViでFiFoバッファに送ら
れて、FiFoバッファが満杯になったら、そのFiFoバッフ
ァの出力データを、速度Viよりも早い速度Voで磁気ディ
スクに書込む磁気ディスク装置の制御装置において、 上記FiFoバッファの自体の物理的容量Noが、1回の最
大転送データ量Mmと速度Viと速度Voで決まる不足量Nm=
Mm(1−Vi/Vo)よりも少なくとも大に選定され、 1回の転送データ量M(M<Mm)に対し、上記FiFoバ
ッファの使用容量Nを、 N=M(1−Vi/Vo)に選定する容量設定手段が設け
られている。
[Means for Solving the Problems] In the magnetic disk drive according to the present invention, when data of one transfer data amount M is sent from the CPU to the FiFo buffer at the speed Vi and the FiFo buffer becomes full, In the control device of a magnetic disk drive that writes the output data of the FiFo buffer to the magnetic disk at a speed Vo higher than the speed Vi, the physical capacity No of the FiFo buffer itself is determined by the maximum transfer data amount Mm and the speed Vi at one time. Shortage Nm determined by speed Vo =
Mm (1-Vi / Vo) is selected at least larger than Mm (1-Vi / Vo). For one transfer data amount M (M <Mm), the used capacity N of the FiFo buffer is calculated as follows: N = M (1-Vi / Vo) Is provided.

「実施例」 第1図にこの発明の実施例を示す。第1図に示すよう
にメモリ11と磁気ディスク装置12との間に、この発明で
は可変容量FiFoバッファ14が介在される。メモリ11より
磁気デイスク装置12へデータを転送する際にその転送
量、例えば転送ブロック数がCPU15からデイスク制御装
置16のマイクロプロセッサ17へ送られ、マイクロプロセ
ッサ17はその入力された転送量のN%を演算して、その
演算結果を可変容量FiFoバッファ14の容量とする。この
Nは、メモリ11からFiFoバッファ14へのデータチャネル
速度Viと、磁気ディスク装置12の書込み/読出し速度Vo
とから、(1−Vi/Vo)×100として算出される。
FIG. 1 shows an embodiment of the present invention. As shown in FIG. 1, a variable capacity FiFo buffer 14 is interposed between the memory 11 and the magnetic disk device 12 in the present invention. When data is transferred from the memory 11 to the magnetic disk device 12, the transfer amount, for example, the number of transfer blocks, is sent from the CPU 15 to the microprocessor 17 of the disk control device 16, and the microprocessor 17 stores N% of the input transfer amount. Is calculated, and the calculation result is set as the capacity of the variable capacity FiFo buffer 14. This N is the data channel speed Vi from the memory 11 to the FiFo buffer 14, and the write / read speed Vo of the magnetic disk device 12.
From this, it is calculated as (1−Vi / Vo) × 100.

可変容量FiFoバッファ14は例えば第2図に示すように
構成される。端子18からの書込み指令が書込みアドレス
カウンタ19で計数され、また端子21からの読出し指令が
読出しアドレスカウンタ22で計数される。端子18からの
書込み指令及び端子21からの読出し指令は競合調整回路
23にも供給され、両指令が競合した時は一方が遅延さ
れ、競合しない時はその入力された指令に応じてマルチ
プレクサ24が制御されて、書込みアドレスカウンタ19又
は読出しアドレスカウンタ22の出力が選択されてアドレ
スとしてRAM25へ供給され、書込み指令の時はその時の
書込みアドレスカウンタ19よりのアドレスでRAM25に書
込みデータ(メモリ11よりのデータ)が書込まれ、読出
し指令の時はその時の読出しアドレスカウンタ22よりの
アドレスでRAM25が読出されて、その読出されたデータ
が磁気デイスク装置12へ送られる。マイクロプロセッサ
17で転送量のN%が演算され、その演算結果が容量レジ
スタ26に設定される。書込みアドレスカウンタ19の出力
アドレスと、読出しアドレスカウンタ22の出力アドレス
との差が引算器27でとられ、その差と容量レジスタ26の
内容とが比較器28で比較され、両者が一致すると、その
一致出力がマイクロプロセッサ17へ供給され、マイクロ
プロセッサ17は設定した容量にFiFoバッファ14が満杯に
なったと判定して、FiFoバッファ14、つまりRAM25の読
出しを開始させる。この開始までは読出しアドレスカウ
ンタ22は計数が行われず、一定値のままであり、RAM25
に対する書込みだけが行われる。
The variable capacity FiFo buffer 14 is configured, for example, as shown in FIG. The write command from the terminal 18 is counted by the write address counter 19, and the read command from the terminal 21 is counted by the read address counter 22. Write command from terminal 18 and read command from terminal 21
When the two commands conflict, one is delayed. When the two commands do not conflict, the multiplexer 24 is controlled in accordance with the input command, and the output of the write address counter 19 or the read address counter 22 is selected. The data is supplied to the RAM 25 as an address. When a write command is issued, write data (data from the memory 11) is written into the RAM 25 at the address from the write address counter 19 at that time, and when a read command is issued, the read address counter at that time is written. The RAM 25 is read from the address 22, and the read data is sent to the magnetic disk device 12. Microprocessor
At 17, N% of the transfer amount is calculated, and the calculation result is set in the capacity register 26. The difference between the output address of the write address counter 19 and the output address of the read address counter 22 is calculated by a subtracter 27, and the difference is compared with the content of a capacitance register 26 by a comparator 28. The coincidence output is supplied to the microprocessor 17, and the microprocessor 17 determines that the FiFo buffer 14 is full to the set capacity, and starts reading the FiFo buffer 14, that is, the RAM 25. Until this start, the read address counter 22 does not perform counting and remains at a constant value.
Is written only.

このようにして入力された転送量に応じた量(N%)
だけ先取りすると、FiFoバッファ14の読出しが開始され
る。従って転送量が多い場合は、容量レジスタ26に格納
される容量値が大きくなり、FiFoバッファ14の容量が拡
張され、転送量が少ない場合はFiFoバッファ14の容量が
縮少する。
Amount (N%) according to the transfer amount input in this way
When only the prefetching is performed, the reading of the FiFo buffer 14 is started. Therefore, when the transfer amount is large, the capacity value stored in the capacity register 26 increases, and the capacity of the FiFo buffer 14 is expanded. When the transfer amount is small, the capacity of the FiFo buffer 14 decreases.

「発明の効果」 以上述べたようにこの発明によれば磁気デイスク装置
に対する1回の転送量に応じてFiFoバッファの容量が変
更され、FiFoバッファ14でのデータ先取り量が転送量に
対して適正化され、少ない転送量の場合に、磁気デイス
ク装置12への書込みが遅れることがなく、従来より書込
みを速く行うことができ、逆に多い転送量の場合に、デ
ータ不足が生じることはない。
[Effects of the Invention] As described above, according to the present invention, the capacity of the FiFo buffer is changed in accordance with the amount of one transfer to the magnetic disk device, and the amount of data prefetching in the FiFo buffer 14 is appropriate for the amount of transfer. In the case of a small transfer amount, writing to the magnetic disk device 12 is not delayed, and writing can be performed faster than in the past. Conversely, in the case of a large transfer amount, data shortage does not occur.

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

第1図はこの発明の実施例を示すブロック図、第2図は
その容量可変FiFoバッファ14の具体例を示すブロック
図、第3図は従来の磁気デイスク装置の制御装置を示す
ブロック図である。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a block diagram showing a specific example of the variable capacity FiFo buffer 14, and FIG. 3 is a block diagram showing a control device of a conventional magnetic disk device. .

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】CPUから1回の転送データ量Mのデータが
速度ViでFiFoバッファに送られて、FiFoバッファが満杯
になったら、そのFiFoバッファの出力データを、速度Vi
よりも早い速度Voで磁気ディスクに書込む磁気ディスク
装置の制御装置において、 上記FiFoバッファの自体の物理的容量Noが、1回の最大
転送データ量Mmと速度Viと速度Voで決まる不足量Nm=Mm
(1−Vi/Vo)よりも少なくとも大に選定され、 1回の転送データ量M(M<Mm)に対し、上記FiFoバッ
ファの使用容量Nを、 N=M(1−Vi/Vo)に選定する容量設定手段が設けら
れていることを特徴とする磁気ディスク装置の制御装
置。
1. When data of a transfer data amount M is sent from a CPU to a FiFo buffer at a speed Vi, and when the FiFo buffer becomes full, output data of the FiFo buffer is transmitted at a speed Vi.
In the control device of the magnetic disk drive for writing to the magnetic disk at a faster speed Vo, the physical capacity No of the FiFo buffer itself is a shortage Nm determined by the maximum transfer data amount Mm, the speed Vi and the speed Vo at one time. = Mm
(1−Vi / Vo) is selected to be at least larger than the above. For one transfer data amount M (M <Mm), the used capacity N of the FiFo buffer is set to N = M (1−Vi / Vo). A control device for a magnetic disk drive, comprising a capacity setting means for selection.
JP2081720A 1990-03-29 1990-03-29 Control device for magnetic disk drive Expired - Fee Related JP2794052B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2081720A JP2794052B2 (en) 1990-03-29 1990-03-29 Control device for magnetic disk drive

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2081720A JP2794052B2 (en) 1990-03-29 1990-03-29 Control device for magnetic disk drive

Publications (2)

Publication Number Publication Date
JPH03280124A JPH03280124A (en) 1991-12-11
JP2794052B2 true JP2794052B2 (en) 1998-09-03

Family

ID=13754253

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2081720A Expired - Fee Related JP2794052B2 (en) 1990-03-29 1990-03-29 Control device for magnetic disk drive

Country Status (1)

Country Link
JP (1) JP2794052B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4258418A (en) * 1978-12-28 1981-03-24 International Business Machines Corporation Variable capacity data buffer system
JPS58195956A (en) * 1982-05-12 1983-11-15 Hitachi Ltd Variable memory area management method for each data buffer series

Also Published As

Publication number Publication date
JPH03280124A (en) 1991-12-11

Similar Documents

Publication Publication Date Title
JP2703668B2 (en) Data transfer control device and magnetic disk control device
US5613162A (en) Method and apparatus for performing efficient direct memory access data transfers
US5526508A (en) Cache line replacing system for simultaneously storing data into read and write buffers having multiplexer which controls by counter value for bypassing read buffer
JPH0585922B2 (en)
JPH05173932A (en) Data transfer device
EP1130521B1 (en) Memory access circuit and memory access control circuit
US5813024A (en) Disk control method for use with a data storage apparatus having multiple disks
JPS61125641A (en) Data compression control system
JP2794052B2 (en) Control device for magnetic disk drive
KR0155044B1 (en) RAM data transmission device using first-in first-out memory and its method
JP3151416B2 (en) Data transfer control device and magnetic disk device
JPS6074033A (en) Instruction readout system
JPS6331808B2 (en)
JPS63267060A (en) Control method for picture information buffer
JPH0447350A (en) Main storage read/response control
JPS61131033A (en) Control system of ring buffer
JP2001005636A (en) Buffer memory control circuit
JPH0816894B2 (en) Direct memory access controller
JPH0380470A (en) Storage controller
JP2002175215A (en) Memory controller, and system for processing information
JPH03286348A (en) Disk cache control system
JPS63245755A (en) I/O device controller
JPS6370361A (en) File controller
JPS6232819B2 (en)
JPH02133854A (en) Dma controller capable of access to transfer enable/ unable memory

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees