JPH01260552A - Virtual memory controller - Google Patents

Virtual memory controller

Info

Publication number
JPH01260552A
JPH01260552A JP63088234A JP8823488A JPH01260552A JP H01260552 A JPH01260552 A JP H01260552A JP 63088234 A JP63088234 A JP 63088234A JP 8823488 A JP8823488 A JP 8823488A JP H01260552 A JPH01260552 A JP H01260552A
Authority
JP
Japan
Prior art keywords
address
virtual
page address
physical
page
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
JP63088234A
Other languages
Japanese (ja)
Inventor
Tooru Jiyoushi
定司 亨
Mitsunori Nakada
中田 充則
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP63088234A priority Critical patent/JPH01260552A/en
Publication of JPH01260552A publication Critical patent/JPH01260552A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To accelerate an address conversion processing by using a physical page address obtained by applying the address conversion processing just before in case of storing a new logic address in a logic address register. CONSTITUTION:A just before address register 27, a second comparison means 28, and a second physical address register 29 are attached. And a just before logic page address is stored in the just before address register 27, and when a new logic page address coincides with a just before logic page address, a just before physical page address is set as it is as a part of an output physical address. In such a way, reference and a comparison operation can be reduced, and the address conversion processing can be accelerated.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、電子計算機の仮想記憶制御装置に関する。[Detailed description of the invention] (Industrial application field) The present invention relates to a virtual storage control device for an electronic computer.

(従来の技術) 電子計算機において、限りのある主記憶装置の実記憶空
間にとられれることなくプログラム等を作成するために
、仮想的な記憶空間を設定し、この仮想的な記憶空間上
でプログラムを作成する手法が用いられる。これは、一
般に仮想記憶方式と呼ばれるもので、主記憶空間と仮想
的な記憶空間との間を所定のアドレス変換を行なって対
応付け、あたかも実記憶空間が広がったかのように電子
計算機を使用することができる。
(Prior Art) In electronic computers, in order to create programs without taking up the limited real memory space of the main memory, a virtual memory space is set up, and programs are written on this virtual memory space. A method of creating a program is used. This is generally referred to as a virtual memory method, and allows a computer to be used as if the real memory space had been expanded by performing a predetermined address conversion between the main memory space and the virtual memory space to create a correspondence between them. I can do it.

さて、このような仮想記憶方式を採用する電子計算機に
おいて、そのアドレス変換には次のような仮想記憶制御
装置か用いられる。
Now, in an electronic computer that employs such a virtual memory system, the following virtual memory control device is used for address conversion.

第2図に、従来の仮想記憶制御装置の構成図を示す。FIG. 2 shows a configuration diagram of a conventional virtual storage control device.

図の装置は、論理アドレスレジスタ1と、マツピングメ
モリ2と、テーブルメモリ3と、仮想アドレスレジスタ
4と、比較手段5と、物理アドレスレジスタ6とがら構
成されている。
The device shown in the figure is composed of a logical address register 1, a mapping memory 2, a table memory 3, a virtual address register 4, a comparing means 5, and a physical address register 6.

この装置は、論理アドレスレジスタ1に変換すべき論理
アドレスを受入れ、最終的に物理アドレスレジスタ6に
アドレス変換処理後の物理アドレスを格納するよう動作
する回路である。
This device is a circuit that operates to accept a logical address to be translated into a logical address register 1 and finally store a physical address after address translation processing into a physical address register 6.

論理アドレスレジスタ1は、論理ページアドレス7とペ
ージ内アドレス8とがら構成された論理アドレスを格納
するレジスタである。さらに論理ページアドレス7は、
マツプアドレス9と、1次アドレス10と、テーブルア
ドレス11とがら構成されている。
The logical address register 1 is a register that stores a logical address composed of a logical page address 7 and an intra-page address 8. Furthermore, the logical page address 7 is
It consists of a map address 9, a primary address 10, and a table address 11.

このマツプアドレス9は、マツピングメモリの参照位置
を示したアドレスである。テーブルアドレス11は、テ
ーブルメモリ3の参照位置を示したアドレスである。1
次アドレス10は、論理ページアドレス7のマツプアド
レス9及びテーブルアドレス11を外した部分のアドレ
スである。
This map address 9 is an address indicating a reference position in the mapping memory. The table address 11 is an address indicating a reference position in the table memory 3. 1
The next address 10 is the address of the logical page address 7 with map address 9 and table address 11 removed.

マツピングメモリ2は、論理アドレスを仮想空間上に拡
張するためマツピングアドレス16を格納するメモリで
ある。
The mapping memory 2 is a memory that stores mapping addresses 16 for extending logical addresses onto virtual space.

