JPS63127352A - Common bus transfer control system - Google Patents

Common bus transfer control system

Info

Publication number
JPS63127352A
JPS63127352A JP27197586A JP27197586A JPS63127352A JP S63127352 A JPS63127352 A JP S63127352A JP 27197586 A JP27197586 A JP 27197586A JP 27197586 A JP27197586 A JP 27197586A JP S63127352 A JPS63127352 A JP S63127352A
Authority
JP
Japan
Prior art keywords
data
address
buffer
control device
memory
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
JP27197586A
Other languages
Japanese (ja)
Inventor
Toru Tejima
手島 通
Tatsuji Hamamura
達司 濱村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Dai Ichi Communications Software Ltd
Fujitsu Ltd
Original Assignee
Fujitsu Dai Ichi Communications Software Ltd
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Dai Ichi Communications Software Ltd, Fujitsu Ltd filed Critical Fujitsu Dai Ichi Communications Software Ltd
Priority to JP27197586A priority Critical patent/JPS63127352A/en
Publication of JPS63127352A publication Critical patent/JPS63127352A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To contrive to attain high speed data transfer processing by comparing an address stored in an address buffer with an address of a request data and transferring its data to a data transfer request input/output controller so as to update an operation history in case of dissidence. CONSTITUTION:A channel controller 3 compares 9 an address stored in an address buffer 7 with a memory address of a request data with respect to a data transfer request from an input/output controller 6. As a result, the operation history of an area of a data buffer 8 corresponding to the address being the result of comparison coincidence is updated into the newest information, the data is read and transferred to the input/output device 6 requesting the transfer via a common bus 5. In case of comparison dissidence, the controller 3 applies request of use of a memory bus 4 to the CPU 1 and monopolizes, the memory bus 4 to access the memory 2. Then the memory address is written in the area of the buffer 7 corresponding to the area written in the buffer 8 to update the operation history for an operation history control section 10 corresponding to the area into the newest using history.

Description

【発明の詳細な説明】 〔概要〕 チャネル制御装置にメモリから読出したデータを複数蓄
積するデータバッファを設け、入出力制御装置からのデ
ータ転送要求に対して、そのデータがデータバッファに
存在する時は、メモリをアクセスすることなく、そのデ
ータをデータバッファから入出力制御装置に共通バスを
介して転送し、メモリのアクセス回数を低減して、共通
バス転送の高速化と、メモリバスの有効利用とを図るも
のである。
[Detailed Description of the Invention] [Summary] A channel control device is provided with a data buffer that stores a plurality of data read from a memory, and in response to a data transfer request from an input/output control device, when the data exists in the data buffer, transfers the data from the data buffer to the input/output control device via the common bus without accessing the memory, reducing the number of memory accesses, speeding up common bus transfer, and making effective use of the memory bus. The aim is to

〔産業上の利用分野〕[Industrial application field]

本発明は、中央処理装置とメモリとチャネル制御装置と
がメモリバスを介して接続され、そのチャネル制御装置
と複数の入出力制御装置とが共通バスを介して接続され
たシステムに於いて、共通バスを介してデータ転送要求
の入出力制御装置にデータを転送する共通バス転送制御
方式に関するものである。
The present invention provides a system in which a central processing unit, a memory, and a channel control device are connected via a memory bus, and the channel control device and a plurality of input/output control devices are connected via a common bus. The present invention relates to a common bus transfer control method for transferring data to an input/output control device that requests data transfer via a bus.

各種のデータ処理システムに於いては、中央処理装置と
メモリとチャネル制御装置とがメモリバスを介して接続
され、チャネル制御装置に、共通バスを介して複数の入
出力制御装置が接続され、各入出力制御装置に、磁気デ
ィスク装置、プリンタ、表示装置等の各種の入出力装置
がそれぞれ接続された構成を有するものであり、中央処
理装置はメモリバスを介してメモリをアクセスしてデー
タ処理を行い、チャネル制御装置は、例えば、先行読取
りを行ってメモリから読出したデータをバッファに蓄積
し、入出力制?III装置からのデータ転送要求により
そのデータを共通バスを介して転送するものである。そ
の場合、メモリバスを有効に利用して中央処理装置の処
理能力の向上を図ることが要望されている。
In various data processing systems, a central processing unit, memory, and channel control device are connected via a memory bus, and a plurality of input/output control devices are connected to the channel control device via a common bus. It has a configuration in which various input/output devices such as magnetic disk drives, printers, and display devices are connected to the input/output control unit, and the central processing unit accesses the memory via the memory bus to process data. For example, the channel control device performs advance reading, stores the data read from memory in a buffer, and performs input/output control. In response to a data transfer request from the III device, the data is transferred via the common bus. In this case, it is desired to effectively utilize the memory bus to improve the processing capacity of the central processing unit.

〔従来の技術〕[Conventional technology]

