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
JPH0664550B2 - Buffer memory control system - Google Patents
[go: Go Back, main page]

JPH0664550B2 - Buffer memory control system - Google Patents

Buffer memory control system

Info

Publication number
JPH0664550B2
JPH0664550B2 JP60292637A JP29263785A JPH0664550B2 JP H0664550 B2 JPH0664550 B2 JP H0664550B2 JP 60292637 A JP60292637 A JP 60292637A JP 29263785 A JP29263785 A JP 29263785A JP H0664550 B2 JPH0664550 B2 JP H0664550B2
Authority
JP
Japan
Prior art keywords
address
block
memory
buffer
buffer storage
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 - Lifetime
Application number
JP60292637A
Other languages
Japanese (ja)
Other versions
JPS62154039A (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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP60292637A priority Critical patent/JPH0664550B2/en
Publication of JPS62154039A publication Critical patent/JPS62154039A/en
Publication of JPH0664550B2 publication Critical patent/JPH0664550B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明はバッファ記憶の制御方式に係り、特に複数の中
央処理装置、入出力処理装置等によって共通に使用され
るストアイン方式のバッファ記憶に好適な制御方式に関
する。
Description: FIELD OF THE INVENTION The present invention relates to a buffer storage control system, and is particularly suitable for a store-in system buffer storage commonly used by a plurality of central processing units, input / output processing units, and the like. Control system.

〔発明の背景〕[Background of the Invention]

主記憶と主記憶のデータの一部を保持するバッファ記憶
をもち、複数の中央処理装置あるいは入出力処理装置が
このバッファ記憶をシェァするシステムは周知である。
ストアイン方式は、書込み動作時、該当ブロックがバッ
ファ記憶にあると、書込みデータをバッファ記憶にのみ
ストアする方式である。
A system having a main memory and a buffer memory for holding a part of the data in the main memory, and a plurality of central processing units or input / output processing devices sharing the buffer memory is well known.
The store-in method is a method of storing write data only in the buffer storage when the corresponding block is in the buffer storage during the write operation.

ストアイン方式では、要求されたデータがバッファ記憶
にない場合(not in BS)、バッファ記憶内の1ブ
ロックをリプレース対象として選び、当該ブロックに対
して過去にストアが行われて主記憶の内容と異なってい
ると、そのブロックを主記憶に書戻した後、要求された
データを含む1ブロックを主記憶からバッファ記憶のリ
プレース対象として選ばれたブロックが格納されていた
エリアに転送する。リプレース対象として選ばれたバッ
ファ記憶内のブロックに対して過去にストアが行われて
おらず、主記憶の内容と同じである場合は、当該ブロッ
クの主記憶への書戻しは行わず、主記憶から読出したブ
ロックを上書きする。
In the store-in method, if the requested data is not in the buffer memory (not in BS), one block in the buffer memory is selected as a replacement target, and the block is stored in the past and the contents of the main memory are stored. If they are different, the block is written back to the main memory, and then one block containing the requested data is transferred from the main memory to the area where the block selected as the replacement target of the buffer memory was stored. If the block in the buffer memory selected as the replacement target has not been stored in the past and the content is the same as the main memory, the main memory is not written back to the main memory. Overwrites the block read from.

この時、バッファ記憶に保持されているデータの主記憶
上のアドレスが登録されているアドレスアレイについて
は、従来、主記憶から所要ブロックがバッファ記憶に転
送され、当該ブロックのアドレスが登録されるまでの間
に、リプレース対象となったブロックに対し、他のメモ
リアクセス要求によってストアが行われないようにする
ため、アドレスアレイの対応するエントリを無効化して
いる。これは主記憶から転送されたブロックが上書きさ
れて、ストアしたデータが消失されないようにする為で
ある。
At this time, regarding the address array in which the address in the main memory of the data held in the buffer memory is registered, conventionally, until the required block is transferred from the main memory to the buffer memory and the address of the block is registered. In the meantime, the corresponding entry of the address array is invalidated so that the block that is the replacement target is not stored by another memory access request. This is to prevent the stored data from being lost by overwriting the block transferred from the main memory.

第3図は従来技術の構成例で、バッファ記憶が2台の中
央処理装置(CPU1、CPU2)によりシェアされて
いる例を示している。図中、101,102は各々CP
U1,CPU2からのメモリ・アクセス・アドレス用レ
ジスタである。103はCPU1,CPU2のいずれか
のメモリアクセス要求を選択するセレクタである。11
0はバッファ記憶のアドレスアレイで本例では4ロー構
成の場合を示す。120〜123はコンペア回路、13
1はロー・アドレス・エンコーダ、132〜133はO
Rゲート、140はnot in BS制御論理部、150
はバッファ記憶用アドレスレジスタ、151はバッファ
記憶アクセス許可信号用レジスタ、160はバッファ記
憶である。
FIG. 3 shows an example of the configuration of the prior art, in which the buffer storage is shared by two central processing units (CPU1 and CPU2). In the figure, 101 and 102 are CPs, respectively
U1 and CPU2 are memory access address registers. A selector 103 selects a memory access request from either the CPU 1 or the CPU 2. 11
Reference numeral 0 is an address array for buffer storage, and in this example, a 4-row configuration is shown. 120 to 123 are compare circuits, 13
1 is a low address encoder, 132 to 133 are O
R gate, 140 is not in BS control logic, 150
Is a buffer storage address register, 151 is a buffer storage access permission signal register, and 160 is a buffer storage.

第3図の動作を説明するためのタイミングチャートを第
4図に示す。タイミング200では、CPU1のメモリ
アクセス要求がセレクタ103でセレクトされ、レジス
タ101のアドレスの一部をアドレスアレイ110のカ
ラムアドレスとして索引し、残りのアドレスがアドレス
アレイ110から読出した4つのエントリに格納されて
いるアドレスとコンペア回路120〜123でコンペア
される。アドレスアレイ110の各エントリは有効フラ
グを持っており、エントリに登録されているアドレスが
有効か無効かを示す。コンペア回路120〜123は、
アドレスアレイ110から読出された各エントリの有効
フラグをイネーブル信号とする。この時、いずれかのコ
ンペア回路で一致を検出すると、エンコーダ131で該
当ローアドレスが生成され、バッファ記憶160のアド
レスの一部としてレジスタ150にセットされる。又、
バッファ記憶アクセス許可信号が151にセットされ、
バッファ記憶160をタイミング201でアクセスす
る。
A timing chart for explaining the operation of FIG. 3 is shown in FIG. At timing 200, the memory access request of the CPU 1 is selected by the selector 103, a part of the address of the register 101 is indexed as a column address of the address array 110, and the remaining addresses are stored in the four entries read from the address array 110. The address is compared with the corresponding address in the compare circuits 120 to 123. Each entry of the address array 110 has a valid flag and indicates whether the address registered in the entry is valid or invalid. The compare circuits 120 to 123 are
The valid flag of each entry read from the address array 110 is used as an enable signal. At this time, when a match is detected by any of the compare circuits, the corresponding row address is generated by the encoder 131 and set in the register 150 as a part of the address in the buffer memory 160. or,
The buffer storage access permission signal is set to 151,
The buffer memory 160 is accessed at timing 201.

次にタイミング210でCPU2のメモリアクセス要求
がセレクトされ、上記CPU1のメモリアクセス要求と
同様に、アドレスアレイ110を索引した結果、いずれ
のエントリとも一致しなかった場合、not in BS制
御論理部140が起動される。論理部140において、
リプレース・ブロックの決定及び、リプレース・ブロッ
クの主記憶への書戻しが必要か否かを判定し、必要なら
ばタイミング211で主記憶へ書戻す為にバッファ記憶
160からの読出しを行う。さらにアドレスアレイ11
0のリプレース・ブロック無効化の為、タイミング21
2でアドレスアレイ110の対応するエントリの有効フ
ラグをリセットする。CPU1の後続メモリアクセス要
求はタイミング221でセレクトされる。
Next, at timing 210, the memory access request of the CPU 2 is selected, and as a result of indexing the address array 110 as in the case of the memory access request of the CPU 1, if no entry matches the entry, the not in BS control logic unit 140 Is activated. In the logic unit 140,
It is determined whether the replacement block needs to be determined and the replacement block needs to be written back to the main memory. If necessary, at timing 211, the buffer memory 160 is read to write back to the main memory. Further address array 11
Timing 21 due to 0 replacement block invalidation
At 2, the valid flag of the corresponding entry in the address array 110 is reset. The subsequent memory access request from the CPU 1 is selected at timing 221.

ところで、上記従来技術においては、アドレスアレイを
無効化する為の時間は、他のメモリアクセス要求による
アドレスアレイの索引が行えず、アドレスアレイのスル
ープット低下を招く欠点がある。なお、バッファ記憶を
複数の処理装置でシェアするシステムの従来例として
は、例えば特開昭57−33473号公報を挙げること
ができる。
By the way, in the above-mentioned conventional technique, the time for invalidating the address array has a drawback that the address array cannot be indexed by another memory access request, resulting in a decrease in the throughput of the address array. As a conventional example of a system in which the buffer storage is shared by a plurality of processing devices, there is, for example, Japanese Patent Laid-Open No. 57-33473.

〔発明の目的〕[Object of the Invention]

本発明の目的は、not in BS時、リプレース対象に
なったブロックに対応するアドレスアレイのエントリの
無効化を行わないようにして、アドレスアレイのスルー
プットの低下を防止するバッファ記憶制御方式を提供す
ることにある。
An object of the present invention is to provide a buffer storage control method for preventing a decrease in the throughput of an address array by not invalidating the entry of the address array corresponding to the block to be replaced when not in BS. Especially.

〔発明の概要〕[Outline of Invention]

本発明は、not in BS時、リプレース対象となった
ブロックのアドレスを保持するレジスタを設け、所要ブ
ロックが主記憶からバッファ記憶に転送されて、アドレ
スアレイに当該ブロックアドレスが登録されるまでの
間、上記レジスタに保持されたアドレスと他のメモリア
クセス要求のアドレスを比較し、一致した場合はバッフ
ァ記憶をアクセスさせないようにすることにより、アド
レスアレイのリプレース対象になったブロックに対応す
るエントリの無効化を行わなくてもよいようにしたもの
である。
The present invention provides a register for holding the address of the block to be replaced when not in BS, until the required block is transferred from the main memory to the buffer memory and the block address is registered in the address array. , The address held in the above register is compared with the address of another memory access request, and if they match, the buffer memory is not accessed and the entry corresponding to the block that is the replacement target of the address array is invalidated. It does not need to be converted.

このリプレース対象となったブロックのアドレスをレジ
スタに保持するのは、ブロックアドレス全てを保持して
もよいし、その一部を保持してもよい。あるいは、バッ
ファ記憶上のアドレスを保持してもよい。又、当該レジ
スタとの比較では、メモリアクセス要求がストアの時に
限定してもよいし、フェッチストアいずれれのケースに
も比較するようにしてもよい。
The address of the block to be replaced may be held in the register, either all the block addresses or some of them. Alternatively, the address on the buffer storage may be held. In comparison with the register, the memory access request may be limited to a store, or may be compared with any case of fetch store.

〔発明の実施例〕Example of Invention

第1図は本発明の一実施例の構成図で、第3図の従来構
成にカラムアドレス退避レジスタ300、カラムアドレ
スコンペア回路301、ORゲート302を追加したも
のである。第2図に第1図の動作を説明するためのタイ
ミングチャートを示す。
FIG. 1 is a block diagram of an embodiment of the present invention, in which a column address save register 300, a column address compare circuit 301, and an OR gate 302 are added to the conventional configuration of FIG. FIG. 2 shows a timing chart for explaining the operation of FIG.

タイミング200でCPU1のメモリアクセス要求がセ
レクトされ、バッファ記憶160をタイミング201で
アクセスすることは第3図の場合と同様である。タイミ
ング210でCPU2のメモリアクセス要求がセレクト
され、アドレスアレイ110を索引した結果、いずれの
エントリとも一致しなくてnot in BS制御論理部1
40が起動されると、制御信号310によりレジスタ1
02の当該アクセス要求アドレスの一部(本例ではアド
レスアレスのカラムアドレスに当たる部分)が退避レジ
スタ300に格納される。従来と同様に、リプレースブ
ロックが決定され、主記憶への書戻しが必要ならば、タ
イミング211でバッファ記憶160からの読出しを行
う。この場合、第4図のタイミング212で行っている
アドレスアレイ140のリプレースブロックに対応する
エントリの有効フラグをリセットする動作は不要なの
で、CPU1の後続メモリアクセス要求は、従来より1
タイミング早いタイミング320でセレクトされ、アド
レスアレイ110の検索を行う。さらに、CPU2のno
t in BSとなったメモリアクセス要求による主記憶
の読出し、及びバッファ記憶160への書込み、アドレ
スアレイ110の登録が終るまで、制御信号311は真
理値“1”になっており、レジスタ300とCPU1の
後続メモリアクセス要求のカラムアドレス部がコンペア
回路301で比較される。コンペア回路120〜123
のいずれかで一致が検出され、コンペア回路301で一
致が検出されなければ、所要データはバッファ記憶16
0に存在しアクセス可能であるので、タイミング321
でバッファ記憶160をアクセスすることができる。コ
ンペア回路301で一致が検出されると、CPU2のno
t in BS処理が終るまで、CPU1のメモリアクセ
ス要求はレジスタ101で待され、CPU2のnot in
BS処理終了後、あらためてセレクトされる。
The memory access request of the CPU 1 is selected at timing 200, and the buffer storage 160 is accessed at timing 201, as in the case of FIG. At timing 210, the memory access request of the CPU 2 is selected, and as a result of indexing the address array 110, it does not match any of the entries, so not in the BS control logic unit 1
40 is activated, the control signal 310 causes the register 1
A part of the access request address 02 (the part corresponding to the column address of the address ares in this example) is stored in the save register 300. As in the conventional case, if the replacement block is determined and the writing back to the main memory is necessary, the reading from the buffer memory 160 is performed at the timing 211. In this case, since the operation of resetting the valid flag of the entry corresponding to the replace block of the address array 140, which is performed at the timing 212 of FIG. 4, is unnecessary, the subsequent memory access request of the CPU 1 is 1
The address array 110 is searched by being selected at the timing 320 which is early in timing. Furthermore, no CPU2
The control signal 311 keeps the truth value “1” until the main memory is read, the buffer memory 160 is written, and the address array 110 is registered by the memory access request that becomes t in BS. The column address part of the subsequent memory access request is compared by the compare circuit 301. Compare circuits 120-123
If a match is detected in any of the above and no match is detected in the compare circuit 301, the required data is stored in the buffer storage 16
Since it exists in 0 and is accessible, timing 321
The buffer store 160 can be accessed at. When the compare circuit 301 detects a match, the CPU2 no
Until the in BS processing is completed, the memory access request of the CPU 1 is waited in the register 101, and the CPU 2 not in
After the BS processing is completed, it is selected again.

〔発明の効果〕〔The invention's effect〕

本発明によれば、not in BS発生時、リプレースブ
ロックに対応するアドレスアレイの無効化を行わないの
で、後続メモリアクセス要求を待たせることなく、アド
レスアレイを検索でき、アドレスアレイのスループット
ひいてはバッファ記憶のスループットを向上させること
ができる。
According to the present invention, when not in BS occurs, the address array corresponding to the replace block is not invalidated, so that the address array can be searched without waiting for the subsequent memory access request, and the throughput of the address array and thus the buffer storage. Throughput can be improved.

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

第1図は本発明の一実施例の構成図、第2図は第1図の
動作を説明するためのタイミングチャート、第3図は従
来技術を示す構成図、第4図は第3図の動作を特明する
ためのタイミングチャートである。 110…バッファ記憶アドレスアレイ、 140…not in BS制御論理部、 160…バッファ記憶、300…カラムアドレス退避レ
ジスタ、301…カラムアドレスコンペア回路。
FIG. 1 is a configuration diagram of an embodiment of the present invention, FIG. 2 is a timing chart for explaining the operation of FIG. 1, FIG. 3 is a configuration diagram showing a conventional technique, and FIG. 4 is a configuration diagram of FIG. 6 is a timing chart for clarifying the operation. 110 ... Buffer storage address array, 140 ... Not in BS control logic unit, 160 ... Buffer storage, 300 ... Column address save register, 301 ... Column address compare circuit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】主記憶のデータの一部を保持するバッファ
記憶と、該バッファ記憶に保持されたデータの主記憶ア
ドレスを保持するアドレスアレイとを具備し、ストアイ
ン方式によりバッファ記憶の読み書きを制御する方式に
おいて、バッファ記憶に所要のデータが存在しない場合
にリプレース対象になったブロックのアドレスを保持す
るレジスタを設け、主記憶からバッファ記憶へ所要のデ
ータを含むブロックの転送とアドレスアレイへのアドレ
スの登録が完了するまで、上記レジスタに保持されたブ
ロックについてのアドレスアレイへのアクセスを保留と
して他のアクセスを受け付けることを特徴とするバッフ
ァ記憶制御方式。
1. A buffer memory for holding a part of data in a main memory, and an address array for holding a main memory address of the data held in the buffer memory. In the control method, a register that holds the address of the block to be replaced when the required data does not exist in the buffer storage is provided, and the transfer of the block containing the required data from the main storage to the buffer storage and the transfer to the address array. A buffer storage control method characterized in that the access to the address array for the block held in the register is suspended and another access is accepted until the address registration is completed.
JP60292637A 1985-12-27 1985-12-27 Buffer memory control system Expired - Lifetime JPH0664550B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60292637A JPH0664550B2 (en) 1985-12-27 1985-12-27 Buffer memory control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60292637A JPH0664550B2 (en) 1985-12-27 1985-12-27 Buffer memory control system

Publications (2)

Publication Number Publication Date
JPS62154039A JPS62154039A (en) 1987-07-09
JPH0664550B2 true JPH0664550B2 (en) 1994-08-22

Family

ID=17784366

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60292637A Expired - Lifetime JPH0664550B2 (en) 1985-12-27 1985-12-27 Buffer memory control system

Country Status (1)

Country Link
JP (1) JPH0664550B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6017134B2 (en) * 1981-03-02 1985-05-01 株式会社日立製作所 Storage device control method

Also Published As

Publication number Publication date
JPS62154039A (en) 1987-07-09

Similar Documents

Publication Publication Date Title
US5056002A (en) Cache memory for use with multiprocessor systems
EP0029517B1 (en) Store-in-cache mode data processing apparatus
KR920005280B1 (en) High speed cache system
EP0090575A2 (en) Memory system
EP0347040A1 (en) Data memory system
JPH0260012B2 (en)
EP0533427B1 (en) Computer memory control system
JPH0532775B2 (en)
JPH0319976B2 (en)
EP0173909B1 (en) Look-aside buffer least recently used marker controller
JPH0664550B2 (en) Buffer memory control system
JPS6329297B2 (en)
JP2703255B2 (en) Cache memory writing device
JPS63240651A (en) Cache memory
JP3437224B2 (en) Delay invalidation method
JP2982197B2 (en) Bus monitor circuit for cache
JPH03271859A (en) Information processor
JPH04160543A (en) Cache device
JPS6238743B2 (en)
EP0198574A2 (en) Apparatus and method for data copy consistency in a multi-cache data processing system
JPH07219845A (en) Cache memory control system
JPH02101552A (en) Address conversion buffer processing system
JPH0769861B2 (en) Control method of bypass buffer in cache memory controller
JPS62174846A (en) Storage checking system
JPS602704B2 (en) buffer memory device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term