JP2504500B2 - Address translation device - Google Patents

Address translation device

Info

Publication number
JP2504500B2
JP2504500B2 JP63000634A JP63488A JP2504500B2 JP 2504500 B2 JP2504500 B2 JP 2504500B2 JP 63000634 A JP63000634 A JP 63000634A JP 63488 A JP63488 A JP 63488A JP 2504500 B2 JP2504500 B2 JP 2504500B2
Authority
JP
Japan
Prior art keywords
address
operand
real
tlb
predetermined
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 - Fee Related
Application number
JP63000634A
Other languages
Japanese (ja)
Other versions
JPH01177144A (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.)
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 JP63000634A priority Critical patent/JP2504500B2/en
Publication of JPH01177144A publication Critical patent/JPH01177144A/en
Application granted granted Critical
Publication of JP2504500B2 publication Critical patent/JP2504500B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔概要〕 アドレス変換方式に係り特に論理アドレス及び実アド
レスから主記憶装置の絶対アドレスに変換するアドレス
変換装置に関し、 高速でアドレス変換を実行することができるようにす
ることを目的とし、 オペランドアドレスを主記憶装置の絶対アドレスへ変
換するアドレス変換装置であってTLBを有するものにお
いて、オペランドアドレスが実アドレスであることを確
認する実アドレス確認手段と、オペランドアドレスの所
定の上位アドレスが全て0であかを調べる0確認手段
と、上記オペランドアドレスの所定の上位アドレスがプ
リフィクスレジスタに格納されているアドレスと一致し
ているかを確認するアドレス確認手段と、上記実アドレ
ス確認手段の出力によってオレランドアドレスが論理ア
ドレスであるときにはオペランドアドレスをTLBに出力
し、又オペランドアドレスが実アドレスでありかつ上記
0確認手段で所定の上位アドレスが0である時上位アド
レスをプリフィクスレジスタの値に置換え、さらにオペ
ランドアドレスが実アドレスであり上記アドレス確認手
段によりオペランドアドレスの所定の上位アドレスがプ
リフィクスレジスタの値と同一であるときはその所定の
アドレスの全てのビットを0と置換え、さらにまたオペ
ランドアドレスが実アドレスでありかつ上記所定の上位
アドレスが全て0ではなくかつ上記所定のアドレスがプ
リフィクスレジスタの値と一致しないときにはオペラン
ドアドレスをそのまま出力する制御手段とを設けて構成
する。
DETAILED DESCRIPTION OF THE INVENTION [Outline] The present invention relates to an address conversion system, and more particularly, to an address conversion device for converting a logical address and a real address into an absolute address of a main storage device, which is capable of performing address conversion at high speed. For the purpose of, an address translation device for translating an operand address into an absolute address of the main storage device having a TLB, a real address confirmation means for confirming that the operand address is a real address, and a predetermined operand address The 0 confirmation means for checking whether all the upper addresses are 0, the address confirmation means for confirming whether a predetermined upper address of the operand address matches the address stored in the prefix register, and the real address confirmation means. Oleland address is a logical address by output Sometimes the operand address is output to the TLB, and when the operand address is the real address and the predetermined higher address is 0 by the 0 confirmation means, the higher address is replaced with the value of the prefix register, and the operand address is the real address. When the predetermined higher address of the operand address is the same as the value of the prefix register by the address confirmation means, all the bits of the predetermined address are replaced with 0, and the operand address is the real address and the predetermined higher address. When all the addresses are not 0 and the predetermined address does not match the value of the prefix register, a control means for outputting the operand address as it is is provided.

〔産業上の利用分野〕[Industrial applications]

本発明はアドレス変換方式に係り特に論理アドレス及
び実アドレスから主記憶装置の絶対アドレスに変換する
アドレス変換装置に関するものである。
The present invention relates to an address conversion system, and more particularly to an address conversion device for converting a logical address and a real address into an absolute address of a main memory.

〔従来の技術〕[Conventional technology]

従来上述のようなアドレス変換装置として次のような
ものがある。これは、入力された論理アドレスを実アド
レスに変換し、さらにこの実アドレスを主記憶装置上の
絶対アドレスに変換するものである。
Conventionally, there are the following address translation devices as described above. This is to convert the input logical address into a real address, and further to convert this real address into an absolute address on the main memory.

ここで、入力されるアドレスが変換モードで指定され
ている場合には論理アドレスは動的アドレス変換機構
(DAT)で実アドレスに変換される。しかしプログラム
が非変換モードで記載されている場合には、論理アドレ
スと実アドレスとは一致する。
Here, when the input address is designated in the translation mode, the logical address is translated into a real address by the dynamic address translation mechanism (DAT). However, when the program is written in the non-translation mode, the logical address and the real address match.

また実アドレスを絶対アドレスに変換するに際しては
計算機のプロセッサが1台であるときには、実アドレス
と絶対アドレスの値は一致するが、プロセッサを複数設
けた所謂マルチプロセッサシステムを採用する計算機に
おいては、プロセッサは夫々実アドレス空間を有し、夫
々のプロセッサが有する実アドレス空間はプリフィック
ス変換機構(プリフィクスレジスタ)によって絶対アド
レス空間に変換される。これは夫々の実アドレス空間内
に存在するハードウエア固定領域を絶対アドレス空間上
で重複させないためである。
When converting a real address to an absolute address, when the number of processors of the computer is one, the values of the real address and the absolute address match, but in a computer adopting a so-called multiprocessor system having a plurality of processors, Has a real address space, and the real address space of each processor is converted into an absolute address space by a prefix conversion mechanism (prefix register). This is because the hardware fixed areas existing in the respective real address spaces are not overlapped in the absolute address space.

ところで上述のDATやプリフィクス変換は主記憶装置
へのアクセスの度にその都度実行するのではなくTLB(T
ransration Lookaside Buffer)を設けて、DAT及びプリ
フィクス変換を行なった一部の論理アドレスと絶対アド
レス、又は実アドレスと絶対アドレスとの対をTLBにエ
ントリーとして保持しておき、主記憶装置のアクセスを
行なう場合には先ず最初にTLBを論理アドレス又は実ア
ドレスで参照して、TLBの中でその参照すべきエントリ
ーを発見したらその論理アドレスまたは実アドレスを絶
対アドレスに置換え、主記憶装置をアクセスする。
By the way, the above-mentioned DAT and prefix conversion is not executed each time the main memory is accessed, but TLB (T
ransration Lookaside Buffer) to hold a part of the logical address and absolute address for which DAT and prefix conversion have been performed, or a pair of real address and absolute address as an entry in the TLB to access the main memory device. In this case, first, the TLB is referred to by a logical address or real address, and when the entry to be referred to is found in the TLB, the logical address or real address is replaced with an absolute address, and the main storage device is accessed.

もしTLB内で変換すべきエントリーを発見できないと
きには、DAT及びプリフィクス変換機構で論理アドレス
又は実アドレスを絶対アドレスに変換して主記憶装置を
アクセスすると共に、TLBにその変換を行なった論理ア
ドレスと絶対アドレスまたは実アドレスと絶対アドレス
の対をTLBのエントリーとして登録する。
If the entry to be translated cannot be found in the TLB, the DAT and prefix translation mechanism translates the logical address or real address into an absolute address to access the main storage device, and the TLB performs the translation with the absolute address. Register an address or a pair of real address and absolute address as an entry in the TLB.

このようにして、DATやプリフィクス変換に費やされ
る時間をできるだけ短いものとしている。
In this way, the time spent on DAT and prefix conversion is minimized.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

ところで、このようなアドレス変換装置において、実
アドレスで主記憶装置をアクセスする場合にはプリフィ
クス変換のみが行なわれる。
By the way, in such an address translator, only the prefix translation is performed when the main memory is accessed by the real address.