従来のデータ処理システムは、例えば、第4図に示すよ
うに、中央処理装置(CC)21と、メモリ (MM)
22と、チャネル制御装置(CHC)23とがメモリバ
ス24を介して接続され、チャネル制御装置23と共通
バス25を介して複数の入出力制御装置(IOC)26
が接続され、チャネル制御装置23には1デ一タ分のバ
ッファ(BF)27が設けられている。又入出力制御装
置26には図示を省略した磁気ディスク装置、プリンタ
、表示装置等の各種の入出力装置が接続される。
For example, as shown in FIG. 4, a conventional data processing system includes a central processing unit (CC) 21 and a memory (MM).
22 and a channel control device (CHC) 23 are connected via a memory bus 24, and a plurality of input/output control devices (IOC) 26 are connected via a common bus 25 to the channel control device 23.
is connected, and the channel control device 23 is provided with a buffer (BF) 27 for one data. Further, various input/output devices (not shown) such as a magnetic disk device, a printer, and a display device are connected to the input/output control device 26.

チャネル制御装置23は、メモリバス24の使用権を獲
得してメモリ22をアクセスし、読出したデータをバッ
ファ27に一時蓄積し、専有したメモリバス24を開放
する。そして、データ転送要求入出力制御装置26にバ
ッファ27から共通バス25を介してデータを転送する
The channel control device 23 acquires the right to use the memory bus 24, accesses the memory 22, temporarily stores the read data in the buffer 27, and releases the exclusive memory bus 24. Then, data is transferred from the buffer 27 to the data transfer request input/output control device 26 via the common bus 25.

処理能力を向上させる為、中央処理装置21を32ビツ
ト・プロセッサとした場合、メモリ22と接続されるメ
モリバス24は32ビツト幅のものとなる。又入出力制
御装置26には、中央処理装置21程の処理能力は要求
されない為、16ビツトのプロセッサを採用した場合、
共通バス25は16ビツト幅を有するものとなり、メモ
リ22から読出した32ビツトのデータがバッファ27
に一時蓄積され、その32ビツトのデータの上位16ビ
ツト或いは下位16ビツトのデータが、入出力制御装置
26からのデータ転送要求に対応して選択され、バッフ
ァ27から共通バス25に送出される。
In order to improve processing performance, if the central processing unit 21 is a 32-bit processor, the memory bus 24 connected to the memory 22 will have a width of 32 bits. In addition, the input/output control unit 26 does not require as much processing power as the central processing unit 21, so if a 16-bit processor is used,
The common bus 25 has a width of 16 bits, and the 32-bit data read from the memory 22 is transferred to the buffer 27.
The upper 16 bits or lower 16 bits of the 32-bit data are selected in response to a data transfer request from the input/output control unit 26 and sent from the buffer 27 to the common bus 25.

又チャネル制御装置23は、命令の先行読出機能を有す
るものであり、人出力制御装置26が要求する命令が格
納されるメモリ22のアドレスの次のアドレスに格納さ
れる命令を予め読出して、バッファメモリに格納するこ
とによって、チャネル制御装置23と入出力制御装置2
6との間のデータ転送を高速化している。
In addition, the channel control device 23 has a function of pre-reading instructions, and reads in advance the instruction stored at the address next to the address of the memory 22 where the instruction requested by the human output control device 26 is stored, and stores it in the buffer. By storing it in memory, the channel control device 23 and the input/output control device 2
This speeds up the data transfer between 6 and 6.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

成る1台の入出力制御装置26からのデータ転送要求が
連続してチャネル制御装置23に加えられる場合、一般
には連続したアドレスにそれらのデータが存在する場合
が多いものである。例えば、メモリ22から読出した3
2ビツトのデータを一部バッファ27に蓄積し、第1回
目のデータ転送要求によりその上位16ビツトを共通バ
ス25に送出し、第2回目のデータ転送要求により下位
16ビツトを共通バス25に送出すれば済む場合が多い
ものである。このような場合は、入出力制鍵装置からの
2回のデータ転送要求に対して、メモリアクセスは1回
で済むことになる。
When data transfer requests from a single input/output control device 26 are continuously applied to the channel control device 23, the data generally exist at consecutive addresses in many cases. For example, 3 read from memory 22
Part of the 2-bit data is stored in the buffer 27, the upper 16 bits are sent to the common bus 25 by the first data transfer request, and the lower 16 bits are sent to the common bus 25 by the second data transfer request. In many cases, you can get away with it. In such a case, only one memory access is required for two data transfer requests from the input/output key control device.

これに対して、複数の入出力制御装置が交互にデータ転
送要求を行った場合、それぞれが要求するデータが連続
したアドレスに存在することは殆どなく、従って、デー
タ転送要求毎にメモリ22をアクセスし、読出した32
ビツトのデータをメモリバス24を介してバッファ27
に一時蓄積し、その上位16ビツト或いは下位16ビツ
トをデータ転送要求に従って共通バス25に送出するこ
とになる。このように、データ転送要求毎にメモリバス
24をチャネル制御装置23が専有するので、中央処理
装置21でメモリバス24を、専有する時間が短くなり
、処理能力が低下する場合がある。このような問題点は
、チャネル制御装置23が命令の先行読出しを行う場合
も同様である。
On the other hand, when multiple input/output control devices make data transfer requests alternately, the data requested by each device almost never exists in consecutive addresses, and therefore the memory 22 is accessed for each data transfer request. and read out 32
The bit data is transferred to the buffer 27 via the memory bus 24.
The upper 16 bits or the lower 16 bits are sent to the common bus 25 in accordance with a data transfer request. In this way, since the channel control device 23 monopolizes the memory bus 24 for each data transfer request, the time that the central processing unit 21 monopolizes the memory bus 24 becomes shorter, which may reduce processing performance. These problems also occur when the channel control device 23 performs advance reading of instructions.

