JPS6225351A - Page history memory processing system - Google Patents

Page history memory processing system

Info

Publication number
JPS6225351A
JPS6225351A JP60165186A JP16518685A JPS6225351A JP S6225351 A JPS6225351 A JP S6225351A JP 60165186 A JP60165186 A JP 60165186A JP 16518685 A JP16518685 A JP 16518685A JP S6225351 A JPS6225351 A JP S6225351A
Authority
JP
Japan
Prior art keywords
page
bit
history memory
address
page history
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
JP60165186A
Other languages
Japanese (ja)
Inventor
Tadashi Hara
忠 原
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
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 filed Critical NEC Corp
Priority to JP60165186A priority Critical patent/JPS6225351A/en
Publication of JPS6225351A publication Critical patent/JPS6225351A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To save a hardware by providing an initial setting means and setting an address array to a proper value, and setting a data array and a page history memory so that pages are neither referred to nor changed. CONSTITUTION:An initializing means 500 sends a request to initialize all addresses of a page history memory 400 to a page address register (PA1) 103 and a data register (DR1) 104 continuously through selecting means (SEL) 101 and 102. The minimum value of a page address is registered in the address array (AA) 105 in response to the request to initialize; and the data array (DA) 206 has both a reference (R) bit and a change (C) bit set to '0' and the page history memory 400 has its R bit and C bit to set both '0'. Then, subsequent processing is performed after the initialization while it is considered that the AA 105, DA 206, and page history memory 400 are all effective.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はページ履歴メモリ処理方式に関し、特にキャン
シュ方式のページ履歴メモリ処理方式における初期設定
に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a page history memory processing method, and particularly to initial settings in a cache-based page history memory processing method.

〔従来の技術〕[Conventional technology]

従来、この種のページ履歴メモリ処理方式は、アドレス
アレイの中にアドレス以外にそのエントリが有効である
かどうかを示す有効ビット(以下、■ビットと略記する
)を有し、初期設定時においてその■ビットを全て0′
 (有効でない状態)に設定し、また、データアレイお
よびページ履歴メモリをパリティチェ、り等のためにパ
リティが合った状態に設定するように構成されている。
Conventionally, this type of page history memory processing method has a valid bit (hereinafter abbreviated as ■ bit) in addition to the address in the address array that indicates whether the entry is valid. ■ All bits are 0'
It is also configured to set the data array and page history memory to a parity-matched state for parity checking, etc.

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

上述した従来のベージ履歴メモリ処理方式は、アドレス
アレイ内にvビットを設けているので、Vビ、トのため
にアドレスアレイ用のメモリが余計に必要となり、ハー
ドウェア量が増加するという欠点がある。
The conventional page history memory processing method described above has the disadvantage that since v bits are provided in the address array, additional memory for the address array is required for the V bits, and the amount of hardware increases. be.

また、初期設定時に全てのVビットを無効の状態とする
ようになっているので、初期設定後かなりの間はミスヒ
ツト状態となり、ベージ履歴メモリへのアクセスが多く
出されることによって性能が低下するという欠点がある
In addition, since all V bits are disabled at the time of initial setup, the system will be in a miss-hit state for quite some time after the initial setup, resulting in performance degradation due to a large number of accesses to the page history memory. There are drawbacks.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第2図は本発明のベージ履歴メモリ処理方式の適用され
た一実施例を示すブロック図で、情報を記憶する2次記
憶装置30と、中央処理装置(以下、CPUと略記する
)10と、入出力装置(以下、IOPと略記する)20
と、メモリアクセス処理装置40と、ページ履歴メモリ
処理装置50と、メインメモリ装置(以下、MMtJと
略記する)60とから構成されている。メモリアクセス
処理装置40は、リクエスト受付部41およびメモリア
クセス制御部42より構成されている。
FIG. 2 is a block diagram showing an embodiment to which the page history memory processing method of the present invention is applied, in which a secondary storage device 30 for storing information, a central processing unit (hereinafter abbreviated as CPU) 10, Input/output device (hereinafter abbreviated as IOP) 20
, a memory access processing device 40, a page history memory processing device 50, and a main memory device (hereinafter abbreviated as MMtJ) 60. The memory access processing device 40 includes a request reception section 41 and a memory access control section 42.

