JPH07319696A - Information processor - Google Patents

Information processor

Info

Publication number
JPH07319696A
JPH07319696A JP6110851A JP11085194A JPH07319696A JP H07319696 A JPH07319696 A JP H07319696A JP 6110851 A JP6110851 A JP 6110851A JP 11085194 A JP11085194 A JP 11085194A JP H07319696 A JPH07319696 A JP H07319696A
Authority
JP
Japan
Prior art keywords
instruction
processing
supply
circuit
pipeline
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
JP6110851A
Other languages
Japanese (ja)
Other versions
JP2710558B2 (en
Inventor
Katsuyuki Suzuki
勉幸 鈴木
Makoto Komata
誠 小俣
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
NEC Computertechno Ltd
Original Assignee
NEC Corp
NEC Computertechno 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 NEC Corp, NEC Computertechno Ltd filed Critical NEC Corp
Priority to JP6110851A priority Critical patent/JP2710558B2/en
Publication of JPH07319696A publication Critical patent/JPH07319696A/en
Application granted granted Critical
Publication of JP2710558B2 publication Critical patent/JP2710558B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To suppress performance decline at the time of execution in an advance off mode and to improve debugging efficiency in an information processor for performing the pipeline processing of instruction execution. CONSTITUTION:An instruction supplied by an instruction supply circuit 10 is sent to an instruction processing circuit 30 for performing the pipeline processing, the instruction executed in the respective stages is stored in an processing instruction holding circuit 60 and the instruction kind of a succeeding instruction supplied by the instruction supply circuit 10 is compared with the instruction kind registered by initial setting in an instruction storage circuit 40 in a succeeding instruction comparator circuit 50. In the case of coincidence, an instruction supply control circuit 20, the instruction processing circuit 30 and the processing instruction holding circuit 60 are controlled so as to interrupt the supply of the succeeding instruction until the processings in the instruction processing circuit 30 of all the preceding instructions are ended.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はパイプライン処理を行な
う情報処理装置に関し、特に論理不正存在時における論
理不正を回避する情報処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus for carrying out pipeline processing, and more particularly to an information processing apparatus for avoiding logic injustice when a logic injustice exists.

【0002】[0002]

【従来の技術】計算機におけるデータ処理の高速化のた
め、従来よりデータのパイプライン処理を行なう技術が
多くの計算機において使用されている。データをパイプ
ライン処理することにより1クロックごとにデータの処
理結果を出力することが可能となる。
2. Description of the Related Art In order to speed up data processing in a computer, a technique for pipeline processing of data has been used in many computers. By pipeline processing the data, the processing result of the data can be output every clock.

【0003】パイプライン上になんらかの論理不正が存
在した場合、通常は計算機を運用することは不可能とな
る。しかし、論理不正の内容が、ある命令の実行がパイ
プライン上連続的に行なわれるときにのみ実行結果が不
正になるような場合は、その命令の実行がパイプライン
上連続的に行なわれないように制御することにより、処
理性能は低下するものの、論理不正を回避して計算機を
運用することが可能となる。そして、論理不正を回避し
て運用することにより、論理不正を修正したハードウエ
アに交換するまでの間もハードウエアの評価を行なうこ
とが可能となる。
When some kind of logic illegality exists on the pipeline, it is usually impossible to operate the computer. However, if the content of the logic illegality causes the execution result to become illegal only when the execution of a certain instruction is continuously executed in the pipeline, the execution of that instruction is not continuously executed in the pipeline. Although the processing performance will be reduced by controlling the above, it becomes possible to operate the computer while avoiding logical injustice. By avoiding logic injustice and operating it, it becomes possible to evaluate the hardware until the hardware is replaced with the one in which the logic injustice is corrected.

【0004】上記のような論理不正の回避を行なうた
め、従来の情報処理装置では、通常の命令供給制御方式
(アドバンスオン)のモードの他、命令の実行がパイプ
ライン上連続的に行なわれないよるにするため、あらゆ
る種別の命令に関し、命令の先取りを行なわず、パイプ
ライン上1つの命令の処理しか行なわないように制御す
る完全逐次処理型の命令処理制御方式(アドバンスオ
フ)のモードや、また特開昭63−240634号公
報、特開平2−100138号公報に開示されているよ
うに、ある特定の種別の命令または命令列に関し、命令
先取りを行わず、かつ、その特定の命令または命令列の
パイプライン処理が終了するまで、後続命令の供給を行
なわないように制御する命令逐次処理型の命令処理制御
方式(命令アドバンスオフ)のモードを設けることによ
り実現していた。
In order to avoid the above-mentioned logic injustice, in the conventional information processing apparatus, in addition to the normal instruction supply control system (advance on) mode, instructions are not continuously executed in the pipeline. Therefore, for all types of instructions, a mode of an instruction processing control method (advance-off) of a complete sequential processing type that controls so that only one instruction is processed on the pipeline without prefetching the instruction, Further, as disclosed in Japanese Patent Laid-Open No. 63-240634 and Japanese Patent Laid-Open No. 2-100138, a command or a command sequence of a specific type is not prefetched, and the specific command or command is not performed. Instruction sequential control type instruction processing control system (instruction advance control) that controls not to supply the subsequent instruction until the pipeline processing of the column is completed. The mode of) has been achieved by the provision.

【0005】[0005]

【発明が解決しようとする課題】上述した従来の情報処
理装置での論理不正回避方式では、完全逐次処理型、命
令逐次処理型の命令先取り制御方式とも、処理中の全
て、あるいはある特定の種別の命令の処理が終了するま
で、全ての種別の後続命令の命令処理パイプラインへの
供給を行なっていない。従って、従来のアドバンスオフ
や命令アドバンスオフのモードにした場合には、処理性
能は大きく低下する。
In the logic fraud avoidance method in the above-mentioned conventional information processing apparatus, both the complete preprocessing control method and the instruction prefetch control method of the instruction sequential processing type, all in processing, or a specific type. The subsequent instructions of all types are not supplied to the instruction processing pipeline until the processing of the instruction is completed. Therefore, when the mode is set to the conventional advance-off or instruction advance-off mode, the processing performance is significantly reduced.

【0006】従来のアドバンスオフや、命令アドバンス
オフのモードにしなければ論理不正を回避できないケー
スも確かに存在するが、論理不正の内容によっては、後
続命令がある特定の種別の命令の場合のみ、先行命令の
処理が終了しないうちにその後続命令を命令処理パイプ
ラインに供給することで、論理不正が生じるケースも存
在する。
There are certainly cases where the logic illegality cannot be avoided unless the mode is set to the conventional advance-off or instruction advance-off mode. However, depending on the content of the logic illegality, only when the succeeding instruction is an instruction of a certain type, There is also a case where a logic error occurs by supplying the subsequent instruction to the instruction processing pipeline before the processing of the preceding instruction is completed.

【0007】この場合、実際は後続命令が論理不正を生
じさせない種別の命令であれば、後続命令の命令処理パ
イプラインへの供給を行なうことが可能であるにもかか
わらず、従来のアドバンスオフや命令アドバンスオフの
モードにした場合には、後続命令がいかなる種別の命令
であっても、先行処理中の全て、あるいはある特定の種
別の命令が終了しない限り、命令処理パイプラインに後
続命令を供給できないため、必要以上に性能低下を引き
起こすという問題点がある。
In this case, in reality, if the subsequent instruction is an instruction of a type that does not cause logical injustice, it is possible to supply the subsequent instruction to the instruction processing pipeline, but the conventional advance-off or instruction When the advanced-off mode is set, no matter what type of subsequent instruction the subsequent instruction can be supplied to the instruction processing pipeline unless all of the preceding processing or an instruction of a certain specific type is completed. Therefore, there is a problem that the performance is deteriorated more than necessary.

【0008】さらに、従来の論理不正回避方式における
アドバンスオフや命令アドバンスオフモードをハードウ
エア評価中に使用した場合、未検出の論理不正(バグ)
が覆い隠され、評価もれを生じるという問題点も抱えて
いる。
Furthermore, when the advance-off or instruction advance-off mode in the conventional logic fraud avoidance method is used during hardware evaluation, undetected logic fraud (bug).
However, there is a problem that it is covered up and evaluation is missed.

【0009】例えば、命令種別Aの命令を処理中に種別
Bの命令をパイプライン実行開始した場合の種別Bの処
理論理に論理不正があることを設計者が評価中に見つけ
たとする。この論理不正を回避して評価を継続する際、
種別Bの命令を登録して命令アドバンスオフを行なうこ
とになる。この場合従来の命令アドバスオフのハードウ
エアの動作は、種別Bの命令がパイプライン上で処理さ
れている間は、すべての後続命令のパイプラインへの供
給は中断され、種別Bの命令処理終了を待った後に後続
命令のパイプラインへの供給を開始することになる。従
って、設計者が未発見の論理不正として、種別Bの命令
実行中に種別Cの実行を開始した場合に前述の論理不正
とは異なる論理不正がある場合、本論理不正は覆い隠さ
れて発見が遅れるという問題点がある。
For example, it is assumed that the designer finds during the evaluation that the processing logic of the type B has a logic error when the pipeline execution of the type B instruction is started during the processing of the instruction type A instruction. When avoiding this logic fraud and continuing the evaluation,
Instructions of type B are registered and instruction advance off is performed. In this case, in the conventional hardware operation of instruction advancing off, while the instruction of type B is being processed on the pipeline, the supply of all subsequent instructions to the pipeline is interrupted, and the instruction processing of type B is completed. After waiting, the supply of subsequent instructions to the pipeline will start. Therefore, if there is a logic illegality different from the above-mentioned logic illegality when the designer starts the execution of the type C as an undiscovered logic illegality, the logic illegality is found hidden. There is a problem that is delayed.

【0010】本発明の目的は、アドバンスオフモードの
実行時における性能低下を回避し、かつ、未発見論理不
正の検出/評価ができなくなる問題点を解決したデバッ
グ効率を向上できる情報処理装置を提供することにあ
る。
An object of the present invention is to provide an information processing apparatus capable of avoiding performance degradation during execution of the advance-off mode, solving the problem that undiscovered logic illegality cannot be detected / evaluated, and improving debug efficiency. To do.

【0011】[0011]

【課題を解決するための手段】第1の発明の情報処理装
置は、命令実行のパイプライン処理を行なう情報処理装
置において、命令処理パイプラインに命令を供給する命
令供給手段と、前記命令供給手段に対し命令の供給を制
御する命令供給制御手段と、前記命令供給手段から供給
された命令のパイプライン処理を行なう命令処理手段
と、任意の命令を格納するように設定可能な1ないし複
数個の第1の命令格納手段と、前記命令処理手段におい
て処理中の命令を格納する処理命令格納手段と、前記第
1の命令格納手段に格納されているそれぞれの命令と前
記命令供給手段から供給された命令とを比較する第1の
比較手段とを有し、前記第1の比較手段における比較結
果のいずれかが一致した場合には前記命令供給手段から
前記命令処理手段への前記後続命令の供給を中断し前記
処理命令格納手段に格納された全ての命令について前記
命令処理手段における処理が終了した後命令の供給を再
開してパイプライン処理を継続するように前記命令供給
手段と前記命令処理手段とを制御して構成されている。
An information processing apparatus according to a first aspect of the present invention is an information processing apparatus for performing an instruction execution pipeline process, the instruction supplying unit supplying an instruction to an instruction processing pipeline, and the instruction supplying unit. , An instruction supply control means for controlling the supply of instructions, an instruction processing means for performing pipeline processing of the instruction supplied from the instruction supply means, and one or a plurality of devices which can be set to store an arbitrary instruction. The first instruction storage means, the processing instruction storage means for storing the instruction being processed in the instruction processing means, the respective instructions stored in the first instruction storage means and the instruction supply means are supplied. A first comparing means for comparing an instruction with each other, and when any one of the comparison results in the first comparing means matches, the instruction supplying means to the instruction processing means The instruction supply means for interrupting the supply of the subsequent instruction and restarting the supply of the instruction to continue the pipeline processing after the processing in the instruction processing means is completed for all the instructions stored in the processing instruction storage means. And the instruction processing means.