本発明は、チャネル制御装置によるメモリバスの専有時
間を短くし、中央処理装置の処理能力の向上を図ると共
に、共通バス25の転送速度を向上することを目的とす
るものである。
An object of the present invention is to shorten the time that a channel control device occupies a memory bus, improve the processing capacity of a central processing unit, and improve the transfer speed of the common bus 25.

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

本発明の共通バス転送制御方式は、チャネル制御装置に
複数データを蓄積できるデータバッファを設けて、複数
の入出力制御装置からのデータ転送要求に対処するもの
であり、第1図を参照して説明する。
The common bus transfer control method of the present invention is to deal with data transfer requests from a plurality of input/output control devices by providing a data buffer that can store a plurality of data in a channel control device. explain.

プロセッサ(CC)1とメモリ (MM)2とチャネル
制御装置(CHC)3とがメモリバス4を介して接続さ
れ、チャネル制御装置3は、入出力制御装置(IOC)
6が要求する命令の先行読出しを行うことができるもの
であり、このチャネル制御部W3に、メモリバス4のバ
ス幅例えば32ビツト幅より狭いバス幅例えば16ビツ
ト幅の共通バス5を介して複数の入出力制御装置6が接
続され、メモリ2から読出したデータを、チャネル制御
装置3から共通バス5を介して入出力制御装置6に転送
する方式に於いて、チャネル制御装置3に、メモリ2の
アクセスアドレスと読出データとを対応させて記憶する
領域を複数有するアドレスバッファ (ADB)7及び
データバッファ (DB)8と、アドレス比較を行う比
較部9と、データバッファ8の使用履歴を記録する使用
履歴制御部lOとを設ける。
A processor (CC) 1, a memory (MM) 2, and a channel control device (CHC) 3 are connected via a memory bus 4, and the channel control device 3 is an input/output control device (IOC).
The channel control unit W3 is connected to a plurality of channels via a common bus 5 having a bus width narrower than the bus width of the memory bus 4, for example 32 bits, for example 16 bits. In this method, an input/output control device 6 is connected to the channel control device 3, and data read from the memory 2 is transferred from the channel control device 3 to the input/output control device 6 via the common bus 5. An address buffer (ADB) 7 and a data buffer (DB) 8 each having a plurality of areas for storing access addresses and read data in correspondence with each other, a comparison unit 9 that performs address comparison, and a usage history of the data buffer 8 are recorded. A usage history control unit IO is provided.

チャネル制御装置3は、入出力制御装置6からの要求デ
ータのアドレスと、アドレスバッファ7に記憶されたア
ドレスとを比較部9により比較し、比較一致の場合に、
その比較一致アドレスに対応する使用履歴を最新使用に
更新し、且つ対応するデータバッファ8の領域からのデ
ータを、データ転送要求入出力制御装置に共通バス5を
介して転送する。又比較不一致の場合は、データ転送要
求のアドレスに従ってメモリ2からデータを読出し、そ
のデータを、使用履歴制御部10によって示されるデー
タバッファ8の例えば最古使用の領域に書込み、そのデ
ータを共通バス5を介してデータ転送要求入出力制御装
置へ転送し、又使用履歴制御部10の最古使用であった
使用履歴を最新使用に更新する。
The channel control device 3 compares the address of the request data from the input/output control device 6 with the address stored in the address buffer 7 using the comparison section 9, and if the comparison matches,
The usage history corresponding to the comparison matching address is updated to the latest usage, and data from the corresponding area of the data buffer 8 is transferred to the data transfer request input/output control device via the common bus 5. If the comparison does not match, read the data from the memory 2 according to the address of the data transfer request, write the data to, for example, the oldest used area of the data buffer 8 indicated by the usage history control unit 10, and transfer the data to the common bus. 5, the data transfer request is transferred to the input/output control device, and the usage history of the usage history control unit 10, which was the oldest usage, is updated to the latest usage.

〔作用〕[Effect]

チャネル制御装置3に於けるデータバッファ8とアドレ
スバッファ7とに、入出力制御装置6からのデータ転送
要求によってメモリ2から読出したデータと、そのアド
レスとを対応させて記憶させるものである。又使用履歴
制御部10は、アドレスバッファ7と対応したデータバ
ッファ8の領域の使用履歴を記憶しているもので、メモ
リ2からデータを読出した時には、データバッファ8の
領域対応の使用履歴に従ってそのデータを書込むもので
、例えば、最古使用の領域にそのデータを書込むように
制御するものである。そして、その領域については最新
使用に更新し、最新使用の領域は最新から2番目使用に
更新し、以下同様に更新する。
Data read from the memory 2 in response to a data transfer request from the input/output control device 6 and its address are stored in a data buffer 8 and an address buffer 7 in the channel control device 3 in correspondence with each other. Further, the usage history control unit 10 stores the usage history of the area of the data buffer 8 corresponding to the address buffer 7, and when data is read from the memory 2, it is read out according to the usage history of the area of the data buffer 8. It is used to write data, for example, to control the data to be written in the oldest used area. Then, that area is updated to the most recently used area, the most recently used area is updated to the second most recently used area, and so on.

