JPS6265151A - Memory control system - Google Patents

Memory control system

Info

Publication number
JPS6265151A
JPS6265151A JP60204693A JP20469385A JPS6265151A JP S6265151 A JPS6265151 A JP S6265151A JP 60204693 A JP60204693 A JP 60204693A JP 20469385 A JP20469385 A JP 20469385A JP S6265151 A JPS6265151 A JP S6265151A
Authority
JP
Japan
Prior art keywords
memory management
physical address
address
output
management mechanism
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
JP60204693A
Other languages
Japanese (ja)
Inventor
Isao Sasaki
功 佐々木
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP60204693A priority Critical patent/JPS6265151A/en
Publication of JPS6265151A publication Critical patent/JPS6265151A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To attain an instantaneous access to a main memory device in case the same user gives accesses to the same page by providing a function into an address converting mechanism ATB to deliver the control information to a present logic address. CONSTITUTION:A CPU 1 delivers a logic address to an ATB 20 serving as the 1st memory control mechanism. The ATB 20 converts the supplied logic address into a physical address and at the same time delivers continuously the present control information 306 in case the same user gives accesses to the same page. While a TLB 30 serving as the 2nd memory control mechanism delivers the next control information in case the CPU 1 is not executing the same page through the same user. Thus an instantaneous access is possible to a main memory device 2 in case the same user gives accesses to the same page.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は論理アドレスから物理アドレスに変換すること
によってページング方式による仮想記憶を実現できる高
機能なマイクロコンピュータシステムにおけるアクセス
保護機能を含むメモリ管理方式に係り、特に、アドレス
変換機構内部にページアクセス判定機構の一部を含める
ことによって主記憶装置のアクセスを高速に出来るメモ
リ管理方式に関する。
[Detailed Description of the Invention] [Technical Field of the Invention] The present invention relates to a memory management system including an access protection function in a high-performance microcomputer system that can realize virtual memory using a paging method by converting logical addresses to physical addresses. In particular, the present invention relates to a memory management system that can speed up access to a main memory by including a part of a page access determination mechanism within an address translation mechanism.

〔従 来 技 術〕[Traditional technique]

集積回路技術の進歩に伴い、パーソナルコンピュータ或
いはマイクロコンピュータ等が高機能化され、32ビツ
トマイクロプロセツサが実用化されるようになってきた
。32ビツトマイクロプロセツサにとって種々の周辺L
SIの重要性が高まり。
With advances in integrated circuit technology, personal computers, microcomputers, etc. have become more sophisticated, and 32-bit microprocessors have come into practical use. Various peripherals for 32-bit microprocessors
The importance of SI is increasing.

中でもメモリ管理ユニフ−) (MMU)は特に重要で
ある。MMUは仮想記憶とメモリのアクセス保護機能等
のメモリ管理を実行するユニットである。
Among them, the memory management unit (MMU) is particularly important. The MMU is a unit that executes memory management such as virtual memory and memory access protection functions.

仮想記憶システムにおいては、動的アドレス変換機構に
よってギガ単位の仮想空間を利用できる。
In a virtual storage system, gigabytes of virtual space can be used by a dynamic address translation mechanism.

仮想記憶の概念はすでに大型計算機において実現されて
いるもので、メモリ空間をページ単位、或いはページの
集まりであるセグメント単位に分割し、セグメント番号
9ページ番号、ページ内変位からなる論理アドレスを実
際の主記憶装置をアクセスする物理アドレスに動的に変
換し、変換されたアドレスが主記憶上にあるかどうかの
チェックを行いながら大規模なメモリ空間を実現するも
のである。即ち、大型計算機の動的アドレス変換機構は
、CPU内のセグメント起点レジスタの内容と論理アド
レス内のセグメント番号を加えたアドレスからセグメン
トテーブルをひき、この内容であるページテーブル先頭
アドレスと前記論理アドレス内のページ番号を加えてで
きるアドレスでページテーブルをひき、求めるページの
最初のアドレスを求める。求められたページの最初のア
ドレスに論理アドレス内のページ内変位を加えて出来る
実アドレスが実際の記憶装置のアドレスとなる。
The concept of virtual memory has already been realized in large-scale computers, and the memory space is divided into pages or segments, which are collections of pages. It dynamically converts the main memory into a physical address to be accessed and checks whether the converted address is on the main memory to realize a large memory space. That is, the dynamic address conversion mechanism of a large computer draws a segment table from an address that is the sum of the contents of the segment start register in the CPU and the segment number in the logical address, and calculates the contents of the page table start address and the logical address. Add the page number to the page table to find the first address of the desired page. The real address obtained by adding the intra-page displacement within the logical address to the first address of the obtained page becomes the actual address of the storage device.

アクセスされたアドレスのページが主記憶装置内にある
場合は、前記実アドレスで主記憶装置をアクセスするが
、実行しようとするページがもしない場合には、主記憶
装置とディスク装置との間でページのスワンビッグを行
うようにしている。
If the page at the accessed address is in the main memory, the main memory is accessed using the real address, but if the page to be executed does not exist, the page is transferred between the main memory and the disk device. I'm trying to do a swan big page.

この場合、スワフプアウトするべきページはLRUアル
ゴリズム(リースト・リーセント・ユース)を用いて最
適量も使用されていないページの中からスワフプアウト
するものが選択されるようにしている。更に5大型計算
機においては、マルチプロセスの機能を持っており、複
数のユーザから1個の主記憶装置を共通にアクセスして
も時分割的に制御して、1人のユーザはただ一つの絶対
アドレス空間をアクセスするようにしている。複数のユ
ーザ領域が主記憶装置を共有する場合、それぞれの領域
は、お互いに異なった実アドレス空間を持つように実ア
ドレス空間から絶対アドレス空間に変換するプリフィッ
クス変換機構を有している。
In this case, the page to be swapped out is selected from pages that have not been used in an optimal amount by using an LRU algorithm (least recent use). Furthermore, five large-scale computers have a multi-process function, and even if multiple users commonly access one main memory, they can be controlled in a time-sharing manner, allowing one user to access only one absolute I am trying to access the address space. When a plurality of user areas share a main storage device, each area has a prefix conversion mechanism that converts the real address space into an absolute address space so that each area has a different real address space.

32ビツトマイクロコンピユータシステムにおいてもこ
のような大型計算機で利用されている仮想記憶機能とア
クセス保護機能を持たせるために。
In order to provide a 32-bit microcomputer system with the virtual memory function and access protection function used in such large computers.

MMUによるメモリ管理は、少なくともページングのア
ドレス変換機構とメモリの保護機能を持つように構成さ
れている。保護機能としては1例えば、ページ毎にその
ページがどのようにアクセスできるかを示す属性を変換
テーブルに持たせ、テーブルの各エントリには、2ビツ
トの保護ビットがあり、アクセスの形態を定義している
。例えば。
Memory management by the MMU is configured to have at least a paging address translation mechanism and a memory protection function. As a protection function, 1. For example, each page has an attribute that indicates how that page can be accessed in the conversion table, and each entry in the table has 2 protection bits that define the form of access. ing. for example.

この2ビツトの保護ビットによってスーパーバイザーモ
ードとユーザモードそれぞれに対して主記憶装置のアク
セスが可能であるかどうかのチェックを実現している。
These two protection bits are used to check whether the main storage device can be accessed in supervisor mode and user mode.

第2図(a)にアドレス変換機構とプリフィックス変換
及びページアクセス制御を含む従来のメモリ管理方式の
システム構成図を示す。中央演算装置CPU1は論理ア
ドレスバス10に少なくともページ番号、ページ内変位
を含む論理アドレスを出力する。又データバス11が主
記憶装置2にデータを書き込む場合には、書き込みデー
タを出力し9主記憶装置2からデータを読出す場合には
読み出しデータを入力するため、リードライト用の制御
信号と共にCPUIに接続されている。また、複数のユ
ーザで主記憶装置2を共有してアクセスできるためにプ
リフィックス変換機構を実行するために、各ユーザの実
行するプロセスの管理情報が。
FIG. 2(a) shows a system configuration diagram of a conventional memory management method including an address translation mechanism, prefix translation, and page access control. The central processing unit CPU1 outputs a logical address including at least a page number and an intra-page displacement to the logical address bus 10. In addition, when the data bus 11 writes data to the main memory device 2, it outputs the write data, and when it reads data from the main memory device 9, it inputs the read data. It is connected to the. In addition, in order to execute the prefix conversion mechanism so that the main storage device 2 can be shared and accessed by multiple users, management information for processes executed by each user is required.

(Pi工ば、3ビツトのCPUアクセスレベル信号トし
て信号線12にCPUIから出力される。CPU1から
出力される論理アドレス10はアドレス変換機構ATB
 (Address Table Block )に入
力され、物理アドレスとして物理アドレスバス201を
介して主記憶装置2のアドレス端子に入力している。前
記物理アドレス201は主記憶装置2へ転送されると同
時にリンク情報としてトライステートラッチ回路202
を介してT L B (TableLink Bloc
k ) ヘも入力される。TLB30においてはラッチ
回路202にセットされた物理アドレスの上位ビットを
入力して、前記上位ビットに対応するページが現在主記
憶装置2にあるかどうかのチェック及びそのページが主
記憶装置2内にあった場合にそのページに対するプロセ
スアイデンティフィケーシッン(PID)、即ちそのペ
ージのユーザ指定を示す管理情報を管理情報バス301
に出力する。また、ATB20から出力された物理アド
レスを含むページが主記憶装置2内にあった場合には、
物理アドレス201を複数のユーザによって区別する絶
対アドレスに変更するために各ユーザ領域の先頭番地を
示すアドレス上位ビットがTLB30からトライステー
トバッファ302を介して主記憶装置2の上位アドレス
線に与えられる。チェック回路40は前記TLBより出
力されるユーザ指定のPIDを含む管理情報301を入
力し、更にCPUIよりCPUIがどのユーザレベルで
実行しているかを示すCPUアクセスレベル信号12を
入力し、物理アドレス201と同じ物理アドレスがTL
B内にあった場合、その物理アドレスがCPUIが利用
しているユーザの物理アドレスかどうかのチェックを実
行する。チェックした結果、もし、物理アドレス201
が主記憶装置2内にあり、しかもそのアドレスがCPU
Iで利用しているユーザの領域である場合には、チェッ
ク回路40の出力401がアクティブとなり、メモリア
クセス制御回路50及びCPUIに働きかけ、CPUI
は主記憶装置2をアクセスして読出しまたは書き込みの
動作を実行させる。もし、CPUIから出力された論理
アドレス10がATB20によって物理アドレス201
に変更され、その物理アドレスが属するページがTLB
30内にあってもそのページに対する管理情報がバス1
2にだされたアクセスレベル情報と異なる場合には、主
記憶装置2の絶対アドレス空間上ではページが異なるこ
とになる。この場合には、チェック回路40の出力は、
メモリアクセス禁止指令を意味する信号となり、CPU
Iは主記憶装置2をアクセスすることは出来ず、このと
き、TLB30において、物理アドレスが同じであるユ
ーザに関する管理情報をそのユーザ領域の先頭番地を指
す物理アドレス先頭情報をそれぞれチェック回路40と
バッファ302に与えながら、ATBの出力である物理
アドレスの属するページをTLB30内で探索すること
になる。探索した結果、物理アドレス201が属するペ
ージが主記憶装置2内に存在しなければ、ページフォー
ルトとして物理アドレス201が属するページを外部記
憶装置、即ちディスク装置から主記憶装置2に転送し、
必要性の低いページをディスク装置に転送する。いわゆ
るスワップ動作を実行することになる。このような従来
のMMUにおける動作フローを第2図(b)に示す。
(In the case of Pi, a 3-bit CPU access level signal is output from the CPU to the signal line 12. The logical address 10 output from the CPU 1 is output from the address translation mechanism ATB.
(Address Table Block), and is input as a physical address to the address terminal of the main storage device 2 via the physical address bus 201. The physical address 201 is transferred to the main storage device 2, and at the same time is sent to the tri-state latch circuit 202 as link information.
T L B (TableLink Bloc
k) F is also input. In the TLB 30, the upper bits of the physical address set in the latch circuit 202 are input, and it is checked whether or not the page corresponding to the upper bits is currently in the main memory 2, and whether the page is in the main memory 2. In this case, the management information indicating the process identification (PID) for that page, that is, the user designation of that page, is sent to the management information bus 301.
Output to. Additionally, if there is a page in the main storage device 2 that includes the physical address output from the ATB 20,
In order to change the physical address 201 to an absolute address that can be distinguished by a plurality of users, the upper address bits indicating the start address of each user area are applied from the TLB 30 to the upper address line of the main memory device 2 via the tri-state buffer 302. The check circuit 40 inputs the management information 301 including the user-specified PID output from the TLB, further inputs the CPU access level signal 12 indicating at which user level the CPU is executing from the CPU, and checks the physical address 201. The same physical address as TL
If the physical address is in B, a check is performed to see if the physical address is the physical address of the user being used by the CPUI. As a result of checking, if physical address 201
is in main memory 2, and its address is
If the area belongs to the user using the I, the output 401 of the check circuit 40 becomes active, acts on the memory access control circuit 50 and the CPUI, and the CPU
accesses the main memory device 2 to execute a read or write operation. If the logical address 10 output from the CPUI is changed to the physical address 201 by the ATB 20,
, and the page to which that physical address belongs is TLB
Even if the page is within 30, the management information for that page is bus 1.
If the access level information is different from the access level information issued in the main memory 2, the pages are different in the absolute address space of the main memory 2. In this case, the output of the check circuit 40 is
This is a signal that means a memory access prohibition command, and the CPU
I cannot access the main storage device 2, and at this time, in the TLB 30, the management information regarding the user with the same physical address is transferred to the check circuit 40 and the buffer, respectively, and the physical address starting information pointing to the starting address of the user area is stored in the TLB 30. 302, the page to which the physical address that is the output of the ATB belongs is searched within the TLB 30. As a result of the search, if the page to which the physical address 201 belongs does not exist in the main storage device 2, the page to which the physical address 201 belongs is transferred from the external storage device, that is, the disk device, to the main storage device 2 as a page fault,
Transfer less-needed pages to a disk device. This will perform a so-called swap operation. The operation flow in such a conventional MMU is shown in FIG. 2(b).

第2図(b)において、CPUIが主記憶装置2である
メモリをアクセスするために8余理アドレス10を出力
する。この論理アドレス10はATB20への入力とな
る。ATB20では、前記論理アドレス10を物理アド
レスに変換し、物理アドレスバス201に出力する。主
記憶装置2は、前記物理アドレス201が入力されても
、またそのリードライト動作は実行しない。物理アドレ
ス201の上位ビットは、リンク情報としてラッチ回路
202にセットされTLB30をアクセスする。TLB
30は、リンク情報を入力すると、物理アドレス201
の対応するPID管理情報を301に出力するとともに
、ユーザ領域の先頭を示すための上位ビットである物理
アドレス先頭情報をもバッファ302の方へ出力する。
In FIG. 2(b), the CPU outputs 8 remaining addresses 10 in order to access the memory which is the main storage device 2. This logical address 10 becomes an input to the ATB 20. The ATB 20 converts the logical address 10 into a physical address and outputs it to the physical address bus 201. Even when the physical address 201 is input, the main storage device 2 does not perform the read/write operation. The upper bits of the physical address 201 are set in the latch circuit 202 as link information to access the TLB 30. T.L.B.
30, when the link information is input, the physical address 201
It outputs the corresponding PID management information to the buffer 301, and also outputs the physical address start information, which is the upper bit for indicating the start of the user area, to the buffer 302.

そして。and.

チェック回路40において、TLB30より出力された
管理情報と、CPUIからのユーザ指定を示すアクセス
レベル信号12とを比較し、メモリアクセスの適正判断
を行う。もし、アクセスが適正であれば、OK倍信号出
力線401に出され。
The check circuit 40 compares the management information output from the TLB 30 and the access level signal 12 indicating user designation from the CPUI to determine the appropriateness of memory access. If the access is proper, an OK double signal is output to the output line 401.

物理アドレス201及びTLB30から出力される物理
アドレス先頭情報を主記憶装置2の絶対アドレスの上位
ビットとして与えてメモリのリードライトの動作を実行
しもとに戻る。
The physical address 201 and the physical address head information output from the TLB 30 are given as the upper bits of the absolute address of the main storage device 2 to execute the memory read/write operation and return to the original state.

チェック回路40において、TLB30からの管理情報
がCPUのユーザ指定用のアクセスレベル信号と異なる
場合には、メモリアクセスを行うことはできず、TLB
30内に201上の物理アドレスが属するページがTL
B内に更にあるかどうかのチェックを行う必要がある。
In the check circuit 40, if the management information from the TLB 30 is different from the user-specified access level signal of the CPU, memory access cannot be performed and the TLB
The page to which the physical address on 201 belongs in 30 is TL
It is necessary to check whether there are any more in B.

もし、ある場合には、ATB20からの出力を中止する
。そして、TLB30は物理アドレスが同じである次の
ユーザ領域の先頭を示すためのネクスト物理アドレス先
頭情報をバッファ302Φ方へ出力する。
If there is, the output from the ATB 20 is stopped. Then, the TLB 30 outputs next physical address head information indicating the head of the next user area having the same physical address to the buffer 302Φ.

ATB20では現在の物理アドレス201の代わりにT
LB30から出力されるそれと等価なネクスト物理アド
レスを一度登録し、物理アドレスを巡回するように出力
して同様な動作をTLB30に対して実行する。そして
TLB30内に201上に存在する物理アドレスが存在
しない場合には。
In ATB20, instead of the current physical address 201, T
The next physical address equivalent to that output from the LB 30 is registered once, and the same operation is executed for the TLB 30 by outputting the physical address in a cyclical manner. If the physical address existing on 201 does not exist in TLB 30.

そのページはもはや主記憶装置2内に存在しないことを
示す。このとき、ページフォールトとなり。
Indicates that the page no longer exists in main memory 2. At this time, a page fault occurs.

MMUはCPUIへ該当ページのないことを通知し、C
PUIはメモリアクセスを中止して8例えばLRUアル
ゴリズムに従ってページのスワツピングを実行する。
The MMU notifies the CPUI that the corresponding page does not exist, and
The PUI suspends memory access and performs page swapping according to, for example, an LRU algorithm.

このように、第2図(a)に示すような従来のMMUシ
ステムにおいては、CPUIから出力された現在の論理
アドレスlOに対応する物理アドレス201がATB2
0によって変換され、その物理アドレス201を用いて
TLB30をアクセスし。
In this way, in the conventional MMU system as shown in FIG. 2(a), the physical address 201 corresponding to the current logical address IO output from the CPUI is
0, and the TLB 30 is accessed using the physical address 201.

出力された管理情報301を用いてユーザ指定のチェッ
クを行っている。そのため、CPUIより出力された論
理アドレス10が属するページが主記憶装置2にあって
、しかもそのページが確かにCPUIが実行しているユ
ーザ指定になっている場合であっても、RAMより構成
されるATB20及びTLB30から成る2段のメモリ
を介してPIDチェックを行っているために、主記憶装
置2へのアクセスが実行的に遅くなるという欠点を有し
ていた。すなわち、従来方法に従うと、ATB20より
出力された物理アドレス201は。
The outputted management information 301 is used to check user specifications. Therefore, even if the page to which the logical address 10 outputted from the CPUI belongs is located in the main storage device 2, and is certainly specified by the user who is executing the CPUI, the page configured from the RAM is Since the PID check is performed through two stages of memory consisting of the ATB 20 and TLB 30, access to the main storage device 2 has the disadvantage that access to the main storage device 2 is actually slow. That is, according to the conventional method, the physical address 201 output from the ATB 20 is.

たとえユーザ指定が同一であっても主記憶装置2を即座
にアクセスすることができず、TLB30から出力され
る管理情報301をチェック回路40に入力して始めて
アクセスが可能となる。従って、物理アドレスが同じで
あってユーザが異なる場合あるいはページフォールト以
外の定常状態においては、従来方法では、アドレス変換
が実行的に遅くなるという欠点を有していた。
Even if the user specifications are the same, the main storage device 2 cannot be accessed immediately, and access is only possible after inputting the management information 301 output from the TLB 30 to the check circuit 40. Therefore, when the physical addresses are the same but the users are different, or in a steady state other than a page fault, the conventional method has the disadvantage that address translation is slow in execution.

〔発明の目的〕[Purpose of the invention]

本発明はこのような従来のMMUの欠点を除去し、AT
B内に現在の論理アドレスに対する管理情報を出力する
機構を設けることによって同じユーザが同じページをア
クセスしている場合には。
The present invention eliminates such drawbacks of conventional MMU and enables AT
If the same user is accessing the same page by providing a mechanism in B that outputs management information for the current logical address.

前記論理アドレスから変換されてできる物理アドレスを
使ってTLBから出力される管理情報を無視して即座に
主記憶装置をアクセスすることができるメモリ管理方式
を提供する・ (発明の要点〕 本発明は上記目的を達成するために、中央演算装置(1
)と前記中央演算装置(1)から出力される論理アドレ
ス(10)を物理アドレス(201)に変換すると同時
に変換された前記物理アドレス(201)に関する現在
のユーザに関する現管理情報(306)を同時に出力す
る第1のメモリ管理機構(20)と、前記変換された物
理アドレス(201)をリンク情報として入力し前記物
理アドレス(201)が含まれるページが主記憶装置(
2)内に存在する場合には少なくとも前記物理アドレス
(201)からユーザ領域の指定を含む絶対アドレスに
変換するための情報及び前記物理アドレス(201)に
関する次のユーザに関する次管理情報(305)を出力
する機構。
To provide a memory management method that can immediately access a main storage device using a physical address converted from the logical address, ignoring the management information output from the TLB. In order to achieve the above purpose, the central processing unit (1
) and the logical address (10) output from the central processing unit (1) into a physical address (201), and at the same time, the current management information (306) regarding the current user regarding the converted physical address (201). The first memory management mechanism (20) to output and the converted physical address (201) are input as link information, and the page containing the physical address (201) is transferred to the main memory (
2), at least information for converting the physical address (201) into an absolute address including user area designation, and next management information (305) regarding the next user regarding the physical address (201). Mechanism to output.

及び前記物理アドレス(201)が含まれるページが主
記憶装置(2)内に存在するかどうかを検出する機構を
少なくとも含む第2のメモリ管理機構(30)と、前記
第1のメモリ管理機構(20)の前記現管理情報(30
6)及び前記第2のメモリ管理機構(30)の前記次管
理情報(305)を選択的に入力し前記現管理情報(3
06)及び次管理情報(305)と前記中央演算装置(
1)から出力されるユーザ指定用のアクセスレベル信号
(12)とを比較する比較手段(40)とを有し、前記
中央演算装置(1)から出力された現在の論理アドレス
(10)に対応する物理アドレス(201)が属するペ
ージを同一プロセス上でアクセスしている間は、前記第
2のメモリ管理機構(30)の動作を無視して、現在の
前記物理アドレス(201)で即座に主記憶装置(2)
をアクセスし、前記第1のメモリ管理機構(20)から
出力される現在の管理情報(202)が同一プロセスで
ない場合には、前記リンク情報を入力する前記第2のメ
モリ管理機構(30)から出力される次管理情報(30
5)に基づいて物理アドレス(201)から絶対アドレ
スに変換することを特徴とするメモリ管理方式を提供す
ることにより達成される。
and a second memory management mechanism (30) including at least a mechanism for detecting whether a page including the physical address (201) exists in the main storage device (2), and the first memory management mechanism (30). 20) said current management information (30)
6) and selectively inputs the next management information (305) of the second memory management mechanism (30) and inputs the current management information (3).
06) and the next management information (305) and the central processing unit (
1), and a comparison means (40) for comparing the access level signal (12) for user designation outputted from the central processing unit (1), and corresponds to the current logical address (10) outputted from the central processing unit (1). While accessing the page to which the physical address (201) belongs in the same process, the operation of the second memory management mechanism (30) is ignored and the main page is immediately accessed at the current physical address (201). Storage device (2)
and if the current management information (202) output from the first memory management mechanism (20) is not the same process, the second memory management mechanism (30) that inputs the link information Next management information to be output (30
This is achieved by providing a memory management method characterized by converting a physical address (201) into an absolute address based on 5).