【0012】第2の発明の情報処理装置は命令実行のパ
イプライン処理を行なう情報処理装置において、命令処
理パイプラインに命令を供給する命令供給手段と、前記
命令供給手段に対し命令の供給を制御する命令供給制御
手段と、前記命令供給手段から供給された命令のパイプ
ライン処理を行なう命令処理手段と、任意の命令を格納
するように設定可能な1ないし複数個の第1の命令格納
手段と、前記命令処理手段において処理中の命令を格納
する処理命令格納手段と、前記第1の命令格納手段に格
納されているそれぞれの命令と前記命令供給手段から供
給された命令とを比較する第1の比較手段と、任意の命
令を格納するように設定可能な1ないし複数個の第2の
命令格納手段と、前記第2の命令格納手段に格納されて
いる命令と前記処理命令格納手段に格納されているそれ
ぞれの命令とを比較する第2の比較手段とを有し、前記
第1の比較手段における比較結果のいずれかが一致しか
つ前記第2の比較手段における比較結果のいずれかが一
致した場合には前記命令供給手段から前記命令処理手段
への命令の供給を中断し前記第2の比較手段における比
較結果で一致するものがなくなって後に命令供給を再開
しパイプライン処理を継続するように前記命令供給手段
と前記命令処理手段とを制御して構成されている。
An information processing apparatus according to the second invention is an information processing apparatus for executing instruction execution pipeline processing, and controls instruction supply means for supplying an instruction to the instruction processing pipeline and instruction supply to the instruction supply means. Instruction supply control means, instruction processing means for performing pipeline processing of the instruction supplied from the instruction supply means, and one or a plurality of first instruction storage means that can be set to store an arbitrary instruction. A processing instruction storing means for storing an instruction being processed in the instruction processing means, and a first instruction comparing each instruction stored in the first instruction storing means with an instruction supplied from the instruction supplying means. Comparing means, one or a plurality of second instruction storing means that can be set to store an arbitrary instruction, instructions stored in the second instruction storing means, and the processing. Second comparison means for comparing the respective instructions stored in the instruction storage means, any one of the comparison results in the first comparison means being coincident and the comparison result in the second comparison means If any of the above is coincident, the supply of the instruction from the instruction supply means to the instruction processing means is interrupted, the comparison result in the second comparison means is no longer coincident, and the instruction supply is restarted later to restart the pipeline. The instruction supply means and the instruction processing means are controlled so as to continue the processing.

【0013】第3の発明の情報処理装置は、第2の発明
の情報処理装置において、第1の発明の情報処理装置の
命令処理制御と第2の発明の情報処理装置の命令処理制
御との切り換え指定を設定可能な制御モード保持手段
と、前記制御モード保持手段に格納された値により前記
2つの命令命令処理制御の内の1つに切り換え選択を行
なう選択手段とを有して構成されている。
An information processing apparatus according to a third aspect of the present invention is the information processing apparatus according to the second aspect, wherein the instruction processing control of the information processing apparatus of the first invention and the instruction processing control of the information processing apparatus of the second invention are performed. A control mode holding means capable of setting a switching designation and a selection means for performing a switching selection to one of the two instruction / command processing controls according to a value stored in the control mode holding means. There is.

【0014】[0014]

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

【0015】図1は本発明の情報処理装置の第1の実施
例の要部を示すブロック図である。
FIG. 1 is a block diagram showing a main part of a first embodiment of an information processing system of the invention.

【0016】命令供給回路10はこれから実行される命
令を命令処理回路30に供給する回路であり、Fステー
ジ(命令フエッチ)レジスタ301に格納された命令フ
エッチアドレスで示された主記憶上のアドレスより後続
命令を読み出す。命令供給回路10は、命令供給制御回
路20により命令供給の制御が行なわれる。
The instruction supply circuit 10 is a circuit for supplying an instruction to be executed to the instruction processing circuit 30. The instruction supply circuit 10 stores an address in the main memory indicated by the instruction cache address stored in the F stage (instruction cache) register 301. The subsequent instruction is read. In the instruction supply circuit 10, the instruction supply control circuit 20 controls the instruction supply.

【0017】命令処理回路30では、通常動作時(アド
バンスオンモード)は、Fステージでフエッチされた命
令が毎クロックサイクルで命令処理回路30へ送られ、
Dステージ(命令デコード)、Rステージ(レジスタ読
み出し)、Aステージ(オペランドアドレス生成)、B
ステージ(オペランドデータ読み出し)、Eステージ
(オペランド演算実行)、Wステージ(実行結果格納)
までの一連のパイプライン処理が行なわれる。
In the instruction processing circuit 30, during normal operation (advance-on mode), the instruction etched in the F stage is sent to the instruction processing circuit 30 at every clock cycle.
D stage (instruction decode), R stage (register read), A stage (operand address generation), B
Stage (operand data read), E stage (operand operation execution), W stage (execution result storage)
A series of pipeline processing up to is performed.

【0018】命令アドバンスオフモードに設定する場
合、命令処理回路30における処理中の全命令の処理が
終了するまで命令処理回路30への供給を行なわないよ
うにさせたい後続命令の種別を、命令格納回路40にお
ける命令格納レジスタ401〜404のいずれかに初期
設定により登録する。本実施例の場合、その命令の種別
を4種類まで登録することが可能である。
When the instruction advance-off mode is set, the type of the subsequent instruction which is not to be supplied to the instruction processing circuit 30 until the processing of all the instructions being processed in the instruction processing circuit 30 is completed is stored as an instruction storage. It is registered in any of the instruction storage registers 401 to 404 in the circuit 40 by initial setting. In the case of the present embodiment, it is possible to register up to four types of instructions.

【0019】命令供給回路10から供給された後続命令
は、後続命令比較回路50におけるコンパレータ51〜
54において、それぞれ命令格納レジスタ401〜40
4に格納された命令と比較され、それらの比較結果はO
Rゲート55に送られ、前記4つの比較結果の論理和が
後続命令比較回路50よりANDゲート80へ対して出
力される。
The subsequent instructions supplied from the instruction supply circuit 10 are the comparators 51 to 51 in the subsequent instruction comparison circuit 50.
54, instruction storage registers 401-40
4 and the comparison result is O
It is sent to the R gate 55, and the logical sum of the four comparison results is output from the subsequent instruction comparison circuit 50 to the AND gate 80.

【0020】命令供給回路10より供給された後続命令
は処理命令保持回路60へも送られる。処理命令保持回
路60は、命令処理回路30における命令パイプライン
上で処理中の命令の種別を登録する回路であり、処理命
令種別保持レジスタ601b〜606bに登録される。
本実施例の場合、命令処理回路30における命令処理パ
イプラインが6段なので、処理命令保持レジスタは6個
用意されている。
The subsequent instruction supplied from the instruction supply circuit 10 is also sent to the processing instruction holding circuit 60. The processing instruction holding circuit 60 is a circuit that registers the type of the instruction being processed on the instruction pipeline in the instruction processing circuit 30, and is registered in the processing instruction type holding registers 601b to 606b.
In the case of this embodiment, since the instruction processing pipeline in the instruction processing circuit 30 has six stages, six processing instruction holding registers are prepared.

【0021】処理命令保持レジスタ601〜606はそ
れぞれ実行中フラグ601a〜606aと処理命令種別
保持レジスタ601b〜606bとから構成されてい
る。実行中フラグの値が1であるのは、対応する処理命
令保持レジスタに格納された命令が命令処理回路30で
処理中であることを示している。
The processing instruction holding registers 601 to 606 are composed of in-execution flags 601a to 606a and processing instruction type holding registers 601b to 606b, respectively. The value of the in-execution flag being 1 means that the instruction stored in the corresponding processing instruction holding register is being processed by the instruction processing circuit 30.

【0022】処理命令保持レジスタ601〜606への
処理命令の新規登録、および登録解除は処理命令保持レ
ジスタ制御回路61により行なわれる。命令供給回路1
0より命令処理回路30へ供給された後続命令は処理命
令保持レジスタ制御回路61へも送られ、処理命令保持
レジスタ制御回路61は実行中フラグ601a〜606
aの中より0であるものをサーチし、最初に見つかった
実行中フラグに1をたて、対応する処理命令種別保持レ
ジスタに後続命令の命令種別を新規登録する。
The processing instruction holding register control circuit 61 performs new registration and deregistration of processing instructions in the processing instruction holding registers 601 to 606. Instruction supply circuit 1
The subsequent instruction supplied from 0 to the instruction processing circuit 30 is also sent to the processing instruction holding register control circuit 61, and the processing instruction holding register control circuit 61 executes the in-execution flags 601a to 606.
A value 0 is searched from a, 1 is set to the first execution flag found, and the instruction type of the subsequent instruction is newly registered in the corresponding processing instruction type holding register.

【0023】命令処理回路30におけるWステージまで
のパイプライン処理が終了すると、処理の終了した命令
の種別情報が命令処理回路30からから処理命令保持レ
ジスタ制御回路61へ送られ、処理命令保持レジスタ制
御回路61は処理命令保持レジスタ601〜606の中
から、実行中フラグに1がセットされ、かつ処理命令種
別保持レジスタに登録されている命令種別と命令処理回
路30から送られてきた命令種別と一致するものをサー
チし、最初に見つかった処理命令保持レジスタにおける
実行中フラグを0にリセットする。
When the pipeline processing up to the W stage in the instruction processing circuit 30 is completed, the type information of the processed instruction is sent from the instruction processing circuit 30 to the processing instruction holding register control circuit 61 to control the processing instruction holding register. In the circuit 61, the execution flag is set to 1 from the processing instruction holding registers 601 to 606, and the instruction type registered in the processing instruction type holding register matches the instruction type sent from the instruction processing circuit 30. The first execution flag in the processing instruction holding register found is reset to 0.

【0024】実行中フラグ601a〜606aの出力は
ORゲート70へ送られ、ORゲート70で全ての実行
中フラグの論理和をとってANDゲート80へ出力す
る。ORゲート70からの出力が1であることは命令処
理回路30において処理中の命令が存在することを示し
ている。
The outputs of the in-execution flags 601a to 606a are sent to the OR gate 70, and the OR gate 70 takes the logical sum of all the in-execution flags and outputs it to the AND gate 80. The output of 1 from the OR gate 70 indicates that there is an instruction being processed in the instruction processing circuit 30.

【0025】ORゲート55からの出力とORゲート7
0からの出力とは、ANDゲート80で論理積をとって
命令供給制御回路20、命令処理回路30および処理命
令保持回路60へ送出される。ANDゲート80からの
出力信号が1であることは、命令供給回路10より供給
された後続命令が、命令格納回路40に格納されている
命令と種別が一致し、かつ命令処理回路30で処理中の
先行命令が存在することを示している。
Output from OR gate 55 and OR gate 7
The output from 0 is ANDed by the AND gate 80 and sent to the instruction supply control circuit 20, the instruction processing circuit 30, and the processing instruction holding circuit 60. The fact that the output signal from the AND gate 80 is 1 means that the subsequent instruction supplied from the instruction supply circuit 10 is of the same type as the instruction stored in the instruction storage circuit 40 and is being processed by the instruction processing circuit 30. Indicates that there is a preceding instruction of.

【0026】ANDゲート80からの出力が1であるこ
とを受けて、命令処理回路30は供給された後続命令を
Dステージレジスタ302へ格納せず、命令処理パイプ
ラインを入り口で遮断し、命令供給制御回路20は再度
同じ主記憶アドレスに命令フエッチするように命令供給
回路10を制御する。
In response to the output from the AND gate 80 being 1, the instruction processing circuit 30 does not store the supplied subsequent instruction in the D stage register 302, shuts off the instruction processing pipeline at the entrance, and supplies the instruction. The control circuit 20 controls the instruction supply circuit 10 so that the instruction is fetched to the same main memory address again.

【0027】また、ANDゲート80からの出力が1で
あることを受けて、処理命令保持回路60においては、
処理命令保持レジスタ制御回路61が命令供給回路10
より供給された後続命令を処理命令種別保持レジスタ6
01b〜606bに新規登録しないように制御する。
Further, in response to the output from the AND gate 80 being 1, the processing instruction holding circuit 60
The processing instruction holding register control circuit 61 is the instruction supply circuit 10.
The subsequent instruction supplied from the processing instruction type holding register 6
01b to 606b are controlled not to be newly registered.

【0028】図5に通常動作時であるアドバンスオンモ
ードにおける命令処理のタイムチャートを、図6に図1
の構成で、命令3の命令種別を命令格納レジスタ401
に登録し、アドバンスオフモードにした場合のタイムチ
ャートを示す。
FIG. 5 is a time chart of instruction processing in the advance-on mode, which is the normal operation, and FIG.
In the configuration of FIG.
The following is a time chart for the case of registering in and setting to the advanced off mode.

【0029】図6の場合、後続命令の命令3については
先行命令の命令1、命令2の命令処理回路30における
処理が終了するまで、Fステージレジスタ301に格納
されたフエッチアドレスが保持され、命令2の命令処理
回路30における処理が終了し、命令処理回路30にお
ける処理中の命令がなくなった後、命令3の処理が再会
される、と同時にこれに続く命令4以降についてもパイ
プライン処理が継続され、従来のように命令3の終了ま
で命令4の実行が待たされるということがないので、性
能低下が防止され、かつ、命令4以降の未発見論理不正
の検出/評価ができなくなることがなくなる。
In the case of FIG. 6, the instruction 3 of the succeeding instruction holds the fuetch address stored in the F stage register 301 until the processing of the instruction 1 and the instruction 2 of the preceding instruction in the instruction processing circuit 30 is completed. After the processing of the instruction 2 in the instruction processing circuit 30 is finished and there are no more instructions being processed in the instruction processing circuit 30, the processing of the instruction 3 is met again, and at the same time, the pipeline processing is also performed for the instruction 4 and subsequent instructions that follow. Since the execution of the instruction 4 is not continued until the end of the instruction 3 as in the conventional case, performance degradation is prevented, and detection / evaluation of undiscovered logical illegality after the instruction 4 may not be possible. Disappear.

【0030】図2は本発明の情報処理装置の第2の実施
例の要部を示すブロック図である。
FIG. 2 is a block diagram showing a main part of a second embodiment of the information processing system of the invention.

【0031】図2の第2の実施例は図1の第1の実施例
に対して命令格納回路90、処理命令比較回路100を
追加した構成となっている。
The second embodiment of FIG. 2 has a configuration in which an instruction storage circuit 90 and a processing instruction comparison circuit 100 are added to the first embodiment of FIG.

【0032】命令格納回路90は命令格納レジスタ90
1〜904から構成され、4種類の命令種別を初期設定
により登録することが可能である。
The instruction storage circuit 90 is an instruction storage register 90.
1 to 904, it is possible to register four instruction types by initial setting.

【0033】処理命令比較回路100の詳細論理を図3
に示す。
The detailed logic of the processing instruction comparison circuit 100 is shown in FIG.
Shown in.

【0034】コンパレータ1001〜1004はそれぞ
れ処理命令種別保持レジスタ601bと命令格納レジス
タ901〜904に格納された命令種別とを比較し、比
較結果をORゲート1005へ出力する。ORゲート1
005はこの4個の比較結果の論理和をとりANDゲー
ト1006へ出力し、ANDゲート1006で上述の論
理和と実行中フラグ601aの出力との論理積をとって
ORゲート70へ出力する。ANDゲート1006から
の出力が1であることは、命令格納回路90に種別を登
録されている命令が、命令処理回路30で実行中である
ことを示している。
The comparators 1001 to 1004 respectively compare the processing instruction type holding register 601b with the instruction types stored in the instruction storage registers 901 to 904, and output the comparison result to the OR gate 1005. OR gate 1
005 takes the logical sum of these four comparison results and outputs it to the AND gate 1006. The AND gate 1006 takes the logical product of the above-mentioned logical sum and the output of the in-execution flag 601a and outputs it to the OR gate 70. The output of 1 from the AND gate 1006 indicates that the instruction of which the type is registered in the instruction storage circuit 90 is being executed by the instruction processing circuit 30.

【0035】処理命令比較回路100には上述の回路と
同様の構成の回路が計6個存在し、それぞれの回路では
同様に処理命令種別保持レジスタ601b〜606bに
登録された命令が命令格納レジスタ901〜904に登
録されている命令の種別と一致するかどうかを示してお
り、それぞれの出力結果であるANDゲート1006、
1016、1026、1036、1046および105
6の出力の論理和と後続命令比較回路50の出力との論
理積をとることにより、ANDゲート80の出力に1が
たつのは、命令格納回路90に登録された命令種別と等
しい命令が命令処理回路30で実行中であり、かつ命令
供給回路10より供給された後続命令が、命令格納回路
40に登録されている命令種別と等しいことを示してい
る。
The processing instruction comparison circuit 100 has a total of six circuits having the same configuration as the above-mentioned circuits. In each circuit, the instructions registered in the processing instruction type holding registers 601b to 606b are the same as the instruction storage register 901. .. to 904, and whether or not they match the type of the instruction registered, and the output results of the AND gate 1006,
1016, 1026, 1036, 1046 and 105
The logical product of the output of 6 and the output of the subsequent instruction comparison circuit 50 is ANDed, so that the output of the AND gate 80 has 1 because the instruction processing is performed when an instruction having the same instruction type as that registered in the instruction storage circuit 90 is processed. It is shown that the subsequent instruction being executed by the circuit 30 and supplied from the instruction supply circuit 10 is the same as the instruction type registered in the instruction storage circuit 40.