このプリフィクス変換はハードウエア固定領域とプリ
フィクスレジスタのアドレスが示す領域のみアドレスが
変換され、その他のアドレスは実アドレスと絶対アドレ
スとは同一のものとなる。しかし実アドレスと絶対アド
レスとが同一であったとしてもTLBの1つのエントリー
を使用することとなるため、そのような場合には登録済
のエントリーの内の1つのエントリーを追い出すことと
なる。また、プリフィクス変換が行なわれるハードウエ
ア固定領域へのアクセスは比較的高い頻度で行なわれ、
論理アドレスとしてもアクセス頻度が高く互いに追い出
し合うためTLBのヒット率が低下してアドレス変換に時
間がかかるという問題がある。
In this prefix conversion, the address is converted only in the hardware fixed area and the area indicated by the address of the prefix register, and other addresses are the same as the real address and the absolute address. However, even if the real address and the absolute address are the same, one entry of the TLB is used, and in such a case, one entry among the registered entries is expelled. In addition, access to the hardware fixed area where the prefix conversion is performed is performed relatively frequently,
Even with logical addresses, the access frequency is high and they are driven out of each other, so the TLB hit rate decreases and address translation takes time.

そこで本発明は高速でアドレス変換を実行することが
できるアドレス変換装置を提供することを目的とする。
Therefore, an object of the present invention is to provide an address translation device that can perform address translation at high speed.

〔問題点を解決するための手段〕[Means for solving problems]

本発明において上記の問題点を解決するための手段
は、第1図に示すように、オペランドアドレスである論
理アドレス及び実アドレスを主記憶装置の絶対アドレス
へ変換するアドレス変換装置1であってTLB2を有するも
のにおいて、オペランドアドレスが実アドレスであるこ
とを確認する実アドレス確認手段3と、オペランドアド
レスの所定の上位アドレスが全て0であるかを調べる0
確認手段4と上記オペランドアドレスの所定の上位アド
レスがプリフィクスレジスタに格納されているアドレス
と一致しているかを確認するアドレス確認手段5と、上
記アドレス確認手段5の出力によってオペランドアドレ
スが論理アドレスであるときにはオペランドアドレスを
TLB2に出力し、又オペランドアドレスが実アドレスであ
りかつ上記0確認手段4で所定の上位アドレスが0であ
る時上位アドレスをプリフィクスレジスタ6の値に置換
え、さらにオペランドアドレスが実アドレスであり上記
アドレス確認手段5によりオペランドアドレスの所定の
上位アドレスがプリフィクスレジスタ6の値と同一であ
るときはその所定アドレスの全てのビットを0と置換
え、さらにまたオペランドアドレスが実アドレスであり
かつ上記所定の上位アドレスが全て0ではなくかつ上記
所定のアドレスがプリフィクスレジスタの値と一致しな
いときにはオペランドアドレスをそのまま出力する制御
手段7とを設けたことである。
As shown in FIG. 1, a means for solving the above-mentioned problems in the present invention is an address translation device 1 for translating a logical address and a real address which are operand addresses into an absolute address of a main storage device, which is a TLB2. Of the operand addresses, the real address confirmation means 3 for confirming that the operand address is a real address, and 0 for checking whether all predetermined upper addresses of the operand address are 0
The confirming means 4 and the address confirming means 5 for confirming whether a predetermined upper address of the operand address matches the address stored in the prefix register, and the output of the address confirming means 5 causes the operand address to be a logical address. Sometimes the operand address
When the operand address is a real address and the 0 address checking means 4 has a predetermined upper address of 0, the upper address is replaced with the value of the prefix register 6, and the operand address is a real address. When the predetermined upper address of the operand address is the same as the value of the prefix register 6 by the confirmation means 5, all the bits of the predetermined address are replaced with 0, and the operand address is the real address and the predetermined upper address. Is not all 0 and the predetermined address does not match the value of the prefix register, the control means 7 is provided for outputting the operand address as it is.

〔作用〕[Action]

