Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS5856175B2 - Buffer memory control method - Google Patents
[go: Go Back, main page]

JPS5856175B2 - Buffer memory control method - Google Patents

Buffer memory control method

Info

Publication number
JPS5856175B2
JPS5856175B2 JP54152715A JP15271579A JPS5856175B2 JP S5856175 B2 JPS5856175 B2 JP S5856175B2 JP 54152715 A JP54152715 A JP 54152715A JP 15271579 A JP15271579 A JP 15271579A JP S5856175 B2 JPS5856175 B2 JP S5856175B2
Authority
JP
Japan
Prior art keywords
block
data
replacement
buffer memory
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.)
Expired
Application number
JP54152715A
Other languages
Japanese (ja)
Other versions
JPS5677966A (en
Inventor
明寿 梶山
和之 清水
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
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 Ltd filed Critical Fujitsu Ltd
Priority to JP54152715A priority Critical patent/JPS5856175B2/en
Publication of JPS5677966A publication Critical patent/JPS5677966A/en
Publication of JPS5856175B2 publication Critical patent/JPS5856175B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Description

【発明の詳細な説明】 本発明はバッファメモリ制御方式に関し、特に、データ
のリプレースを行なう際に直前に主記憶からフェッチさ
れたブロックデータがリプレースの対象とならないよう
にしたバッファメモリ制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a buffer memory control system, and more particularly to a buffer memory control system that prevents block data fetched from main memory immediately before being replaced when data is replaced.

バッファメモリのアドレスを、アクセスアドレスの下位
部分に対応する「セットアドレス、1と、アクセスアド
レスとは無関係な「ブロックアドレス−1とに分けて制
御するのが従来のセットアソシアティブ方式のバッファ
メモリであり、リプレース部が行うのはこの「ブロック
アドレス」の制御である。
Conventional set-associative type buffer memory controls the buffer memory address by dividing it into a set address, 1, which corresponds to the lower part of the access address, and a block address, 1, which is unrelated to the access address. , the replacement unit controls this "block address".

主メモリよりバッファメモリにデータのコピーを入れる
時(これをブロックフェッチと呼ぶ)アクセスアドレス
に対応する1つのセットアドレスが決定される。
When copying data from the main memory to the buffer memory (this is called a block fetch), one set address corresponding to the access address is determined.

1つのセットアドレスには複数のブロックがありこのう
ち1つのブロックが1回のブロックフェッチで入れ替え
の対象となる部分である。
One set address has a plurality of blocks, and one block among these is the part to be replaced by one block fetch.

リプレース部はこの複数のブロックのうちから1つを選
択しデータの入れ替えの場所を指定する。
The replace unit selects one of the plurality of blocks and specifies the location where the data is to be replaced.

今、ブロックフェッチが行われ対応するセットアドレス
にある複数のブロックには全てデータがすでに入ってお
り空のブロックが1つもないとするとリプレース部では
その複数のブロックに入っているデータの全てについて
過去にアクセスがあった時の古さを調べ、最も古いデー
タの入っているブロックを入れ替えの対象ブロックとし
てそのブロックアドレスを指定する。
Now, if a block fetch is performed and all the blocks at the corresponding set address already contain data and there is no empty block, the replacement part will retrieve all the data in the blocks from the past. Check how old the block was when it was accessed, and specify the block address of the block containing the oldest data as the block to be replaced.

これをLRu法と言うのは周知のことである。It is well known that this is called the LRu method.

リプレースの入れ替え制御ビット、すなわちリプレース
メモリアレイに書込まれたビットをバッファメモリにア
クセスがあるたびにどの様に制御するかは、すでに知ら
れている。
It is already known how to control the replacement switching control bits, ie, the bits written to the replacement memory array, each time the buffer memory is accessed.

完全なLRu法によって制御する場合1つのセットアド
レス部に対応するn個のデータブロックがあるとすれば
リプレース部は1つのセットアドレスに対しくn 1
)n/2ビツトの制御ビットラリプレースメモリに持つ
When controlling by the complete LRu method, if there are n data blocks corresponding to one set address section, the replacement section will be n 1 for one set address.
) has n/2 bits of control bits in the replacement memory.

