JPH04277846A - High-speed address converting system - Google Patents

High-speed address converting system

Info

Publication number
JPH04277846A
JPH04277846A JP3039733A JP3973391A JPH04277846A JP H04277846 A JPH04277846 A JP H04277846A JP 3039733 A JP3039733 A JP 3039733A JP 3973391 A JP3973391 A JP 3973391A JP H04277846 A JPH04277846 A JP H04277846A
Authority
JP
Japan
Prior art keywords
address
address translation
translation mechanism
logical
instruction
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
JP3039733A
Other languages
Japanese (ja)
Inventor
Takumi Takeno
巧 竹野
Takahito Noda
野田 敬人
Yuji Kamisaka
神阪 裕士
Kazuyasu Nonomura
野々村 一泰
Toru Watabe
徹 渡部
Takumi Maruyama
拓巳 丸山
Shinya Kato
慎哉 加藤
Chiyonsuwannapaisaan Poonshiyai
ポーンシャイ・チョンスワンナパイサーン
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3039733A priority Critical patent/JPH04277846A/en
Publication of JPH04277846A publication Critical patent/JPH04277846A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To convert a physical address from a logical address at high speed concerning the address converting system at an information processor adopting a virtual memory system. CONSTITUTION:At the information processor adopting the virtual memory system, having a first address converting mechanism 3 composed of a dynamic address converting mechanism DAT and an address converting buffer TLB, generating a logical address 4 by using plural resource registers, etc., designated by the field of instruction and calculating the required physical address by applying the logical address 4 to the first with the resource information designated by the field of the instruction, the logical address 4 is generated parallelly with the conversion to the physical address 7 at the second address converting mechanism 6, the address converted by the TLB cache is used in the case of hit at the second address converting mechanism 6, and the address converted by the first address converting mechanism 3 is used in the case of miss hit.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、仮想記憶方式をとり、
動的アドレス変換機構(DAT) と, アドレス変換
バッファ(TLB) とからなる第1のアドレス変換機
構を持ち、命令のフィールドで指定する複数の資源、例
えば、ベースレジスタ(B) と, ディスプレイスメ
ント(D),又は、ベースレジスタ(B) とインデッ
クスレジスタ(X) 等を用いて、論理アドレスを生成
し、その論理アドレスを上記第1のアドレス変換機構に
与えて、必要な物理アドレスを求める情報処理装置にお
ける高速アドレス変換機構に関する。
[Industrial Application Field] The present invention employs a virtual storage method,
It has a first address translation mechanism consisting of a dynamic address translation mechanism (DAT) and an address translation buffer (TLB), and has multiple resources specified in the instruction field, such as a base register (B) and a displacement ( D), or information processing in which a logical address is generated using a base register (B) and an index register (X), etc., and the logical address is given to the first address translation mechanism to obtain the necessary physical address. The present invention relates to a high-speed address translation mechanism in a device.

【0002】最近の情報処理装置の機能の多様化,処理
量の増大化等に伴い、主記憶装置に対する容量の増大化
、情報処理の高速化が求められている。主記憶装置の容
量を増大させる対策の一つとして、仮想記憶方式をとる
情報処理装置が用いられる。
[0002] With the recent diversification of functions and increase in processing capacity of information processing devices, there is a demand for increased capacity of main storage devices and faster information processing. As one measure to increase the capacity of the main storage device, an information processing device that uses a virtual storage method is used.

【0003】この仮想記憶方式をとる情報処理装置にお
いては、通常は、プログラムや,データ類を、膨大なア
ドレス空間を持つ、例えば、ファイル記憶装置(DAS
D)に記憶しておき、必要に応じて、該ファイル記憶装
置(DASD)上に格納されているプログラム, デー
タを、例えば、ページを単位として、主記憶装置上にペ
ージインして展開し、中央処理装置(CPU) と該主
記憶装置との間で、高速にデータ処理を行うことで、見
掛け上の記憶装置のアドレス空間を増大化することが行
われる。
[0003] In an information processing device that uses this virtual storage method, programs and data are usually stored in a file storage device (DAS) that has a huge address space.
D), and if necessary, the programs and data stored on the file storage device (DASD) are paged in and expanded on the main storage device in units of pages, for example. By performing data processing at high speed between a central processing unit (CPU) and the main storage device, the apparent address space of the storage device is increased.

【0004】この場合、中央処理装置(CPU) 上で
は、データの存在している論理アドレスを生成し、該生
成した論理アドレスのデータが主記憶装置上に存在して
いる実アドレスを求めて、該主記憶装置をアクセスする
ことになるが、該アドレス変換に時間がかかる問題があ
り、効率の良いアドレス変換方式が要求される。
[0004] In this case, on the central processing unit (CPU), a logical address where data exists is generated, and the real address where the data of the generated logical address exists on the main storage device is determined. Although the main memory is accessed, there is a problem in that the address translation takes time, and an efficient address translation method is required.