〔実  施  例〕〔Example〕

次に本発明の実施例を図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.

第1図(a)は本発明のメモリ管理方式に基づくMMU
の構成を示すブロック図である。
FIG. 1(a) shows an MMU based on the memory management method of the present invention.
FIG. 2 is a block diagram showing the configuration of FIG.

中央演算装置CPUIは論理アドレスバス10に少なく
ともページ番号、ページ内変位を含む論理アドレスを出
力する。又データバス11が、主記憶装置2にデータを
書き込む場合には、書き込みデータを出力し、主記憶装
置2からデータを読出す場合には読出しデータを入力す
るため、リードライト用の制御信号と共にCPUIに接
続されている。また、複数のユーザで主記憶装置2を共
存してアクセスできるようにプリフィックス変換機構を
実行するために、CPUIから各ユーザの実行するプロ
セスの管理情報が2例えば、3ビツトのCPUアクセス
レベル信号として信号線12にCPUIから出力される
。c?u1から出力される論理アドレス10はアドレス
変換機構ATB(Address Table Blo
ck )  20に入力され、物理アドレスとして物理
アドレスバス201を介して主記憶装置2のアドレス入
力となる。本発明では。
The central processing unit CPUI outputs a logical address including at least a page number and an intra-page displacement to the logical address bus 10. In addition, the data bus 11 outputs write data when writing data to the main memory device 2, and inputs read data when reading data from the main memory device 2. Connected to CPUI. In addition, in order to execute the prefix conversion mechanism so that multiple users can coexist and access the main storage device 2, the management information of the process executed by each user is sent from the CPU as a 2, for example, 3-bit CPU access level signal. It is output from the CPUI to the signal line 12. c? The logical address 10 output from u1 is sent to an address translation mechanism ATB (Address Table Blo
ck) 20, and becomes the address input of the main storage device 2 via the physical address bus 201 as a physical address. In the present invention.

このATB20内部にページアクセス判定機構の一部を
含め、変換された現在の物理アドレス201に対する現
在のユーザ指定を示す管理情報PID202をTLB3
0を介さずに直接ATB20より出力し、チェック回路
40に入力している。前記物理アドレス201は主記憶
装置2へ転送されると同時にリンク情報としてトライス
ティト回路202を介してT L B (Table 
Link Block)へも入力される。TLB30に
おいてはラッチ回路202にセットされた物理アドレス
の上位ビットを入力して、前記上位ビットに対応するペ
ージが現在主記憶装置2にあるかどうかのチェック及び
そのページが主記憶装置2内にあった場合に。
A part of the page access determination mechanism is included inside this ATB 20, and management information PID 202 indicating the current user designation for the converted current physical address 201 is transmitted to the TLB 3.
The signal is output directly from the ATB 20 without going through the 0, and is input to the check circuit 40. The physical address 201 is transferred to the main storage device 2, and at the same time is transferred to the main storage device 2 as link information via the tryst circuit 202.
Link Block) is also input. In the TLB 30, the upper bits of the physical address set in the latch circuit 202 are input, and it is checked whether or not the page corresponding to the upper bits is currently in the main memory 2, and whether the page is in the main memory 2. In case.