テーブルメモリ3(トランスレーション・ルックアサイ
ド・バッファ)は、仮想ページアドレス13と物理ペー
ジアドレス14の対応関係を格納するメモリである。こ
のテーブルメモリ3は、所定の位置を読み出せば仮想ペ
ージアドレス13とこれに対応する物理ページアドレス
14を読み出せるようになっている。
The table memory 3 (translation lookaside buffer) is a memory that stores the correspondence between the virtual page address 13 and the physical page address 14. This table memory 3 is configured such that a virtual page address 13 and a corresponding physical page address 14 can be read by reading a predetermined position.

仮想アドレスレジスタ4は、仮想ページアドレス15と
ページ内アドレス8とがら構成された仮想アドレスを格
納するレジスタである。さらに仮想ページアドレス15
は、マツピングアドレス16と2次アドレス17とがら
構成されている。
The virtual address register 4 is a register that stores a virtual address composed of a virtual page address 15 and an intra-page address 8. Furthermore, virtual page address 15
is composed of a mapping address 16 and a secondary address 17.

2次アドレス17は、論理アドレスレジスタ1の1次ア
ドレス10とテーブルアドレス11により構成されてい
る。
The secondary address 17 is composed of the primary address 10 of the logical address register 1 and the table address 11.

比較手段5は、テーブルメモリ3の仮想ページアドレス
13と、仮想アドレスレジスタ4の仮想ページアドレス
15とを比較する回路である。
The comparison means 5 is a circuit that compares the virtual page address 13 of the table memory 3 and the virtual page address 15 of the virtual address register 4.

物理アドレスレジスタ6は、物理ページアドレス14と
ページ内アドレス8とがら構成される出刃物理アドレス
を格納するレジスタである。
The physical address register 6 is a register that stores a physical address composed of a physical page address 14 and an intra-page address 8.

以上の構成の装置は、図示しないプロセッサ等により・
制御されて動作する。
The device with the above configuration is operated by a processor (not shown), etc.
operate in a controlled manner.

ここで第2図に示した装置の具体的な動作を、第3図を
用いて説明する。
Here, the specific operation of the apparatus shown in FIG. 2 will be explained using FIG. 3.

第3図は、第2図に示した従来の仮想記憶制御装置の動
作を示すフローチャートである。
FIG. 3 is a flowchart showing the operation of the conventional virtual storage control device shown in FIG.

マツピングメモリ2及びテーブルメモリ3には、予め先
に説明したマツピングアドレス16及び仮想ページアド
レス13と物理ページアドレス14とを格納しておく。
The mapping address 16, virtual page address 13, and physical page address 14 described above are stored in the mapping memory 2 and table memory 3 in advance.

まず、装置の論理アドレスレジスタ1にア]・レス変換
処理をされるべき論理アドレスか格納される(ステップ
S ]、 )。次に、この論理アドレスレジスタlの論
理ページアドレス7からマツプアドレス9を抽出する(
ステップS2)。ステップS2で抽出したマツプアドレ
ス9に基づいて、マツピングメモリ2中の該当するマツ
ピングアドレス16を参照する(ステップS3)。ステ
ップS3において参照したマツピングアドレス16を、
仮想アドレスレジスタ4に転送しくステップS4)、仮
想アドレスレジスタ4に、論理ページアドレス7の1次
アドレス10とテーブルアドレス11とがら構成される
2次アドレス17を転送する(ステップS5)。そして
、仮想アドレスレジスタ4の仮想ページアドレス15を
比較手段5に入力する(ステップS6)。
First, a logical address to be subjected to address conversion processing is stored in the logical address register 1 of the device (step S). Next, map address 9 is extracted from logical page address 7 of this logical address register l (
Step S2). Based on the map address 9 extracted in step S2, the corresponding mapping address 16 in the mapping memory 2 is referred to (step S3). The mapping address 16 referenced in step S3 is
Transfer to the virtual address register 4 (Step S4), and transfer the secondary address 17 composed of the primary address 10 and table address 11 of the logical page address 7 to the virtual address register 4 (Step S5). Then, the virtual page address 15 of the virtual address register 4 is input to the comparing means 5 (step S6).

一方、これらステップ82〜S6と平行して、論理アド
レスレジスタlの論理ページアドレス7からチーフルア
ドレス11を抽出しくステップS7)、このテーブルア
ドレス11に基づいて、テーブルメモリ3中の該当する
仮想ページアドレス13を参照する(ステップS8)。
On the other hand, in parallel with these steps 82 to S6, the full address 11 is extracted from the logical page address 7 of the logical address register l (step S7), and based on this table address 11, the corresponding virtual page address in the table memory 3 is extracted. 13 (step S8).

そして、ステップS8において参照した仮想アドレス1
3を、比較手段5に人力する(ステップS9)。
Then, the virtual address 1 referenced in step S8
3 is manually input to the comparison means 5 (step S9).

比較手段5は、上記ステップS6と89の結果、仮想ア
ドレス変換処理4から入力した仮想ページアドレス15
と、テーブルメモリ3から入力した仮想ページアドレス
13とを比較する(ステップ510)。この比較により
一致という結果が出たならば、物理アドレスレジスタ6
に、テーブルメモリ3から物理ページアドレス14を、
仮想アドレスレジスタ4からページ内アドレス8を転送
して出刃物理アドレスを作成する(ステップ511)。
As a result of steps S6 and 89, the comparison means 5 receives the virtual page address 15 input from the virtual address conversion process 4.
and the virtual page address 13 input from the table memory 3 (step 510). If this comparison results in a match, the physical address register 6
, physical page address 14 from table memory 3,
The intra-page address 8 is transferred from the virtual address register 4 to create a physical address (step 511).

これに対して、ステップS、1.0において不一致とい
う結果が出たならば、プロセッサは図示しないアドレス
変換テーブルを参照して出刃物理71〜レスを割り出す
ための別処理を実行する(ステップ512)。
On the other hand, if the result of step S1.0 is a mismatch, the processor refers to an address conversion table (not shown) and executes another process to determine the answer to Deba Physical 71 (step 512). .

以上の流れにより、論理アドレスを出刃物理アドレスに
変換する。
According to the above flow, a logical address is converted to a physical address.

このステップ81〜Sllまでの処理は、論理アドレス
レジスタlに新たな論理アドレスか格納されるたびに順
次繰返される。
The processing from steps 81 to Sll is sequentially repeated every time a new logical address is stored in the logical address register l.

(発明が解決しようとする課題) ところで、以上第2図及び第3図において説明したよう
に、従来の装置では、論理アドレスから出刃物理アドレ
スへとアドレス変換する場合、新たな論理アドレスが論
理アドレスレジスタ1に格納されるたびに、マツピング
メモリ2やテーブルメモリ3を参照しなければならない
。また、仮想アドレスレジスタ4の仮想ページアドレス
15とテーブルメモリ3の仮想ページアドレス13との
比較もその都度行なわなければならなかった。
(Problem to be Solved by the Invention) By the way, as explained above with reference to FIGS. 2 and 3, in conventional devices, when an address is converted from a logical address to a physical address, the new logical address is Every time data is stored in register 1, mapping memory 2 and table memory 3 must be referenced. Furthermore, the virtual page address 15 of the virtual address register 4 and the virtual page address 13 of the table memory 3 had to be compared each time.

このように、マツピングメモリ2やテーブルメモリ3の
参照や、仮想ページアドレス13と仮想ページアドレス
15との比較を、論理アドレスレジスタ1の内容が変わ
る都度行なうことは、多くの処理時間を要し、計算機の
負担も増大し、アドレス変換処理の高速化の妨げになっ
ていた。
In this way, it takes a lot of processing time to refer to mapping memory 2 and table memory 3 and to compare virtual page address 13 and virtual page address 15 every time the contents of logical address register 1 change. , the burden on the computer also increased, which hindered speeding up of address translation processing.

本発明は以上の点に着目してなされたもので、参照や比
較動作を減少させてアドレス変換処理の高速化を図った
仮想記憶制御装置を提供することを目的とするものであ
る。
The present invention has been made in view of the above points, and it is an object of the present invention to provide a virtual storage control device that speeds up address translation processing by reducing reference and comparison operations.