本発明によればオペランドが論理アドレスでなされた
ときにはTLBで絶対アドレスに変換されるほか、オペラ
ンドが実アドレスでなされているときには、これを制御
手段でプリフィクス変換を行なうから、TLBは実アドレ
スに関するエントリーを格納する必要はなくなり論理ア
ドレスに関するエントリーを格納すれば足りるから、互
いにエントリーを追い出し合う頻度が少なくなり、TLB
のヒット率が低下することはなくなる。
According to the present invention, when the operand is a logical address, it is converted to an absolute address by the TLB, and when the operand is a real address, it is subjected to prefix conversion by the control means. Since it is sufficient to store the entry related to the logical address because it is not necessary to store the
The hit rate of will not decrease.

〔実施例〕〔Example〕

以下本発明に係るアドレス変換装置の実施例を図面に
基づいて説明する。
An embodiment of an address translation device according to the present invention will be described below with reference to the drawings.

第2図及び第3図は本発明に係るアドレス変換装置の
実施例を示すものである。本実施例においてアドレス変
換装置は2台のTLB、即ちプライマリーTLB(PRI−TLB)
とアルタネートTLB(ALT−TLB)とを有しており、通常
の論理アドレスがオペランドアドレスとして入力したと
きには、何れかのTLBに該当するエントリーが存在する
ときにはその論理アドレスに相当する絶対アドレスを出
力してアドレス変換を実行する。そして本実施例におい
て、アドレス変換装置は、プライマリーTLB(PRI−TL
B)とアルタネートTLB(ALT−TLB)の何れのTLBに出力
を許可するかを指定するTLBマッチ信号発生装置10と、
実際に絶対アドレスを出力するアドレス出力装置40とか
らなる。そしてこれらの構成からTLB、0確認手段及び
アドレス確認手段を除いた構成が制御手段となる。
2 and 3 show an embodiment of the address translation device according to the present invention. In this embodiment, the address translation device has two TLBs, that is, a primary TLB (PRI-TLB).
And an alternate TLB (ALT-TLB). When an ordinary logical address is input as an operand address, when an entry corresponding to any TLB exists, the absolute address corresponding to that logical address is output. Address translation. Then, in the present embodiment, the address translation device uses the primary TLB (PRI-TL
B) and an alternate TLB (ALT-TLB) TLB match signal generator 10 for designating which TLB is permitted to output,
The address output device 40 actually outputs the absolute address. Then, the control means has a configuration excluding the TLB, 0 confirmation means and address confirmation means from these configurations.