cputoまたはl0P20からメモリアクセス処理装
置40に対してメモリアクセスの要求が出されると、メ
モリアクセス処理装置40はリクエスト受付部41でそ
の要求を受は付け、メモリアクセス制御部42でその要
求に応じたメモリアクセス要求をMMU60に対して送
出する。
When a memory access request is issued from cputo or l0P20 to the memory access processing device 40, the memory access processing device 40 accepts the request in the request reception unit 41, and responds to the request in the memory access control unit 42. A memory access request is sent to the MMU 60.

ページ履歴メモリ処理装置50は、MMU60上のペー
ジが参照されたかどうかを示す参照ピント(以下、Rビ
ットと略記する)と、ページが書き換えられたかどうか
を示す変更ビット(以下、Cビットと略記する)とをペ
ージ単位に記憶し、メモリアクセス処理装置40からの
RビットおよびCビットの更新および読出し要求に応じ
て更新および読出しを行う。
The page history memory processing device 50 has a reference focus (hereinafter abbreviated as the R bit) indicating whether the page on the MMU 60 has been referenced, and a change bit (hereinafter abbreviated as the C bit) indicating whether the page has been rewritten. ) are stored in page units, and updated and read in response to requests for updating and reading the R bit and C bit from the memory access processing device 40.

CPUl0またはl0P20からのメモリアクセス要求
に対してメモリアクセス処理装置40は、リクエスト受
付部41でその要求を受は付け、メモリアクセス制御部
42よりMMU60ヘアクセス要求を出すのと並行して
、ページ履歴メモリ処理装置50に対してRビットおよ
びCビットの更新を要求する。
In response to a memory access request from CPUl0 or l0P20, the memory access processing device 40 accepts the request at the request reception unit 41, and in parallel with issuing an access request from the memory access control unit 42 to the MMU 60, the memory access processing device 40 records the page history. A request is made to the memory processing device 50 to update the R bit and C bit.

すなわち、CPUl0またはl0P20の要求がMMU
60の続出しの要求であれば対応するページのRビット
を“l゛にし、書込みの要求であれば対応するページの
RビットおよびCビットをともに′l′にする要求を出
す。
In other words, the request from CPUl0 or l0P20 is
60, the R bit of the corresponding page is set to "l", and if the request is a write request, the R bit and C bit of the corresponding page are both set to "l".

次に、ページ履歴メモリ処理装置50の詳細について第
1図に基いて説明する。
Next, details of the page history memory processing device 50 will be explained based on FIG. 1.

