JPH07319694A - Processor controller - Google Patents

Processor controller

Info

Publication number
JPH07319694A
JPH07319694A JP11529994A JP11529994A JPH07319694A JP H07319694 A JPH07319694 A JP H07319694A JP 11529994 A JP11529994 A JP 11529994A JP 11529994 A JP11529994 A JP 11529994A JP H07319694 A JPH07319694 A JP H07319694A
Authority
JP
Japan
Prior art keywords
instruction
processor
mode
flag
integer
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.)
Granted
Application number
JP11529994A
Other languages
Japanese (ja)
Other versions
JP3481301B2 (en
Inventor
Koji Ishizuka
孝治 石塚
Yuji Kamisaka
裕士 神阪
Kazuyasu Nonomura
一泰 野々村
Toru Watabe
徹 渡部
Takumi Maruyama
拓己 丸山
Shinya Kato
慎哉 加藤
Takumi Takeno
巧 竹野
Chiyonsuwannapaisaan Poonshiyai
ポーンシャイ・チョンスワンナパイサーン
Takumi Nonaka
巧 野中
Katsunori Takeshita
克典 竹下
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP11529994A priority Critical patent/JP3481301B2/en
Publication of JPH07319694A publication Critical patent/JPH07319694A/en
Application granted granted Critical
Publication of JP3481301B2 publication Critical patent/JP3481301B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To set the integer instruction execution mode of a processor which is not controlled by a floating-point instruction execution mode by individually setting the execution modes of an integer instruction and a floating-point instruction and dynamically changing the setting during the operations of the respective instructions CONSTITUTION:Flags F1 and F2 for setting the instruction execution modes are written by a write part 1 and the states of the flags F1 and F2 are read by a read part 2. For instance, the flag Fl indicates the integer instruction execution mode and an instruction processing part for executing the integer instruction is operated in a scalar mode when the flag F1 is '0' and is operated in a single mode when the flag F1 is '1.' Also, the flag F2 indicates the floating point instruction execution mode and the instruction processing part for executing the floating point instruction is operated in the scalar mode when the flag F2 is '0' and is operated in the single mode when the flag F2 is '1'.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はプロセッサ制御装置に係
り、特に浮動小数点命令と整数命令を同時に実行できる
プロセッサの制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a processor controller, and more particularly to a processor controller capable of simultaneously executing floating point instructions and integer instructions.

【0002】[0002]

【従来の技術】従来のプロセッサ制御装置では、命令で
扱う数値が指数部と仮数部のある形を持つ浮動小数点命
令と、指数部と仮数部の区別がない形の整数だけの整数
命令と命令実行モードは、区別されていなかった。ま
た、命令実行モードは、起動時に、複数の命令が同時に
実行されるスカラモードか1つの命令が実行されるシン
グルモードのいずれかに設定され、その後の設定変更は
できなかった。例えば命令実行中にスカラモード←→シ
ングルモードに設定変更することはできなかった。
2. Description of the Related Art In a conventional processor control device, a floating point instruction in which a numerical value handled by an instruction has a form having an exponent part and a mantissa part, and an integer instruction and an instruction having only integers in a form having no distinction between the exponent part and the mantissa part The execution modes were not distinguished. Further, the instruction execution mode is set to either a scalar mode in which a plurality of instructions are executed at the same time or a single mode in which one instruction is executed at the time of activation, and the setting cannot be changed thereafter. For example, it was not possible to change the setting from scalar mode to single mode during instruction execution.

【0003】即ち、図4(A)に示す如く、整数命令を
処理するプロセッサ10に、浮動小数点命令を処理する
コプロセッサ11を接続する。そしてコプロセッサ11
の制御をプロセッサ10に設けたプロセッサ制御部で行
う。そしてこのプロセッサ10とコプロセッサ11との
全体により整数命令と浮動小数点命令を処理する。ま
た、図4(B)に示す如く、1つプロセッサで整数命令
と浮動小数点命令を処理する場合もある。そして両方と
もスカラモードかシングルモードかのいずれか一方に設
定され、動作中にこのモード変更を行うことができなか
った。
That is, as shown in FIG. 4A, a coprocessor 11 for processing floating point instructions is connected to a processor 10 for processing integer instructions. And coprocessor 11
Is controlled by the processor control unit provided in the processor 10. The whole processor 10 and coprocessor 11 process integer instructions and floating point instructions. Further, as shown in FIG. 4B, one processor may process an integer instruction and a floating point instruction. Both were set to either scalar mode or single mode, and this mode could not be changed during operation.

【0004】[0004]

【発明が解決しようとする課題】このように、プロセッ
サ10に、浮動小数点命令処理用のコプロセッサ11を
外付けする場合、プロセッサ10の整数命令実行モード
はコプロセッサ11の命令実行モードと合わせなければ
ならない。従って、プロセッサ10がスカラモード及び
シングルモードの両方で動作可能であっても、コプロセ
ッサ11がシングルモードでしか動作できない場合は、
全体ではシングルモードしか動作できない。
As described above, when the coprocessor 11 for floating point instruction processing is externally attached to the processor 10, the integer instruction execution mode of the processor 10 must match the instruction execution mode of the coprocessor 11. I have to. Therefore, even if the processor 10 can operate in both the scalar mode and the single mode, if the coprocessor 11 can operate only in the single mode,
Only single mode can operate as a whole.

【0005】また、1つのプロセッサで整数命令と浮動
小数点命令を処理するときでも実行モードを合わせなけ
ればいけない。さらに、命令実行モードがスカラモード
に固定される場合、プログラムのデバッグ作業が複雑に
なるという問題がある。即ち複数の命令を同時に実行す
るとき、特定の命令の実行が終わったとき、その実行状
態をチェックしたい場合があるが、動作確認処理が1命
令ずつ実行する場合に比較して複雑になる。しかもスカ
ラモードのとき、複数の命令を実行している途中で複数
の例外(割込み)が同時に発生することもあり、この例
外を処理するためのハードウェアも複雑になるという問
題もある。
In addition, the execution modes must be matched even when an integer instruction and a floating point instruction are processed by one processor. Further, when the instruction execution mode is fixed to the scalar mode, there is a problem that the debugging work of the program becomes complicated. That is, when a plurality of instructions are executed at the same time, or when the execution of a specific instruction is finished, it may be desired to check the execution state, but the operation confirmation process becomes complicated as compared with the case of executing one instruction at a time. Moreover, in the scalar mode, a plurality of exceptions (interrupts) may occur at the same time during the execution of a plurality of instructions, and the hardware for handling the exceptions becomes complicated.

【0006】本発明の目的は、これらの問題を解決する
ため、プロセッサ(及びコプロセッサ)の整数命令と浮
動小数点命令との実行モードを個別に設定可能にすると
ともに、この設定を各命令の動作中にダイナミックに変
更可能にすることにより、浮動小数点命令実行モードに
左右されないプロセッサの整数命令実行モードの設定を
可能にしたプロセッサ制御装置を提供することである。
In order to solve these problems, an object of the present invention is to make it possible to individually set the execution mode of an integer instruction and a floating point instruction of a processor (and a coprocessor), and set this operation for each instruction. (EN) Provided is a processor control device capable of setting an integer instruction execution mode of a processor which is not influenced by a floating point instruction execution mode by dynamically changing the inside.

【0007】[0007]

【課題を解決するための手段】前記目的を達成するた
め、請求項1に記載の本発明では、第1の命令を実行す
る第1のプロセッサと、第2の命令を実行する第2のプ
ロセッサをプロセッサの動作状態に応じて制御するプロ
セッサ制御装置において、第1のプロセッサ及び第2の
プロセッサをそれぞれスカラモードで動作するのか、シ
ングルモードで動作するのかプロセッサの動作状態を指
示するフラグF1、F2と、これらのフラグF1、F2
にプロセッサの動作状態を書き込む書込手段と、これら
のフラグF1、F2からプロセッサの動作状態を読み込
む読込手段を設けたことを特徴とする。
In order to achieve the above object, the present invention according to claim 1 provides a first processor for executing a first instruction and a second processor for executing a second instruction. In a processor control device for controlling a processor according to an operating state of a processor, flags F1 and F2 for instructing whether the first processor and the second processor operate in a scalar mode or a single mode, respectively. And these flags F1, F2
In addition, a writing means for writing the operating state of the processor and a reading means for reading the operating state of the processor from these flags F1 and F2 are provided.

【0008】請求項2に記載の本発明では、第1の命令
と第2の命令を実行するプロセッサをプロセッサの動作
状態に応じて制御するプロセッサ制御装置において、第
1の命令を実行するとき、プロセッサをスカラモードで
動作するか、シングルモードで動作するのかプロセッサ
の動作状態を指示する第1のフラグF1と、第2の命令
を実行するとき、プロセッサをスカラモードで動作する
か、シングルモードで動作するのかプロセッサの動作状
態を指示する第2のフラグF2と、前記第1及び第2の
フラグF1、F2にプロセッサの動作状態を書き込む書
込手段と、前記第1及び第2のフラグF1、F2からプ
ロセッサの動作状態を読み込む読込手段を設けたことを
特徴とする。
According to a second aspect of the present invention, in the processor control device for controlling the processor executing the first instruction and the second instruction according to the operating state of the processor, when executing the first instruction, Whether the processor operates in the scalar mode or the single mode, the first flag F1 that indicates the operating state of the processor and the second instruction when the processor operates in the scalar mode or in the single mode. A second flag F2 for instructing whether the processor is operating or not, a writing means for writing the operating state of the processor to the first and second flags F1, F2, and the first and second flags F1, It is characterized in that a reading means for reading the operating state of the processor from F2 is provided.

【0009】請求項3に記載の本発明では、第1の命令
を整数命令、第2の命令を浮動小数点命令とすることを
特徴とする。また請求項4に記載の本発明では、解読部
を設け、命令実行モードがスカラモードのときに例外が
発生すると、スカラモード実行中のプロセッサに対する
フラグの値をシングルモード指示の値に変更させ、例外
の発生した命令をシングルモードで最初から再実行して
例外を再現させ、この例外を処理した後に命令実行モー
ドをスカラモードに戻すことを特徴とする。
According to a third aspect of the present invention, the first instruction is an integer instruction and the second instruction is a floating point instruction. In the present invention according to claim 4, a decoding unit is provided, and when an exception occurs when the instruction execution mode is the scalar mode, the value of the flag for the processor executing the scalar mode is changed to the value of the single mode instruction. The feature is that the instruction in which the exception occurs is re-executed from the beginning in the single mode to reproduce the exception, and after the exception is processed, the instruction execution mode is returned to the scalar mode.

【0010】本発明では、図1(A)に示す如く、書込
部1により命令実行モードを設定するフラグF1、F2
を書き込み、また読込部2によりフラグF1、F2の状
態を読み込む。この例ではフラグF1は整数命令実行モ
ードを示し、図1(B)に示す如く、フラグF1が
「0」の場合整数命令を実行する命令処理部はスカラモ
ードで動作し、フラグF1が「1」の場合シングルモー
ドで動作する。
In the present invention, as shown in FIG. 1A, flags F1 and F2 for setting the instruction execution mode by the writing section 1 are set.
And the reading unit 2 reads the states of the flags F1 and F2. In this example, the flag F1 indicates the integer instruction execution mode. As shown in FIG. 1B, when the flag F1 is "0", the instruction processing unit that executes the integer instruction operates in the scalar mode and the flag F1 indicates "1". In this case, it operates in single mode.

【0011】またフラグF2は浮動小数点命令実行モー
ドを示し、浮動小数点命令を実行する命令処理部はフラ
グF2が「0」の場合スカラモードで動作し、フラグF
2が「1」の場合シングルモードで動作する。
The flag F2 indicates a floating-point instruction execution mode. The instruction processing unit that executes the floating-point instruction operates in the scalar mode when the flag F2 is "0", and the flag F2.
When 2 is "1", it operates in single mode.

【0012】[0012]

【作用】従ってフラグF1とF2の状態により、図1
(B)に示す如く、整数命令を実行する命令処理部と浮
動小数点命令を実行する命令処理部は、4種類の命令実
行モードを設定することができる。
Therefore, depending on the states of the flags F1 and F2, as shown in FIG.
As shown in (B), the instruction processing unit that executes integer instructions and the instruction processing unit that executes floating point instructions can set four types of instruction execution modes.

【0013】読込部2は、これらフラグF1、F2の
「0」、「1」の状態を読み込み、それぞれの状態をプ
ロセッサ制御部(図示省略)に伝達し、これらに応じて
整数命令処理部、浮動小数点命令処理部がそれぞれの命
令実行モードで動作される。
The reading unit 2 reads the states of "0" and "1" of these flags F1 and F2, transmits the respective states to a processor control unit (not shown), and responds to them by an integer instruction processing unit, The floating point instruction processing unit operates in each instruction execution mode.

【0014】フラグF1、F2の設定は、書込部1を用
いてマイクロ命令で書き換えできるので、マクロ命令や
マイクロ命令でダイナミックに設定変更可能できる。本
発明では、フラグF1、F2を、プロセッサ(プロセッ
サ及びコプロセッサ)の動作を停止することなく、ダイ
ナミックに変更することができる。従ってプロセッサを
2つの命令処理の動作モードに左右されずに、実行モー
ドの設定を可能にすることができる。また通常スカラ実
行プロセッサをシングルモードに制御できるので、スカ
ラ実行プロセッサ用のプログラムのデバッグ作業を簡単
化することができ、例外処理用のハードウェアの単純化
を図ることができる。
Since the setting of the flags F1 and F2 can be rewritten by the micro instruction using the writing unit 1, the setting can be dynamically changed by the macro instruction or the micro instruction. In the present invention, the flags F1 and F2 can be dynamically changed without stopping the operation of the processors (processor and coprocessor). Therefore, the execution mode can be set regardless of the operation modes of the two instruction processings of the processor. Further, since the normal scalar execution processor can be controlled in the single mode, the debugging work of the program for the scalar execution processor can be simplified and the hardware for exception handling can be simplified.

【0015】[0015]

【実施例】本発明の一実施例を図2、図3に基づき説明
する。図2は本発明の一実施例構成図、図3はその動作
説明図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to FIGS. FIG. 2 is a configuration diagram of an embodiment of the present invention, and FIG. 3 is an operation explanatory diagram thereof.

【0016】図2において他図と同記号は同一部を示
し、1は書込部、2は読込部、3は解読部、4は整数命
令制御部、5は浮動小数点命令制御部、6はテーブル、
F1は整数命令処理部の実行モード設定用のフラグ、F
2は浮動小数点命令処理部の実行モード設定用のフラグ
である。
In FIG. 2, the same symbols as in the other figures indicate the same parts, 1 is a writing part, 2 is a reading part, 3 is a decoding part, 4 is an integer instruction control part, 5 is a floating point instruction control part, and 6 is. table,
F1 is a flag for setting the execution mode of the integer instruction processing unit, F
Reference numeral 2 is a flag for setting the execution mode of the floating point instruction processing unit.

【0017】書込部1はフラグF1、F2を書き込むも
のであり、各フラグが個別又は同時に書き込みできるも
のである。この書き込みはマクロ命令やマイクロ命令に
もとづき可能にすることもできる。
The writing unit 1 writes the flags F1 and F2, and each flag can be written individually or simultaneously. This writing can be enabled based on a macro instruction or a micro instruction.

【0018】読込部2はフラグF1、F2を読み込むも
のであり、各フラグを個別に読み込みできるものであ
る。解読部3は起動時に整数命令と浮動小数点命令の動
作モードに応じてフラグF1、F2の「0」、「1」を
テーブル6にもとづき判別したり、例外が発生したと
き、どの命令処理部からこれが発生したのかを解読する
ものであり、例外が発生した命令処理部のフラグに
「0」を書くように書込部1に指示するものである。
The reading unit 2 reads the flags F1 and F2, and can read each flag individually. The decoding unit 3 determines which of the flags F1 and F2 is "0" or "1" based on the table 6 according to the operation mode of the integer instruction and the floating point instruction at the time of activation, or when an exception occurs, which instruction processing unit It decodes whether this has occurred, and instructs the writing unit 1 to write "0" in the flag of the instruction processing unit in which the exception occurred.

【0019】整数命令制御部4は、整数命令の処理モー
ドを制御するものである。浮動小数点命令制御部5は浮
動小数点の処理モードを制御するものである。テーブル
6は、2つの命令処理の動作モードに対応して設定され
るフラグF1、F2の「0」、「1」の状態を示すもの
であり、例えば図1(B)に示す如きテーブルである。
The integer instruction control unit 4 controls the processing mode of integer instructions. The floating point instruction controller 5 controls the floating point processing mode. The table 6 shows the states of the flags F1 and F2 set to “0” and “1” corresponding to the operation modes of the two instruction processes, and is a table as shown in FIG. 1B, for example. .

【0020】次に本発明の動作を説明する。 1.最初に整数命令処理部をスカラモードで動作させ、
浮動小数点命令処理部をシングルモードで動作させるよ
うな指示が入力される。解読部3はこれを解読して、テ
ーブル6を参照し、書込部1に対しフラグF1を「0」
に、フラグF2を「1」に書き込むように指示する。こ
れにより書込部1はフラグF1を「0」に、フラグF2
を「1」に書き込む。
Next, the operation of the present invention will be described. 1. First, operate the integer instruction processing unit in scalar mode,
An instruction to operate the floating point instruction processing unit in the single mode is input. The decoding unit 3 decodes this, refers to the table 6, and sets the flag F1 to "0" for the writing unit 1.
To write the flag F2 to "1". As a result, the writing unit 1 sets the flag F1 to "0" and the flag F2.
Is written in "1".

【0021】2.読込部2はこれらのフラグを読み出
し、整数命令制御部4に対しフラグF1が「0」である
こと、浮動小数点命令制御部5に対しフラグF2が
「1」であることをそれぞれ通知する。これにもとづ
き、整数命令制御部4は整数命令処理部をスカラモード
で動作させ、複数の命令を実行する。また浮動小数点命
令制御部5は浮動小数点命令処理部をシングルモードで
動作させ1つの命令を実行させる。
2. The reading unit 2 reads these flags and notifies the integer instruction control unit 4 that the flag F1 is "0" and the floating point instruction control unit 5 that the flag F2 is "1". Based on this, the integer instruction control unit 4 operates the integer instruction processing unit in the scalar mode and executes a plurality of instructions. Further, the floating point instruction control unit 5 operates the floating point instruction processing unit in the single mode to execute one instruction.

【0022】3.このようにして、整数命令処理部がス
カラモードで動作を行い、浮動小数点命令処理部がシン
グルモードで動作を行う。 4.いま、整数命令処理部が、図3(A)の処理に示
す如く、命令1、命令2、命令3をスカラモードで実行
しているときに、命令2について例えば零で割算すると
か、オーバーフローしたとか等の例外が発生すると、整
数命令処理部から解読部3に対して例外発生通知が入力
される。このとき整数命令処理部では命令1〜命令3の
実行を中止する。
3. In this way, the integer instruction processing unit operates in the scalar mode, and the floating point instruction processing unit operates in the single mode. 4. Now, as shown in the processing of FIG. 3A, when the integer instruction processing unit is executing the instruction 1, the instruction 2, and the instruction 3 in the scalar mode, the instruction 2 is divided by zero or overflows. When an exception such as “doing” occurs, an exception occurrence notification is input from the integer instruction processing unit to the decoding unit 3. At this time, the integer instruction processing unit suspends execution of instructions 1 to 3.

【0023】5.解読部3ではこれを解読して、例外発
生が整数命令処理部で行われたことを認識し、例外発生
している整数命令処理部の実行モード設定用のフラグF
1を「1」に書き込むことを書込部1に通知する。これ
により書込部1はフラグF1に「1」に書き込むととも
に、読込部2にフラグの書込みを通知する。
5. The decoding unit 3 decodes this, recognizes that the exception has occurred in the integer instruction processing unit, and sets the execution mode flag F of the integer instruction processing unit in which the exception has occurred.
The writing unit 1 is notified that 1 is written in "1". As a result, the writing unit 1 writes "1" in the flag F1 and notifies the reading unit 2 of the writing of the flag.

【0024】6.読込部2は、これによりフラグF1、
F2を読み出し、これらを整数命令制御部4、浮動小数
点命令制御部5に送出する。浮動小数点命令制御部5に
ついてはフラグF2の変更がないので、それまで通りの
シングルモードで動作継続するが、フラグF1が「1」
に書き込まれたことにより整数命令制御部4は整数命令
処理部をシングルモードで動作させる。
6. The reading unit 2 thereby detects the flag F1,
F2 is read and these are sent to the integer instruction control unit 4 and the floating point instruction control unit 5. Since the floating-point instruction control unit 5 does not change the flag F2, the single-mode operation continues as before, but the flag F1 is "1".
The integer instruction control unit 4 causes the integer instruction processing unit 4 to operate in the single mode by being written in.

【0025】7.これにより、整数命令処理部は、図3
(A)の処理に示す如く、命令1から再実行する。そ
して処理において命令2を再実行することにより例外
発生を再現させその例外処理が行われる。解読部3はこ
の例外処理の行われたことにより処理からスカラモー
ドで実行すべきことを認識し、再びフラグF1を「0」
するように書込部1に指示する。これにより書込部1は
フラグF1を「0」に設定する。そしてフラグの書き込
みを読込部2に通知するので、読込部2は再びフラグF
1、F2を読み、これらを整数命令制御部4及び浮動小
数点命令制御部5に通知し、整数命令制御部4は整数命
令処理部をスカラモードに復帰させる。このようにして
処理に示す如く、命令3からスカラモードで実行さ
れ、命令3、命令4、命令5が実行される。
7. As a result, the integer instruction processing unit
As shown in the process of (A), the process is re-executed from the instruction 1. Then, by re-executing the instruction 2 in the process, the exception occurrence is reproduced and the exception process is performed. The decoding unit 3 recognizes from the processing that the exception processing is performed and that the processing should be executed in the scalar mode, and sets the flag F1 to "0" again.
The writing unit 1 is instructed to do so. As a result, the writing unit 1 sets the flag F1 to "0". Since the writing of the flag is notified to the reading unit 2, the reading unit 2 again sets the flag F.
1 and F2 are read, and these are notified to the integer instruction control unit 4 and the floating point instruction control unit 5, and the integer instruction control unit 4 returns the integer instruction processing unit to the scalar mode. Thus, as shown in the processing, the instruction 3 is executed in the scalar mode, and the instruction 3, the instruction 4, and the instruction 5 are executed.

【0026】本発明の動作を、図3(B)に示す如く、
例外が複数同時に発生した場合について説明する。 1.図3(B)の処理に示す如く、整数命令処理部が
スカラモードで命令1、命令2、命令3を同時に実行中
に命令1と命令2において例外が発生したとき、解読部
3に対して例外発生通知が入力される。このとき整数命
令処理部では命令1〜命令3の実行を中止させる。
The operation of the present invention is as shown in FIG.
The case where multiple exceptions occur simultaneously will be described. 1. As shown in the process of FIG. 3B, when an exception occurs in the instruction 1 and the instruction 2 while the integer instruction processing unit is simultaneously executing the instruction 1, the instruction 2, and the instruction 3 in the scalar mode, the integer instruction processing unit is notified to the decoding unit 3. Exception notification is entered. At this time, the integer instruction processing unit suspends the execution of instructions 1 to 3.

【0027】2.解読部3では、この例外発生通知を解
読して、整数命令処理部で例外発生の行われたことを認
識し、整数命令処理部の実行モード設定用のフラグF1
を「1」に書き込むことを書込部1に通知する。これに
より書込部1はフラグF1を「1」に設定するととも
に、読込部2にフラグの書き込みを通知する。
2. The decoding unit 3 decodes this exception occurrence notification, recognizes that the exception has occurred in the integer instruction processing unit, and sets the execution mode setting flag F1 of the integer instruction processing unit.
The writing unit 1 is notified that the writing is to be performed in "1". As a result, the writing unit 1 sets the flag F1 to "1" and notifies the reading unit 2 of the writing of the flag.

【0028】3.読込部2は、これによりフラグF1、
F2を読み出し、これらを整数命令制御部4、浮動小数
点命令制御部5に送出する。フラグF2は変更なく
「1」のままなので、それまで通りのシングルモードで
動作が継続するが、フラグF1が「1」に書き込まれた
ことにより、整数命令制御部4は整数命令処理部をシン
グルモードで動作させる。
3. The reading unit 2 thereby detects the flag F1,
F2 is read and these are sent to the integer instruction control unit 4 and the floating point instruction control unit 5. Since the flag F2 remains "1" without change, the operation continues in the single mode as before. However, since the flag F1 is written in "1", the integer instruction control unit 4 sets the integer instruction processing unit to a single state. Run in mode.

【0029】4.これにより、整数命令処理部は、図3
(B)の処理に示す如く、命令1から再実行する。そ
して処理において命令1の例外処理が行われる。 5.これにより解読部3は、処理からスカラモードで
実行すべきことを認識し、再びフラグF1を「0」にす
るように書込部1に指示し、前記と同様にして整数命令
処理部がスカラモードで動作され、命令2、命令3、命
令4を同時実行する。
4. As a result, the integer instruction processing unit
As shown in the process of (B), it is re-executed from the instruction 1. Then, in the processing, exception processing of the instruction 1 is performed. 5. As a result, the decoding unit 3 recognizes from the processing that it should be executed in the scalar mode, instructs the writing unit 1 to set the flag F1 to "0" again, and the integer instruction processing unit executes the scalar processing in the same manner as described above. The operation is performed in the mode, and the instruction 2, the instruction 3, and the instruction 4 are simultaneously executed.

【0030】6.しかしこの処理において、命令2か
ら例外が発生するので、前記と同様に、再びフラグF1
を「1」に設定し、整数命令処理部をシングルモードで
動作させ、処理において、命令2の例外処理が行われ
る。
6. However, in this process, an exception is generated from the instruction 2, so that the flag F1 is again set as described above.
Is set to "1", the integer instruction processing unit is operated in the single mode, and the exception processing of the instruction 2 is performed in the processing.

【0031】7.これにより前記の如く、再びフラグF
1が「0」に設定され、処理に示す如く、整数命令処
理部はスカラモードで動作し、命令3、命令4、命令5
を同時処理する。
7. As a result, as described above, the flag F is returned to again.
1 is set to "0", and as shown in the process, the integer instruction processing unit operates in the scalar mode, and the instruction 3, instruction 4, instruction 5
Are processed simultaneously.

【0032】フラグF1、F2の書き込みは書込部を用
いてマイクロ命令で書き換えできるので、マクロ命令や
マイクロ命令でダイナミックに設定変更可能である。前
記説明においては、スカラモードのとき実行される複数
命令の数が3の場合について説明したが本発明は勿論こ
れのみに限定されるものではない。
Since the writing of the flags F1 and F2 can be rewritten by the microinstruction using the writing section, the setting can be dynamically changed by the macroinstruction or the microinstruction. In the above description, the case where the number of a plurality of instructions executed in the scalar mode is 3 has been described, but the present invention is not limited to this.

【0033】前記説明では、書込部1は例外の発生した
側の整数命令処理部(又は浮動小数点命令処理部)のフ
ラグのみを書き込む場合について説明したが、本発明で
は勿論2つのフラグF1、F2を一緒に書き込むことも
できる。この場合、変更しない方のフラグの「0」、
「1」については、例えば読込部2から書き込みに先立
ちそれを読み出して書込部に通知するようにしてもよ
い。
In the above description, the case where the writing unit 1 writes only the flag of the integer instruction processing unit (or the floating point instruction processing unit) on the side where the exception has occurred has been described, but in the present invention, two flags F1 and You can also write F2 together. In this case, the flag that is not changed is "0",
As for “1”, for example, it may be read out from the reading unit 2 prior to writing and notified to the writing unit.

【0034】前記説明では読込部2は、書込部1から通
知のあったときフラグを読み込む場合について説明した
が、本発明は勿論これのみに限定されるものではなく、
読込部2は通知の有無にかかわりなく、一定時間毎に各
フラグを読み込むように構成することもできる。
In the above description, the case where the reading unit 2 reads the flag when notified by the writing unit 1 has been described, but the present invention is not limited to this.
The reading unit 2 can also be configured to read each flag at regular time intervals regardless of whether or not there is a notification.

【0035】前記実施例では、1つのプロセッサで整数
命令と浮動小数点命令とを1つのプロセッサ内で処理す
る場合について説明したが、本発明では、図4(A)に
示す如く整数命令を処理するプロセッサに浮動小数点命
令を処理するプロセッサを接続する場合についても、同
様に制御できる。
In the above embodiment, the case where one processor processes an integer instruction and a floating point instruction has been described, but in the present invention, an integer instruction is processed as shown in FIG. 4 (A). The same control can be performed when a processor that processes floating-point instructions is connected to the processor.

【0036】またフラグが「1」のときシングルモー
ド、「0」のときスカラモードの例について説明した
が、本発明は勿論これのみに限定されるものではない。
Although the example of the single mode when the flag is "1" and the scalar mode when the flag is "0" has been described, the present invention is not limited to this.

【0037】[0037]

【発明の効果】請求項1に記載された本発明によれば、
浮動小数点命令用のコプロセッサをプロセッサにつなげ
た場合、コプロセッサの命令実行モードの設定に関わり
なく、プロセッサの整数命令実行モードの設定ができ
る。
According to the present invention described in claim 1,
When the coprocessor for floating-point instructions is connected to the processor, the integer instruction execution mode of the processor can be set regardless of the instruction execution mode setting of the coprocessor.

【0038】請求項2に記載された本発明によれば、一
つのプロセッサで整数命令と浮動小数点命令を処理する
場合でも個別に実行モードの設定ができる。請求項1又
は請求項2に記載された本発明によれば、プログラム実
行中に各プロセッサを停止することなく命令実行モード
の変更ができる。
According to the second aspect of the present invention, the execution mode can be set individually even when an integer instruction and a floating point instruction are processed by one processor. According to the present invention described in claim 1 or 2, it is possible to change the instruction execution mode without stopping each processor during program execution.

【0039】スカラ実行中のプロセッサをシングルモー
ドに切り換えることが簡単にできるので、デバッグ作業
を簡単にすることができる。請求項3に記載された本発
明によれば整数命令と浮動小数点命令を処理する場合で
も、個別に実行モードの設定ができる。
Since it is easy to switch the processor under scalar execution to the single mode, the debugging work can be simplified. According to the present invention described in claim 3, even when processing an integer instruction and a floating point instruction, the execution mode can be set individually.

【0040】請求項4に記載された本発明によれば複数
の例外を同時に処理することがなくなるので、例外処理
のためのハードウエアの構造を単純なものにすることが
できる。
According to the present invention described in claim 4, since a plurality of exceptions are not processed at the same time, the hardware structure for exception processing can be simplified.

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

【図1】本発明の原理図である。FIG. 1 is a principle diagram of the present invention.

【図2】本発明の一実施例構成図である。FIG. 2 is a configuration diagram of an embodiment of the present invention.

【図3】本発明の動作説明図である。FIG. 3 is an operation explanatory diagram of the present invention.

【図4】従来例説明図である。FIG. 4 is an explanatory diagram of a conventional example.

【符号の説明】[Explanation of symbols]

1 書込部 2 読込部 3 解読部 4 整数命令制御部 5 浮動小数点命令制御部 6 テーブル 1 Writing unit 2 Reading unit 3 Decoding unit 4 Integer instruction control unit 5 Floating point instruction control unit 6 Table

───────────────────────────────────────────────────── フロントページの続き (72)発明者 渡部 徹 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (72)発明者 丸山 拓己 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (72)発明者 加藤 慎哉 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (72)発明者 竹野 巧 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (72)発明者 ポーンシャイ・チョンスワンナパイサーン 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (72)発明者 野中 巧 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (72)発明者 竹下 克典 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Toru Watanabe Inventor Toru Watanabe 1015 Kamiodanaka, Nakahara-ku, Kawasaki City, Kanagawa Prefecture, Fujitsu Limited (72) Inventor Takumi Maruyama 1015, Kamiodanaka, Nakahara-ku, Kawasaki City, Kanagawa Prefecture 72) Inventor Shinya Kato 1015 Kamiodanaka, Nakahara-ku, Kawasaki City, Kanagawa Prefecture, Fujitsu Limited (72) Inventor Takumi Takeno, 1015, Kamedotachu, Nakahara-ku, Kawasaki City, Kanagawa Prefecture, Fujitsu Limited (72) Inventor Pawnshai Chon Swan Napaisan 1015 Kamiodanaka, Nakahara-ku, Kawasaki-shi, Kanagawa Prefecture, Fujitsu Limited (72) Inventor Takumi Naka, 1015 Kamiotanaka, Nakahara-ku, Kawasaki, Kanagawa Prefecture, Fujitsu Limited (72) Inventor Katsunori Takeshita Nakahara-ku, Kawasaki, Kanagawa 1015 Kamiodanaka, Fujitsu Limited

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 第1の命令を実行する第1のプロセッサ
と、第2の命令を実行する第2のプロセッサをプロセッ
サの動作状態に応じて制御するプロセッサ制御装置にお
いて、 第1のプロセッサ及び第2のプロセッサをそれぞれスカ
ラモードで動作するのか、シングルモードで動作するの
かプロセッサの動作状態を指示するフラグF1、F2
と、 これらのフラグF1、F2にプロセッサの動作状態を書
き込む書込手段(1)と、 これらのフラグF1、F2からプロセッサの動作状態を
読み込む読込手段(2)を設けたことを特徴とするプロ
セッサ制御装置。
1. A processor controller for controlling a first processor executing a first instruction and a second processor executing a second instruction according to an operating state of the processor, the first processor and the first processor Flags F1 and F2 for instructing whether the two processors operate in the scalar mode or the single mode, respectively.
And a writing means (1) for writing the operating state of the processor to these flags F1 and F2, and a reading means (2) for reading the operating state of the processor from these flags F1 and F2. Control device.
【請求項2】 第1の命令と第2の命令を実行するプロ
セッサをプロセッサの動作状態に応じて制御するプロセ
ッサ制御装置において、 第1の命令を実行するとき、プロセッサをスカラモード
で動作するか、シングルモードで動作するのかプロセッ
サの動作状態を指示する第1のフラグF1と、 第2の命令を実行するとき、プロセッサをスカラモード
で動作するか、シングルモードで動作するのかプロセッ
サの動作状態を指示する第2のフラグF2と、 前記第1及び第2のフラグF1、F2にプロセッサの動
作状態を書き込む書込手段(1)と、 前記第1及び第2のフラグF1、F2にプロセッサの動
作状態を読み込む読込手段(2)を設けたことを特徴と
するプロセッサ制御装置。
2. A processor control device for controlling a processor for executing a first instruction and a second instruction according to an operating state of the processor, wherein the processor is operated in a scalar mode when the first instruction is executed. , A first flag F1 which indicates whether the processor operates in the single mode or the operating state of the processor, and whether the processor operates in the scalar mode or the single mode when the second instruction is executed. A second flag F2 for instructing, a writing means (1) for writing the operating state of the processor in the first and second flags F1, F2, and an operation of the processor in the first and second flags F1, F2. A processor control device comprising a reading means (2) for reading a state.
【請求項3】 第1の命令を整数命令、第2の命令を浮
動小数点命令とすることを特徴とする請求項1又は2記
載のプロセッサ制御装置。
3. The processor control apparatus according to claim 1, wherein the first instruction is an integer instruction and the second instruction is a floating point instruction.
【請求項4】 解読部(3)を設け、命令実行モードが
スカラモードのときに例外が発生すると、スカラモード
実行中のプロセッサに対するフラグの値をシングルモー
ド指示の値に変更させ、例外の発生した命令をシングル
モードで最初から再実行して例外を再現させ、この例外
を処理した後に命令実行モードをスカラモードに戻すこ
とを特徴とする請求項1、2又は3記載のプロセッサ制
御装置。
4. A decoding unit (3) is provided, and when an exception occurs when the instruction execution mode is the scalar mode, the value of the flag for the processor executing the scalar mode is changed to the value of the single mode instruction to generate the exception. 4. The processor control device according to claim 1, wherein the instruction execution mode is re-executed in the single mode from the beginning to reproduce the exception, and the instruction execution mode is returned to the scalar mode after the exception is processed.
JP11529994A 1994-05-27 1994-05-27 Processor control unit Expired - Lifetime JP3481301B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11529994A JP3481301B2 (en) 1994-05-27 1994-05-27 Processor control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11529994A JP3481301B2 (en) 1994-05-27 1994-05-27 Processor control unit

Publications (2)

Publication Number Publication Date
JPH07319694A true JPH07319694A (en) 1995-12-08
JP3481301B2 JP3481301B2 (en) 2003-12-22

Family

ID=14659205

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11529994A Expired - Lifetime JP3481301B2 (en) 1994-05-27 1994-05-27 Processor control unit

Country Status (1)

Country Link
JP (1) JP3481301B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9317287B2 (en) 2011-07-19 2016-04-19 Panasonic Intellectual Property Management Co., Ltd. Multiprocessor system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9317287B2 (en) 2011-07-19 2016-04-19 Panasonic Intellectual Property Management Co., Ltd. Multiprocessor system

Also Published As

Publication number Publication date
JP3481301B2 (en) 2003-12-22

Similar Documents

Publication Publication Date Title
JPH0561692A (en) Interruption control device for microprocessor
JPH02171934A (en) Virtual machine system
JPH02144630A (en) Data processor
JPH07319694A (en) Processor controller
JP2003058381A (en) Processor realizing exception processing setting by program
WO2023144939A1 (en) Computer, control method, and control program
JPS6247746A (en) Interruption control system
JPS62267869A (en) Processing system at time of arithmetic exception of vector processor
JPS5922146A (en) Task scheduling circuit
JP2005275703A (en) Processor, and context switching method
JPS58200349A (en) Microprogram controller
JP2968321B2 (en) Data processing device
JPH03127171A (en) Vector processor
JPS61184644A (en) Control system of virtual computer system
JP2761324B2 (en) High-speed processing method
JPH0452759A (en) Multiplex processing system for vector instruction
JPH0727466B2 (en) Service processor Command processing method
JPS60230246A (en) Data processor
JPH02148155A (en) Input/output processing system
JPS63305449A (en) Microprocessor system
JPH0675789A (en) Information processor
JPS63173129A (en) Information processor
JPS61143847A (en) Central processor
JPH03109643A (en) Execution system for data exception procedure
JPH0240722A (en) Arithmetic processor

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030924

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071010

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081010

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081010

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091010

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091010

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101010

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101010

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111010

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111010

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121010

Year of fee payment: 9