【0005】[0005]

【従来の技術】図5, 図6は従来のアドレス変換方式
を説明する図であり、図5(a) は、動的アドレス変
換(DAT) 方式を示し、図6(b) はアドレス変
換バッファ(TLB) 方式を示している。
[Prior Art] FIGS. 5 and 6 are diagrams explaining conventional address translation methods, where FIG. 5(a) shows a dynamic address translation (DAT) method, and FIG. 6(b) shows an address translation buffer. (TLB) Indicates the method.

【0006】従来、仮想記憶方式をとる情報処理装置に
おいて、論理アドレスから主記憶装置上の実アドレスを
得る為の動的アドレス変換(DAT) を行う手段 3
0 は、図6(a) に示したように、命令レジスタ1
に設定された命令の資源(1) 〜 10 、例えば、
ベースレジスタ(B) と, インデックスレジスタ(
X),又は、該ベースレジスタ(B) とディスプレイ
スメント(D) とで、アドレスの計算を行って論理ア
ドレスを生成し、該生成された論理アドレスのセグメン
ト番号に基づいて、図示されているセグメントテーブル
エントリが設定されている制御レジスタ 300が指示
するセグメントテーブル 301を索引し、該セグメン
トテーブル 301が指示するページテーブルエントリ
に基づいて、ページテーブル 302を索引して、該生
成した論理アドレス(ページアドレス)に対応する物理
アドレス (実のページアドレス) に変換する方式が
一般的である。
[0006] Conventionally, in an information processing apparatus employing a virtual memory method, there is a means for performing dynamic address translation (DAT) for obtaining a real address on a main storage device from a logical address.
0 is instruction register 1, as shown in Figure 6(a).
Instruction resources (1) to 10 set to , for example,
Base register (B) and index register (
X), or calculate the address using the base register (B) and the displacement (D) to generate a logical address, and then select the segment shown in the figure based on the segment number of the generated logical address. The segment table 301 indicated by the control register 300 in which the table entry is set is indexed, the page table 302 is indexed based on the page table entry indicated by the segment table 301, and the generated logical address (page address ) into the corresponding physical address (actual page address).

【0007】[0007]

【発明が解決しようとする課題】上記の動的アドレス変
換方式では、毎回、アドレス変換の度に、セグメントテ
ーブル 301, ページテーブル 302を順に索引
する必要があるため、物理アドレスの生成に時間がかか
るという問題がある。
[Problem to be Solved by the Invention] In the above dynamic address translation method, it is necessary to index the segment table 301 and page table 302 in order every time an address is translated, so it takes time to generate a physical address. There is a problem.

【0008】これを改善するために、図6(b) に示
したアドレス変換バッファ(TLB) 31を使用する
方式が多く用いられている。このアドレス変換バッファ
(TLB) 31を使用する方式は、上記動的アドレス
変換(DAT) 機構 30 で変換した物理アドレス
を、上記論理アドレスの一部をタグアドレスとして、一
緒に、アドレス変換バッファ(TLB) 31に、該動
的アドレス変換(DAT) 機構 30 のキャッシュ
メモリの形で保持しておき、2回目以降の論理アドレス
の変換からは、該アドレス変換バッファ(TLB) 3
1を索引することで、高速に、物理アドレスを索引でき
るようにしたものである。
In order to improve this problem, a method using an address translation buffer (TLB) 31 shown in FIG. 6(b) is often used. In this method of using the address translation buffer (TLB) 31, the physical address translated by the dynamic address translation (DAT) mechanism 30 is combined with the address translation buffer (TLB) using a part of the logical address as a tag address. ) 31, it is held in the cache memory of the dynamic address translation (DAT) mechanism 30, and from the second and subsequent logical address translations, it is stored in the address translation buffer (TLB) 3.
By indexing 1, physical addresses can be indexed quickly.

【0009】然し、このアドレス変換バッファ(TLB
) 31を用いる為には、図6(b) からの明らかな
ように、命令レジスタ 1に設定されている命令の資源
(1) 〜10、例えば、ベースレジスタ(B)と、イ
ンデックスレジスタ(X) 等を用いて、論理アドレス
レジスタ 4内に、論理アドレスの生成が完了するまで
、該アドレス変換バッファ(TLB) 31を索引でき
ないため、これ以上高速化できないという問題があった
However, this address translation buffer (TLB
) 31, as is clear from FIG. 6(b), the instruction resources (1) to 10 set in instruction register 1, for example, the base register (B) and the index register (X ) etc., the address translation buffer (TLB) 31 cannot be indexed until the generation of the logical address in the logical address register 4 is completed, so there is a problem that the speed cannot be increased any further.

