JPS6121530A - Information processor - Google Patents

Information processor

Info

Publication number
JPS6121530A
JPS6121530A JP14302984A JP14302984A JPS6121530A JP S6121530 A JPS6121530 A JP S6121530A JP 14302984 A JP14302984 A JP 14302984A JP 14302984 A JP14302984 A JP 14302984A JP S6121530 A JPS6121530 A JP S6121530A
Authority
JP
Japan
Prior art keywords
instruction
register
processing mode
address
processing
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
JP14302984A
Other languages
Japanese (ja)
Inventor
Masahiko Yamamouri
山毛利 雅彦
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
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP14302984A priority Critical patent/JPS6121530A/en
Publication of JPS6121530A publication Critical patent/JPS6121530A/en
Pending legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)

Abstract

PURPOSE:To speed up a succeeding instruction when a processing mode is not changed by processing a connection instruction with the assmption that the processing mode is changed with the execution of an instruction and trying again the advance control if the processing mode is changed. CONSTITUTION:When an instruction renewing the mode is set to an instruction register 10, it is decoded by an instruction decoder 60 and informed to a request control circuit 80 and a restart address decision circuit 90. The restart address after the execution of the instruction is decided by a restart address after the execution of the instruction according to the instruction and set to a saving register 30. Then a preceding control unit continues to process a succeeding instruction normally. When the processing mode information to be renewed is transmitted from the operation unit through a signal line 210, it is compared with an output of a processing mode register 70 at a comparator 75, and when dissidence is detected, a request control circuit 80 transmits a cancel signal and stops the preceding processing. Then the advance processing after the change of processing mode is started by using the restart address of the save register 30 saved before.

Description

【発明の詳細な説明】 〔技術分野〕 本発明は、記憶装置と命令レジスタを備え、命令の先行
制御を行なう情報処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field] The present invention relates to an information processing device that includes a storage device and an instruction register and performs advance control of instructions.

〔従来技術〕[Prior art]

一般に、情報処理装置には各種の処理モードが定義され
ていて、これらの処理モード情報は情報処理装置内のレ
ジスタ等に格納され、情報処理装置の処理モードを示し
ている。これらの処理モードのうち、プログラムにおい
て変更が必要なものはソフトウェア命令によって設定す
ることができる。
Generally, various processing modes are defined for an information processing device, and information on these processing modes is stored in a register or the like within the information processing device and indicates the processing mode of the information processing device. Among these processing modes, those that require changes in the program can be set by software instructions.

従莱、この種のソフトウェア命令を処理する際、特に命
令の先行制御を採用した情報処理装置では、該命令実行
後の処理モードの予測が不可能なため実行が完了するま
で、すなわ゛ち新しい処理モードが決定されるまで後続
命令の先行制御を抑止する必要があった。こ4のため、
実際には、該命令の実行をまねくという欠点があった。
When processing this type of software instruction, especially in an information processing device that employs advance control of the instruction, it is impossible to predict the processing mode after the instruction is executed, so It was necessary to suppress advance control of subsequent instructions until a new processing mode was determined. For this reason,
In practice, this had the disadvantage of causing the instruction to be executed.

〔発明の目的〕[Purpose of the invention]

したがって、本発明の目的は、処理モードが変更されな
かった場合の後続命令の処理の低下を防止した情報処理
装置を提供することにある。
Therefore, an object of the present invention is to provide an information processing apparatus that prevents deterioration in processing of subsequent instructions when the processing mode is not changed.

〔発明の構成〕[Structure of the invention]

