JPH03204744A - Address converting mechanism - Google Patents

Address converting mechanism

Info

Publication number
JPH03204744A
JPH03204744A JP2001837A JP183790A JPH03204744A JP H03204744 A JPH03204744 A JP H03204744A JP 2001837 A JP2001837 A JP 2001837A JP 183790 A JP183790 A JP 183790A JP H03204744 A JPH03204744 A JP H03204744A
Authority
JP
Japan
Prior art keywords
task
table information
identifier
bit
updating
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
JP2001837A
Other languages
Japanese (ja)
Inventor
Kaoru Kuwata
桑田 薫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2001837A priority Critical patent/JPH03204744A/en
Publication of JPH03204744A publication Critical patent/JPH03204744A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To prevent a useless updating processing by updating the table information only when a bit of a table discriminating means is not set, although a bit of a task discriminating means is set. CONSTITUTION:At the time of reading in an address when an execution unit 2 is executing some task, a logic circuit 9 calculates logically the corresponding bit of a table identifier 3 and a task identifier 4, decides whether table information set onto a conversion table 1 at present belongs to the task which the execution unit 2 is executed at present or not, and sends a trap signal to an instruction sequencer 5 only when an updating processing of the table information is necessary. In the case the trap signal from the logic circuit 9 is received, the instruction sequencer 5 commands an execution discontinuance of an instruction to the execution unit 2, and transfers the control to the processing for updating the table information. In such a way, a defect which a conventional address converting mechanism such as the updating processing is executed uselessly in spite of a fact that it is unnecessary to execute the updating processing of the table information can be eliminated.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置のアドレス変換機構に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to an address translation mechanism for an information processing device.

〔従来の技術〕[Conventional technology]

情報処理装置の中央処理装置上で、仮想記憶装置を用い
てタスクを実行する際、データ又は命令のアドレスは、
それぞれの仮想記憶アドレスから実記憶アドレスにアド
レス変換される。このアドレス変換は変換テーブル上の
テーブル情報に基いて行われるので、複数のタスクを実
行しようとすると、通常、複数のテーブル情報が必要で
ある。
When a task is executed using a virtual storage device on the central processing unit of an information processing device, the address of data or instructions is
Address translation is performed from each virtual memory address to a real memory address. This address translation is performed based on the table information on the translation table, so if multiple tasks are to be executed, multiple pieces of table information are usually required.

今、あるタスクを実行中にアドレス変換を行う場合には
、現在変換テーブル上にセットされているテーブル情報
が現在実行中のタスクのものであるかどうかを識別し、
若し実行中のタスクのものでない場合には、テーブル情
報を実行中のタスクのものに更新しなければならない。
If address translation is to be performed while a certain task is currently being executed, identify whether the table information currently set on the translation table is for the task currently being executed,
If it does not belong to the task currently being executed, the table information must be updated to that of the task currently being executed.

このため、アドレス変換機構には、現在実行中のタスク
を表わすタスク識別子と、現在変換テーブル上にセット
されているテーブル情報がどのタスクに属するものであ
るかを表わすテーブル識別子とが必要である。
Therefore, the address translation mechanism requires a task identifier that indicates the task currently being executed, and a table identifier that indicates which task the table information currently set on the translation table belongs to.

従来のアドレス変換機構では、タスク識別子及びテーブ
ル識別子の内容は、各タスク毎に割り当てられた特異な
数値で表わされ、各タスクと1対1に対応していた。
In the conventional address translation mechanism, the contents of the task identifier and table identifier are represented by unique numerical values assigned to each task, and correspond to each task on a one-to-one basis.

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

上述した従来のアドレス変換機構では、1つのテーブル
識別子の内容は、特定の1つのタスクしか表現できない
、このため、いくつかのタスク間で1つのテーブル情報
を共通で使用しようとする場合、あるタスクを実行する
に当って、テーブル情報を更新する必要がないにも係わ
らず、無駄に更新処理を実行してしまうという欠点があ
った。
In the conventional address translation mechanism described above, the contents of one table identifier can only represent one specific task. Therefore, when attempting to use one table information in common among several tasks, if one task When executing this method, there is a drawback that the update processing is executed in vain even though there is no need to update the table information.

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

本発明のアドレス変換機構は、 仮想記憶装置を用いて複数のタスクが実行される情報処
理装置の中央処理装置上で、変換テーブルを介して仮想
記憶アドレスを実記憶アドレスへ変換するアドレス変換
機構において、 実行中のタスクをビットで表わすタスク識別手段と、 前記変換テーブル上のテーブル情報がどのタスクに属す
るかを前記タスク識別手段と同じビットで表わすテーブ
ル識別手段と、 アドレスを読み込んだ際、前記タスク識別手段の各ビッ
トと前記テーブル識別手段の各ビットとを比較し、前記
タスク識別手段のビットがセットされているにもかかわ
らず前記テーブル識別手段のビットがセットされていな
い時にのみ前記テーブル情報を更新する処理へ制御を移
す手段とを有している。
The address translation mechanism of the present invention is an address translation mechanism that converts a virtual memory address to a real memory address via a translation table on a central processing unit of an information processing device in which a plurality of tasks are executed using a virtual memory device. , task identification means for representing the task being executed in bits; table identification means for representing to which task the table information on the conversion table belongs using the same bits as the task identification means; Compare each bit of the identification means with each bit of the table identification means, and read the table information only when the bit of the table identification means is not set even though the bit of the task identification means is set. and means for transferring control to the updating process.

〔実施例〕〔Example〕

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

第1図は本発明の実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

実行ユニット2は命令を実行する際、変換テーブル1上
のテーブル情報に従って命令やデータの仮想記憶アドレ
スを実記憶アドレスにアドレス変換する。テーブル識別
子3は現在変換テーブル1上にセットされているテーブ
ル情報がどのタスクに属するものであるかを表わす、タ
スク識別子4は実行ユニット2が現在実行中のタスクを
表わす。テーブル識別子3及びタスク識別子4は、各々
、中央処理装置上で実行するタスクの数nと同じ桁数(
9桁)のビットからなり、1ビツト毎に1タスクが対応
している。且つ、テーブル識別子3とタスク識別子4は
同じビットで同じタスクを表している。
When executing an instruction, the execution unit 2 converts the virtual storage address of the instruction or data into a real storage address according to the table information on the conversion table 1. The table identifier 3 indicates to which task the table information currently set on the conversion table 1 belongs, and the task identifier 4 indicates the task that the execution unit 2 is currently executing. Table identifier 3 and task identifier 4 each have the same number of digits (n) as the number n of tasks executed on the central processing unit.
Each bit corresponds to one task. Furthermore, table identifier 3 and task identifier 4 have the same bits and represent the same task.

現在変換テーブル1上にセットされているテーブル情報
がどのタスクに属するか及び実行ユニ・ント2が現在ど
のタスクを実行中であるかは、テーブル識別子3及びタ
スク識別子4の各桁のビットがO“か1′′かによって
表わすことができる。
To which task the table information currently set on the conversion table 1 belongs and which task the execution unit 2 is currently executing is determined by the bits in each digit of the table identifier 3 and task identifier 4 being set to O. It can be expressed by " or 1''.

論理回路9は、実行ユニット2があるタスクを実行中に
アドレスを読み込む際、テーブル識別子3とタスク識別
子4の対応するビットを論理演算して、現在変換テーブ
ル1上にセットされているテーブル情報が、実行ユニッ
ト2が現在実行中のタスクに属するものかどうかを判定
し、テーブル情報の更新処理が必要な時にのみトラップ
信号を命令シーケンサ5に送る。
When the execution unit 2 reads an address while executing a certain task, the logic circuit 9 performs a logical operation on the corresponding bits of the table identifier 3 and the task identifier 4, and calculates the table information currently set on the conversion table 1. , determines whether the execution unit 2 belongs to the task currently being executed, and sends a trap signal to the instruction sequencer 5 only when table information update processing is necessary.

命令シーケンサ5は論理回路9からのトラップ信号を受
けた場合には実行ユニット2に命令の実行中断を指令し
、テーブル情報を更新する処理へ制御を移す。
When the instruction sequencer 5 receives a trap signal from the logic circuit 9, it instructs the execution unit 2 to interrupt execution of the instruction, and transfers control to a process of updating table information.

ここで、テーブル情報の更新処理とは、命令シーケンサ
5が、メモリ6上に保持された実行中のタスク専用のテ
ーブル情報をバス7からバスインターフェイス8を通し
て変換テーブル1にセットすると共に、そのテーブル情
報がどのタスクに属するかをテーブル識別子3にセット
することである。
Here, the table information update process means that the instruction sequencer 5 sets the table information dedicated to the task being executed held in the memory 6 into the conversion table 1 from the bus 7 through the bus interface 8, and also sets the table information This is to set table identifier 3 to which task the task belongs.

次に、テーブル識別子3.タスク識別子4及び論理回路
9の動作について説明する。なお、論理回路9がトラッ
プ信号を送出した後のテーブル情報の更新処理について
は公知の技術であるので説明を省略する。
Next, table identifier 3. The operations of the task identifier 4 and the logic circuit 9 will be explained. Note that the table information updating process after the logic circuit 9 sends out the trap signal is a well-known technique, so a description thereof will be omitted.

まず、ある1つのタスクについて、テーブル識別子3上
でこのタスクを表わすビット及びタスク識別子4上のこ
れと対応するビットを考える。この時、おのおのの識別
子のビット及びテーブル情報の更新処理の要否について
次のように定義する。
First, regarding a certain task, consider the bit representing this task on table identifier 3 and the corresponding bit on task identifier 4. At this time, the necessity of updating the bits of each identifier and the table information is defined as follows.

(1)テーブル識別子のビットについて。(1) Regarding the bits of the table identifier.

” 1 ”・・・テーブル情報がこのタスクに属する。"1"...Table information belongs to this task.

” o ”・・・テーブル情報がこのタスクに属さない (2)タスク識別子のビットについて。"o"...Table information does not belong to this task (2) Regarding the task identifier bits.

“1″・・・実行ユニット2がこのタスクを実行中であ
る。
“1”: Execution unit 2 is executing this task.

” o ”・・・実行ユニット2がこのタスクを非実行
中である。
"o"...Execution unit 2 is not executing this task.

(3)テーブル情報の更新処理の要否について。(3) Regarding the necessity of updating table information.

“′1”・・・テーブル情報の更新処理を必要とする。“'1”: Table information update processing is required.

” o ”・・・テーブル情報の更新処理を必要としな
い。
“o”: Table information update processing is not required.

このように定義すると、テーブル情報の更新処理を必要
とするのは実行ユニット2がこのタスクを実行中で且つ
変換テーブル1上にセットされたテーブル情報がこのタ
スクに属さない場合だけであるので、タスク識別子のビ
ットが1″′で且つテーブル識別子のビットが°“0“
′の時だけテーブル情報の更新処理の要否が“1”とな
り、他の場合は全て“0″である。以上の論理関係は、
第2図(a)のように表わされる。
With this definition, table information update processing is required only when execution unit 2 is executing this task and the table information set on conversion table 1 does not belong to this task. If the task identifier bit is 1'' and the table identifier bit is °“0”
The necessity of table information update processing is "1" only when ', and is "0" in all other cases. The above logical relationship is
It is expressed as shown in FIG. 2(a).

第2図(a)で表わされる論理関係は、一般に入力をA
及びB、出力をXとした時、第2図(b)に示す真理値
表で表わされるように、入力Aの否定AとBの論理積回
路で実現できる。
The logical relationship shown in Fig. 2(a) generally indicates that the input is A.
and B, and when the output is X, it can be realized by an AND circuit of negation A and B of input A, as shown in the truth table shown in FIG. 2(b).

本実施例では、第2図の論理回路9に示すように、前述
の入力Aにテーブル識別子3の出力を、又、入力Bにタ
スク識別子4の出力を対応させることにより、実行ユニ
ット2があるタスクを実行中で且つテーブル情報がこの
タスクに属さない時にだけテーブル情報の更新処理が行
われる。
In this embodiment, as shown in the logic circuit 9 of FIG. 2, the execution unit 2 is created by associating the output of the table identifier 3 with the input A and the output of the task identifier 4 with the input B. The table information update process is performed only when a task is being executed and the table information does not belong to this task.

