JPH0687231B2 - Buffer memory control method - Google Patents
Buffer memory control methodInfo
- Publication number
- JPH0687231B2 JPH0687231B2 JP61126869A JP12686986A JPH0687231B2 JP H0687231 B2 JPH0687231 B2 JP H0687231B2 JP 61126869 A JP61126869 A JP 61126869A JP 12686986 A JP12686986 A JP 12686986A JP H0687231 B2 JPH0687231 B2 JP H0687231B2
- Authority
- JP
- Japan
- Prior art keywords
- block
- storage device
- buffer storage
- processing unit
- central processing
- 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
Links
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
Description
【発明の詳細な説明】 (産業上の利用分野) 本発明はデータ処理装置における緩衝記憶の制御方式に
関し、特にオペランドのアクセスを効率的に実施するた
めの転送ブロツク決定方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a buffer storage control method in a data processing device, and more particularly to a transfer block determination method for efficiently performing operand access.
(従来の技術) 従来、この種の緩衝記憶制御方式における転送ブロツク
決定に関しては、アクセス要求を送出したブロツクがバ
ツフアメモリに存在しなければ、中央処理装置はそのブ
ロツクを主記憶装置からバツフアメモリへ転送する方式
が公知であつた。いつぽう、命令コードのフエツチに関
しては、プリフエツチ方式でバツフアメモリ上に現在、
必要とされているブロツクの次のブロツクを転送してお
く方式が公知である。(Prior Art) Conventionally, regarding transfer block determination in this type of buffer storage control method, if the block that sent the access request does not exist in the buffer memory, the central processing unit transfers the block from the main memory device to the buffer memory. The method was publicly known. Regarding the fetch of the instruction code, the prefetch method is currently used on the buffer memory.
A method is known in which the block next to the required block is transferred.
(発明が解決しようとする問題点) 上述した従来の緩衝記憶制御方式では、プリフエツチ方
式以外においては送出されたアクセス要求に該当するブ
ロツクを主記憶装置からバツフアメモリへ転送する方式
が公知であり、連続する領域のデータをオペランドとし
て取扱う場合には、特にスタートアドレスがブロツク境
界の近傍にあるときに現ブロツクよりも前のブロツク、
または次のブロツクを転送しておく方が効率がよい。し
かし、従来方式ではこのような判定ロジツクを備えてい
ないので、上記転送の判断をすることが不可能であると
云う欠点がある。(Problems to be Solved by the Invention) In the conventional buffer storage control method described above, a method of transferring a block corresponding to an access request sent from the main storage device to the buffer memory is known, except for the prefetch method. When the data of the area to be handled is handled as an operand, the block before the current block, especially when the start address is near the block boundary,
Or it is more efficient to transfer the next block. However, since the conventional system does not have such a judgment logic, there is a drawback that it is impossible to judge the transfer.
いつぽう、プリフエツチ方式ではブロツク境界での次ブ
ロツクの見込み転送を実施するが、これもアドレスの増
加方向での転送を行うのみであつて、単純なロジツクで
あると云う欠点がある。When the prefetch method is used, the prospective transfer of the next block at the block boundary is carried out, but this also only carries out the transfer in the direction of increasing addresses, and has the drawback that it is a simple logic.
本発明の目的は、オペランドの連続取出し方向を命令コ
ードから抽出して保持し、保持された信号をもとにして
ブロツク内アドレス情報とオペランド長情報とからバツ
フアメモリへ転送すべきブロツクを決定することにより
上記欠点を除去し、容易に転送すべきブロツクを決定で
きるように構成した緩衝記憶制御方式を提供することに
ある。An object of the present invention is to extract and hold the continuous fetch direction of operands from an instruction code, and determine the block to be transferred to the buffer memory from the address information in the block and the operand length information based on the held signal. Therefore, it is an object of the present invention to provide a buffer storage control system configured to eliminate the above-mentioned drawbacks and to easily determine a block to be transferred.
(問題点を解決するための手段) 本発明による緩衝記憶制御方式は主記憶装置と、中央処
理装置と、主記憶装置と中央処理装置との間に置かれた
緩衝記憶装置と、ブロツクナンバー比較器と、アドレス
方向指示手段と、ブロツクナンバー差分決定/加減手段
とを具備して構成したものである。(Means for Solving the Problems) The buffer storage control method according to the present invention compares a block number with a main memory, a central processing unit, a buffer storage located between the main memory and the central processing unit. And a block number difference deciding / adjusting means.
ブロツクナンバー比較器は、中央処理装置からのメモリ
アクセス要求に対して緩衝記憶装置の内部でデータが存
在しないときには、主記憶装置からブロツク転送方式で
緩衝記憶装置の内容を書換えるように、緩衝記憶装置か
ら出力されたブロツクナンバーと中央処理装置から出力
されたブロツクナンバーとを比較するためのものであ
る。The block number comparator is a buffer memory that rewrites the contents of the buffer memory from the main memory by a block transfer method when no data exists inside the buffer memory in response to a memory access request from the central processing unit. It is for comparing the block number output from the device with the block number output from the central processing unit.
アドレス方向指示手段は、オペランドの連続取出し方向
を命令コードから決定して保持するためのものである。The address direction instruction means is for determining the continuous fetch direction of the operand from the instruction code and holding it.
ブロツクナンバー差分決定/加減手段は、アドレス方向
指示手段の出力、ブロツク内アドレス情報、およびオペ
ランド長情報から緩衝記憶装置の書換えのために緩衝記
憶装置に最も効率よく転送できるブロツクを選択するた
めのものである。The block number difference determining / adjusting means is for selecting the block which can be most efficiently transferred to the buffer memory device for rewriting the buffer memory device from the output of the address direction indicating device, the address information in the block, and the operand length information. Is.
(実 施 例) 次に、本発明について図面を参照して説明する。(Example) Next, the present invention will be described with reference to the drawings.
第1図は、本発明による緩衝記憶制御方式の一実施例を
示すブロツク図である。第1図において、1は主記憶装
置、2は緩衝記憶装置、3は中央処理装置、4はアドレ
ス方向指示器、5はブロツクナンバー比較器、6はブロ
ツクナンバー差分決定回路、7はブロツクナンバー加減
器である。FIG. 1 is a block diagram showing an embodiment of the buffer storage control system according to the present invention. In FIG. 1, 1 is a main memory device, 2 is a buffer memory device, 3 is a central processing unit, 4 is an address direction indicator, 5 is a block number comparator, 6 is a block number difference determination circuit, and 7 is a block number adjustment. It is a vessel.
第1図において、主記憶装置1と中央処理装置3との間
に緩衝記憶装置2が配置され、階層化記憶構成が構築さ
れている。主記憶装置1と緩衝記憶装置2との間はブロ
ツク転送路8で接続され、要求データが緩衝記憶装置2
の内部に存在しない場合にはブロツク単位で書換えを行
う。緩衝記憶装置2と中央処理装置3との間にはデータ
バス9が接続されている。アドレス方向指示器4は実行
しようとしている命令が例えば、加算あるいは減算のよ
うにオペランド長の長い演算で、オペランドの20ビツト
側から演算を開始する場合には“1"の状態がセツトさ
れ、転送命令のように重みに関係のない場合には“0"の
状態がセツトされる。In FIG. 1, a buffer storage device 2 is arranged between a main storage device 1 and a central processing unit 3 to construct a hierarchical storage configuration. The block transfer path 8 connects the main storage device 1 and the buffer storage device 2 so that the requested data is stored in the buffer storage device
If it does not exist inside the block, it is rewritten in block units. A data bus 9 is connected between the buffer storage device 2 and the central processing unit 3. Instructions for example the address direction indicator 4 are trying to run, in the long operation of operand length as adding or subtracting, when starting the calculation from 2 0 bit side of the operands are excisional the state of "1", When it is not related to the weight like a transfer instruction, the state of "0" is set.
言いかえれば、アドレス方向指示器4の出力が“1"のと
きにはアドレスの減少方向へ順次、オペランドが取出さ
れ、出力が“0"のときにはアドレスの増加方向へ順次、
オペランドが取出されることを示している。緩衝記憶装
置2から信号線10上へ送出されたブロツクナンバーと、
中央処理装置3から信号線112へ送出されたアクセス要
求されたブロツクナンバーとをブロツクナンバー比較器
5によつて比較し、緩衝記憶装置2の内部に該当ブロツ
クが存在するか否かの判定を行う。In other words, when the output of the address direction indicator 4 is "1", the address is sequentially decreased in the decreasing direction, and when the output is "0", the address is sequentially increasing in the increasing direction.
Indicates that the operand is fetched. The block number sent from the buffer storage device 2 onto the signal line 10,
The block number comparator 5 compares the block number requested by the access and sent from the central processing unit 3 to the signal line 112 by the block number comparator 5 to determine whether or not the corresponding block exists in the buffer storage device 2. .
ブロツクナンバー比較器5によつて要求されたオペラン
ドデータが緩衝記憶装置2の内部に存在しないときに
は、信号線15を介してブロツクナンバー差分決定回路6
に対して起動信号が出力される。ブロツクナンバー差分
決定回路6においては、信号線12上の要求されたオペラ
ンドデータのブロツク内アドレス情報と、信号線13上の
オペランド長と、アドレス方向指示器4から信号線14上
に送出されたアドレス方向指示信号とから最も効率のよ
いブロツクを選択し、要求のあつたブロツクナンバー
と、選択されたブロツクナンバーとの差分を作成して信
号線16上へ送出する。ブロツクナンバー加減器7は、上
述した差分により緩衝記憶装置2へ転送すべきブロツク
ナンバーを生成して信号線17上に送出する。When the operand data requested by the block number comparator 5 does not exist in the buffer storage device 2, the block number difference determination circuit 6 is sent via the signal line 15.
A start signal is output to. In the block number difference determination circuit 6, the address information in the block of the requested operand data on the signal line 12, the operand length on the signal line 13, and the address sent from the address direction indicator 4 to the signal line 14 The most efficient block is selected from the direction indication signal, the difference between the requested block number and the selected block number is created, and the difference is sent out on the signal line 16. The block number adder / subtractor 7 generates a block number to be transferred to the buffer storage device 2 based on the difference described above, and sends it to the signal line 17.
次に、ブロツクナンバー差分決定回路6の内部での差分
決定ロジツクの実例を記述する。第2図は、この目的の
ため256バイトを1ブロツクとして構成したデータブロ
ツクを示す説明図である。Next, an actual example of the difference determination logic inside the block number difference determination circuit 6 will be described. FIG. 2 is an explanatory diagram showing a data block in which 256 bytes are configured as one block for this purpose.
現在、中央処理装置から要求のあつたオペランドは第i
番目のブロツクに存在し、緩衝記憶装置2には転送され
ないものとする。まず、アドレス方向指示器4が“0"の
状態のときには、信号線12上のブロツク内アドレス情報
が第2図の斜線のワード(ブロツク内最大アドレスの
ワード)内を示しているか否かを判定し、斜線の内部
にある場合にはオペランド長を加味してブロツク境界を
越えるか否かを判定する。ブロツク境界を越えるなら
ば、第(i+1)番目のブロツクを転送しておく方が効
率的であると決定し、差分“+1"を生成する。アドレス
方向指示器4が“1"の状態のときには、信号線12上のブ
ロツク内アドレス情報が第2図のなかののワード(ブ
ロツク内最小アドレスのワード)内を示しているか否か
を判定する。斜線の内部にある場合には、オペランド
長を加味してブロツク境界を越えているか否かを判定
し、ブロツク境界を越えるならば第(i−1)番目のブ
ロツクを転送しておく方が効果的であると決定し、差分
“−1"を生成する。これら以外の場合には、差分として
“0"を生成し、ブロツクナンバー加減器7によつて転送
ブロツクナンバーを生成する。At present, the operand requested by the central processing unit is the i-th
It is assumed that it exists in the second block and is not transferred to the buffer storage device 2. First, when the address direction indicator 4 is in the state of "0", it is judged whether or not the address information in the block on the signal line 12 is in the word in the shaded area in FIG. 2 (the word of the maximum address in the block). If it is inside the diagonal line, the operand length is taken into consideration to determine whether or not the block boundary is crossed. If the block boundary is crossed, it is determined that it is more efficient to transfer the (i + 1) th block, and the difference "+1" is generated. When the address direction indicator 4 is in the state of "1", it is judged whether or not the address information in the block on the signal line 12 indicates in the word (word of the minimum address in the block) in FIG. . If it is inside the diagonal line, it is more effective to transfer the (i-1) th block if the operand length is taken into consideration to determine whether or not it exceeds the block boundary. It is determined to be the target, and the difference “−1” is generated. In all other cases, "0" is generated as the difference, and the block number adder / subtractor 7 generates the transfer block number.
(発明の効果) 以上説明したように本発明は、オペランドのアドレス方
向を示すことができるようにしておき、ブロツク内アド
レスとオペランド長とから緩衝記憶装置へ転送すべきブ
ロツクを決定することにより、効率よく緩衝記憶装置を
使用することができると云う効果がある。As described above, according to the present invention, the address direction of the operand can be indicated, and the block to be transferred to the buffer storage device is determined from the address in the block and the operand length. The effect is that the buffer storage device can be used efficiently.
また、2回連続してブロツク転送しなければならなかつ
た最悪ケースでも、本発明によれば1回のブロツク転送
で終了させることができるため、システム全体の処理効
率も改善され、特に10進演算などのストリング命令を多
く取扱う事務用の処理装置においては処理が効率的に行
われると云う効果がある。Further, even in the worst case in which the block transfer has to be performed twice consecutively, according to the present invention, the processing can be completed by one block transfer, so that the processing efficiency of the entire system is improved, and particularly the decimal operation is performed. There is an effect that the processing is efficiently performed in the office processing device that handles many string instructions such as.
第1図は、本発明による緩衝記憶制御方式を実現する一
実施例を示すブロツク図である。 第2図は、ブロツクナンバーの差分を決定するロジツク
方式の実例を示す説明図である。 1……主記憶装置、2……緩衝記憶装置 3……中央処理装置 4……アドレス方向指示器 5……ブロツクナンバー比較器 6……ブロツクナンバー差分決定回路 7……ブロツクナンバー加減器 8……ブロツク転送路、9……データバス 10〜17……信号線FIG. 1 is a block diagram showing an embodiment for realizing the buffer storage control method according to the present invention. FIG. 2 is an explanatory diagram showing an example of a logic system for determining the difference between block numbers. 1 ... Main storage device, 2 ... Buffer storage device 3 ... Central processing unit 4 ... Address direction indicator 5 ... Block number comparator 6 ... Block number difference determination circuit 7 ... Block number adder / drainer 8 ... … Block transfer path, 9 …… Data bus 10 to 17 …… Signal line
Claims (1)
憶装置と前記中央処理装置との間に置かれた緩衝記憶装
置と、前記中央処理装置からのメモリアクセス要求に対
して前記緩衝記憶装置の内部にデータが存在しないとき
には前記主記憶装置からブロツク転送方式で前記緩衝記
憶装置の内容を書換えるように、前記緩衝記憶装置から
出力されたブロツクナンバーと前記中央処理装置から出
力されたブロツクナンバーとを比較するためのブロツク
ナンバー比較器と、オペランドの連続取出し方向を命令
コードから決定して保持するためのアドレス方向指示手
段と、前記アドレス方向指示手段の出力、ブロツク内ア
ドレス情報、およびオペランド長情報から前記緩衝記憶
装置の書換えのために前記緩衝記憶装置に最も効率よく
転送できるブロツクを選択するためのブロツクナンバー
差分決定/加減手段とを具備して構成したことを特徴と
する緩衝記憶制御方式。1. A main storage device, a central processing unit, a buffer storage device placed between the main storage device and the central processing unit, and the buffer for a memory access request from the central processing unit. When there is no data inside the storage device, the block number output from the buffer storage device and the central processing unit are output so that the contents of the buffer storage device can be rewritten by the block transfer method from the main storage device. A block number comparator for comparing with a block number, address direction indicating means for determining and holding a continuous fetch direction of an operand from an instruction code, output of the address direction indicating means, in-block address information, and A block that can be most efficiently transferred from the operand length information to the buffer storage device for rewriting the buffer storage device. Buffer storage control system, characterized by being configured to and a blow poke number difference determination / subtraction means for selecting.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61126869A JPH0687231B2 (en) | 1986-05-30 | 1986-05-30 | Buffer memory control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61126869A JPH0687231B2 (en) | 1986-05-30 | 1986-05-30 | Buffer memory control method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62282343A JPS62282343A (en) | 1987-12-08 |
| JPH0687231B2 true JPH0687231B2 (en) | 1994-11-02 |
Family
ID=14945847
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61126869A Expired - Fee Related JPH0687231B2 (en) | 1986-05-30 | 1986-05-30 | Buffer memory control method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0687231B2 (en) |
-
1986
- 1986-05-30 JP JP61126869A patent/JPH0687231B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62282343A (en) | 1987-12-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0258453B1 (en) | Instruction prefetch control apparatus | |
| JPH0772880B2 (en) | Address translation device and method | |
| US5313602A (en) | Multiprocessor system and method of control over order of transfer of data between buffer storages | |
| US5455925A (en) | Data processing device for maintaining coherency of data stored in main memory, external cache memory and internal cache memory | |
| JP2570859B2 (en) | Data processing device | |
| JPH0410102B2 (en) | ||
| JP2006018841A (en) | Cache memory system and method capable of adaptively accommodating various memory line size | |
| JP3205989B2 (en) | Information processing system | |
| JPS644214B2 (en) | ||
| JPH0326862B2 (en) | ||
| JPH0544049B2 (en) | ||
| JPS6051947A (en) | Instruction prefetching system in virtual storage computer | |
| JPS60701B2 (en) | data processing equipment | |
| JP2728591B2 (en) | Information processing device | |
| JPH0226259B2 (en) | ||
| JP3013996B2 (en) | Information processing device | |
| JPS62282343A (en) | Buffer storage control system | |
| JPS61289464A (en) | Scalar arithmetic processor | |
| JPH10187531A (en) | Cache memory prefetch method | |
| JPH0821001B2 (en) | Cache memory control method | |
| JPH0516058B2 (en) | ||
| JP3241679B2 (en) | Cache read method for large data transfer processing request from processor | |
| JPH077355B2 (en) | Information processing equipment | |
| JPH05120139A (en) | Cache memory device | |
| JP3536781B2 (en) | Bus control method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |