JPH01191941A - Information processor - Google Patents

Information processor

Info

Publication number
JPH01191941A
JPH01191941A JP63016463A JP1646388A JPH01191941A JP H01191941 A JPH01191941 A JP H01191941A JP 63016463 A JP63016463 A JP 63016463A JP 1646388 A JP1646388 A JP 1646388A JP H01191941 A JPH01191941 A JP H01191941A
Authority
JP
Japan
Prior art keywords
instruction
register
request
memory
field
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
JP63016463A
Other languages
Japanese (ja)
Inventor
Toshiteru Shibuya
渋谷 俊輝
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 JP63016463A priority Critical patent/JPH01191941A/en
Publication of JPH01191941A publication Critical patent/JPH01191941A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To increase the processing speed for an instruction which is processed as an exception by using a means which detects a foul field of an instruction word and a means which suppresses the access request of the instruction word to a memory when the foul field is detected by said detecting means. CONSTITUTION:In case a vector instruction is set at an instruction register 1, a test circuit 5 checks the vector instruction permission bit of a system control register 4. If said permission bit is equal to '0', the circuit 5 detects a foul field. Then a request suppressing circuit 6 sets a request key signal '0' at a request code register 8. While a foul field detecting signal '1' is set at a flip-flop 9.

Description

【発明の詳細な説明】 遺丘且1 本発明は情報処理装置に関し、特に命令の種類に応じて
予め設定された条件に適合しないときに、その命令を不
正フィールドとして例外処理する情報処理装置に関する
DETAILED DESCRIPTION OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing device, and particularly to an information processing device that handles an instruction as an invalid field when the instruction does not meet a preset condition depending on the type of the instruction. .

従IL度 従来、この種の情報処理装置においては、不正フィール
ド、すなわち命令語の特定フィールドの値や命令語の特
定フィールドで指定されるレジスタの値、あるいは命令
語とは無関係の特定のレジスタの値と予め定められてい
る値とが異なっている命令が発生するか否かにかかわら
ず、常に不正フィールドが発生しないときと同様に、こ
の命令のメモリリクエストをメモリバッファ制御部に送
出していた。
Conventionally, in this type of information processing device, illegal fields, that is, the value of a specific field of an instruction word, the value of a register specified by a specific field of an instruction word, or the value of a specific register unrelated to an instruction word, Regardless of whether an instruction whose value differs from a predetermined value occurs or not, the memory request for this instruction is always sent to the memory buffer control unit in the same way as when no invalid field occurs. .

このため、不正フィールドが発生するような命令は、メ
モリバッファ制御部でその命令のメモリリクエストが処
理された後に、マイクロプログラム制御部によりこの不
正フィールドが検出されて例外処理が行われていた。
Therefore, for an instruction in which an invalid field occurs, after the memory request for the instruction is processed by the memory buffer control unit, the invalid field is detected by the microprogram control unit and exception processing is performed.

このような場合には、命令自体が例外処理の対象となる
ため、メモリバッファ制御部において処理されたメモリ
リクエストの結果は全く使用されていなかった。
In such a case, the instruction itself is subject to exception handling, so the result of the memory request processed by the memory buffer control unit is not used at all.

また、メモリバッファ制御部におけるメモリリクエスト
処理ではメモリリクエストを要求した命令そのものが例
外となるため、メモリリクエストの論理アドレスを物理
アドレスに変換するアドレス変換バッファには、例外処
理となる命令のメモリアドレスのアドレス変換情報が予
め登録されている可能性はほとんどなく、このメモリリ
クエストに対応するメモリデータそのものがキャッシュ
メモリに登録されている可能性も非常に低い。
In addition, in memory request processing in the memory buffer control unit, the instruction that requested the memory request itself becomes an exception, so the address translation buffer that converts the logical address of the memory request into a physical address is There is almost no possibility that the address conversion information is registered in advance, and it is also extremely unlikely that the memory data itself corresponding to this memory request is registered in the cache memory.

したがって、例外処理となる命令のメモリリクエストに
おけるアドレス変換のためにセグメントテーブルとペー
ジテーブルとに対する索引処理を行って物理アドレスを
求めた後に、この物理アドレスに対応する主記憶装置の
アドレスからメモリデータが読出されていた。
Therefore, after performing index processing on the segment table and page table to obtain a physical address for address conversion in a memory request of an instruction that is an exception handling, memory data is retrieved from the main storage address corresponding to this physical address. It was being read.

さらに、セグメントテーブルとページテーブルとの索引
処理により得られたアドレス変換情報は、自動的にアド
レス変換バッファに登録され、アドレス変換バッファの
なかに空いているエントリがなければ、使用されている
エントリの一つからデータが追出されてそこにこのアド
レス変換情報が登録されることになる。
Furthermore, the address translation information obtained by indexing the segment table and page table is automatically registered in the address translation buffer. Data will be removed from one and this address conversion information will be registered there.