ページ履歴メモリ処理装置50は、ページの参照を示す
Rビットおよびページの変更を示すCビットより構成さ
れたページ履歴メモリ400と、ページ履歴メモリ40
0の写しを保持するデータアレイ(以下、DAと略記・
する)206と、DA206がページ履歴メモリ400
上のどの部分の写しを保持するかの情報を持つアドレス
アレイ(以下、AAと略記する)105とを備え、メモ
リアクセス処理装置40のリクエスト受付部41からR
ビットおよびCビットの更新要求を選択手段(以下、S
ELと略記する) 101,102を介して第1ステー
ジのページアドレスレジスタ(以下、PAIと略記する
)103および第1ステージのデータレジスタ(以下、
DRlと略記する)104で受は取る。
The page history memory processing device 50 includes a page history memory 400 composed of an R bit indicating a page reference and a C bit indicating a page change;
Data array (hereinafter abbreviated as DA) that holds a copy of 0
) 206 and the DA 206 is the page history memory 400
an address array (hereinafter abbreviated as AA) 105 having information on which part of the above is to be retained;
A selection means (hereinafter referred to as S
A first stage page address register (hereinafter abbreviated as PAI) 103 and a first stage data register (hereinafter abbreviated as PAI) 101 and 102 (abbreviated as EL) 101 and 102
(abbreviated as DRl) 104, Uke is taken.

次に、PA1103のページアドレスでAA105を索
引し、その内容とPA1103のページアドレスとを比
較手段(以下、CMPと略記する)106によって比較
し、その結果を比較結果レジスタ(以下、CMRと略記
する)202を介して制御回路207へ送って対応する
ページのRビットおよびCビットがDA206の中に存
在するかどうかを調べる。以上の動作と並行して、PA
1103およびDR1104の内容をそれぞれ第2ステ
ージのページアドレスレジスタ(以下、PA2と略記す
る)203および第2ステージのデータレジスタ(以下
、DR2と略記する)204へ転送する。
Next, the AA105 is indexed using the page address of the PA1103, and its contents are compared with the page address of the PA1103 by a comparing means (hereinafter abbreviated as CMP) 106, and the result is stored in a comparison result register (hereinafter abbreviated as CMR). ) 202 to the control circuit 207 to check whether the R bit and C bit of the corresponding page are present in the DA 206. In parallel with the above operations, PA
The contents of 1103 and DR 1104 are transferred to a second stage page address register (hereinafter abbreviated as PA2) 203 and a second stage data register (hereinafter abbreviated as DR2) 204, respectively.

先の動作で対応するページのRビットおよびCビットが
DA206に存在することが判った場合(この場合をヒ
、・トと呼ぶ)には、5EL205を介してPA220
3のアドレスでDR2の内容が示ずRビ・7トまたはC
ビットをDA206へ書き込む。
If it is found in the previous operation that the R bit and C bit of the corresponding page exist in the DA 206 (this case is called hi, t), the data is sent to the PA 220 via the 5EL 205.
The contents of DR2 are not shown at address 3, and R bit 7 bit or C
Write the bit to DA206.

また、RビットおよびCビットの読出しの場合には、同
様にPA2203のアドレスでDA206をリプライレ
ジスタ(以下、RPRと略記する)304へ読み出し、
5EL306を介してメモリアクセス処理装置40へ送
り、さらに要求元へ送る。
In addition, in the case of reading the R bit and the C bit, similarly read the DA206 to the reply register (hereinafter abbreviated as RPR) 304 using the address of the PA2203,
The data is sent to the memory access processing device 40 via the 5EL 306, and further sent to the request source.