【0036】ANDゲート80からの出力が1であるこ
とを受け、命令供給制御回路20、命令処理回路30お
よび処理命令保持回路60は図1の実施例と同様の動作
をする。
In response to the output from the AND gate 80 being 1, the instruction supply control circuit 20, the instruction processing circuit 30, and the processing instruction holding circuit 60 operate in the same manner as the embodiment of FIG.

【0037】図7に図2の構成で、命令2の命令種別を
命令格納レジスタ901に登録し、命令4の命令種別を
命令格納レジスタ401に登録し、アドバンスオフモー
ドにした場合のタイムチャートを示す。この場合、命令
4については先行命令の命令2の命令処理回路30にお
ける処理が終了した後、直ちに命令4の処理が再開され
る。
FIG. 7 is a time chart when the instruction type of the instruction 2 is registered in the instruction storage register 901 and the instruction type of the instruction 4 is registered in the instruction storage register 401 in the configuration of FIG. Show. In this case, for the instruction 4, the processing of the instruction 4 is restarted immediately after the processing of the instruction 2 of the preceding instruction in the instruction processing circuit 30 is completed.

【0038】すなわち、第1の実施例では先行するすべ
ての命令のパイプライン処理終了後でないと、後続命令
が投入されなかったが、第2の実施例では先行する特定
命令のパイプライン処理さえ終了すれば直ちに後続命令
が投入でき第1の実施例よりも特定の場合にはデバッグ
効率を更に向上できる。
That is, in the first embodiment, the succeeding instruction is not input until after the completion of the pipeline processing of all the preceding instructions, but in the second embodiment, even the pipeline processing of the preceding specific instruction is completed. Then, the subsequent instruction can be immediately input, and the debugging efficiency can be further improved in a specific case as compared with the first embodiment.

【0039】図4は本発明の情報処理装置の第3の実施
例の要部における処理命令比較回路110とアドバンス
オフモードレジスタ120の構成を示した図であり、こ
れら以外は図2と同じ構成である。
FIG. 4 is a diagram showing the configuration of the processing instruction comparison circuit 110 and the advance-off mode register 120 in the essential parts of the third embodiment of the information processing system of the invention. The other configurations are the same as those of FIG. Is.

【0040】処理命令比較回路110の内部論理につい
ては図4で示された部分を除いては、図3の処理命令比
較回路100と同じ構成である。
The internal logic of the processing instruction comparison circuit 110 is the same as that of the processing instruction comparison circuit 100 of FIG. 3 except for the portion shown in FIG.

【0041】アドバンスオフモードレジスタ120は初
期設定により値を設定できる1ビットのレジスタであ
る。アドバンスオフモードレジスタ120の値が0に設
定された場合、セレクタ1007〜1057はORゲー
ト1005〜1055の出力を選択してANDゲート1
006〜1056へ出力する。この場合、処理命令比較
回路110は図3の処理命令比較回路100の場合と同
じ動作となり、装置全体としては図2と同じ動作とな
る。
The advance off mode register 120 is a 1-bit register whose value can be set by initial setting. When the value of the advance-off mode register 120 is set to 0, the selectors 1007 to 1057 select the outputs of the OR gates 1005 to 1055 to select the AND gate 1
Output to 006 to 1056. In this case, the processing instruction comparison circuit 110 operates in the same manner as the processing instruction comparison circuit 100 in FIG. 3, and the entire apparatus operates in the same manner as in FIG.

【0042】アドバンスオフモードレジスタ110の値
が1に設定された場合、セレクタ1007〜1057は
アドバンスオフモートレジスタの出力値1を選択してA
NDゲート1006、1016、1026、1036、
1046および1056へ出力する。この場合これらの
ANDゲートからORゲート70へ出力される値は、そ
れぞれ実行中フラグ601a〜606aから出力された
値と等しくなり、装置全体としては図1と同じ動作とな
る。
When the value of the advance off mode register 110 is set to 1, the selectors 1007 to 1057 select the output value 1 of the advance off mode register to select A.
ND gates 1006, 1016, 1026, 1036,
Output to 1046 and 1056. In this case, the values output from these AND gates to the OR gate 70 are equal to the values output from the in-execution flags 601a to 606a, respectively, and the operation of the entire apparatus is the same as that of FIG.

【0043】すなわち、第3の実施例においては、第1
の実施例による動作と、第2の実施例による動作とを切
り換え使用することによりデバッグ動作を多面的に行な
うことができる。
That is, in the third embodiment, the first
The debugging operation can be performed in multiple ways by switching between the operation according to the second embodiment and the operation according to the second embodiment.

【0044】[0044]

【発明の効果】以上説明したように、アドバンスオフモ
ードでは、第1の発明の情報処理装置は、ある特定の種
別の命令に対しそれに先行する命令のすべてのパイプラ
イン処理が終了するまでその特定の種別の命令のパイプ
ラインへの供給を中断させ、先行する命令のすべてのパ
イプライン処理終了後直ちにその特定の種別の命令を含
めた後続命令のパイプライン処理を行なうことにより、
デバッグ効率を向上できるという効果を有している。
As described above, in the advance-off mode, the information processing apparatus of the first invention specifies a particular type of instruction until all the pipeline processing of instructions preceding the instruction is completed. By suspending the supply of the instruction of the type to the pipeline and performing the pipeline processing of the subsequent instruction including the instruction of the specific type immediately after the completion of all the pipeline processing of the preceding instruction,
This has the effect of improving the debugging efficiency.

【0045】さらに、第2の発明においては、ある第1
の特定の種別の命令に対し先行している命令の内の第2
の特定の種別の命令のパイプライン処理が終了するまで
第1の特定の種別の命令のパイプラインへの供給を中断
させ、第2の特定の種別の命令のパイプライン処理終了
後に直ちに第1の特定の種別の命令を含めた後続命令の
パイプライン処理を行なうことにより、第1の発明より
更にデバッグ効率を向上できるという効果を有してい
る。
Further, in the second invention, the first
Second of the instructions preceding the particular type of instruction
Supply of the instruction of the first specific type to the pipeline is suspended until the pipeline processing of the instruction of the specific type is finished, and immediately after the pipeline processing of the instruction of the second specific type is finished. By performing the pipeline processing of the subsequent instruction including the instruction of the specific type, it is possible to further improve the debugging efficiency as compared with the first invention.

【0046】第3の発明では第1の発明と第2の発明と
の切り換え機能を持たせることによりデバッグ動作を多
面的に行なうことができるという効果を有している。
The third aspect of the invention has the effect that the debugging operation can be performed in multiple ways by providing the function of switching between the first aspect and the second aspect.

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

【図1】本発明の情報処理装置の第1の実施例の要部を
示すブロック図である。
FIG. 1 is a block diagram showing a main part of a first embodiment of an information processing apparatus of the invention.

【図2】本発明の情報処理装置の第2の実施例の要部を
示すブロック図である。
FIG. 2 is a block diagram showing a main part of a second embodiment of the information processing system of the invention.

【図3】図2の処理命令比較回路100を示すブロック
図である。
FIG. 3 is a block diagram showing a processing instruction comparison circuit 100 of FIG.

【図4】本発明の情報処理装置の第3の実施例の処理命
令比較回路110およびアドバンスオフモードレジスタ
120を示すブロック図である。
FIG. 4 is a block diagram showing a processing instruction comparison circuit 110 and an advance off mode register 120 of a third embodiment of the information processing system of the invention.

【図5】アドバンスモードにおける命令処理のタイムチ
ャートである。
FIG. 5 is a time chart of instruction processing in advance mode.

【図6】第1の実施例のアドバンスオフモードにおける
命令処理のタイムチャートである。
FIG. 6 is a time chart of instruction processing in the advance off mode according to the first embodiment.

【図7】第2の実施例のアドバンスオフモードにおける
命令処理のタイムチャートである。
FIG. 7 is a time chart of instruction processing in the advance off mode according to the second embodiment.

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

10 命令供給回路 20 命令供給制御回路 30 命令処理回路 40 命令格納回路 50 後続命令比較回路 51〜54、1001〜1004、〜、1041〜10
44、1051〜1054 コンパレータ 55、70、1005、1015、〜、1045、10
55 ORゲート 60 処理命令保持回路 61 処理命令保持レジスタ制御回路 80、1006、1016、〜、1046、1056
ANDゲート 90 命令格納回路 100、110 処理命令比較回路 120 アドバンスオフモードレジスタ 301 F(命令フエッチ)ステージレジスタ 302 D(命令デコード)ステージレジスタ 303 R(レジスタ読み出し)ステージレジスタ 304 A(オペランドアドレス生成)ステージレジ
スタ 305 B(オペランドデータ読み出し)ステージレ
ジスタ 306 W(実行結果格納)ステージレジスタ 401〜401、901〜904 命令格納レジスタ 601〜606 処理命令保持レジスタ 601a〜606a 実行フラグ 601b〜606b 処理命令種別保持レジスタ 1007、1017、〜、1047、1057 セレ
クタ
10 Instruction Supply Circuit 20 Instruction Supply Control Circuit 30 Instruction Processing Circuit 40 Instruction Storage Circuit 50 Subsequent Instruction Comparison Circuits 51-54, 1001-1004, ..., 1041-10
44, 1051 to 1054 Comparator 55, 70, 1005, 1015, to 1045, 10
55 OR gate 60 Processing instruction holding circuit 61 Processing instruction holding register control circuit 80, 1006, 1016, ..., 1046, 1056
AND gate 90 Instruction storage circuit 100, 110 Processing instruction comparison circuit 120 Advance off mode register 301 F (instruction etch) stage register 302 D (instruction decode) stage register 303 R (register read) stage register 304 A (operand address generation) stage Register 305 B (operand data read) stage register 306 W (execution result storage) stage register 401-401, 901-904 Instruction storage register 601-606 Processing instruction holding register 601a-606a Execution flag 601b-606b Processing instruction type holding register 1007 , 1017, ~, 1047, 1057 Selector

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 命令実行のパイプライン処理を行なう情
報処理装置において、命令処理パイプラインに命令を供
給する命令供給手段と、前記命令供給手段に対し命令の
供給を制御する命令供給制御手段と、前記命令供給手段
から供給された命令のパイプライン処理を行なう命令処
理手段と、任意の命令を格納するように設定可能な1な
いし複数個の第1の命令格納手段と、前記命令処理手段
において処理中の命令を格納する処理命令格納手段と、
前記第1の命令格納手段に格納されているそれぞれの命
令と前記命令供給手段から供給された命令とを比較する
第1の比較手段とを有し、前記第1の比較手段における
比較結果のいずれかが一致した場合には前記命令供給手
段から前記命令処理手段への前記命令の供給を中断し前
記処理命令格納手段に格納された全ての命令について前
記命令処理手段における処理が終了した後命令の供給を
再開してパイプライン処理を継続するように前記命令供
給手段と前記命令処理手段とを制御することを特徴とす
る情報処理装置。
1. An information processing apparatus for performing instruction execution pipeline processing, comprising: an instruction supply means for supplying an instruction to an instruction processing pipeline; and an instruction supply control means for controlling instruction supply to the instruction supply means. Instruction processing means for performing pipeline processing of the instruction supplied from the instruction supply means, one or a plurality of first instruction storage means that can be set to store an arbitrary instruction, and processing in the instruction processing means Processing instruction storage means for storing the instruction in
Any of the comparison results in the first comparison means, which has a first comparison means for comparing each instruction stored in the first instruction storage means with the instruction supplied from the instruction supply means. If the values match, the supply of the instruction from the instruction supply means to the instruction processing means is interrupted, and after all the instructions stored in the processing instruction storage means have been processed by the instruction processing means, An information processing apparatus, characterized in that the instruction supply means and the instruction processing means are controlled so as to restart supply and continue pipeline processing.
【請求項2】 命令実行のパイプライン処理を行なう情
報処理装置において、命令処理パイプラインに命令を供
給する命令供給手段と、前記命令供給手段に対し命令の
供給を制御する命令供給制御手段と、前記命令供給手段
から供給された命令のパイプライン処理を行なう命令処
理手段と、任意の命令を格納するように設定可能な1な
いし複数個の第1の命令格納手段と、前記命令処理手段
において処理中の命令を格納する処理命令格納手段と、
前記第1の命令格納手段に格納されているそれぞれの命
令と前記命令供給手段から供給された命令とを比較する
第1の比較手段と、任意の命令を格納するように設定可
能な1ないし複数個の第2の命令格納手段と、前記第2
の命令格納手段に格納されている命令と前記処理命令格
納手段に格納されているそれぞれの命令とを比較する第
2の比較手段とを有し、前記第1の比較手段における比
較結果のいずれかが一致しかつ前記第2の比較手段にお
ける比較結果のいずれかが一致した場合には前記命令供
給手段から前記命令処理手段への命令の供給を中断し前
記第2の比較手段における比較結果で一致するものがな
くなって後に命令供給を再開しパイプライン処理を継続
するように前記命令供給手段と前記命令処理手段とを制
御することを特徴とする情報処理装置。
2. An information processing apparatus for executing instruction execution pipeline processing, comprising: an instruction supply means for supplying an instruction to the instruction processing pipeline; and an instruction supply control means for controlling instruction supply to the instruction supply means. Instruction processing means for performing pipeline processing of the instruction supplied from the instruction supply means, one or a plurality of first instruction storage means that can be set to store an arbitrary instruction, and processing in the instruction processing means Processing instruction storage means for storing the instruction in
First comparison means for comparing each instruction stored in the first instruction storage means with the instruction supplied from the instruction supply means, and one or a plurality of which can be set to store an arbitrary instruction Second instruction storage means, and the second
Of the comparison result in the first comparison means, the second comparison means for comparing the instruction stored in the instruction storage means with the respective instructions stored in the processing instruction storage means. And if any of the comparison results in the second comparing means match, the supply of the instruction from the instruction supplying means to the instruction processing means is interrupted and the comparison result in the second comparing means is matched. An information processing apparatus, characterized in that the instruction supply means and the instruction processing means are controlled so that instruction supply is resumed and pipeline processing is continued after there is nothing left to do.
【請求項3】 請求項1記載の情報処理装置の命令処理
制御と請求項2記載の情報処理装置の命令処理制御との
切り換え指定を設定可能な制御モード保持手段と、前記
制御モード保持手段に格納された値により前記2つの命
令命令処理制御の内の1つに切り換え選択を行なう選択
手段とを有することを特徴とする請求項2記載の情報処
理装置。
3. A control mode holding means capable of setting switching designation between the instruction processing control of the information processing apparatus according to claim 1 and the instruction processing control of the information processing apparatus according to claim 2, and the control mode holding means. 3. The information processing apparatus according to claim 2, further comprising a selection unit that performs switching selection to one of the two instruction / command processing controls according to the stored value.
JP6110851A 1994-05-25 1994-05-25 Information processing device Expired - Fee Related JP2710558B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6110851A JP2710558B2 (en) 1994-05-25 1994-05-25 Information processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6110851A JP2710558B2 (en) 1994-05-25 1994-05-25 Information processing device