上述のTLBマッチ信号発生装置10は、第2図に示すよ
うな構成を有する。同図において、11はオペランドされ
たアドレスを保持するオペランドアドレス保持装置、12
はどのテーブルを使用するかを指定するセグメントテー
ブルオリジンの状態を保持するSTO保持装置、13は使用
モードを指定するモード指定情報を保持するMODE保持装
置、14はオペランドアドレスが実アドレスの時状態
「1」が立つ、実アドレス確認手段としてのREAL情報保
持装置を示している。また同図において、15はプライマ
リーTLB、16はアルタネートTLBを示しており、夫々上記
オペランドアドレス保持装置11の上位のアドレスを参照
してバリッド(V)、モード(M)、STO(S)及びバ
ーチャルアドレス(VR ADRS)の状態を出力するものと
している。更に同図において17,18,19は上記のTLB15,16
からのモード(M)、STO(S)、バーチャルアドレス
(VR ADRS)と上記オペランドアドレス保持装置11の所
定アドレスと、STO保持装置12及びMODE保持装置13の出
力とを比較して一致しているときに状態「1」を出力す
る比較器である。これと同様の比較器20,21,22をアルタ
ネートTLB16側にも設けている。そして符号23は上記の
比較器17,18,19とTLBのバリッドの状態とREAL情報保持
装置14の状態をインバータ24で反転した情報が入力され
るアンドゲートを示しており、これと同様のアンドゲー
ト25及びインバータ26をアルタネートTLB16側にも設け
ている。また27は上記オペランドアドレス内の所定の上
位アドレスが全て“0"である状態(以下オール0状態と
いう)であるときには状態「1」を出力する0検出手段
としての0状態検出装置、28はこの0状態検出装置27の
出力と上記REAL状態保持装置14の出力との論理積を出力
するアンドゲートを示している。またこれと同様の0状
態検出装置29とアンドゲート30をアルタネートTLB16側
にも設けており、このアルタネートTLB16の0状態検出
装置29の出力は反転してアンドゲート30に入力してい
る。
The above-mentioned TLB match signal generator 10 has a configuration as shown in FIG. In the figure, 11 is an operand address holding device for holding an operand-addressed address, 12
Is the STO holding device that holds the state of the segment table origin that specifies which table to use, 13 is the MODE holding device that holds the mode specification information that specifies the usage mode, and 14 is the state when the operand address is a real address. 1 ”stands for the REAL information holding device as a real address confirmation means. In the figure, reference numeral 15 is a primary TLB, and 16 is an alternate TLB, which refer to the upper address of the operand address holding device 11 respectively, and are valid (V), mode (M), STO (S) and virtual. The status of the address (VR ADRS) is output. Further, in the figure, 17,18,19 are the above TLBs 15,16.
Mode (M), STO (S), virtual address (VR ADRS) and the predetermined address of the operand address holding device 11 and the outputs of the STO holding device 12 and the MODE holding device 13 are compared and they match. It is a comparator which sometimes outputs the state "1". Similar comparators 20, 21 and 22 are also provided on the alternate TLB 16 side. The reference numeral 23 indicates an AND gate to which the information obtained by inverting the valid state of the comparators 17, 18, 19 and the TLB and the state of the REAL information holding device 14 by the inverter 24 is input. The gate 25 and the inverter 26 are also provided on the alternate TLB 16 side. Further, 27 is a 0 state detecting device as 0 detecting means for outputting a state "1" when all the predetermined upper addresses in the operand address are "0" (hereinafter referred to as all 0 states), and 28 is this An AND gate for outputting a logical product of the output of the 0 state detecting device 27 and the output of the REAL state holding device 14 is shown. Further, the same 0 state detecting device 29 and AND gate 30 are also provided on the alternate TLB 16 side, and the output of the 0 state detecting device 29 of this alternate TLB 16 is inverted and input to the AND gate 30.

次にこのTLBマッチ信号発生装置10の作動について説
明する。
Next, the operation of this TLB match signal generator 10 will be described.

本実施例においてオペランドアドレスが論理アドレス
であるときにはREAL情報保持装置14は状態「0」である
からアンドゲート23,25にはインバータ24,26から状態
「1」が入力され、TLB15,16の(V)及び比較器の状態
が全て状態「1」であれば、何れかのTLBからTLBマッチ
信号が出力される。またオペランドアドレスが実アドレ
スであるときには上記のREAL情報保持装置14の状態は
「1」となり、上記のアンドゲート23,25には状態
「0」が入力されアンドゲート23,25は状態「0」を出
力する。そして0状態比較装置27,29においてオペラン
ドアドレスの所定の上位のアドレスがオール0状態であ
るかどうかが判定され、オール0状態であればプライマ
リーTLB15側のアンドゲート28の状態は「1」アルタネ
ートTLB16の状態は「0」となり、プライマリーTLBマッ
チ信号が発生される。そして所定のアドレスの値がオー
ル0でない状態のときには逆にプライマリーTLB15側の
アンドゲート28の状態は「0」アルタネートTB16側のア
ンドゲート30の状態は「1」となり、アルタネートTLB
マッチ信号が発生される。
In this embodiment, when the operand address is a logical address, the REAL information holding device 14 is in the state "0", and therefore the state "1" is input to the AND gates 23 and 25 from the inverters 24 and 26, and the TLBs 15 and 16 ( V) and the state of the comparator are all "1", a TLB match signal is output from any TLB. When the operand address is a real address, the state of the REAL information holding device 14 is "1", the state "0" is input to the AND gates 23 and 25, and the AND gates 23 and 25 are in the state "0". Is output. Then, the 0-state comparators 27 and 29 determine whether or not a predetermined higher-order address of the operand address is in the all-0 state, and if it is the all-0 state, the state of the AND gate 28 on the primary TLB 15 side is "1" alternate TLB16. State becomes "0", and the primary TLB match signal is generated. When the value of the predetermined address is not all 0s, on the contrary, the state of the AND gate 28 on the primary TLB 15 side becomes "0" and the state of the AND gate 30 on the alternate TB16 side becomes "1", and the alternate TLB side.
A match signal is generated.

この結果を表にすると以下の第1表のようになる。 The results are tabulated as shown in Table 1 below.

次に本実施例に係るアドレス変換装置を構成するアド
レス出力装置40の構成を説明する。本実施例において、
アドレス出力装置40は第3図に示すような構成を有す
る。同図において符号41はオペランドアドレスの上位ア
ドレスに対応した絶対アドレスを出力するプライマリー
TLB、42は同様のアルタネートTLB、43は上述したREAL情
報保持装置14の情報と、この情報を反転した情報とを出
力するインバータ、44はこのインバータの反転出力によ
ってプライマリーTLB41が出力する絶対アドレスをオン
/オフする第1のセレクタ、45は上記インバータ43の非
反転出力によりプリフィクスレジスタ6からの実アドレ
スをオン/オフする第2のセレクタを示している。また
アルタネートTLB42側において、46は上述したプライマ
リーTLB41側に設けたインバータ43と同様のインバー
タ、47は第1のセレクタ44と同様の第3のセレクタを示
している。そして48はプリフィクスレジスタ6のアドレ
スとオペランドアドレスとを比較し一致したときに状態
「1」とこの反転信号を発生するアドレス確認手段とし
ての比較器、49はこの上記のインバータ46の非反転出力
と比較器48の反転出力とが両方状態「1」となったとき
オペランドアドレスの所定アドレスを出力する第4のセ
レクタ、50は上記の比較器48の非反転信号が状態「1」
となったとき所定のアドレスを全て0としたアドレス
(オール0)を出力する第5のセレクタを示している。
Next, the configuration of the address output device 40 that constitutes the address translation device according to the present embodiment will be described. In this example,
The address output device 40 has a structure as shown in FIG. In the figure, reference numeral 41 is a primary that outputs an absolute address corresponding to the upper address of the operand address.
TLB, 42 is a similar alternate TLB, 43 is an inverter that outputs the information of the REAL information holding device 14 described above and the information obtained by inverting this information, 44 is the absolute output that the primary TLB 41 outputs by the inverted output of this inverter Reference numeral 45 denotes a first selector for turning on / off, and 45 denotes a second selector for turning on / off the real address from the prefix register 6 by the non-inverted output of the inverter 43. On the alternate TLB 42 side, 46 indicates an inverter similar to the inverter 43 provided on the primary TLB 41 side described above, and 47 indicates a third selector similar to the first selector 44. Reference numeral 48 is a comparator as an address confirmation means for comparing the address of the prefix register 6 with the operand address and generating a state "1" and this inverted signal when they match, and 49 is a non-inverted output of the inverter 46. The fourth selector 50 outputs a predetermined address of the operand address when both the inverted output of the comparator 48 and the state "1" are present, and 50 is the state "1" when the non-inverted signal of the comparator 48 is in the state "1".
The fifth selector outputs an address (all 0s) in which the predetermined address is all 0s.

従って本実施例によればオペランドアドレスが論理ア
ドレスの時にはREAL情報保持装置14は状態「0」となり
インバータ43,48の反転出力は状態「1」となり、プラ
イマリーTLB41及びアルタネートTLB42から論理アドレス
を示すオペランドアドレスに対応した絶対アドレスが出
力される。そしてオペランドアドレスが実アドレスのと
きREAL情報保持装置14は状態「1」となり両TLBの出力
は第1及び第3のセレクタ44,47からは出力されず第2
のセレクタ45からはプリフィクスレジスタ6のアドレス
が出力される。また、この状態で、プリフィクスレジス
タ6の値とオペランドアドレスの値とが一致しないとき
にはオペランドアドレスの値がそのまま第4のセレクタ
49から出力され、さらにプリフィクスレジスタ6の値と
オペランドアドレスの値とが一致したときには第5のセ
レクタ50からオール0のアドレスが出力される。
Therefore, according to the present embodiment, when the operand address is a logical address, the REAL information holding device 14 becomes the state "0", the inverted outputs of the inverters 43 and 48 become the state "1", and the operands indicating the logical address from the primary TLB 41 and the alternate TLB 42. The absolute address corresponding to the address is output. When the operand address is the real address, the REAL information holding device 14 is in the state "1", and the outputs of both TLBs are not output from the first and third selectors 44 and 47 and the second.
The selector 45 outputs the address of the prefix register 6. Further, in this state, when the value of the prefix register 6 and the value of the operand address do not match, the value of the operand address is the same as that of the fourth selector.
When the value of the prefix register 6 matches the value of the operand address, the fifth selector 50 outputs the address of all 0s.

そして上記のTLBマッチ信号発生装置10とアドレス出
力装置との出力を総合すると本実施例に係るアドレス変
換装置によれば、オペランドアドレスの状態により、以
下の第2表に示すような値を出力することとなる。
When the outputs of the TLB match signal generator 10 and the address output device are combined, the address conversion device according to the present embodiment outputs the values shown in Table 2 below depending on the state of the operand address. It will be.

以上説明したように本実施例に係るアドレス変換装置
によれば、実アドレスが入力したときのプリフィクス変
換に際してはTLBを使用することなく変換をハードウエ
アで実行することができるから、TLBは実アドレスに関
するエントリーを格納する必要はなくなり論理アドレス
に関するエントリーを格納すれば足りるから、互いにエ
ントリーを追い出し合う頻度が少なくなり、TLBのヒッ
ト率が低下することはなくなる。その結果プッリフィク
ス変換を含むアドレス変換を高速に実行することができ
る。
As described above, according to the address translator according to the present embodiment, when the real address is input, the translation can be executed by hardware without using the TLB when performing the prefix translation. Since it is not necessary to store the entry for the logical address, it is sufficient to store the entry for the logical address, so that the frequency with which the entries are driven out from each other decreases, and the hit rate of the TLB does not decrease. As a result, the address conversion including the prefix conversion can be executed at high speed.

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

以上説明したように本発明によれば、アドレス変換装
置を実アドレスが入力したときのプリフィクス変換に際
してはTLBを使用することなく変換をハードウエアで実
行することができるから、TLBは実アドレスに関するエ
ントリーを格納する必要はなくなり論理アドレスに関す
るエントリーを格納すれば足りる。このためTLBにおい
て互いにエントリーを追い出し合う頻度が少なくなり、
TLBのヒット率を向上させることができ、プリフィクス
変換を含むアドレス変換を高速に実行することができる
という効果を奏する。
As described above, according to the present invention, since the translation can be executed by hardware without using the TLB in the prefix translation when the real address is input to the address translator, the TLB is an entry related to the real address. Need not be stored and it is sufficient to store the entry related to the logical address. For this reason, the number of times each entry is banished from the other in the TLB,
The TLB hit rate can be improved, and address conversion including prefix conversion can be performed at high speed.

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