その物理アドレス201と同じ物理アドレスをもつ次の
ユーザの指定を示す次ユーザ管理情報を次ユーザ管理情
報バス303に出力する。そして前記次ユーザ管理情報
303はトライステートラッ千回路304を介して次管
理情報305のバスに出力される。また、ATB20か
ら出力された物理アドレス 201を含むページが主記
憶装置2内にあった場合には、物理アドレス201を複
数のユーザによって区別する絶対アドレスに変更するた
めに、ユーザ領域の先頭番地を示すアドレス上位ビット
すなわち物理アドレス先頭情報がTLB30からトライ
スティトバッファ302′を介して主記憶装置2の上位
アドレス線に与えられる。
Next user management information indicating the designation of the next user having the same physical address as the physical address 201 is output to the next user management information bus 303. The next user management information 303 is then output to the next management information 305 bus via the tri-state latch circuit 304. Additionally, if there is a page in the main storage device 2 that includes the physical address 201 output from the ATB 20, the first address of the user area is changed to change the physical address 201 to an absolute address that can be distinguished by multiple users. The upper bits of the indicated address, ie, the physical address head information, are applied from the TLB 30 to the upper address line of the main memory device 2 via the tristate buffer 302'.

チェック回路40は前記ATB20と前記TLB30よ
りそれぞれ出力される現ユーザ指定及び次ユーザが指定
のプロセスアイデンティフリケーション(PID)を含
む現管理情報306および次管理情報305を選択的に
入力し、更にCPUIよりCPUIがどのユーザレベル
で実行しているかを示すCPUアクセスレベル信号12
を入力し。
The check circuit 40 selectively inputs current management information 306 and next management information 305 including process identification (PID) specified by the current user and specified by the next user outputted from the ATB 20 and the TLB 30, respectively, and further inputs the current management information 306 and the next management information 305 outputted from the ATB 20 and the TLB 30, respectively. A CPU access level signal 12 indicating which user level the CPUI is running at.
Enter.

その物理アドレス201がCPU1が利用しているユー
ザの物理アドレスかどうかのチェックを実行する。チェ
ックした結果、もし、物理アドレス201が主記憶装置
2内にあり、しかも前記ATB20から出力される現ユ
ーザ指定の現管理情報306と前記ユーザレベル信号1
2が一致し、そのアドレスがCPU1より利用している
ユーザの領域である場合には、チェック回路40の出力
401が即座にアクティブとなる。すなわち、ATB2
0だけの1段のRAMに関するリードサイクルの速度で
主記憶装置2をアクセスできる。チェック回路40の出
力は、メモリアクセス制御回路50及びCPU 1に働
きかけ、CPUIは主記憶装置2をアクセスし、読出し
書き込みの動作を実行させる。もし、CPUIから出力
された論理アドレス10がATB20によって物理アド
レス201に変更される現時点で、その物理アドレスが
属するページがTLB30内にあってもそのページに対
するATB20からの現ユーザ指定の現管理情報306
がCPUIからバス12にだされたアクセスレベル情報
と異なる場合には、主記憶装置2の絶対アドレス空間上
ではページが異なることになる。この場合には、チェッ
ク回路40の出力は、メモリアクセス禁止指令を意味す
る信号となり、CPUIは主記憶装置2をアクセスする
ことは出来ず、このときは、従来と同様にTLB30に
おいて、ATBの出力である物理アドレスの冗するペー
ジを探索することになる。すなわち。
A check is executed to see if the physical address 201 is the physical address of the user used by the CPU 1. As a result of the check, if the physical address 201 is in the main storage device 2, and the current management information 306 specified by the current user output from the ATB 20 and the user level signal 1 are
2 match and the address is in the area of the user using the CPU 1, the output 401 of the check circuit 40 becomes active immediately. That is, ATB2
The main memory device 2 can be accessed at the speed of a read cycle for a single stage RAM containing only 0's. The output of the check circuit 40 acts on the memory access control circuit 50 and the CPU 1, and the CPU 1 accesses the main memory 2 to execute read/write operations. At the moment when the logical address 10 output from the CPUI is changed to the physical address 201 by the ATB 20, even if the page to which that physical address belongs is in the TLB 30, the current management information 306 designated by the current user from the ATB 20 for that page
If the access level information is different from the access level information sent from the CPUI to the bus 12, the pages will be different in the absolute address space of the main storage device 2. In this case, the output of the check circuit 40 becomes a signal meaning a memory access prohibition command, and the CPU cannot access the main storage device 2. In this case, as in the past, the TLB 30 outputs the ATB signal. A search will be made for a page with a redundant physical address. Namely.

次ユーザに関する次管理情報とその次ユーザのメモリ領
域の先頭番地を指すネタストアドレス先頭情報をそれぞ
れチェック回路40とスリーステートラッチ302′に
与えながら探索する。探索した結果、物理アドレス20
1が属するページが主記憶装置2内に存在しなければ、
ページフォールトとして物理アドレス201が属するペ
ージを外部記憶装置、即ちディスク装置と主記憶装置2
間でスワップ動作を実行することになる。
The next management information regarding the next user and the netast address start information indicating the start address of the memory area of the next user are searched while being supplied to the check circuit 40 and the three-state latch 302', respectively. As a result of the search, physical address 20
If the page to which 1 belongs does not exist in the main storage device 2,
As a page fault, the page to which the physical address 201 belongs is stored in the external storage device, that is, the disk device and the main storage device 2.
A swap operation will be performed between the two.

このような本発明ののMMUにおける動作フローを第1
図(blに示す。
The operation flow in the MMU of the present invention is described in the first part.
Figure (shown in bl.

第1図(b)において、CPUIが主記憶装置であるメ
モリをアクセスするために論理アドレス10を出力する
。この論理アドレス10はATB 20への入力となる
。ATB20では、前記論理アドレス10を物理アドレ
スに変換し、物理アドレスバス201に出力する。それ
とともに、ATB20から変換された現在の物理アドレ
ス201に対する現在のユーザ指定を示す現管理情報3
06が出力される。メモリ2には、前記物理アドレス2
01が一部として入力されるが、まだメモリのリードラ
イトは実行されない。物理アドレス201の上位アドレ
スは、リンク情報としてランチ回路202にセットされ
TLB30をアクセスする。TLB30は、リンク情報
を入力すると。
In FIG. 1(b), the CPU outputs a logical address 10 in order to access the memory which is the main storage device. This logical address 10 becomes the input to ATB 20. The ATB 20 converts the logical address 10 into a physical address and outputs it to the physical address bus 201. At the same time, current management information 3 indicating the current user designation for the current physical address 201 converted from the ATB 20
06 is output. The physical address 2 is stored in the memory 2.
01 is input as a part, but the read/write of the memory is not executed yet. The upper address of the physical address 201 is set in the launch circuit 202 as link information and the TLB 30 is accessed. When the TLB 30 inputs the link information.

物理アドレス201の対応する次のユーザに関する次管
理情報305を出力する。それとともに物理アドレスバ
ス201上の物理アドレスと同じ物理アドレスでユーザ
指定が異なる場合に、このネクスト物理アドレス先頭情
報をも出力する。チェック回路40において、まず、A
TB20から出力された現管理情報306とCPUIか
らのユーザ指定を示すアクセスレベル信号12とをTL
B30を介さずに比較し、メモリアクセスの適正判断を
行う。もし、アクセスが適正であれば、 OK倍信号出
力線401に出され、物理アドレス201及びATB2
0またはTLB30から出力される現ユーザ領域の先頭
を示すアドレス上位ビットを主犯憶装W2のアドレス端
子に与え、メモリのリードライトの動作を実行しもとに
戻る。もし、現ユーザ領域の先頭番地をTLB30では
なくATB 20から限度に出力するようにすれば。
Next management information 305 regarding the next user corresponding to the physical address 201 is output. At the same time, if the user designation is different for the same physical address as the physical address on the physical address bus 201, this next physical address head information is also output. In the check circuit 40, first, A
The current management information 306 output from the TB 20 and the access level signal 12 indicating user designation from the CPUI are
Comparison is made without going through B30 to determine the appropriateness of memory access. If the access is correct, an OK double signal is output to the output line 401, and the physical address 201 and ATB2 are
0 or the upper bit of the address indicating the beginning of the current user area outputted from the TLB 30 is applied to the address terminal of the main culprit memory W2, the memory read/write operation is executed, and the process returns to the original state. What if the starting address of the current user area was output from the ATB 20 instead of the TLB 30?

バス201は物理アドレスではなく絶対アドレスと考え
られる。チェック回路40において、 ATB20から
の現管理情報202がCPUIの現ユーザのアクセスレ
ベル信号12と異なる場合には。
Bus 201 is considered an absolute address rather than a physical address. In the check circuit 40, if the current management information 202 from the ATB 20 is different from the access level signal 12 of the current user of the CPUI.

メモリアクセスは行うことができず、そのとき始めて、
TLB30を用いて、物理アドレスバス201上の物理
アドレスが属するページがTLB30内にあるかどうか
のチェックを行う必要がある。もし、ある場合には、A
TB20からの出力を中止する。そして、TLB30は
物理アドレスが同じである次のユーザ領域の先頭を示す
ためのネクスト物理アドレス先頭情報をバッファ302
へ出力する。さらに、その次のユーザに関する次管理情
報を303に出力し、それをスリースティトラッチ回路
304がラッチする。ATB20では現在の物理アドレ
ス201の代わりにTLB30から出力されるそれと等
価なネクスト物理アドレスとともに前記次管理情報を登
録し、同様な動作をTLB30に対して実行する。この
場合。
No memory accesses can be made, and only then,
It is necessary to use the TLB 30 to check whether the page to which the physical address on the physical address bus 201 belongs is in the TLB 30. If so, A
Stop output from TB20. Then, the TLB 30 stores next physical address start information in the buffer 302 to indicate the start of the next user area having the same physical address.
Output to. Furthermore, the next management information regarding the next user is outputted to 303, and the third-party latch circuit 304 latches it. The ATB 20 registers the next management information together with the next physical address equivalent to the current physical address 201 output from the TLB 30 instead of the current physical address 201, and performs the same operation on the TLB 30. in this case.

前記等価なネクスト物理アドレスではなくそれに次ユー
ザ領域の先頭番地を上位ビットとして含めたネクスト絶
対アドレスを登録してもよい。そしてTLB30内にも
物理アドレスバス201上のアドレスが存在しない場合
には、そのページはもはや主記憶装置2内には、存在し
ないことを示す。
Instead of the equivalent next physical address, a next absolute address including the top address of the next user area as the upper bit may be registered. If the address on the physical address bus 201 does not exist in the TLB 30, this indicates that the page no longer exists in the main storage device 2.

このとき、ページフォールトとなり、MMUは。At this time, a page fault occurs and the MMU.

CPUへ該当ページの無いことを通知し、CPU1はメ
モリアクセスを中止して1例えばLRUアルゴリズムに
従ってページのスワツピングを実行する。
The CPU 1 is notified that the corresponding page does not exist, and the CPU 1 suspends memory access and executes page swapping according to, for example, an LRU algorithm.

本発明では以上のべたように、CPUIより出力される
論理アドレス10がATB 20に入力され、物理アド
レス201に変換されると同時に。
In the present invention, as described above, the logical address 10 output from the CPU is input to the ATB 20 and is simultaneously converted into the physical address 201.

論理アドレス10から現在主記憶装置2内にあるページ
で前記論理アドレス10が属するページと同じページで
、しかも、cpuiを利用しているユーザのPIDと一
致する確率の最も高いメモリ・管理情報を出力線202
に出力し、この現管理情報306をチェ・7り回路40
に入力し、PIDの位置を即座に検査するようにしてい
る。従って。
Outputs memory/management information that is the same page as the page to which the logical address 10 belongs, which is currently in the main storage device 2 from the logical address 10, and has the highest probability of matching the PID of the user using the CPUI. line 202
This current management information 306 is output to the checkerboard circuit 40.
, and the position of the PID is immediately checked. Therefore.

本発明ではCPUIが現在アクセスしているページ内を
常にアクセスしている定常状態においては。
In the present invention, in a steady state in which the CPUI always accesses the currently accessed page.

主記憶装置2の前記論理アドレス10が属しているペー
ジは存在するので論理アドレス10から物理アドレス2
01に変換すると同時に、その論理アドレスに対する現
管理情報306が出力され。
Since the page to which the logical address 10 of the main storage device 2 belongs exists, from the logical address 10 to the physical address 2
At the same time as converting to 01, current management information 306 for that logical address is output.

CPUIから出力されるアクセスレベル信号12とチェ
7り回路40で即座に一致がとれる。従って1本発明で
は、主記憶装置2のリードライト動作をTLB30の動
作を無視して実行されることになる。CPUIから出力
される論理アドレス10が常に同じページをアクセスす
る場合には。
The access level signal 12 output from the CPUI and the checker circuit 40 can immediately match each other. Therefore, in the present invention, the read/write operation of the main memory device 2 is executed while ignoring the operation of the TLB 30. If the logical address 10 output from the CPUI always accesses the same page.

このように主記憶装置2のリードライトを高速に実行さ
れるが、CPUIが出力する論理アドレス10が他のペ
ージ例えばジャンプ命令等によって違うページをアクセ
スした場合にはジャンプ先の論理アドレス 10がCP
U1より出力される。
In this way, reading and writing of the main memory device 2 is executed at high speed, but if the logical address 10 output by the CPU is a different page, for example, when a different page is accessed by a jump instruction, the logical address 10 of the jump destination is the CP.
Output from U1.

このような場合には、従来と同様にTLB30を介して
管理情報のチェックを行う必要がある。即ち、変換され
て出来る物理アドレス201を用いてTLB30をアク
セスし、TLB30からネクスト物理アドレス先頭情報
と9次管理情報を出力する。即ち、物理アドレス201
が属するページと同じページの次のPIDを出力し、チ
ェック回路40に入れる。そして、CPUIから出力さ
れるアクセスレベル信号12と一致を調べる。TLB3
0にCPUIが出力した論理アドレス10に対応する物
理アドレスがあり、従って、主記憶装置上にそのページ
が存在している場合に、TLB内には次候補があること
を示している。従って。
In such a case, it is necessary to check the management information via the TLB 30 as in the past. That is, the TLB 30 is accessed using the converted physical address 201, and the next physical address head information and the ninth management information are output from the TLB 30. That is, the physical address 201
The next PID of the same page as the page to which the page belongs is output and input to the check circuit 40. Then, it is checked whether it matches the access level signal 12 output from the CPUI. TLB3
0 has a physical address corresponding to the logical address 10 output by the CPUI, and therefore, if that page exists on the main storage device, this indicates that there is a next candidate in the TLB. Therefore.

次候補がある場合には、ATB20の出力を中止し、前
記次管理情報に対応するネクスト物理アドレス先頭情報
をランチ回路302′にセットし。
If there is a next candidate, the output of the ATB 20 is stopped, and next physical address head information corresponding to the next management information is set in the launch circuit 302'.

前記次管理情報をラッチ回路304にセントする。The next management information is sent to the latch circuit 304.

前記次管理情報を用いてチェック回路40でPIDのチ
ェックを再び行う。それと同時にネクスト物理アドレス
と次管理情報をATB20に登録する。そして再び同様
な繰り返しを実行する。もしTLB30内に次候補がな
い場合にはページフォールトとなってCPUIはメモリ
2のアクセスを中止しディスク装置より該当するページ
をもってくることになる。
The check circuit 40 checks the PID again using the next management information. At the same time, the next physical address and next management information are registered in the ATB 20. Then repeat the same process again. If there is no next candidate in the TLB 30, a page fault will occur and the CPU will stop accessing the memory 2 and fetch the corresponding page from the disk device.

〔発明の効果〕〔Effect of the invention〕

本発明はこのように論理アドレスから物理アドレスに変
換するATB機構内に論理アドレスとユーザ指定用の管
理情報との対応関係をテーブルとして格納し、CPUが
同一ページをアクセスしている間は、現在アクセスして
いるページが同一ユーザであることを即座に判定し、メ
モリアクセスの速度を向上させて、システムのスループ
ットを上げる効果を生じる。
The present invention stores the correspondence between logical addresses and user-specified management information as a table in the ATB mechanism that converts logical addresses into physical addresses, and while the CPU is accessing the same page, the current It is immediately determined that the page being accessed is by the same user, and the speed of memory access is improved, resulting in the effect of increasing system throughput.

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

第1図fatは本発明のメモリ管理方式に基づくMMU
の構成を示すブロック図。 第1図(blはその本発明方式の動作フローを示す図。 第2図(a)は従来のメモリ管理方式に基づ<MMUの
構成を示すブロック図。 第2図(b)はその従来方式の動作フローを示す図であ
る。 ■・・・cpu。 2・・・主記憶装置(メモリ)。 10・・・論理アドレス。 11・・・データバスおよび制御バス。 12・・・CPLIアクセスレベル信号。 20・・・ATB。 30・・・TLB。 50・・・メモリアクセス制御回路。 202.302’、304 ・・・スリースティトラッチ回路。 301・・・管理情報バス。 302・・・スリースティトバッファ回路。 305・・・次管理情報バス。 306・・・現管理情報バス。
FIG. 1 fat is an MMU based on the memory management method of the present invention.
FIG. 2 is a block diagram showing the configuration of. FIG. 1 (bl is a diagram showing the operation flow of the method of the present invention. FIG. 2(a) is a block diagram showing the configuration of an MMU based on the conventional memory management method. FIG. 2(b) is a diagram showing the configuration of the conventional memory management method. It is a diagram showing the operation flow of the system. ■... CPU. 2... Main storage device (memory). 10... Logical address. 11... Data bus and control bus. 12... CPLI access. Level signal. 20...ATB. 30...TLB. 50...Memory access control circuit. 202.302', 304...Three-by-three latch circuit. 301...Management information bus. 302... Three-state buffer circuit. 305... Next management information bus. 306... Current management information bus.

Claims (1)

【特許請求の範囲】 1)論理アドレスを出力する中央演算装置(1)と、論
理アドレスを物理アドレスに変換しかつ中央演算装置(
1)が同一ユーザ、同一ページを実行している場合には
、現管理情報(306)を出力しつづける第1のメモリ
管理機構(20)と、中央演算装置(1)が同一ユーザ
、同一ページを実行していないときには少なくとも次管
理情報を出力する第2のメモリ管理機構(30)とを有
することを特徴とするメモリ管理方式。 2)中央演算装置(1)と前記中央演算装置(1)から
出力される論理アドレス(10)を物理アドレス(20
1)に変換すると同時に変換された前記物理アドレス(
201)に関する現在のユーザに関する現管理情報(3
06)を同時に出力する第1のメモリ管理機構(20)
と、前記変換された物理アドレス(201)をリンク情
報として入力し前記物理アドレス(201)が含まれる
ページが主記憶装置(2)内に存在する場合には少なく
とも前記物理アドレス(201)からユーザ領域の指定
を含む絶対アドレスに変換するための情報及び前記物理
アドレス(201)に関する次のユーザに関する次管理
情報(305)を出力する機構、及び前記物理アドレス
(201)が含まれるページが主記憶装置(2)内に存
在するかどうかを検出する機構を少なくとも含む第2の
メモリ管理機構(30)と、前記第1のメモリ管理機構
(20)の前記現管理情報(306)及び前記第2のメ
モリ管理機構(30)の前記次管理情報(305)を選
択的に入力し前記現管理情報(306)及び次管理情報
(305)と前記中央演算装置(1)から出力されるユ
ーザ指定用のアクセスレベル信号(12)とを比較する
比較手段(40)とを有し、前記中央演算装置(1)か
ら出力された現在の論理アドレス(10)に対応する物
理アドレス(201)が属するページを同一プロセス上
でアクセスしている間は、前記第2のメモリ管理機構(
30)の動作を無視して、現在の前記物理アドレス(2
01)で即座に主記憶装置(2)をアクセスし、前記第
1のメモリ管理機構(20)から出力される現在の管理
情報 (306)が同一プロセスでない場合には、前記リンク
情報を入力する前記第2のメモリ管理機構(30)から
出力される次管理情報(305)に基づいて物理アドレ
ス(201)から絶対アドレスに変換することを特徴と
するメモリ管理方式。 3)前記第1のメモリ管理機構(20)から出力される
現管理情報(306)と前記中央演算装置(1)から出
力されるプロセスレベル(12)とを前記比較手段で最
初に比較し、一致した場合には、前記第1のメモリ管理
機構(20)から出力される絶対アドレス(201)で
即座に主記憶装置のアクセスを実行し、一致しない場合
には変換されてできる物理アドレス(201)をリンク
情報として前記第2のメモリ管理機構(30)をアクセ
スして前記物理アドレス(201)に関する次の次管理
情報(305)を出力し、前記次管理情報(305)と
前記中央演算装置(1)から出力されるプロセスレベル
信号(12)を前記比較手段(40)で比較することを
くり返し実行して前記第2のメモリ管理機構(30)を
介して物理アドレス(201)からユーザ指定を含む絶
対アドレスに変換することを特徴とする特許請求の範囲
第2項記載のメモリ管理機構。 4)前記第1のメモリ管理機構はATBからなることを
特徴とする特許請求の範囲第2項記載のメモリ管理機構
。 5)前記第2のメモリ管理機構はTLBからなることを
特徴とする特許請求の範囲第2項記載のメモリ管理機構
。 6)前記第1のメモリ管理機構(20)から出力される
現管理情報と中央演算装置(1)から出力されるアクセ
スレベル信号(12)が一致しない場合でかつ前記第2
のメモリ管理機構(30)から次管理情報(305)が
出力される場合には、前記次管理情報(305)と前記
第2のメモリ管理機構(30)から出力されるネクスト
物理アドレスとを前記第1のメモリ管理機構(20)に
登録することを特徴とする特許請求の範囲第2項記載の
メモリ管理機構。 7)前記第1のメモリ管理機構(20)に登録された前
記ネクスト物理アドレスを次のリンク情報として前記第
2のメモリ管理機構(30)に入力し、次のユーザに関
する次管理情報(305)及び絶対アドレスに変換する
ためのネクスト物理アドレス先頭情報を出力することを
特徴とする特許請求の範囲第6項記載のメモリ管理機構
。 8)前記第2のメモリ管理機構において、前記物理アド
レスが属するページが主記憶上にないことが判定された
場合に、ページフォルトの制御を実行し、外部記憶装置
上のアクセスしようとする新ページと主記憶上の古いペ
ージとをスワッピングすることを特徴とする特許請求の
範囲第7項記載のメモリ管理機構。
[Claims] 1) A central processing unit (1) that outputs a logical address, and a central processing unit (1) that converts the logical address into a physical address.
When 1) is executed by the same user and the same page, the first memory management mechanism (20) that continues to output the current management information (306) and the central processing unit (1) are executed by the same user and the same page. A memory management system characterized by comprising a second memory management mechanism (30) that outputs at least next management information when the process is not being executed. 2) The central processing unit (1) and the logical address (10) output from the central processing unit (1) are converted into physical addresses (20
1) and at the same time converting the physical address (
Current management information (3) regarding the current user regarding (201)
06) A first memory management mechanism (20) that simultaneously outputs
Then, the converted physical address (201) is input as link information, and if a page including the physical address (201) exists in the main storage device (2), the user at least starts from the physical address (201). A mechanism for outputting information for converting into an absolute address including area designation and next management information (305) regarding the next user regarding the physical address (201), and a mechanism in which the page containing the physical address (201) is in main memory. a second memory management mechanism (30) including at least a mechanism for detecting whether the information exists in the device (2); and the current management information (306) of the first memory management mechanism (20) and the second memory management mechanism (30). The next management information (305) of the memory management mechanism (30) is selectively inputted, and the current management information (306) and the next management information (305) are output from the central processing unit (1) for user specification. a page to which the physical address (201) corresponding to the current logical address (10) output from the central processing unit (1) belongs; is accessed in the same process, the second memory management mechanism (
30) and ignores the operation of the current physical address (2).
01), and if the current management information (306) output from the first memory management mechanism (20) is not the same process, input the link information. A memory management method characterized in that a physical address (201) is converted into an absolute address based on next management information (305) output from the second memory management mechanism (30). 3) first comparing the current management information (306) output from the first memory management mechanism (20) and the process level (12) output from the central processing unit (1) using the comparison means; If they match, the main storage device is accessed immediately using the absolute address (201) output from the first memory management mechanism (20), and if they do not match, the converted physical address (201) is used. ) as link information to access the second memory management mechanism (30) and output the next next management information (305) regarding the physical address (201), and then output the next next management information (305) and the central processing unit. The process level signal (12) output from (1) is repeatedly compared by the comparison means (40), and the process level signal (12) outputted from the process level signal (12) is repeatedly compared with the user specified from the physical address (201) via the second memory management mechanism (30). 3. The memory management mechanism according to claim 2, wherein the memory management mechanism converts the address into an absolute address containing the address. 4) The memory management mechanism according to claim 2, wherein the first memory management mechanism comprises an ATB. 5) The memory management mechanism according to claim 2, wherein the second memory management mechanism comprises a TLB. 6) When the current management information output from the first memory management mechanism (20) and the access level signal (12) output from the central processing unit (1) do not match, and when the second
When the next management information (305) is output from the second memory management mechanism (30), the next management information (305) and the next physical address output from the second memory management mechanism (30) are 3. The memory management mechanism according to claim 2, wherein the memory management mechanism is registered with a first memory management mechanism (20). 7) Input the next physical address registered in the first memory management mechanism (20) to the second memory management mechanism (30) as next link information, and provide next management information (305) regarding the next user. 7. The memory management mechanism according to claim 6, wherein the memory management mechanism outputs next physical address head information for converting into an absolute address. 8) If the second memory management mechanism determines that the page to which the physical address belongs is not on the main memory, execute page fault control and create a new page on the external storage device that is to be accessed. 8. The memory management mechanism according to claim 7, wherein the memory management mechanism swaps old pages on the main memory.
JP60204693A 1985-09-17 1985-09-17 Memory control system Pending JPS6265151A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60204693A JPS6265151A (en) 1985-09-17 1985-09-17 Memory control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60204693A JPS6265151A (en) 1985-09-17 1985-09-17 Memory control system

Publications (1)

Publication Number Publication Date
JPS6265151A true JPS6265151A (en) 1987-03-24

Family

ID=16494745

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60204693A Pending JPS6265151A (en) 1985-09-17 1985-09-17 Memory control system

Country Status (1)

Country Link
JP (1) JPS6265151A (en)

Similar Documents

Publication Publication Date Title
KR920005280B1 (en) High speed cache system
US5247639A (en) Microprocessor having cache bypass signal terminal
US4218743A (en) Address translation apparatus
CA1300279C (en) Central processor unit for digital data processing system including cache management mechanism
EP0408058A2 (en) Microprocessor
US5530823A (en) Hit enhancement circuit for page-table-look-aside-buffer
JPH0137773B2 (en)
US7269825B1 (en) Method and system for relative address translation
US5119484A (en) Selections between alternate control word and current instruction generated control word for alu in respond to alu output and current instruction
KR910001314B1 (en) Method for operating data processing system
US5226170A (en) Interface between processor and special instruction processor in digital data processing system
JPH07120312B2 (en) Buffer memory controller
JPH0512126A (en) Device and method for address conversion for virtual computer
JPS5868286A (en) Cash memory and operation thereof
JPH0519176B2 (en)
US6324635B1 (en) Method and apparatus for address paging emulation
JPS6265151A (en) Memory control system
US5276892A (en) Destination control logic for arithmetic and logic unit for digital data processor
KR920005296B1 (en) Information processing device
JPH01177145A (en) Information processor
JPH01226056A (en) Address converter
JPH04205535A (en) Copy on write system
JPH0211931B2 (en)
JPH0449446A (en) System for controlling plural caches
JPH04148352A (en) Address converting system for information processor equipped with plural processor