JPS58159284A - Buffer memory control system - Google Patents

Buffer memory control system

Info

Publication number
JPS58159284A
JPS58159284A JP57042170A JP4217082A JPS58159284A JP S58159284 A JPS58159284 A JP S58159284A JP 57042170 A JP57042170 A JP 57042170A JP 4217082 A JP4217082 A JP 4217082A JP S58159284 A JPS58159284 A JP S58159284A
Authority
JP
Japan
Prior art keywords
buffer memory
block
replacement
memory
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
JP57042170A
Other languages
Japanese (ja)
Inventor
Naoya Ono
直哉 大野
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.)
NEC Corp
Original Assignee
NEC Corp
Nippon Electric 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 NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP57042170A priority Critical patent/JPS58159284A/en
Publication of JPS58159284A publication Critical patent/JPS58159284A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To improve the hit rate of a buffer memory, by suppressing the algorithm of block replacement according to the specified system of the buffer memory to information having low locality and taking the specific block only for the replacement. CONSTITUTION:The specific mode is set in response to a program having low locality and an FF404 of an access control circuit 4 is set. When a -Q output goes to a low level, an AND gate 408 is closed and the output is always 0. This output accesses a specific block of a buffer memory 7, and a designation instruction of a block by an LRU algorithm makng a block not referenced for the longest time from a replacement bit section 203 via the gate 408 as an objective, is not impressed to a memory 7, the block replacement by the LRU algorithm is suppressed and the specific block only is an objective to the replacement. As a result, the hit rate of the buffer memory is improved.

Description

【発明の詳細な説明】 +発明は、 is報処理装置のバッファメモIJ fこ
おけ/)i′1JII鐸方式に関するものであり、更に
詳しくいんば、バッファメモリへの登録の抑制を制御す
る方式に関T6゜ 1H報処理装置1こおいて、中央処理装置に16KB〜
321J株贋の王記憶装置に比べて小d鎗ではあ0が重
連のバッファメモリ (キャッジ−メモリともまは(’
L 6 )を用意することにより、実効的に王i+2C
m ’\リアクセスタイムを嶋速化できることが知(つ
イしている。
[Detailed Description of the Invention] +The invention relates to a buffer memo IJfcooke/)i'1JII system of an IS information processing device, and more specifically, a system for controlling the suppression of registration in a buffer memory. Regarding T6゜1H information processing device 1, the central processing unit has 16 KB ~
Compared to the 321J Stock Counterfeit King memory device, the small d-year has a buffer memory with multiple 0's (cage memory and ('
By preparing L 6 ), effectively
I know that the reaccess time can be made faster.

これは、一般に情報処理装fl114こおいて実行され
るプログラムには、メモリアクセスの局所性とよばれる
性質が存在することを利用したものである。
This takes advantage of the fact that programs executed in the information processing device fl 114 generally have a property called locality of memory access.

即ち、ある比較的短期間をとってみると、プログラムの
特定の限ら2また場所が集中的にアクセスされる傾向が
あり、さらに一度アクセスの竹われた近辺のアドレスζ
こアクセスが集中T6という傾向か強い。
That is, over a relatively short period of time, there is a tendency for a specific limited area of the program to be accessed intensively, and furthermore, addresses in the vicinity of once accessed ζ
There is a strong tendency for this access to be concentrated at T6.

従って、比較的小容量のバッフアメ七りを用意して主A
d憶へのアクセス−こ際して、アクセスのfTわれた餠
を含む複数ソードのプロ、りをバッファメモリカにとり
込む。
Therefore, prepare a relatively small capacity buffer and use it as main A.
Accessing the memory - At this time, the program of multiple swords including the accessed data is taken into the buffer memory.

このとき、既にパンファメ七りか一杯の状態になりでい
る場合Iこは、最も長い間アクセスの行イ〕nな力)っ
たプロ、りをバッフアキ、0)ら退出し、ここに、菱求
のあったブt」ツタをとり込むような制御を行う。これ
により、以後のアクセスに際しては必要な情報(まバッ
ファメモリ上に存在する確率ヲ烏<でき、メモりへのア
クセスの大部分1ま、このバッファへのアクセスですま
せΦことができ、低速な上11こアクセスする回数が減
少し、これにより、td報処理装置が^連な上記曽を儲
7.たと一般のノリ所性の高いプログラムに対して1ま
、最も長い間参照の行われなかったブロックをバッファ
メモリカ)ら追出す、いわゆるLRU方式が効果的であ
ることが知られており、一般のt#報処理装置において
は、LHtJ方式が通常用いらイ1ている。
At this time, if the panfame is already at least 7 full, leave the professional who has been accessing for the longest time, leave the buffer, 0), and request a request here. Control is performed to capture ivy. As a result, for subsequent accesses, it is possible to reduce the probability that the necessary information (or buffer memory) exists, and most of the accesses to the memory can be done by accessing this buffer, which is slow. This reduces the number of times the TD information processing device accesses the above 7. and general programs that are not referenced for the longest time. It is known that the so-called LRU method, in which blocks that have been stored are removed from the buffer memory card, is effective, and the LHtJ method is usually used in general t# information processing devices.

しかしながら、特定のプログラムにおいては。However, in certain programs.

元に述べたような局所性が極めて低いものが存在し、こ
υ」よっなプログラムが実行さイすると、広いアドレス
梁間にわたってアクセスが行われ、かつ同一のアドレス
に対して繰返しアクセスが行われ’、J C、!:か少
い。このようなプログラムを実行する%’、++こバッ
ファメモリを使用すると、バッファメモリ上にとり込ま
れたブロックが杏使用されることは少いdこも71>7
1)わらず、バッフアメセリの多くのt4−分がこのブ
ロックのi!e川する情報のために置換人ら不シルこと
になり、バ、7フアメ七りのP3谷が破融ざrl、てし
まい、他のプログラムがP+開した時点−c、etfこ
にバ、ノγメそりへの情報のとり込6が必要と7了り、
情報処理装置の性能をV(下させる原因となっている。
As mentioned above, there are programs with extremely low locality, and when a program like this is executed, accesses are made over a wide range of addresses, and the same address is repeatedly accessed. , J.C.! : Or less. If you run such a program and use buffer memory, the blocks loaded onto the buffer memory will rarely be used.71>7
1) Regardless, many t4-minutes of the buffer ameri are in this block's i! Due to the information on the e river, the substitutes are in trouble, and the P3 valley of 7 years ago is destroyed, and when another program opens P+ - c, etf, this is the case. It has been concluded that it is necessary to import information into the Noγ Mesori,
This causes the performance of the information processing device to decrease (V).

本発明は、ptlJ轡性の低い情報に対しては、バ。The present invention provides a buffer for information with low ptlJ compatibility.

ファメモリのL)LU方式tこよるブロックの置換えの
アルコljズムを抑止し、特定のプロ、りのみが厘侠え
の対象憂こなるよう−こ制−し、バッファメモリの多く
の部分の内科の保存をlろうとするものである。
L) LU method of buffer memory Suppresses the algorithm of block replacement caused by block replacement, and prevents the internal use of many parts of buffer memory so that only specific professionals and people are concerned about it. This is an attempt to preserve the .

局1方性の低いプ【」グラムlこ対してこのよう(こ、
特定のブロック0)^を置換えの対象とした揚台でも、
このプログラムでのバクファメ七りでのし。
In contrast to the program with low local unidirectionality,
Even with a platform that targets a specific block 0)^ for replacement,
Bakufame seven days in this program.