次に、複数のタスクについて考える。この場合は、テー
ブル識別子3とタスク識別子4の全ての対応するビット
毎に、個々に、前述した論理演算を実行する。この結果
、全ビットの演算結果が“0″の時はテーブル情報の更
新は不要である。
Next, think about multiple tasks. In this case, the above-described logical operation is performed individually for all corresponding bits of table identifier 3 and task identifier 4. As a result, when the operation results for all bits are "0", there is no need to update the table information.

しかし、どれか1つのビットでも演算結果に“1″があ
ればテーブル情報の更新処理が必要であるり、トラップ
信号が送出されなければならない。
However, if the calculation result for any one bit is "1", it is necessary to update the table information, or a trap signal must be sent.

この論理関係は、前述したテーブル識別子3とタスク識
別子4の対応する各ビット毎の論理演算結果の論理和で
表わされ、第2図の論理回路9で示すような論理和回路
で実現できる。
This logical relationship is expressed by the logical sum of the logical operation results for each corresponding bit of the table identifier 3 and task identifier 4 described above, and can be realized by a logical sum circuit such as the logical circuit 9 shown in FIG.

以上の説明から明らかなように、テーブル識別子3.タ
スク識別子4及び論理回路9を第2図で示すように構成
した本実施例では、1つのテーブル情報を複数のタスク
で共通に使用する場合、現在変換テーブル1上にセット
されているテーブル情報が、実行ユニット2が現在実行
中のタスクに属していない時にのみテーブル情報の更新
処理が行われる。
As is clear from the above explanation, table identifier 3. In this embodiment, in which the task identifier 4 and the logic circuit 9 are configured as shown in FIG. , the table information update process is performed only when the execution unit 2 does not belong to the task currently being executed.

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

以上説明したように本発明では、タスク識別子及びテー
ブル識別子の内容が、1ビツトに1タスクが対応して表
わされる。
As explained above, according to the present invention, the contents of the task identifier and table identifier are represented by one task corresponding to one bit.

従って、あるテーブル情報が複数のタスクに属している
場合でも、テーブル識別子上でそれらのタスクに対応す
るビットをセットすることによって、そのテーブル情報
が属する複数のタスクを表わすことができる。
Therefore, even if certain table information belongs to multiple tasks, the multiple tasks to which the table information belongs can be represented by setting bits corresponding to those tasks on the table identifier.

このため、実行ユニットがタスクを実行する際に、テー
ブル識別子の内容とタスク識別子の内容とを比較するこ
とによって、変換テーブル上にセットされているテーブ
ル情報が、現在実行中のタスクに属さない時にだけテー
ブル情報の更新処理が行われるようにできる。
Therefore, when the execution unit executes a task, by comparing the contents of the table identifier and the contents of the task identifier, if the table information set on the conversion table does not belong to the task currently being executed, It is possible to update the table information only by updating the table information.

従って、テーブル情報の更新処理をする必要がないにも
係わらず、無駄に更新処理が実行されてしまうという従
来のアドレス変換機構のもつ欠点を除去することができ
る。
Therefore, it is possible to eliminate the drawback of the conventional address translation mechanism that updating processing of table information is executed in vain even though there is no need to update processing of table information.

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

第1図は本発明によるアドレス変換機構の実施例を示す
ブロック図、第2図(a)及び(b)は本発明の実施例
のテーブル識別子の内容とタスク識別子の内容の論理関
係を表わす図である。 1・・・変換テーブル、2・・・実行ユニット、3・・
・テーブル識別子、4・・・タスク識別子、5・・・命
令シーケンサ、6・・・メモリ、7・・・バス、8・・
・バスインターフェイス、9・・・論理回路。
FIG. 1 is a block diagram showing an embodiment of the address translation mechanism according to the present invention, and FIGS. 2(a) and (b) are diagrams showing the logical relationship between the contents of the table identifier and the contents of the task identifier in the embodiment of the present invention. It is. 1... Conversion table, 2... Execution unit, 3...
・Table identifier, 4...Task identifier, 5...Instruction sequencer, 6...Memory, 7...Bus, 8...
- Bus interface, 9...logic circuit.

Claims (1)

【特許請求の範囲】  仮想記憶装置を用いて複数のタスクが実行される情報
処理装置の中央処理装置上で、変換テーブルを介して仮
想記憶アドレスを実記憶アドレスへ変換するアドレス変
換機構において、 実行中のタスクをビットで表わすタスク識別手段と、 前記変換テーブル上のテーブル情報がどのタスクに属す
るかを前記タスク識別手段と同じビットで表わすテーブ
ル識別手段と、 アドレスを読み込んだ際、前記タスク識別手段の各ビッ
トと前記テーブル識別手段の各ビットとを比較し、前記
タスク識別手段のビットがセットされているにもかかわ
らず前記テーブル識別手段のビットがセットされていな
い時にのみ前記テーブル情報を更新する処理へ制御を移
す手段とを有することを特徴とするアドレス変換機構。
[Scope of Claim] In an address conversion mechanism that converts a virtual memory address to a real memory address via a conversion table on a central processing unit of an information processing device in which a plurality of tasks are executed using a virtual memory device, task identification means for representing a task in the conversion table with bits; table identification means for representing to which task the table information on the conversion table belongs using the same bits as the task identification means; and the task identification means when reading an address. and each bit of the table identification means, and update the table information only when the bit of the table identification means is not set even though the bit of the task identification means is set. An address translation mechanism comprising: means for transferring control to processing.
JP2001837A 1990-01-08 1990-01-08 Address converting mechanism Pending JPH03204744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001837A JPH03204744A (en) 1990-01-08 1990-01-08 Address converting mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001837A JPH03204744A (en) 1990-01-08 1990-01-08 Address converting mechanism

Publications (1)

Publication Number Publication Date
JPH03204744A true JPH03204744A (en) 1991-09-06

Family

ID=11512672

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001837A Pending JPH03204744A (en) 1990-01-08 1990-01-08 Address converting mechanism

Country Status (1)

Country Link
JP (1) JPH03204744A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009064462A (en) * 2008-10-27 2009-03-26 Toshiba Corp Microprocessor
US7673155B2 (en) 2001-09-28 2010-03-02 Kabushiki Kaisha Toshiba Microprocessor with improved task management and table management mechanism

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7673155B2 (en) 2001-09-28 2010-03-02 Kabushiki Kaisha Toshiba Microprocessor with improved task management and table management mechanism
JP2009064462A (en) * 2008-10-27 2009-03-26 Toshiba Corp Microprocessor
JP4643702B2 (en) * 2008-10-27 2011-03-02 株式会社東芝 Microprocessor

Similar Documents

Publication Publication Date Title
JP4801605B2 (en) SIMD type microprocessor
EP0077619B1 (en) Data-packet driven digital computer
JPH05127926A (en) Task controller
JPH03204744A (en) Address converting mechanism
EP0660229B1 (en) Method and apparatus for modifying the contents of a register
JPH02162422A (en) Preference branch circuit
US5561818A (en) Microprocessor and data processing system for data transfer using a register file
JPS61184643A (en) Starting control system for virtual computer
JPS59218569A (en) Microcomputer
JP2556083B2 (en) Complex arithmetic pipeline circuit
JPH025104A (en) Arithmetic processing unit
JPS6327746B2 (en)
GB2107497A (en) Digital computers
JPH01113806A (en) Sequence controller
JPH0399321A (en) Instruction control system
JPS6362065A (en) Data transfer control system
JPS59144955A (en) Information processor
JPS6393045A (en) Microprogram controller
JPH0418658A (en) Function distributed computer system
JPH07146839A (en) Dma circuit
JPS6057440A (en) Information processor
JPH04170653A (en) Cache memory system
KR19980073799A (en) Device Determination Method of Programmable Logic Controller Loader
JPH04293159A (en) Vector data processor
JPS6367635A (en) Microprogram controller