このうちの1ビツトはn個のブロックの中の2つのデー
タブロックの順序づけを示しており、1セツト分の全体
のビットはn個のデータブロックの配列すなわち順序づ
けを完全に示している。
One bit indicates the ordering of two data blocks among the n blocks, and one set of total bits completely indicates the arrangement or ordering of the n data blocks.

今バッファメモリにアクセスがあったとするとそのアク
セスアドレスよりセットアドレスが決められ、そのセッ
トに対応するリプレースメモリの(nl)n/2ビツト
が制御の対称として選択される。
If the buffer memory is now accessed, a set address is determined from the access address, and (nl)n/2 bits of the replacement memory corresponding to the set are selected as the object of control.

このうちどこのデータブロックにアクセスがあったかと
いう通知によりその中の(n−1)ビットが選択されて
そのデータブロックのアクセス順序が最新となる様に書
き変えられる。
Upon notification of which data block has been accessed, (n-1) bits are selected and the access order of that data block is rewritten to be the latest one.

これがリプレースの更新である。This is a replacement update.

この操作をくり返すことによりリプレースメモリは常に
全てのセットアドレスに対してn個のデータブロックの
アクセスの新しさ即ち古さの順序を記憶している。
By repeating this operation, the replacement memory always stores the order of newness, ie, oldest access, of n data blocks for all set addresses.

ブロックフェッチの際アクセスアドレスよりセットアド
レスは決定されるのでリプレースメモリよりこの(n−
1)n/2ビツトの情報、即ちn個のデータブロック全
部のアクセスの古さの順序を示す情報が読み出される。
When fetching a block, the set address is determined from the access address, so this (n-
1) n/2 bits of information, ie information indicating the order of chronology of accesses of all n data blocks, are read.

この中から最もアクセスの古いデータブロックのブロッ
クアドレスを取り出す論理は更新とは逆の論理である。
The logic for extracting the block address of the oldest accessed data block from among these is the opposite logic to that for updating.

各ブロックアドレスに対応して、(n−1)n/2ビツ
トのリプレース情報のうちn−1ビツトの情報が割り当
てられており、更新の時の書込みパターンと全く逆即ち
全ビットを反転させたパターンの場合そのブロックが最
もアクセスの古いデータブロックである。
Corresponding to each block address, n-1 bits of (n-1)n/2 bits of replacement information are assigned, and the writing pattern at the time of update is completely reversed, that is, all bits are inverted. In the case of a pattern, that block is the oldest accessed data block.

従って各ブロックごとに自分に割当てられたn1ビツト
がこの最古のパターンであるかどうかという論理を取れ
ばかならずどれか1つのブロックが該当する。
Therefore, if we take the logic of whether or not the n1 bits assigned to each block correspond to this oldest pattern, one of the blocks will definitely correspond.

以上が従来からのリプレース制御ビットの働きである。The above is the function of the conventional replacement control bit.

リプレースメモリより読出されたリプレース情報は1つ
のセットアドレスに対応するn個のデータブロックの全
ての古さの順序情報をもっている。
The replacement information read from the replacement memory has order information of all the ages of n data blocks corresponding to one set address.

つまり各データブロックが何番目に古いか(即ち新しい
か)というn個全部の情報を含んでいる。
In other words, it includes all n pieces of information indicating how old (i.e., new) each data block is.

従って2番目あるいはn番目に古いデータブロックを取
出す回路も作ることがで□る。
Therefore, it is possible to create a circuit for extracting the second or nth oldest data block.

例えば1セツトのブロックが4個の場合なら完全LRu
ではn = 4であるから(n−4)n/26、従って
リプレース情報は6ビツトであり、各データブロックに
割当てられたビットはn−1−3ビツトである。
For example, if there are 4 blocks in one set, complete LRu
Since n=4, (n-4)n/26, therefore, the replacement information is 6 bits, and the bits allocated to each data block are n-1-3 bits.