【0010】本発明は上記従来の欠点に鑑み、仮想記憶
方式をとり、動的アドレス変換機構(DAT) と, 
アドレス変換バッファ(TLB)からなるアドレス変換
機構を持ち、命令のフィールドで指定する複数の資源(
レジスタ等) を用いて、論理アドレスを生成し、その
論理アドレスを上記アドレス変換機構に与えて、必要な
物理アドレスを求める情報処理装置において、該論理ア
ドレスの生成と並列処理で、該命令中の資源を用いて、
該アドレス変換バッファ(TLB) を索引するよりも
早い段階で、論理アドレスから物理アドレスを索引する
手段を提供することを目的とするものである。
In view of the above-mentioned conventional drawbacks, the present invention adopts a virtual memory system and uses a dynamic address translation mechanism (DAT).
It has an address translation mechanism consisting of an address translation buffer (TLB), and has multiple resources (
In an information processing device that generates a logical address using a register (such as a register, etc.) and provides the logical address to the address translation mechanism to obtain the necessary physical address, the generation of the logical address and parallel processing process the instructions in the instruction. using resources,
The object of this invention is to provide a means for indexing a physical address from a logical address at an earlier stage than indexing the address translation buffer (TLB).

【0011】[0011]

【課題を解決するための手段】図1, 図2は本発明の
原理構成図であり、図1(a) は構成例を示し、図2
(b)は動作タイムチャートを示している。上記の問題
点は下記の如くに構成した高速アドレス変換方式によっ
て解決される。
[Means for Solving the Problems] FIGS. 1 and 2 are diagrams showing the principle configuration of the present invention, FIG. 1(a) shows an example of the configuration, and FIG.
(b) shows an operation time chart. The above problem can be solved by a high speed address translation method configured as follows.

【0012】(1) 仮想記憶方式をとり、動的アドレ
ス変換機構(DAT) 30と, アドレス変換バッフ
ァ(TLB) 31からなる第1のアドレス変換機構 
3を持ち、命令のフィールド 10 で指定する複数の
資源を用いて、論理アドレスを生成し、その論理アドレ
スを上記第1のアドレス変換機構 3に与えて、必要な
物理アドレスを求める情報処理装置において、該命令の
フィールド 10 で指定する資源情報で検索する第2
のアドレス変換機構 6を設けて、上記命令のフィール
ド 10 で指定する複数の資源を用いて行う論理アド
レスの生成と, 上記命令のフィールド 10 で指定
する資源情報で検索する第2のアドレス変換機構 6に
よる論理アドレスから物理アドレスへの変換処理とを並
列に行い、該第2のアドレス変換機構 6でヒットした
ときには、該第2のアドレス変換機構 6による変換ア
ドレスを使用し、ミスヒットのときには、上記第1のア
ドレス変換機構 3による変換アドレスを使用するよう
に構成する。
(1) A first address translation mechanism employs a virtual memory system and consists of a dynamic address translation mechanism (DAT) 30 and an address translation buffer (TLB) 31.
3, generates a logical address using a plurality of resources specified in a field 10 of an instruction, and provides the logical address to the first address translation mechanism 3 to obtain a necessary physical address. , the second search using the resource information specified in field 10 of the instruction.
A second address translation mechanism 6 is provided to generate a logical address using a plurality of resources specified in field 10 of the above instruction, and to search using resource information specified in field 10 of the above instruction. When there is a hit in the second address translation mechanism 6, the translated address by the second address translation mechanism 6 is used, and when there is a miss, the above conversion process is performed in parallel. The first address translation mechanism 3 is configured to use translated addresses.

【0013】(2) 上記第2のアドレス変換機構 6
として、上記アドレス変換バッファ(TLB)31の一
部をコピーして構成する。
(2) Second address translation mechanism 6
It is configured by copying a part of the address translation buffer (TLB) 31.

【0014】[0014]

【作用】前述の問題点を解決するために、本発明では、
命令レジスタ 1に設定された命令コード中の資源(1
) 10を直接用いて、該資源(1) 10を用いて行
う論理アドレスの生成処理と並列に、該論理アドレスか
ら物理アドレスを索引できるようにしたものである。
[Operation] In order to solve the above-mentioned problems, in the present invention,
The resource in the instruction code set to instruction register 1 (1
) 10 directly to index the physical address from the logical address in parallel with the logical address generation process performed using the resource (1) 10.

【0015】具体的には、図1(a) に示すように、
従来のアドレス変換機構 (第1のアドレス変換機構)
 3 とは別に、論理アドレスのページ部分を用いた論
理アドレスタグと, それに対応する物理アドレスを格
納する手段、即ち、第2のアドレス変換機構 6と、そ
れを命令の資源(1) 10、例えば、ベースレジスタ
(B) 指定フィールド10 の情報をラインアドレス
として索引できるようにする。
Specifically, as shown in FIG. 1(a),
Conventional address translation mechanism (first address translation mechanism)
3 Separately, a means for storing a logical address tag using a page portion of a logical address and a corresponding physical address, that is, a second address translation mechanism 6, and an instruction resource (1) 10, e.g. , the information in the base register (B) specification field 10 can be indexed as a line address.

【0016】この第2のアドレス変換機構 6により、
ヒットした場合には、図1 (b)に示した動作タイム
チャートからも明らかな如く、従来のアドレス変換バッ
ファ(TLB)31の索引で求める場合よりも、1サイ
クル早い段階で、上記論理アドレスに対する物理アドレ
スを求めることができ、高速なアドレス変換を行うこと
ができる効果がある。
With this second address translation mechanism 6,
In the case of a hit, as is clear from the operation time chart shown in FIG. This has the effect of being able to obtain a physical address and perform high-speed address translation.

【0017】勿論、本発明の第2のアドレス変換機構 
6は、例えば、命令の資源(1) 10をラインアドレ
スとしている為、従来のアドレス変換バッファ(TLB
) {図6 (b)に示されているよにう、命令の資源
(1),(2) 10等を使用して生成した論理アドレ
スのページ指定部分の一部を、そのラインアドレスとし
ている}31と比較すると、容量が小さい。
Of course, the second address translation mechanism of the present invention
6 is, for example, an instruction resource (1). Since 10 is a line address, it cannot be used as a conventional address translation buffer (TLB).
) {As shown in Figure 6 (b), part of the page specification part of the logical address generated using instruction resources (1), (2) 10, etc. is used as the line address. }Compared to 31, the capacity is small.

