JPS6336537B2 - - Google Patents
Info
- Publication number
- JPS6336537B2 JPS6336537B2 JP57161877A JP16187782A JPS6336537B2 JP S6336537 B2 JPS6336537 B2 JP S6336537B2 JP 57161877 A JP57161877 A JP 57161877A JP 16187782 A JP16187782 A JP 16187782A JP S6336537 B2 JPS6336537 B2 JP S6336537B2
- Authority
- JP
- Japan
- Prior art keywords
- address
- update
- true
- updated
- bit
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Description
【発明の詳細な説明】
本発明は仮想記憶方式を採用した情報処理装置
に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an information processing device that employs a virtual storage method.
仮想記憶方式を採用した従来の情報処理装置に
おいては、主記憶装置(以下、主メモリと称す)
やその他の記憶装置(以下、メモリと称す)に更
新ビツトを設けこれらメモリに格納が行なわれた
ときに更新ビツトを“1”にして書替えが行なわ
れたことを表示している。この場合、更新ビツト
が主メモリ内にあるときには、更新ビツト更新時
の主メモリへのアクセス増加により性能が低下
し、また、更新ビツトが別のメモリ内に存在する
場合には、更新ビツトの更新を高速に行なわせる
必要があるため高価なメモリを使用しなければな
らないという欠点がある。 In conventional information processing devices that employ virtual memory, the main memory (hereinafter referred to as main memory)
An update bit is provided in the memory and other storage devices (hereinafter referred to as memory), and when data is stored in these memories, the update bit is set to "1" to indicate that rewriting has been performed. In this case, if the update bit is in main memory, performance will decrease due to increased access to main memory when updating the update bit, and if the update bit is in another memory, the update of the update bit will It has the disadvantage that it requires the use of expensive memory because it needs to be performed at high speed.
上記欠点を補う他の方式として、アドレス変換
バツフア(以下、TLBと称す)に更新ビツトの
写しを持つ方式があるが、TLBの索引ミスの度
に前記主メモリまたは前記別のメモリをアクセス
して更新ビツトを取り出す必要があるため、前記
メモリへのアクセス増による性能低下は残るとい
う欠点がある。 Another method to compensate for the above disadvantages is to store a copy of the updated bits in an address translation buffer (hereinafter referred to as TLB), but each time an index error occurs in the TLB, the main memory or another memory is accessed. Since it is necessary to take out the updated bits, there is a drawback that performance degradation due to increased access to the memory remains.
本発明の目的はアドレス変換バツフアにおける
読出しアクセス索引ミス時にメモリアクセスをせ
ずに更新ビツトを無条件に未更新表示で登録する
ことにより上述の欠点を除去した情報処理装置を
提供することにある。 SUMMARY OF THE INVENTION An object of the present invention is to provide an information processing apparatus that eliminates the above-mentioned drawbacks by unconditionally registering update bits as unupdated display without memory access when a read access index error occurs in an address translation buffer.
本発明の装置は、主記憶手段の記憶領域が複数
のページに分けられ、各ページに対応して記憶内
容の更新状態を表示する真の更新ビツトを保持す
る更新ビツト保持手段を有し、該真の更新ビツト
の写しが論理アドレスと物理アドレスとの変換を
行なうアドレス変換バツフア内に保持された情報
処理装置において、前記主記憶手段へのアクセス
時に前記アドレス変換バツフアにおける索引ミス
が生じたとき前記アドレス変換バツフアに新たな
物理アドレスを登録する物理アドレス登録手段
と、読出しアクセスに応答したこの物理アドレス
登録手段による登録時に前記新たな物理アドレス
に対応する真の更新ビツトの写しを前記真の更新
ビツトを保持する前記更新ビツト保持手段の値に
関係なく前記アドレス変換バツフアへ未更新表示
として登録する未更新表示登録手段と、後続する
前記主記憶手段への書込みアクセス時に前記アド
レス変換バツフア内の真の更新ビツトの写しが未
更新を表示しているエントリを索引したとき前記
アドレス変換バツフアエントリの真の更新ビツト
の写しを更新表示に変更登録する変更登録手段
と、この変更登録手段による変更登録とともに前
記真の更新ビツトを更新済に設定する更新済設定
手段とを含む。 The apparatus of the present invention has a storage area of the main storage means divided into a plurality of pages, and has update bit holding means for holding true update bits corresponding to each page to display the update status of the stored contents. In an information processing device in which a copy of a true update bit is held in an address translation buffer that performs translation between a logical address and a physical address, when an index error occurs in the address translation buffer when accessing the main storage means; physical address registration means for registering a new physical address in an address translation buffer; and a copy of the true update bit corresponding to the new physical address at the time of registration by the physical address registration means in response to a read access. unupdated display registration means that registers the unupdated display in the address translation buffer regardless of the value of the update bit holding means that holds the updated bit; a change registration means for changing and registering a copy of the true update bit of the address translation buffer entry as an update display when an entry whose update bit copy indicates not updated is indexed; and change registration by the change registration means; and updated setting means for setting the true update bit to updated.
次に本発明について図面を参照して詳細に説明
する。 Next, the present invention will be explained in detail with reference to the drawings.
図は本発明の一実施例を示すブロツク図であ
る。 The figure is a block diagram showing one embodiment of the present invention.
図において、アクセス要求元インタフエース1
からメモリアクセス種別フラグとメモリアクセス
アドレスとが送られてくると、前記メモリアクセ
ス種別フラグがリード(読出し)を示すならリー
ドフラグフリツプフロツプ2(以下、Rフラグと
略す)をセツトし、ストア(格納)を示すならス
トアフラグフリツプフロツプ3(以下、Sフラグ
と略す)をセツトする。同時に、前記メモリアク
セスアドレスをレジスタ4にセツトしてTLB索
引準備を完了する。次に、TLBの索引を行うわ
けであるが、TLBの構成および索引の方法は公
知(特公昭57―23952号公報および特公昭57―
25920号公報等参照)であり詳細は省略し、本発
明に関連する部分のみについて説明する。 In the figure, access request source interface 1
When a memory access type flag and a memory access address are sent from the memory access type flag, if the memory access type flag indicates read (reading), read flag flip-flop 2 (hereinafter abbreviated as R flag) is set and store is performed. If it indicates (storage), store flag flip-flop 3 (hereinafter abbreviated as S flag) is set. At the same time, the memory access address is set in register 4 to complete the TLB index preparation. Next, the TLB is indexed, and the TLB structure and indexing method are known (Japanese Patent Publication No. 57-23952 and Japanese Patent Publication No. 57-23952).
25920, etc.), the details are omitted and only the parts related to the present invention will be explained.
レジスタ4にセツトされた論理アドレスの論理
ページアドレス部の下位部(LEA)によりTLB
5およびTLB6を同時に索引し、このTLB5お
よび6から読み出されたエントリの論理ページア
ドレス部の上位部(LPA0およびLPA1)と、
前記レジスタ4の論理ページアドレス部の上位部
(LPA)とをそれぞれ比較器7および8で比較
し、この比較結果を信号線100および101を
介してアドレス変換制御部9に報告する。該アド
レス変換制御部9は前記比較結果が不一致すなわ
ちTLB索引ミスを検出すると信号線102およ
び103を介して与えられる前記レジスタ4の論
理ページアドレス部(LPAおよびLEA)に基い
て主メモリ(図示せず)内にあるアドレス変換テ
ーブルをリードするよう信号線104を介して主
メモリアクセス制御部10にアクセスし、リード
されたテーブルによりアドレス変換を行ない、結
果の実アドレス情報を信号線105を介して
TLB登録レジスタ11にセツトすると同時に、
前記Rフラグ2が“1”(読出し指示)なら信号
線106を介して更新ビツトの写し登録レジスタ
12に“0”をセツトする。また、このとき、前
記Sフラグ3が“1”(書込み指示)なら前記更
新ビツトの写し登録レジスタ12に“1”をセツ
トして、その内容をTLB5および6のうちの置
換アルゴリズム(情報処理、Vol・21,No.4,
1980年,PP.334〜335参照)で選択されたいずれ
か一方に前記TLB登録レジスタ11および更新
ビツトの写し登録レジスタ12にセツトされた内
容がアドレス変換部9の指示により登録される。
このとき、前記Sフラグ3が“1”のときには、
主メモリアクセス制御部10に対して主メモリ内
の更新ビツトの“1”セツト要求信号を信号線1
04を介して送出して、前記TLB5および6内
の更新ビツトの写しC0またはC1)との一致を
保証する。 The TLB is determined by the lower part (LEA) of the logical page address part of the logical address set in register 4.
5 and TLB6 at the same time, and the upper part (LPA0 and LPA1) of the logical page address part of the entry read from TLB5 and TLB6,
Comparators 7 and 8 compare the upper part (LPA) of the logical page address section of the register 4, respectively, and report the comparison results to the address conversion control section 9 via signal lines 100 and 101. When the address conversion control unit 9 detects a mismatch in the comparison result, that is, a TLB index error, the address conversion control unit 9 converts the data into the main memory (not shown) based on the logical page address part (LPA and LEA) of the register 4 given via signal lines 102 and 103. The main memory access control unit 10 is accessed via the signal line 104 to read the address conversion table in
At the same time as setting in TLB registration register 11,
If the R flag 2 is "1" (read instruction), "0" is set in the update bit copy registration register 12 via the signal line 106. At this time, if the S flag 3 is "1" (write instruction), the update bit copy registration register 12 is set to "1", and its contents are transferred to the replacement algorithm (information processing, Vol・21, No.4,
1980, pp. 334-335)), the contents set in the TLB registration register 11 and the update bit copy registration register 12 are registered in accordance with instructions from the address converter 9.
At this time, when the S flag 3 is "1",
A signal line 1 sends a request signal to the main memory access control unit 10 to set the update bit in the main memory to "1".
04 to ensure a match with the copies of the updated bits in TLBs 5 and 6 (C0 or C1).
次に、TLB索引でヒツトした場合のストアア
クセスの場合について説明する。 Next, the case of store access when there is a hit in the TLB index will be explained.
アクセス要求元インタフエース1からメモリス
トアアクセスフラグとメモリアクセスアドレスが
Sフラグ3とレジスタ4とにセツトされ、前記レ
ジスタ4の論理ページアドレス部の下位部
(LEA)によりTLB5および6を同時に索引し、
前記TLB5および6により読み出されたエント
リの論理ページアドレス部の上位部(LPA0お
よびLPA1)と、前記レジスタ4の論理ページ
アドレス部の上位部(LPA)とを比較器7およ
び8で比較し、この比較結果をアドレス変換制御
部9に報告する。該アドレス変換制御部9は、前
記比較結果が一致すなわちTLB索引ヒツトを検
出すると、前記Sフラグ3が“1”なら前記
TLB5および6からリードされた実ページアド
レス情報および更新ビツトの写しを選択回路13
で一致したTLB側から選択し、信号線107を
介して前記実ページアドレス情報を主メモリアク
セス制御部10に対して送出するとともに、信号
線108を介して与えられる前記更新ビツトの写
しが“0”であれば、前記主メモリアクセス制御
部10に対して更新ビツトの“1”セツト要求信
号を信号線104を介して送出し、同時に、前記
TLB5および6の前記更新ビツトの写しを“0”
を更新するため、アドレス変換制御部9から信号
線106を介して更新ビツトの写し登録レジスタ
12に更新データをセツトし、次にアドレス変換
制御部9の指示によりTLB5または6の該更新
ビツトの写しを“0”から“1”に変更して一致
を保証する。 A memory store access flag and a memory access address are set in the S flag 3 and register 4 from the access request source interface 1, and TLBs 5 and 6 are simultaneously indexed by the lower part (LEA) of the logical page address part of the register 4,
Comparing the upper part (LPA0 and LPA1) of the logical page address part of the entry read by the TLBs 5 and 6 with the upper part (LPA) of the logical page address part of the register 4 using comparators 7 and 8; This comparison result is reported to the address translation control section 9. When the comparison result matches, that is, a TLB index hit is detected, the address conversion control unit 9 converts the
Select circuit 13 for copying real page address information and update bits read from TLBs 5 and 6.
The actual page address information is selected from the TLB side that matches with the TLB side, and the real page address information is sent to the main memory access control unit 10 via the signal line 107, and the copy of the update bit given via the signal line 108 is “0”. ”, a request signal for setting the update bit to “1” is sent to the main memory access control unit 10 via the signal line 104, and at the same time, the
Copies of the update bits of TLB5 and 6 are set to “0”
In order to update the update bit, update data is set in the update bit copy registration register 12 from the address translation control unit 9 via the signal line 106, and then the copy of the update bit in TLB 5 or 6 is set in accordance with the instruction from the address translation control unit 9. is changed from "0" to "1" to guarantee matching.
すなわち、主メモリアクセス制御部10の中に
設けられた真の更新ビツト保持手段(10内のテ
ーブル、図示せず)に格納されている更新ビツト
に対して、主記憶装置(図示せず)への書込処理
の度に前記真の更新ビツトを更新済(“1”)にす
る処理が加わることを避けるため、TLB5およ
び6内に前記真の更新ビツトの写しを持つて、真
の更新ビツトに対する処理を減らすよう構成す
る。このような構成の場合、TLB5および6に
新たなページを登録するとき対応するページの真
の更新ビツトを前記真の更新ビツト保持手段(1
0内のテーブル)から読出して真の更新ビツトの
写しとしてTLB5および6に登録する必要があ
る。しかし、前記対応するページの真の更新ビツ
トの読出し処理を削減するため、TLB5および
6に対するリードアクセスに応答したページ登録
時対応する真の更新ビツトを無条件に“0”とみ
なして登録する。この動作により真の更新ビツト
がもともと“0”であつた場合には、無条件に真
の更新ビツトを“0”とみなしたこと、すなわ
ち、“0”予測が成功したことになり、常時、真
の更新ビツト保持手段(10内のテーブル)から
真の更新ビツトを読出してTLBに写しを登録す
る場合に比べて読出し処理を減らすことができ
る。 That is, the update bits stored in the true update bit holding means (table in 10, not shown) provided in the main memory access control unit 10 are transferred to the main memory (not shown). In order to avoid adding processing to set the true updated bit to updated (“1”) every time a write process is performed, TLBs 5 and 6 have copies of the true updated bit and the true updated bit is Configure to reduce processing. In such a configuration, when a new page is registered in TLBs 5 and 6, the true update bit of the corresponding page is stored in the true update bit holding means (1).
0) and register it in TLBs 5 and 6 as a copy of the true update bit. However, in order to reduce the read processing of the true update bit of the corresponding page, when a page is registered in response to read access to TLBs 5 and 6, the corresponding true update bit is unconditionally regarded as "0" and registered. If the true updated bit was originally "0" due to this operation, the true updated bit is unconditionally considered to be "0", that is, the "0" prediction was successful, and the true updated bit is always "0". The read processing can be reduced compared to the case where the true update bits are read from the true update bit holding means (table in 10) and a copy is registered in the TLB.
また、無条件に真の更新ビツトを“0”とみな
してTLBに写しを登録するので真の更新ビツト
が“1”のとき、TLB5および6内の更新ビツ
トの写しの値“0”とは異なる。しかしこのとき
は真の更新ビツト“1”に対して写しの更新ビツ
ト“0”のため、真の更新ビツト保持手段に対し
て“1”への更新要求がでるが、もともと“1”
の値に対する“1”の値への更新要求であり矛盾
は発生しない。 Also, since the true update bit is unconditionally regarded as "0" and a copy is registered in the TLB, when the true update bit is "1", the value "0" of the copy of the update bit in TLB5 and 6 is different. However, at this time, since the copy update bit is "0" compared to the true update bit "1", a request is made to the true update bit holding means to update it to "1", but it was originally "1".
This is a request to update the value of ``1'' to ``1'', and no conflict occurs.
本発明は以上説明したように、読出しアクセス
時のTLB傘引ミス時に、メモリアクセスをせず
に更新ビツトの写しを無条件に未更新表示で登録
することにより更新ビツトアクセスを減少でき、
情報処理システムの性能向上を達成できるという
効果がある。 As explained above, the present invention can reduce update bit accesses by unconditionally registering a copy of updated bits with an unupdated display without memory access when a TLB umbrella error occurs during read access.
This has the effect of improving the performance of the information processing system.
図は本発明の一実施例を示すブロツク図であ
り、1…アクセス要求元インタフエース、2…リ
ードアクセスフラグ、3…ストアアクセスフラ
グ、4…論理アドレスレジスタ、5,6…TLB、
7,8…比較器、9…アドレス変較制御部、10
…主メモリアクセス制御部、11,12…TLB
登録レジスタ、13…選択回路。
The figure is a block diagram showing an embodiment of the present invention, in which 1...access request source interface, 2...read access flag, 3...store access flag, 4...logical address register, 5, 6...TLB,
7, 8...Comparator, 9...Address comparison control unit, 10
...Main memory access control unit, 11, 12...TLB
Registration register, 13... selection circuit.
Claims (1)
られ、各ページに対応して記憶内容の更新状態を
表示する真の更新ビツトを保持する更新ビツト保
持手段を有し、該真の更新ビツトの写しが論理ア
ドレスと物理アドレスとの変換を行なうアドレス
変換バツフア内に保持された情報処理装置におい
て、 前記主記憶手段へのアクセス時に前記アドレス
変換バツフアにおける索引ミスが生じたとき前記
アドレス変換バツフアに新たな物理アドレスを登
録する物理アドレス登録手段と、 読出しアドレスに応答したこの物理アドレス登
録手段による登録時に前記新たな物理アドレスに
対応する真の更新ビツトの写しを前記真の更新ビ
ツトを保持する前記更新ビツト保持手段の値に関
係なく前記アドレス変換バツフアへ未更新表示と
して登録する未更新表示登録手段と、 後続する前記主記憶手段への書込みアクセス時
に前記アドレス変換バツフア内の真の更新ビツト
の写しが未更新を表示しているエントリを索引し
たとき、前記アドレス変換バツフアエントリの真
の更新ビツトの写しを更新表示に変更登録する変
更登録手段と、 この変更登録手段による変更登録とともに、前
記真の更新ビツトを更新済に設定する更新済設定
手段とを含むことを特徴とする情報処理装置。[Scope of Claims] 1. The storage area of the main storage means is divided into a plurality of pages, and the main storage means has update bit holding means for holding true update bits corresponding to each page to display the update state of the stored contents, In an information processing device in which a copy of the true update bit is held in an address translation buffer that performs translation between a logical address and a physical address, when an index error occurs in the address translation buffer when accessing the main storage means; physical address registration means for registering a new physical address in the address conversion buffer; and a copy of the true update bit corresponding to the new physical address at the time of registration by the physical address registration means in response to the read address. unupdated display registration means for registering an unupdated display in the address conversion buffer regardless of the value of the update bit holding means that holds bits; change registration means for changing and registering a copy of the true update bit of the address translation buffer entry as an updated display when an entry in which a copy of the update bit of the address translation buffer entry indicates that it has not been updated; An information processing apparatus characterized by comprising an updated setting means for setting the true updated bit to updated in addition to registration.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57161877A JPS5952486A (en) | 1982-09-17 | 1982-09-17 | Information processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57161877A JPS5952486A (en) | 1982-09-17 | 1982-09-17 | Information processor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5952486A JPS5952486A (en) | 1984-03-27 |
| JPS6336537B2 true JPS6336537B2 (en) | 1988-07-20 |
Family
ID=15743673
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP57161877A Granted JPS5952486A (en) | 1982-09-17 | 1982-09-17 | Information processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5952486A (en) |
-
1982
- 1982-09-17 JP JP57161877A patent/JPS5952486A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5952486A (en) | 1984-03-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3666689B2 (en) | Virtual address translation method | |
| US4495575A (en) | Information processing apparatus for virtual storage control system | |
| JPH0312339B2 (en) | ||
| JP3242161B2 (en) | Data processor | |
| JP3190700B2 (en) | Address translator | |
| US4424564A (en) | Data processing system providing dual storage of reference bits | |
| JPS6336537B2 (en) | ||
| EP0224168A2 (en) | Buffer storage control system | |
| JPS601658B2 (en) | Address conversion control method | |
| JP3030037B2 (en) | Main storage device | |
| JP3290682B2 (en) | Address translation device | |
| JPH01166148A (en) | Memory access device | |
| JPH071484B2 (en) | Information processing equipment | |
| JPH0439099B2 (en) | ||
| JPH0567001A (en) | Cache memory circuit | |
| JPH0159611B2 (en) | ||
| JPH04304539A (en) | Bus lock control system at the time of page table update | |
| JPS63186347A (en) | Memory device | |
| JPS58125287A (en) | High-speed buffer storage device | |
| JPH0689199A (en) | Cache function diagnosis method | |
| JPH06309196A (en) | Information processor with trace function | |
| JPS5811655B2 (en) | Buffer storage device address control method | |
| JPS61208153A (en) | Page history memory device | |
| JPS61267842A (en) | Tlb controller | |
| JPS6028016B2 (en) | buffer storage device |