この6ビツトを各々Rot 2.RO2、Ro3t R
12tR137R23として下表の様に定義すると、最
古の各ビ データ アクセス最新 割当てビットの各ビットパ ブロック パタ −ン 0Ro1.R02,Ro3111000 1R01,R12,R13011100 2R02,R1□、馬、 001 1103
RO3,R73,R23000111ツトノくにンーン この場合ROI J RO2J RO3jビットが全て
/、0“ならデータブロックびが最もアクセスの古いプ
ロ〃 ツクである。
Each of these 6 bits is Rot2. RO2, Ro3t R
12tR137R23 as shown in the table below, each bit per block pattern 0Ro1. R02, Ro3111000 1R01, R12, R13011100 2R02, R1□, horse, 001 1103
RO3, R73, R23000111 In this case, if the ROI J RO2J RO3j bits are all /, 0, the data block is the oldest accessed program.

2番目に古い場合の各ビットのパターンは、各データブ
ロックに割り当てられたビットが最古の場合に示すパタ
ーンとどれか1ビツトが反転しているパターンの場合で
ある。
The pattern of each bit in the second oldest case is a pattern in which any one bit is inverted from the pattern shown in the case where the bits assigned to each data block are the oldest.

例えばROI 、RO2t R03が100,010゜
001ならデータブロック、α′が2番目アクセスの古
いブロックである。
For example, if ROI, RO2t R03 is 100,010°001, then α' is the data block and the second oldest block is accessed.

同様に全ブロックの2番目に古い時の論理を作ることが
できる。
Similarly, logic for the second oldest of all blocks can be created.

要するに完全LRuの場合釜ブロックに割当てられたn
−1ビツトのビットパターンが、最古の場合のパターン
と1ビツト異っていれば2番目、2ビツト異っていれば
3番目に古いことになり、n−1ビット即ち全部具って
いればn番目に古い即ち最も新しくアクセスされたブロ
ックであることを示している。
In short, in the case of complete LRu, the n assigned to the pot block
- If the bit pattern of 1 bit differs from the oldest pattern by 1 bit, it becomes the second oldest, and if it differs by 2 bits, it becomes the third oldest, and if it differs by 2 bits, it becomes the third oldest. This indicates that the block is the nth oldest block, that is, the most recently accessed block.

以上の様に古いデータブロックでも取り出す論理を作る
ことが出来、従ってその回路も作成できる。
As described above, it is possible to create logic to extract even old data blocks, and therefore also create the circuit.

また完全LRuでない場合でもリプレース情報により1
セツトの全データブロックの順序が決定されるアルゴリ
ズムを持つ方式であればすべて同様に最古以外のデータ
ブロックを取出すことができ、むしろ論理としては簡単
になることが多い。
Also, even if it is not a complete LRu, 1
Any method that has an algorithm that determines the order of all data blocks in a set can similarly extract data blocks other than the oldest, and is often simpler in terms of logic.

(ここで言うn番目に古いとはリプレースビットが表わ
すものを意味し完全LRuでない場合かならずしも真の
n番目ではない) さてブロックフェッチの際、従来の方式ではブロックフ
ェッチしたデータをバッファメモリに書込む過程で、リ
プレースメモリアレイの内容も同時に書き変え、そのブ
ロックアドレスが最も新しくアクセスされた事を登録す
るようになっている。
(The nth oldest here means what the replacement bit represents, and if it is not a complete LRu, it is not necessarily the true nth.) When fetching a block, in the conventional method, the fetched data is written to the buffer memory. In the process, the contents of the replacement memory array are also rewritten to register that the block address was most recently accessed.

この登録をリプレースの更新と言うがこれはブロックフ
ェッチのアクセスの終りの方のタイミングである。
This registration is called a replacement update, and this is the timing towards the end of block fetch access.

にもかかわらずリプレースの読出しはブロックフェッチ
のアクセスが開始されるとすぐに行われ、あらかじめデ
ータを入れ替えるべきブロックの位置を記憶しておくよ
うになっている。
Nevertheless, replacement reading is performed immediately after block fetch access is started, and the position of the block whose data is to be replaced is memorized in advance.

従。ってブロックフェッチのアクセスが連続して出され
た場合、1番目のアクセスによって指定された入れ替え
データブロックのアドレスと2番目のアクセスによって
指定されるブロックアドレスとは、リプレースメモリの
内容が更新されない限り同じアドレスが指定されてしま
う。
Follow. If block fetch accesses are issued consecutively, the address of the replacement data block specified by the first access and the block address specified by the second access will be the same unless the contents of the replacement memory are updated. The same address is specified.

つまり全く同じ場所が入れ替えの対象となることになり
、1番目に主メモリより持って来られたブロックデータ
は、後で又使われる可能性力塙い(どもかかわらず2番
目の)゛ロ゛ンクデーク1こよりすぐ1こ上ぬりされ、
r肖されてしまうこと(どなる。
In other words, the exact same location will be the target of the exchange, and there is a strong possibility that the block data brought from the first main memory will be used again later (in any case, the second location). Immediately more than one color was painted on Nukudek,
Being insulted (yelling)

すなわち従来の制御方式では同一のセットアドレスを示
すアクセスアドレスを持つブロックフェッチが連続して
出された場合、1番目のブロックデータはバッファメモ
リ上からすぐ1こr肖されてしまうという欠点があった
In other words, in the conventional control method, when block fetches with access addresses indicating the same set address are issued consecutively, the first block data is immediately erased from the buffer memory. .

又、これをさけるために同一セットアドレスに対するブ
ロックフェッチは、前のブロックフェッチが完了するま
で、即ちリプレースメモリの内容が更新されて正しく次
のリプレースすべきブロックを決定できるようになるま
で待たすような方法もあったが、この場合待たせる分だ
け性能が低下することはさけられなかった。
Also, to avoid this, block fetches for the same set address should wait until the previous block fetch is completed, that is, until the contents of the replace memory are updated and the next block to be replaced can be correctly determined. There was also a method to do this, but in this case, the performance would inevitably drop due to the amount of time it would take to wait.

本発明の目的は同一のセットアドレスを持つブロックフ
ェッチの連続アクセスの場合リプレースが最も古いデー
タブロックのみでなく2番目のアクセスの場合には2番
目あるいはn番目に古いデータブロックのアドレスを入
れ替え対象として指定することにより、1番目のアクセ
スが完了するまで2番目以降のアクセスを待たせたり、
先にフェッチしたブロックデータが重複書込みによって
消されるという欠点を解決し、性能を向上させることに
ある。
The purpose of the present invention is to replace not only the oldest data block in the case of consecutive block fetch accesses with the same set address, but also the address of the second or nth oldest data block in the case of the second access. By specifying, you can make the second and subsequent accesses wait until the first access is completed,
The purpose is to improve performance by solving the drawback that previously fetched block data is erased due to duplicate writing.

即ち成るブロックフェッチの結果としてリプレースメモ
リの内容を更新する以前に、同一セットアドレスに対し
て次のブ爾ツクフェッチが必要となった場合に現在ブロ
ックフェッチが進行中でその結果主メモリのデータを書
き込もう圭しているブロック位置を、次のブロックフェ
ッチの書き込み先ブロックとして指定しないようにする
ことにより性能改善を図ることを目的としている。
In other words, if the next block fetch is required for the same set address before the contents of the replace memory are updated as a result of a block fetch, the block fetch is currently in progress and as a result, the main memory data cannot be written. The purpose of this is to improve performance by not specifying the block position that has been missed as the write destination block for the next block fetch.

そして、上記目的を遠戚するために、本発明は、バッフ
ァメモリをアクセスするごとにリプレースメモリの内容
を更新してアクセスされたデータを含むブロックが最新
であることを記録し、必要とするデータがバッファメモ
リに存在しなかった場合はリプレースメモリの読出しデ
ータにもとづいて追い出すべきブロック番号を決定し、
新たなデータを当該ブロック番号のブロック位置へ主記
憶からブロック転送するバッファメモリ制御方式におい
て、 上記リプレースメモリの読出データに基づいて最古のデ
ータブロック番号を決定する第1のリプレー入決定回路
と、最古の次に新しいデータブロック番号を決定する第
2のリプレース決定回路とを有し、既に処理進行中のブ
ロック転送が無い場合は上記第1のリプレース決定回路
によってリプレースの対象となるブロック番号を決定し
、既に;処理進行中のブロック転送が有る場合は上記第
2のリプレース決定回路によってリプレースの対象とな
るブロック番号を決定することを特徴とする。
In order to achieve the above object, the present invention updates the contents of the replacement memory every time the buffer memory is accessed, records that the block containing the accessed data is the latest, and stores the required data. If it does not exist in the buffer memory, determine the block number to be evicted based on the read data of the replacement memory,
In a buffer memory control method for block transfer of new data from main memory to a block position of the block number, a first replay input determination circuit that determines the oldest data block number based on the read data of the replace memory; and a second replacement determination circuit that determines the newest data block number next to the oldest, and if there is no block transfer that is already in progress, the first replacement determination circuit determines the block number to be replaced. If there is a block transfer that has been determined and is already in progress, the second replacement determination circuit determines the block number to be replaced.

以下、本発明を実施例により説明する。The present invention will be explained below with reference to Examples.

図は本発明による実施例のリプレース制御回路であり、
ン図中、1はリプレースメモリ部、2は最古のデータブ
ロックを決定する第1LRU回路、3は2番目に古いデ
ータブロックを決定する第2LRU回路、4はn番目に
古いデータブロックを決定する第nLRU回路、5は比
較回路、6は選択回路、7は第2レジスタ、8は第2レ
ジスタ、9は第nレジスタ、10は最初のブロックフェ
ッチデータのバッファメモリ書込ブロック番号を指定す
る情報線、11は2番目のブロックフェッチデータのバ
ッファメモリ書込ブ陥ツク番号を指定する情報線、12
はn番目のブロックフェッチデータのバッファメモリ書
込ブロック番号を指定する情報線である。
The figure shows a replacement control circuit according to an embodiment of the present invention.
In the figure, 1 is the replacement memory section, 2 is the first LRU circuit that determines the oldest data block, 3 is the second LRU circuit that determines the second oldest data block, and 4 is the nth oldest data block. nth LRU circuit, 5 is a comparison circuit, 6 is a selection circuit, 7 is a second register, 8 is a second register, 9 is an nth register, 10 is information specifying the buffer memory write block number of the first block fetch data Line 11 is an information line 12 specifying the buffer memory write block number of the second block fetch data.
is an information line that specifies the buffer memory write block number of the nth block fetch data.

リプレースメモリ部1から出力されるリプレース情報は
第1LRU回路2、第2LRU回路3、・・・・・・、
第nLRU回路4に同時に入力され、第1LRU回路2
からは最古のデータブロック番号が出力され、第2LR
U回路3からは2番目に古いデータブロック番号が出力
され、以下同様にして、第nLRU回路4からはn番目
に古いデータブロック番号が出力される。
The replacement information output from the replacement memory section 1 is the first LRU circuit 2, the second LRU circuit 3,...
is simultaneously input to the n-th LRU circuit 4, and the first LRU circuit 2
The oldest data block number is output from 2nd LR.
The U circuit 3 outputs the second oldest data block number, and the nth LRU circuit 4 outputs the nth oldest data block number in the same manner.

比較回路5は連続して発生するブロックフェッチのセッ
トアドレスを比較し、同一セットアドレスのものがある
か否かということおよび同一セットアドレスのものがあ
るとき同一のものがいくつあるかということを判別し、
選択回路6へ選択信号を送出するものである。
Comparison circuit 5 compares the set addresses of block fetches that occur continuously, and determines whether there are block fetches with the same set address or not, and if there are block fetches with the same set address, how many of the same set addresses there are. death,
It sends a selection signal to the selection circuit 6.

選択回路6は比較回路5からの選択信号;こもとづき、
第1LRU回路2〜第nLRU回路4のいずれか1つと
、第ルジスタ7〜第nレジスタ9のいずれか1つとを選
択し、選択したLRU回路の出力を選択したレジスタに
送出する。
The selection circuit 6 receives the selection signal from the comparison circuit 5;
Any one of the first LRU circuit 2 to the n-th LRU circuit 4 and any one of the register 7 to the n-th register 9 are selected, and the output of the selected LRU circuit is sent to the selected register.

以前に発出されて未だ完了していないブロックフェッチ
がなく、最初のブロックフェッチである場合には、リプ
レースメモリ部1より出力されるリプレース情報にもと
づき第1LRU回路2により得られる最も古いデータブ
ロックの位置情報が第2レジスタフ1こセットされる。
If there is no previously issued block fetch that has not been completed and this is the first block fetch, the position of the oldest data block obtained by the first LRU circuit 2 based on the replacement information output from the replacement memory unit 1. Information is set in the second register.

すなわち、比較回路5からの選択信号により選択回路6
は第1LRU回路2の出力を第2レジスタフに導く。
That is, the selection signal from the comparison circuit 5 causes the selection circuit 6 to
leads the output of the first LRU circuit 2 to the second register.

一方、すでに発出されて未だ完了していないブロックフ
ェッチが存在し、その状態で2番目のブロックフェッチ
が発出された場合、前後のブロックフェッチのセットア
ドレスが比較回路5により比較される。
On the other hand, if there is a block fetch that has already been issued but has not yet been completed, and a second block fetch is issued in this state, the comparison circuit 5 compares the set addresses of the previous and subsequent block fetches.

比較の結果両者のセットアドレスが一致しなかった場合
は、比較回路5からの選択信号により第1LRU回路2
の出力が第2レジスタ8ヘセツトされる。
If the set addresses of both do not match as a result of the comparison, the selection signal from the comparison circuit 5 causes the first LRU circuit 2 to
The output of is set to the second register 8.

また、両者のセットアドレスが一致した場合は、比較回
路5からの選択信号により第2 L RU回路3の出力
が第2レジスク8ヘセツトされる。
Further, if the two set addresses match, the output of the second LRU circuit 3 is set to the second register 8 by the selection signal from the comparison circuit 5.

同様1こして、以前の(n−1)個のブロックフェッチ
が完了しない間にn番日のブロックフェッチが発生され
た場合、該n番目のブロックフェッチのセットアドレス
が以前のいずれのセットアドレスとも一致しないとき第
1LRU回路2の出力が第nレジスタ9ヘセツトされる
Similarly, if a block fetch on the nth day occurs while the previous (n-1) block fetches are not completed, the set address of the nth block fetch is different from any previous set address. If they do not match, the output of the first LRU circuit 2 is set to the nth register 9.

一方、1番目〜n番目のブロックフェッチのセットアド
レスがすべて同一のとき第nLRU回路4の出力が第n
レジスタ9ヘセツトされる。
On the other hand, when the set addresses of the 1st to nth block fetches are all the same, the output of the nth LRU circuit 4 is
Set to register 9.

これにより、重複するブロック転送の際、バッファメモ
リの同一のブロック位置が主記憶からのデータを入れる
場合として連続して指定されることはない。
As a result, in the case of overlapping block transfers, the same block position in the buffer memory is not consecutively designated for storing data from the main memory.

本発明はすでに説明した様に従来の回路に2番目あるい
はn番目に古いテ゛−タブロ゛ンクをすブレース情報よ
り決定する回路を追加することにより同一セットアドレ
スの連続ブロックフェッチの除目−のエリアがバッファ
書込みブロックとして指定されることを防止してブロッ
クフェッチデータの消失を防ぐようにしたので、これに
より性能の向上、制御の簡略化を計ることができるとい
うすぐれた利点をもっている。
As already explained, the present invention adds a circuit to the conventional circuit that determines the second or nth oldest data block based on brace information, thereby improving the area of successive block fetches of the same set address. Since the block fetch data is prevented from being designated as a buffer write block and loss of block fetch data is prevented, this has the excellent advantage of improving performance and simplifying control.

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

図は本発明による実施例のリプレース制御回路である。 図中、1はリプレースメモリ部、2〜4はLRU回路、
5は比較回路、6は選択回路、7〜9はレジスタ、10
〜12はバッファメモリ書込ブロック番号を指定する情
報線である。
The figure shows a replacement control circuit according to an embodiment of the present invention. In the figure, 1 is a replacement memory section, 2 to 4 are LRU circuits,
5 is a comparison circuit, 6 is a selection circuit, 7 to 9 are registers, 10
-12 are information lines for designating the buffer memory write block number.

Claims (1)

【特許請求の範囲】 1 バッファメモリをアクセスするごとにリプレースメ
モリの内容を更新してアクセスされたデータを含むブロ
ックが最新であることを記録し、必要とするデータがバ
ッファメモリに存在しなかった場合はリプレースメモリ
の続出しデータにもとづいて追い出すべきブロック番号
を決定し、新たなデータを当該ブロック番号のブロック
位置へ主記憶からブロック転送するバッファメモリ制御
方式において、 上記リプレースメモリの読出データに基づいて最古のデ
ータブロック番号を決定する第1のリプレース決定回路
と、最古の次に新しいデータブロック番号を決定する第
2のリプレース決定回路とを有し、既に処理進行中のブ
ロック転送が無い場合は上記第1のリプレース決定回路
によってリプレースの対象となるブロック番号を決定し
、既に処理進行中のブロック転送が有る場合は上記第2
のリプレース決定回路によってリプレースの対象となる
ブロック番号を決定することを特徴とするバッファメモ
リ制御方式。 2 既に処理進行中のブロック転送が有る場合でも該進
行中のブロック転送と後続するブロックフェッチ要求の
両アドレスのうち特定の部分の比較結果が不一致を示す
場合は常に上記第1のリプレース決定回路に従ってリプ
レース制御を行なうことを特徴とする特許請求の範囲第
1項記載のバッファメモリ制御方式。
[Claims] 1. Every time the buffer memory is accessed, the contents of the replacement memory are updated to record that the block containing the accessed data is the latest, and the required data does not exist in the buffer memory. In this case, in a buffer memory control method in which a block number to be evicted is determined based on the successive data of the replace memory, and new data is block transferred from the main memory to the block position of the block number, based on the read data of the replace memory. a first replacement determination circuit that determines the oldest data block number, and a second replacement determination circuit that determines the next newest data block number, and there is no block transfer that is already in progress. In this case, the first replacement determination circuit determines the block number to be replaced, and if there is a block transfer that is already in progress, the second replacement determination circuit determines the block number to be replaced.
A buffer memory control method characterized in that a block number to be replaced is determined by a replacement determination circuit. 2 Even if there is a block transfer that is already in progress, if the comparison result of a specific part of the addresses of the block transfer in progress and the subsequent block fetch request shows a mismatch, always follow the above first replacement determination circuit. 2. The buffer memory control method according to claim 1, wherein replacement control is performed.
JP54152715A 1979-11-26 1979-11-26 Buffer memory control method Expired JPS5856175B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP54152715A JPS5856175B2 (en) 1979-11-26 1979-11-26 Buffer memory control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP54152715A JPS5856175B2 (en) 1979-11-26 1979-11-26 Buffer memory control method

Publications (2)

Publication Number Publication Date
JPS5677966A JPS5677966A (en) 1981-06-26
JPS5856175B2 true JPS5856175B2 (en) 1983-12-13

Family

ID=15546565

Family Applications (1)

Application Number Title Priority Date Filing Date
JP54152715A Expired JPS5856175B2 (en) 1979-11-26 1979-11-26 Buffer memory control method

Country Status (1)

Country Link
JP (1) JPS5856175B2 (en)

Also Published As

Publication number Publication date
JPS5677966A (en) 1981-06-26

Similar Documents

Publication Publication Date Title
US4980816A (en) Translation look-aside buffer control system with multiple prioritized buffers
US5933860A (en) Multiprobe instruction cache with instruction-based probe hint generation and training whereby the cache bank or way to be accessed next is predicted
JP3620473B2 (en) Method and apparatus for controlling replacement of shared cache memory
JPH11282821A5 (en)
EP0167089B1 (en) Memory access control system and method for an information processing apparatus
EP0173909B1 (en) Look-aside buffer least recently used marker controller
JPS5856175B2 (en) Buffer memory control method
JPH01229345A (en) Data processor
US7219199B1 (en) System and method for increasing bandwidth in a directory based high speed memory system
JP2636485B2 (en) Cache storage
JPS5914826B2 (en) Buffer memory control method
JPS61112260A (en) Swapping controller for multi-hierarchy memory system
JPH04304B2 (en)
JPS63311548A (en) Cache memory controlling system
JPH04288647A (en) Substitution controller for cache memory
JP2000330869A (en) Cache memory device
JPH1185613A (en) Cache memory
JPH0612331A (en) Cache memory controller
JPS6042972B2 (en) Information processing device with address conversion function
JPH05181746A (en) Data processing system and memory control system
JPH0215150Y2 (en)
JPH0635801A (en) Hierarchical memory control method
JPH02259945A (en) Storing processing system
JP2000066955A (en) Copy cache information sweeping level selection system
JPS6042971B2 (en) information processing equipment