【0018】従って、上記生成された論理アドレスが元
のページと同じ範囲にある場合には、本発明の第2のア
ドレス変換機構 6でも必ずヒットするが、該生成され
た論理アドレスが、元のページを越える場合には、アド
レス変換バッファ(TLB) 31でヒットしても、本
第2のアドレス変換機構 6ではミスヒットとなること
になる。この場合には、従来の第1のアドレス変換機構
 3で変換された物理アドレスを用いるようにする。
Therefore, if the generated logical address is in the same range as the original page, the second address translation mechanism 6 of the present invention will definitely hit, but the generated logical address will be in the same range as the original page. If the number exceeds a page, even if there is a hit in the address translation buffer (TLB) 31, it will be a miss in the second address translation mechanism 6. In this case, the physical address translated by the conventional first address translation mechanism 3 is used.

【0019】通常、プログラム, データのアドレス分
布に局所性があることに着目すると、上記ミスヒットと
なる確率は小さく、本発明を妨げる要因となることはな
い。
Considering that there is usually locality in the address distribution of programs and data, the probability of the above-mentioned miss is small and does not hinder the present invention.

【0020】[0020]

【実施例】以下本発明の実施例を図面によって詳述する
。前述の図1,図2は、本発明の原理説明図であり、図
3,図4は本発明の一実施例を示した図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Examples of the present invention will be described below in detail with reference to the drawings. 1 and 2 described above are diagrams explaining the principle of the present invention, and FIGS. 3 and 4 are diagrams showing an embodiment of the present invention.

【0021】本発明においては、仮想記憶方式をとり、
動的アドレス変換機構(DAT) 30と,アドレス変
換バッファ(TLB) 31からなる第1のアドレス変
換機構 3を持ち、命令のフィールド 10 で指定す
る複数の資源を用いて、論理アドレスを生成し、その論
理アドレスを上記第1のアドレス変換機構 3に与えて
、必要な物理アドレスを求める情報処理装置において、
該命令のフィールド 10 で指定する資源情報で検索
する第2のアドレス変換機構 6を設けて、上記命令の
フィールド 10 で指定する複数の資源を用いて行う
論理アドレスの生成と, 上記命令のフィールド 10
 で指定する資源情報で検索する第2のアドレス変換機