主記憶装置から読出されたメモリデータも、上述のアド
レス変換バッファにおける処理と同様にして、主記憶装
置から読出された後に自動的にキャッシュメモリに登録
され、キャッシュメモリのなかに空いているブロックが
なければ、使用されているブロックの一つからデータが
追出されてそこにこのメモリデータが登録されることに
なる。
Memory data read from the main memory is also automatically registered in the cache memory after being read from the main memory in the same manner as the processing in the address translation buffer described above, and empty blocks in the cache memory are If not, the data will be evicted from one of the used blocks and this memory data will be registered there.

このような従来の情報処理装置では、不正フィールドが
発生するか否かにかかわらず、常に不正フィールドが発
生しないときと同様に、この命令のメモリリクエストを
メモリバッファ制御部に送出していたので、メモリバッ
ファ制御部におけるメモリリクエスト処理に要する時間
がロスタイムとなってしまうとともに、例外処理となる
命令の処理速度が低下するという欠点がある。
In such conventional information processing devices, regardless of whether an invalid field occurs or not, the memory request for this instruction is always sent to the memory buffer control unit in the same way as when no invalid field occurs. This has disadvantages in that the time required for memory request processing in the memory buffer control unit results in loss time, and the processing speed of instructions used for exception processing is reduced.

また、メモリバッファ制御部における例外処理となる命
令のメモリリクエスト処理にともなって、アドレス変換
情報やメモリデータがアドレス変換バッファおよびキャ
ッシュメモリに登録されるので、アドレス変換バッファ
およびキャッシュメモリの使用効率の低下を招き、ひい
ては装置自体の性能低下を招くという欠点がある。
Additionally, as address translation information and memory data are registered in the address translation buffer and cache memory as memory request processing for instructions that result in exception processing in the memory buffer control unit occurs, the usage efficiency of the address translation buffer and cache memory decreases. This has the disadvantage of causing a decrease in the performance of the device itself.

iユニ1皇 本発明は上記のような従来のものの欠点を除去すべくな
されたもので、例外処理となる命令の処理速度を向上さ
せることができ、アドレス変換バッファおよびキャッシ
ュメモリの使用効率の低下を招くことなく装置の性能を
向上させることができる情報処理装置の提供を目的とす
る。
The present invention has been made to eliminate the drawbacks of the conventional ones as described above, and can improve the processing speed of instructions that are exception handling, and reduce the efficiency of using address translation buffers and cache memory. An object of the present invention is to provide an information processing device that can improve the performance of the device without causing problems.

九吸立璽茎 本発明による情報処理装置は、命令コードを含む命令語
の条件が前記命令コードに応じて予め設定された条件と
一致しないときに不正フィールドとして例外処理を行う
情報処理装置であって、前記命令語において不正フィー
ルドを検出する検出手段と、前記検出手段により前記不
正フィールドが検出されたとき、前記命令語によるメモ
リへのアクセス要求を抑止する抑止手段とを有すること
を特徴とする。
An information processing apparatus according to the present invention is an information processing apparatus that performs exception processing as an invalid field when a condition of an instruction word including an instruction code does not match a preset condition according to the instruction code. and a detection means for detecting an invalid field in the instruction word; and a suppressing means for suppressing a memory access request by the instruction word when the detection means detects the invalid field. .

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