ト率(ま、全ブロックを対象としてLれU方式C置侠ん
た場合に比べてそitはど畝上す0ことは7jい。
(Well, compared to the case where LLEU method C is used for all blocks, the rate is 0.7j higher.

これに対してs t311述のよう1こバ7ファメ七り
の他の部分はその内存が保存されていもので、h6PA
性の低いプログラムの夾何が中11シた時点で+il−
開さiする他のプログラムのための情報が保存さfして
いる確率が尚まり乍体としてのバッファメモリのヒ、ノ
ド率を尚くすり)/−とができ、従って来幼的戸主’i
jt値アクセスタイムが尚連化され情報処理装置(/J
性りにか同上Jる。
On the other hand, as mentioned in s t311, the other parts of 1 koba 7 fame 7 ri have been preserved, and h6PA
What is the problem with low quality programs?
The probability that the information for other programs that are opened is saved is also increased, since the buffer memory as a body is less likely to be saved (which also reduces the rate of failure), and therefore the child's head of household.
The jt value access time is also linked to the information processing device (/J
Same as above.

本発明(ま、バッファメモリのブロックのリプレースメ
ント制御に関して、リプレースメントのブロック位置に
対してのみ行う限定モードおよびLRtl方式によりリ
プレースを行う通常モードを設け、バッファメモリ制御
モードを限定モードに設定、限足七−ドから解除する手
段、およびバクファメ七りへのアクセス1こ際して、使
用状況に応じてリプレースメント情報を更新管理する手
段を備ん、バッファメモリに必要な情報が見出さnない
揚會(わブロックのリプレースに際してs R’lにバ
ッノγメ七り匍」岬モードが限定モードにない場合−こ
は、 rJ・j記史I″#埋されているリプレースメン
ト悄@i1こもとづき、リプレースすべきプロ、夕を通
訳し、別記バクファメモリ7M1J両モードか限定モー
ド1こ、P)会場合に(ま、前記リプレースメント情報
を抑止し、一意的(こ頑まる特電のブ旧ツク’il−I
JプレースすべきブL、Iツクとし′Cs択し%主記憶
のブ[ノツ7F、44−1ti込み金行うための制#+
段を儂えるCとメこまり1局19r性υ)低いプログラ
ムの★打に除して1・ま、この火付−・二うt立って、
前記特定の七−ドを設定し実行が終了した時点でこのモ
ードを解除Tることにより、局所性の低い処理の実行に
際してはバッファメモリの特定のブロックしη)使用さ
れないようにすることを可能にしたものであり、これに
より、バッファメモリ上でのヒツト率を大巾に下げるこ
となく、バッファメモリ上の情報が局所性の低い処理に
より破壊されることを防ぐことがり籠となる。従って、
全体としてのバッファメモリでのヒツト率を楠くできる
ことlこなる。
The present invention (with regard to the replacement control of blocks in the buffer memory, a limited mode in which replacement is performed only for the block position of the replacement, and a normal mode in which replacement is performed using the LRtl method, and the buffer memory control mode is set to the limited mode. - a means to release from the buffer memory and a means to update and manage the replacement information according to the usage situation, When replacing a block, if the s R'l is not in the limited mode, it should be replaced. Pro, interpret the evening, separate buff memory 7M1J both modes or limited mode 1, P) If (well, the said replacement information is suppressed, unique)
J Place the block L, select I and select 'Cs % main memory block
C and Mekomari 1st station 19r sex υ) The low program's ★ stroke is divided by 1. Well, this fire--2 t stands,
By setting the specific code and canceling this mode when execution is completed, it is possible to prevent a specific block of buffer memory from being used when executing a process with low locality. This makes it possible to prevent the information on the buffer memory from being destroyed by processing with low locality without significantly lowering the hit rate on the buffer memory. Therefore,
This can reduce the hit rate in the buffer memory as a whole.

従って、不発明の目的は全体として−いヒツト率を実現
しうるバッファメモ1llJla1方式を提供すること
にあり、実効的な主記憶アクセスタイムを関連化しつる
バッファメモ’J*1JiI11方式を提供すること番
こあり、^性能fよ情報処理装置を実現しつるバッファ
メモリ制岬方式を提供することにある〇次Iこ図囲を用
い、本発明lこついて説明する。
Therefore, the object of the invention is to provide a buffer memory method that can achieve a high hit rate as a whole, and to provide a buffer memory method that correlates effective main memory access time. The purpose of the present invention is to provide a buffer memory control method that realizes an information processing device with high performance.

図(ま不発明のバッファメモリ制岬方式を具体的にした
装置の一犬施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a device embodying the inventive buffer memory system.

本来九例iこおいてIよ、王6己憶(ま−例として16
Mワード(IM=2”)からなるものとしており、主記
憶アドレスは24ビツトからなるバッファメモリは、容
量は4にワードで1ブロツクが8ワードで256セツト
×2コンパートメントの構成となっている。
Originally, nine examples were given.
The buffer memory is assumed to consist of M words (IM=2"), and the main memory address is 24 bits. The buffer memory has a capacity of 4 words, 1 block is 8 words, and has a configuration of 256 sets x 2 compartments.

これ−こ対応して、24ビツトの主記憶アドレスレジス
タlは24ビツトからなり、下位から谷々3ビットのブ
ロック内ワードアドレス$101.8ビツトのセットア
ドレス@102.13ビツトのブロックアドレス部10
3力1らなっている。
Correspondingly, the 24-bit main memory address register l consists of 24 bits, including an in-block word address of 3 bits from the lowest, a set address of 101.8 bits, and a block address part 10 of 13 bits.
There are three powers and one power.

バラノアメモリ8E索テーブル2は、バ、ファメ七りの
256セツトに対応して、256エントリからfぼり、
骨エントリは2コンパートメント1こ対応して、第1葛
よび第2のブロックアドレス部201゜202Jよび谷
コンパートメントのアクセスのされ万に関する情報を示
すためのリプレースメントビット203をもつ。
Baranoa memory 8E search table 2 has 256 entries, corresponding to 256 sets of BA, FAME, 7,
The bone entry has two corresponding compartments, first and second block address fields 201 and 202J, and a replacement bit 203 for indicating information regarding the number of accesses of the valley compartment.

弔1および第2のブロックアドレス部201,202の
出力(ま、谷々第lおよび第2の比較回路301および
302に印刀0されている。主記憶アドレスレジスタl
のブロックアドレス部103の1直は弔1および第2の
ブロックアドレス$201.2021こ印加されている
とともに第1および5t42の比較回路301.302
の池の入力にも+4J 、Utlさnている。硝1およ
び第2の比較回路の一致検出イg号303゜304はア
クセス制御部4に印加さnでおり、この比較回路の出力
に応じて、バッファの適切なブロックへのアクセス、主
記憶からバッフアメ七りへのブロックの転送、リプレー
スメントビットの更新等が行われることになる。
The outputs of the first and second block address sections 201 and 202 (are marked 0 in the first and second comparison circuits 301 and 302. The main memory address register l
The first and second block addresses $201.2021 of the block address section 103 are applied to the first and second comparator circuits 301.302 and 5t42, respectively.
The input of the pond also has +4J, Utl. Coincidence detection signals 303 and 304 of the first and second comparison circuits are applied to the access control unit 4, and depending on the output of this comparison circuit, access to appropriate blocks of the buffer and access from the main memory are controlled. Transferring blocks to the buffer, updating replacement bits, etc. will be performed.

バッファメモリ検索テーブル2のリプレースメントビッ
ト都203の出力はアクセス市IJ9i41部に印力0
されており、また、アクセス市111141都4で生成
されたリプレースメント情報409はバッファメモリ検
索テーブル2の回ビット203iこ印加されている。
The output of the replacement bit capital 203 of the buffer memory search table 2 is output to the access city IJ9i 41 section as 0.
In addition, the replacement information 409 generated in the access city 111141 and the city 4 is applied to the times bit 203i of the buffer memory search table 2.

上記憶鋏画5は7′クセス制一部での指令にL6じて主
記憶アドレスレジスタlの24ビツトのアドレスを用い
て、あるいは主ml憎アドレスの上位21ビツトおよび
、γクセス’rblJ m m 4で生成さ2するプロ
、り内ワードアト[/ス402を用いてアクセスぎわ、
データの胱出し、および誓込6は上記慣データレジスタ
6を介して行われる。
The upper memory scissors 5 uses the 24-bit address of the main memory address register l according to the command in the 7' access control part L6, or uses the upper 21 bits of the main memory address and the γ access 'rblJ m m 4 generated by 2, accessed using the Rinouchi wordat[/s402,
Data output and oath 6 are performed via the customary data register 6.

バッファメモリ7は、4にワードの谷tをもち、アドレ
スイ百号としてはアクセス飼n部4で生成さイしたリプ
レースメント情報401.主記憶アドレスレジスタのセ
ットアドレス@102の1直、およびアクセス制御部4
での栖令に応じて、3ビツトの主t、L i恩アドレス
レジスタのワードアドレス部101の1fL /:るい
はアクセス制御部4で生成さnた値4 (12が印加さ
れている。
The buffer memory 7 has a word valley t at 4, and the replacement information 401 . 1st shift of main memory address register set address @102 and access control unit 4
In response to the command in the 3-bit main address register, the word address field 101 of the 3-bit main address register 1fL/: or the value 4 (12) generated by the access control unit 4 is applied.

バッフTメ七り7の人力データとしては、主6己憶テー
メレジスタ6の値が印加されC−εす、出力j゛−夕は
、メモリデータレジスタ8に印加されている。1了お、
メモIJ 7’−タレジスタ8には、王装置、M −f
’−一タレジスタ6の値、およびプロセッサからの★込
みデータも印加されでいる(図示せず)。
The value of the main 6 self-memory theme register 6 is applied as the manual data of the buffer T-mechanical register 7, and the output j-e is applied to the memory data register 8. 1 completed,
Memo IJ 7'-tare register 8 contains the king device, M-f
The value of the '-data register 6 and the * data from the processor are also applied (not shown).

アクセス制御部4に6ハバツフアメモリの制御モートを
保持するためのモードフリップフロップ、104が設け
られ、これが[1をもつ場合には駆足レードであること
を示T0モードフリップフロッゾ404は、ブロモ、す
(図7ドせず)を制御す6ためのマイクロプログラムに
まり、セット、リセットが可能となっており、マイクロ
プログラムの特定のフィールドのナコード結釆が16号
−405゜406によりセ、ト、リセットが行われる。
The access control unit 4 is provided with a mode flip-flop 104 for holding a control mote of a 6-buffer memory, and when it has [1, it indicates a traction mode. (not shown in Figure 7), it is possible to set, reset, and set/reset the microprogram for specific fields by No. 16-405°406 A reset is performed.

七−ドフリップフ1」ツブ404の補出力(まアンドゲ
ート408LJJ一方の人力に印加されてεす、アンド
ゲート408の他の入力にはバッファメモリ検索テーブ
ル2のリプレースメントビット部203の出力が印加さ
れている。アンドゲート408の出力はバッファメモリ
7のアドレスの一部(コンパートメントアドレス)とし
て、バッファメモリに印加されている。
The auxiliary output of the 7-d flip 1 knob 404 is applied to one input of the AND gate 408LJJ, and the output of the replacement bit section 203 of the buffer memory search table 2 is applied to the other input of the AND gate 408. The output of the AND gate 408 is applied to the buffer memory 7 as part of the address (compartment address).

矢に本夾施ガにおける動作を説明する。I will explain the action in Honkyousega to the arrow.

メモリへのアクセス要求があると、メモリアドレスレジ
スタlに、アクセスすべき主記憶アドレスがセクトされ
る。
When a memory access request is made, the main memory address to be accessed is sectored into the memory address register l.

次に、このアドレスのセットアドレス部(こより、パン
ツアメモリ横糸テーブル2を続出す。この結果、第1お
よび第2の比軟回路のいずれか一方が一致を検出したと
きアクセス制御回路4は、一致成し、これをコンパート
メントアドレスとして、信号!!!401に印加し、こ
れとメモリアドレスレジスタのセ、ドアドレス102%
ブロック内ワードアドレス101によりバッファメモリ
をアクセスす6゜このとき一致の検出されなかった方の
比較回1NrIこ対応する111’Eリプレースメント
情報として生成し、こlシラバッファメモリ検索テーブ
ル2のリプレースメントビット5203のセットアドレ
スに対応するエンド月こ誓込み処理を終了する。
Next, the set address part of this address (from this, the Panzer memory weft table 2 is successively outputted. As a result, when either the first or second ratio soft circuit detects a match, the access control circuit 4 A match is made, apply this as the compartment address to the signal!!!401, and apply this and the memory address register's cell address 102%.
When the buffer memory is accessed using the word address 101 in the block, the comparison time 1NrI for which no match was detected at this time is generated as the corresponding 111'E replacement information, and the replacement bit 5203 of the buffer memory search table 2 is generated. Ends the end month commitment process corresponding to the set address.

こγ7.により、比較回路のいずれ力)一方で一致が恢
出さ4ムた場合、即ちバッファメモリ上に対応TΦフロ
ンクが存在Tる揚台には、対応するバッファメモリ上の
ブロック−こ対するアクセスを行うとともlこ、バッフ
ァメモリ検索テーブル2のリプレースメントビットハ長
い間アクセスの行ゎれなρ)りた方のコンパートメント
を常に指定するようににν1かイ丁われることfこなる
This γ7. Therefore, if a match is found on the other hand (by the power of the comparator circuit), that is, if there is a corresponding TΦ front on the buffer memory, then access to the corresponding block on the buffer memory is performed. In addition, the replacement bit of the buffer memory search table 2 is set to ν1 so that it always specifies the compartment that has not been accessed for a long time.

弔1石よひ粥2の比較回路301,302のいrれも一
致を検出しない場合、即ち、バッファメモリ上にアクセ
スの要求されたワードを含むブロックが存在しない場合
には、必fIなブロックを主記憶からバッファメモ1月
こ取込むために次の劃−が行われる。
If neither of the comparator circuits 301 and 302 of Mourning 1 stone Yohi porridge 2 detects a match, that is, if there is no block on the buffer memory that includes the word to which access is requested, then the necessary block is selected. The next operation is performed to fetch the buffer memo from the main memory.

即ち、バッファメモリに対するコンパートメントアドレ
スとしては、バッファメモリ制御モードが通常モードの
場合に11、モードフリップフロップ404は値0をも
ち、制御信号407には値1が印加されるので、バッフ
ァメモリに印加するコンパートメントアドレス401と
しては、バッファメモリ検索テーブル2から続出された
リプレースメントビ、ト部203の1直がアンド回I4
08力)ら出力される。
That is, the compartment address for the buffer memory is 11 when the buffer memory control mode is the normal mode, the mode flip-flop 404 has the value 0, and the control signal 407 has the value 1, so it is applied to the buffer memory. As the compartment address 401, the first shift of the replacement part 203 successively retrieved from the buffer memory search table 2 is the AND time I4.
08 force) is output.

バッファメモリ制御モードが限定モードの場合Eこは、
モードフリップフロップ404ft(1[1をもち制御
信号40右こ1ま1直0が印加されるので、アンド回路
408はバッファメモリ検索テーブル2のリプレースメ
ントビット部の値にかθ)わらず、ft1oかアンド回
路408力Xら出力さnることになる0このアンド回路
の出力−401が、バッファメモリ7にアドレス信号の
一部として印加される。
If the buffer memory control mode is limited mode,
Since the mode flip-flop 404ft (1 [1) is applied and the control signal 40 right side 1 or 1 right side 0 is applied, the AND circuit 408 selects ft1o regardless of the value of the replacement bit section of the buffer memory search table 2. The output of the AND circuit 408, which will be output from X, is applied to the buffer memory 7 as part of the address signal.

これにより、限定モードの場合番こは無条件に、バッフ
ァメモリのコンパートメントアドレスの0が、通常モー
ドの場合にはリプレースメントビ。
As a result, in the limited mode, the number is unconditionally set to 0 in the compartment address of the buffer memory, and in the normal mode, the number is set to 0 for replacement.

トで指定されるバッファメモリのコンパートメントがリ
プレースの対象として選ばれることになる。
The buffer memory compartment specified by the default will be selected for replacement.

主S[〕1意装置およびバッファメモリのブロック内1
ノードアドレスとしては、アクセス制御41部4のワー
ドカウンタの出力402を使用して、ワードカウンタ4
03の1直を0から7まで11久カウントア、プしlJ
がら、谷イ直について主記憶5を絖出し、続出さイ1.
たj−夕を王り己憶データレジスタ6にセットし、この
値をバッファメモリ7#こ誉込む。この処理を灯った後
バッファメモリ検索テーブル2の。
Main S [] 1 in block of unique device and buffer memory
The output 402 of the word counter of the access control unit 4 is used as the node address.
03's 1st shift from 0 to 7 for 11 days.
However, I created the main memory 5 about Tani I, and a series of data appeared.
The value is then set in the self-memory data register 6, and this value is written into the buffer memory 7#. After this process is completed, the buffer memory search table 2 is searched.

第lあるいはwJ2のブロックアドレス部2o1、ある
いは202のリプレースメントビ、 ト@203カ)ら
続出された値で指定されるブロックアドレス部に、上記
憶アドレスレジスタlのブロックアドレス部のkを誓込
む。この後、先lこ示した比較回路による一致検出の処
理を行う。この場合には、対応fるブロックがリプレー
スメントビットで指定さiLるコンパートメントに既に
格納済であるので、比較回路で一致が検出され、バッフ
ァメモリへのアクセスが行われることになる。
The block address field k of the upper storage address register l is assigned to the block address field specified by the value successively output from the block address field 2o1 of the l-th or wJ2, or the replacement bit of 202 (203). Thereafter, the matching detection process is performed by the comparison circuit described above. In this case, since the corresponding block f has already been stored in the compartment iL specified by the replacement bit, the comparison circuit detects a match and accesses the buffer memory.

次iこ本発明の第2の実mレリについて説明する。Next, the second real m-reli of the present invention will be explained.

本実施例においては、バッファ*1Jo141モードを
限定モードに設定、あるいは解赦す6fこめに、譜だの
機械飴命令が設けられ、この特定の線分が火付された時
点で、アクセス制御部のモードが設定される。このモー
ドが限定モードに設定されている場合、通常モートに設
定されている場合の動作は、第1の実施的における場合
と同様である。
In this embodiment, a mechanical candy command for music is provided at 6f to set or release the buffer *1 Jo141 mode to the limited mode, and when this particular line segment is lit, the access control unit mode is set. When this mode is set to limited mode, the operation when set to normal mode is the same as in the first embodiment.

以上本発明の一笑jllli例Iこついて説明したが、
杢成明であきらρ)なように、本発明の主旨はバッファ
メモリの特定のブロック位置のみをリプレースの対象と
するような創作モード(隈足モート’)F!:設定、解
除する+段、およびバッファメモリへのアクセスに際し
プロ、りのアクセスの行われ方に応じてリプレースメン
ト↑#報の更新を行うための制一手段、およびプロ、り
のリグレースに−して(ま通常モードに3いてはリプレ
ースメント情報1こおいて最も長い間アクセスの行われ
なかったと指定されているコンパートメントに属するブ
ロック−こ対してブロックのリプレースを行い、限定モ
ードζこおいてはリプレースメント情報にηす)わらず
、特定のコンパートメントに属するブロックに対してリ
プレースを行うための制御手段を備えることにより限定
モードにおいてIマ、バッファメモリの特定のブロック
位置のみがリプレースの対象となるよう薔こしたもので
あり、これにより局所性の低いプログラムの実行lこ際
してこのためにバッフアメ七りの多くの部分がリプレー
スの対象となることを防止Tにとを可能(こしたもので
ある。
I have explained the present invention in detail above, but
As described in Moku Nariaki and Akira ρ), the gist of the present invention is to create a creation mode (Kumaashi Mort') in which only a specific block position of the buffer memory is targeted for replacement. : Setting, canceling, and replacement depending on how the buffer memory is accessed. (In normal mode 3, the block belonging to the compartment that is designated as having not been accessed for the longest time in the replacement information 1) is replaced; in limited mode ζ, the block is replaced. By providing a control means for replacing blocks belonging to a specific compartment, regardless of the information, it is possible to replace only a specific block location in the buffer memory in the limited mode. This makes it possible to prevent many parts of the buffer from being replaced when programs with low locality are executed. .

従って、」ス上述べた不発明の主旨に背かぬ限り、いく
つかの変形が可能であり、たとえば、本冥施171J 
lこ、に;&j/gバ、フバッファメモリト数、コンパ
ートメント数、ブロックサイズ等、あるいは主記憶仔肇
等は他の進切な値に設定できることは明らかであり、た
とえばコンパートメント数を多くシた場打においでは、
リプレースメント↑pt@として複数個りビット数が必
要となるととも−こリプレースメント情報の史耕、ある
いは蛾も蔑い間アクセスの行われなかったコンパートメ
ントの検出等の論理もコンパートメント数Iこ対応した
複雑なものとなるのであろう。
Therefore, some modifications are possible as long as they do not violate the spirit of non-invention as stated above, for example, Honmeishi 171J
It is obvious that the number of buffer memories, number of compartments, block size, etc., or main memory size, etc., can be set to other arbitrary values; for example, if the number of compartments is large, At the field batting,
As a replacement ↑pt@ requires multiple bits, the logic for tracking replacement information or detecting a compartment that has not been accessed for a long time is also complicated depending on the number of compartments. It will become something.

また、本実施例において:ま、バッファメモリの検索l
こ夾アドレスを用いるものとして説明しでいるが、従来
知られているようfこ仮想アドレスにより検索を行うよ
引こすることも可能である。
In addition, in this embodiment: Well, buffer memory search l
Although the above description assumes that a virtual address is used, it is also possible to perform a search using a virtual address, as is known in the art.

また、本実施例iこおいては、アクセス制御部の具体的
な冥現方法Iこついては本発明の主旨に関連の強い一部
を除き旺#J7cl:説明は行ってぃ1iいが、これは
±h己憶装置、バッファメモリの特性:@1こ応じで従
来知らILでいる技術fこより8易に作成9舵であるこ
とはいうまでもない。
In addition, in this embodiment, a specific method for realizing the access control unit will be described except for a part that is strongly related to the gist of the present invention. It goes without saying that the characteristics of the self-storage device and buffer memory are easily created based on the conventionally known IL technology.

ま1こ、本実施例の説明fこおいてはバッファ制御モー
ドの限だモードへの設定のタイミングについて(ま時に
述べていないがたとえば、長大データの移込砧令のよう
な特定の節令の実行に除して、この命令の来何を制御T
るマイクロ命合列の中で限矩七−ドに設定、解除する場
合あるい(ま1%定のプロセジャのプロセジャを記述す
るdllil構遺体(これ、をプロセジャ記述子とよぶ
)にこのフィールドにより、このプロセジャの実行tこ
際しては、限定モードでバッファメモリを制御すべきで
あること8−不T%定のフィールドを設け、プロセジャ
のコール命令の実行Iこ際して対°応するプロセジャn
己連子のこのフィールドを参照し、限定モードの用足が
あ6揚合lこは、アクセス制御モードを限定モードに設
定し、リターンに際して限定モードを屏ばTる。ハート
“ウェアによりグロセジャ紀迷子uノ゛ナエノク寺が行
われる揚台にB1コール命令をイfつマイクロ命令タリ
において、このモードの設定が巾1]釘さnることにな
る。
First, explanation of this embodiment will be given regarding the timing of setting the buffer control mode to the limited mode (although it is not mentioned here, for example, when a specific regulation such as a regulation for transferring large amounts of data) is set. T controls what happens to this instruction except for execution.
This field can be used to set or release a limited rectangle code in a micro sequence, or to write a dllil structure (this is called a procedure descriptor) that describes a 1% fixed procedure. , when executing this procedure, the buffer memory should be controlled in limited mode. 8 - Provide an unspecified field to execute the procedure's call instruction. procedure n
If you refer to this field of the self-link and want to use the limited mode, set the access control mode to the limited mode and return to the limited mode. The setting of this mode will be set in the micro-instruction when the B1 call instruction is sent to the platform where the hardware is used to perform the Glossary era.

また、プロセジャ記述子のチェックをハードウェアlこ
より行わないような情報処理装置に3いて(ま、ソフト
ウェアによりプロセジャ記述子の前述のパンツアメモリ
制御モードフィールドをチェ。
Also, if you are using an information processing device that does not check the procedure descriptor by hardware (or check the above-mentioned panzer memory control mode field of the procedure descriptor by software).

りし限定モードの悄定がある場合には、限定モードに瞑
足T心ための特別の俵孤語命令を実行することイこより
、特足りプロセジャの来社に際してバラノアメモリを限
定モードで使用することが可能である。
If you are in a state of limited mode, you can use Baranoa memory in limited mode when a special procedure person comes to the company by executing a special command to meditate in limited mode. It is possible to do so.

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

図は、本発明のバッファメモリ制両方式を具体的1こし
た一夾myすをホすブロック図である。 図シこSいて、 1はメモリアドレスレジスタ、 2はバッファメモリ横糸チーフル、 301.302は第1および第2の比較回路。 4(まアクセスIIyIJ−邸、 5は上記憶、 6は王り己憶データレジスタ、 7ぼバッファメモリ、 8はメモリデータレジスタを下す。
The figure is a block diagram showing a concrete version of the buffer memory system of the present invention. In the figure, 1 is a memory address register, 2 is a buffer memory woof thread, and 301 and 302 are first and second comparison circuits. 4 (access IIyIJ-house, 5 is the upper memory, 6 is the main memory data register, 7 is the buffer memory, 8 is the lower memory data register.

Claims (1)

【特許請求の範囲】 1、情報処理装置のバッファメモリにおいて、ノ\7フ
アメそり上のプロ、りのリプレース制御に関する特定の
モードを設定、解除する手段、およびバッファメモリで
の情報のアクセスに除しC1プロ、りのアクセスの行わ
れ方に応じてリプレースメント情報を更倉管理する手段
、バッフアノモリでのノu7りのリン−レースに際して
、前記特定9ノモードが設定されているかどうかをβ照
し、特定のモードが設定されていない場合には、^US
己更新管理さイtているリプレースメント情報にもとづ
き、リプレースすべきブロックを決足し、前ml特定の
モードが設にされでいる場合には% iiJ記′e埋さ
れでいるリプレースメント情報にかかわらず、特定のブ
ロックをリプレース丁べきブロックとして次菫し、これ
薔こ対して主記憶上のブロックの取込6を行っための制
御手段を備えることを特徴とするバッファメモリ制御方
式。 2、 14+1配バツフアメモリ上のブロックの制御に
関する特定のモードを設定、解除する手段が機械語命令
をもつことを特徴とする特Il′F請求の範囲第1項記
載のバッファメモリ制御方式。
[Claims] 1. In a buffer memory of an information processing device, a means for setting and canceling a specific mode related to replacement control of the software on the computer, and an exception for accessing information in the buffer memory. A means for managing replacement information according to how access is performed in C1 Pro, β checking whether the specific 9 mode is set when running a race in a buffer anomaly, If a specific mode is not set, ^US
Based on the replacement information stored in the self-update management program, the block to be replaced is determined, and if the previous ml specific mode is set, regardless of the replacement information that is buried, 1. A buffer memory control method, comprising a control means for next resuming a specific block as a block to be replaced and fetching the block from the main memory. 2. 14+1 The buffer memory control system according to claim 1, wherein the means for setting and canceling a specific mode for controlling blocks on the distributed buffer memory has a machine language instruction.
JP57042170A 1982-03-17 1982-03-17 Buffer memory control system Pending JPS58159284A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57042170A JPS58159284A (en) 1982-03-17 1982-03-17 Buffer memory control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57042170A JPS58159284A (en) 1982-03-17 1982-03-17 Buffer memory control system

Publications (1)

Publication Number Publication Date
JPS58159284A true JPS58159284A (en) 1983-09-21

Family

ID=12628490

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57042170A Pending JPS58159284A (en) 1982-03-17 1982-03-17 Buffer memory control system

Country Status (1)

Country Link
JP (1) JPS58159284A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS638851A (en) * 1986-06-27 1988-01-14 Yokogawa Hewlett Packard Ltd Cache memory control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS638851A (en) * 1986-06-27 1988-01-14 Yokogawa Hewlett Packard Ltd Cache memory control system

Similar Documents

Publication Publication Date Title
US5535361A (en) Cache block replacement scheme based on directory control bit set/reset and hit/miss basis in a multiheading multiprocessor environment
US8607025B2 (en) Data structure for enforcing consistent per-physical page cacheability attributes
US6912623B2 (en) Method and apparatus for multithreaded cache with simplified implementation of cache replacement policy
US10019379B2 (en) Translation lookaside buffer switch bank
US20130339655A1 (en) Translation look-aside table management
US20090300293A1 (en) Dynamically Partitionable Cache
US6671779B2 (en) Management of caches in a data processing apparatus
US7174436B1 (en) Method and system for maintaining shadow copies of data using a shadow mask bit
US6145057A (en) Precise method and system for selecting an alternative cache entry for replacement in response to a conflict between cache operation requests
JPH08235060A (en) Method and system for management of cache memory using plurality of hash functions
JPH0529945B2 (en)
JPS6111865A (en) Memory access control system
EP2562652B1 (en) System and method for locking data in a cache memory
TW200905555A (en) Caching of microcode emulation memory
JPS58159284A (en) Buffer memory control system
JP3974131B2 (en) Method and apparatus for controlling cache memory
US20110066785A1 (en) Memory Management System and Method Thereof
JP2659007B2 (en) Information processing method and apparatus
JP2613258B2 (en) Information processing method and apparatus
US20190220414A1 (en) Increasing effective cache associativity
JPS58159285A (en) Buffer memory control system
JPH02188849A (en) Cache memory system
JPH02156352A (en) Cache memory
JPH0156411B2 (en)
JPS6280742A (en) Buffer storage control system