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

JPS6149704B2 - - Google Patents

Info

Publication number
JPS6149704B2
JPS6149704B2 JP55036470A JP3647080A JPS6149704B2 JP S6149704 B2 JPS6149704 B2 JP S6149704B2 JP 55036470 A JP55036470 A JP 55036470A JP 3647080 A JP3647080 A JP 3647080A JP S6149704 B2 JPS6149704 B2 JP S6149704B2
Authority
JP
Japan
Prior art keywords
page
real
address
channel
logical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP55036470A
Other languages
Japanese (ja)
Other versions
JPS56134380A (en
Inventor
Akira Nakayama
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
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP3647080A priority Critical patent/JPS56134380A/en
Publication of JPS56134380A publication Critical patent/JPS56134380A/en
Publication of JPS6149704B2 publication Critical patent/JPS6149704B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Description

【発明の詳細な説明】 本発明は仮想記憶型情報処理装置用アドレス変
換装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an address translation device for a virtual storage type information processing device.

仮想記憶型情報処理装置においては、論理アド
レス空間を主記憶装置(以下MMUと略称)の実
アドレス空間よりも大きくとり、現在実際に必要
とする論理アドレスだけをMMU中の実アドレス
空間に展開して使用し、それ以外の論理アドレス
を容量が大きくアクセス時間の比較的長いデスク
メモリ等に格納している。MMU中の実アドレス
として存在していない論理アドレスに対するアク
セス要求が生じた場合には、その論理アドレスを
含む一連のアドレスを1つのページまたは1つの
セグメントとしてデイスク装置から読出してそれ
をMMU中の現在使用していないかまたは使用プ
ライオリテイの低い実アドレス空間を選んでそこ
に展開して使用している。この場合、その実アド
レス空間のもとの内容が前回デイスクから読出さ
れてからそれまでに書込み等が行われてその内容
が変つているときは、デイスクの内容をそれによ
り更新してからMMUのその実アドレス空間の部
分を該当するデイスクのアドレスにセーブしてか
ら前記論理アドレスをMMUの実アドレス空間に
展開する。
In a virtual memory type information processing device, the logical address space is set larger than the real address space of the main memory unit (hereinafter referred to as MMU), and only the logical addresses that are currently actually needed are expanded into the real address space in the MMU. The other logical addresses are stored in desk memory, etc., which has a large capacity and requires a relatively long access time. When an access request occurs to a logical address that does not exist as a real address in the MMU, a series of addresses including that logical address is read out from the disk device as one page or one segment, and it is stored in the current address in the MMU. A real address space that is not in use or has a low usage priority is selected and expanded there for use. In this case, if the original contents of the real address space have been written to and have changed since the last time they were read from the disk, the contents of the disk must be updated and then the MMU can be used for the actual contents. After saving a portion of the address space to the corresponding disk address, the logical address is expanded to the real address space of the MMU.

このような構成をとる装置では、ある論理アド
レスが与えられると、その論理アドレスとMMU
の実アドレスとの対応および前記論理アドレスの
現在の実アドレス空間中の存在は、処理するプロ
グラムの進行に従つて変化し一義的には定まらな
い。一般に、処理プログラムは論理アドレスを用
いて書かれているため、その実行に当つてはプロ
グラムで指定される論理アドレスを現時点におけ
る実アドレスに変換しながら実行しなければなら
ない。これを行うために従来の処理装置において
は、アドレス変換装置とアドレス管理プログラム
とを用いて、その変換を行なつている。
In a device with such a configuration, when a certain logical address is given, that logical address and MMU
The correspondence between the logical address and the real address and the current existence of the logical address in the real address space change as the program to be processed progresses and are not univocally determined. Generally, processing programs are written using logical addresses, and therefore, when executing the program, the logical addresses designated by the program must be converted into real addresses at the current time. To accomplish this, conventional processing devices use an address translation device and an address management program to perform the translation.

このような従来の処理装置において、中央処理
装置(以下CPU)がチヤンネル装置に、ある処
理の実行を指令する場合は、CPUはMMU中にチ
ヤンネル装置の実行すべきチヤンネルプログラム
を作製し、そのスタートアドレスをチヤンネル装
置に指示してその実行を開始させる。チヤンネル
装置はこうして指示されたチヤンネルプログラム
を順次MMUからよみ出してデコードし、チヤン
ネル装置の具体的に行うべき個々の命令に直して
それを実行してゆく。この実行段階において、チ
ヤンネルプログラムのコマンドの中に、例えば、
このチヤンネル装置が使用すべきデータバツフア
の論理アドレスが現われた場合は、チヤンネル装
置は前記アドレス変換装置を用いて、このデータ
バツフアの実アドレス化を行い、MMU中に実ア
ドレスをもつバツフアとしてその使用を確保す
る。しかし、チヤンネル装置が実アドレス化を行
う場合、もし数多いチヤンネル装置の使用する各
論理アドレスに対してまで、CPUの場合と同様
に、実アドレス論理アドレス間の対応の自由な変
更を許すとすると、その制御がきわめて複雑とな
つてしまう。このため従来はあるチヤンネルプロ
グラム中においてチヤンネル装置がひとたび実ア
ドレス化した論理アドレスは、前述のアドレス管
理プログラムの管理のもとに、その実アドレスを
固定してしまい。そのチヤンネルプログラムの終
了信号が出た時点で初めて前記アドレス管理プロ
グラムでその固定をとくという方式を用いてい
る。しかし、この実アドレス固定化は次のような
問題点をもつている。すなわち、チヤンネル装置
の動作は一般にCPUの動作に対して遅いため、
あるチヤンネル装置用に固定された前記データバ
ツフアの実アドレスはCPUの使用に比較しては
るかに長い期間MMU中の割り当てられたメモリ
エリアを専有し、上記の実アドレス化がすんでか
らそのアドレスが実際に使用されるまでに長い待
時間があつてもそのメモリエリアをCPUや他の
チヤンネル装置に有効に使用させることができな
いという欠点をもつている。本発明の目的は上述
の欠点を除いた仮想記憶型情報処理装置用アドレ
ス変換装置を提供することにある。
In such conventional processing devices, when the central processing unit (hereinafter referred to as CPU) instructs a channel device to execute a certain process, the CPU creates a channel program to be executed by the channel device in the MMU and starts it. Directs the address to the channel device to begin its execution. The channel device sequentially reads the instructed channel program from the MMU, decodes it, converts it into individual commands to be specifically executed by the channel device, and executes the commands. At this stage of execution, some of the commands in the channel program include, for example:
When a logical address of a data buffer to be used by this channel device appears, the channel device converts this data buffer into a real address using the address conversion device and secures its use as a buffer with a real address in the MMU. do. However, when a channel device performs real addressing, if we allow the correspondence between real addresses and logical addresses to be freely changed for each logical address used by a large number of channel devices, as in the case of a CPU. The control becomes extremely complicated. For this reason, conventionally, a logical address once converted into a real address by a channel device in a certain channel program is fixed as a real address under the management of the address management program mentioned above. A method is used in which the address management program fixes the address only when the end signal of the channel program is issued. However, this fixation of real addresses has the following problems. In other words, since the operation of the channel device is generally slower than that of the CPU,
The real address of the data buffer fixed for a certain channel device occupies the allocated memory area in the MMU for a much longer period than the CPU uses, and it is not until after the above real address conversion that the address is actually used. It has the disadvantage that even if there is a long waiting time before it is used, the memory area cannot be used effectively by the CPU or other channel devices. SUMMARY OF THE INVENTION An object of the present invention is to provide an address translation device for a virtual storage type information processing device that eliminates the above-mentioned drawbacks.

本発明の装置は、仮想記憶型情報処理装置用ア
ドレス変換装置において各実ページに対応するレ
ジスタを含むレジスタフアイルと、論理ページの
前記実ページアドレスへの変換において、この変
換されたページの使用条件を含む情報とその実ア
ドレス化を要求した装置を識別する情報とを該実
ページに対応する前記レジスタに書込む手段と、
前記実ページを指定して前記書込まれた情報を読
出す手段と、前記実アドレス化された論理ページ
の追出しに応答して該追出された論理ページに対
応する前記実アドレス化を要求した装置を識別す
る情報を修飾して該修飾情報を読出したときに前
記ページが追出されていることを識別できるよう
にする手段とを備えて構成されている。
The device of the present invention includes a register file including registers corresponding to each real page in an address conversion device for a virtual storage type information processing device, and usage conditions of this converted page in converting a logical page to the real page address. means for writing information including information and information identifying a device that has requested conversion into a real address into the register corresponding to the real page;
means for specifying the real page and reading the written information; and, in response to the ejection of the logical page converted into a real address, requesting the conversion into a real address corresponding to the evicted logical page. and means for modifying information for identifying a device so that when the modification information is read, it can be identified that the page has been evicted.

次に本発明を図面を用いて詳細に説明する。第
1図は本発明の一実施例を示す図である。参照数
字1はアドレス変換装置を示す。このアドレス変
換装置1はページ管理レジスタフアイル(以下フ
アイル)11と、制御部12とからなる。論理ア
ドレスを同じ大きさのブロツクごとにわけこれを
ページを呼ぶことにする。使用する実アドレスの
全空間が全部で“0”から“n”までのn+1個
のページを含む場合は前記フアイル11も各実ペ
ージごとに1つの単位レジスタが対応するように
し、n+1個のレジスタを含むことになる。第1
図において主記憶装置(MMU)3のアドレスは
MMU3の総容量をページサイズに分割し、順番
に実ページ番号をつけ、各実ページごとに前記フ
アイル11の同じ実ページを指示するレジスタと
対応して示している。図の各横一列が1ページ分
の実アドレスに対応している。前記フアイル11
の各レジスタは、第2図に示すように、実アドレ
ス変換を要求した装置を指定する装置ビツトフイ
ールドSと、実アドレス変換を制御するためのデ
ータを含む制御フイールドFとから構成されてい
る。前記フイールドSはアドレス変換の要求を出
す装置ごとに1ビツトのフイールドを割当てる。
そして例えば第5番目のチヤンネル装置6がある
論理ページを実アドレスのRページに変換した場
合は実Rページに対応するレジスタの前記フイー
ルドSの5番目のビツトを“1”とする。前記フ
イールドFは更に変化表示フイールドCとその他
のフイールドKに分れている。前記フイールドC
は現在この実ページに書かれている論理ページ
が、デイスク装置7から読出されてMMU3のこ
の実アドレスに展開された後、その読出された時
の内容に変更が加えられたかどうかを表示する。
すなわち、ある実ページの内容に変更を加えた場
合には対応するページの変化表示フイールドCを
“1”とする。従つて、もしこのフイールドが
“1”の場合にはそのページに変更が加えられた
ことを意味し、この実ページに新しい論理ページ
を展開する場合には、もとのこのページの内容を
デイスク7の該当する論理ページに書いてその論
理ページのデイスクの内容を更新してから新らし
い論理ページを展開しなければならない。このよ
うにフイールドCの内容を考慮してそれに従つて
もとのページ内容を無効にしてそこに新らしい論
理ページを展開することをもとのページの追出し
ということにする。すなわち、変化表示ビツトC
はこのページを追出してその実アドレスに新らし
い論理ページを展開する場合、もとのページの内
容をデイスクに書いてから行う必要があるが、そ
うしないですぐに新らしい論理ページを展開して
もよいかを表示しているビツトがある。次に、ア
クセス要求の起つた論理ページが実アドレス中に
存在せずまたすべての実アドレスがすでに読出さ
れた論理ページで占められている場合は、それら
の既存のページのいずれかを追出して、そこに新
らしく要求のあつた論理ページを展開しなければ
ならないが、その場合にどういうプライオリテイ
でこの選択を行なつたらよいかについての情報を
格納しておくのがその他のフイールドKである。
Next, the present invention will be explained in detail using the drawings. FIG. 1 is a diagram showing an embodiment of the present invention. Reference numeral 1 indicates an address translation device. This address translation device 1 includes a page management register file (hereinafter referred to as file) 11 and a control section 12. The logical addresses are divided into blocks of the same size and these are called pages. If the entire real address space to be used includes n+1 pages from "0" to "n", the file 11 should also have one unit register corresponding to each real page, and n+1 registers. will be included. 1st
In the figure, the address of main memory unit (MMU) 3 is
The total capacity of the MMU 3 is divided into page sizes, real page numbers are assigned in order, and each real page is shown in correspondence with a register indicating the same real page of the file 11. Each horizontal row in the figure corresponds to a real address for one page. The file 11
As shown in FIG. 2, each register consists of a device bit field S that specifies the device that has requested real address translation, and a control field F that contains data for controlling the real address translation. For the field S, a 1-bit field is allocated for each device issuing a request for address translation.
For example, when a logical page of the fifth channel device 6 is converted into an R page of real addresses, the fifth bit of the field S of the register corresponding to the real R page is set to "1". The field F is further divided into a change display field C and another field K. Said field C
Displays whether or not the contents of the logical page currently written to this real page have been changed after being read from the disk device 7 and expanded to this real address of the MMU 3.
That is, when a change is made to the contents of a certain real page, the change display field C of the corresponding page is set to "1". Therefore, if this field is "1", it means that a change has been made to that page, and when expanding a new logical page to this real page, the contents of the original page will be copied to the disk. 7 to the corresponding logical page, update the disk contents of that logical page, and then develop a new logical page. The process of invalidating the original page content and developing a new logical page therein in accordance with the content of field C is called expelling the original page. In other words, change display bit C
If you want to eject this page and deploy a new logical page to its real address, you need to write the contents of the original page to disk before doing so, but even if you do not do this and deploy the new logical page immediately. There is a bit that indicates whether it is good or not. Next, if the logical page for which the access request occurred does not exist among the real addresses and all the real addresses are occupied by already read logical pages, one of those existing pages is evicted, A newly requested logical page must be developed there, and in this case, the other field K stores information regarding the priority with which this selection should be made.

さて以上のアドレス変換装置1を用いて、例え
ば5番目のチヤネル装置6が論理ページLをデー
タバツフアとして使用するためそれを実アドレス
化する場合のプロセスは下記の通りに行う。
Using the address translation device 1 described above, for example, when the fifth channel device 6 converts a logical page L into a real address for use as a data buffer, the process is performed as follows.

(P‐1) 制御部12は前記フアイル11の各レジス
タのKフイールドを調べて最もプライオリテイ
の低いページ(これをページMとする)を選出
する。
(P-1) The control unit 12 examines the K field of each register in the file 11 and selects the page with the lowest priority (this is referred to as page M).

(P‐2) 前記実ページMの前記Cフイールドが
“1”の場合にはMMU3の実ページMの1ペ
ージ分の内容をデイスク装置7の、現在の実ペ
ージMに書かれている論理ページを格納してい
るロケーシヨンにセーブする。
(P-2) If the C field of the real page M is “1”, the contents of one page of the real page M of the MMU 3 are transferred to the logical page written in the current real page M of the disk device 7. Save to the location containing the .

(P‐3) 前記フアイル11の実ページMに対応する
レジスタの前記フイールドSの現在までこの実
ページを使用していたチヤンネル装置(これを
第2番目のチヤンネル装置と仮定する)5に対
応する第2番目のビツトをリセツトする。
(P-3) The field S of the register corresponding to the real page M of the file 11 corresponds to the channel device 5 (assuming this is the second channel device) that has been using this real page until now. Reset the second bit.

(P‐4) デイスク7から論理ページLを読み出し
て、それをMMU3の実ページMに展開格納す
る。
(P-4) Read the logical page L from the disk 7 and expand and store it in the real page M of the MMU 3.

(P‐5) 前記フアイル11の実ページMに対応する
レジスタの前記フイールドSの中の第5番目の
ビツト(このページの要求元である第5番目の
チヤンネル装置に対応するビツト)を“1”に
セツトする。
(P-5) Set the fifth bit in the field S of the register corresponding to the real page M of the file 11 (the bit corresponding to the fifth channel device that is the request source of this page) to "1". ”.

以上が実アドレス化のプロセスであるが次にこ
れを用いて、CPU2が第5番目のチヤンネル装
置6に、ある処理の実行を指令した場合の動作に
ついて説明する。前述のごとく、CPU2はまず
MMU3中に、チヤンネル装置6の実行すべきプ
ログラムを作製しそのスタートアドレスをチヤン
ネル装置6に指示してその実行を開始させる。チ
ヤンネル装置6はこうして指示されたチヤンネル
プログラムを順次MMU3から読出してデコード
し、チヤンネル装置6が具体的に行うべき個々の
命令に直してこれを実行してゆくが、その場合に
チヤンネルプログラムの中にそのチヤンネル装置
6が使用するデータバツフアの論理アドレス(ペ
ージ)が現われると、チヤンネル装置6は前述の
P−1〜P−5のプロセスに従つてそのページの
実アドレス化を実行する。この場合上記P−1〜
P−5のプロセスは実アドレス化を行う装置が
CPU2であろうと他のチヤンネル装置であろう
と全く同じプロセスで行い前述の従来装置の説明
でのべたような区別は行なわない。すなわち、実
アドレス化を行なつた装置がチヤンネル装置の場
合でも従来のようにその実アドレスを固定するこ
となく、従つてCPUや他の装置がきめられたプ
ライオリテイの規則に従つてその実アドレスを使
用するのを自由に許しておく。このような状態で
チヤンネル装置6が、その実アドレス化されたペ
ージを実際に使用する命令(これはチヤンネルプ
ログラムのコマンドをデコードした結果現われる
細分化された命令)を実行するに当つてその実行
前に、制御部12を介して実アドレスを与えるこ
とにより前記フアイル11のその実ページの前記
フイールドSを読み出す。そしてその装置に対応
するビツトがセツトされていたら、そのチヤンネ
ル装置6が実アドレス化したそのページはまだ追
出されないで残つていることを示すので前記命令
を実行し、さらに前記チヤンネルプログラムをそ
のまま続行する。もし、対応する前記フイールド
Sのその装置6に対応するビツトがリセツトされ
ていたら、その時点で、もう一度そのページの実
アドレス化を行なうか、またはそのチヤンネルプ
ログラムがその点において異常終了したことを
CPU2に報告して、それ以降のチヤンネルプロ
グラムの再作成をCPU2に要求する等の方法を
とることができる。
The above is the real addressing process. Next, using this process, the operation when the CPU 2 instructs the fifth channel device 6 to execute a certain process will be explained. As mentioned above, CPU2 is first
A program to be executed by the channel device 6 is created in the MMU 3, and its start address is instructed to the channel device 6 to start its execution. The channel device 6 sequentially reads out the channel program instructed in this way from the MMU 3, decodes it, converts it into individual instructions that the channel device 6 should specifically execute, and executes it. When a logical address (page) of the data buffer used by the channel device 6 appears, the channel device 6 converts the page into a real address according to the process of P-1 to P-5 described above. In this case, the above P-1~
The P-5 process uses a device that performs real addressing.
The process is exactly the same whether it is the CPU 2 or other channel devices, and no distinction is made as mentioned in the description of the conventional device. In other words, even if the device that performs real addressing is a channel device, the real address is not fixed as in the past, but the CPU and other devices use the real address according to the priority rules determined. be free to do so. In this state, when the channel device 6 executes an instruction (this is a fragmented instruction that appears as a result of decoding the command of the channel program) that actually uses the page that has been converted into a real address, , the field S of the real page of the file 11 is read by giving a real address via the control unit 12. If the bit corresponding to that device is set, this indicates that the page that has been converted into a real address by that channel device 6 remains without being evicted, so the above instruction is executed and the channel program continues as is. do. If the bit corresponding to that device 6 in the corresponding field S has been reset, at that point either the page is real addressed again or the channel program terminates abnormally at that point.
It is possible to take a method such as reporting this to the CPU 2 and requesting the CPU 2 to recreate the channel program thereafter.

以上の実施例においては、あるチヤンネル装置
が、そのチヤンネル装置の実アドレス化したペー
ジを実際に使用する段階においてすでにそれが追
出されてしまつているかまだ追出されないで残つ
ているかの情報を得るのに制御部12を介して前
記フアイル11のそのページの装置ビツトフイー
ルドを読み出して、その装置に対応するビツトの
セツト、リセツトを調べて行なつたが、これに対
する他の実施例を第3図に示す。この実施例で
は、割当てステータス記憶部(以下記憶部)13
を、前記フアイル11と制御部12とに付加して
下記のような動作を行なわせる。前記記憶部13
は第3図に示すように、ゲート回路131および
割当てステータス表示レジスタ132、実行装置
番号レジスタ133およびセレクタ134からな
る。そして前述の第5番目のチヤンネル装置6
(第1図)がLページを実アドレス化するための
前記P−1〜P−5のプロセスにおいて前記記憶
部13の上記各構成回路が下記の動作を行うもの
とする。
In the above embodiment, when a certain channel device actually uses a page converted into a real address of that channel device, information is obtained as to whether the page has already been evicted or remains without being evicted. However, the device bit field of that page of the file 11 is read out via the control section 12, and the bits corresponding to the device are set and reset.Another embodiment for this is shown in FIG. Shown below. In this embodiment, the allocation status storage unit (hereinafter referred to as storage unit) 13
is added to the file 11 and control section 12 to perform the following operations. The storage unit 13
As shown in FIG. 3, it consists of a gate circuit 131, an allocation status display register 132, an execution device number register 133, and a selector 134. and the aforementioned fifth channel device 6.
(FIG. 1) assumes that in the processes P-1 to P-5 for converting the L page into a real address, each of the constituent circuits of the storage section 13 performs the following operations.

(Q‐1) 前記P−3のプロセスにおいて第2番目の
チヤンネル装置5(第1図)に対応する前記フ
アイル11のSフイールドの第2番目のビツト
がリセツトされると割当てステータス表示レジ
スタ(以下表示レジスタ)132の対応する第
2番目のビツトがリセツトされる。
(Q-1) In the process of P-3, when the second bit of the S field of the file 11 corresponding to the second channel device 5 (FIG. 1) is reset, the allocation status display register (hereinafter referred to as The corresponding second bit of display register 132 is reset.

(Q‐2) 前記のP−5のプロセスにおいて第5番目
のチヤンネル装置6(第1図)に対応するペー
ジ管理レジスタフアイル11のSフイールドの
第5番目のビツトがセツトされると前記表示レ
ジスタ132の対応する第5番目のビツトがセ
ツトされる。
(Q-2) In the process of P-5, when the fifth bit of the S field of the page management register file 11 corresponding to the fifth channel device 6 (FIG. 1) is set, the display register The corresponding fifth bit of 132 is set.

上記のQ−1およびQ−2の制御により、ある
チヤンネル装置の実アドレス化したページが、す
べて追出されないで存在している場合には、割当
てステータス表示レジスタ132の中のそのチヤ
ンネル装置に対応するビツトはセツトされてい
る。そしてこれはMMU3内のページ割当ての変
化に応じて常に更新されている。この前記表示レ
ジスタ132の内容は、実行装置番号レジスタ
(以下番号レジスタ)133に任意のチヤンネル
装置の番号をセツトすることにより、そのチヤン
ネル装置に対応するビツトをセレクタ134の出
力に読み出すことができる。従つて、チヤンネル
装置が前記の実アドレス化されたページを使用す
る命令を実行する前に前記フアイルのそのページ
を読み出して前記フイールドSのそのチヤンネル
装置に対応するビツトがセツトされているか否か
をしらべるかわりに、前記番号レジスタ133に
そのチヤンネル番号をセツトすることによつてセ
レクタ134の出力より直ちにそのチヤンネル装
置が実アドレス化したページがすべて追出されな
いで残つているか否かの情報を得ることができ
る。従つて、この出力により制御部12は前述し
たと同様に以後のプロセスを制御する。
Under the control of Q-1 and Q-2 above, if all the pages converted into real addresses of a certain channel device exist without being evicted, they correspond to that channel device in the allocation status display register 132. bit is set. This is constantly updated according to changes in page allocation within the MMU3. By setting the number of an arbitrary channel device in the execution device number register (hereinafter referred to as number register) 133, the contents of the display register 132 can read out the bits corresponding to that channel device to the output of the selector 134. Therefore, before a channel device executes an instruction that uses said real addressed page, it reads that page of said file and checks whether the bit corresponding to said channel device in said field S is set. Instead of checking, by setting the channel number in the number register 133, it is possible to immediately obtain information from the output of the selector 134 as to whether or not all pages converted into real addresses by the channel device remain without being evicted. I can do it. Therefore, based on this output, the control section 12 controls subsequent processes in the same manner as described above.

また、他の例として従来の方式の中には、チヤ
ンネル装置の側では全く実アドレス化を行なわな
い方式がある。この方式ではCPUがチヤンネル
装置にある処理を指令する場合、まず、チヤンネ
ルプログラムを作り、それの実行をチヤンネル装
置に指令する前に、CPUがそのチヤンネルプロ
グラムの論理アドレスを実アドレスに変換し、さ
らに、その実アドレスをアドレス管理プログラム
を用いて固定してから、そのチヤンネルプログラ
ムの実行をチヤンネル装置に指令する。この場合
でも本発明を以下のようにして適用することがで
きる。
As another example, some conventional methods do not perform real addressing at all on the channel device side. In this method, when the CPU instructs a channel device to perform a certain process, it first creates a channel program, and before instructing the channel device to execute it, the CPU converts the logical address of the channel program into a real address, and then , fixes the real address using an address management program, and then instructs the channel device to execute the channel program. Even in this case, the present invention can be applied as follows.

すなわち、CPUがチヤンネルプログラム中の
論理アドレス(ページ)を実アドレス化する場合
には、本発明のアドレス変換装置(以下変換装
置)を用いて、前述のP−1〜P−5のプロセス
に準じて行ない、従来のように実アドレス化され
たページを固定化することをしないでおく。また
前記変換装置としては、例えば、前記記憶部を含
む第3図の装置を用い、チヤンネル装置が実アド
レス化されたアドレスを含む命令を実行する前
に、そのチヤンネル装置番号を前記番号レジスタ
133にセツトすることにより、その実アドレス
化されたページが現時点で追出されているか否か
を読み出し、それに従つて前述のようにそのまま
実行を続けるか、または異常終了としてCPUに
報告するかを決定する。
That is, when the CPU converts a logical address (page) in a channel program into a real address, it uses the address conversion device (hereinafter referred to as conversion device) of the present invention and converts it according to the processes P-1 to P-5 described above. Instead of fixing pages with real addresses as in the past. Further, as the conversion device, for example, the device shown in FIG. By setting this, it is read whether or not the page with the real address has been evicted at the present time, and accordingly it is determined whether to continue execution as described above or to report it to the CPU as abnormal termination.

以上のように、従来の仮想記憶型情報処理装置
においては、チヤンネル装置の使用するMMU内
の実アドレスを、そのチヤンネル装置に対するチ
ヤンネルプログラムが終了するまで固定しておか
なければならず。そのためたとえ実際にそのチヤ
ンネル装置がその実アドレスを使用していない間
でも、そのメモリ部分を専有してしまつて、それ
をもつと効果的に使用できるCPUや他のチヤン
ネル装置に使用させることができないという欠点
がある。それを本発明を用いてチヤンネル装置に
割り当てられた実アドレスに対しても自由にその
追出しを許すことにより上記の欠点を除き、これ
により情報処理装置全体の効果的な使用を可能に
している。また、プログラム上からはチヤンネル
装置の実アドレス化に対する処理と、CPUの実
アドレス化に対する処理とを同一に取り扱うこと
を可能にし、チヤンネル装置の使用する実アドレ
スの固定化を不要にしたことと相まつて、プログ
ラムに対する負荷を大いに軽減できる。
As described above, in conventional virtual memory type information processing devices, the real address in the MMU used by a channel device must be fixed until the channel program for that channel device is completed. Therefore, even when the channel device is not actually using the real address, it monopolizes that memory part and cannot make it available to the CPU or other channel devices that could use it effectively. There are drawbacks. By using the present invention, the above-mentioned drawbacks are eliminated by allowing the real addresses assigned to channel devices to be freely removed, thereby making it possible to use the information processing device as a whole effectively. In addition, from a program perspective, processing for converting channel devices to real addresses and processing for converting CPU to real addresses can be handled in the same way, making it unnecessary to fix the real addresses used by channel devices. This can greatly reduce the load on the program.

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

第1図は本発明の一実施例を示す図、第2図は
ページ管理レジスタフアイルの中の各レジスタの
フイールドのフオーマツトを示す図および第3図
は別の実施例を示す図である。図において、 1……アドレス変換装置、2……中央処理装置
(CPU)、3……主記憶装置、4……第1番目の
チヤンネル装置、5……第2番目のチヤンネル装
置、6……第5番目のチヤンネル装置、7……デ
イスク装置、11……ページ管理レジスタフアイ
ル、12……制御部、13……割当てステータス
記憶部、131……ゲート回路、132……ステ
ータス表示レジスタ、133……実行装置番号レ
ジスタ、134……セレクタ。
FIG. 1 is a diagram showing one embodiment of the present invention, FIG. 2 is a diagram showing the format of fields of each register in a page management register file, and FIG. 3 is a diagram showing another embodiment. In the figure, 1... address translation device, 2... central processing unit (CPU), 3... main storage device, 4... first channel device, 5... second channel device, 6... 5th channel device, 7... Disk device, 11... Page management register file, 12... Control unit, 13... Allocation status storage unit, 131... Gate circuit, 132... Status display register, 133... ...Execution device number register, 134...Selector.

Claims (1)

【特許請求の範囲】[Claims] 1 仮想記憶型情報処理装置用アドレス変換装置
において、各実ページに対応するレジスタを含む
レジスタフアイルと、論理ページの前記実ページ
アドレスへの変換においてこの変換されたページ
の使用条件を含む情報とその実アドレス化を要求
した装置を識別する情報とを該実ページに対応す
る前記レジスタに書込む手段と、前記実ページを
指定して前記書込まれた情報を読出す手段と、前
記実アドレス化された論理ページの追出しに応答
して該追出された論理ページに対応する前記実ア
ドレス化を要求した装置を識別する情報を修飾し
て該修飾情報を読出したときに前記ページが追出
されていることを識別できるようにする手段とを
備えたことを特徴とするアドレス変換装置。
1. In an address translation device for a virtual memory type information processing device, a register file containing registers corresponding to each real page, information including usage conditions of this converted page in the conversion of a logical page to the real page address, and its implementation. means for writing information identifying a device that has requested addressing into the register corresponding to the real page; means for specifying the real page and reading the written information; and means for reading out the written information by specifying the real page; When the page is evicted when, in response to the ejection of the logical page that has been evicted, the information identifying the device that requested the real addressing corresponding to the evicted logical page is modified and the qualified information is read. 1. An address translation device characterized by comprising: means for identifying that a person is present.
JP3647080A 1980-03-21 1980-03-21 Address converter Granted JPS56134380A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3647080A JPS56134380A (en) 1980-03-21 1980-03-21 Address converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3647080A JPS56134380A (en) 1980-03-21 1980-03-21 Address converter

Publications (2)

Publication Number Publication Date
JPS56134380A JPS56134380A (en) 1981-10-21
JPS6149704B2 true JPS6149704B2 (en) 1986-10-30

Family

ID=12470693

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3647080A Granted JPS56134380A (en) 1980-03-21 1980-03-21 Address converter

Country Status (1)

Country Link
JP (1) JPS56134380A (en)

Also Published As

Publication number Publication date
JPS56134380A (en) 1981-10-21

Similar Documents

Publication Publication Date Title
US5461721A (en) System for transferring data between I/O devices and main or expanded storage under dynamic control of independent indirect address words (IDAWs)
US5604889A (en) Memory management system for checkpointed logic simulator with increased locality of data
JPS6376034A (en) Multiple address space control method
US4975872A (en) Dual port memory device with tag bit marking
JPH0115903B2 (en)
JPS5844263B2 (en) memory control circuit
US4628450A (en) Data processing system having a local memory which does not use a directory device with distributed resident programs and a method therefor
JPS6319058A (en) Memory device
JPS6149704B2 (en)
JPS6032220B2 (en) information processing equipment
US5434979A (en) Disk drive controller
JP2000029508A (en) Programmable controller
JPH05250263A (en) Virtual processor method and non-volatile storage method
JPS60134940A (en) Register selection method for information processing equipment
JP2735400B2 (en) Asynchronous I/O control method
JPS63237143A (en) Programmable controller
JPS5840273B2 (en) Data search
JPS61127050A (en) Memory control system
JPH05265942A (en) Data input / output method in DMA controller
JPS6124737B2 (en)
JPS6229813B2 (en)
JP2002024077A (en) Semiconductor memory write control device and method
JPS6214244A (en) Virtual storage control system
JPS59161751A (en) Command running address recording device
JPH03158943A (en) Buffer storage/transfer system