JPH0581132A - Access circuit for address conversion buffer - Google Patents
Access circuit for address conversion bufferInfo
- Publication number
- JPH0581132A JPH0581132A JP3239075A JP23907591A JPH0581132A JP H0581132 A JPH0581132 A JP H0581132A JP 3239075 A JP3239075 A JP 3239075A JP 23907591 A JP23907591 A JP 23907591A JP H0581132 A JPH0581132 A JP H0581132A
- Authority
- JP
- Japan
- Prior art keywords
- address translation
- translation buffer
- access
- data
- address conversion
- 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
Links
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明はアドレス変換バッファの
アクセス回路に関する。アドレス変換バッファ(以下T
LBと記す)は、主記憶アクセスに伴う論理アドレスか
ら物理アドレスへの変換を司るものとして広く知られて
いる。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an address translation buffer access circuit. Address translation buffer (hereinafter T
LB) is widely known as a device that translates a logical address into a physical address associated with a main memory access.
【0002】[0002]
【従来の技術】従来のTLBのアクセス回路は、TLB
登録データが不一致となる確率が高い場合においても、
TLBのアクセス情報を変更する事はなかった。2. Description of the Related Art A conventional TLB access circuit is a TLB.
Even if there is a high probability that the registered data will not match,
The access information of TLB was not changed.
【0003】[0003]
【発明が解決しようとする課題】上述した従来のTLB
のアクセス回路は、TLBメモリのアクセス情報が固定
となっているため、TLBのヒット率が悪いプログラム
の走行があったとしても、ヒット率を高める手段がない
ので、多重処理能力が上がらないという欠点がある。DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention
In the access circuit, since the access information of the TLB memory is fixed, even if a program having a poor TLB hit rate runs, there is no means for increasing the hit rate, so that the multiprocessing capability cannot be improved. There is.
【0004】[0004]
【課題を解決するための手段】本発明のTLBのアクセ
ス回路は、TAG情報と変換アドレス情報及び有効ビッ
トより成るTLBメモリと、TLBメモリのアクセス情
報を得るハッシュ回路と、論理アドレス情報とTAG情
報及び有効ビットよりTLBに有効な変換アドレス情報
が格納されている事を検出する一致検出回路と、TLB
メモリの参照回数に対するTLBメモリデータ不一致の
回数を監視する不一致回数監視回路と、マイクロプログ
ラムにより更新しTLBメモリ参照の規定回数値を格納
するレジスタと、マイクロプログラムにより更新し、T
LBメモリ登録データ不一致検出による有効ビットリセ
ットとTLBメモリのアクセスアドレス作成のハッシュ
多式変更指示を行なう為にTLBメモリ登録データ不一
致検出の検出規定数値を格納するレジスタと、マイクロ
プログラムにより更新しTLBメモリのアクセスアドレ
ス作成の為のハッシュ方式を指定するコード値を格納す
るレジスタを有している。A TLB access circuit according to the present invention comprises a TLB memory consisting of TAG information, translated address information and a valid bit, a hash circuit for obtaining access information of the TLB memory, logical address information and TAG information. And a match detection circuit for detecting that valid translation address information is stored in the TLB from the valid bit, and the TLB.
A mismatch count monitoring circuit that monitors the number of times of TLB memory data mismatch with respect to the memory reference count, a register that stores a specified count value of TLB memory reference that is updated by a microprogram, and a microprogram that updates the TLB memory reference
LB memory Register for storing valid data for register data mismatch detection and register for storing specified value of TLB memory registration data mismatch detection in order to instruct change of hash formula for creating access address of TLB memory, and TLB memory updated by microprogram It has a register that stores a code value that specifies the hash method for creating the access address.
【0005】[0005]
【実施例】次に本発明について図面を参照して説明す
る。The present invention will be described below with reference to the drawings.
【0006】図1は本発明の一実施例を示すブロック図
である。FIG. 1 is a block diagram showing an embodiment of the present invention.
【0007】レジスタ1は、主記憶アクセス時の論理ア
ドレス情報、又は物理アドレス情報を格納し、TLB2
はTLB2に登録されている情報が有効である事を示す
Vビット21と、論理アドレスからの物理アドレス変換
データ23と、論理アドレス変換タグデータ22を格納
する。The register 1 stores logical address information or physical address information at the time of access to the main memory, and the TLB 2
Stores V bit 21 indicating that the information registered in TLB 2 is valid, physical address conversion data 23 from the logical address, and logical address conversion tag data 22.
【0008】ハッシュ回路3は、TLB2を索引する為
のアドレス情報を生成し、切換回路4は、主記憶アクセ
スの為のアドレス情報が物理アドレスの場合は、レジス
タを選択し、主記憶アクセスの為のアドレス情報が論理
アドレスの場合にはTLB2の物理アドレス変換データ
23を選択する。The hash circuit 3 generates address information for indexing the TLB 2, and the switching circuit 4 selects a register if the address information for main memory access is a physical address, and for main memory access. If the address information is a logical address, the physical address conversion data 23 of the TLB 2 is selected.
【0009】一致検出回路5は、主記憶アドレスのアド
レス情報が論理アドレスの場合、TLB2に登録されて
いる情報が求める変換後の物理アドレス情報であるか否
かを検出する。When the address information of the main memory address is a logical address, the match detection circuit 5 detects whether the information registered in the TLB 2 is the converted physical address information.
【0010】レジスタ6は、主記憶アクセス時に、実際
に主記憶装置(図示せず)へ送出する物理アドレス情報
を格納する。The register 6 stores physical address information that is actually sent to a main storage device (not shown) when the main storage is accessed.
【0011】不一致回数監視回路7は、一致検出回路5
の出力を監視しTLB2を参照する主記憶アクセスにお
いてm回数のTLB2の参照時におけるTLB2内の登
録データが有効でない(以後、TLBノーヒットと記
す)回数がn回の時に、ハッシュ回路3へのハッシュ方
法の変更指示及びVビット21のリセット指示を行う。The disagreement count monitoring circuit 7 includes a coincidence detection circuit 5.
In the main memory access for monitoring the output of TLB2 and referring to TLB2, when the number of times the registered data in TLB2 is not valid (hereinafter referred to as TLB no hit) at the time of referring to TLB2 m times, hashing to hash circuit 3 is performed. A method change instruction and a V bit 21 reset instruction are given.
【0012】レジスタ8は、不一致回数監視回路7でT
LB2の参照を行う場合の規定回数値を格納し、その値
はファームウェアにより設定される。The register 8 is used by the mismatch count monitoring circuit 7 for T
The specified number of times when referring to LB2 is stored, and the value is set by the firmware.
【0013】レジスタ9は、レジスタ8で規定したTL
B2の参照回数内でどれだけのTLBノーヒット回数を
検出するかの規定検出回数値を格納し、その値はファー
ムウェアにより設定される。The register 9 is the TL specified by the register 8.
A specified detection count value indicating how many TLB no-hit counts are detected within the reference count of B2 is stored, and the value is set by the firmware.
【0014】レジスタ10は、ハッシュ回路3でTLB
2をアクセスするアドレス情報を作成するハッシュ方式
を指定するコード値を格納する。The register 10 is a TLB in the hash circuit 3.
A code value designating a hash method for creating address information for accessing 2 is stored.
【0015】レジスタ8とレジスタ9及びレジスタ10
は本発明に必ずしも必要でなく、存在しない場合は固定
的な値として、不一致回数監視回路7及びハッシュ回路
3自身が必要な値を得たと認識して動作する。Registers 8, 9 and 10
Is not necessarily required for the present invention, and if it does not exist, it operates as a fixed value by recognizing that the mismatch count monitoring circuit 7 and the hash circuit 3 have obtained the necessary value.
【0016】いま、レジスタ8に100、レジスタ9に
30の値が設定されているとした場合の動作について説
明する。Now, the operation when the value of 100 is set in the register 8 and the value of 30 is set in the register 9 will be described.
【0017】この様な設定においては、TLB2を参照
した主記憶アクセスが100回実行された内、TLBノ
ーヒット回数が30回以上検出された時、Vビット21
のリセットと、ハッシュ回路3へのハッシュ方式変更指
示が不一致回数監視回路7より行なわれる。In such a setting, when the main memory access referring to TLB2 is executed 100 times and the number of TLB no hits is detected 30 times or more, V bit 21
Is reset and the hash method change instruction is given to the hash circuit 3 by the mismatch count monitoring circuit 7.
【0018】また、TLB2参照の主記憶アクセス回数
が100回以上実行された内にTLBノーヒット検出回
数が29回以下であれば、不一致回数監視回路7内でカ
ウントするTLB2参照の主記憶アクセス回数と、TL
Bノーヒット検出回数の計測を最初より実施しなおす。If the number of TLB no-hit detections is 29 or less while the number of TLB2 referenced main memory accesses is 100 or more, the number of TLB2 referenced main memory accesses counted in the mismatch count monitoring circuit 7 is , TL
Re-measure the number of B-no-hit detections from the beginning.
【0019】[0019]
【発明の効果】以上説明したように本発明は、TLBを
参照する主記憶アクセスにおいてm回のTLB参照時間
に、n回のTLBノーヒット数が検出された場合、TL
B登録・参照の為のアドレス情報作成のハッシュ方式が
妥当でないと判断し、そのハッシュ方式を修正すること
によりTLBヒットの確率を高める効果がある。As described above, according to the present invention, when the number of TLB no-hits is detected n times during the TLB reference time of m times in the main memory access referring to the TLB, the TL is detected.
By determining that the hash method for creating the address information for B registration / reference is not appropriate and correcting the hash method, there is an effect of increasing the probability of a TLB hit.
【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.
1,6,8,9,10 レジスタ 2 アドレス変換バッファ(TLB) 3 ハッシュ回路 4 切換回路 5 不一致検出回路 7 不一致回数監視回路 1, 6, 8, 9, 10 register 2 address conversion buffer (TLB) 3 hash circuit 4 switching circuit 5 mismatch detection circuit 7 mismatch count monitoring circuit
Claims (5)
レス変換データ及び有効ビットを格納するアドレス変換
バッファと、 論理アドレス情報よりハッシュ回路を介して前記アドレ
ス変換バッファのアクセス情報を得る手段と、 前記論理アドレス情報と前記論理アドレス変換タグデー
タ及び前記有効ビットよりアドレス変換バッファに有効
な物理アドレス変換データが格納されていることを検出
する一致検出回路と、 前記アドレス変換バッファの参照回数に対するアドレス
変換バッファの登録データ不一致の回数を監視する不一
致回数監視回路とを有し、 一定回数の前記アドレス変換バッファの参照回数内に一
定回数の前記登録データ不一致が検出された場合、前記
有効ビットのリセットと、前記ハッシュ回数のハッシュ
方式を変更することを特徴とするアドレス変換バッファ
のアクセス回路。1. An address translation buffer for storing logical address translation tag data, physical address translation data, and a valid bit; means for obtaining access information of the address translation buffer from a logical address information via a hash circuit; and the logical address. A coincidence detection circuit for detecting that information, the logical address translation tag data and the valid bit store valid physical address translation data in the address translation buffer, and registration of the address translation buffer with respect to the reference count of the address translation buffer. A mismatch count monitoring circuit for monitoring the number of data mismatches, and when the registered data mismatch is detected a fixed number of times within the reference count of the address translation buffer, a reset of the valid bit and the hash You can change the hashing method Access circuitry of the address translation buffer according to claim.
レス変換バッファ参照の主記憶アクセス規定回数値を格
納するレジスタを持つ事を特徴とする請求項1記載のア
ドレス変換バッファのアクセス回路。2. The address translation buffer access circuit according to claim 1, further comprising a register which stores a prescribed number of times of access to the main memory referenced by the address translation buffer and updated by a microprogram.
レス変換バッファ登録データ不一致検出による有効ビッ
トリセットとアドレス変換バッファのアクセスアドレス
作成のハッシュ方式変更指示を行なう為にアドレス変換
バッファ登録データ不一致検出の検出規定数値を格納す
るレジスタを持つ事を特徴とする請求項1記載のアドレ
ス変換バッファのアクセス回路。3. A specified value for detection of address translation buffer registration data inconsistency detection in order to perform a valid bit reset by a microprogram update by address translation buffer registration data inconsistency detection and a hash method change instruction for creating an access address of the address translation buffer. The address translation buffer access circuit according to claim 1, further comprising a register for storing
レス変換バッファのアクセスアドレス作成の為のハッシ
ュ方式を指定するコード値を格納するレジスタを持つ事
を特徴とする請求項1記載のアドレス変換バッファのア
クセス回路。4. The address translation buffer access circuit according to claim 1, further comprising a register which stores a code value which is updated by a microprogram and specifies a hash method for creating an access address of the address translation buffer. .
セスの規定回数内に、アドレス変換バッファ登録データ
不一致回数が規定数よりオーバーした時、アドレス変換
バッファ参照の主記憶アクセス回数と、アドレス変換バ
ッファ登録データ不一致回数の計測を最初からやりなお
す不一致回数監視回路を持つ事を特徴とする請求項1記
載のアドレス変換バッファのアクセス回路。5. A main memory access count for address translation buffer reference and address translation buffer registration data when the number of address translation buffer registration data disagreements exceeds a specified number within a prescribed number of main memory access for address translation buffer reference. 2. The address translation buffer access circuit according to claim 1, further comprising a mismatch count monitoring circuit for restarting the measurement of the mismatch count from the beginning.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3239075A JPH0581132A (en) | 1991-09-19 | 1991-09-19 | Access circuit for address conversion buffer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3239075A JPH0581132A (en) | 1991-09-19 | 1991-09-19 | Access circuit for address conversion buffer |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0581132A true JPH0581132A (en) | 1993-04-02 |
Family
ID=17039479
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3239075A Pending JPH0581132A (en) | 1991-09-19 | 1991-09-19 | Access circuit for address conversion buffer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0581132A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08320830A (en) * | 1994-09-09 | 1996-12-03 | Hitachi Ltd | Data processor |
US7587574B2 (en) | 2004-07-29 | 2009-09-08 | Fujitsu Limited | Address translation information storing apparatus and address translation information storing method |
-
1991
- 1991-09-19 JP JP3239075A patent/JPH0581132A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08320830A (en) * | 1994-09-09 | 1996-12-03 | Hitachi Ltd | Data processor |
US7587574B2 (en) | 2004-07-29 | 2009-09-08 | Fujitsu Limited | Address translation information storing apparatus and address translation information storing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4068303A (en) | Address translation managing system with translation pair purging | |
JP2825550B2 (en) | Multiple virtual space address control method and computer system | |
JP3936378B2 (en) | Address translation device | |
US7689806B2 (en) | Method and system to indicate an exception-triggering page within a microprocessor | |
JPH03194632A (en) | Cache access on the basis of translation look ahead | |
JPH0619793A (en) | History table of virtual address conversion estimation for cache access | |
JPS5898893A (en) | Information processing device | |
CN114860627B (en) | Method for dynamically generating page table based on address information | |
JPH0581132A (en) | Access circuit for address conversion buffer | |
US8595465B1 (en) | Virtual address to physical address translation using prediction logic | |
CN105183668B (en) | Cache flush method and device | |
JPH0695967A (en) | Data processor | |
KR930007674B1 (en) | Device for converting address | |
US5426749A (en) | Buffer control system using synonymic line address to retrieve second tag portion for fetch and store accesses while first tag portion is invalidated | |
JP2797961B2 (en) | Search system | |
JPH06243043A (en) | Entry clearing device for address conversion buffer | |
JPH07146819A (en) | Cache system | |
JPH06124237A (en) | Address translation buffer device | |
JPS6042972B2 (en) | Information processing device with address conversion function | |
JPH01166148A (en) | Memory access device | |
JP2818562B2 (en) | Address translation circuit | |
JPH01228037A (en) | Address converter | |
JPH04133147A (en) | Address conversion buffer clear system | |
JPH03110648A (en) | Data processing system | |
JPH06309196A (en) | Information processor with trace function |