(課題を解決するための手段) 本発明の仮想記憶制御装置は、論理ページアドレスとそ
のページ内アドレスとを格納する論理アドレスレジスタ
と、仮想空間上での論理ページの配置を示すマツピング
アドレスを格納するマツピングメモリと、仮想ページア
ドレスと物理ページアドレスとの対応関係を照合するテ
ーブルを格納するテーブルメモリと、前記論理ページア
ドレスを用いて前記マツピングメモリを参照して得られ
た仮想ページアドレスと前記ページ内アドレスとを一時
格納する仮想アドレスレジスタと、前記仮想アドレスレ
ジスタ中の前記仮想ページアドレスと前記テーブルメモ
リ中の対応する仮想ペーシアドレスとを比較する第1の
比較手段と、この第1の比較手段の比較結果に基づいて
前記物理ページアドレスと前記ページ内アドレスとを受
入れ格納する第1の物理アドレスレジスタとを有し、前
記論理アドレスレジスタの内容に基づいて得られた前記
仮想アドレスレジスタの仮想ページアドレスと、前記テ
ーブルメモリ中の対応する仮想ページアドレスとが一致
した場合、前記テーブルメモリ中の物理ページアドレス
と、前記仮想アドレスレジスタ中のページ内アドレスと
を前記物理アドレスレジスタに格納して出刃物理アドレ
スを得るアドレス変換処理を順次繰返すものにおいて、
直前のアドレス変換処理に使用した論理ページアドレス
と、直前のアドレス変換処理に使用した物理ページアド
レスと、これらのアドレスの有効性を表示する有効フラ
グとを格納する直前アドレスレジスタと、前記有効フラ
グか有効な場合のみ、新たな処理を実行する場合の新た
な論理ページアドレスと前記直前の論理ページアドレス
とを比較する第2の比較手段と、この第2の比較手段の
比較結果に基づいて前記直前の物理ページアドレスと新
たなページ内アドレスとを格納する第2の物理アドレス
レジスタを設け、前記新たな処理に使用する論理ページ
アドレスと、前記直前アドレスレジスタに格納した直前
の論理ページアドレスとを比較して両者が一致した場合
に、前記第2の物理アドレスレジスタの内容に基づいて
前記出刃物理アドレスを得るものである。
(Means for Solving the Problems) A virtual memory control device of the present invention includes a logical address register that stores a logical page address and an address within the page, and a mapping address that indicates the arrangement of the logical page in a virtual space. a mapping memory to store, a table memory to store a table for collating the correspondence between virtual page addresses and physical page addresses, and a virtual page address obtained by referring to the mapping memory using the logical page address. and a virtual address register for temporarily storing the in-page address; a first comparing means for comparing the virtual page address in the virtual address register and a corresponding virtual page address in the table memory; a first physical address register that receives and stores the physical page address and the intra-page address based on a comparison result of the comparing means, and the virtual address register obtained based on the contents of the logical address register. If the virtual page address of the page matches the corresponding virtual page address in the table memory, the physical page address in the table memory and the intra-page address in the virtual address register are stored in the physical address register. In the case where the address conversion process to obtain the physical address of Deba is repeated sequentially,
A previous address register that stores the logical page address used in the previous address translation process, the physical page address used in the previous address translation process, and a valid flag that indicates the validity of these addresses; a second comparison means that compares a new logical page address when executing a new process and the immediately previous logical page address only when the validity is valid; A second physical address register is provided to store a physical page address and a new in-page address, and the logical page address used for the new processing is compared with the immediately previous logical page address stored in the immediately preceding address register. When the two match, the physical address of the blade is obtained based on the contents of the second physical address register.

(作用) アドレス変換されるべき論理アドレスのうち、論理ペー
ジアドレスは、そのページか変わらない限り不変である
。即ち、同一ページ内のアドレスか論理アドレスに順次
格納されアドレス変換要求された場合、最初のアドレス
変換により論理ページアドレスに対応する物理ページア
ドレスが得られれば、その後は、その物理ページアドレ
スを使用し、ページ内アドレスだけを入れ替えれば直ち
にアドレス変換を行なうことができる。
(Operation) Among the logical addresses to be converted, the logical page address remains unchanged unless the page itself changes. In other words, if addresses in the same page or logical addresses are sequentially stored and an address translation request is made, if a physical page address corresponding to the logical page address is obtained through the first address translation, then that physical page address will be used. , address translation can be performed immediately by replacing only the addresses within the page.

この場合、マツピングメモリもテーブルメモリも参照不
要である。
In this case, there is no need to refer to either the mapping memory or the table memory.

本発明の装置はそのために直前アドレスレジスタに直前
論理ページアドレスを格納し、新たな論理ページアドレ
スと直前論理ページアドレスとが一致した場合、直前物
理ページアドレスをその゛まま出力□物理アドレスの一
部としている。
For this purpose, the device of the present invention stores the previous logical page address in the previous address register, and when the new logical page address and the previous logical page address match, outputs the previous physical page address as is □ Part of the physical address It is said that

なお、直前の処理が無効の場合、例えば装置の立ち上げ
時やテーブルアドレスの無効化時さらにマツピングメモ
リの内容の書換え時などは、その利用が不可能なので、
その判断のために有効フラグを設定しぞいる。
Note that if the previous process is invalid, such as when starting up the device, invalidating table addresses, or rewriting the contents of mapping memory, it cannot be used.
A valid flag is set for this determination.

(実施例) 第1図は、本発明の仮想記憶制御装置の構成図である。(Example) FIG. 1 is a configuration diagram of a virtual storage control device of the present invention.

図d装置は、論理アドレスレジスタ21と、マツピング
メ干り22と、テーブルメ干り23と、仮想アドレスレ
ジスタ24と、第1の比較手段25と、第1の物理アド
レス変換処理26と、直前アドレス変換処理27と、第
2の比較手段28と、第2の物理アドレスレジスタ29
とがら構成されている。
The device shown in FIG. Conversion processing 27, second comparison means 28, and second physical address register 29
It is made up of spikes.