また、対応するページのRビットおよびCビットがDA
206に存在しないことが判った場合(この場合をミス
ヒツトと呼ぶ)には、次のRビットおよびCビットの更
新の要求の受付けを止めるとともに、AA105の内容
を第2ステージのアドレスアレイリードレジスタ(以下
、AAR2と略記する)へ読み出して、さらに第3ステ
ージのアドレスアレイリードレジスタ(以下、AA3と
略記する)301へ転送する。
Also, the R bit and C bit of the corresponding page are DA
206 (this case is called a miss), the reception of the next update request for the R bit and C bit is stopped, and the contents of AA 105 are transferred to the second stage address array read register ( The data is read out to the address array read register (hereinafter abbreviated as AA3) 301 of the third stage.

これと並行してPA2203の要求元ページアドレスを
第3ステージのページアドレスレジスタ(以下、PA3
と略記する)302へ送り、さらにPA:2203のア
ドレスでDA206の内容を第3ステージのデータレジ
スタ(以下、DR3と略記する)303に読み出す。そ
して、AAR3301とPA3302のそれぞれの一部
を5EL305で選択してページ履歴メモリ400に送
り、またこれと同時にDR3の内容も送り、ページ履歴
メモリ400の対応するアドレスにDR3の内容を書き
込む0次に、5EL305をPA3302側に切り換え
てPA3302の内容をページ履歴メモリ400に送り
、その読出しを行う。ページ履歴メモリ400より読々
出された内容は、S E L 107を介してDR22
04へ送られ、ここで初めのRビットおよびCビットの
更新の要求の内容と合成され、PA2203のアドレス
でDA206へ書き込まれる。
In parallel, the request source page address of PA2203 is stored in the page address register of the third stage (hereinafter referred to as PA3).
Furthermore, the contents of DA206 are read to the third stage data register (hereinafter abbreviated as DR3) 303 at the address PA:2203. Then, a part of each of AAR3301 and PA3302 is selected by 5EL305 and sent to the page history memory 400, and at the same time, the contents of DR3 are also sent, and the contents of DR3 are written to the corresponding address of the page history memory 400. , 5EL305 is switched to the PA3302 side, the contents of PA3302 are sent to the page history memory 400, and the contents are read. The contents read out from the page history memory 400 are sent to the DR 22 via the SEL 107.
04, where it is combined with the contents of the initial R bit and C bit update request and written to the DA 206 at the address of the PA 2203.

この場合、もし読出しの要求であれば、ページ履歴メモ
リ400から読み出された内容が5EL306を介して
メモリアクセス処理装置40へ送られ、さらに要求元へ
送られる。
In this case, if it is a read request, the contents read from the page history memory 400 are sent to the memory access processing device 40 via the 5EL 306, and further sent to the request source.

このような動作を行うページ履歴メモリ処理装置50に
おいては、DA 206. AA 105およびページ
履歴メモリ400は一般的にRAMで構成されているた
め、電源投入直後のような場合にはRAMの内容は不定
となり、そのまま処理を行うと論理的・に矛盾した動作
をしてしまうことになる。したがって、通常はRAMの
初期化を行わなければならない。
In the page history memory processing device 50 that performs such operations, the DA 206. Since the AA 105 and the page history memory 400 are generally composed of RAM, the contents of the RAM become undefined immediately after the power is turned on, and if processing is performed as is, the operation may be logically inconsistent. It will end up being put away. Therefore, it is usually necessary to initialize the RAM.

本実施例においては、初期化手段500を設けて、AA
105は特定のページアドレスを示すように、またDA
206およびページ履歴メモリ400はページが参照お
よび変更されなかったことを示すように初期化するよう
にしている。
In this embodiment, initialization means 500 is provided to
105 indicates a specific page address, and DA
206 and page history memory 400 are initialized to indicate that the page has not been referenced or modified.

初期化手段500は、ページ履歴メモリ400の全アド
レスに対して連続的にS E L 101.102を介
してPAI  103.  DRI  104へ初期化
の要求を出す。
The initialization means 500 continuously updates all addresses of the page history memory 400 via the SEL 101.102 to the PAI 103. A request for initialization is issued to the DRI 104.

この初期化の要求によって、AA105にはページアド
レスの最小の値を登録し、DA206はRビットおよび
Cビットをともに0° (ページが参照および変更を受
けなかったことを示す状態)にし、またページ履歴メモ
リ400のRビットおよびCビットもともに“0° と
なるようにしているため、全アドレスの初期化要求に対
してAA105には最小のページアドレスが、DA20
6およびページ履歴メモリ400にはR=O,C−0が
それぞれ登録される。
In response to this initialization request, the AA 105 registers the minimum value of the page address, the DA 206 sets both the R bit and the C bit to 0° (a state indicating that the page has not been referenced or modified), and the page Since both the R bit and C bit of the history memory 400 are set to "0°," the AA 105 has the smallest page address in response to an initialization request for all addresses, and the DA 20
6 and page history memory 400, R=O and C-0 are registered, respectively.

このように初期化したあとは、AA 105.  DA
206、ページ履歴メモリ400は全て有効であるとし
て後の処理を行う。
After initializing in this way, AA 105. D.A.
206, subsequent processing is performed assuming that all page history memories 400 are valid.

以上のようなページ履歴メモリ処理方式を採用した場合
には、通常の情報処理装置においてはその立ち上げ後の
各種の初期設定等の処理に対してMMUの若いアドレス
が使われることが多いため、RビットおよびCビットの
更新に対してはほとんどヒント処理が可能となり性能が
向上する。また、AAのvビットが不要の分だけハード
ウェアが節約できる。
When the page history memory processing method described above is adopted, in a normal information processing device, a small MMU address is often used for processing such as various initial settings after startup. Most of the R bit and C bit updates can be processed using hints, improving performance. Furthermore, hardware can be saved by eliminating the need for the v bit of AA.

情報処理装置によっては立ち上げ後の処理時にMMUの
若いアドレスを使用しないものもあるが、いずれにして
も特定のアドレスを集中的に使うことが多いため、AA
にそのアドレスを設定するようにすれば立ち上げ後のR
ビットおよびCビントの更新はヒント扱いで処理するこ
とができる。
Some information processing devices do not use addresses with a small MMU during processing after startup, but in any case, specific addresses are often used intensively, so AA
If you set that address to
Bit and C-bint updates can be handled as hints.

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

以上説明したように本発明は、ページ履歴メモリ処理方
式において、初期設定手段を設けてアドレスアレイを適
当な値に設定しデータアレイおよびページ雇歴メモリを
ページが参照および変更を受けなかったことを示すよう
に設定することにより、アドレスアレイの有効ビットを
省略してハードウェアの節約を図るとともに初期設定後
もヒツト処理が可能となるという効果がある。
As explained above, in the page history memory processing method, the present invention provides an initial setting means to set the address array to an appropriate value and check the data array and page history memory to confirm that the page has not been referenced or changed. By setting as shown, it is possible to save hardware by omitting the valid bits of the address array, and also to enable hit processing even after initial setting.

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

第1回は本発明の一実施例におけるページ履歴メモリ処
理装置を詳細に示すブロック図、第2図はページ履歴メ
モリ処理装置の全体の概要を示すブロック図である。 図において、 10・・・・・中央処理装置、 20・・・・・入出力装置、 30・・・・・2次記憶装置、 40・・・・・メモリアクセス処理装置、50・・・・
・ページ履歴メモリ処理装置、60・・・・・メインメ
モリ装置、 101.102,107,205,305.306  
・・・選択手段、103 、203 、302  ・・
・ページアドレスレジスタ、104.204,303 
 ・・・データレジスタ、105  ・・・・・アドレ
スアレイ、106 ・・・・・比較手段、 201.301  ・・・アドレスアレイリードレジス
フ、202  ・・・・・比較結果レジスタ、206 
 ・・・・・データアレイ、 207  ・・・・・制御回路、 304  ・・・・・リプライレジスタ、400  ・
・・・・ページ即度メモリ、500  ・・・・・初期
手段である。
The first part is a block diagram showing details of a page history memory processing device according to an embodiment of the present invention, and FIG. 2 is a block diagram showing an overview of the entire page history memory processing device. In the figure, 10... central processing unit, 20... input/output device, 30... secondary storage device, 40... memory access processing device, 50...
-Page history memory processing device, 60... Main memory device, 101.102, 107, 205, 305.306
...Selection means, 103, 203, 302...
・Page address register, 104.204,303
...Data register, 105 ...Address array, 106 ...Comparison means, 201.301 ...Address array read register, 202 ...Comparison result register, 206
...Data array, 207 ...Control circuit, 304 ...Reply register, 400
... Page immediate memory, 500 ... Initial means.

Claims (1)

【特許請求の範囲】 情報を記憶する2次記憶装置と、前記情報をページ単位
に記憶するメインメモリ装置と、前記情報が前記メイン
メモリ装置上で参照されたか否かを示す参照ビットおよ
び書き換えられたか否かを示す変更ビットをページ単位
に記憶するページ履歴メモリと、このページ履歴メモリ
の写しの一部を保持するデータアレイと、このデータア
レイの内容が前記ページ履歴メモリ上のどの部分に対応
するのかを示すアドレスアレイとを有し、ページの参照
または書換えに対して対応する前記ページ履歴メモリの
参照ビットまたは変更ビットが前記データアレイの中に
存在するかどうか前記アドレスアレイを調べ、もし存在
すればこのデータアレイの中の参照ビットまたは変更ビ
ットを更新し、もし存在しなければ前記ページ履歴メモ
リ上の対応する部分を読み出し、ページの参照または書
換えに応じて更新し前記データアレイに書き込むページ
履歴メモリ処理方式において、 前記ページ履歴メモリおよび前記データアレイを全ての
ページが参照および変更を受けなかったことを示すよう
な状態に初期化し前記アドレスアレイを特定のページを
示すように設定する初期化手段を有することを特徴とす
るページ履歴メモリ処理方式。
[Scope of Claims] A secondary storage device that stores information, a main memory device that stores the information in page units, and a reference bit that indicates whether or not the information has been referenced on the main memory device and whether or not the information has been rewritten. a page history memory that stores change bits indicating whether or not the page has changed on a page-by-page basis; a data array that holds a part of the copy of this page history memory; and an address array indicating whether a reference bit or a change bit of the page history memory corresponding to a page reference or rewrite exists in the data array; then update the reference bit or modified bit in this data array, and if it does not exist, read the corresponding part on the page history memory, update it as the page is referenced or rewritten, and write the page to the data array. In a historical memory processing scheme, initialization initializes the page history memory and the data array to a state indicating that no pages have been referenced or modified, and sets the address array to indicate a particular page. A page history memory processing method characterized by having a means.
JP60165186A 1985-07-25 1985-07-25 Page history memory processing system Pending JPS6225351A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60165186A JPS6225351A (en) 1985-07-25 1985-07-25 Page history memory processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60165186A JPS6225351A (en) 1985-07-25 1985-07-25 Page history memory processing system

Publications (1)

Publication Number Publication Date
JPS6225351A true JPS6225351A (en) 1987-02-03

Family

ID=15807473

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60165186A Pending JPS6225351A (en) 1985-07-25 1985-07-25 Page history memory processing system

Country Status (1)

Country Link
JP (1) JPS6225351A (en)

Similar Documents

Publication Publication Date Title
US6226732B1 (en) Memory system architecture
JP2619859B2 (en) Simplified cache with automatic updates
US6205521B1 (en) Inclusion map for accelerated cache flush
US8301829B2 (en) Flash memory device and flash memory system including buffer memory
US5043943A (en) Cache memory with a parity write control circuit
US5721874A (en) Configurable cache with variable, dynamically addressable line sizes
JPH10207768A (en) Method and device for accessing flash memory during operation of engine
US6151661A (en) Cache memory storage space management system and method
US7406579B2 (en) Selectively changeable line width memory
JPS6225351A (en) Page history memory processing system
US5933856A (en) System and method for processing of memory data and communication system comprising such system
US6594710B1 (en) Apparatus and method for a random access peripheral unit
JPH0784886A (en) Method and unit for cache memory control
EP0604030A2 (en) Copy back cache tag memory
JPH0765586A (en) Access system for eeprom
US6317857B1 (en) System and method for utilizing checksums to recover data
JP3047992B2 (en) Main memory key control method
JPS60183652A (en) Cache memory control method
JP2001209578A (en) Management system for memory update history
JPS60129860A (en) Detection system for addressing exception
JPH02122344A (en) Buffer memory
JPH0511331B2 (en)
JPH0497459A (en) Cache coincidence processing system
JPH077357B2 (en) Buffer control method
JPH103423A (en) Memory device