Publications (2)

Publication Number Publication Date
JPH07319696A true JPH07319696A (en) 1995-12-08
JP2710558B2 JP2710558B2 (en) 1998-02-10

Family

ID=14546276

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6110851A Expired - Fee Related JP2710558B2 (en) 1994-05-25 1994-05-25 Information processing device

Country Status (1)

Country Link
JP (1) JP2710558B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5482140A (en) * 1977-12-14 1979-06-30 Hitachi Ltd Information processor
JPS63240634A (en) * 1987-03-27 1988-10-06 Nec Corp Information processor
JPH02100138A (en) * 1988-10-06 1990-04-12 Nec Corp Information processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5482140A (en) * 1977-12-14 1979-06-30 Hitachi Ltd Information processor
JPS63240634A (en) * 1987-03-27 1988-10-06 Nec Corp Information processor
JPH02100138A (en) * 1988-10-06 1990-04-12 Nec Corp Information processor

Also Published As

Publication number Publication date
JP2710558B2 (en) 1998-02-10

Similar Documents

Publication Publication Date Title
US7545381B2 (en) Interruptible GPU and method for context saving and restoring
KR100571322B1 (en) Exception handling methods, devices, and systems in pipelined processors
JPH06214799A (en) Method and apparatus for improvement of performance of random-sequence loading operation in computer system
US5790843A (en) System for modifying microprocessor operations independently of the execution unit upon detection of preselected opcodes
JP3242508B2 (en) Microcomputer
JP2620511B2 (en) Data processor
JP5837033B2 (en) Efficient interrupt return address storage mechanism
US7991985B2 (en) System and method for implementing and utilizing a zero overhead loop
US20030126366A1 (en) Decoder start predictor
KR102379886B1 (en) Vector instruction processing
JPH1196006A (en) Information processor
US5283891A (en) Error information saving apparatus of computer
JPH06295243A (en) Data processor
JPH07319696A (en) Information processor
EP0212132A1 (en) Method and digital computer for recovering from errors
EP0211487A1 (en) Conditional operations in computers
JPH07182165A (en) Processing method/device for instruction with committing condition
JP3100705B2 (en) Apparatus for instruction preparation in a microprocessor
JPH0954694A (en) Pipeline processor and its processing method
JP2853460B2 (en) Data loading method and arithmetic processor using the same
JP2793386B2 (en) Computer error information storage device for computer
JPH05113931A (en) Address conversion processing system
US7124285B2 (en) Peak power reduction when updating future file
JPH03250221A (en) Branch predicting system
JPH08328854A (en) Pipeline data 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: 19970930

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

Free format text: PAYMENT UNTIL: 20071024

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20081024

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20091024

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees