Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6331816B2 - - Google Patents
[go: Go Back, main page]

JPS6331816B2 - - Google Patents

Info

Publication number
JPS6331816B2
JPS6331816B2 JP55065386A JP6538680A JPS6331816B2 JP S6331816 B2 JPS6331816 B2 JP S6331816B2 JP 55065386 A JP55065386 A JP 55065386A JP 6538680 A JP6538680 A JP 6538680A JP S6331816 B2 JPS6331816 B2 JP S6331816B2
Authority
JP
Japan
Prior art keywords
address
register
logical
data
bit group
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
Application number
JP55065386A
Other languages
Japanese (ja)
Other versions
JPS56163571A (en
Inventor
Yoshio Ooshima
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP6538680A priority Critical patent/JPS56163571A/en
Publication of JPS56163571A publication Critical patent/JPS56163571A/en
Publication of JPS6331816B2 publication Critical patent/JPS6331816B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Description

【発明の詳細な説明】 本発明は論理アドレスを実アドレスに変換する
方式に関し、特に論理アドレスの一部ビツトを用
いてアドレス変換バツフアを参照して実アドレス
を得るアドレス変換方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a method for converting a logical address to a real address, and more particularly to an address conversion method for obtaining a real address by referring to an address translation buffer using some bits of a logical address.

第1図に従来の処理装置におけるアドレス変換
方式の一例を示し、説明する。
FIG. 1 shows an example of an address conversion method in a conventional processing device, and will be described.

メモリ参照要求が発生すると、アドレスバス1
2を通じて論理アドレスレジスタ2に論理アドレ
スがセツトされる。この論理アドレスの一部ビツ
ト群a(アドレス指定ビツト群)によつてアドレ
ス変換バツフア5が参照され、登録論理アドレス
データcと登録実アドレスデータdが登録論理ア
ドレスレジスタ6と登録実アドレスデータ7にそ
れぞれ読出される。
When a memory reference request occurs, address bus 1
2, a logical address is set in the logical address register 2. The address translation buffer 5 is referred to by a partial bit group a (address designation bit group) of this logical address, and the registered logical address data c and the registered real address data d are transferred to the registered logical address register 6 and the registered real address data 7. Each is read out.

アドレス比較回路8は、レジスタ6内の登録論
理アドレスデータとレジスタ2内の論理アドレス
のアドレス指定ビツト群aを除くビツト群b(論
理アドレスデータビツト群)とを比較する。
The address comparison circuit 8 compares the registered logical address data in the register 6 with the bit group b (logical address data bit group) of the logical address in the register 2 excluding the addressing bit group a.

一致がとれた場合は、レジスタ7に読出された
登録実アドレスデータが求める実アドレスであ
り、それがアドレスバス12を通じてメモリアド
レスレジスタ9にセツトされ、主記憶装置11の
参照が行なわれる。
If a match is found, the registered real address data read into the register 7 is the desired real address, and it is set in the memory address register 9 via the address bus 12, and the main memory 11 is referenced.

上記の比較で一致がとれない場合は、主記憶装
置11内のアドレス変換テーブルの先頭アドレス
が先頭アドレスレジスタ1からアドレス演算回路
3、実アドレスレジスタ4、登録実アドレスレジ
スタ7、アドレスバス12を介してメモリアドレ
スレジスタ9に転送され、アドレス変換テーブル
が参照される。この参照でメモリデータレジスタ
10へ読出されたデータはデータバス13を介し
てアドレス演算回路3に入力される。求めようと
する実アドレスがアドレス演算回路3で演算して
得られるまでは、メモリアドレスレジスタ9が順
次アドレス演算回路3の出力で更新され、アドレ
ス変換テーブルが順次読出される。求めていた実
アドレスが得られると、これがレジスタ4にセツ
トされる。レジスタ4内の実アドレスはレジスタ
7、アドレスバス12を介してメモリアドレスレ
ジスタ9に転送され、主記憶装置11に対するメ
モリ参照要求が実行される。これと並行して、レ
ジスタ4内に求められた実アドレスと論理アドレ
スレジスタ2の論理アドレスデータビツト群bが
対になつて、アドレス変換バツフア5内のアドレ
ス指定ビツト群aに登録される(アドレス指定ビ
ツト群aが登録論理アドレスデータc、実アドレ
スが登録実アドレスデータdになる)。
If there is no match in the above comparison, the first address of the address conversion table in the main memory 11 is transferred from the first address register 1 to the address calculation circuit 3, to the real address register 4, to the registered real address register 7, and to the address bus 12. The data is transferred to the memory address register 9, and the address conversion table is referenced. The data read to the memory data register 10 by this reference is input to the address calculation circuit 3 via the data bus 13. Until the desired real address is calculated and obtained by the address calculation circuit 3, the memory address register 9 is sequentially updated with the output of the address calculation circuit 3, and the address conversion table is sequentially read. When the desired real address is obtained, it is set in register 4. The real address in register 4 is transferred to memory address register 9 via register 7 and address bus 12, and a memory reference request to main memory 11 is executed. In parallel with this, the real address found in the register 4 and the logical address data bit group b of the logical address register 2 are paired and registered in the address designation bit group a in the address translation buffer 5 (address The specified bit group a becomes registered logical address data c, and the real address becomes registered real address data d).

ところで、論理アドレスの一部ビツト群aでア
ドレス変換バツフア5のアドレス指定を行なうた
め、次のような問題がある。すなわち、異なる論
理アドレス領域(ページ)でありながらアドレス
指定ビツト群aが同一になることがある。したが
つて、あるページの論理アドレス変換で参照され
るアドレス変換バツフアのあるアドレスに求める
実アドレスが登録されていたにもかゝわらず、そ
れより先行する別ページの論理アドレスの変換時
に当該アドレスの内容が書替えられてしまつてい
るということが起る。このような場合が頻発する
と、アドレス変換バツフア5の使用効率が下が
り、アドレス変換テーブルの参照によるアドレス
変換操作および変換バツフア5の書替えの回数が
増え、オーバヘツドが増加してしまい、システム
性能の低下を来す。具体的に述べると、従来で
は、論理アドレスをアドレス変換バツフア参照ア
ドレスとアドレス変換バツフアへの登録アドレス
との2つに分離する際、論理アドレスビツト群の
分離は、固定的に行われていた。
By the way, since the address of the address conversion buffer 5 is specified by part of the bit group a of the logical address, the following problem arises. That is, the addressing bit group a may be the same even though they are in different logical address areas (pages). Therefore, even though the desired real address is registered for an address in the address translation buffer that is referenced in the logical address translation of a certain page, when the logical address of another page that precedes it is translated, the corresponding address is It happens that the contents of the text have been rewritten. If such a case occurs frequently, the usage efficiency of the address translation buffer 5 will decrease, and the number of address translation operations and rewriting of the translation buffer 5 by referring to the address translation table will increase, resulting in an increase in overhead and a decrease in system performance. Come. Specifically, conventionally, when separating a logical address into two, an address translation buffer reference address and an address registered in the address translation buffer, the logical address bit groups were separated in a fixed manner.

例えば、アドレス変換バツフア参照アドレスと
して定義された論理アドレスビツトは、常に、参
照アドレスとして用いられていた。このためシス
テム構成によつては、アドレス変換バツフアの参
照、登録が一部のアドレス変換バツフアカラムに
集中してしまい、全体のアドレス変換バツフアの
使用効率を向上させることができなかつた。
For example, logical address bits defined as address translation buffer reference addresses have always been used as reference addresses. For this reason, depending on the system configuration, address translation buffer references and registrations may be concentrated in some address translation buffer columns, making it impossible to improve the efficiency of using the entire address translation buffer.

かかる問題を解決するために、アドレス変換バ
ツフアを多面化する方式も採られているが、ハー
ドウエア量の増加という問題がある。
In order to solve this problem, a method has been adopted in which the address translation buffer is multifaceted, but there is a problem of an increase in the amount of hardware.

他の方式として、論理アドレスからアドレス指
定ビツト群としていくつかを選択し、それらの排
他的論理和で決まるビツト値によつてアドレス変
換バツフアのアドレス指定を行なう方式も採られ
ている。しかしハードウエアの結線論理で定まる
アルゴリズムで処理されるため、プログラムの構
造によつてはアドレス変換オーバヘツドが逆に増
加することがあり、またマルチプログラムの実行
ではオーバヘツドを減少できない。
Another method is to select some address designating bits from the logical address and designate the address of the address translation buffer by the bit value determined by the exclusive OR of these bits. However, since the processing is performed using an algorithm determined by the hardware connection logic, the address translation overhead may increase depending on the structure of the program, and the overhead cannot be reduced when multiple programs are executed.

したがつて本発明の目的は、多岐のプログラム
に対してアドレス変換オーバヘツドの減少を達成
できるアドレス変換方式を提供することにある。
SUMMARY OF THE INVENTION Accordingly, it is an object of the present invention to provide an address translation method that can reduce address translation overhead for a wide variety of programs.

しかして本発明によるアドレス変換方式では、
一部のアドレス変換バツフアカラムに対する参照
登録要求が集中するのを防ぐため、アドレス変換
バツフアへの参照アドレスに用いる論理アドレス
の一部をアドレス選択レジスタに設定された選択
情報に応じて任意に選択可能とした。具体的に
は、論理アドレスのビツト群をアドレス指定ビツ
ト群と論理アドレスデータビツト群とに選択する
アドレス選択回路を設け、このアドレス選択回路
に選択情報を与えるアドレス選択レジスタを設
け、プログラム命令またはパネル操作によつてア
ドレス選択レジスタに任意の選択情報を設定する
ことにより、実行すべきプログラムに対してアド
レス変換オーバヘツドが可及的に小さくなるよう
にアドレス選択を最適化できるようにする。
However, in the address translation method according to the present invention,
In order to prevent reference registration requests from concentrating on some address translation buffer columns, some of the logical addresses used as reference addresses to address translation buffers can be arbitrarily selected according to the selection information set in the address selection register. did. Specifically, an address selection circuit that selects a logical address bit group into an addressing bit group and a logical address data bit group is provided, an address selection register is provided that provides selection information to this address selection circuit, and a program instruction or panel By setting arbitrary selection information in the address selection register through operation, address selection can be optimized so that address translation overhead is as small as possible for the program to be executed.

第2図は本発明によるアドレス変換方式の一実
施例を示すブロツク図であり、第1図と同等部分
には同一符号を付してある。
FIG. 2 is a block diagram showing an embodiment of the address conversion system according to the present invention, and parts equivalent to those in FIG. 1 are given the same reference numerals.

15はアドレス選択回路であり、アドレス選択
レジスタ14から与えられる選択情報にしたがつ
て、論理アドレスレジスタ2内の論理アドレスの
ビツト群をアドレス指定ビツト群aと論理アドレ
スデータビツト群bとに振り分けて出力する。ア
ドレス選択レジスタ14に設定される選択情報の
形式の一例を第3図に示す。この例では、選択情
報は論理アドレスと同一ビツト数のデータであ
り、アドレスレジスタ14のそれぞれのビツト
は、論理アドレスレジスタ2のそれぞれのビツト
に対応している。
15 is an address selection circuit which, according to the selection information given from the address selection register 14, distributes the logical address bit groups in the logical address register 2 into an address designation bit group a and a logical address data bit group b. Output. An example of the format of selection information set in the address selection register 14 is shown in FIG. In this example, the selection information is data having the same number of bits as the logical address, and each bit of the address register 14 corresponds to each bit of the logical address register 2.

アドレス選択回路15は、アドレス選択レジス
タ14の中でビツト値が“1”のビツト群に対応
する論理アドレスレジスタ2の中のビツト群をア
ドレス指定ビツト群aとして出力する。
The address selection circuit 15 outputs the bit group in the logical address register 2 corresponding to the bit group having a bit value of "1" in the address selection register 14 as an address designation bit group a.

さらに、アドレス選択レジスタ14の中でビツ
ト値が“0”のビツト群に対応する論理アドレス
レジスタ2の中のビツト群を論理アドレスビツト
群bとして出力する。
Further, a group of bits in the logical address register 2 corresponding to a group of bits whose bit value is "0" in the address selection register 14 is output as a logical address bit group b.

このようにして、アドレス選択回路15は、ア
ドレス選択レジスタ14に設定されている選択情
報に従つて、論理アドレスレジスタ2のビツト群
をアドレス指定ビツト群a、論理アドレスビツト
群bとに振り分けて出力する。
In this way, the address selection circuit 15 divides the bit groups in the logical address register 2 into an address designation bit group a and a logical address bit group b, according to the selection information set in the address selection register 14, and outputs them. do.

上記アドレス選択レジスタ14を設定する命令
形式の一例を第4図に示す。この命令は、レジス
タ設定命令であることを示すコードOP、アドレ
ス選択レジスタ14を指定するコードI2および設
定データ部D1から成る。この命令を処理装置で
実行することにより、命令のデータ部D1の選択
情報がデータバス13を介してアドレス選択レジ
スタ14へ設定される。
An example of an instruction format for setting the address selection register 14 is shown in FIG. This instruction consists of a code OP indicating that it is a register setting instruction, a code I 2 specifying the address selection register 14, and a setting data section D 1 . By executing this instruction in the processing device, the selection information of the data portion D1 of the instruction is set in the address selection register 14 via the data bus 13.

アドレス選択レジスタ14の設定は、処理装置
の電源投入時の初期設定、プログラムの切り替え
時に前述命令を用いて行なう場合、パネル操作に
よつて行なう場合等があるが、いずれにしてもア
ドレス選択バツフア5の旧登録内容はその時点で
無効となる。このように、アドレス変換バツフア
5はアドレス指定ビツトaによりアドレス付けさ
れるため、アドレス変換レジスタ14の内容が書
き変つた場合には、常に無効化される。
The address selection register 14 may be set by the initial setting when the processing device is powered on, by using the above-mentioned command when switching programs, or by panel operation, but in any case, the address selection buffer 5 The old registration details will become invalid at that point. In this way, since the address translation buffer 5 is addressed by the address designation bit a, if the contents of the address translation register 14 are changed, it is always invalidated.

さて、第2図に戻つてアドレス変換動作につい
て説明する。
Now, returning to FIG. 2, the address translation operation will be explained.

メモリ参照要求が発生すると、アドレスバス1
2を介して論理アドレスレジスタ2に論理アドレ
スが転送される。この論理アドレスのビツト群は
アドレス選択回路15によつてアドレス指定ビツ
ト群aと論理アドレスデータビツト群bに分けら
れる。アドレス指定ビツト群aによつてアドレス
変換バツフア5が参照され、登録論理アドレスデ
ータcと登録実アドレスデータdがレジスタ6と
7にそれぞれ読出される。レジスタ6の内容と論
理アドレスデータビツト群bとがアドレス比較回
路8で比較される。
When a memory reference request occurs, address bus 1
The logical address is transferred to the logical address register 2 via the logical address register 2. This logical address bit group is divided by the address selection circuit 15 into an address designation bit group a and a logical address data bit group b. Address conversion buffer 5 is referenced by address designation bit group a, and registered logical address data c and registered real address data d are read into registers 6 and 7, respectively. The contents of register 6 and logical address data bit group b are compared by address comparison circuit 8.

この比較で一致がとれた場合は、目的の実アド
レスがレジスタ7に得られていることになり、こ
の実アドレスがアドレスバス12を介してメモリ
アドレスレジスタ9に転送され、主記憶装置11
に対するメモリ参照が行なわれる。
If a match is found in this comparison, it means that the target real address has been obtained in the register 7, and this real address is transferred to the memory address register 9 via the address bus 12, and then transferred to the main memory 11.
A memory reference is made to .

比較で一致がとれない場合は、レジスタ7の内
容は目的とする実アドレスでないので、前述した
と同様に主記憶装置11内のアドレス変換テーブ
ルを参照して実アドレスが求められ、アドレス演
算回路3、レジスタ4,7、アドレスバス12を
介してメモリアドレスレジスタ9に転送され、メ
モリ参照が行なわれる。これと並行し、上記の求
められた実アドレスは、アドレス選択回路15か
ら出力される論理アドレスデータビツト群bと対
にされて、アドレス変換バツフア5のアドレス指
定ビツト群aで指定されるアドレスに登録され
る。
If a match cannot be found in the comparison, the contents of the register 7 are not the intended real address, and the real address is determined by referring to the address conversion table in the main memory 11 in the same way as described above, and the address calculation circuit 3 , registers 4 and 7, and address bus 12 to memory address register 9, and memory reference is performed. In parallel with this, the above-determined real address is paired with the logical address data bit group b output from the address selection circuit 15 and converted to the address specified by the address designation bit group a of the address conversion buffer 5. be registered.

本発明は以上に述べた如くであり、実行すべき
プログラムの構造に応じてアドレス選択レジスタ
に設定する選択情報をプログラム命令またはパネ
ル操作によつて任意に設定することができ、また
マルチプログラムの実行にあたつてはプログラム
の切り替り時にプログラム命令でアドレス選択レ
ジスタに任意の選択情報を設定し直すことがで
き、このため多様なプログラムないしマルチプロ
グラムの実行時におけるアドレス変換バツフアの
使用効率を最大限に高め、アドレス変換オーバヘ
ツドを可及的に減らすことができ、システム性能
を大幅に向上可能である。
The present invention is as described above, and selection information to be set in the address selection register can be arbitrarily set according to the structure of the program to be executed by a program command or panel operation, and multi-program execution can be performed. When switching between programs, arbitrary selection information can be set in the address selection register using a program instruction, which maximizes the efficiency of address conversion buffer usage when executing various programs or multi-programs. address translation overhead can be reduced as much as possible, and system performance can be greatly improved.

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

第1図は従来のアドレス変換方式の一例を示す
ブロツク図、第2図は本発明によるアドレス変換
方式の一実施例を示すブロツク図、第3図は第2
図中のアドレス選択レジスタに設定される選択情
報の一例を示す図、第4図は第2図中のアドレス
選択レジスタの設定命令の一例を示す図である。 1…先頭アドレスレジスタ、2…論理アドレス
レジスタ、3…アドレス演算回路、4…実アドレ
スレジスタ、5…アドレス変換バツフア、6…登
録論理アドレスレジスタ、7…登録実アドレスレ
ジスタ、8…アドレス比較回路、9…メモリアド
レスレジスタ、10…メモリデータレジスタ、1
1…主記憶装置、12…アドレスバス、13…デ
ータバス、14…アドレス選択レジスタ、15…
アドレス選択回路、a…アドレス指定ビツト群、
b…論理アドレスデータビツト群。
FIG. 1 is a block diagram showing an example of a conventional address translation method, FIG. 2 is a block diagram showing an embodiment of an address translation method according to the present invention, and FIG. 3 is a block diagram showing an example of a conventional address translation method.
FIG. 4 is a diagram showing an example of selection information set in the address selection register in FIG. 2, and FIG. 4 is a diagram showing an example of a setting instruction for the address selection register in FIG. 1... Start address register, 2... Logical address register, 3... Address calculation circuit, 4... Real address register, 5... Address conversion buffer, 6... Registered logical address register, 7... Registered real address register, 8... Address comparison circuit, 9...Memory address register, 10...Memory data register, 1
1... Main memory device, 12... Address bus, 13... Data bus, 14... Address selection register, 15...
Address selection circuit, a... address designation bit group,
b...Logical address data bit group.

Claims (1)

【特許請求の範囲】 1 論理アドレスと実アドレスとを対応させて登
録するアドレス変換バツフアと、アドレス指定ビ
ツト群と論理アドレスデータビツト群とから構成
された論理アドレスビツト群がセツトされる論理
アドレスレジスタとを有し、該アドレス指定ビツ
ト群でアドレス変換バツフアを参照し、登録論理
アドレスデータと登録実アドレスデータとを読出
し、該登録論理アドレスデータと該論理アドレス
データビツト群とを比較し、一致した場合は該登
録実アドレスデータを該論理アドレスの実アドレ
スデータとして出力し、一致しない場合は、アド
レス変換テーブルを参照して実アドレスデータを
求め出力するとともに、該求めた実アドレスデー
タを該論理アドレスデータビツト群と対にして該
アドレス変換バツフア内の該アドレス指定ビツト
群で指定されるアドレスに書込むアドレス変換方
式において、 任意の選択情報が設定されるアドレス選択レジ
スタと、該選択情報に応じて、前記論理アドレス
レジスタにセツトされた論理アドレスビツト群を
アドレス指定ビツト群と論理アドレスデータビツ
ト群とに分割するアドレス選択回路とを有するこ
とを特徴とするアドレス変換方式。
[Scope of Claims] 1. An address conversion buffer in which logical addresses and real addresses are registered in correspondence, and a logical address register in which a logical address bit group consisting of an address designation bit group and a logical address data bit group is set. refers to the address conversion buffer using the address designation bit group, reads the registered logical address data and the registered real address data, compares the registered logical address data and the logical address data bit group, and determines whether they match. If so, the registered real address data is output as the real address data of the logical address, and if they do not match, the real address data is determined and output by referring to the address conversion table, and the obtained real address data is output as the real address data of the logical address. In an address translation method that writes to an address specified by the address designation bit group in the address translation buffer in pair with a data bit group, an address selection register in which arbitrary selection information is set, and an address selection register in which arbitrary selection information is set; An address conversion method comprising: an address selection circuit that divides a group of logical address bits set in the logical address register into a group of address designation bits and a group of logical address data bits.
JP6538680A 1980-05-19 1980-05-19 Address converting system Granted JPS56163571A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6538680A JPS56163571A (en) 1980-05-19 1980-05-19 Address converting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6538680A JPS56163571A (en) 1980-05-19 1980-05-19 Address converting system

Publications (2)

Publication Number Publication Date
JPS56163571A JPS56163571A (en) 1981-12-16
JPS6331816B2 true JPS6331816B2 (en) 1988-06-27

Family

ID=13285486

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6538680A Granted JPS56163571A (en) 1980-05-19 1980-05-19 Address converting system

Country Status (1)

Country Link
JP (1) JPS56163571A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59132482A (en) * 1983-01-20 1984-07-30 Nec Corp Information processor

Also Published As

Publication number Publication date
JPS56163571A (en) 1981-12-16

Similar Documents

Publication Publication Date Title
US4792897A (en) Address translation unit for translation of virtual address to real address using translation tables of multi-level hierarchical structure
JPS6331816B2 (en)
US4791559A (en) High-speed instruction control for vector processors with remapping
US7536498B2 (en) Method and apparatus for address mapping
JPS601655B2 (en) Data prefetch method
JPH0731310Y2 (en) Memory device
JPS5853075A (en) Information processor provided with high speed separation buffer
JPH0131218B2 (en)
JPS628245A (en) Virtual memory system
JPS6341102B2 (en)
JPH11184797A (en) Dma controller and method therefor and recording medium for recording control program
JPH02101552A (en) Address conversion buffer processing system
JPS59132483A (en) Address converting device
JPS6217261B2 (en)
JPS5918787B2 (en) TLB partition method
JPS60241135A (en) Address producing system
JPS5919287A (en) Input and output processing system by memory access instruction
JPH04157542A (en) address translation device
JPH0573424A (en) High speed address converting system
JPS608971A (en) Central processing unit
JPH03168853A (en) Input/output processor
JPH01307850A (en) Storage key control system
JPS61204752A (en) Address converting system
JPS62208147A (en) Expansion address converter
JPS6146854B2 (en)