入出力制御装置6からのデータ転送要求に対して、その
アドレスと、アドレスバッファ7に記憶されたアドレス
とを比較部9に於いて比較し、比較一致の場合は、要求
するデータがデータバッファ8に存在することになるか
ら、メモリ2をアクセスすることなく、対応する使用履
歴を最新使用に更新し、データバッファ8から直ちにデ
ータを読出して共通バス5に送出する。
In response to a data transfer request from the input/output control device 6, the comparator 9 compares the address with the address stored in the address buffer 7, and if they match, the requested data is transferred to the data buffer 8. Therefore, without accessing the memory 2, the corresponding usage history is updated to the latest usage, and the data is immediately read from the data buffer 8 and sent to the common bus 5.

又アドレス比較の結果、不一致の場合は、要求するデー
タがデータバッファ8に存在しないので、メモリ2をア
クセスしてデータを読出す。このデータは、使用履歴制
御部10の制御に従ってデータバッファ8に書込まれ、
それに対応するアドレスがアドレスバッファ7に書込ま
れる。又データバッファ8の領域の使用履歴が更新され
る。例えば、使用履歴の古いものから順次破棄されて、
その領域に読出されたデータが書込まれる。
If the address comparison results in a mismatch, the requested data does not exist in the data buffer 8, so the memory 2 is accessed and the data is read out. This data is written to the data buffer 8 under the control of the usage history control unit 10,
The corresponding address is written to address buffer 7. Also, the usage history of the area of the data buffer 8 is updated. For example, items with the oldest usage history are discarded in order,
The read data is written into that area.

〔実施例〕〔Example〕

以下図面を参照して本発明の実施例について詳細に説明
する。
Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は本発明の実施例のブロック図であり、lは中央
処理装置(CC)、2はメモリ (MM)、3はチャネ
ル制御装置(CHC) 、4はメモリバス、5は共通バ
ス、6は入出力制御装置(10C)、7はアドレスバッ
ファ (ADB) 、8はデータバッファ (DB)、
9は比較部、10は使用履歴制御部である。
FIG. 1 is a block diagram of an embodiment of the present invention, where l is a central processing unit (CC), 2 is a memory (MM), 3 is a channel control unit (CHC), 4 is a memory bus, 5 is a common bus, 6 is an input/output control device (10C), 7 is an address buffer (ADB), 8 is a data buffer (DB),
9 is a comparison section, and 10 is a usage history control section.

中央処理装置1とメモリ2とチャネル制御装置3とを接
続するメモリバス4は、例えば、32ビツト幅であり、
チャネル制御装置3と複数の人出力制御装置6とを接続
する共通バス5は、例えば、16ビツト幅である。各入
出力制御装置6には図示を省略した磁気ディスク装置、
プリンタ、表示装置等の各種の入出力装置が接続される
The memory bus 4 that connects the central processing unit 1, memory 2, and channel control device 3 has a width of 32 bits, for example.
The common bus 5 connecting the channel control device 3 and the plurality of human output control devices 6 has a width of, for example, 16 bits. Each input/output control device 6 includes a magnetic disk device (not shown),
Various input/output devices such as printers and display devices are connected.

チャネル制御装置3に、入出力制御装置6からの要求に
よりメモリ2をアクセスするアドレスと、そのアドレス
から読出されたデータとを対応させて記憶する領域を?
1数有するアドレスバッファ7とデータバッファ8とを
設け、更に、このアドレスバッファ7内のアドレスと、
入出力制御装置6から要求されたアドレスとを比較する
比較部9と、データバッファ8の各領域の使用履歴を記
憶し、その記録に従ってデータバッファ8を制御する使
用履歴制御部10とを設ける。
Is there an area in the channel control device 3 to store an address for accessing the memory 2 in response to a request from the input/output control device 6 in correspondence with data read from that address?
An address buffer 7 and a data buffer 8 each having one number are provided, and the address in this address buffer 7 and
A comparison section 9 that compares the address requested by the input/output control device 6, and a usage history control section 10 that stores the usage history of each area of the data buffer 8 and controls the data buffer 8 according to the record are provided.

入出力制御装置6からのデータ転送要求に対して、チャ
ネル制御装置3は、アドレスバッファ7に記憶されたア
ドレスと、要求データのメモリアドレスとを比較部9に
於いて比較する。比較−敗の場合は、要求データがデー
タバッファ8に記憶されていることを示すので、比較一
致したアドレス対応のデータバッファ8の領域の使用履
歴を最新使用に更新し、且つデータを読出し、そのデー
タを共通バス5を介してデータ転送要求入出力制御装置
6に転送する。従って、メモリ2をアクセスしないで、
データバッファ8から読出したデータを転送することが
できるので、メモリバス4を使用しないで済むことにな
る。
In response to a data transfer request from the input/output control device 6, the channel control device 3 compares the address stored in the address buffer 7 with the memory address of the requested data in the comparator 9. If the comparison fails, it indicates that the requested data is stored in the data buffer 8. Therefore, the usage history of the area of the data buffer 8 corresponding to the address that matched the comparison is updated to the latest usage, and the data is read and stored. The data is transferred to the data transfer request input/output control device 6 via the common bus 5. Therefore, without accessing memory 2,
Since the data read from the data buffer 8 can be transferred, the memory bus 4 does not need to be used.

又比較不一致の場合は、データバッファ8に要求データ
が記憶されていないことを示すので、チャネル制御装置
3は、中央処理装置1にメモリバス4の使用要求を行い
、そのメモリバス4を専有してメモリ2をアクセスする
。それによって読出されたデータを、使用履歴制御部1
0によって示されるデータバッファ8の例えば最古使用
領域に書込み、且つそのデータを共通ハス5を介してデ
ータ転送要求入出力制御装置6に転送する。そして、デ
ータバッファ8に書込んだ領域対応のアドレスバッファ
7の領域にメモリアドレスを書込み、使用履歴制御部1
0の領域対応の使用履歴を最新使用に更新する。
If the comparison does not match, this indicates that the requested data is not stored in the data buffer 8, so the channel control device 3 requests the central processing unit 1 to use the memory bus 4 and uses the memory bus 4 exclusively. to access memory 2. The data thus read is stored in the usage history control unit 1.
The data is written to, for example, the oldest used area of the data buffer 8 indicated by 0, and the data is transferred to the data transfer request input/output control device 6 via the common lot 5. Then, the memory address is written to the area of the address buffer 7 corresponding to the area written to the data buffer 8, and the usage history control unit 1
Update the usage history corresponding to area 0 to the latest usage.

第2図は本発明の実施例の動作説明図であり、メモリ2
のアドレスAi  (+=1.2,3.  ・・・)に
、上位16ビツトのデータDiaと、下位16ビツトの
データDibとの合計32ビツトのデータがそれぞれ格
納され、アドレスバッファ7の領域#1.#2.  ・
・・#mにそれぞれアドレスA I 、 A 4. A
 2.  ・・・Akカ記4.1すh、そのアドレス対
応のデータDla、Dlb、  ・・・Dka、Dkb
がデータバッファ8に記憶されている場合に、入出力制
御装置6からデータ転送要求がチャネル制御装置3に加
えられ、要求データのアドレスが実線枠で示すように、
Alb(Albは、メモリアドレスA1のデータの下位
16ビツトのデータDlbを要求することを示し、Al
b(又はAla)のb(又はa)は、32ビツトのデー
タのうち、下位(又は上位)を示す〕の時、比較部9に
於いては、このアドレス最下位ビソトbを除くアドレス
Atとアドレスバッファ7に記憶されたアドレスとを比
較する。
FIG. 2 is an explanatory diagram of the operation of the embodiment of the present invention, in which the memory 2
A total of 32 bits of data, consisting of the upper 16 bits of data Dia and the lower 16 bits of data Dib, is stored in the address Ai (+=1.2, 3, . . . ) of the area # of the address buffer 7. 1. #2.・
...#m has addresses A I and A 4. A
2. ...Ak 4.1h, data corresponding to the address Dla, Dlb, ...Dka, Dkb
is stored in the data buffer 8, a data transfer request is applied from the input/output control device 6 to the channel control device 3, and the address of the requested data is as shown by the solid line frame.
Alb (Alb indicates that the lower 16 bits of data Dlb of the data at memory address A1 is requested;
When b (or a) of b (or Ala) indicates the lower (or higher) of the 32-bit data, the comparator 9 compares the address At with the exception of the lowest bit bit b. The address stored in address buffer 7 is compared.

この場合、アドレスバッファ7の#1領域に記憶された
アドレスA1と一致するので、比較部9は、このアドレ
スバッファ7の#l領域に対応する使用履歴を最新使用
に更新し、#1領域に対応するデータバッファ8の#1
領域から、アドレス最下位ビットbにより示される下位
16ビツトのデータDlbを読出し、実線で示すように
共通バス5を介してデータ転送要求入出力制御装置6へ
転送する。従って、メモリバス4を使用することなく、
データ転送要求があった入出力制御装置6ヘデータを直
ちに転送することができる。
In this case, since it matches the address A1 stored in the #1 area of the address buffer 7, the comparator 9 updates the usage history corresponding to the #l area of this address buffer 7 to the latest usage, and stores the address in the #1 area. #1 of the corresponding data buffer 8
The lower 16 bits of data Dlb indicated by the least significant bit b of the address are read from the area and transferred to the data transfer request input/output controller 6 via the common bus 5 as shown by the solid line. Therefore, without using memory bus 4,
Data can be immediately transferred to the input/output control device 6 that has received a data transfer request.

又他の入出力制御装置6からデータ転送要求がチャネル
制御装置3に加えられ、要求データのアドレスが点線枠
で示すようにA3aの場合、前述の場合と同様に、比較
部9に於いてこのアドレスA3aのうちのA3と、アド
レスバッファ7に記憶されているアドレスとを比較する
。そして、この場合に、比較一致するアドレスが記憶さ
れていないとすると、メモリバス4を専有し、メモリ2
のアドレスA3からデータD3a、D3bを読出し、使
用履歴制御部10によるデータバッファ8の最古使用の
領域にそのデータD3a、D3bを書込み、アドレスA
3aのaに対応して上位16ビツトのデータD3aを点
線で示すように、共通バス5を介してデータ転送要求入
出力制御装置6へ転送する。
Further, when a data transfer request is applied to the channel control device 3 from another input/output control device 6 and the address of the requested data is A3a as shown by the dotted line frame, the comparator 9 transfers this request as in the case described above. A3 of the addresses A3a and the address stored in the address buffer 7 are compared. In this case, if a matching address is not stored, the memory bus 4 is occupied and the memory 2
The data D3a and D3b are read from the address A3 of the address A3, and the data D3a and D3b are written to the oldest used area of the data buffer 8 by the usage history control unit 10.
Corresponding to a of 3a, the upper 16 bits of data D3a are transferred to the data transfer request input/output control device 6 via the common bus 5, as shown by the dotted line.

この場合、最古使用の領域が#2であるとすると、デー
タD4a、D4bが記憶されていた領域に、今回読出さ
れたデータD3a、D3bが書込まれ、又アドレスバッ
ファ7の#2領域にアドレスA3が書込まれる。又使用
履歴制御部10の#2領域の最古使用の履歴を最新使用
に更新する。
In this case, assuming that the oldest used area is #2, the currently read data D3a and D3b are written to the area where data D4a and D4b were stored, and the #2 area of address buffer 7 is written to the area where data D4a and D4b were stored. Address A3 is written. Also, the oldest usage history in area #2 of the usage history control unit 10 is updated to the latest usage history.

このように上位16ビツトのデータD3aを人出力制御
装置6が要求し、次に他の入出力制御装置が他のデータ
を要求した後、再び先の入出力制御装置6が連続したア
ドレスのデータとして、下位16ビツトのデータD3b
を要求する場合が多いものであり、この場合には、デー
タバッファ8に下位16ビツトのデータD3bが記憶さ
れているので、メモリ2をアクセスすることなく、直ち
にそのデータD3bを共通バス5を介して転送すことが
できる。
In this way, after the human output control device 6 requests the data D3a of the upper 16 bits, and then another input/output control device requests other data, the previous input/output control device 6 again requests the data at consecutive addresses. As, lower 16 bit data D3b
In this case, since the lower 16 bits of data D3b are stored in the data buffer 8, the data D3b is immediately sent via the common bus 5 without accessing the memory 2. can be transferred.

第3図は使用履歴制御部の動作説明図であり、バッファ
領域が#1〜#5の場合に、各領域対応にL1〜L5の
5段のシフトレジスタから構成し、使用履歴は、“1”
のシフト位置で表し、1段目の“l”を最新使用(1)
、5段目の“1”を最古使用(5)とする。
FIG. 3 is an explanatory diagram of the operation of the usage history control unit. When the buffer areas are #1 to #5, it is composed of five stages of shift registers L1 to L5 corresponding to each area, and the usage history is “1”. ”
It is expressed by the shift position of , and the first stage "l" is the latest used (1)
, the "1" in the fifth row is the oldest used (5).

(a)は初期状態の一例で、バッファ領域#1から順次
バッファ領域#5までデータが書込まれた場合を示す。
(a) is an example of an initial state, in which data is sequentially written from buffer area #1 to buffer area #5.

即ち、使用されたバッファ領域対応のシフトレジスタに
“l”が順次シフトされ、使用履歴としては、バッファ
領域#1が最古使用(5)となり、バッファ領域#5が
最新使用(1)となっている場合を示す。
That is, "l" is sequentially shifted to the shift register corresponding to the used buffer area, and as a usage history, buffer area #1 becomes the oldest used (5) and buffer area #5 becomes the latest used (1). Indicates when

(alの状態に於いて、最古使用(5)の領域を使用す
るものであるが、それ以外の例えばバッファ領域#3が
使用された場合、使用を示す“1”を#3対応のシフト
レジスタに加えると共に、その#3対応のシフトレジス
タの3段目L3に“1”がシフトされているので、この
“1”が存在する3段目L3までを各シフトレジスタの
シフト範囲として1ビツトシフトを行わせる。それによ
って(b)に示す状態となり、#1.#2の使用履歴は
変わらず、#3は(3)から最新使用の(1)に更新さ
れ、#4、#5は、使用履歴が(2)から(3)へ、又
(1)から(2)へ更新される。
(In the state of al, the oldest used area (5) is used, but if another area, for example buffer area #3, is used, shift "1" indicating use to #3) In addition to adding it to the register, "1" is shifted to the third stage L3 of the shift register corresponding to #3, so the shift range of each shift register is 1 bit shifted up to the third stage L3 where this "1" exists. As a result, the state shown in (b) is reached, the usage history of #1 and #2 remains unchanged, #3 is updated from (3) to the latest usage (1), and #4 and #5 are The usage history is updated from (2) to (3) and from (1) to (2).

(b)の状態に於いて、最古使用(5)のバッファ領域
#1を使用した場合、又は新しいアドレスをバッファに
加える場合、#l対応のシフトレジスタの5段目に“l
”が存在するので、シフト範囲は5段目までとなり、(
b)の状態からそれぞれ1ビツトシフトされて、(C)
に示す状態となる。従って、バッファ領域#1は最新使
用(1)となり、バッファ領域#2は最古使用(5)と
なる。
In state (b), if the oldest used buffer area #1 (5) is used, or if a new address is added to the buffer, "l" is placed in the fifth stage of the shift register corresponding to #l.
” exists, the shift range is up to the 5th gear, and (
Shifted by 1 bit from the state in b), (C)
The state shown in is reached. Therefore, buffer area #1 is the most recently used (1), and buffer area #2 is the oldest used (5).

バッファの使用履歴制御は、他の手段でも実現すること
が可能であるが、この実施例は、バッファ領域対応のシ
フトレジスタのシフト制御によってバッファ領域の使用
履歴を記録することができるものであり、最新使用(1
)や最古使用(5)はシフトレジスタの“1”の位置で
節単に判断することができるから、使用履歴の記録及び
バッファ制御の高速化を図ることができる。
Buffer usage history control can be realized by other means, but in this embodiment, the usage history of the buffer area can be recorded by shift control of the shift register corresponding to the buffer area, Latest use (1
) and oldest used (5) can be easily determined based on the "1" position of the shift register, making it possible to record usage history and speed up buffer control.

又メモリハス4や共通バス5のハス幅は、前述の実施例
にのみ限定されるものではなく、システムに対応して種
々の組合せを採用することができるものである。
Further, the widths of the memory lotus 4 and the common bus 5 are not limited to those of the above-described embodiments, and various combinations can be adopted depending on the system.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明は、共通バス5を介してチ
ャネル制御装置3と複数の入出力制御装置6とが接続さ
れ、入出力制御装置6からのデータ転送要求、又はチャ
ネル制御装置3が入出力制御装置6の要求する命令をメ
モリ2から先行読出しする機能を有する場合、アドレス
バッファ7に記憶されたアドレスと、要求データのアド
レスとを比較部9で比較し、比較一致の場合には、対応
する使用履歴制御部10の使用履歴を更新し、データバ
ッファ8に記憶されているデータを、データ転送要求入
出力制御装置6に共通バス5を介して転送する。又比較
不一致の場合は、メモリ2をアクセスしてデータを読出
し、そのデータをデータバッファ8に、且つアドレスを
アドレスバッファ7にそれぞれ対応させて記憶し、その
データをデータ転送要求入出力制御装置6に共通バス5
を介して転送し、使用履歴制御部10に於ける使用履歴
を更新するものであり、複数の入出力制御装置から交互
にデータ転送要求があった場合に、データバッファ8に
記憶されているデータについて要求される場合が比較的
多くなることから、チャネル制御装置3によるメモリバ
ス4の使用頻度が少なくなり、中央処理装置1の処理速
度が向上する利点がある。又データバッファ8に要求デ
ータが存在する場合は、データ転送処理が高速化される
利点がある。
As explained above, in the present invention, the channel control device 3 and the plurality of input/output control devices 6 are connected via the common bus 5, and the data transfer request from the input/output control device 6 or the channel control device 3 is When the input/output control device 6 has a function of pre-reading the requested instruction from the memory 2, the address stored in the address buffer 7 and the address of the requested data are compared in the comparison section 9, and if they match, the , updates the usage history of the corresponding usage history control unit 10, and transfers the data stored in the data buffer 8 to the data transfer request input/output control device 6 via the common bus 5. If the comparison does not match, the memory 2 is accessed to read the data, the data is stored in the data buffer 8, the address is stored in the address buffer 7, and the data is sent to the data transfer request input/output control device 6. common bus 5
is used to update the usage history in the usage history control unit 10, and when there are alternate data transfer requests from multiple input/output control devices, the data stored in the data buffer 8 Since there are relatively many requests for this, the channel control device 3 uses the memory bus 4 less frequently, which has the advantage of improving the processing speed of the central processing unit 1. Further, when the requested data exists in the data buffer 8, there is an advantage that the data transfer processing speed is increased.

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

第1図は本発明の実施例のブロック図、第2同第 は本発明の実施例の動作説明図、帯3図は使用履歴制御
部の動作説明図、第4図は従来例の説明図である。 ■は中央処理装置(CC) 、2はメモリ(MM)、3
はチャネル制御装置(CHC) 、4はメモリバス、5
は共通バス、6は入出力制御装置(IOC)、7はアド
レスバッファ (ADB) 、8はデータバッファ (
DB) 、9は比較部、10は使用履歴制御部である。
Fig. 1 is a block diagram of the embodiment of the present invention, Fig. 2 is an explanatory diagram of the operation of the embodiment of the present invention, Fig. 3 is an explanatory diagram of the operation of the usage history control section, and Fig. 4 is an explanatory diagram of the conventional example. It is. ■ is the central processing unit (CC), 2 is the memory (MM), 3
is a channel control unit (CHC), 4 is a memory bus, 5 is a
is a common bus, 6 is an input/output controller (IOC), 7 is an address buffer (ADB), and 8 is a data buffer (
DB), 9 is a comparison section, and 10 is a usage history control section.

Claims (1)

【特許請求の範囲】 プロセッサ(1)とメモリ(2)とチャネル制御装置(
3)とがメモリバス(4)を介して接続され、前記チャ
ネル制御装置(3)に共通バス(5)を介して複数の入
出力制御装置(6)が接続され、前記メモリ(2)から
のデータを前記チャネル制御装置(3)を介して前記入
出力制御装置(6)に前記共通バス(5)を介して転送
する共通バス転送制御方式に於いて、 前記チャネル制御装置(3)に、前記メモリ(2)のア
クセスアドレスと読出データとを対応させてそれぞれ記
憶するアドレスバッファ(7)及びデータバッファ(8
)と、アドレス比較を行う比較部(9)と、前記データ
バッファ(8)の使用履歴を記録する使用履歴制御部(
10)とを設け、 該チャネル制御装置(3)は、前記入出力制御装置(6
)からのデータ転送要求のアドレスと、前記アドレスバ
ッファ(7)に記憶されたアドレスとを前記比較部(9
)により比較し、 比較一致の場合は、比較一致アドレスに対応する前記使
用履歴制御部(10)の使用履歴を更新し、前記データ
バッファ(8)のデータを、前記共通バス(5)を介し
てデータ転送要求入出力制御装置(6)に転送し、 比較不一致の場合は、前記データ転送要求のアドレスに
従って前記メモリ(2)からデータを読出し、該データ
を、前記使用履歴制御部(10)による制御に従って前
記データバッファ(8)に書込み、且つ該データを前記
共通バス(5)を介してデータ転送要求入出力制御装置
(6)に転送し、前記使用履歴制御部(10)の使用履
歴を更新する ことを特徴とする共通バス転送制御方式。
[Claims] A processor (1), a memory (2), and a channel control device (
3) are connected via a memory bus (4), a plurality of input/output control devices (6) are connected to the channel control device (3) via a common bus (5), and a plurality of input/output control devices (6) are connected to the channel control device (3) via a common bus (5). In the common bus transfer control method of transferring data from the channel control device (3) to the input/output control device (6) via the common bus (5), the channel control device (3) , an address buffer (7) and a data buffer (8) that store the access address of the memory (2) and read data in correspondence, respectively.
), a comparison unit (9) that performs address comparison, and a usage history control unit (
10), and the channel control device (3) is connected to the input/output control device (6).
) and the address stored in the address buffer (7).
), and if the comparison matches, the usage history of the usage history control unit (10) corresponding to the comparison matching address is updated, and the data in the data buffer (8) is transferred via the common bus (5). and transfers the data transfer request to the input/output control unit (6), and if the comparison does not match, reads the data from the memory (2) according to the address of the data transfer request, and transfers the data to the usage history control unit (10). writes the data into the data buffer (8) under the control of the data transfer request input/output control device (6) via the common bus (5), and records the usage history of the usage history control unit (10). A common bus transfer control method characterized by updating.
JP27197586A 1986-11-17 1986-11-17 Common bus transfer control system Pending JPS63127352A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27197586A JPS63127352A (en) 1986-11-17 1986-11-17 Common bus transfer control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27197586A JPS63127352A (en) 1986-11-17 1986-11-17 Common bus transfer control system

Publications (1)

Publication Number Publication Date
JPS63127352A true JPS63127352A (en) 1988-05-31

Family

ID=17507408

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27197586A Pending JPS63127352A (en) 1986-11-17 1986-11-17 Common bus transfer control system

Country Status (1)

Country Link
JP (1) JPS63127352A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011138401A (en) * 2009-12-28 2011-07-14 Fujitsu Ltd Processor system, method of controlling the same, and control circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011138401A (en) * 2009-12-28 2011-07-14 Fujitsu Ltd Processor system, method of controlling the same, and control circuit

Similar Documents

Publication Publication Date Title
EP0284663B1 (en) Method of handling disk sector errors in dasd cache
US5293618A (en) Method for controlling access to a shared file and apparatus therefor
US5313602A (en) Multiprocessor system and method of control over order of transfer of data between buffer storages
JPS63127352A (en) Common bus transfer control system
JP2570753B2 (en) Data transfer control device
US6594710B1 (en) Apparatus and method for a random access peripheral unit
US5933856A (en) System and method for processing of memory data and communication system comprising such system
JP2703255B2 (en) Cache memory writing device
JP3472357B2 (en) Information processing device
JPH0736806A (en) Dma system
JPH07152650A (en) Cache control unit
JPH05100926A (en) Input/output managing system
JPH0612363A (en) Memory controller and multiprocessor system
JPS5815877B2 (en) Buffer memory control method
JP2594567B2 (en) Memory access control device
JPS62271029A (en) Disk cache control system
US20030120862A1 (en) Controlling method of storage apparatus, and storage apparatus, disk array device, and disk controller used in the method thereof
JPS6349257B2 (en)
JPH0567975B2 (en)
JPH02259945A (en) Storing processing system
JPH04245346A (en) Microcomputer system
JPS635432A (en) Microprocessor
JPS61211752A (en) Page hysteresis memory device
JPS63239549A (en) Data chaining control system
JPS6349924A (en) Rapid disk access device