JP2001282711A - Data transfer controller - Google Patents

Data transfer controller

Info

Publication number
JP2001282711A
JP2001282711A JP2000092526A JP2000092526A JP2001282711A JP 2001282711 A JP2001282711 A JP 2001282711A JP 2000092526 A JP2000092526 A JP 2000092526A JP 2000092526 A JP2000092526 A JP 2000092526A JP 2001282711 A JP2001282711 A JP 2001282711A
Authority
JP
Japan
Prior art keywords
buffer memory
data
performance
output
buffer
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
JP2000092526A
Other languages
Japanese (ja)
Inventor
Hideo Tani
秀夫 谷
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2000092526A priority Critical patent/JP2001282711A/en
Publication of JP2001282711A publication Critical patent/JP2001282711A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To reduce the capacity of a buffer memory device. SOLUTION: This device has a data size acquiring means 17 for acquiring data size from a peripheral device 3, required buffer memory number calculating means 11 for calculating the number of buffer memories required for transferring data on the basis of the data size acquired thereby, predictive securable buffer memory number calculating means 12 for calculating the predictive number of securable buffer memories showing the predictive number of securable buffer memories on the basis of the performance difference of data transfer between an information processor 2 and the peripheral device 3 and buffer memory securing means 13 for securing the buffer memories when the predictive number of securable buffer memories calculated thereby reaches the number of required buffer memories calculated by the required buffer memory number calculating means 11, and parallel transfers a plurality of data.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ホストコンピュー
タなどの情報処理装置からのデータ転送要求に基づいて
1画像単位で周辺装置から画像データを読み出して前記
情報処理装置に転送するデータ転送制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transfer control device for reading image data from a peripheral device in units of one image based on a data transfer request from an information processing device such as a host computer and transferring the read image data to the information processing device. .

【0002】[0002]

【従来の技術】この種のデータ転送制御装置において
は、データを所定のデータ量単位で出力する、すなわ
ち、所定のデータ量分の出力を途中で停止できない周辺
装置からのデータを転送する時に、情報処理装置の転送
性能および処理状況並びに転送環境などからデータを取
得するタイミングが遅れるなどの原因により、データの
1部を失う可能性があるという欠点がある。そこで、こ
の欠点を解消するために、特開平3−13195号公報
に記載されたデータ転送制御装置が提案されている。特
開平3−13195号公報に記載されたデータ転送制御
装置は、第1の制御装置と第2の制御装置との間におい
てバッファメモリを介して相互にデータの送受を行うシ
ステムにおいて、前記両制御装置間に両制御装置のいず
れにも接続して読み書き可能な2面のバッファメモリ
と、これらのバッファメモリをそれぞれ前記両制御装置
に対して互いに相反関係になるように交互に切り替えて
接続する切り替手段と設けて構成されている。
2. Description of the Related Art In a data transfer control device of this type, data is output in a predetermined data amount unit, that is, when transferring data from a peripheral device which cannot stop outputting a predetermined data amount in the middle. There is a disadvantage that a part of the data may be lost due to a delay in the timing of acquiring the data from the transfer performance and processing status of the information processing apparatus and the transfer environment. In order to solve this drawback, a data transfer control device described in Japanese Patent Application Laid-Open No. Hei 3-13195 has been proposed. The data transfer control device described in Japanese Patent Application Laid-Open No. HEI 3-13195 is a system for mutually transmitting and receiving data between a first control device and a second control device via a buffer memory. A two-sided buffer memory that can be connected to any of the two control devices and that can be read and written between the devices, and a switch that alternately connects these buffer memories to the two control devices so as to have a reciprocal relationship to each other. And means.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、特開平
3−13195号公報に記載されたデータ転送制御装置
においては、バッファメモリ装置として2面のバッファ
メモリが必要であるから、バッファメモリ装置が大容量
となるという問題がある。本発明の課題は、このような
問題を解決することにある。すなわち、本発明の目的
は、バッファメモリ装置の容量を低減することができる
データ転送制御装置を提供することにある。
However, in the data transfer control device described in Japanese Patent Application Laid-Open No. Hei 3-13195, two buffer memories are required as the buffer memory device, so that the buffer memory device has a large capacity. There is a problem that becomes. An object of the present invention is to solve such a problem. That is, an object of the present invention is to provide a data transfer control device capable of reducing the capacity of a buffer memory device.

【0004】[0004]

【課題を解決するための手段】前記課題を解決するため
に、請求項1に記載の発明は、情報処理装置からのデー
タ転送要求に基づいて複数のバッファメモリに対しデー
タの書き込みおよび読み出しを制御して所定のデータ量
単位で周辺装置からデータを読み出して前記情報処理装
置に転送するデータ転送制御装置であって、前記周辺装
置からデータサイズを取得するデータサイズ取得手段
と、このデータサイズ取得手段により取得された前記デ
ータサイズに基づいて前記データの転送に必要である必
要バッファメモリの数を算出する必要バッファメモリ数
算出手段と、前記情報処理装置と前記周辺装置のデータ
転送の性能差に基づいてバッファメモリの確保可能予測
数を示すバッファメモリ確保可能予測数を算出するバッ
ファメモリ確保可能予測数算出手段と、このバッファメ
モリ確保可能予測数算出手段により算出されたバッファ
メモリ確保可能予測数が前記必要バッファメモリ数算出
手段により算出された前記必要バッファメモリの数に達
した時に前記バッファメモリを確保するバッファメモリ
確保手段とを有し、複数のデータを並行して転送するこ
とを特徴とする。請求項2に記載の発明は、請求項1の
データ転送制御装置であって、前記バッファメモリ確保
可能予測数算出手段により確保予定のバッファメモリが
開放されずに前記周辺装置からバッファメモリに書き込
むことができない未読込データが発生した時に既にバッ
ファメモリに書き込まれたデータを当該バッファメモリ
から読み出して情報処理装置に転送しながら前記未読込
データの書き込みを行うバッファメモリの再確保をする
バッファメモリ再確保手段と、このバッファメモリ再確
保手段により前記バッファメモリの再確保がされた時に
前記周辺装置に前記未読込データの再送を要求する再送
要求手段と、この再送要求手段により再送を要求した前
記未読込データを前記バッファメモリに書き込む再送デ
ータ書き込み手段とを有することを特徴とする。
According to a first aspect of the present invention, there is provided an apparatus for controlling writing and reading of data to and from a plurality of buffer memories based on a data transfer request from an information processing apparatus. A data transfer control device that reads data from a peripheral device in units of a predetermined data amount and transfers the data to the information processing device, wherein the data size obtaining device obtains a data size from the peripheral device; A required buffer memory number calculating means for calculating the number of required buffer memories required for the data transfer based on the data size obtained by the method, and a performance difference between the data transfer performance of the information processing device and the peripheral device. Calculates the estimated number of buffer memory that can be allocated by calculating the estimated number of buffer memory that can be allocated. A measurement calculation unit, and the buffer memory when the predicted number of buffer memory securable calculated by the buffer memory reservable predicted number calculation unit reaches the number of the required buffer memory calculated by the required buffer memory number calculation unit. And a buffer memory securing means for securing a plurality of data, and transferring a plurality of data in parallel. The invention according to claim 2 is the data transfer control device according to claim 1, wherein the buffer memory to be reserved is written from the peripheral device to the buffer memory without being released by the buffer memory reservable predicted number calculating means. When unread data that cannot be read is generated, the buffer memory that rewrites the buffer memory for writing the unread data while reading the data already written to the buffer memory from the buffer memory and transferring the data to the information processing device is re-secured. Means, retransmission request means for requesting the peripheral device to retransmit the unread data when the buffer memory is reallocated by the buffer memory reallocating means, and the unread requesting retransmission by the retransmission request means. Having retransmission data writing means for writing data to the buffer memory. And butterflies.

【0005】請求項3に記載の発明は、請求項1または
2のいずれか1つの請求項に記載のデータ転送制御装置
であって、前記バッファメモリ確保可能予測数算出手段
は、前記各バッファメモリごとにデータの書き込みに要
する入力処理時間を計測する入力処理時間計測手段と、
前記入力処理時間の最小値を入力性能として保持する入
力性能保持手段と、前記入力処理時間計測手段からの入
力処理時間と前記入力性能保持手段の保持されている前
記入力処理時間とを比較して最小値を選択し入力性能と
して前記入力性能保持手段に保持させる最小値選択手段
と、前記各バッファメモリごとにデータの読み出しに要
する出力処理時間を計測する出力処理時間計測手段と、
前記出力処理時間の平均値を出力性能として保持する出
力性能保持手段と、前記出力処理時間計測手段からの前
記出力処理時間と前記出力性能保持手段からの前記出力
性能とに基づいて新しい前記出力処理時間の平均値を算
出し出力性能として前記出力性能保持手段に保持させる
平均値算出手段と、前記出力性能保持手段からの前記出
力性能および前記入力性能保持手段からの前記入力性能
に基づいて性能比を算出する性能比算出手段と、この性
能比算出手段からの前記性能比を保持する性能比保持手
段と、性能比とバッファメモリ確保可能予測数との対応
関係を示す情報と前記性能比保持手段からの前記性能比
に基づいてバッファメモリ確保可能予測数を求めて出力
するバッファメモリ確保可能予測数出力手段とを有する
ことを特徴とする。
According to a third aspect of the present invention, there is provided the data transfer control device according to any one of the first and second aspects, wherein the buffer memory reservable predicted number calculating means comprises: Input processing time measuring means for measuring an input processing time required for writing data for each
The input performance holding unit that holds the minimum value of the input processing time as the input performance, and the input processing time from the input processing time measuring unit is compared with the input processing time held by the input performance holding unit. A minimum value selection unit that selects a minimum value and holds the input performance holding unit as the input performance, and an output processing time measurement unit that measures an output processing time required for reading data for each of the buffer memories;
Output performance holding means for holding an average value of the output processing time as output performance; and the new output processing based on the output processing time from the output processing time measuring means and the output performance from the output performance holding means. An average value calculating means for calculating an average value of time and holding the output performance holding means as the output performance, and a performance ratio based on the output performance from the output performance holding means and the input performance from the input performance holding means. , A performance ratio holding unit that holds the performance ratio from the performance ratio calculation unit, information indicating a correspondence relationship between a performance ratio and a predicted number of buffer memory securable units, and the performance ratio holding unit. And a buffer memory reservable predicted number output means for obtaining and outputting a buffer memory reservable predicted number based on the performance ratio from

【0006】[0006]

【発明の実施の形態】次に、本発明の実施の形態を図面
に基づいて詳細に説明する。図1は本発明の1つの実施
の形態に係るデータ転送制御装置を示すブロック図であ
る。図2は図1に示すデータ転送制御装置の制御部を示
すブロック図である。図1に示すように、データ転送制
御装置1は、ホストコンピュータなどの情報処理装置2
と周辺装置3との間に接続されている。周辺装置3は、
データを所定のデータ量単位で出力するものである。デ
ータ転送制御装置1は、情報処理装置1からのデータ転
送要求に基づいて所定のデータ量単位で周辺装置3から
複数のデータを並行して読み出して情報処理装置2に並
行して転送する。データ転送制御装置1は、制御部4
と、バッファメモリ装置5と、切り換え制御部6、7
と、入出力制御部8、9とを有している。制御部4は、
バッファメモリ装置5と、切り換え制御部6、7と、入
出力制御部8、9とに接続されている。切り換え制御部
6、7は、バッファメモリ装置5に接続されている。入
出力制御部8は、切り換え制御部6と情報処理装置2と
の間に接続されている。入出力制御部9は、周辺装置3
と切り換え制御部7との間に接続されている。制御部4
は、バッファメモリ装置5と、切り換え制御部6、7
と、入出力制御部8、9とを制御する。制御部4は、C
PUおよびメモリなどにより構成されている。バッファ
メモリ装置5は、転送するデータを一時的に記憶する。
切り換え制御部6、7は、バッファメモリ装置5のバッ
ファメモリごとにインターフェースの調停を行う。入出
力制御部8は、情報処理装置2に対しコマンドおよびデ
ータの送受を行う。入出力制御部9は、周辺装置3に対
しコマンドおよびデータの送受を行う。
Next, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing a data transfer control device according to one embodiment of the present invention. FIG. 2 is a block diagram showing a control unit of the data transfer control device shown in FIG. As shown in FIG. 1, a data transfer control device 1 includes an information processing device 2 such as a host computer.
And the peripheral device 3. The peripheral device 3
The data is output in a predetermined data amount unit. The data transfer control device 1 reads a plurality of data from the peripheral device 3 in parallel in a predetermined data amount unit based on a data transfer request from the information processing device 1 and transfers the data to the information processing device 2 in parallel. The data transfer control device 1 includes a control unit 4
, A buffer memory device 5, and switching control units 6, 7
And input / output control units 8 and 9. The control unit 4
It is connected to a buffer memory device 5, switching control units 6 and 7, and input / output control units 8 and 9. The switching controllers 6 and 7 are connected to the buffer memory device 5. The input / output control unit 8 is connected between the switching control unit 6 and the information processing device 2. The input / output control unit 9 includes the peripheral device 3
And the switching control unit 7. Control unit 4
Is a buffer memory device 5 and switching control units 6 and 7
And the input / output control units 8 and 9 are controlled. The control unit 4 determines that C
It is composed of a PU and a memory. The buffer memory device 5 temporarily stores data to be transferred.
The switching controllers 6 and 7 arbitrate the interface for each buffer memory of the buffer memory device 5. The input / output control unit 8 sends and receives commands and data to and from the information processing device 2. The input / output control unit 9 sends and receives commands and data to and from the peripheral device 3.