構6による論理アドレスから物理アドレスへの変換処理
とを並列に行い、該第2のアドレス変換機構 6でヒッ
トしたときには、該第2のアドレス変換機構 6による
変換アドレスを使用し、ミスヒットのときには、上記第
1のアドレス変換機構 3による変換アドレスを使用す
る手段が、本発明を実施するのに必要な手段である。尚
、全図を通して同じ符号は同じ対象物を示している。
[0021] In the present invention, a virtual storage method is adopted,
It has a first address translation mechanism 3 consisting of a dynamic address translation mechanism (DAT) 30 and an address translation buffer (TLB) 31, and generates a logical address using a plurality of resources specified in a field 10 of an instruction. In an information processing device that provides the logical address to the first address translation mechanism 3 to obtain a necessary physical address,
A second address translation mechanism 6 that searches using resource information specified in field 10 of the instruction is provided to generate a logical address using a plurality of resources specified in field 10 of the instruction;
The process of converting a logical address to a physical address by the second address translation mechanism 6 searched by the resource information specified by is performed in parallel, and when a hit is found in the second address translation mechanism 6, the second address conversion A means for using the translated address by the first address translation mechanism 6 and, in the case of a miss, using the translated address by the first address translation mechanism 3, is a necessary means for implementing the present invention. Note that the same reference numerals indicate the same objects throughout the figures.

【0022】以下、図1,図2を参照しながら、図3,
図4を用いて、本発明の高速アドレス変換方式を説明す
る。先ず、図3,図4において、1 は命令レジスタを
示したおり、該命令レジスタ1に設定された命令コード
において、B,D,Rは、それぞれ、ベースレジスタ番
号、ディスプレースメント、結果格納レジスタ番号を表
すフィールド 10 である。2 は汎用レジスタのレ
ジスタファイルであり、Bの値をラインアドレスとして
対応するレジスタがアクセスされる。このデータはアド
レス計算のベースアドレスとして使用される。25は汎
用レジスタのレジスタファイル 2の出力と, 命令レ
ジスタ 1のディスプレイスメント(D) 10を加算
することにより、論理アドレスを生成する加算器である
。4 は上記加算器 25で生成したアドレスを保持す
るための論理アドレスレジスタである。31は従来のア
ドレス変換バッファ(TLB) {図6(b) 参照}
である。そして、6は本発明の手段を実現するための第
2のアドレス変換機構(TLBキャッシュ)であり、論
理アドレスタグと物理ページアドレスを保持するライン
数が、汎用レジスタファイル 2と同数の高速RAMで
構成されている。7は上記第2のアドレス変換機構(T
LBキャッシュ)6 からの出力と, 第1のアドレス
変換機構 3からの出力とを切り換えるマルチプレクサ
(MPX)である。
Hereinafter, while referring to FIGS. 1 and 2, FIGS.
The high-speed address conversion method of the present invention will be explained using FIG. 4. First, in FIGS. 3 and 4, 1 indicates an instruction register, and in the instruction code set in instruction register 1, B, D, and R are the base register number, displacement, and result storage register number, respectively. This is field 10 representing . 2 is a register file of general-purpose registers, and the corresponding register is accessed using the value of B as a line address. This data is used as the base address for address calculations. 25 is an adder that generates a logical address by adding the output of the register file 2 of the general-purpose register and the displacement (D) 10 of the instruction register 1. 4 is a logical address register for holding the address generated by the adder 25. 31 is a conventional address translation buffer (TLB) {see Figure 6(b)}
It is. 6 is a second address translation mechanism (TLB cache) for realizing the means of the present invention, and is a high-speed RAM whose number of lines for holding logical address tags and physical page addresses is the same as that of general-purpose register file 2. It is configured. 7 is the second address translation mechanism (T
This is a multiplexer (MPX) that switches between the output from the LB cache (LB cache) 6 and the output from the first address translation mechanism 3.

【0023】以下、具体的な動作を説明する。本発明を
実施しても、第1のアドレス変換機構 3の動作は特に
変わることはないので省略し、ここでは、本発明の第2
のアドレス変換機構 6の動作を中心にして説明する。
The specific operation will be explained below. Even if the present invention is implemented, the operation of the first address translation mechanism 3 will not change in particular, so it will be omitted, and here, the second address translation mechanism 3 of the present invention will be omitted.
The operation of the address translation mechanism 6 will be mainly explained.

【0024】命令レジスタ 1のBフィールドの値をア
ドレスとして、本発明の第2のアドレス変換機構 (T
LBキャッシュ) 6 を索引する。この時、加算器 
25 において計算されているアドレス計算の結果の論
理アドレスの、タグに対応するアドレス、例えば、ペー
ジアドレスの部分が、該第2のアドレス変換機構 (T
LBキャッシュ) 6 の論理アドレスタグと比較され
ヒット判定される。
The second address translation mechanism (T
LB cache) 6 is indexed. At this time, the adder
The address corresponding to the tag, for example, the page address part of the logical address as a result of the address calculation calculated in step 25, is transferred to the second address translation mechanism (T
It is compared with the logical address tag of LB cache) 6 and a hit is determined.

【0025】若し、ヒットしていれば、該第2のアドレ
ス変換機構 (TLBキャッシュ) 6で索引された物
理アドレスがメモリアクセスのアドレスとして使用され
る。 若し、ミスヒットした場合には、従来のアドレス変換バ
ッファ(TLB) 31の結果が使用される。この場合
の従来のアドレス変換機構の構成は如何なるものでも構
わない。
If there is a hit, the physical address indexed by the second address translation mechanism (TLB cache) 6 is used as the memory access address. If there is a miss, the result of the conventional address translation buffer (TLB) 31 is used. In this case, the conventional address translation mechanism may have any configuration.

【0026】本実施例では、ベースレジスタ(B) の
番号を、該第2のアドレス変換機構 (TLBキャッシ
ュ) 6 のラインアドレスとしたが、これにがぎる必
要はなく、ハードウェアの量に依存して決定すればよい
In this embodiment, the number of the base register (B) is the line address of the second address translation mechanism (TLB cache) 6, but there is no need to limit it to this, and it depends on the amount of hardware. You can decide by doing so.

【0027】本第2のアドレス変換機構 (TLBキャ
ッシュ) 6 への論理アドレスタグと、対応する物理
アドレスの格納は、前述の動的アドレス変換(DAT)
 機構 30 でアドレス変換を行って得られた物理ア
ドレスを、アドレス変換バッファ(TLB) 31に登
録するときに、対応する論理アドレスレジスタ 4のペ
ージアドレス部分 (論理アドレスタグ) と一緒に行
うことで事足りる。
Storage of the logical address tag and the corresponding physical address in the second address translation mechanism (TLB cache) 6 is performed using the above-mentioned dynamic address translation (DAT).
When registering the physical address obtained by address translation in the mechanism 30 in the address translation buffer (TLB) 31, it is sufficient to register it together with the page address part (logical address tag) of the corresponding logical address register 4. .

【0028】次に、本発明の他の実施例を、同じ図3,
図4を用いて説明する。本実施例では、プログラムの、
例えば、主プログラムからサブルーチンに分岐して、元
の主プログラムに戻るような場合、該主プログラムから
サブルーチンに分岐する際に、レジスタファイル 2の
特定の汎用レジスタ{ベースレジスタ(B) }に、戻
り番地 (但し、論理アドレス) を設定しておくこと
で、該サブルーチンの処理を終了して、特定の分岐命令
、例えば、無条件分岐命令で、該ベースレジスタ(B)
 を指定し、該汎用レジスタ 2に設定してある戻り番
地 (論理アドレス) の物理アドレスを求める際にも
、本発明の第2のアドレス変換機構 6と、上記オペラ
ンド用のアドレス変換バッファ(TLB) 31を使用
することで、高速に該戻り番地の実アドレスを求めるこ
とができる。
Next, another embodiment of the present invention will be described with reference to FIG.
This will be explained using FIG. 4. In this example, the program's
For example, when branching from the main program to a subroutine and returning to the original main program, when branching from the main program to the subroutine, the return information is stored in a specific general-purpose register {base register (B)} of register file 2. By setting the address (however, a logical address), the processing of the subroutine can be completed and the base register (B
When specifying the physical address of the return address (logical address) set in the general-purpose register 2, the second address translation mechanism 6 of the present invention and the address translation buffer (TLB) for the operand are used. By using 31, the real address of the return address can be found at high speed.

【0029】このように、本発明は、仮想記憶方式をと
り、動的アドレス変換機構(DAT) 30と, アド
レス変換バッファ(TLB) 31からなる第1のアド
レス変換機構 3を持ち、命令のフィールド 10 で
指定する複数の資源を用いて、論理アドレスを生成し、
その論理アドレスを上記第1のアドレス変換機構 3に
与えて、必要な物理アドレスを求める情報処理装置にお
いて、該命令のフィールド 10 で指定する資源情報
で検索する第2のアドレス変換機構 6を設けて、上記
命令のフィールド 10 で指定する複数の資源を用い
て行う論理アドレスの生成と, 上記命令のフィールド
 10 で指定する資源情報で検索する第2のアドレス
変換機構 6による論理アドレスから物理アドレスへの
変換処理とを並列に行い、該第2のアドレス変換機構 
6でヒットしたときには、該第2のアドレス変換機構 
6による変換アドレスを使用し、ミスヒットのときには
、上記第1のアドレス変換機構 3による変換アドレス
を使用するようにした所に特徴がある。
As described above, the present invention employs a virtual memory system, has a first address translation mechanism 3 consisting of a dynamic address translation mechanism (DAT) 30, and an address translation buffer (TLB) 31, and 10 Generate a logical address using multiple resources specified in
In the information processing apparatus that gives the logical address to the first address translation mechanism 3 to obtain the necessary physical address, a second address translation mechanism 6 is provided that searches using resource information specified in the field 10 of the instruction. , generation of a logical address using multiple resources specified in field 10 of the above instruction, and conversion from a logical address to a physical address by a second address conversion mechanism 6 that searches using resource information specified in field 10 of the above instruction. The second address translation mechanism performs the conversion process in parallel.
6, the second address translation mechanism
6 is used, and in the event of a miss, the address translated by the first address translation mechanism 3 is used.

【0030】[0030]

【発明の効果】以上、詳細に説明したように、本発明の
高速アドレス変換方式は、仮想記憶方式をとり、動的ア
ドレス変換機構(DAT) と, アドレス変換バッフ
ァ(TLB) からなる第1のアドレス変換機構を持ち
、命令のフィールドで指定する複数の資源 (レジスタ
等) を用いて、論理アドレスを生成し、その論理アド
レスを上記第1のアドレス変換機構に与えて、必要な物
理アドレスを求める情報処理装置において、該命令のフ
ィールドで指定する資源情報で検索する第2のアドレス
変換機構(TLBキャッシュ)を設けて、上記論理アド
レスの生成と上記第2のアドレス変換機構による物理ア
ドレスへの変換とを並列に行い、該第2のアドレス変換
機構でヒットしたときには、該TLB キャッシュによ
る変換アドレスを使用し、ミスヒットのときには、上記
第1のアドレス変換機構による変換アドレスを使用する
ようにしたものであるので、論理アドレス計算をしてい
る間に、必要な物理アドレスを取り出すことが可能にな
るため、高速なアドレス変換機構を提供できる効果があ
る。
[Effects of the Invention] As explained above in detail, the high-speed address translation method of the present invention uses a virtual memory method, and has a first address translation system consisting of a dynamic address translation mechanism (DAT) and an address translation buffer (TLB). It has an address translation mechanism, generates a logical address using multiple resources (registers, etc.) specified in the instruction field, and gives the logical address to the first address translation mechanism to obtain the required physical address. In the information processing device, a second address translation mechanism (TLB cache) is provided to search using resource information specified in the field of the instruction, and the logical address is generated and converted to a physical address by the second address translation mechanism. are performed in parallel, and when there is a hit in the second address translation mechanism, the address translated by the TLB cache is used, and in the case of a miss, the address translated by the first address translation mechanism is used. Therefore, it is possible to extract a necessary physical address while calculating a logical address, which has the effect of providing a high-speed address translation mechanism.

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

【図1】本発明の原理説明図(その1)[Figure 1] Diagram explaining the principle of the present invention (Part 1)

【図2】本発明
の原理説明図(その2)
[Figure 2] Diagram explaining the principle of the present invention (Part 2)

【図3】本発明の一実施例を示
した図(その1)
[Fig. 3] Diagram showing one embodiment of the present invention (Part 1)

【図4】本発明の一実施例を示した図
(その2)
[Fig. 4] Diagram showing one embodiment of the present invention (Part 2)

【図5】従来のアドレス変換方式を説明する
図(その1)
[Figure 5] Diagram explaining the conventional address conversion method (Part 1)

【図6】従来のアドレス変換方式を説明する図(その2
[Figure 6] Diagram explaining the conventional address conversion method (Part 2)
)

【符号の説明】[Explanation of symbols]

1     命令レジスタ             
   10      フィールド{資源(1),〜} 2     汎用レジスタファイル        2
5      加算器3     第1のアドレス変換
機構 30    動的アドレス変換機構(DAT)   3
1      アドレス変換バッファ(TLB) 300   制御レジスタ             
   301     セグメントテーブル 302   ページテーブル 4     論理アドレスレジスタ 6     第2のアドレス変換機構
1 Instruction register
10 Field {Resource (1), ~} 2 General-purpose register file 2
5 Adder 3 First address translation mechanism 30 Dynamic address translation mechanism (DAT) 3
1 Address translation buffer (TLB) 300 Control register
301 Segment table 302 Page table 4 Logical address register 6 Second address translation mechanism

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】仮想記憶方式をとり、動的アドレス変換機
構(DAT)(30)と, アドレス変換バッファ(T
LB)(31) からなる第1のアドレス変換機構(3
) を持ち、命令のフィールド(10)で指定する複数
の資源を用いて、論理アドレスを生成し、その論理アド
レスを上記第1のアドレス変換機構(3) に与えて、
必要な物理アドレスを求める情報処理装置において、該
命令のフィールド(10)で指定する資源情報で検索す
る第2のアドレス変換機構(6) を設けて、上記命令
のフィールド(10)で指定する複数の資源を用いて行
う論理アドレスの生成と, 上記命令のフィールド(1
0)で指定する資源情報で検索する第2のアドレス変換
機構(6) による論理アドレスから物理アドレスへの
変換処理とを並列に行い、該第2のアドレス変換機構(
6) でヒットしたときには、該第2のアドレス変換機
構(6) による変換アドレスを使用し、ミスヒットの
ときには、上記第1のアドレス変換機構(3) による
変換アドレスを使用することを特徴とする高速アドレス
変換方式。
Claim 1: Adopts a virtual memory system and includes a dynamic address translation mechanism (DAT) (30) and an address translation buffer (T
LB) (31) The first address translation mechanism (3
), generates a logical address using a plurality of resources specified in the field (10) of the instruction, and gives the logical address to the first address translation mechanism (3),
In an information processing device that searches for a necessary physical address, a second address translation mechanism (6) is provided to search using resource information specified in field (10) of the instruction, and a plurality of addresses specified in field (10) of the instruction are provided. The generation of a logical address using the resources of the above instruction and the field (1
The process of converting a logical address to a physical address by the second address translation mechanism (6), which searches using the resource information specified in 0), is performed in parallel, and the second address translation mechanism (6)
6) When there is a hit, the address translated by the second address translation mechanism (6) is used, and when there is a miss, the address translated by the first address translation mechanism (3) is used. High-speed address translation method.
【請求項2】上記第2のアドレス変換機構(6) とし
て、上記アドレス変換バッファ(TLB)(31) の
一部をコピーして構成することを特徴とする請求項1に
記載の高速アドレス変換方式。
2. The high-speed address translation according to claim 1, wherein the second address translation mechanism (6) is configured by copying a part of the address translation buffer (TLB) (31). method.
JP3039733A 1991-03-06 1991-03-06 High-speed address converting system Pending JPH04277846A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3039733A JPH04277846A (en) 1991-03-06 1991-03-06 High-speed address converting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3039733A JPH04277846A (en) 1991-03-06 1991-03-06 High-speed address converting system

Publications (1)

Publication Number Publication Date
JPH04277846A true JPH04277846A (en) 1992-10-02

Family

ID=12561176

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3039733A Pending JPH04277846A (en) 1991-03-06 1991-03-06 High-speed address converting system

Country Status (1)

Country Link
JP (1) JPH04277846A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001042927A1 (en) * 1999-12-09 2001-06-14 Fujitsu Limited Memory access device and method using address translation history table

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01177145A (en) * 1988-01-06 1989-07-13 Nec Corp Information processor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01177145A (en) * 1988-01-06 1989-07-13 Nec Corp Information processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001042927A1 (en) * 1999-12-09 2001-06-14 Fujitsu Limited Memory access device and method using address translation history table
US6993638B2 (en) 1999-12-09 2006-01-31 Fujitsu Limited Memory access device and method using address translation history table

Similar Documents

Publication Publication Date Title
KR960001946B1 (en) Translation lookaside buffer
JP2769097B2 (en) Address translation method and data processing device
JPH0371337A (en) Microprocessor circuit
JPH05165715A (en) Information processor
JPH0749812A (en) Memory address controller using hash address tag in page table
JPH0137773B2 (en)
WO2000002129A1 (en) Method and apparatus for virtual address translation
US6052530A (en) Dynamic translation system and method for optimally translating computer code
JPH0512126A (en) Device and method for address conversion for virtual computer
JPS62164148A (en) Data processing system
CN111126619B (en) Machine learning method and device
JPH05100956A (en) Address converter
JPH04277846A (en) High-speed address converting system
JPH04335431A (en) Information processor
CN114780466B (en) DMA-based optimization method for data copy delay
CA1328026C (en) Apparatus and method for enhanced virtual to real address translation for accessing a cache memory unit
JP2507785B2 (en) Pageable entry invalidation device
KR0136511B1 (en) Processor of fitness-failure of tlb
JP3013996B2 (en) Information processing device
JP2023526850A (en) Apparatus and method
Haynes The architecture of an ALGOL 60 computer implemented with distributed processors
JPH0573424A (en) High speed address converting system
JPH0812640B2 (en) Address translation method and apparatus
JPH04175825A (en) Information processor provided with branch history table
JPH0588983A (en) Method for dynamic address conversion of channel equipment

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19970304