第1図は本発明の原理図、第2図は実施例に係るアドレ
ス変換装置を構成するTLBマッチ信号発生装置を示すブ
ロック図、第3図は実施例に係るアドレス変換装置を構
成するアドレス出力装置を示すブロック図である。 1……アドレス変換装置 2……TLB 3……実アドレス確認手段 4……0確認手段 5……アドレス確認手段 6……プリフィクスレジスタ 7……制御手段
FIG. 1 is a principle diagram of the present invention, FIG. 2 is a block diagram showing a TLB match signal generator which constitutes an address translator according to an embodiment, and FIG. 3 is an address output which constitutes an address translator according to the embodiment. It is a block diagram which shows an apparatus. 1 ... Address converter 2 ... TLB 3 ... Actual address confirmation means 4 ... 0 confirmation means 5 ... Address confirmation means 6 ... Prefix register 7 ... Control means

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】オペランドアドレスである論理アドレス及
び実アドレスを主記憶装置の絶対アドレスへ変換するア
ドレス変換装置であってTLBを有するものにおいて、 オペランドアドレスが実アドレスであることを確認する
実アドレス確認手段と、 オペランドアドレスの所定の上位アドレスが全て0であ
るかを調べる0確認手段と、 上記オペランドアドレスの所定の上位アドレスがプリフ
ィクスレジスタに格納されているアドレスと一致してい
るかを確認するアドレス確認手段と、 上記実アドレス確認手段の出力によってオペランドアド
レスが論理アドレスであるときにはオペランドアドレス
をTLBに出力し、又オペランドアドレスが実アドレスで
ありかつ上記0確認手段で所定の上位アドレスが0であ
る時上位アドレスをプリフィクスレジスタの値に置換
え、さらにオペランドアドレスが実アドレスであり上記
アドレス確認手段によりオペランドアドレスの所定の上
位アドレスがプリフィクスレジスタの値と同一であると
きはその所定アドレスの全てのビットを0と置換え、さ
らにまたオペランドアドレスが実アドレスでありかつ上
記所定の上位アドレスが全て0ではなくかつ上記所定の
アドレスがプリフィクスレジスタの値と一致しないとき
にはオペランドアドレスをそのまま出力する制御手段 とを有することを特徴とするアドレス変換装置。
1. A real address confirmation device for confirming that an operand address is a real address in an address translation device for translating a logical address and a real address, which are operand addresses, into an absolute address of a main storage device and having a TLB. Means, 0 confirmation means for checking whether all predetermined upper addresses of the operand address are 0, and address confirmation for confirming whether the predetermined upper address of the operand address matches the address stored in the prefix register. Means and the output of the real address confirmation means outputs the operand address to the TLB when the operand address is a logical address, and when the operand address is the real address and the predetermined higher address is 0 by the 0 confirmation means. Upper address prefix register When the operand address is a real address and the predetermined higher address of the operand address is the same as the value of the prefix register by the address confirmation means, all the bits of the predetermined address are replaced with 0, and An address conversion, characterized in that the operand address is a real address, the predetermined upper address is not all 0, and the predetermined address does not match the value of the prefix register, the control means outputs the operand address as it is. apparatus.
JP63000634A 1988-01-07 1988-01-07 Address translation device Expired - Fee Related JP2504500B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63000634A JP2504500B2 (en) 1988-01-07 1988-01-07 Address translation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63000634A JP2504500B2 (en) 1988-01-07 1988-01-07 Address translation device

Publications (2)

Publication Number Publication Date
JPH01177144A JPH01177144A (en) 1989-07-13
JP2504500B2 true JP2504500B2 (en) 1996-06-05

Family

ID=11479157

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63000634A Expired - Fee Related JP2504500B2 (en) 1988-01-07 1988-01-07 Address translation device

Country Status (1)

Country Link
JP (1) JP2504500B2 (en)

Also Published As

Publication number Publication date
JPH01177144A (en) 1989-07-13

Similar Documents

Publication Publication Date Title
US4654777A (en) Segmented one and two level paging address translation system
US4769770A (en) Address conversion for a multiprocessor system having scalar and vector processors
JPH077363B2 (en) Access device and method
JPH0315211B2 (en)
JPH04320553A (en) Address converting mechanism
JPH05197626A (en) Register-index-table logic device for virtual memory system
JP2504500B2 (en) Address translation device
JPH04354039A (en) Address converter
US5471599A (en) Partitioning of virtual addressing memory
KR930007044B1 (en) Circuit for mapping address
JPH0553920A (en) Structural address generator
JP2507785B2 (en) Pageable entry invalidation device
JPH0581133A (en) Information processor
JPS5821352B2 (en) Buffer memory control method
KR0136511B1 (en) Processor of fitness-failure of tlb
JPS63245743A (en) Memory access system
JPS61141054A (en) Information processor
JP2509981B2 (en) Virtual storage controller
JPH0336647A (en) Cache buffering control system
JPS62197846A (en) Address converting device
JPS6349258B2 (en)
JPH04355847A (en) Store buffer controller
JPH0661067B2 (en) Information processing equipment
JPS6143744B2 (en)
JPH0550019B2 (en)

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees