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
JP3147355B2 - Address translator - Google Patents
[go: Go Back, main page]

JP3147355B2 - Address translator - Google Patents

Address translator

Info

Publication number
JP3147355B2
JP3147355B2 JP22205589A JP22205589A JP3147355B2 JP 3147355 B2 JP3147355 B2 JP 3147355B2 JP 22205589 A JP22205589 A JP 22205589A JP 22205589 A JP22205589 A JP 22205589A JP 3147355 B2 JP3147355 B2 JP 3147355B2
Authority
JP
Japan
Prior art keywords
area
growth direction
page
address
boundary
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
JP22205589A
Other languages
Japanese (ja)
Other versions
JPH0384644A (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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP22205589A priority Critical patent/JP3147355B2/en
Publication of JPH0384644A publication Critical patent/JPH0384644A/en
Application granted granted Critical
Publication of JP3147355B2 publication Critical patent/JP3147355B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置に関し、特にアドレス変換にお
ける有効領域の指定方式に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus, and more particularly to a method for specifying an effective area in address conversion.

〔従来の技術〕[Conventional technology]

従来この種の有効領域の指定方式は、正の成長方向の
みであり、有効領域の範囲指定はアドレスの低位から領
域の1/1,1/2,1/4,1/8など分割した範囲を指定すること
で、システムに応じてテーブル領域を小さくしアドレス
変換によるテーブル検索時間の短縮を図っていた。
Conventionally, this type of effective area specification method is only in the positive growth direction, and the effective area range specification is a range divided from the lower address, such as 1/1, 1/2, 1/4, 1/8 of the area , The table area is reduced according to the system, and the table search time is reduced by address conversion.

第5図は従来例における回路図を示す。 FIG. 5 shows a circuit diagram in a conventional example.

各領域に対して有効領域の範囲である1/1,1/2,1/4,1/
8を2ビットにおさめた範囲レジスタ(500)と、デコー
ダ(502)と、現在、アドレス変換している仮想アドレ
スを記憶する現在ページ・レジスタ(501)と、比較器
(503)と、セレクタ(504)から構成されている。現在
ページ・レジスタ(501)のアドレスが有効領域の範囲
内であるかそれぞれの比較器(503)により検出し、範
囲レジスタ(500)をデコーダ(502)によりデコードし
て、セレクタ(504)で有効領域の範囲を選択した結
果、有効領域信号AREAOK(505)を生成する。
1 / 1,1 / 2,1 / 4,1 / the effective area range for each area
A range register (500) in which 8 is stored in 2 bits, a decoder (502), a current page register (501) for storing a virtual address currently undergoing address translation, a comparator (503), and a selector (503). 504). Each comparator (503) detects whether the address of the current page register (501) is within the range of the valid area, decodes the range register (500) by the decoder (502), and is valid by the selector (504). As a result of selecting the range of the area, an effective area signal AREAOK (505) is generated.

第6図は従来例におけるメモリ・マップ図を示す。第
6図(a)は、範囲レジスタに1/2を指定した場合の有
効領域を示す。第6図(b)は、範囲レジスタに1/4を
指定した場合の有効領域を示す。
FIG. 6 shows a memory map diagram in a conventional example. FIG. 6A shows an effective area when 1/2 is specified in the range register. FIG. 6B shows an effective area when 1/4 is specified in the range register.

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

上述した従来の有効領域の指定方式では、正の成長方
向のみとなっているので、スタックなどのように負の方
向に成長するものについては指定した有効アドレスの上
限に合わせなければならないという欠点がある。
In the above-described conventional method for specifying an effective area, since only the positive growth direction is used, the disadvantage that the growth in the negative direction, such as a stack, must be adjusted to the upper limit of the specified effective address. is there.

〔課題を解決するための手段〕[Means for solving the problem]

本発明の有効領域の指定方式は、有効領域の正または
負の成長方向を記憶する成長方向ビットと、有効領域の
境界点を示すページ番号を記憶する境界ページ・レジス
タと、現在、アドレス変換している仮想アドレスを記憶
する現在ページ・レジスタと、減算をしたボロー情報の
みを出力する減算器を有している。
According to the present invention, a method of designating an effective area includes a growth direction bit for storing a positive or negative growth direction of the effective area, a boundary page register for storing a page number indicating a boundary point of the effective area, and a current address conversion. A current page register for storing the virtual address of the current page, and a subtractor for outputting only the borrow information obtained by the subtraction.

このように、上述した従来の有効アドレスの指定方式
に対し、本発明は有効領域に正と負の2種類の成長方向
をもち、有効領域の範囲をページ単位で指定している。
As described above, in contrast to the above-described conventional effective address specification method, the present invention has two types of growth directions, positive and negative, in the effective area, and specifies the range of the effective area in page units.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be described with reference to the drawings.

第1図は本発明の第1の実施例の回路図である。 FIG. 1 is a circuit diagram of a first embodiment of the present invention.

仮想アドレス(107)は、エリア番号,ページ番号,
オフセットから構成されている。
The virtual address (107) is an area number, a page number,
Consists of an offset.

有効エリアの正または負の成長方向を記憶する成長方
向ビット(100)と、各エリアに対してエリア内の定義
可能な範囲の境界点のページを記憶する境界ページ・レ
ジスタ(101)と、現在、アドレス変換している仮想ア
ドレスを記憶する現在ページ・レジスタ(102)と、減
算をしたボロー情報のみを出力する減算器(103)から
構成されている。成長方向ビットをボローとして、境界
ページ・レジスタ(101)の値から、現在ページ・レジ
スタ(102)の値をボロー付き減算を減算器(103)によ
り行なう。この結果、出力されるページ・ボロー(10
4)と、成長方向ビットの排他的論理和(105)により、
エリア有効信号AREAOK(16)を生成する。
A growth direction bit (100) that stores the positive or negative growth direction of the effective area, a boundary page register (101) that stores, for each area, a page of a definable range boundary point in the area; , A current page register (102) for storing a virtual address whose address is to be converted, and a subtractor (103) for outputting only borrow information obtained by subtraction. Using the growth direction bit as borrow, the value of the current page register (102) is subtracted from the value of the boundary page register (101) with borrow by the subtractor (103). As a result, the output page borrow (10
4) and the exclusive OR (105) of the growth direction bits gives
Generate the area valid signal AREAOK (16).

ここで、減算器(103)の演算結果は以下のようにな
る。
Here, the operation result of the subtractor (103) is as follows.

但し、減算器(103)において桁あふれが起こらない
だけの演算ビットを持つものとする。
However, it is assumed that the subtractor (103) has operation bits that do not cause overflow.

第2図は本発明の第1の実施例のエリアにおけるメモ
リ・マップ図である。
FIG. 2 is a memory map diagram in the area of the first embodiment of the present invention.

有効エリアの境界を指すページ(200)は、エリアの
成長方向によって意味が違い、正の成長方向の場合は有
効エリアの上限を意味し、負の成長方向の場合は、有効
エリアの下限を意味する。したがって、アクセスするア
ドレスの現在アクセス・ページが、 現在アクセス・ページ≦有効エリアの境界ページ(正
の成長方向) 現在アクセス・ページ≧有効エリアの境界ページ(負
の成長方向) のときに正しいアクセス(範囲内である)であると判断
する。このとき、エリア有効信号AREAOK(105)がアク
ティブである。
The page (200) indicating the boundary of the effective area has a different meaning depending on the growth direction of the area. A positive growth direction means the upper limit of the effective area, and a negative growth direction means the lower limit of the effective area. I do. Therefore, when the current access page of the address to be accessed is the current access page ≦ the boundary page of the effective area (positive growth direction), the current access page ≧ the boundary page of the effective area (negative growth direction), the correct access ( Is within the range). At this time, the area valid signal AREAOK (105) is active.

第3図は本発明の第2の実施例の回路図である。 FIG. 3 is a circuit diagram of a second embodiment of the present invention.

仮想アドレスは、セクション番号,エリア番号,ペー
ジ番号,オフセットから構成されている。
The virtual address is composed of a section number, an area number, a page number, and an offset.

第1の実施例との相違点は、セクションとエリアにそ
れぞれ成長方向ビットをもうけた。また、セクション,
エリアの順番にアドレス変換することから、1つの減算
器(307)により有効領域を検出している。
The difference from the first embodiment is that a growth direction bit is provided for each of the section and the area. Also, sections,
Since the addresses are converted in the order of the areas, the effective area is detected by one subtractor (307).

有効セクションの正または負の成長方向を記憶するセ
クション成長方向ビット(300)と、有効エリアの正ま
たは負の成長方向を記憶するエリア成長方向ビット(30
1)と、各セクションに対してセクション内の定義可能
な範囲の境界点のエリアを記憶する境界エリア・レジス
タ(302)と、各エリアに対してエリア内の定義可能な
範囲の境界点のページを記憶する境界ページ・レジスタ
(303)と、現在のアドレス変換している仮想アドレス
・レジスタ(306)を記憶する現在エリア・レジスタ(3
04)と、現在ページ・レジスタ(305)と、減算をした
ボロー情報のみを出力する減算器(307)から構成され
ている。
A section growth direction bit (300) for storing the positive or negative growth direction of the effective section, and an area growth direction bit (30) for storing the positive or negative growth direction of the effective area.
1), a boundary area register (302) that stores, for each section, an area of a definable range boundary point in the section, and a page of a definable range boundary point in the area for each area. And a current area register (3) storing a virtual address register (306) that is performing a current address translation.
04), a current page register (305), and a subtractor (307) that outputs only the subtracted borrow information.

現在、アドレス変換しているアドレスがエリアである
かページであるか識別するためのエリア信号AREA(30
8)によりマルチプレクサ(318)を用いて切り換える。
セクション成長方向ビットとエリア成長方向ビットをマ
ルチプレクサ(318)により選択し、成長方向信号(30
9)を生成する。境界エリア・レジスタ(302)と境界ペ
ージ・レジスタ(303)をマルチプレクサ(318)により
選択し、境界アドレス(310)を生成する。現在アドレ
ス・レジスタ(306)の現在エリア・レジスタ(306)と
現在ページ・レジスタ(305)をマルチプレクサ(318)
により選択し、現在アドレス(311)を生成する。成長
方向信号(309)をボローとして、境界アドレス(310)
から、現在アドレス(311)をボロー付き減算を減算器
(307)により行なう。この結果、出力されるエリア・
ボロー(312)と、成長方向信号(309)の排他的論理和
(314)により、セクション有効信号SECTOK(316)を生
成する。同様に、ページ・ボロー(313)と、成長方向
信号(309)の排他的論理和(315)により、エリア有効
信号AREAOK(317)を生成する。
An area signal AREA (30) for identifying whether the address being converted is an area or a page.
Switching is performed using the multiplexer (318) according to 8).
The section growth direction bit and the area growth direction bit are selected by the multiplexer (318), and the growth direction signal (30
9) Generate A boundary area register (302) and a boundary page register (303) are selected by a multiplexer (318) to generate a boundary address (310). Multiplexer (318) of current area register (306) and current page register (305) of current address register (306)
To generate the current address (311). Using the growth direction signal (309) as a borrow, the boundary address (310)
Then, subtraction with borrow from the current address (311) is performed by the subtractor (307). As a result, the output area
A section valid signal SECTOK (316) is generated by an exclusive OR (314) of the borrow (312) and the growth direction signal (309). Similarly, an area valid signal AREAOK (317) is generated by an exclusive OR (315) of the page borrow (313) and the growth direction signal (309).

ここで、減算器(307)の演算結果は以下のようにな
る。
Here, the operation result of the subtractor (307) is as follows.

○現在、アドレス変換しているアドレスがエリアである
場合(AREA=1) ○現在、アドレス変換しているアドレスがエリアである
場合(AREA=0) 但し、減算器(307)において桁あふれが起らないだけ
の演算ビットを持つものとする。
○ If the address being converted is an area (AREA = 1) ○ If the address currently being translated is an area (AREA = 0) However, it is assumed that the subtractor (307) has operation bits that do not cause overflow.

第4図は本発明の第2の実施例のセクションおよびエ
リアにおけるメモリ・マップ図である。
FIG. 4 is a memory map diagram of sections and areas according to the second embodiment of the present invention.

有効セクションの境界を指すエリア(400)は、セク
ションの成長方向によって意味が違い、正の成長方向の
場合は有効セクションの上限を意味し、負の成長方向の
場合は、有効セクションの下限を意味する。また、有効
エリアの境界を指すページ(402)も、エリアの成長方
向によって意味が違い、正の成長方向の場合は有効エリ
アの上限を意味し、負の成長方向の場合は、有効エリア
の下限を意味する。したがって、アクセスするアドレス
の現在アクセス・エリアが、 現在アクセス・エリア≦有効セクションの境界エリア
(正の成長方向) 現在アクセス・エリア≧有効セクションの境界エリア
(負の成長方向) かつ、アクセスするアドレスの現在アクセス・ページ
が、 現在アクセス・ページ≦有効エリアの境界ページ(正
の成長方向) 現在アクセス・ページ≧有効エリアの境界ページ(負
の成長方向) のときに正しいアクセス(範囲内である)であると判断
する。このとき、セクション有効信号SECTOK(316)
と、エリア有効信号AREAOK(317)が共にアクティブで
ある。この判断は、アドレス変換の順番、つまり、有効
セクション、有効エリアの順番に行なわれる。
The area (400) that points to the boundary of the effective section has a different meaning depending on the growth direction of the section. A positive growth direction means the upper limit of the effective section, and a negative growth direction means the lower limit of the effective section. I do. The meaning of the page (402) pointing to the boundary of the effective area also differs depending on the growth direction of the area. A positive growth direction means the upper limit of the effective area, and a negative growth direction means the lower limit of the effective area. Means Therefore, the current access area of the address to be accessed is: current access area ≦ boundary area of valid section (positive growth direction) current access area ≧ boundary area of valid section (negative growth direction) If the current access page is current access page ≤ effective area boundary page (positive growth direction) Current access page ≥ valid area boundary page (negative growth direction), and access is correct (within range) Judge that there is. At this time, the section valid signal SECTOK (316)
And the area valid signal AREAOK (317) are both active. This determination is made in the order of the address conversion, that is, in the order of the effective section and the effective area.

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

以上説明したように本発明は、有効領域に正と負の2
種類の成長方向を持ち、通常のデータや命令コードが存
在する領域では正の成長方向に設定し、スタック用には
負の成長方向に設定することにより、システムに応じて
テーブル領域を小さくしアドレス変換によるテーブル検
索時間の短縮を図り、またスタック用の領域等の有効利
用をすることができる効果がある。
As described above, according to the present invention, positive and negative 2
By setting the growth direction in the positive direction in the area where normal data and instruction codes exist, and setting the growth direction in the negative direction for the stack, the table area is reduced according to the system and the address is reduced. There is an effect that the table search time can be shortened by the conversion, and the area for the stack can be effectively used.

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

第1図は本発明の第1の実施例の回路図である。 第2図は本発明の第1の実施例のエリアにおけるメモリ
・マップ図である。 第3図は本発明の第2の実施例の回路図である。 第4図は本発明の第2の実施例のセクションおよびエリ
アにおけるメモリ・マップ図である。 第5図は従来例の回路図である。 第6図は従来例のメモリ・マップ図である。 100……成長方向ビット、101……有効境界ページ・レジ
スタ、102……現在ページ・レジスタ、103……減算器、
104……ページ・ボロー、105……排他的論理和、106…
…領域有効信号 AREAOK、107……仮想アドレス、200…
…有効エリアの境界を指すページ、201……有効エリ
ア、202……有効エリア、300……セクション成長方向ビ
ット、301……エリア成長方向ビット、302……境界エリ
ア・レジスタ、303……境界ページ・レジスタ、304……
現在エリア・レジスタ、305……現在ページ・レジス
タ、306……アドレス・レジスタ、307……減算器、308
……エリア信号、309……成長方向信号、310……境開ア
ドレス、311……現在アドレス、312……エリア・ボロ
ー、313……ページ・ボロー、314……排他的論理和、31
5……排他的論理和、316……セクション有効信号 SECT
OK、317……エリア有効信号 AREAOK、318……マルチプ
レクサ、400……有効セクションの境界を指すエリア、4
01……有効セクション、402……有効エリアの境界を指
すページ、403……有効エリア、500……範囲レジスタ、
501……現在ページ・レジスタ、502……デコーダ、503
……比較器、504……セレクタ、505……有効領域信号
AREAOK、600……有効領域の境界(最大領域の1/2)、60
1……有効領域、602……有効領域の境界(最大領域の1/
4)、603……有効領域。
FIG. 1 is a circuit diagram of a first embodiment of the present invention. FIG. 2 is a memory map diagram in the area of the first embodiment of the present invention. FIG. 3 is a circuit diagram of a second embodiment of the present invention. FIG. 4 is a memory map diagram of sections and areas according to the second embodiment of the present invention. FIG. 5 is a circuit diagram of a conventional example. FIG. 6 is a memory map diagram of a conventional example. 100 ... growth direction bit, 101 ... valid boundary page register, 102 ... current page register, 103 ... subtractor,
104… Page borrow, 105… Exclusive OR, 106…
… Area valid signal AREAOK, 107 …… Virtual address, 200…
... Page indicating boundary of effective area, 201 ... Effective area, 202 ... Effective area, 300 ... Section growth direction bit, 301 ... Area growth direction bit, 302 ... Boundary area register, 303 ... Boundary page・ Register, 304 ...
Current area register, 305: Current page register, 306: Address register, 307: Subtractor, 308
... area signal, 309 ... growth direction signal, 310 ... start address, 311 ... current address, 312 ... area borrow, 313 ... page borrow, 314 ... exclusive OR, 31
5 …… Exclusive OR, 316 …… Section valid signal SECT
OK, 317: Area valid signal AREAOK, 318: Multiplexer, 400: Area pointing to the boundary of valid section, 4
01 ... valid section, 402 ... page pointing to the boundary of valid area, 403 ... valid area, 500 ... range register,
501 ... current page register, 502 ... decoder, 503
…… Comparator, 504 …… Selector, 505 …… Effective area signal
AREAOK, 600: Boundary of effective area (1/2 of maximum area), 60
1 ... effective area, 602 ... boundary of effective area (1/1 of maximum area)
4), 603: Effective area.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 12/10,9/46,9/34 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 12 / 10,9 / 46,9 / 34

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ページ単位の仮想記憶機能により、仮想ア
ドレスを実アドレスに変換するアドレス変換装置におい
て、有効領域の正または負の成長方向を記憶する成長方
向ビットと、有効領域の境界点を示すページ番号を記憶
する境界ページ・レジスタと、現在のアドレス変換して
いる仮想アドレスを記憶する現在ページ・レジスタと、
減算をしたボロー情報のみを出力する減算器を有し、前
記成長方向ビットをボローとして、前記境界ページ・レ
ジスタの値から、前記現在ページ・レジスタの値をボロ
ー付き減算を前記減算器により行ない、その出力と前記
成長方向ビットの排他的論理和により、有効領域信号を
生成することを特徴とするアドレス変換装置。
1. An address translation device for translating a virtual address into a real address by a page-based virtual storage function, wherein a growth direction bit for storing a positive or negative growth direction of an effective area and a boundary point of the effective area are indicated. A boundary page register for storing a page number, a current page register for storing a virtual address for which the current address is being translated,
A subtractor that outputs only the borrow information obtained by the subtraction, wherein the growth direction bit is set as a borrow, and the value of the current page register is subtracted with the borrow from the value of the boundary page register by the subtractor. An address translation device, wherein an effective area signal is generated by an exclusive OR of the output and the growth direction bit.
JP22205589A 1989-08-28 1989-08-28 Address translator Expired - Fee Related JP3147355B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22205589A JP3147355B2 (en) 1989-08-28 1989-08-28 Address translator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22205589A JP3147355B2 (en) 1989-08-28 1989-08-28 Address translator

Publications (2)

Publication Number Publication Date
JPH0384644A JPH0384644A (en) 1991-04-10
JP3147355B2 true JP3147355B2 (en) 2001-03-19

Family

ID=16776394

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22205589A Expired - Fee Related JP3147355B2 (en) 1989-08-28 1989-08-28 Address translator

Country Status (1)

Country Link
JP (1) JP3147355B2 (en)

Also Published As

Publication number Publication date
JPH0384644A (en) 1991-04-10

Similar Documents

Publication Publication Date Title
KR880000299B1 (en) Cache device
JP3147355B2 (en) Address translator
WO2004099992A2 (en) System and method for performing address translation in a computer system
CA1328026C (en) Apparatus and method for enhanced virtual to real address translation for accessing a cache memory unit
JP2507785B2 (en) Pageable entry invalidation device
JPS61286947A (en) Information processing device
JPH0731310Y2 (en) Memory device
JP3109816B2 (en) Address generator
JPH035620B2 (en)
JPH04348442A (en) Address converter
JPS6218065B2 (en)
JPH0219495B2 (en)
JPH0567000A (en) Microprocessor
JPS6218064B2 (en)
JPS5975483A (en) Buffer storage control system
JPS59198586A (en) Address conversion buffer control system
JPH05314003A (en) Cache memory device
JPS635451A (en) Memory addressing system
JPS5897184A (en) Address translation method
JPS58196678A (en) Address converting system for virtual machine system
JPS59191649A (en) Program production system
JPS6175943A (en) Address converter
JPS60132254A (en) Data processor
JPH05324479A (en) Clear circuit for address translating mechanism
JPH04355847A (en) Store buffer controller

Legal Events

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