本発明は、処理モードを設定できる命令を処理する際、
該命令の実行によ、り処理モードは変更されないと仮定
して後続命令を処理し、もし処理モードが変更された場
合は、処理モードを変更した命令の後続命令より先行制
御をやり直すようにしたもので、前記記憶装置より取出
される命令語のアドレスを保持する命令カウンタと、前
記命令レジスタの命令を解読する命令解読手段と、前記
命令レジスタで指定されたアドレスフィールドの値を用
いてアドレスを生成するアドレス加算器と、処理モード
情報を格鵜する処理モードレジスタと、この処理モード
レジスタに格納されている処理モード情報と新に設定さ
れる処理モード情報を比較する比較手段と、前記命令カ
ウンタおよび前記アドレス加算器の出力から、前記命令
解読手段において前記処理モード記憶手段の内容を更新
できる命令が検出されたとき、該命令の実行後の再開ア
ドレスを決定する再開アドレス決定手段と、この再開ア
ドレス決定手段で決定された再開アドレスが設定される
退避レジスタと、前記処理モードレジスタの内容が更新
される際の前記比較手段の出力に応答して先行制御を停
止させ、その後、前記退避レジスタに退避させた再開ア
ドレスを用いて処理モード変更後の処理を開始させる手
段を有する。
In the present invention, when processing an instruction that can set a processing mode,
The subsequent instructions are processed assuming that the processing mode will not be changed by the execution of the instruction, and if the processing mode is changed, the preceding control is redone from the instruction following the instruction that changed the processing mode. an instruction counter that holds the address of an instruction word retrieved from the storage device; an instruction decoder that decodes the instruction in the instruction register; an address adder for generating, a processing mode register for reading processing mode information, a comparing means for comparing processing mode information stored in the processing mode register with newly set processing mode information, and the instruction counter. and restart address determining means for determining a restart address after execution of the instruction when the instruction decoding means detects an instruction capable of updating the contents of the processing mode storage means from the output of the address adder; The advance control is stopped in response to the output of the comparison means when the contents of the save register to which the resume address determined by the address determination means is updated and the contents of the processing mode register are updated; It has means for starting processing after changing the processing mode using the saved restart address.

〔実施例〕〔Example〕

以下、図面を参照しながら本発明の詳細な説明する。第
1図は本発明の一実施例に係る情報処理装置のブロック
図である。
Hereinafter, the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram of an information processing apparatus according to an embodiment of the present invention.

本実施例の情報処理装置は、先行制御ユニット1、演算
ユニット2、記憶制御ユニット3、主記憶装置4からな
る。
The information processing device of this embodiment includes a preceding control unit 1, an arithmetic unit 2, a storage control unit 3, and a main storage device 4.

第2苧は第1図の先行制御ユニッ小1の詳細回路図であ
る。命令レジスタ1oには、記憶制御ユニット3によっ
て主記憶装置、4から続出された命令語が信号線310
を経てへカし、保持される。
The second diagram is a detailed circuit diagram of the advance control unit 1 shown in FIG. The instruction register 1o receives instruction words successively outputted from the main memory 4 by the storage control unit 3 via a signal line 310.
It goes through a process of deterioration and is retained.

命令解読器60は命令レジスタ1oに保持されて持され
、命令アドレス加算器35とともに命令カウンタを構成
している。処理モードレジスタ7゜には演算ユニット2
から信号線210を通って送られてきた処理モード情報
が保持される。アドレス加算器50は命令レジスタ1o
のアドレスをレジスタファイル20のデータでアドレス
修飾したアドレスを出力する。比較器75は、処理モー
ドレジスタ70に保持されている処理モードと新に設定
される処理モードを比較し、一致しないときは信号を出
力する。再開アドレス決定回路9oは1、の出力に接続
され、命令解読器6oにより、命令レジスタ10に保持
されている命令が処理モードレジスタ70に保持されて
いる処理モードを更新できる命令であることを検出した
ときC二、この命令の種類に従ってこの命令の実行後の
再開アドレス(現在処理中の次の番地あるいは、この命
令が分岐命令の場合には分岐先アドレス)を決定する。
The instruction decoder 60 is held in the instruction register 1o, and forms an instruction counter together with the instruction address adder 35. Processing mode register 7° contains arithmetic unit 2.
The processing mode information sent through the signal line 210 is held. Address adder 50 is instruction register 1o
The address obtained by modifying the address with the data of the register file 20 is output. Comparator 75 compares the processing mode held in processing mode register 70 and the newly set processing mode, and outputs a signal if they do not match. The restart address determining circuit 9o is connected to the output of 1, and the instruction decoder 6o detects that the instruction held in the instruction register 10 is an instruction that can update the processing mode held in the processing mode register 70. At C2, the restart address after execution of this instruction (the next address currently being processed or the branch destination address if this instruction is a branch instruction) is determined according to the type of this instruction.