論理アi・レスレジスタ21は、論理ページアドレス3
1とページ内アドレス32とがら構成された論理アドレ
スを格納するレジスタである。さらに論理ページアドレ
ノ31は、マツプアドレス33と、1次アドレス34と
、テーブルアドレス35とがら構成されている。
The logical address register 21 has the logical page address 3.
This is a register that stores a logical address composed of 1 and an intra-page address 32. Furthermore, the logical page address 31 is composed of a map address 33, a primary address 34, and a table address 35.

マツピングメモリ22は、マツピングアドレス36を格
納するメモリである。
The mapping memory 22 is a memory that stores mapping addresses 36.

テーブルメモリ23は、仮想ページアドレス37と物理
ページアドレス38との対応関係を格納するメモリであ
る。
The table memory 23 is a memory that stores the correspondence between the virtual page address 37 and the physical page address 38.

仮想アドレスレジスタ24は、仮想ページアドレス39
とページ内アドレス32とがら構成された仮想アドレス
を格納するレジスタである。
The virtual address register 24 stores the virtual page address 39
This is a register that stores a virtual address composed of the address 32 and the intra-page address 32.

さらに仮想ページアドレス3つは、マツピングアドレス
36と2次アドレス40とがら構成されている。
Furthermore, the three virtual page addresses are composed of a mapping address 36 and a secondary address 40.

第1の比較手段25は、テーブルメモリ23の仮想ペー
ジアドレス37と、仮想アドレスレジスタ24の仮想ペ
ージアドレス39とを比較する回路である。
The first comparing means 25 is a circuit that compares the virtual page address 37 of the table memory 23 and the virtual page address 39 of the virtual address register 24.

第1の物理アドレスレジスタ26は、物理ページアドレ
ス38とページ内アドレス32とがら構成される出刃物
理アドレスを格納するレジスタである。
The first physical address register 26 is a register that stores a physical address composed of a physical page address 38 and an intra-page address 32.

以上の構成は、第2図に示したものと同様である。The above configuration is similar to that shown in FIG.

本発明においては、直前アドレスレジスタ27と、第2
の比較手段28と、第2の物理アドレスレジスタ2つと
が新たに加えられている。
In the present invention, the immediately preceding address register 27 and the second
A comparing means 28 and two second physical address registers are newly added.

直前アドレスレジスタ27は、有効フラグ41と直前論
理ページアドレス42と、直前物理アドレス43とを格
納するレジスタである。
The immediately preceding address register 27 is a register that stores the valid flag 41, the immediately preceding logical page address 42, and the immediately preceding physical address 43.

ここで直前論理ページアドレス42及び直前物理ページ
アドレス43は、論理アドレスから出刃物理アドレスへ
の変換か繰返された場合、直前(例えば1回前)の論理
ページアドレス31及び物理ページアドレス38のこと
をいう。即ち、論理アドレスから出刃物理アドレスへの
アドレス変換処理か1回終了するたびに、直前アドレス
レジスタ27に、論理ページアドレス31が直前論理ペ
ージア[・レス42として、更に、物理ページアドレス
38か直前物理ページアドレス43として格納される。
Here, the immediately preceding logical page address 42 and the immediately preceding physical page address 43 refer to the immediately preceding logical page address 31 and physical page address 38 when the conversion from a logical address to a physical address is repeated. say. That is, each time the address conversion process from a logical address to a physical address is completed, the logical page address 31 is stored in the previous address register 27 as the previous logical page address 42, and the physical page address 38 or the previous physical address is stored as the previous logical page address 42. It is stored as a page address 43.

有効フラグ41は、直前アドレスレジスタ27に格納さ
れた直前論理ページアドレス42及び直前物理ページア
ドレス43を用いてアドレス変換処理を行なえる有効状
態と、アドレス変換処置を行なうことのできない無効状
態とを示すフラグである。
The valid flag 41 indicates a valid state in which address translation processing can be performed using the immediately preceding logical page address 42 and immediately preceding physical page address 43 stored in the immediately preceding address register 27, and an invalid state in which address translation processing cannot be performed. It's a flag.

第2の比較手段28は、論理アドレスレジスタ21の論
理ページアドレス31と、直前論理ページレジスタ27
の直前論理ページアドレス42とを比較する回路である
The second comparison means 28 compares the logical page address 31 of the logical address register 21 and the immediately preceding logical page register 27.
This circuit compares the logical page address 42 with the immediately preceding logical page address 42.

第2の物理アドレスレジスタ29は、直前アドレスレジ
スタ27の直前物理ページアドレス43とページ内アド
レス32とがら構成される、いわゆる出刃物理アドレス
を格納するレジスタである。
The second physical address register 29 is a register that stores a so-called physical address consisting of the immediately preceding physical page address 43 and the in-page address 32 of the immediately preceding address register 27.

ここで直前論理ページアドレス42及び直前物理ページ
アドレス43とは、論理アドレスを出刃物理アドレスに
変換する処理か繰返し行なわれた場合の、直前(例えば
1回前)の論理ページアドレス31及び物理ページアド
レス38のことをいう。
Here, the immediately preceding logical page address 42 and the immediately preceding physical page address 43 refer to the immediately preceding logical page address 31 and physical page address (for example, the previous one) when the process of converting a logical address to a physical address is repeatedly performed. It refers to 38.

以上の構成の装置は、図示しないプロセッサ等により制
御されて動作する。
The device having the above configuration operates under the control of a processor (not shown) or the like.

ここで第1図に示した装置の動作を、第4図を用いて説
明する。
The operation of the apparatus shown in FIG. 1 will now be explained using FIG. 4.

第4図は、本発明の仮想記憶制御装置の動作を示すフロ
ーチャートである。
FIG. 4 is a flowchart showing the operation of the virtual storage control device of the present invention.

マツピングメモリ22及びテーブルメモリ23には、先
に説明した要領でマツピングアドレス36及び仮想ペー
ジアドレス37と物理ページアドレス38か格納されて
いる。
The mapping memory 22 and table memory 23 store a mapping address 36, a virtual page address 37, and a physical page address 38 in the manner described above.

ここで、まず装置の論理アドレスレジスタ21に論理ア
ドレスが格納される(ステップ521)。次に、直前ア
ドレスレジスタ27の有効フラグ41を確認する(ステ
ップ522)。初めてアドレス変換処理を実行するよう
な場合、この有効フラグ41が無効状態を示しているこ
とは先に述へた。よって、有効フラグ41が無効状態(
例えば0′″)?示していた場合、第3図において説明
した従来と同様の処理を行なう(ステップ323〜53
2)。そしてステップS32において、第1′の物理ア
ドレスレジスタ26を用いて物理アドレスを作成した後
、直前レジスタ27に論理ページアドレス31と物理ペ
ージアドレス38を転送する(ステップ537)。一方
、ステップS22において有効フラグ41が有効状態(
例えば1゛′)を示していた場合、即ち、直前アドレス
レジスタ27が有効であった場合には、ステップ333
及びステップS34を平行に実行する。ステップS33
ては、直前アドレスレジスタ27に格納された直前論理
ページアI〜レス42を第2の比較手段28に人力し、
ステップS35に移る。ステップS34ては、論理アド
レスレジスタ21の論理ページアドレス31を−2の比
較手段28に人力し、ステップS3’5に移る。
Here, first, a logical address is stored in the logical address register 21 of the device (step 521). Next, the valid flag 41 of the immediately preceding address register 27 is checked (step 522). As mentioned above, when the address conversion process is executed for the first time, the valid flag 41 indicates an invalid state. Therefore, the valid flag 41 is in the invalid state (
For example, if it indicates 0'''), the same processing as the conventional one explained in FIG. 3 is performed (steps 323 to 53).
2). Then, in step S32, a physical address is created using the 1'-th physical address register 26, and then the logical page address 31 and physical page address 38 are transferred to the immediately preceding register 27 (step 537). On the other hand, in step S22, the validity flag 41 is in the valid state (
For example, if the previous address register 27 is valid, step 333
and step S34 are executed in parallel. Step S33
Then, input the immediately preceding logical page address 42 stored in the immediately preceding address register 27 to the second comparison means 28,
The process moves to step S35. In step S34, the logical page address 31 of the logical address register 21 is input to the -2 comparison means 28, and the process moves to step S3'5.

そして、第2の比較手段28により直前輪理ページアF
レス42と論理ページアドレス31とを比較する(ステ
ップ535)。不一致の場合、即ち新たな論理ページア
ドレス31は、直前論理ページアドレス42と相違し直
前物理ページアドレス43を利用できない場合には、ス
テップ゛ S22の無効判定部分に移る。一致の場合、
即ち、直前物理ページアドレス43を利用できる場合に
は、ステップS36に移る。
Then, the second comparison means 28 determines that the immediately preceding ring processing pager F
The address 42 is compared with the logical page address 31 (step 535). If they do not match, that is, if the new logical page address 31 is different from the previous logical page address 42 and the previous physical page address 43 cannot be used, the process moves to the invalidity determination portion of step S22. In case of a match,
That is, if the previous physical page address 43 can be used, the process moves to step S36.

ステップS36では、第2の物理アドレスレジスタ29
に、直前物理ページアドレス43及びページ内アドレス
32を転送し、出刃物理アドレスを作成した後、その内
容を第1の物理アドレスレジスタに転送してステップS
37に移る。ステップ837では、直前アドレスレジス
タ27に論理ページアドレス31と物理ページアドレス
38を転送する(ステップ537)。
In step S36, the second physical address register 29
After transferring the immediately preceding physical page address 43 and intra-page address 32 to create a Deba physical address, the contents are transferred to the first physical address register and the process proceeds to step S.
Move on to 37. In step 837, the logical page address 31 and physical page address 38 are transferred to the immediately preceding address register 27 (step 537).

以上の流れにより、論理アドレスを出刃物理アドレスに
変換する。
According to the above flow, a logical address is converted to a physical address.

本発明は、以上の実施例に限定されない。The present invention is not limited to the above embodiments.

上記実施例では、出刃物理アドレスを第1の物理アドレ
スレジスタ26からのみ得るようにし、第2の物理アド
レスレジスタに格納されたものは、−旦第1の物理アド
レスレジスタに転送するように説明したか、図示しない
選択回路において第2の物理アドレスレジスタ29が有
効の場合には、直接第2の物理アドレスレジスタ29か
ら出刃物理アドレスを得るようにしてもよい。
In the above embodiment, the Deba physical address is obtained only from the first physical address register 26, and what is stored in the second physical address register is transferred to the first physical address register once -. Alternatively, if the second physical address register 29 is valid in a selection circuit (not shown), the physical address may be obtained directly from the second physical address register 29.

また、上記各回路ブロックは、同一の機能を有する回路
ブロックに適宜置き換えても差し支えなく、フローチャ
ートの処理手順も必要に応じて適宜変更しても差し支え
ない。
Further, each of the circuit blocks described above may be replaced with a circuit block having the same function as appropriate, and the processing procedure of the flowchart may also be changed as necessary.

(発明の効果) 以上の構成の本発明の仮想記憶制御装置は、新たな論理
ア1ヘレスか論理アドレスレジスタ21に格納された場
合に、直前にアドレス変換処理して得られた物理ページ
アドレスを利用することができるので、マツピングメモ
リ22やテーブルメモリ23を参照する場合を減少させ
ることができる。これによって、その処理か簡略化され
、アドレス変換処理をより高速化させることができる。
(Effects of the Invention) The virtual memory control device of the present invention configured as described above converts the physical page address obtained by the previous address conversion process when a new logical address is stored in the logical address register 21. Therefore, the number of times the mapping memory 22 and table memory 23 are referred to can be reduced. This simplifies the process and makes it possible to speed up the address translation process.

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

第1図は本発明の仮想記憶制御装置の構成図、第2図は
従来の仮想記憶制御装置の構成図、第3図は従来の仮想
記憶制御装置の動作を示すフローチャート、第4図は本
発明の仮想記憶制御装置の動作を示すフローチャートで
ある。 21・・・論理アドレスレジスタ、 22・・・マツピングメモリ、 23・・・テーブルメモリ、 24・・・仮想アドレスレジスタ、 25・・・第1の比較手段、   ヲ 26・・・第1の物理アドレスレジスタ、27・・・直
前アドレスレジスタ、 28・・・第2の比較手段、 29・・・第2の物理アドレスレジスタ。 特許出願人 沖電気工業株式会社
FIG. 1 is a block diagram of the virtual memory control device of the present invention, FIG. 2 is a block diagram of a conventional virtual memory control device, FIG. 3 is a flowchart showing the operation of the conventional virtual memory control device, and FIG. 4 is a block diagram of the present invention. 3 is a flowchart showing the operation of the virtual storage control device of the invention. 21... Logical address register, 22... Mapping memory, 23... Table memory, 24... Virtual address register, 25... First comparing means, 26... First physical Address register, 27... Immediate address register, 28... Second comparing means, 29... Second physical address register. Patent applicant Oki Electric Industry Co., Ltd.

Claims (1)

【特許請求の範囲】 論理ページアドレスとそのページ内アドレスとを格納す
る論理アドレスレジスタと、 仮想空間上での論理ページの配置を示すマツピングアド
レスを格納するマッピングメモリと、仮想ページアドレ
スと物理ページアドレスとの対応関係を照合するテーブ
ルを格納するテーブルメモリと、 前記論理ページアドレスを用いて前記マツピングメモリ
を参照して得られた仮想ページアドレスと前記ページ内
アドレスとを一時格納する仮想アドレスレジスタと、 前記仮想アドレスレジスタ中の前記仮想ページアドレス
と前記テーブルメモリ中の対応する仮想ページアドレス
とを比較する第1の比較手段と、この第1の比較手段の
比較結果に基づいて前記物理ページアドレスと前記ペー
ジ内アドレスとを受入れ格納する第1の物理アドレスレ
ジスタとを有し、 前記論理アドレスレジスタの内容に基づいて得られた前
記仮想アドレスレジスタの仮想ページアドレスと、前記
テーブルメモリ中の対応する仮想ページアドレスとが一
致した場合、 前記テーブルメモリ中の物理ページアドレスと、前記仮
想アドレスレジスタ中のページ内アドレスとを前記物理
アドレスレジスタに格納して出刃物理アドレスを得るア
ドレス変換処理を順次繰返すものにおいて、 直前のアドレス変換処理に使用した論理ページアドレス
と、直前のアドレス変換処理に使用した物理ページアド
レスと、これらのアドレスの有効性を表示する有効フラ
グとを格納する直前アドレスレジスタと、 前記有効フラグが有効な場合のみ、新たな処理を実行す
る場合の新たな論理ページアドレスと前記直前の論理ペ
ージアドレスとを比較する第2の比較手段と、 この第2の比較手段の比較結果に基づいて前記直前の物
理ページアドレスと新たなページ内アドレスとを格納す
る第2の物理アドレスレジスタを設け、 前記新たな処理に使用する論理ページアドレスと、前記
直前アドレスレジスタに格納した直前の論理ページアド
レスとを比較して両者が一致した場合に、 前記第2の物理アドレスレジスタの内容に基づいて前記
出力物理アドレスを得ることを特徴をする仮想記憶制御
装置。
[Claims] A logical address register that stores a logical page address and an address within the page; a mapping memory that stores a mapping address that indicates the arrangement of the logical page in virtual space; and a mapping memory that stores the virtual page address and the physical page. a table memory that stores a table for checking correspondence with addresses; and a virtual address register that temporarily stores a virtual page address obtained by referring to the mapping memory using the logical page address and the intra-page address. and a first comparing means for comparing the virtual page address in the virtual address register with a corresponding virtual page address in the table memory, and a first comparing means for comparing the virtual page address in the virtual address register with a corresponding virtual page address in the table memory, and determining the physical page address based on the comparison result of the first comparing means. and a first physical address register that receives and stores the in-page address and the virtual page address of the virtual address register obtained based on the contents of the logical address register and the corresponding in-page address in the table memory. If the virtual page address matches, the physical page address in the table memory and the in-page address in the virtual address register are stored in the physical address register to obtain the Deba physical address, and an address conversion process is sequentially repeated. a previous address register for storing a logical page address used in the previous address translation process, a physical page address used in the previous address translation process, and a valid flag indicating the validity of these addresses; a second comparing means for comparing a new logical page address when executing a new process with the immediately previous logical page address only when the flag is valid; and based on the comparison result of the second comparing means. A second physical address register is provided for storing the immediately previous physical page address and a new intra-page address, and the logical page address used for the new processing and the immediately previous logical page address stored in the immediately preceding address register are stored. A virtual storage control device characterized in that, when the two match, the output physical address is obtained based on the contents of the second physical address register.
JP63088234A 1988-04-12 1988-04-12 Virtual memory controller Pending JPH01260552A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63088234A JPH01260552A (en) 1988-04-12 1988-04-12 Virtual memory controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63088234A JPH01260552A (en) 1988-04-12 1988-04-12 Virtual memory controller

Publications (1)

Publication Number Publication Date
JPH01260552A true JPH01260552A (en) 1989-10-17

Family

ID=13937176

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63088234A Pending JPH01260552A (en) 1988-04-12 1988-04-12 Virtual memory controller

Country Status (1)

Country Link
JP (1) JPH01260552A (en)

Similar Documents

Publication Publication Date Title
US3878513A (en) Data processing method and apparatus using occupancy indications to reserve storage space for a stack
US4835733A (en) Programmable access memory
JPH03108042A (en) Multiple virtual space address system and computer system
CA1182579A (en) Bus sourcing and shifter control of a central processing unit
JPH01260552A (en) Virtual memory controller
JP3132566B2 (en) Instruction precedence controller
JPH0552539B2 (en)
JPH0679296B2 (en) Multiple virtual address space access method and data processing device
JPS594783B2 (en) Kasoukiokuhoshikinojiyouhoushiyorisouchi
JPS5894041A (en) Debug backup device for high-class language
JPH03141444A (en) Data processor
JP2629359B2 (en) Logic simulator
JP2586155B2 (en) Logic simulator
JPS62126447A (en) Address conversion method
JPH04266140A (en) Address conversion buffer device
JP3331597B2 (en) Control device
JPH0766032B2 (en) Test system
JPH01142957A (en) Address converter
JPS59191649A (en) Program production system
JPH05298184A (en) Cache memory testing method
JPH056294A (en) Dump sampling system
JPH07234816A (en) Data processor
JPH05324479A (en) Clear circuit for address translating mechanism
JPH0217554A (en) Cache memory test system
JPH0224718A (en) Information processor