第1図は本発明の一実施例の構成を示すブロック図であ
る0図において、本発明の一実施例による情報処理装置
は、命令レジスタ(IR>1と、命令コードデコーダ2
と、レジスタメモリ(BR)3と、システム制御レジス
タ(SCR)4と、テスト回路5と、リクエスト抑止回
路6と、マイクロプログラムアドレスレジスタ(MAR
>7と、リクエストコードレジスタ(RCR)8と、フ
リップフロップ(FF)9とを含んで構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In FIG.
, register memory (BR) 3, system control register (SCR) 4, test circuit 5, request suppression circuit 6, and microprogram address register (MAR).
7, a request code register (RCR) 8, and a flip-flop (FF) 9.

命令レジスタ1は命令コードと、オペランドとなるレジ
スタ番号と、オペランドのアドレス計算に使用するペー
スレジスタ番号とを含む命令語を保持している。
The instruction register 1 holds an instruction word including an instruction code, a register number serving as an operand, and a pace register number used to calculate the address of the operand.

命令レジスタ1に保持されている命令コードは信号線1
01を介して命令コードデコーダ2に出力され、レジス
タ番号は信号線102を介してテスト回路5に出力され
、ペースレジスタ番号は信号線103を介してレジスタ
メモリ3に出力される。
The instruction code held in instruction register 1 is on signal line 1
The register number is output to the test circuit 5 via the signal line 102, and the pace register number is output to the register memory 3 via the signal line 103.

命令コードデコーダ2は信号線101を介して入力され
た命令レジスタ1からの命令コードにより索引される。
The instruction code decoder 2 is indexed by the instruction code from the instruction register 1 input via the signal line 101.

この索引により、与えられた命令コードを処理するマイ
クロプログラムの先頭アドレスが信号線TO4を介して
マイクロプログラムアドレスレジスタ7に出力され、与
えられた命令コードを処理するためのメモリリクエスト
の種別を示すリクエストコードが信号線105を介して
リクエストコードレジスタ8に出力される。
Using this index, the start address of the microprogram that processes the given instruction code is output to the microprogram address register 7 via the signal line TO4, and a request indicating the type of memory request for processing the given instruction code is output to the microprogram address register 7 via the signal line TO4. The code is output to the request code register 8 via the signal line 105.

また、メモリリクエストの有無を示すリクエスト代表信
号が信号線106を介してリクエスト抑止回路6に出力
され、不正フィールドを検出するための例外検出指示信
号が信号線107を介してテスト回路5に出力される。
Further, a request representative signal indicating the presence or absence of a memory request is output to the request suppression circuit 6 via the signal line 106, and an exception detection instruction signal for detecting an invalid field is output to the test circuit 5 via the signal line 107. Ru.

レジスタメモリ3はオペランドのアドレス計算に使用す
るペースレジスタが格納されており、命令レジスタ1か
らのペースレジスタ番号の入力に応じて最上位ビットが
信号線108を介してテスト回路5に出力される。
The register memory 3 stores pace registers used to calculate operand addresses, and the most significant bit is output to the test circuit 5 via the signal line 108 in response to input of the pace register number from the instruction register 1.

システム制御レジスタ4からはベクトル命令許可ビット
の状態が信号線109を介してテスト回路5に出力され
る。
The state of the vector instruction permission bit is output from the system control register 4 to the test circuit 5 via the signal line 109.

テスト回路5は命令コードデコーダ2からの例外検出指
示信号に応答して命令レジスタ1の値とレジスタメモリ
3の値とシステム制御レジスタ4の値とをテストして不
正フィールドを検出し、その検出結果が信号線110を
介してリクエスト抑止回路6とフリップフロップ9とに
夫々出力される。
The test circuit 5 tests the value of the instruction register 1, the value of the register memory 3, and the value of the system control register 4 in response to the exception detection instruction signal from the instruction code decoder 2, detects an invalid field, and results in the detection. is output to the request suppression circuit 6 and the flip-flop 9 via the signal line 110, respectively.

リクエスト抑止回路6はテスト回路5で不正フィールド
が検出されないときには命令コードデコーダ2からのリ
クエスト代表信号をそのまま信号線111を介してリク
エストコードレジスタ8に出力する。
When the test circuit 5 does not detect an invalid field, the request suppression circuit 6 outputs the request representative signal from the instruction code decoder 2 as it is to the request code register 8 via the signal line 111.

また、リクエスト抑止回路6はテスト回路5で不正フィ
ールドが検出されたときには、値“0”を信号線111
を介してリクエストコードレジスタ8に出力する。
Further, when the test circuit 5 detects an invalid field, the request suppression circuit 6 transmits the value "0" to the signal line 111.
It is output to the request code register 8 via.

マイクロプログラムアドレスレジスタ7には命令コード
デコーダ2からのマイクロプログラムの先頭アドレスが
保持され、リクエストコードレジスタ8には命令コード
デコーダ2からのメモリリクエストの種別を示すリクエ
ストコードと、リクエスト抑止回路6からのリクエスト
代表信号とが保持される。
The microprogram address register 7 holds the start address of the microprogram from the instruction code decoder 2, and the request code register 8 holds the request code indicating the type of memory request from the instruction code decoder 2 and the request code from the request suppression circuit 6. The request representative signal is held.

フリップ70ツブ9にはテスト回路5における検出結果
が、すなわちテスト回路5で不正フィールドが検出され
たか否かが表示される。
The flip 70 tab 9 displays the detection result in the test circuit 5, that is, whether or not the test circuit 5 detected an invalid field.

マイクロプログラムアドレスレジスタ7およびフリップ
フロップ9夫々からの出力信号は図示せぬマイクロプロ
グラム制御部に出力され、リクエストコードレジスタ8
からの出力信号は図示せぬメモリバッファ制御部に出力
される。
The output signals from the microprogram address register 7 and the flip-flop 9 are output to a microprogram control section (not shown), and the request code register 8
The output signal is output to a memory buffer control section (not shown).

第2図は第1図のテスト回路5の詳細な構成を示すブロ
ック図である0図において、テスト回路5はノットゲー
ト51〜53と、アンドゲート54〜56と、オアゲー
ト57とにより構成されている。
FIG. 2 is a block diagram showing a detailed configuration of the test circuit 5 in FIG. 1. In FIG. There is.

ノットゲート51.52は命令コードデコーダ2からの
例外検出指示信号ビット0.ビット1を夫々入力し、そ
の反転値をアンドゲート54,55に出力する。
Not gates 51 and 52 receive the exception detection instruction signal bit 0.0 from the instruction code decoder 2. Bit 1 is inputted, and the inverted value thereof is outputted to AND gates 54 and 55.

また、ノットゲート53はシステム制御レジスタ4から
のベクトル命令許可ビットの状態を入力し、その反転値
をアンドゲート56に出力する。
Furthermore, the NOT gate 53 inputs the state of the vector instruction permission bit from the system control register 4 and outputs its inverted value to the AND gate 56 .

アンドゲート54は命令コードデコーダ2かちの例外検
出指示信号ビット1と、ノットゲート51からの例外検
出指示信号とット0の反転値と、命令レジスタ1からの
レジスタ番号とを入力し、それらの論理積演算を行って
、その演算結果をオアゲート57に出力する。
The AND gate 54 inputs the exception detection instruction signal bit 1 of the two instruction code decoders, the exception detection instruction signal from the NOT gate 51, the inverted value of bit 0, and the register number from the instruction register 1. A logical AND operation is performed and the result of the operation is output to the OR gate 57.

アンドゲート55は命令コードデコーダ2からの例外検
出指示信号ビット0と、ノットゲート52からの例外検
出指示信号ビット1の反転値と、レジスタメモリ3から
の最上位ビットとを入力し、それらの論理積演算を行っ
て、その演算結果をオアゲート57に出力する。
The AND gate 55 inputs the exception detection instruction signal bit 0 from the instruction code decoder 2, the inverted value of the exception detection instruction signal bit 1 from the NOT gate 52, and the most significant bit from the register memory 3. A product operation is performed and the result of the operation is output to the OR gate 57.

アンドゲート56は命令コードデコーダ2からの例外検
出指示信号ビット0.ビット1と、ノットゲート53か
らのベクトル命令許可ビットの状態の反転値とを入力し
、それらの論理積演算を行って、その演算結果をオアゲ
ート57に出力する。
The AND gate 56 receives the exception detection instruction signal bit 0.0 from the instruction code decoder 2. Bit 1 and the inverted value of the state of the vector instruction permission bit from the NOT gate 53 are input, a AND operation is performed on them, and the result of the operation is output to the OR gate 57.

すなわち、命令コードデコーダ2からの例外検出指示信
号が“01” (ビット0が“0”で、ビット1が“1
”)のときには、命令レジスタ1からのレジスタ番号(
オペランドレジスタのレジスタ番号の最下位ビット)が
“1”のときに信号線110を介して出力される不正フ
ィールド検出信号が“1”となる。
That is, the exception detection instruction signal from the instruction code decoder 2 is "01" (bit 0 is "0", bit 1 is "1").
”), the register number from instruction register 1 (
When the least significant bit of the register number of the operand register is "1", the invalid field detection signal outputted via the signal line 110 becomes "1".

また、命、令コードデコーダ2からの例外検出指示信号
が“10″ (ビット0が“1″で、ビット1が“0“
)のときには、レジスタメモリ3からの最上位ビットが
“1”のとき゛に信号線110を介して出力される不正
フィールド検出信号が“1″となる。
Also, the exception detection instruction signal from the instruction code decoder 2 is “10” (bit 0 is “1” and bit 1 is “0”).
), when the most significant bit from the register memory 3 is "1", the invalid field detection signal outputted via the signal line 110 becomes "1".

さらに、命令コードデコーダ2からの例外検出指示信号
が“11”(ビット0.ビット1がともに“1”)のと
きには、システム制御レジスタ4からのベクトル命令許
可ビットが“O″のときに信号線110を介して出力さ
れる不正フィールド検出信号が“1”となる。
Furthermore, when the exception detection instruction signal from the instruction code decoder 2 is "11" (both bit 0 and bit 1 are "1"), when the vector instruction permission bit from the system control register 4 is "O", the signal line The invalid field detection signal outputted via 110 becomes "1".

第3図は第1図のリクエスト抑止回路6の詳細な構成を
示すブロック図である0図において、リクエスト抑止回
路6はノットゲート61とアンドゲート62とにより構
成されている。
FIG. 3 is a block diagram showing a detailed configuration of the request suppression circuit 6 of FIG. 1. In FIG. 0, the request suppression circuit 6 is composed of a NOT gate 61 and an AND gate 62.

ノットゲート61はテスト回路5からの不正フィールド
検出信号を信号線110を介して入力し、その反転値を
アンドゲート62に出力する。
The NOT gate 61 inputs the invalid field detection signal from the test circuit 5 via the signal line 110, and outputs its inverted value to the AND gate 62.

アンドゲート62は信号線106を介して入力される命
令コードデコーダ2からのリクエスト代表信号と、ノッ
トゲート61からの不正フィールド検出信号の反転値と
の論理積演算を行って、その   ・演算結果をリクエ
ストコードレジスタ8に出力する。
The AND gate 62 performs an AND operation between the request representative signal from the instruction code decoder 2 inputted via the signal line 106 and the inverted value of the invalid field detection signal from the NOT gate 61, and calculates the result of the operation. Output to request code register 8.

すなわち、テスト回路5からの不正フィールド検出信号
が“0”のときには、命令コードデコーダ2からのリク
エスト代表信号をそのままリクエストコードレジスタ8
に出力し、テスト回路5からの不正フィールド検出信号
が“1″のときには、リクエストコードレジスタ8に値
“O”を出力してメモリリクエストがないことを示す。
That is, when the invalid field detection signal from the test circuit 5 is "0", the request representative signal from the instruction code decoder 2 is directly sent to the request code register 8.
When the invalid field detection signal from the test circuit 5 is "1", the value "O" is output to the request code register 8, indicating that there is no memory request.

第4図は不正フィールドの発生条件を示す図である0図
において、「ダブルロード命令」のときには、ロードす
る汎用レジスタのレジスタ番号が偶数ではないときに不
正フィールドが検出される。
FIG. 4 is a diagram showing the conditions under which an invalid field occurs. In the case of a "double load instruction," an invalid field is detected when the register number of the general-purpose register to be loaded is not an even number.

また、「スタック制御命令」のときには、スタックのト
ップのアドレス計算において使用するペースレジスタの
最上位ビットが“0”ではないときに不正フィールドが
検出される。
Further, in the case of a "stack control instruction", an invalid field is detected when the most significant bit of the pace register used in calculating the address of the top of the stack is not "0".

さらに、「ベクトル命令」のときには、システム制御レ
ジスタ4のベクトル命令許可ビットが“1″ではないと
きに不正フィールドが検出される。
Further, in the case of a "vector instruction", an invalid field is detected when the vector instruction permission bit of the system control register 4 is not "1".

第5図は本発明の一実施例におけるマイクロプログラム
のフローチャートである。これら第1図〜第5図を用い
て本発明の一実施例の動作について説明する。
FIG. 5 is a flowchart of a microprogram in one embodiment of the present invention. The operation of one embodiment of the present invention will be explained using these FIGS. 1 to 5.

命令コードデコーダ2の例外検出指示フィールドにおい
ては、「ダブルロード命令」をデコードするワードのフ
ィールドには“01″が、「スタック制御命令」をデコ
ードするワードのフィールドには“10″が、「ベクト
ル命令」をデコードするワードのフィールドには“11
”が、不正フィールドが発生しない命令のフィールドに
は“00”が夫々予め書込まれている。
In the exception detection instruction field of instruction code decoder 2, "01" is in the field of the word to decode the "double load instruction", "10" is in the field of the word to decode the "stack control instruction", and "10" is in the field of the word to decode the "stack control instruction". The field of the word that decodes the “instruction” is “11”.
”, but “00” is written in advance in the fields of instructions in which no invalid fields occur.

命令レジスタ1に「ダブルロード命令」がセットされた
場合には、命令コードデコーダ2からは「ダブルロード
命令」を処理するマイクロプログラムの先頭アドレスが
信号線104を介してマイクロプログラムアドレスレジ
スタ7に出力される。
When a “double load instruction” is set in the instruction register 1, the start address of the microprogram that processes the “double load instruction” is output from the instruction code decoder 2 to the microprogram address register 7 via the signal line 104. be done.

また、メモリリクエストの種別を示すリクエストコード
が信号線105を介してリクエストコードレジスタ8に
出力され、メモリリクエストがあることを示すためにリ
クエスト代表信号が信号線106を介してリクエスト抑
止回路6に出力される。
Further, a request code indicating the type of memory request is output to the request code register 8 via the signal line 105, and a request representative signal is output to the request suppression circuit 6 via the signal line 106 to indicate that there is a memory request. be done.

さ0らに、不正フィールドの検出をテスト回路5に指示
するために、命令コードデコーダ2の例外検出指示フィ
ールドに書込まれた“01”が信号線107を介してテ
スト回路5に出力される。
Furthermore, in order to instruct the test circuit 5 to detect an invalid field, "01" written in the exception detection instruction field of the instruction code decoder 2 is output to the test circuit 5 via the signal line 107. .

テスト回路5では命令コードデコーダ2からの例外検出
指示信号にしたがって、命令レジスタ1にセットされた
命令語が示すオペランドのレジスタ番号をチエツクして
このレジスタ番号が偶数でなければ、すなわちオペラン
ドレジスタのレジスタ番号の最下位ビットが“1′であ
れば、不正フィールド検出信号として値“1”が信号線
11Gを介してリクエスト抑止回路6とフリップフロッ
プつとに出力される〈第5図ステップ11)。
In accordance with the exception detection instruction signal from the instruction code decoder 2, the test circuit 5 checks the register number of the operand indicated by the instruction word set in the instruction register 1, and if this register number is not an even number, that is, the register of the operand register If the least significant bit of the number is "1", the value "1" is output as an invalid field detection signal to the request suppression circuit 6 and the flip-flop via the signal line 11G (step 11 in FIG. 5).

リクエスト抑止回路6はテスト回路5からの不正フィー
ルド検出信号としての値“1”が入力さKると、リクエ
ストコードレジスタ8へのリクエスト代表信号として値
“0”が出力される。
When the request suppression circuit 6 receives the value "1" as the invalid field detection signal from the test circuit 5, it outputs the value "0" as the request representative signal to the request code register 8.

したがって、命令レジスタ1にセットされた「ダブルロ
ード命令」のメモリリクエストがメモリバッフyili
lJl1部に出力されることはなく、マイクロプログラ
ム制御部にはマイクロプログラムアドレスレジスタ7に
格納された「ダブルロード命令」を処理するマイクロプ
ログラムの先頭アドレスと、フリップフロップ9にセッ
トされたテスト値“1”とが送出され、この「ダブルロ
ード命令」は不正フィールドとしてマイクロプログラム
制御部により例外処理が行われる(第5図ステップ14
)。
Therefore, the memory request for the "double load instruction" set in instruction register 1 is sent to the memory buffer yili.
It is not output to the lJl1 section, but the microprogram control section contains the start address of the microprogram that processes the "double load instruction" stored in the microprogram address register 7, and the test value set in the flip-flop 9. 1" is sent, and this "double load instruction" is treated as an invalid field and exceptional processing is performed by the microprogram control unit (step 14 in FIG. 5).
).

また、テスト回[5では命令レジスタ1にセットされた
命令語が示すオペランドのレジスタ番号が偶数であれば
、すなわちオペランドレジスタのレジスタ番号の最下位
ビットが“O”であれば、不正フィールド検出信号とし
て値“0”が信号線110を介してリクエスト抑止口v
@6とフリップフロップ9とに出力される(第5図ステ
ップ11)。
In addition, in test time [5], if the register number of the operand indicated by the instruction word set in instruction register 1 is an even number, that is, if the lowest bit of the register number of the operand register is "O", the invalid field detection signal is The value “0” is sent to the request suppression port v via the signal line 110.
@6 and the flip-flop 9 (step 11 in FIG. 5).

リクエスト抑止回路6はテスト回路5からの不正フィー
ルド検出信号としての値“0”が入力されると、命令コ
ードデコーダ2からのリクエスト代表信号“1”をその
ままリクエストコードレジスタ8に出力する。
When the request suppression circuit 6 receives the value "0" as the invalid field detection signal from the test circuit 5, it outputs the request representative signal "1" from the instruction code decoder 2 as it is to the request code register 8.

したがって、命令レジスタ1にセットされた「ダブルロ
ード命令」のメモリリクエストはメモリバッファ制御部
に出力され、マイクロプログラム制御部にはマイクロプ
ログラムアドレスレジスタ7に格納された「ダブルロー
ド命令」を処理するマイクロプログラムの先頭アドレス
と、フリップフロップ9にセットされたテスト回路5で
不正フィールドが検出されなかったことを示す値“0”
とが送出される。
Therefore, the memory request for the "double load instruction" set in the instruction register 1 is output to the memory buffer control section, and the memory request for the "double load instruction" stored in the microprogram address register 7 is output to the microprogram control section. The start address of the program and the value “0” indicating that no invalid field was detected by the test circuit 5 set in the flip-flop 9.
is sent.

マイクロプログラム制御部ではこの「ダブルロード命令
」のメモリリクエストが実行され、メモリバッファ制御
部よりメモリデータが引渡されるのを待って(第5図ス
テップ12)、そのメモリデータを用いて命令の実行処
理が行われる(第5図ステップ13)。
The microprogram control unit executes the memory request of this "double load instruction", waits for the memory data to be delivered from the memory buffer control unit (step 12 in Figure 5), and executes the instruction using the memory data. Processing is performed (step 13 in FIG. 5).

命令レジスタ1に「スタック制御命令Jがセットされた
場合には、上述の処理と同様にして、命令コードデコー
ダ2から「スタック制御命令」を処理するマイクロプロ
グラムの先頭アドレスがマイクロプログラムアドレスレ
ジスタ7に出力され、メモリリクエストの種別を示すリ
クエストコードがリクエストコードレジスタ8に出力さ
れ、メモリリクエストがあることを示すためにリクエス
ト代表信号がリクエスト抑止回路6に出力される。
When the "stack control instruction J" is set in the instruction register 1, the start address of the microprogram that processes the "stack control instruction" is sent from the instruction code decoder 2 to the microprogram address register 7 in the same manner as described above. A request code indicating the type of memory request is output to the request code register 8, and a request representative signal is output to the request suppression circuit 6 to indicate that there is a memory request.

また、不正フィールドの検出をテスト回路5に指示する
ために、命令コードデコーダ2の例外検出指示フィール
ドに書込まれた“10″が信号線107を介してテスト
回路5に出力される。
Further, in order to instruct the test circuit 5 to detect an invalid field, "10" written in the exception detection instruction field of the instruction code decoder 2 is output to the test circuit 5 via the signal line 107.

テスト回路5では命令コードデコーダ2からの例外検出
指示信号にしたがって、スタックのトップを示すオペラ
ンドアドレスを計算するために使用するペースレジスタ
の最上位ビットをチエツクしてこの最上位ビットが“O
”であれば、リクエスト代表信号′1″がリクエストコ
ードレジスタ8にセットされ、フリップフロップ9には
不正フィールド検出信号”0”がセットされる。
In accordance with the exception detection instruction signal from the instruction code decoder 2, the test circuit 5 checks the most significant bit of the pace register used to calculate the operand address indicating the top of the stack, and determines that this most significant bit is “0”.
If so, the request representative signal '1' is set in the request code register 8, and the illegal field detection signal '0' is set in the flip-flop 9.

よって、メモリバッファ制御部によるこの命令のメモリ
リクエスト処理およびマイクロプログラム制御部による
この命令の実行処理が行われる。
Therefore, the memory request processing of this instruction by the memory buffer control section and the execution processing of this instruction by the microprogram control section are performed.

しかしながら、ペースレジスタの最上位ビットが“1”
であれば、テスト回路5で不正フィールドが検出され、
リクエスト代表信号“0″がリクエストコードレジスタ
8にセットされ、フリッグフロップ9には不正フィール
ド検出信号′1”がセットされる。
However, the most significant bit of the pace register is “1”
If so, the test circuit 5 detects an invalid field,
A request representative signal "0" is set in the request code register 8, and an invalid field detection signal "1" is set in the flip-flop 9.

よって、この「スタック制御命令」は不正フィールドと
してマイクロプログラム制御部により例外処理が行われ
る。
Therefore, this "stack control instruction" is treated as an invalid field and exceptional handling is performed by the microprogram control unit.

命令レジスタ1に「ベクトル命令」がセットされた場合
にも、上述の処理と同様にして、命令コードデコーダ2
の例外検出指示フィールドに書込まれた“11”が信号
線107を介してテスト回路5に出力される。
Even when a "vector instruction" is set in the instruction register 1, the instruction code decoder 2
“11” written in the exception detection instruction field is output to the test circuit 5 via the signal line 107.

テスト回路5では命令コードデコーダ2からの例外検出
指示信号にしたがって、システム制御レジスタ4のベク
トル命令許可ビットをチエツクしてこのベクトル命令許
可ビット”が“1″であれば、リクエストコードレジス
タ8にはリクエスト代表信号“1”がセットされ、フリ
ップフロップ9には不正フィールド検出信号“0″がセ
ットされる。
The test circuit 5 checks the vector instruction enable bit of the system control register 4 in accordance with the exception detection instruction signal from the instruction code decoder 2, and if the vector instruction enable bit is "1", the request code register 8 is A request representative signal "1" is set, and an invalid field detection signal "0" is set in the flip-flop 9.

よって、メモリバッファ制御部によるこの命令のメモリ
リクエスト処理およびマイクロプログラム制御部による
この命令の実行処理が行われる。
Therefore, the memory request processing of this instruction by the memory buffer control section and the execution processing of this instruction by the microprogram control section are performed.

しかしながら、システム制御レジスタ4のベクトル命令
許可ビットが“O”であれば、テスト回路5で不正フィ
ールドが検出され、リクエスト代表信号“0”がリクエ
ストコードレジスタ8にセットされ、フリップフロップ
9には不正フィールド検出信号“1″がセットされる。
However, if the vector instruction permission bit of the system control register 4 is “O”, the test circuit 5 detects an invalid field, the request representative signal “0” is set to the request code register 8, and the flip-flop 9 is set to the invalid field. Field detection signal "1" is set.

よって、この「ベクトル命令」は不正フィールドとして
マイクロプログラム制御部により例外処理が行われる。
Therefore, this "vector instruction" is treated as an invalid field and exceptional processing is performed by the microprogram control unit.

このように、テスト回路5において命令レジスタ1にセ
ットされた命令語の不正フィールドが検出されたときに
リクエスト抑止回路6によりその命令語のメモリリクエ
ストを抑止するようにすることによって、マイクロプロ
グラム制御部では不正フィールドが検出された場合にメ
モリバッファ制御部における不要なメモリリクエスト処
理を行うことなく即座に例外処理を行うことが可能にな
る。
In this way, when an invalid field of an instruction word set in the instruction register 1 is detected in the test circuit 5, the request suppression circuit 6 suppresses a memory request for the instruction word, thereby making it possible to control the microprogram control unit. In this case, when an invalid field is detected, it becomes possible to immediately perform exception processing without performing unnecessary memory request processing in the memory buffer control unit.

また、メモリバッファ制御部においては不要なメモリリ
クエスト処理によってアドレス変換バッファやキャッシ
ュメモリが荒らされることがなくなる。
Furthermore, in the memory buffer control unit, the address translation buffer and cache memory are not disturbed by unnecessary memory request processing.

したがって、例外処理となる命令の処理速度を向上させ
ることができ、アドレス変換バッファおよびキャッシュ
メモリの使用効率の低下を招くことなく装置の性能を向
上させることができる。
Therefore, it is possible to improve the processing speed of an instruction that is an exception process, and it is possible to improve the performance of the device without reducing the efficiency of using the address translation buffer and cache memory.

尚、本発明の一実施例では不正フィールドが発生する条
件として第4図に示すような「ダブルロード命令」と「
スタック制御命令」と「ベクトル命令1との例について
述べたが、他の命令における不正ブイールドの発生の場
合にも適用できることは明白であり、これに限定されな
い。
In one embodiment of the present invention, the conditions for generating an invalid field include a "double load instruction" and a "double load instruction" as shown in FIG.
Although the examples of "stack control instruction" and "vector instruction 1" have been described, it is obvious that the present invention can also be applied to cases where an illegal build occurs in other instructions, and is not limited thereto.

1吸立豆1 以上説明したように本発明によれば、命令コードを含む
命令語において、命令語の条件が命令コードに応じて予
め設定された条件と一致しないという不正フィールドが
検出されたとき、この命令語によるメモリへのアクセス
要求を抑止するようにすることによって、例外処理とな
る命令の処理速度を向上させることができ、アドレス変
換バッファおよびキャッシュメモリの使用効率の低下を
招くことなく装置の性能を向上させることができるとい
う効果がある。
1 Suctioned Bean 1 As explained above, according to the present invention, when an invalid field is detected in an instruction word including an instruction code, in which the conditions of the instruction word do not match the conditions set in advance according to the instruction code. By suppressing memory access requests using this instruction word, it is possible to improve the processing speed of instructions that are exception handling, and to improve the processing speed of instructions that are used for exception processing, without reducing the efficiency of using address translation buffers and cache memory. This has the effect of improving the performance of.

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

第1図は本発明の一実施例の構成を示すブロック図、第
2図は第1図のテスト回路の詳細な構成を示すブロック
図、第3図は第1図のリクエスト抑止回路の詳細な構成
を示すブロック図、第4図は不正フィールドの発生条件
を示す図、第5図は本発明の一実施例におけるマイクロ
プログラムのフローチャートである。 主要部分の符号の説明 1・・・・・・命令レジスタ 2・・・・・・命令コードデコーダ 3・・・・・・レジスタメモリ 4・・・・・・システム制御レジスタ 5・・・・・・テスト回路 6・・・・・・リクエスト抑止回路
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a block diagram showing the detailed configuration of the test circuit in FIG. 1, and FIG. 3 is a block diagram showing the detailed configuration of the request suppression circuit in FIG. FIG. 4 is a block diagram showing the configuration, FIG. 4 is a diagram showing the conditions under which an invalid field occurs, and FIG. 5 is a flowchart of a microprogram in an embodiment of the present invention. Explanation of symbols of main parts 1...Instruction register 2...Instruction code decoder 3...Register memory 4...System control register 5...・Test circuit 6...Request suppression circuit

Claims (1)

【特許請求の範囲】[Claims] (1)命令コードを含む命令語の条件が前記命令コード
に応じて予め設定された条件と一致しないときに不正フ
ィールドとして例外処理を行う情報処理装置であって、
前記命令語において不正フィールドを検出する検出手段
と、前記検出手段により前記不正フィールドが検出され
たとき、前記命令語によるメモリへのアクセス要求を抑
止する抑止手段とを有することを特徴とする情報処理装
置。
(1) An information processing device that performs exception processing as an invalid field when a condition of an instruction word including an instruction code does not match a preset condition according to the instruction code,
Information processing comprising a detection means for detecting an invalid field in the instruction word, and a suppression means for suppressing a memory access request by the instruction word when the detection means detects the invalid field. Device.
JP63016463A 1988-01-27 1988-01-27 Information processor Pending JPH01191941A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63016463A JPH01191941A (en) 1988-01-27 1988-01-27 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63016463A JPH01191941A (en) 1988-01-27 1988-01-27 Information processor

Publications (1)

Publication Number Publication Date
JPH01191941A true JPH01191941A (en) 1989-08-02

Family

ID=11916946

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63016463A Pending JPH01191941A (en) 1988-01-27 1988-01-27 Information processor

Country Status (1)

Country Link
JP (1) JPH01191941A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4698685B2 (en) * 2006-01-19 2011-06-08 富士通株式会社 Display information verification program, method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4698685B2 (en) * 2006-01-19 2011-06-08 富士通株式会社 Display information verification program, method and apparatus
US8219903B2 (en) 2006-01-19 2012-07-10 Fujitsu Limited Display information verification program, method and apparatus

Similar Documents

Publication Publication Date Title
EP0405318A2 (en) Microprocessor having cash bypass signal terminal
JPH0242569A (en) Context switching method and apparatus used for vector processing system
JP3226055B2 (en) Information processing device
JPS6215896B2 (en)
EP0166431B1 (en) An information processing apparatus having an instruction prefetch circuit
JPH01191941A (en) Information processor
JPS6217773B2 (en)
JPH0377137A (en) Information processor
JP2619425B2 (en) Sequence controller
JPS615357A (en) Data processor
JPS61217834A (en) Data processor
JPS6240555A (en) Prefetch control system
JP2560312B2 (en) Information processing system
JP2780895B2 (en) Data processing device
JP2980327B2 (en) Instruction processing unit
JPH041373B2 (en)
JPS62264345A (en) Processing system in address conversion exception mode of vector processor
JPH0795288B2 (en) Microcomputer
JPS59106060A (en) Data logging system
JPS58134350A (en) Memory controller
JPS6212545B2 (en)
JPH05204831A (en) Microprocessor and microcomputer system with direct memory access function using the same
JPS63752A (en) Memory protection system
JPH0228737A (en) Buffer storage control system
JPS63180171A (en) Information processor