【0007】図2に示すように、制御部4は、データサ
イズ取得手段10と、必要バッファメモリ数算出手段1
1と、バッファメモリ確保可能予測数算出手段12と、
バッファメモリ確保手段13と、バッファメモリ再確保
手段14と、再送要求手段15と、再送データ書き込み
手段16とを有している。必要バッファメモリ数算出手
段11はデータサイズ取得手段10に接続されている。
バッファメモリ確保手段13は必要バッファメモリ数算
出手段11およびバッファメモリ確保可能予測数算出手
段12に接続されている。バッファメモリ再確保手段1
4はバッファメモリ確保手段13に接続されている。再
送要求手段15はバッファメモリ再確保手段14に接続
されている。再送データ書き込み手段16は再送要求手
段15に接続されている。データサイズ取得手段10は
周辺装置3から入出力制御部9を介してデータサイズを
取得する。必要バッファメモリ数算出手段11は、デー
タサイズ取得手段10により取得されたデータサイズに
基づいてデータの転送に必要である必要バッファメモリ
の数を算出する。バッファメモリ確保可能予測数算出手
段12は、情報処理装置2と周辺装置3のデータ転送の
性能差に基づいてバッファメモリの確保可能予測数を示
すバッファメモリ確保可能予測数を算出する。バッファ
メモリ確保手段13は、バッファメモリ確保可能予測数
算出手段14により算出されたバッファメモリ確保可能
予測数が必要バッファメモリ数算出手段11により算出
された必要バッファメモリの数に達した時にバッファメ
モリを確保する。バッファメモリ再確保手段14は、バ
ッファメモリ確保可能予測数算出手段13により確保予
定のバッファメモリが開放されずに周辺装置3からバッ
ファメモリに書き込むことができない未読込データが発
生した時に既にバッファメモリに書き込まれたデータを
当該バッファメモリから読み出して情報処理装置2に転
送しながら未読込データの書き込みを行うバッファメモ
リの再確保をする。再送要求手段15は、バッファメモ
リ再確保手段14によりバッファメモリの再確保がされ
た時に周辺装置3に未読込データの再送を要求する。再
送データ書き込み手段は、再送要求手段15により再送
を要求した前記未読込データをバッファメモリに書き込
む。制御部4においては、CPUがメモリに記憶された
プログラムに基づいて前記各手段の動作を実行する。
As shown in FIG. 2, the control unit 4 comprises a data size obtaining means 10 and a necessary buffer memory number calculating means 1.
1, a buffer memory allocable predicted number calculating means 12,
It has a buffer memory securing unit 13, a buffer memory re-securing unit 14, a retransmission request unit 15, and a retransmission data writing unit 16. The required buffer memory number calculation unit 11 is connected to the data size acquisition unit 10.
The buffer memory securing means 13 is connected to the required buffer memory number calculating means 11 and the buffer memory reservable predicted number calculating means 12. Buffer memory re-securing means 1
4 is connected to the buffer memory securing means 13. The retransmission request unit 15 is connected to the buffer memory re-securing unit 14. The retransmission data writing unit 16 is connected to the retransmission request unit 15. The data size obtaining unit 10 obtains a data size from the peripheral device 3 via the input / output control unit 9. The required buffer memory number calculation means 11 calculates the number of required buffer memories required for data transfer based on the data size acquired by the data size acquisition means 10. The buffer memory reservable predicted number calculating means 12 calculates the buffer memory reservable predicted number indicating the buffer memory reservable predicted number based on the data transfer performance difference between the information processing device 2 and the peripheral device 3. The buffer memory reserving means 13 is adapted to renew the buffer memory when the predicted buffer memory reservable number calculated by the buffer memory reservable predicted number calculating means 14 reaches the required buffer memory number calculated by the required buffer memory number calculating means 11. Secure. The buffer memory re-securing means 14 stores the unread data that cannot be written from the peripheral device 3 into the buffer memory without releasing the buffer memory to be reserved by the buffer memory reservable predicted number calculating means 13. While the written data is read from the buffer memory and transferred to the information processing device 2, the buffer memory for writing the unread data is re-secured. The retransmission request unit 15 requests the peripheral device 3 to retransmit unread data when the buffer memory is reallocated by the buffer memory reallocating unit 14. The retransmission data writing unit writes the unread data requested to be retransmitted by the retransmission request unit 15 to the buffer memory. In the control unit 4, the CPU executes the operations of the above-described units based on a program stored in the memory.

【0008】図3は図1に示すデータ転送制御装置1の
バッファメモリ装置5を示すブロック図である。図3に
示すように、バッファメモリ装置5は、6つのバッファ
メモリBM0、BM1、BM2、BM3、BM4、BM
5と、6つの確保フラグAと、6つの活動中フラグB
と、6つの方向フラグCとを有している。各バッファメ
モリBM0〜BM5は、同一の容量を有している。確保
フラグAは、各バッファメモリBM0〜BM5ごとの確
保または開放を示す。確保フラグA=1である場合に制
御部4が各バッファメモリBM0〜BM5を確保してい
ること示す。確保フラグA=0である場合に制御部4が
各バッファメモリBM0〜BM5を開放していること示
す。活動中フラグBは各バッファメモリBM0〜BM5
が活動中であるか否かを示す。活動中フラグB=1であ
る場合には各バッファメモリBM0〜BM5が活動中で
あることを示す。活動中フラグB=0である場合には各
バッファメモリBM0〜BM5が活動中でないこと(待
機中であること)を示す。方向フラグCは各バッファメ
モリBM0〜BM5に対するデータの書き込みまたは読
み出しの方向を示す。方向フラグC=0である場合には
各バッファメモリBM0〜BM5に対するデータの書き
込みの方向を示す。方向フラグC=1である場合には各
バッファメモリBM0〜BM5に対するデータの読み出
しの方向を示す。ここで、確保フラグAと活動中フラグ
Bおよび方向フラグCの組み合わせをバッファ状態フラ
グ(A,B,C)する。バッファ状態フラグ(A,B,
C)=(0,0,0)はバッファメモリの開放を示す。
バッファ状態フラグ(A,B,C)=(1,0,0)は
バッファメモリのデータの書き込み待機中を示す。バッ
ファ状態フラグ(A,B,C)=(1,0,1)はバッ
ファメモリのデータの読み出し待機中を示す。バッファ
状態フラグ(A,B,C)=(1,1,0)はバッファ
メモリに対するデータの書き込み中を示す。バッファ状
態フラグ(A,B,C)=(1,1,1)はバッファメ
モリに対するデータの読み出し中を示す。
FIG. 3 is a block diagram showing the buffer memory device 5 of the data transfer control device 1 shown in FIG. As shown in FIG. 3, the buffer memory device 5 includes six buffer memories BM0, BM1, BM2, BM3, BM4, and BM.
5, six secure flags A and six active flags B
And six direction flags C. Each of the buffer memories BM0 to BM5 has the same capacity. The reservation flag A indicates reservation or release for each of the buffer memories BM0 to BM5. When the reservation flag A is 1, it indicates that the control unit 4 has reserved the buffer memories BM0 to BM5. When the securing flag A is 0, it indicates that the control unit 4 has released each of the buffer memories BM0 to BM5. The active flag B is stored in each of the buffer memories BM0 to BM5.
Indicates whether or not is active. When the active flag B = 1, it indicates that each of the buffer memories BM0 to BM5 is active. When the active flag B = 0, it indicates that the buffer memories BM0 to BM5 are not active (standby). The direction flag C indicates the direction of writing or reading data to or from each of the buffer memories BM0 to BM5. When the direction flag C = 0, it indicates the direction of data writing to each of the buffer memories BM0 to BM5. When the direction flag C = 1, the direction of reading data from each of the buffer memories BM0 to BM5 is indicated. Here, a combination of the reservation flag A, the active flag B, and the direction flag C is used as a buffer status flag (A, B, C). Buffer status flags (A, B,
C) = (0,0,0) indicates release of the buffer memory.
The buffer status flag (A, B, C) = (1, 0, 0) indicates that the buffer memory is waiting to write data. The buffer status flag (A, B, C) = (1, 0, 1) indicates that the buffer memory is waiting to read data. The buffer status flag (A, B, C) = (1, 1, 0) indicates that data is being written to the buffer memory. The buffer status flag (A, B, C) = (1, 1, 1) indicates that data is being read from the buffer memory.

【0009】次に、本発明の第1の実施の形態を図面に
基づいて詳細に説明する。ここでは、各バッファメモリ
BM0〜BM5のバッファメモリ容量(バッファメモリ
サイズ)を200KBとし、性能比を2.0(図9参
照)、データの容量を800KBと仮定する。図4はデ
ータ転送制御装置1のバッファメモリ装置5におけるデ
ータの転送の1つの状態を説明する図である。図5はデ
ータ転送制御装置1のバッファメモリ装置5におけるデ
ータの転送の他の状態を説明する図である。図6はデー
タ転送制御装置1のバッファメモリ装置5におけるデー
タの転送の他の状態を説明する図である。図7はデータ
転送制御装置1による1つのデータの書き込み処理を説
明するためのフローチャートである。図8はデータ転送
制御装置1の読み出し処理を説明するためのフローチャ
ートである。次に、データ転送制御装置1による1つの
データの書き込み処理を図7に基づいて説明する。図7
に示すように、データ転送制御装置1が書き込み処理を
行う時に、ステップ101で情報処理装置2からデータ
の要求としてページ1およびページ2の転送指示が行わ
れた場合に、ステップ101で制御部4は周辺装置3よ
りデータのサイズを取得し、次にステップ102で取得
したデータサイズに対応する必要バッファメモリ数を算
出する。この場合に、必要バッファメモリ数をEとし、
1つのページのデータ量をFとし、かつ、1つのバッフ
ァメモリの容量をGとすると、必要バッファメモリ数E
は次の式(1)で求められる。 E=F÷G(少数点以下切り上げ)…(1) ページ1は必要バッファメモリ数Eが「4」となる。次
にステップ103でバッファメモリ確保可能予測数を式
(2)および式(3)で算出する。この算出方法は、後
に詳述する。次に、ステップ104で制御部4はバッフ
ァメモリ確保可能予測数≧必要バッファメモリ数である
か否かを判断する。バッファメモリ確保可能予測数≧必
要バッファメモリ数となるまで制御部4は待機する。ス
テップ104でバッファメモリ確保可能予測数≧必要バ
ッファメモリ数となった時には、ステップ105で制御
部4はバッファメモリ領域の確保の予約をする。ページ
1のデータ転送処理の場合には、バッファメモリ確保可
能予測数が必要バッファメモリ数より多いので、ステッ
プ105で制御部4はページ1としてバッファメモリB
M0〜BM3まで書き込み待機中として確保する。
Next, a first embodiment of the present invention will be described in detail with reference to the drawings. Here, it is assumed that the buffer memory capacity (buffer memory size) of each of the buffer memories BM0 to BM5 is 200 KB, the performance ratio is 2.0 (see FIG. 9), and the data capacity is 800 KB. FIG. 4 is a diagram illustrating one state of data transfer in the buffer memory device 5 of the data transfer control device 1. FIG. 5 is a diagram for explaining another state of data transfer in the buffer memory device 5 of the data transfer control device 1. FIG. 6 is a diagram for explaining another state of data transfer in the buffer memory device 5 of the data transfer control device 1. FIG. 7 is a flowchart for explaining a process of writing one data by the data transfer control device 1. FIG. 8 is a flowchart for explaining the reading process of the data transfer control device 1. Next, a process of writing one data by the data transfer control device 1 will be described with reference to FIG. FIG.
As shown in (1), when the data transfer control device 1 performs the writing process, if the information processing device 2 instructs the transfer of the page 1 and the page 2 as the data request in the step 101, the control unit 4 performs the process in the step 101. Acquires the data size from the peripheral device 3 and then calculates the required number of buffer memories corresponding to the data size acquired in step 102. In this case, the number of required buffer memories is E,
Assuming that the data amount of one page is F and the capacity of one buffer memory is G, the required buffer memory number E
Is obtained by the following equation (1). E = F ÷ G (rounded up below the decimal point) (1) For page 1, the required buffer memory number E is “4”. Next, in step 103, the estimated number of buffer memory reservables is calculated by equations (2) and (3). This calculation method will be described later in detail. Next, in step 104, the control unit 4 determines whether or not the estimated number of buffer memories that can be secured ≧ the number of necessary buffer memories. The control unit 4 waits until the predicted number of buffer memory securable ≧ the required number of buffer memories. When it is determined in step 104 that the number of buffers that can be reserved is equal to or greater than the required number of buffer memories, in step 105, the control unit 4 reserves a buffer memory area. In the case of page 1 data transfer processing, the predicted number of buffer memories that can be secured is larger than the required number of buffer memories.
It is ensured that M0 to BM3 are waiting for writing.

【0010】次に、ステップ106で制御部4は書き込
み処理を行ってステップ107に行く。ステップ107
で制御部4は書き込み処理待ちか否かを判断する。ステ
ップ107で書き込み処理待ちでない時には、動作を終
了する。このステップ106の書き込み処理の開始時お
よび終了時においては、制御部4はメモリ装置5の確保
フラグAと活動中フラグBおよび方向フラグCの切り替
え処理を行う。ステップ107で書き込み処理待ちであ
る時には、ステップ108で未確保バッファメモリが有
るか否かを判断する。ステップ108で未確保バッファ
メモリが無い時には、ステップ106の書き込み処理に
戻る。ステップ108で未確保バッファメモリが有る時
には、ステップ109で制御部4は開放バッファメモリ
が有るか否かを判断する。ステップ109で開放バッフ
ァメモリが有る時には、ステップ106の書き込み処理
に戻る。ステップ109で開放バッファメモリが無い時
には、ステップ110で制御部4はオバーフロー処理を
する。次に、ステップ111で制御部4は終了であるか
否かを判断して、終了である時に動作を終了する。ステ
ップ110のオバーフロー処理は後に詳述する。次に、
データ転送制御装置1の読み出し処理を図8に基づいて
説明する。ステップ201で制御部4はメモリ装置5か
らバッファメモリの読み出し処理待中の情報を取得して
読み出し処理待ちのバッファメモリが有るか否かを判断
する。ステップ201で読み出し処理待ちのバッファメ
モリが有る時には、ステップ202で制御部4は読み出
し処理を行ってデータを情報処理装置2へ転送してか
ら、ステップ203へ行く。ステップ203で制御部4
は終了であるか否かを判断する。ステップ203で終了
でない時にはステップ202へ戻り、ステップ203で
終了である時には動作を終了する。ステップ202の読
み出し処理の開始時および終了時には、制御部4はメモ
リ装置5の確保フラグAと活動中フラグBおよび方向フ
ラグCの切り替え処理を行う。図4はバッファメモリ装
置5のデータの転送の1つの状態を説明する図である。
図5はバッファメモリ装置5のデータの転送の他の状態
を説明する図である。図4に示す例においては、ページ
1で4つのバッファメモリBM0〜BM3を確保してい
る。バッファメンモリBM0が読み出し処理を実行中で
あり、バッファメモリBM1が読み出し待機中であり、
バッファメモリBM2は書き込み中であり、バッファ3
は書き込み待機中である。図5に示す例においては、バ
ッファメモリBM0の読み出しが終了して開放バッファ
が3つとなったので、ページ2のバッファ領域の予約を
実施し、ページ1で3つのバッファメモリBM4、BM
5、BM0を確保し1つのバッファメモリ分確保できず
に未確保状態になったものである。
Next, at step 106, the control unit 4 performs a writing process and goes to step 107. Step 107
Then, the control unit 4 determines whether or not the writing process is waiting. If it is determined in step 107 that the process is not waiting for a write process, the operation ends. At the start and end of the write process in step 106, the control unit 4 performs a process of switching between the securing flag A, the active flag B, and the direction flag C of the memory device 5. If the writing process is waiting in step 107, it is determined in step 108 whether or not there is an unsecured buffer memory. If there is no unsecured buffer memory in step 108, the process returns to the write process in step 106. If there is an unsecured buffer memory in step 108, the control unit 4 determines in step 109 whether there is an open buffer memory. If there is an open buffer memory in step 109, the process returns to step 106. If there is no open buffer memory in step 109, the control unit 4 performs an overflow process in step 110. Next, in step 111, the control unit 4 determines whether or not the operation is to be ended, and ends the operation when the operation is to be ended. The overflow processing in step 110 will be described later in detail. next,
The reading process of the data transfer control device 1 will be described with reference to FIG. In step 201, the control unit 4 obtains information waiting for a reading process of the buffer memory from the memory device 5, and determines whether or not there is a buffer memory waiting for the reading process. If there is a buffer memory waiting to be read in step 201, the control unit 4 performs read processing in step 202 and transfers data to the information processing device 2, and then proceeds to step 203. In step 203, the control unit 4
Judge whether or not it is the end. If it is not finished in step 203, the process returns to step 202, and if it is finished in step 203, the operation is finished. At the start and end of the reading process in step 202, the control unit 4 performs a switching process of the securing flag A, the active flag B, and the direction flag C of the memory device 5. FIG. 4 is a diagram illustrating one state of data transfer of the buffer memory device 5.
FIG. 5 is a diagram for explaining another state of data transfer of the buffer memory device 5. In the example shown in FIG. 4, four buffer memories BM0 to BM3 are reserved for page 1. The buffer memory BM0 is executing the read process, the buffer memory BM1 is waiting for the read,
The buffer memory BM2 is writing, and the buffer 3
Is waiting for writing. In the example shown in FIG. 5, since the reading of the buffer memory BM0 is completed and the number of open buffers becomes three, the buffer area of the page 2 is reserved and the three buffer memories BM4 and BM of the page 1 are reserved.
5, BM0 is secured and one buffer memory cannot be secured, and the state is unsecured.

