JPS60238934A - Precedence controlling device - Google Patents

Precedence controlling device

Info

Publication number
JPS60238934A
JPS60238934A JP9517284A JP9517284A JPS60238934A JP S60238934 A JPS60238934 A JP S60238934A JP 9517284 A JP9517284 A JP 9517284A JP 9517284 A JP9517284 A JP 9517284A JP S60238934 A JPS60238934 A JP S60238934A
Authority
JP
Japan
Prior art keywords
operand
instruction
supply
information
register
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
JP9517284A
Other languages
Japanese (ja)
Inventor
Ritsuo Sugaya
菅谷 律雄
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 JP9517284A priority Critical patent/JPS60238934A/en
Publication of JPS60238934A publication Critical patent/JPS60238934A/en
Pending legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)
  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To reduce the loss cycle in operand supply, by providing a means which stops the operand supply when a destructive overlap is detected. CONSTITUTION:Operands designated for every instruction by a variable-length operand instruction are supplied in such order as the process at an arithmetic section becomes easier. When the termination of the operand supply of the variable-length operand instruction is detected by a precedence controlling section, the operand supply of the succeeding instruction is immediately executed. When a destructive overlap of operands occurs, the overlap is detected by an overlap detecting means 202 and it is informed to the arithmetic section that the operand supply is disable at the precedence controlling section. As a result, the operand supply can be switched to that of the arithmetic section with a less loss cycle, since the prefetch of the precedence controlling section is stopped.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はパイプライン方式の情報処理装置に関し、特に
、命令語、あるいは命令語により指定されたレジスタに
より任意のオペランド長を指定することが可能な可変長
オペランド命令のオペランド先取り方式に関する。
[Detailed Description of the Invention] (Industrial Application Field) The present invention relates to a pipeline type information processing device, and in particular, it is possible to specify an arbitrary operand length using an instruction word or a register specified by the instruction word. This paper relates to operand prefetching methods for variable-length operand instructions.

(従来技術) 従来の先行制御装置では命令デコード部によって可変長
オペランド命令であると識別された場合には、先行制御
部は演算部に対して上記可変長オペランド命令で指定さ
れたオペランド長とは無関係にその第1ワードのみを供
給し、演算部では必要に応じて残りのオペランド供給の
ためのメモリリクエストを送出してbた。また、可変長
オペランド命令に後続する命令のオペランド供給は、演
算部からの開始指示によって行われて論た。
(Prior Art) In a conventional advance control device, when an instruction decoder identifies a variable-length operand instruction, the advance control section informs the operation section of the operand length specified by the variable-length operand instruction. Only the first word is supplied regardless, and the arithmetic unit sends a memory request for supplying the remaining operands as necessary. Further, as discussed above, the operand supply for the instruction following the variable-length operand instruction is performed by a start instruction from the arithmetic unit.

従って、演算部からメモリリクエストを送出した後にオ
ペランドデータが演算部に返ってくるまでの間のロスサ
イクル、および、オペランド供給の必要の有無の判断を
するために命令の実行速度を向上する必要性があると云
う観点から好ましくなかった。また、上記可変長オペラ
ンド命令の終了を演算部から先行制御部に通知すること
によって後続する命令のオペランド供給が開始され、こ
れにより、先行制御部と演算部との間でパイプライン段
数分のロスサイクルが生じるという欠点があった。
Therefore, there is a need to improve the loss cycle between when a memory request is sent from the arithmetic unit and when operand data is returned to the arithmetic unit, and to improve the instruction execution speed in order to determine whether or not it is necessary to supply operands. I didn't like it because of the fact that In addition, by notifying the preceding control section of the end of the variable-length operand instruction, the supply of operands for the subsequent instruction is started, resulting in a loss equal to the number of pipeline stages between the preceding control section and the calculating section. There was a drawback that a cycle occurred.

(発明の目的) 本発明の目的は、先行制御装置に可変長オペランド命令
によって命令ごとに指定されたオペランドを必要な長さ
分のみ連続的に、演算部での処理が容易になるような順
序で供給し、可変長オペランド命令のオペランド供給の
終了を先行制御部で検出して、後続する命令のオペラン
ド供給を直ちに実行するとともに、オペランドの破壊的
重複があって先行制御部で上記供給が不可能な場合には
上記不可能な状態を直ちに演算部に通知するとともに先
行制御部の先取りを停止させ、少なりロスサイクルで演
算部のオペランド供給に切替えることを可能にすること
により上記欠点を除去し、オペランド供給を効果的に行
うように構成した先行制御装置を提供することにある。
(Objective of the Invention) An object of the present invention is to provide a variable-length operand instruction to a preceding control device so that operands specified for each instruction are sequentially transmitted for the necessary length in an order that facilitates processing in an arithmetic unit. The preceding control unit detects the end of the operand supply for the variable-length operand instruction and immediately executes the operand supply for the subsequent instruction. If possible, the above-mentioned drawbacks are eliminated by immediately notifying the calculation unit of the above-mentioned impossible state, stopping the preemption of the advance control unit, and making it possible to switch to operand supply to the calculation unit with a few loss cycles. An object of the present invention is to provide a preceding control device configured to effectively supply operands.

(発明の構成) 本発明による先行制御装置はパイプライン方式の情報処
理における複数のメモリアクセスによってオペランドを
供給するだめの命令のオペランド連続供給、および上記
命令のオペランド供給の終了を検出することが可能なも
のである。
(Structure of the Invention) The advance control device according to the present invention is capable of detecting the continuous supply of operands of an instruction to supply operands and the end of the supply of operands of the above-mentioned instructions by multiple memory accesses in pipelined information processing. It is something.

本発明による先行制御装置は重複検出手段と、供給中止
手段と、通知手段とを具備して構成したものである。
The advance control device according to the present invention includes a duplication detection means, a supply stop means, and a notification means.

重複検出手段は、オペランドの破壊的重複を検出するた
めのものである。
The duplication detection means is for detecting destructive duplication of operands.

供給中止手段は、重複検出手段により破壊的重複検出時
にはオペランド供給を中止させるためのものである。
The supply stop means is for stopping operand supply when a destructive duplication is detected by the duplication detection means.

通知手段は、検出された情報を演算部に通知するための
ものである。
The notification means is for notifying the arithmetic unit of the detected information.

(実 雄側) 次に、本発明につbて図面を参照して詳細に説明する。(real male side) Next, the present invention will be described in detail with reference to the drawings.

 3− 第1図は、本発明による先行制御装置の一実施例を示す
構成のブロック図である。第1図において、lotは命
令レジスタ、110は命令解読ブロック、130はオペ
ランド供給開始指示ブロック、150.155.156
,157 、261.262 、263 。
3- FIG. 1 is a block diagram of the configuration of an embodiment of the advance control device according to the present invention. In FIG. 1, lot is an instruction register, 110 is an instruction decoding block, 130 is an operand supply start instruction block, and 150.155.156
, 157 , 261. 262 , 263.

264はそれぞれレジスタ、230,271,272は
それぞれセレクタ回路、270はカウンタ回路、201
゜202はオペランドアドレス生成回路、260はオペ
ランド長読出しブロック、290は分岐回路である。
264 are registers, 230, 271, 272 are selector circuits, 270 is a counter circuit, 201
202 is an operand address generation circuit, 260 is an operand length read block, and 290 is a branch circuit.

第1図において命令レジスタ101は解読すべき命令を
保持するレジスタで、命令解読ブロック110によって
オペランドを取出すのに必要な情報を展開し、解読情報
レジスタ群150に送られる。アドレス生成制御情報1
20は上記のオペランドアドレス生成ステージにおける
第1サイクルで解読レジスタ群150から入力されアド
レス情報を生成するためのもので、オペランドアドレス
生成回路201のための制御情報である。
In FIG. 1, an instruction register 101 is a register that holds an instruction to be decoded, and an instruction decoding block 110 develops information necessary for extracting an operand and sends it to a decoding information register group 150. Address generation control information 1
Reference numeral 20 is input from the decoding register group 150 in the first cycle of the operand address generation stage to generate address information, and is control information for the operand address generation circuit 201.

この制御情報は命令レジスタ101の命令コード 4− に対応して指定され、制御情報レジスタ156に送出さ
れる。
This control information is specified corresponding to instruction code 4- of instruction register 101 and sent to control information register 156.

オペランV供給タイプ指示情報121け命令レジスタ1
01の命令コードに対応して指定され、命令のオペラン
ド供給が複数回のメモリアクセスを要する固定長オペラ
ンド命令の場合、あるbは命令語の場合、あるいは命令
語で指定されたレジスタで任意のオペランド長を指定し
た可変長オペランド命令の場合には、オペランドアドレ
ス生成ステージの第2サイクル以降のアドレス生成制御
の手順、ならびに可変長命令時のオペランド供給終了監
視制御の方法を指定するもので、制御情報レジスタ15
5に送られる。命令レジスタ101に格納された命令が
、1回のメモリアクセスによりオペランド供給が終了す
る固定長オペランド命令タイプと、複数回のメモリアク
セスによりオペランド供給が終了する固定長オペランド
命令タイプと、可変長オペランドタイプとの−ずれかで
ある。与えられた命令がいずれであるかに識別するため
の命令識別情報122は、前記制御情報レジスタ155
の有効性を指示すると共に後続命令のオペランド生成ス
テージの開始指示ブロック130にも送られる。
Operan V supply type instruction information 121 instruction register 1
In the case of a fixed-length operand instruction that is specified corresponding to an instruction code of 01 and requires multiple memory accesses to supply operands, a certain b is an instruction word, or any operand in the register specified by the instruction word. In the case of a variable-length operand instruction that specifies the length, the control information specifies the address generation control procedure from the second cycle of the operand address generation stage and the method of monitoring and controlling the end of operand supply for variable-length instructions. register 15
Sent to 5. The instructions stored in the instruction register 101 are of a fixed length operand instruction type where operand supply ends with one memory access, a fixed length operand instruction type where operand supply ends with multiple memory accesses, and a variable length operand type. It is either - or -. Instruction identification information 122 for identifying the given instruction is stored in the control information register 155.
It is also sent to the start instruction block 130 of the operand generation stage of the subsequent instruction.

オペランドアドレス生成ステージの第2サイクル以降の
制御情報け、メモリ250にあらかじめ与えておく。
Control information for the second cycle and subsequent cycles of the operand address generation stage is given to the memory 250 in advance.

オペランド供給タイプ指示情@121が命令識別情報1
22によって制御情報レジスタ155に有効情報として
セットされて起動がかかると、次サイクルの予測される
制御情報によって予め与えられた情報を制御情報レジス
タ155にセットして自走方式をとることにより、上記
命令のオペランド供給は連続的に制御される。オペラン
ド供給の終了が検出されると、メモリ250の内容は無
効になって自走は中止される。メモリ250の内容は、
オペランドアドレス生成ステージの第2サイクル以降の
アドレス生成制御情報と、オペランドアドレス生成回路
202の制御情報251と、可変長オペランド命令タイ
プのオペランド供給の終了監視制御情報252とから構
成されている。
Operand supply type instruction information @121 is instruction identification information 1
When the control information register 155 is set as valid information by 22 and activated, the information given in advance by the predicted control information of the next cycle is set in the control information register 155 and the self-running method is adopted. Operand supply of instructions is continuously controlled. When the end of operand supply is detected, the contents of memory 250 are invalidated and free running is stopped. The contents of the memory 250 are
It is composed of address generation control information for the second cycle and subsequent cycles of the operand address generation stage, control information 251 for the operand address generation circuit 202, and control information 252 for monitoring the end of operand supply of the variable length operand instruction type.

終了監視制御情報252には終了検出回路を使用せず、
後続命令のオペランド供給開始指示ブロック130に直
接終了を報告するととのできる機能も有する。オペラン
ドアドレス生成回路202はレジスタを含むアドレス生
成回路から構成され、上記ブロックにおける演算モード
の指示、およびレジスタのセットの指示は制御情報レジ
スタ261により任意に設定することが可能である。
No end detection circuit is used for the end monitoring control information 252,
It also has a function of directly reporting completion to the operand supply start instruction block 130 of the subsequent instruction. The operand address generation circuit 202 is composed of an address generation circuit including registers, and the instruction of the operation mode in the block and the instruction of setting the register can be arbitrarily set by the control information register 261.

オペランドアドレス生成制御情報250、オよび終了監
視制御情@252が有効情報である時には、これらの情
報はそれぞれ制御情報レジスタ261 、2fi2にセ
ットされる。命令レジスタ101に保持される命令が前
記命令識別情報122により前記可変長オペランド命令
タイプであると識別されると、命令語、あるbは命令語
で指定されたレジスタによ抄指定されたオペランド長は
オペランド長読出しブロック260で判読され、オペラ
ンドレングスレジスタ263.4ルL/’l”17− 264に有効情報としてセットされる。制御情報レジス
タ262の制御によってカウンタ270でオペランド供
給のメモリリクエストを送出するごとに、オペランドレ
ングスレジスタ263. $るいは264にセットされ
た有効なオペランド長はカウントダウンされ、オペラン
ドレングスレジスタ263、ある込は264に繰返して
セットされる。カウンタ270の入力セレクタ271 
、272は演算モードを任意に設定するために設けたも
のである。オペランドの終端アドレスが必要な場合には
制御情報レジスタ261を使用し、オペランドレングス
レジスタ264.264の内容をあらかじめ信号線50
2 、503を介してオペランドアドレス生成回路20
2に移送して保持しておく。
When the operand address generation control information 250, O, and termination monitoring control information @252 are valid information, these pieces of information are set in the control information registers 261 and 2fi2, respectively. When the instruction held in the instruction register 101 is identified as being of the variable length operand instruction type by the instruction identification information 122, the instruction word, a certain b, is the operand length specified by the register specified by the instruction word. is read by the operand length read block 260 and set as valid information in the operand length register 263.4 L/'l''17-264. Under the control of the control information register 262, the counter 270 sends out a memory request for operand supply. Each time the operand length register 263.$ or 264 is set, the effective operand length is counted down and the operand length register 263.$ or 264 is repeatedly set to the input selector 271 of the counter 270.
, 272 are provided to arbitrarily set the calculation mode. If the end address of the operand is required, the control information register 261 is used and the contents of the operand length registers 264 and 264 are stored in advance on the signal line 50.
2, operand address generation circuit 20 via 503
2 and hold it.

カウンタ270におりて制御情報レジスタ262の指示
によりオペランド供給の終了が検出された場合には、こ
の検出信号は信号線501を介して後続命令開始指示ブ
ロック130に報告され、後続命令のオペランドアドレ
ス生成ステージへの取込みを指示するために使用される
。後続命令8− のオペランド供給開始指示ブロック130はオペランド
アドレス生成ステージの情報を監視し、すでに上記ステ
ージが空いている場合、あるしは上記サイクルで確実に
上記ステージが終了スる場合には、命令解読ステージに
存在する後続命令が次サイクルにお論てオペランド生成
ステージに進むことができるように許可指示が発せられ
る。
When the counter 270 detects the end of operand supply according to the instruction of the control information register 262, this detection signal is reported to the subsequent instruction start instruction block 130 via the signal line 501, and the operand address of the subsequent instruction is generated. Used to instruct loading into the stage. The operand supply start instruction block 130 of the subsequent instruction 8- monitors the information of the operand address generation stage, and if the above stage is already vacant or the above stage definitely ends in the above cycle, the instruction A grant indication is issued so that subsequent instructions residing in the decoding stage can proceed to the operand generation stage in the next cycle.

オペランドアドレス生成回路201 、202により生
成されたアドレス情報はセレクタ230によって選択さ
れ、アドレス交換部(図示されてbない)へ送出される
。制御情報レジスタ261ノ情報が有効な時には、セレ
クタ230はオペランドアドレス生成回路202を選択
する。
The address information generated by the operand address generation circuits 201 and 202 is selected by the selector 230 and sent to an address exchange section (not shown). When the information in the control information register 261 is valid, the selector 230 selects the operand address generation circuit 202.

1回のメモリアクセスによりオペランド供給を終了させ
る固定長オペランド命令が命令レジスタ101にセット
されると、命令解読ブロック110によってオペランド
取出しに必要な情報が展開され、解読レジスタ群150
に送出される。
When a fixed-length operand instruction that completes operand supply with one memory access is set in the instruction register 101, the information necessary for fetching the operand is developed by the instruction decoding block 110, and the decoding register group 150
will be sent to.

コノサイクル[bいて、上記命令のアドレス生成制御情
報120が信号線161を介して読出され、信号線16
2を介して制御情報レジスタ156に送出される。命令
識別情報122により命令タイプ、 が識別されるため
、オペランド供給タイプ指示情報121は無効になり、
フリップフロップ157のセット指示が信号線163を
介して送出される。
During the cono cycle [b, the address generation control information 120 of the above instruction is read out via the signal line 161, and
2 to the control information register 156. Since the instruction type is identified by the instruction identification information 122, the operand supply type instruction information 121 is invalidated.
A setting instruction for flip-flop 157 is sent via signal line 163.

後続命令開始指示ブロック130にお込ては、上記命令
に先行する命令がオペランドアドレス生成ステージにb
lyhてすでに終了してbるか、あるいは上記サイクル
におりて終了が確実であるような場合には、上記命令の
オペランドアドレス生成ステージへの取込み指示信号が
信号線164、165を介して送出される。次サイクル
におりて信号線164 、165上の指示によりオペラ
ンドアドレス生成ステージに取込まれた上記命令の情報
は信号線301 、302を介してオペランドアドレス
生成回路20に加えられ、出力信号線303上の出力信
号セレクタ230によって選択され、信号線310を介
してアドレス変換部(図示してな−)へ送出される。
In the subsequent instruction start instruction block 130, the instruction preceding the above instruction is placed in the operand address generation stage b.
lyh has already ended b, or if the above cycle is reached and the end is certain, a signal instructing the instruction to take in the operand address generation stage of the above instruction is sent via signal lines 164 and 165. Ru. In the next cycle, the information of the above instruction taken into the operand address generation stage by the instructions on the signal lines 164 and 165 is applied to the operand address generation circuit 20 via the signal lines 301 and 302, and is sent to the output signal line 303. It is selected by the output signal selector 230 of and sent to the address conversion section (not shown) via the signal line 310.

上記サイクルにおいて信号線304を介して後続命令開
始指示信号が後続命令開始指示ブロック130に報告さ
れた時、オペランドアドレス生成ステージ取込み指示信
号線164 、165上に信号が送出され、上記命令の
オペランドアドレス生成ステージは終了する。複数回の
メモリアクセスによりオペランド供給が終了する固定長
オペランド命令が命令レジスタ101にセットされると
、命令解読ブロック110によってオペランド取出しに
必要な情報が展開され、解読レジスタ群150に送出さ
れる。上記サイクルにfsLxて上記命令のアドレス生
成制御情報120が信号線161を介して読出され、信
号線162を介して制御情報レジスタ156に送出され
る。命令識別情報122によって命令タイプが識別され
るため、オペランド供給タイプ指示情報121は信号線
166を介し、有効情報として制御情報レジスタ155
に送出される。命令識別情報により信号線163を介し
てフリップフロップ157にはリセット信号が送出され
る。
In the above cycle, when a subsequent instruction start instruction signal is reported to the subsequent instruction start instruction block 130 via the signal line 304, a signal is sent to the operand address generation stage capture instruction signal lines 164 and 165, and the operand address of the above instruction is The generation stage ends. When a fixed-length operand instruction whose operand supply is completed by multiple memory accesses is set in the instruction register 101, the instruction decoding block 110 expands the information necessary for fetching the operand and sends it to the decoding register group 150. In the cycle fsLx, the address generation control information 120 of the instruction is read out via the signal line 161 and sent to the control information register 156 via the signal line 162. Since the instruction type is identified by the instruction identification information 122, the operand supply type instruction information 121 is sent to the control information register 155 as valid information via the signal line 166.
will be sent to. A reset signal is sent to the flip-flop 157 via the signal line 163 based on the instruction identification information.

 11− 既に説明したように上記命令のオペランドアドレス生成
ステージ取込み指示が信号線164゜165を介して送
出されていると、次サイクルでオペランドアドレス生成
ステージに取込まれた上記命令の情報は、オペランドア
ドレス生成回路201から信号線301 、302を介
して送出され、出力信号線303上の出力信号はセレク
タ230により選択され、信号線310を介してアドレ
ス交換部に(図示してない)に送出される。同時に、オ
ペランドアドレス生成回路201の出力信号線305 
上の出力信号はオペランドアドレス生成回路202に送
出される。上記サイクルにおいて制御情報レジスタ15
5にセットされた有効情報により信号線251 、25
2から制御情報が読出され、それぞれ信号線306 、
307 、308を介して制御情報レジスタ261 、
262 、155に送出される。
11- As already explained, if the instruction to take in the operand address generation stage of the above instruction is sent via the signal lines 164 and 165, the information of the above instruction taken into the operand address generation stage in the next cycle will be transferred to the operand address generation stage. An output signal is sent from the address generation circuit 201 via signal lines 301 and 302, and an output signal on the output signal line 303 is selected by the selector 230 and sent to the address exchange unit (not shown) via the signal line 310. Ru. At the same time, the output signal line 305 of the operand address generation circuit 201
The above output signal is sent to the operand address generation circuit 202. In the above cycle, the control information register 15
With the valid information set to 5, the signal lines 251 and 25
Control information is read from signal lines 306 and 2, respectively.
Control information register 261 via 307 and 308;
262, 155.

上記命令におしては信号線252上の終了監視制御情報
のうちカウンタ制御情報は無視され、オペランド供給終
了情報によって、終了が検出される。次サイクルにおり
ては、制御情報レジス 12− タ261から信号線309を介して送出される制御信号
によりオペランドアドレス生成回路202ヲ使用してオ
ペランドアドレス情報を得てbる。
In the above command, the counter control information among the termination monitoring control information on the signal line 252 is ignored, and the termination is detected based on the operand supply termination information. In the next cycle, the operand address generation circuit 202 is used to obtain operand address information in response to a control signal sent from the control information register 12-ta 261 via the signal line 309.

この時、出力信号線311がセレクタ230により選択
され、信号線310を介してアドレス変換部(図示して
ない→に送出されると共に、信号線315ヲ介してオペ
ランドアドレス生成回路202に戻される。次のサイク
ルにおいては、信号線308を介して制御情報レジスタ
155にセットされた情報に従い、信号線251 、2
52を介して制御情報が読出され、前サイクルと同様な
動作が行われる。上記動作の繰返しによって、必要なオ
ペランドが連続的に供給される。上記命令における最終
オペランドアドレス生成サイクルの期間には、制御情報
レジスタ262からオペランド供給終了情報が発せられ
、信号線312を介して後続命令開始指示ブロック13
0に報告され、ミし オペランドアドレス生成ステージ増込マれる。
At this time, the output signal line 311 is selected by the selector 230, and is sent to the address conversion unit (not shown) via the signal line 310, and is also returned to the operand address generation circuit 202 via the signal line 315. In the next cycle, according to the information set in the control information register 155 via the signal line 308, the signal lines 251, 2
Control information is read out via 52, and the same operation as in the previous cycle is performed. By repeating the above operations, the necessary operands are continuously supplied. During the final operand address generation cycle in the above instruction, operand supply end information is issued from the control information register 262 and transmitted to the subsequent instruction start instruction block 13 via the signal line 312.
0, and the operand address generation stage is added.

そとで、信号線164 、165上に指示信号が送出さ
れると共に、上記サイクルにメモリzsoVc格納され
てbる情報を無効にして、上記命令のオペランドアドレ
ス生成ステージは終了する。前記可変長オペランド命令
が命令レジスタ10にセットされると、命令解読ブロッ
ク110によってオペランド取出しに必要な情報が展開
され、解説レジスタ群150に送出される。上記サイク
ルにおいて上記命令のアドレス生成制御情報120が信
号線161を介して読出され、信号線162を介して制
御情報1/ジスタ156に送出される。
Then, an instruction signal is sent on the signal lines 164 and 165, and the information stored in the memory zsoVc in the above cycle is invalidated, and the operand address generation stage of the above instruction is completed. When the variable length operand instruction is set in the instruction register 10, the instruction decoding block 110 expands the information necessary for fetching the operand and sends it to the explanation register group 150. In the above cycle, the address generation control information 120 of the above instruction is read out via the signal line 161 and sent to the control information 1/register 156 via the signal line 162.

既に説明したように命令識別情報122では命令タイプ
が識別されるため、オペランド供給タイプ指示情報12
1は信号線166を介して有効情報として制御レジスタ
155に送出される。フリップフロップ157のリセッ
ト信号は、命令識別情報により、信号線163を介して
送出される。
As already explained, since the instruction type is identified in the instruction identification information 122, the operand supply type instruction information 12
1 is sent to control register 155 via signal line 166 as valid information. A reset signal for the flip-flop 157 is sent out via the signal line 163 based on the instruction identification information.

オペランド長読出しブロック260によって読出された
オペランド長は、上記命令識別情報により信号線312
 、313を介して有効情報としてオペランドレングス
レジスタ263 、264に送出される。既に説明した
ように、上記命令のオペランドアドレス生成ステージ取
込み指示が信号線164 、165を介して送出されて
14る場合には、次サイクルでオペランドアドレス生成
ステージに取込まれた上記命令の情報は信号線301,
302を介してオペランドアドレス生成回路201に送
出される。セレクタ230では出力信号線303が選択
され、信号線310を介してアドレス変換部(図示して
ない)その内容が送出される。同時にオペランドアドレ
ス生成回路201の出力は信号線305を介してオペラ
ンドアドレス生成回路202にも送出される。上記サイ
クルにおいて、制御情報レジスタ155にセットされた
有効情報により、制御情報251 、252が読出され
、信号線306 、307 、308を介して制御情報
レジスタ261 、262 、155に送出される。次
サイクルにおりては、制御情報レジスタ昼61から信号
線309を介して制御信号がオペランドアドレス生成回
路202に送出され、オペランドアドレス生成回路20
2ではオペランドアドレス情報を得て、セレクタ230
により出力信号線311が選択される。
The operand length read by the operand length read block 260 is transmitted to the signal line 312 according to the instruction identification information.
, 313 to the operand length registers 263, 264 as valid information. As already explained, when the instruction to take in the operand address generation stage of the above instruction is sent via the signal lines 164 and 165, the information of the above instruction taken into the operand address generation stage in the next cycle is signal line 301,
302 to the operand address generation circuit 201. The output signal line 303 is selected by the selector 230, and its contents are sent to an address converter (not shown) via a signal line 310. At the same time, the output of the operand address generation circuit 201 is also sent to the operand address generation circuit 202 via the signal line 305. In the above cycle, the control information 251 , 252 is read out based on the valid information set in the control information register 155 and sent to the control information registers 261 , 262 , 155 via the signal lines 306 , 307 , 308 . In the next cycle, a control signal is sent from the control information register 61 to the operand address generation circuit 202 via the signal line 309.
2, obtains the operand address information and selects the selector 230.
The output signal line 311 is selected.

 15− セレクタ230の出力信号は信号線310を介してアド
レス変換部(図示してな−)に送出される。
15- The output signal of the selector 230 is sent to an address conversion section (not shown) via the signal line 310.

同時に、この信号は信号線315を介してオペランドア
ドレス生成回路202に戻される。いつほう、制御情報
レジスタ262から送出された制御情報は信号線316
を介してセレクタ271 、272、カウンタ270、
およびオペランドレングスレジスタ263,264に送
出され、これらが制御されてオペランド供給が終了する
か否かが連続的に監視される。
At the same time, this signal is returned to operand address generation circuit 202 via signal line 315. At some point, the control information sent from the control information register 262 is transmitted to the signal line 316.
via selectors 271, 272, counter 270,
and is sent to the operand length registers 263 and 264, and these are controlled to continuously monitor whether or not the operand supply ends.

カウンタ270における演算モードは制御情報レジスタ
262によって任意に設定することが可能であるため、
本実施例におしてはオペランド供給単位を演算数に用い
、カウンタ270の内容が零、もしくは負になる時点を
終了の検出時点とする。このサイクルにおりては信号線
308により制御情報251 、252が読出され、前
サイクルと同様に動作する。この動作の繰返しによって
必要なオペランドが連続的に供給される。成る特定のサ
イクルにおりて、カウンタ270の内16− 容が零もしくは負になって終了条件が検出されると、信
号線501を介して後続命令オペランド供給開始指示ブ
ロック130に上記条件が報告され、オペランドアドレ
ス生成ステージ取込み指示信号164 、165が送出
されると共に上記サイクルでのメモリ250の情報を無
効にする。とれにより上記命令のオペランドアドレス生
成ステージは終了する。
Since the calculation mode in the counter 270 can be arbitrarily set by the control information register 262,
In this embodiment, the operand supply unit is used as the calculation number, and the point in time when the contents of the counter 270 become zero or negative is the point in time when the end is detected. In this cycle, the control information 251 and 252 are read out via the signal line 308, and the operation is the same as in the previous cycle. By repeating this operation, the necessary operands are continuously supplied. In a specific cycle, when the content of the counter 270 becomes zero or negative and a termination condition is detected, the condition is reported to the subsequent instruction operand supply start instruction block 130 via the signal line 501. , operand address generation stage capture instruction signals 164 and 165 are sent, and the information in the memory 250 in the above cycle is invalidated. This completes the operand address generation stage of the above instruction.

2つのオペランドを使用する可変長オペランド命令にお
りては、2つのオペランドの供給を成る特定パターンの
繰返しによって上記方法により実行し、カウンタ2フ0
で片方のオペランド供給が終了する条件が検出された場
合には、信号線312上のオペランド供給終了情報によ
り。
In a variable length operand instruction using two operands, the above method is executed by repeating a specific pattern consisting of supplying the two operands, and the counter 2 flag is set to 0.
If a condition is detected in which the supply of one of the operands ends, the information on the end of the supply of operands on the signal line 312 is used.

信号線501上の終了検出情報を無効にする。同時に、
終了検出情報501により分岐回路290を作動させて
制御情報を1オペランドのみ供給するパターンに変更し
、これによってオペランドを連続的に供給することが可
能になる。
The end detection information on the signal line 501 is invalidated. at the same time,
The end detection information 501 activates the branch circuit 290 to change the pattern of supplying control information to only one operand, thereby making it possible to supply operands continuously.

メモリアクセスはワード単位で行われるために一部の命
令におりてはオペランドの破壊的重複が起り、先行制御
部でのオペランドの供給が不可能になる場合がある。上
記情報を検出するために、オペランドの位置関係を調べ
てテストする手段をアドレス生成回路202の内部に設
ける。アドレス生成回路202にはレジスタが存在する
とは云え、アドレス計算に用Aられるのとけ別のレジス
タに、両オペランドの開始アドレス、ならびに重複テス
トするのに必要な後続アドレスをセットして比較するた
めの重複テスト手段を設けてしる。重複テスト手段の使
用タイミングは制御情報251の内部に存在する検出指
示を使用する。上記重複テスト手段により先行制御部で
先取不可能と判定された場合には、信号線604により
上記判定が報告され、上記制御情報250は無効になる
。上記制御情報は、信号線604により演算部に報告さ
れる。演算部では演算を実行する前に必要に応じてテス
トを実施し、信号線604上に信号が送出されている時
には、演算部は先行制御部のメモリリフエストラキャン
セルし、オペランドアドレス生成回路202の内部に残
されてAる開始アドレスを使用してメモリアクセスを指
示すべく、信号線605を使用して制御情報をセットす
る。
Since memory access is performed in units of words, destructive duplication of operands may occur in some instructions, making it impossible for the advance control section to supply operands. In order to detect the above information, means for checking and testing the positional relationship of the operands is provided inside the address generation circuit 202. Although there is a register in the address generation circuit 202, the start address of both operands and the subsequent address necessary for the duplication test are set in a separate register to the one used for address calculation and used for comparison. A means of redundant testing will be provided. The timing of use of the duplication test means uses a detection instruction existing within the control information 251. If the preceding control unit determines that preemption is not possible by the duplication test means, the determination is reported via the signal line 604, and the control information 250 becomes invalid. The above control information is reported to the arithmetic unit via a signal line 604. The arithmetic unit performs a test as necessary before executing an arithmetic operation, and when a signal is sent on the signal line 604, the arithmetic unit cancels the memory refresher of the advance control unit and updates the operand address generation circuit 202. Control information is set using the signal line 605 to instruct memory access using the start address A left internally.

すなわち、演算部の制御によりメモリリクエストが送出
されて命令が実行される。
That is, a memory request is sent and an instruction is executed under the control of the arithmetic unit.

一部の命令におりでは、先行制御部で使用されるであろ
う最大のオペランド長が判明するが、実際に使用される
命令のオペランド長は、演算ブロックで判明するものと
、演算ブロックでの前処理の後にメモリリクエストが必
要なものとがある。上記におりてけ演算部から信号線6
01 。
For some instructions, the maximum operand length that will be used in the preceding control part is known, but the operand length of the instruction actually used is determined by the calculation block and the maximum operand length that will be used in the calculation block. Some require memory requests after preprocessing. Take the signal line 6 from the calculation section above.
01.

602 、603を介してアドレスおよびアーギュメン
トと、リクエスト送出手順と、リクエスト回数とをアド
レス生成回路202にセットし、レジスタ155 、2
63 、264に対して処理に有効な情報をセットして
、メモリアクセスの制御全先行制御部に再び戻すことに
より、連続的であって高速にオペランドの供給を行うこ
とが可能になる。
The address and arguments, the request sending procedure, and the number of requests are set in the address generation circuit 202 via the registers 155 and 603.
By setting information effective for processing in 63 and 264 and returning memory access control to the full advance control unit, operands can be supplied continuously and at high speed.

(発明の効果) 本発明は以上説明したように、可変長オペランド命令に
よって指定されたオペランドを必要な長さ分だけ連続的
に供給すると共に、命令のオペランド供給の終了を先行
制御により検出することにより、Aかなる命令におりで
もオペランド供給を連続的、且つ効率的に行うことが可
能になるとbう大きな効果がある。
(Effects of the Invention) As described above, the present invention continuously supplies the required length of operands specified by variable-length operand instructions, and detects the end of operand supply for the instruction by advance control. This has a great effect in that it becomes possible to continuously and efficiently supply operands to any instruction.

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

第1図は、本発明による先行制御装置の一実施例を示す
ブロック構成図である。 101・・・命令レジスタ 110・・・命令解読ブロック 120.251・・・オペランドアドレス生成制御情報
121・・・オペランド供給タイプ指示情報122・・
・命令識別情報 252・・・オペランド供給終了監視制御情報130・
・・オペランド供給開始指示ブロック150.155,
156,157,261,262,263,264・・
・レジスタ ー 21 、 IQ’)  20− 230.271,272・・・セレクタ回路270・・
・カウンタ回路 201.202・・・オペランドアドレス生成回路26
0・・・オペランド長読出しブロック290・・・分岐
回路 161〜166.301〜316,501〜503.6
01〜605・・・信号線 特許出願人 日本電気株式会社 代理人 弁理士 井 ノ ロ 壽  22−
FIG. 1 is a block diagram showing an embodiment of the advance control device according to the present invention. 101...Instruction register 110...Instruction decoding block 120.251...Operand address generation control information 121...Operand supply type instruction information 122...
・Instruction identification information 252...Operand supply end monitoring control information 130・
...Operand supply start instruction block 150.155,
156, 157, 261, 262, 263, 264...
・Register 21, IQ') 20- 230.271, 272...Selector circuit 270...
・Counter circuit 201.202...operand address generation circuit 26
0... Operand length read block 290... Branch circuits 161-166, 301-316, 501-503.6
01-605...Signal line patent applicant NEC Corporation agent Patent attorney Hisashi Inoro 22-

Claims (1)

【特許請求の範囲】[Claims] パイプライン方式の情報処理における複数のメモリアク
セスによってオペランドを供給するための命令のオペラ
ンド連続供給、および前記命令のオペランド供給の終了
を検出することが可能な先行制御装置において、オペラ
ンドの破壊的重複を検出するための重複検出手段と、前
記重複検出手段により破壊的重複検出時にはオペランド
供給を中止させるための供給中止手段と、前記検出され
た情報を演算部に通知するだめの通知手段とを具備して
構成したことを特徴とする先行制御装置。
Destructive duplication of operands is prevented in a preceding control device capable of continuously supplying operands of instructions for supplying operands by multiple memory accesses in pipelined information processing, and detecting the end of the supply of operands of said instructions. a duplication detection means for detecting the same; a supply stop means for stopping operand supply when the duplication detection means detects a destructive duplication; and a notification means for notifying the arithmetic unit of the detected information. An advance control device characterized by being configured.
JP9517284A 1984-05-11 1984-05-11 Precedence controlling device Pending JPS60238934A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9517284A JPS60238934A (en) 1984-05-11 1984-05-11 Precedence controlling device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9517284A JPS60238934A (en) 1984-05-11 1984-05-11 Precedence controlling device

Publications (1)

Publication Number Publication Date
JPS60238934A true JPS60238934A (en) 1985-11-27

Family

ID=14130331

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9517284A Pending JPS60238934A (en) 1984-05-11 1984-05-11 Precedence controlling device

Country Status (1)

Country Link
JP (1) JPS60238934A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55153053A (en) * 1979-05-17 1980-11-28 Hitachi Ltd Information processor
JPS5775356A (en) * 1980-10-28 1982-05-11 Fujitsu Ltd Instruction pre-fetch control system
JPS58142447A (en) * 1982-02-19 1983-08-24 Hitachi Ltd Data processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55153053A (en) * 1979-05-17 1980-11-28 Hitachi Ltd Information processor
JPS5775356A (en) * 1980-10-28 1982-05-11 Fujitsu Ltd Instruction pre-fetch control system
JPS58142447A (en) * 1982-02-19 1983-08-24 Hitachi Ltd Data processor

Similar Documents

Publication Publication Date Title
EP0380858B1 (en) Method and apparatus for detecting and correcting errors in a pipelined computer system
KR100335785B1 (en) Execution of data processing instructions
JP3304444B2 (en) Vector processing equipment
JPS60238934A (en) Precedence controlling device
JPH06168263A (en) Vector processor
JPS60238937A (en) Precedence controlling device
JPS60238935A (en) Precedence controlling device
JPS59112350A (en) Supervising and controlling system of program
JP2808985B2 (en) Information processing device and debug device
JP2550708B2 (en) Debug method
JPH0721767B2 (en) Emulation method
JPH03257665A (en) Information processor
JPH02301830A (en) Information processing system
JPH06202907A (en) Debug support device
JPS59183443A (en) Debug device
JP2665173B2 (en) Processor trap circuit
JPH01293447A (en) Control system for address coincidence interruption
JPH0279122A (en) Floating point arithmetic mechanism
JPS59178547A (en) Instruction retry system
JPS6212534B2 (en)
JPH04148236A (en) Central processing unit
JPH0335323A (en) Control system for execution of instruction
JPH01284943A (en) Information processor
JPS6234238A (en) Microprocessor
JPH02188839A (en) Data processor