退避レジスタ60には再開アドレス決定回路9゜で決定
された再開アドレスが設定される。リクエスト制御回路
80は、処理モードレジスタ7oの内容が更新される際
の比較器75の出力に応答して不図示の制御81ニキャ
ンセル信号を送出して先行制御を停止させ、その後、選
択器902を切替えて退避レジスタ60に退避させた再
開アドレスを用いて処理モード変更後の処理な開始させ
る。
A restart address determined by the restart address determining circuit 9° is set in the save register 60. In response to the output of the comparator 75 when the contents of the processing mode register 7o are updated, the request control circuit 80 sends a cancel signal to a control 81 (not shown) to stop the advance control, and then The restart address saved in the save register 60 is used to start the process after changing the process mode.

なお、900,901,902はアドレスを切替える選
択器である。
Note that 900, 901, and 902 are selectors for switching addresses.

次に、本実施例の動作を説明する。通常は、命令アドレ
スレジスタ40の出力を選択器902により選択し信号
線160により記憶制御ユニット6にリクエストを出力
し、信号線6”10によって取出された命゛令語を命令
レジスタ10に、セットし処理を行なう。、今、命令レ
ジス′り10にモードを更新できる命令がセットされた
とする。この命令は命令解読器60により解読され、リ
クエスト制御回路80及び再開アドレス決定回路90に
通知される。ここで命令のタイプに従ってこの命令の実
行後の再開アドレスが再開アドレス決定回路90で決定
され、退避レジスタ30にセットされる。
Next, the operation of this embodiment will be explained. Normally, the output of the instruction address register 40 is selected by the selector 902, a request is output to the storage control unit 6 via the signal line 160, and the instruction word retrieved via the signal line 6''10 is set in the instruction register 10. Assume now that an instruction that can update the mode is set in the instruction register 10.This instruction is decoded by the instruction decoder 60 and notified to the request control circuit 80 and restart address determination circuit 90. Here, the restart address after execution of this instruction is determined by the restart address determining circuit 90 according to the type of the instruction, and is set in the save register 30.

この後、先行制御ユニット1は後続命令(次の番地の命
令、もしくはモードを更新する命令が分岐命令の場合に
は分岐先命令)を通常に処理し続ける。モードを更新で
きる命令が演算ユニット2で実行され、更新すべき処理
モード情報が信号線210を通して演算ユニット2より
送られてくる。
Thereafter, the advance control unit 1 continues to normally process the subsequent instruction (the instruction at the next address, or the branch destination instruction if the instruction for updating the mode is a branch instruction). An instruction that can update the mode is executed by the arithmetic unit 2, and processing mode information to be updated is sent from the arithmetic unit 2 through the signal line 210.

この処理モード情報は比較器75によって処理モードレ
ジスタ70の出力と比較され不一致が検出されると、リ
クエスト制御回路80は先行制御ユニット1の不図示の
制御部にキャンセル信号を送出し、先行処理を停止させ
る。その後、リクエスト制御回路80は選択器902を
切替えて以前に退避した退避レジスタ60の再開アドレ
スを用いて処理モード変更後の先行処理を開始させる。
This processing mode information is compared with the output of the processing mode register 70 by a comparator 75, and if a mismatch is detected, the request control circuit 80 sends a cancel signal to the control section (not shown) of the advance control unit 1 to cancel the advance processing. make it stop. Thereafter, the request control circuit 80 switches the selector 902 to start the preceding processing after changing the processing mode using the restart address of the save register 60 saved previously.

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

本発明は以上説明したように、実際に処理モードが変更
されたかどうかを判定するようにしたので、処理モード
が変更されなかった場合の後続命令処理を高速化できる
As described above, the present invention determines whether or not the processing mode has actually been changed, so that it is possible to speed up subsequent instruction processing when the processing mode has not been changed.

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

第1図は本発明の一実施例に係る情報処理装置のブロッ
ク図、第2図は第1図の先行制御ユニットの詳細回路図
である。 10・・・命令レジスタ、  20・・・レジスタファ
イル、60・・・退避レジスタ、 65・・・命令アドレス加算器、 40・・・命令アドレスレジスタ、 50・・・アドレス加算器、60・・・命令解読器、7
0・・・処理モードレジスタ、 75・・・比較器、 80・・・リクエスト制御回路、 90・・・再開アト、レス決定回路、 900.901,902・・・選択器。 第  2rj!J
FIG. 1 is a block diagram of an information processing apparatus according to an embodiment of the present invention, and FIG. 2 is a detailed circuit diagram of the advance control unit shown in FIG. DESCRIPTION OF SYMBOLS 10... Instruction register, 20... Register file, 60... Save register, 65... Instruction address adder, 40... Instruction address register, 50... Address adder, 60... Command decoder, 7
0... Processing mode register, 75... Comparator, 80... Request control circuit, 90... Resume at, response determination circuit, 900.901, 902... Selector. 2nd rj! J

Claims (1)

【特許請求の範囲】 記憶装置と命令レジスタを備え、命令の先行制御を行な
う情報処理装置において、 前記記憶装置より取出される命令語のアドレスを保持す
る命令カウンタと、前記命令レジスタの命令を解読する
命令解読手段と、前記命令レジスタで指定されたアドレ
スフィールドの値を用いてアドレスを生成するアドレス
加算器と、処理モード情報を格納する処理モードレジス
タと、この処理モードレジスタに格納されている処理モ
ード情報と新に設定される処理モード情報を比較する比
較手段と、前記命令カウンタおよび前記アドレス加算器
の出力から、前記命令解読手段において前記処理モード
記憶手段の内容を更新できる命令が検出されたとき、該
命令の実行後の再開アドレスを決定する再開アドレス決
定手段と、この再開アドレス決定手段で決定された再開
アドレスが設定される退避レジスタと、前記処理モード
レジスタの内容が更新される際の前記比較手段の出力に
応答して先行制御を停止させ、その後、前記退避レジス
タに退避させた再開アドレスを用いて処理モード変更後
の処理を開始させる手段を有することを特徴とする情報
処理装置。
[Scope of Claims] An information processing device that includes a storage device and an instruction register and performs advance control of instructions, comprising: an instruction counter that holds the address of an instruction word retrieved from the storage device; and an instruction counter that decodes the instructions in the instruction register. an address adder that generates an address using the value of the address field specified in the instruction register; a processing mode register that stores processing mode information; and a process stored in the processing mode register. An instruction capable of updating the contents of the processing mode storage means is detected in the instruction decoding means from the comparison means for comparing mode information and newly set processing mode information, and the outputs of the instruction counter and the address adder. a restart address determining means for determining the restart address after execution of the instruction; a save register to which the restart address determined by the restart address determining means is set; and a save register for determining the restart address after the execution of the instruction; An information processing device characterized by comprising means for stopping advance control in response to an output of the comparison means, and then starting processing after changing the processing mode using the restart address saved in the save register.
JP14302984A 1984-07-10 1984-07-10 Information processor Pending JPS6121530A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14302984A JPS6121530A (en) 1984-07-10 1984-07-10 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14302984A JPS6121530A (en) 1984-07-10 1984-07-10 Information processor

Publications (1)

Publication Number Publication Date
JPS6121530A true JPS6121530A (en) 1986-01-30

Family

ID=15329249

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14302984A Pending JPS6121530A (en) 1984-07-10 1984-07-10 Information processor

Country Status (1)

Country Link
JP (1) JPS6121530A (en)

Similar Documents

Publication Publication Date Title
JPS6121530A (en) Information processor
JPS60250438A (en) Information processor
JPS61213928A (en) Alteration system for program
JPH07225681A (en) Interruption controller
JPH07295812A (en) Conditional branch control method/device
JP2689894B2 (en) Micro program control type information processing device
JPH06103110A (en) Breakpoint setting system
JP3029355B2 (en) Single-step instruction execution method
JPH07152541A (en) Switching method for system non-interruption program
JPH1165829A (en) Address conversion circuit
JPH04131931A (en) Control system for real address load instruction
JPH02103643A (en) Interruption generation circuit for debug
JPS595931B2 (en) Address stop method for arithmetic processing system
JPS59200356A (en) Program tracing system
JPH03164945A (en) Data processor
JPS60126733A (en) Read resetting system of register
JPH01145750A (en) Instruction control system
JPH04326125A (en) Information processor
JPH04367953A (en) Store buffer controller
JPS6325732A (en) Microprogram controller
JPH04149733A (en) Sequence control system
JPS58112144A (en) Interruption controller for processor
JPH05100842A (en) Instruction processor
JPH0628183A (en) Pipeline processing mechanism of information processor
JPH08221269A (en) Micro program controlling method