【0011】次に、図6に基づいてステップ110のオ
バーフロー処理を説明する。図5において、ページ2の
データのバッファメモリBM1への書き込みが終了せず
にバッファメモリBM0への書き込みが終了してしまっ
た場合、データの残り200KB分がオーバフローして
失われてしまったことになる。この場合、図6に示すよ
うに、再度バッファメモリの確保と周辺装置3へのデー
タ再送指示を行い、すでに書き込みが終了しているバッ
ファメモリに関しては読み出し処理を実行し、周辺装置
3からのデータを入力しない。未転送のデーアの最終2
00KBが来た時にバッファメモリBM1に書き込み処
理を行なうことにより、データのエラーリカバリを行
う。図9はデータ転送制御装置1の制御部4におけるバ
ッファメモリ確保可能予測数算出手段12を示すブロッ
ク図である。図9に示すように、バッファメモリ確保可
能予測数算出手段12は、入力処理時間計測手段17
と、入力性能保持手段18と、最小値選択手段19と、
出力処理時間計測手段20と、出力性能保持手段21
と、平均値算出手段22と、性能比算出テーブル23
と、性能比算出手段24と、性能比保持手段25と、バ
ッファメモリ確保可能予測数算出テーブル26と、バッ
ファメモリ確保可能予測数出力手段27とを有してい
る。最小値選択手段19は、入力処理時間計測手段17
に接続されている。入力性能保持手段18は、最小値選
択手段19に接続されている。平均値算出手段22は、
出力処理時間計測手段20に接続されている。出力性能
保持手段21は、平均値算出手段22に接続されてい
る。性能比算出手段24は、入力性能保持手段18と出
力性能保持手段21および性能比算出テーブル23に接
続されている。性能比保持手段25は、性能比算出手段
24に接続されている。バッファメモリ確保可能予測数
出力手段27は、性能比保持手段25およびバッファメ
モリ確保可能予測数算出テーブル26に接続されてい
る。
Next, the overflow processing in step 110 will be described with reference to FIG. In FIG. 5, when the writing of the data of page 2 to the buffer memory BM0 is completed without the writing to the buffer memory BM1, the remaining 200 KB of data overflows and is lost. Become. In this case, as shown in FIG. 6, an instruction for reserving a buffer memory and retransmitting data to the peripheral device 3 is performed again, and a read process is executed for the buffer memory that has already been written, and Do not enter Final 2 of untransferred data
The error recovery of the data is performed by performing the writing process to the buffer memory BM1 when 00KB comes. FIG. 9 is a block diagram showing the buffer memory reservable predicted number calculating means 12 in the control unit 4 of the data transfer control device 1. As shown in FIG. 9, the buffer memory reservable predicted number calculating unit 12 includes an input processing time measuring unit 17.
Input performance holding means 18, minimum value selecting means 19,
Output processing time measuring means 20 and output performance holding means 21
, Average value calculating means 22, and performance ratio calculating table 23
And a performance ratio calculating means 24, a performance ratio holding means 25, a buffer memory reservable predicted number calculation table 26, and a buffer memory reservable predicted number output means 27. The minimum value selecting means 19 is provided for the input processing time measuring means 17.
It is connected to the. The input performance holding unit 18 is connected to the minimum value selecting unit 19. The average value calculation means 22
It is connected to the output processing time measuring means 20. The output performance holding means 21 is connected to the average value calculating means 22. The performance ratio calculation unit 24 is connected to the input performance holding unit 18, the output performance holding unit 21, and the performance ratio calculation table 23. The performance ratio holding unit 25 is connected to the performance ratio calculation unit 24. The buffer memory reservable predicted number output unit 27 is connected to the performance ratio holding unit 25 and the buffer memory reservable predicted number calculation table 26.

【0012】入力処理時間計測手段17は、各バッファ
メモリBM0〜BM5ごとにデータの書き込みに要する
入力処理時間を計測する。この入力処理時間は周辺装置
3のデータの転送の性能を示すものであるから、入力処
理時間計測手段17は周辺装置3のデータの転送の性能
を計測していることになる。入力性能保持手段18は、
最小値選択手段19からの前記入力処理時間の最小値
(入力性能)を保持する。最小値選択手段19は、処理
時間計測手段17からの入力処理時間と入力性能保持手
段18により保持されている入力処理時間(入力性能)
とを比較して最小値を選択し入力性能保持手段18に与
えて保持させる。出力処理時間計測手段20は、バッフ
ァメモリBM0〜BM5ごとにデータの読み出しに要す
る出力処理時間を計測する。この出力処理時間は情報処
理装置2のデータの転送の性能を示すものであるから、
出力処理時間計測手段20は情報処理装置2のデータの
転送の性能を計測していることになる。出力性能保持手
段21は、前記出力処理時間の平均値(出力性能)を保
持する。平均値算出手段22は、出力処理時間計測手段
20からの出力処理時間と出力性能保持手段21からの
出力処理時間の平均値とに基づいて新しい出力処理時間
の平均値(出力性能)を算出して出力性能保持手段21
に与えて保持させる。性能比算出テーブル23は、出力
性能と入力性能の比である性能比の計算値と、この性能
比の計算値と対応する複数段階の性能比との関係を示す
情報を格納している。性能比算出手段24は、出力性能
保持手段21からの出力処理時間の平均値(出力性能)
および入力性能保持手段18からの入力処理時間(入力
性能)に基づいて出力性能と入力性能の比である性能比
の計算値を求め、この性能比の計算値と性能比算出テー
ブル23の情報に基づいて性能比の換算値を算出する。
性能比保持手段25は、性能比算出手段24からの性能
比を保持する。バッファメモリ確保可能予測数算出テー
ブル26は、性能比とバッファメモリ確保可能予測数と
の対応の情報を格納している。バッファメモリ確保可能
予測数出力手段27は、性能比保持手段25からの性能
比とバッファメモリ確保可能予測数テーブル26の情報
に基づいてバッファメモリ確保可能予測数を求めて出力
する。
The input processing time measuring means 17 measures the input processing time required for writing data for each of the buffer memories BM0 to BM5. Since the input processing time indicates the data transfer performance of the peripheral device 3, the input processing time measuring means 17 measures the data transfer performance of the peripheral device 3. The input performance holding means 18
The minimum value (input performance) of the input processing time from the minimum value selection means 19 is held. The minimum value selecting unit 19 is configured to input the processing time from the processing time measuring unit 17 and the input processing time (input performance) held by the input performance holding unit 18.
And the minimum value is selected and given to the input performance holding means 18 to be held. The output processing time measuring means 20 measures an output processing time required for reading data for each of the buffer memories BM0 to BM5. Since this output processing time indicates the data transfer performance of the information processing device 2,
This means that the output processing time measuring means 20 measures the data transfer performance of the information processing device 2. The output performance holding unit 21 holds an average value (output performance) of the output processing time. The average value calculating means 22 calculates a new average value (output performance) of the new output processing time based on the output processing time from the output processing time measuring means 20 and the average value of the output processing time from the output performance holding means 21. Output performance holding means 21
And hold it. The performance ratio calculation table 23 stores a calculated value of a performance ratio, which is a ratio between output performance and input performance, and information indicating a relationship between the calculated value of the performance ratio and a corresponding plurality of stages of performance ratios. The performance ratio calculating means 24 calculates the average value of the output processing time from the output performance holding means 21 (output performance).
And a calculated value of a performance ratio, which is a ratio between the output performance and the input performance, based on the input processing time (input performance) from the input performance holding unit 18. A conversion value of the performance ratio is calculated based on the performance ratio.
The performance ratio holding unit 25 holds the performance ratio from the performance ratio calculation unit 24. The buffer memory reservable predicted number calculation table 26 stores information on the correspondence between the performance ratio and the buffer memory reservable predicted number. The buffer memory reservable predicted number output means 27 calculates and outputs the buffer memory reservable predicted number based on the performance ratio from the performance ratio holding means 25 and the information of the buffer memory reservable predicted number table 26.

【0013】次に、性能比算出手段24およびバッファ
メモリ確保可能予測数出力手段27の具体的な計算の例
を図10および図11を参照して説明する。図10はデ
ータ転送制御装置1のバッファメモリ確保可能予測数算
出手段12における性能比算出テーブル23を説明する
ための図である。図11はデータ転送制御装置1のバッ
ファメモリ確保可能予測数算出手段12におけるバッフ
ァメモリ確保可能予測数テーブル20を説明するための
図である。性能比算出テーブル23は、図10に示すよ
うに、出力性能と入力性能の比である性能比の計算値
と、この性能比の計算値と対応する複数段階の性能比と
の関係を示す情報を格納している。性能比算出手段24
は、出力性能保持手段21からの出力処理時間の平均値
(出力性能)および入力性能保持手段18からの入力処
理時間(入力性能)に基づいて出力性能と入力性能の比
である性能比の計算値を求め、この性能比の計算値と性
能比算出テーブル23の情報に基づいて性能比の換算値
を算出する。バッファメモリ確保可能予測数算出テーブ
ル26は、図11に示すように、性能比とバッファメモ
リ確保可能予測数との対応の情報を格納している。バッ
ファメモリ確保可能予測数出力手段27は、性能比保持
手段24からの性能比とバッファメモリ確保可能予測数
テーブル26の情報に基づいてバッファメモリ確保可能
予測数を求めて出力する。
Next, a specific calculation example of the performance ratio calculating means 24 and the buffer memory securable predicted number output means 27 will be described with reference to FIGS. 10 and 11. FIG. FIG. 10 is a diagram for explaining the performance ratio calculation table 23 in the buffer memory allocable predicted number calculation means 12 of the data transfer control device 1. FIG. 11 is a diagram for explaining the buffer memory allocable predicted number table 20 in the buffer memory allocable predicted number calculation means 12 of the data transfer control device 1. As shown in FIG. 10, the performance ratio calculation table 23 includes information indicating a calculated value of a performance ratio, which is a ratio of output performance to input performance, and a relationship between the calculated value of the performance ratio and a plurality of stages of performance ratios corresponding thereto. Is stored. Performance ratio calculation means 24
Is a calculation of a performance ratio, which is a ratio between output performance and input performance, based on an average value (output performance) of output processing time from output performance holding means 21 and input processing time (input performance) from input performance holding means 18. A value is obtained, and a converted value of the performance ratio is calculated based on the calculated value of the performance ratio and the information of the performance ratio calculation table 23. As shown in FIG. 11, the buffer memory reservable predicted number calculation table 26 stores information on the correspondence between the performance ratio and the buffer memory reservable predicted number. The buffer memory reservable predicted number output means 27 obtains and outputs the buffer memory reservable predicted number based on the performance ratio from the performance ratio holding means 24 and the information of the buffer memory reservable predicted number table 26.

【0014】開放バッファメモリ数と性能比から開放さ
れていくバッファメモリ数を概算する時に、次の式2を
用いるものとする。 Q=N+(N÷S)+((N÷S)÷S) …(2) ここで、Qはバッファメモリ確保可能予測数を示し、S
は性能比を示し、Nは現在のバッファメモリの開放数を
示し、N÷Sは現在の開放バッファメモリのデータを処
理したときに発生するバッファメモリの2次開放数を示
し、(N÷S)÷Sは2次開放のバッファメモリを処理
したとき発生するバッファメモリの3次開放数を示して
いる。したがって、Nを次の式3により求めてこの計算
値の小数点以下を切り上げて算出したものがバッファメ
モリ確保可能予測数算出テーブル26の値となる。 N=(S×S×Q)÷((S×S)+S+1) …(3) バッファメモリ確保可能予測数が必要バッファメモリ数
以上であれば、バッファメモリの確保の予約処理を開始
する。
When estimating the number of buffer memories to be released from the number of open buffer memories and the performance ratio, the following equation 2 is used. Q = N + (N ÷ S) + ((N ÷ S) ÷ S) (2) Here, Q indicates the predicted number of buffers that can be secured, and S
Indicates the performance ratio, N indicates the current number of released buffer memories, N ÷ S indicates the secondary released number of buffer memory that occurs when data of the current released buffer memory is processed, and (N ÷ S ) ÷ S indicates the number of tertiary releases of the buffer memory that occur when processing the buffer memory of the secondary release. Therefore, the value obtained by calculating N by the following equation 3 and rounding up the calculated value after the decimal point is the value of the buffer memory allocable predicted number calculation table 26. N = (S × S × Q) ÷ ((S × S) + S + 1) (3) If the predicted number of allocable buffer memories is equal to or greater than the required number of buffer memories, a reservation process for allocating buffer memories is started.

【0015】[0015]

【発明の効果】以上のように、請求項1に記載の発明に
よれば、バッファメモリ確保可能予測数が必要バッファ
メモリの数に達した時にバッファメモリを確保するバッ
ファメモリ確保手段とを有し、複数のデータを並行して
転送するから、情報処理装置および周辺装置の転送性能
に見合ったバッファメモリの確保可能予測数を設定する
ことができるので、実装するバッファメモリ装置の容量
を低減することができる。請求項2に記載の発明によれ
ば、請求項1に記載の発明の効果に加えて、未読込デー
タが発生した時に既にバッファメモリに書き込まれたデ
ータを当該バッファメモリから読み出して情報処理装置
に転送しながら未読込データの書き込みを行うことがで
きるから、情報処理装置に対する出力のロスタイムを軽
減したデータのオーバーフロー処理をすることができ
る。請求項3に記載の発明によれば、請求項1または2
のいずれか1つの請求項に記載の発明の効果に加えて、
リアルタイムに情報処理装置と周辺装置の転送の性能差
からバッファメモリの確保可能予測数を計算し、バッフ
ァメモリを適切に使用することにより、データのオーバ
ーフローの発生頻度を減らすことができる。
As described above, according to the first aspect of the present invention, there is provided the buffer memory securing means for securing the buffer memory when the predicted number of buffer memory secureable reaches the required number of buffer memories. Since a plurality of data are transferred in parallel, it is possible to set the estimated number of buffers that can be secured according to the transfer performance of the information processing device and the peripheral device, so that the capacity of the mounted buffer memory device can be reduced. Can be. According to the second aspect of the present invention, in addition to the effect of the first aspect, when unread data occurs, data already written in the buffer memory is read out from the buffer memory and transmitted to the information processing apparatus. Since unread data can be written while being transferred, data overflow processing can be performed with reduced output loss time to the information processing device. According to the invention set forth in claim 3, claim 1 or 2
In addition to the effects of the invention described in any one of the claims,
By calculating the estimated number of buffers that can be secured in the buffer memory in real time from the difference in transfer performance between the information processing device and the peripheral device and using the buffer memory appropriately, the frequency of occurrence of data overflow can be reduced.

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

【図1】本発明の1つの実施の形態に係るデータ転送制
御装置を示すブロック図である。
FIG. 1 is a block diagram showing a data transfer control device according to one embodiment of the present invention.

【図2】図1に示すデータ転送制御装置の制御部を示す
ブロック図である。
FIG. 2 is a block diagram showing a control unit of the data transfer control device shown in FIG.

【図3】図1に示すデータ転送制御装置のバッファメモ
リ装置を示すブロック図である。
FIG. 3 is a block diagram showing a buffer memory device of the data transfer control device shown in FIG. 1;

【図4】図1に示すデータ転送制御装置のバッファメモ
リ装置におけるデータの転送の1つの状態を説明する図
である。
FIG. 4 is a diagram illustrating one state of data transfer in the buffer memory device of the data transfer control device shown in FIG.

【図5】図1に示すデータ転送制御装置のバッファメモ
リ装置におけるデータの転送の他の状態を説明する図で
ある。
FIG. 5 is a diagram illustrating another state of data transfer in the buffer memory device of the data transfer control device shown in FIG. 1;

【図6】図1に示すデータ転送制御装置のバッファメモ
リ装置におけるデータの転送の他の状態を説明する図で
ある。
6 is a diagram illustrating another state of data transfer in the buffer memory device of the data transfer control device shown in FIG.

【図7】図1に示すデータ転送制御装置による1つのデ
ータの書き込み処理を説明するためのフローチャートで
ある。
FIG. 7 is a flowchart for explaining a process of writing one data by the data transfer control device shown in FIG. 1;

【図8】図1に示すデータ転送制御装置の読み出し処理
を説明するためのフローチャートである。
FIG. 8 is a flowchart for explaining a read process of the data transfer control device shown in FIG. 1;

【図9】図1に示すデータ転送制御装置の制御部におけ
るバッファメモリ確保可能予測数算出手段を示すブロッ
ク図である。
9 is a block diagram showing a buffer memory reservable predicted number calculating means in the control unit of the data transfer control device shown in FIG. 1;

【図10】図9に示すバッファメモリ確保可能予測数算
出手段における性能比算出テーブルを説明する図であ
る。
10 is a diagram illustrating a performance ratio calculation table in a buffer memory reservable predicted number calculation unit illustrated in FIG. 9;

【図11】図9に示すバッファメモリ確保可能予測数算
出手段におけるバッファメモリ確保可能予測数算出テー
ブルを説明する図である。
11 is a view for explaining a buffer memory allocable predicted number calculation table in a buffer memory allocable predicted number calculation means shown in FIG. 9;

【符号の説明】[Explanation of symbols]

1 データ転送制御装置、2 情報処理装置、3 周辺
装置、4 制御部、5バッファメモリ装置、6、7 切
り換え制御部、8、9 入出力制御部、10データサイ
ズ取得手段、11 必要バッファメモリ数算出手段、1
2 バッファメモリ確保可能予測数算出手段、13 バ
ッファメモリ確保手段、14 バッファメモリ再確保手
段、15 再送要求手段、16 再送データ書き込み手
段、17 入力処理時間計測手段、18 入力性能保持
手段、19 最小値選択手段、20 出力処理時間計測
手段、21 出力性能保持手段、22 平均値算出手
段、23 性能比算出テーブル、24 性能比算出手
段、25 性能比保持手段、26 バッファメモリ確保
可能予測数算出テーブル、27 バッファメモリ確保可
能予測数出力手段。
REFERENCE SIGNS LIST 1 data transfer control device, 2 information processing device, 3 peripheral device, 4 control unit, 5 buffer memory device, 6, 7 switching control unit, 8, 9 input / output control unit, 10 data size acquisition unit, 11 required buffer memory number Calculation means, 1
2 Buffer memory reservable predicted number calculating means, 13 Buffer memory reserving means, 14 Buffer memory re-securing means, 15 Retransmission requesting means, 16 Retransmission data writing means, 17 Input processing time measuring means, 18 Input performance holding means, 19 Minimum value Selecting means, 20 output processing time measuring means, 21 output performance holding means, 22 average value calculating means, 23 performance ratio calculating table, 24 performance ratio calculating means, 25 performance ratio holding means, 26 buffer memory reservable predicted number calculating table, 27 A buffer memory allocable predicted number output means.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 情報処理装置からのデータ転送要求に基
づいて複数のバッファメモリに対しデータの書き込みお
よび読み出しを制御して所定のデータ量単位で周辺装置
からデータを読み出して前記情報処理装置に転送するデ
ータ転送制御装置であって、前記周辺装置からデータサ
イズを取得するデータサイズ取得手段と、このデータサ
イズ取得手段により取得された前記データサイズに基づ
いて前記データの転送に必要である必要バッファメモリ
の数を算出する必要バッファメモリ数算出手段と、前記
情報処理装置と前記周辺装置のデータ転送の性能差に基
づいてバッファメモリの確保可能予測数を示すバッファ
メモリ確保可能予測数を算出するバッファメモリ確保可
能予測数算出手段と、このバッファメモリ確保可能予測
数算出手段により算出されたバッファメモリ確保可能予
測数が前記必要バッファメモリ数算出手段により算出さ
れた前記必要バッファメモリの数に達した時に前記バッ
ファメモリを確保するバッファメモリ確保手段とを有
し、複数のデータを並行して転送することを特徴とする
データ転送制御装置。
An information processing apparatus controls writing and reading of data to and from a plurality of buffer memories based on a data transfer request from an information processing apparatus, reads data from a peripheral device in a predetermined data amount unit, and transfers the data to the information processing apparatus. A data size control unit for obtaining a data size from the peripheral device, and a necessary buffer memory required for transferring the data based on the data size obtained by the data size obtaining unit. Buffer memory number calculating means for calculating the number of buffer memories, and a buffer memory for calculating a buffer memory allocable predicted number indicating a buffer memory allocable predicted number based on a data transfer performance difference between the information processing device and the peripheral device Means for calculating the estimated number of allocable buffers and Buffer memory securing means for securing the buffer memory when the issued buffer memory secureable predicted number reaches the number of the necessary buffer memories calculated by the required buffer memory number calculating means. A data transfer control device for transferring data in parallel.
【請求項2】 請求項1のデータ転送制御装置であっ
て、前記バッファメモリ確保可能予測数算出手段により
確保予定のバッファメモリが開放されずに前記周辺装置
からバッファメモリに書き込むことができない未読込デ
ータが発生した時に既にバッファメモリに書き込まれた
データを当該バッファメモリから読み出して情報処理装
置に転送しながら前記未読込データの書き込みを行うバ
ッファメモリの再確保をするバッファメモリ再確保手段
と、このバッファメモリ再確保手段により前記バッファ
メモリの再確保がされた時に前記周辺装置に前記未読込
データの再送を要求する再送要求手段と、この再送要求
手段により再送を要求した前記未読込データを前記バッ
ファメモリに書き込む再送データ書き込み手段とを有す
ることを特徴とするデータ転送制御装置。
2. The data transfer control device according to claim 1, wherein the buffer memory scheduled to be reserved is not released by the buffer memory reservable predicted number calculating means, and the unread data cannot be written from the peripheral device to the buffer memory. Buffer memory re-securing means for re-securing a buffer memory for writing the unread data while reading data already written in the buffer memory from the buffer memory and transferring the data to the information processing device when data is generated; Retransmission requesting means for requesting the peripheral device to retransmit the unread data when the buffer memory is reallocated by the buffer memory reallocating means; and transmitting the unread data requested to be retransmitted by the retransmission requesting means to the buffer. Retransmission data writing means for writing to a memory. Data transfer control device.
【請求項3】 請求項1または2のいずれか1つの請求
項に記載のデータ転送制御装置であって、前記バッファ
メモリ確保可能予測数算出手段は、前記各バッファメモ
リごとにデータの書き込みに要する入力処理時間を計測
する入力処理時間計測手段と、前記入力処理時間の最小
値を入力性能として保持する入力性能保持手段と、前記
入力処理時間計測手段からの入力処理時間と前記入力性
能保持手段の保持されている前記入力処理時間とを比較
して最小値を選択し入力性能として前記入力性能保持手
段に保持させる最小値選択手段と、前記各バッファメモ
リごとにデータの読み出しに要する出力処理時間を計測
する出力処理時間計測手段と、前記出力処理時間の平均
値を出力性能として保持する出力性能保持手段と、前記
出力処理時間計測手段からの前記出力処理時間と前記出
力性能保持手段からの前記出力性能とに基づいて新しい
前記出力処理時間の平均値を算出し出力性能として前記
出力性能保持手段に保持させる平均値算出手段と、前記
出力性能保持手段からの前記出力性能および前記入力性
能保持手段からの前記入力性能に基づいて性能比を算出
する性能比算出手段と、この性能比算出手段からの前記
性能比を保持する性能比保持手段と、性能比とバッファ
メモリ確保可能予測数との対応関係を示す情報と前記性
能比保持手段からの前記性能比に基づいてバッファメモ
リ確保可能予測数を求めて出力するバッファメモリ確保
可能予測数出力手段とを有することを特徴とするデータ
転送制御装置。
3. The data transfer control device according to claim 1, wherein said buffer memory reservable predicted number calculating means is required for writing data for each of said buffer memories. An input processing time measuring unit that measures an input processing time, an input performance holding unit that holds a minimum value of the input processing time as input performance, and an input processing time from the input processing time measuring unit and the input performance holding unit. The minimum value selecting means for comparing the held input processing time with the input processing time and selecting the minimum value and holding the input performance holding means as the input performance, and the output processing time required for reading data for each of the buffer memories. Output processing time measuring means for measuring; output performance holding means for holding an average value of the output processing time as output performance; An average value calculating unit that calculates an average value of the new output processing time based on the output processing time from the stage and the output performance from the output performance holding unit and holds the output performance time as the output performance in the output performance holding unit; A performance ratio calculating unit that calculates a performance ratio based on the output performance from the output performance holding unit and the input performance from the input performance holding unit, and a performance ratio that holds the performance ratio from the performance ratio calculating unit. Holding means, a buffer memory reservable prediction for obtaining and outputting a buffer memory reservable predicted number based on the information indicating the correspondence relationship between the performance ratio and the buffer memory reservable predicted number and the performance ratio from the performance ratio retaining means A data transfer control device, comprising: a number output unit.
JP2000092526A 2000-03-29 2000-03-29 Data transfer controller Pending JP2001282711A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000092526A JP2001282711A (en) 2000-03-29 2000-03-29 Data transfer controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000092526A JP2001282711A (en) 2000-03-29 2000-03-29 Data transfer controller

Publications (1)

Publication Number Publication Date
JP2001282711A true JP2001282711A (en) 2001-10-12

Family

ID=18607850

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000092526A Pending JP2001282711A (en) 2000-03-29 2000-03-29 Data transfer controller

Country Status (1)

Country Link
JP (1) JP2001282711A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005122235A (en) * 2003-10-14 2005-05-12 Hitachi Ltd Storage device and system having communication buffer reservation function
US7272676B2 (en) 2003-05-20 2007-09-18 Seiko Epson Corporation Data transmission controller that restarts data transmission when reconstruction is completed

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7272676B2 (en) 2003-05-20 2007-09-18 Seiko Epson Corporation Data transmission controller that restarts data transmission when reconstruction is completed
JP2005122235A (en) * 2003-10-14 2005-05-12 Hitachi Ltd Storage device and system having communication buffer reservation function

Similar Documents

Publication Publication Date Title
JP4456490B2 (en) DMA equipment
JP5498505B2 (en) Resolving contention between data bursts
JP4706720B2 (en) DMA control system, printing apparatus, and transfer instruction program
JP2005056067A (en) Dma transfer controller
TWI457828B (en) Compute thread array granularity execution preemption
US9304772B2 (en) Ordering thread wavefronts instruction operations based on wavefront priority, operation counter, and ordering scheme
US20080147906A1 (en) DMA Transferring System, DMA Controller, and DMA Transferring Method
JP2001282711A (en) Data transfer controller
JP6419400B1 (en) PLC, network unit, CPU unit, and data transfer method
JP6146306B2 (en) I / O device control system and control method of I / O device control system
JP2006215621A (en) Dma controller
JP2007102447A (en) Arithmetic processor
JP2007249635A (en) Data transfer unit and data transfer method
JP2007241922A (en) Arbitration method for use of shared resource, and arbitration device therefor
JPS6115260A (en) Data processor
JP2009003633A (en) Information processor
JP3206585B2 (en) Bus control device, master device, slave device, and bus control method
JP2007018195A (en) Information processing method and information processor
JP7122942B2 (en) semiconductor equipment
JP3674207B2 (en) Peripheral device and buffer control method in half-duplex communication system
JPH0844662A (en) Information processor
JPH09204311A (en) Information processing system
JPH0844661A (en) Information processor
JP4689257B2 (en) Bus control device and information processing system
JP2007087244A (en) Co-processor and computer system