JPS62269235A - Information processor - Google Patents

Information processor

Info

Publication number
JPS62269235A
JPS62269235A JP11182286A JP11182286A JPS62269235A JP S62269235 A JPS62269235 A JP S62269235A JP 11182286 A JP11182286 A JP 11182286A JP 11182286 A JP11182286 A JP 11182286A JP S62269235 A JPS62269235 A JP S62269235A
Authority
JP
Japan
Prior art keywords
register
instruction
general
address
file
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
JP11182286A
Other languages
Japanese (ja)
Inventor
Noriaki Sakai
則彰 境
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP11182286A priority Critical patent/JPS62269235A/en
Publication of JPS62269235A publication Critical patent/JPS62269235A/en
Pending legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)

Abstract

PURPOSE:To reduce the increase of hardware by constituting the titled processor so that the generation of an address of the succeeding instruction can be executed without being awaited until a general register is updated by the preceding instruction which is not executed yet, and also, an updated data of the general register is generated by using an address generating device. CONSTITUTION:An instruction decoder DEC14 sets GR3, GR2, and '0' to an index register XR18, a base register BR19, and displacement register DR20, respectively, by sending a control signal to selectors 15-17. An address generating device AA21 adds values of the index register XR18, the base register BR19, and the displacement register DR21, respectively, and its value is written in GR2 of a preceding control general register file PGR13. Until such write is executed, GR2 of the preceding control general register file PGR13 is used by the succeeding instruction, instead of GR2 of a general register file GR12.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置、特にアドレス生成時の汎用レジ
スタの競合によるパイプラインの乱れを減少させた情報
処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an information processing device, and particularly to an information processing device that reduces pipeline disturbances caused by general-purpose register contention during address generation.

〔従来の技術とその問題点〕[Conventional technology and its problems]

従来、この種の/Jイブライン方式による情報処理装置
は、アドレス生成に使用する汎用レジスタが未実行の先
行命令により更新さ汎ることを検出し、該汎用レジスタ
が先行命令の完了により更新されるまでアドレス生成を
遅らせる必要があった。
Conventionally, this type of information processing device using the /J e-line method detects that a general-purpose register used for address generation is updated by an unexecuted preceding instruction, and the general-purpose register is updated upon completion of the preceding instruction. It was necessary to delay address generation until

また、上記のアドレス生成の遅れを改善する技術として
、データ作成装置を設けて命令実行に先行しかしこれも
データ作成装置を必要とするため金物量の増大という問
題点がある。
Further, as a technique for improving the delay in address generation described above, a data generation device is provided to precede the instruction execution, but this also requires a data generation device, which poses the problem of an increase in the amount of hardware.

〔問題点を解決するだめの手段〕[Failure to solve the problem]

本発明によると先行制御装置、記憶装置および演算実行
装置を備えた情報処理装置において、記憶装置からオペ
ランドを読み出す必要のない命令であることを検出する
手段と、該命令が汎用レジスタを更新する命令であるこ
とを検出する手段と。
According to the present invention, in an information processing device including a preceding control device, a storage device, and an arithmetic execution device, there is provided a means for detecting that an instruction does not require reading an operand from a storage device, and an instruction for updating a general-purpose register. and a means for detecting that.

該各検出手段の条件が共に成立したとき前記記憶装置に
送られるアドレスを生成するアドレス生成装置を用いて
演算を実行し前記命令の演算実行に先行して後続命令の
アドレス生成のだめの汎用レジスタの更新データを作成
する手段を含むことを特徴とする情報処理装置が得らn
る。
When the conditions of each detection means are satisfied, an operation is executed using an address generation device that generates an address to be sent to the storage device. An information processing device characterized by including means for creating update data is obtained.
Ru.

〔実施例〕〔Example〕

次に2本発明について図面を参照して説明する。 Next, two aspects of the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例のブロック構成図であり、先
行制御装置1.記憶装置2.演算実行装置3を備えてい
る。まだ先行制御装置1の中で11は命令レジスタ(I
R)、12は汎用レジスタファイル(GR)、13は先
行制御汎用レジスタファイル(PC;R) 、 14は
命令レコーダ(DEC) 、 18ハインデツクスレジ
スタ(XR)、19はベースレジスタ(BR)、20は
ディスプレースメントレジスタ(DR)、21はアドレ
ス生成装置(AA) 。
FIG. 1 is a block diagram of an embodiment of the present invention, in which a preceding control device 1. Storage device 2. It is equipped with an arithmetic execution device 3. In the preceding control device 1, 11 is an instruction register (I
R), 12 is a general-purpose register file (GR), 13 is a advance control general-purpose register file (PC; R), 14 is an instruction recorder (DEC), 18 is an index register (XR), 19 is a base register (BR), 20 is a displacement register (DR), and 21 is an address generator (AA).

15.16.17はそnぞれ前記XRI 8 、 BR
19、DR20の入力セレクタである。
15, 16, and 17 are respectively the above-mentioned XRI 8 and BR
19, is an input selector of DR20.

先行制御装置1は命令を記憶装置2より読出し。The advance control device 1 reads the command from the storage device 2.

解読し、必要ならばアドレス計算によりオペランドアド
レスを求めて記憶装置2よシオベランドを読出し、操作
コード、オペランド、操作情報等を演算実行装置3に転
送する。演算実行装置3は先行制御装置1が設定した情
報により演算を行ない。
The data is decoded, and if necessary, the operand address is determined by address calculation, the data is read from the storage device 2, and the operation code, operand, operation information, etc. are transferred to the operation execution device 3. The calculation execution device 3 performs calculations based on the information set by the preceding control device 1.

各種レジスタやステータスまたは記憶装置の更粕を行な
う。
Performs alteration of various registers, status, or storage devices.

先行制御装置1において、命令レジスタ(IR)11の
ある決ったビット位置により汎用レジスタファイル(G
R)12からその内容を読み出す、1RXタイプの命令
では、汎用レジスタファイル(GR)12のR2+ R
3よりインデックス、ベースをそれぞれ読み出し、おの
おのをインデックスレジスタ(XR)18.ペースレジ
スタ(BR)19にセットする。同時に命令により指定
さnるディスブレースメンドアドレスをディスプレーヌ
メントレジスタ(DR)20にセットする。このインデ
ックスレジスタ(XR)18.ベースレンゝスタ(BR
)19.ディスプレースメントレジスタ(DR)20の
出力をアドレス生成装置(AA)21により加算して第
2オペランドのアドレスが求まる。このアドレスは記憶
装置2に送られ第2オペランドが読出され、第2オペラ
ンドが演算実行装置3に送られる。第1オペランドは汎
用レジスタファイル(GR)12のR1より読み出さn
演算実行装置3に送らnる。
In the advance control device 1, a general register file (G
For a 1RX type instruction that reads its contents from R) 12, R2+R of general register file (GR) 12
Read out the index and base from 18.3 and store each in index register (XR). Set in pace register (BR) 19. At the same time, n displacement addresses specified by the instruction are set in the displanement register (DR) 20. This index register (XR)18. Base Rensta (BR)
)19. The address of the second operand is determined by adding the outputs of the displacement register (DR) 20 by the address generator (AA) 21. This address is sent to the storage device 2, the second operand is read out, and the second operand is sent to the arithmetic execution device 3. The first operand is read from R1 of the general register file (GR) 12.
The data is sent to the calculation execution device 3.

RRタイプの命令では、第1.第2オにランドは汎用レ
ジスタファイル(GR)12を読出すことで得られ、記
憶装置2から読み出す必要がなく。
In the RR type instruction, the first . Second, the land can be obtained by reading out the general register file (GR) 12, so there is no need to read it out from the storage device 2.

このときアドレス生成装置(AA)21は使用さnない
ことになる。命令デコーダ(DEC) 14ではデコー
ド中の命令が記憶装置2からオペランドを読み出す必要
がないために、アドレス生成装置(AA)21が使用さ
れないことを検出する。また命令デコーダ(DEC) 
14はデコード中の命令が汎用レジスタを更新するよう
な命令であることも検出する。命令レジスタ(IR)1
1の命令がアドレス生成装置(AA)21が使用されな
いことと、汎用レジスタを更新する命令であることを共
に検出したとき、インデックスレジスタ(XR)18、
ペースレジスタ(BR)19.ディスプレースメントレ
ジスタ(DR)20の入力セレクタ(SEL) 15 
、16および17は命令デコーダ(DEC) 14の指
示に従い切換わυ、RXタイプの命令のときとは異なる
値がインデックスレジスタ(XR) 18 、ペースレ
ジスタ(BR) 19 、ディスプレースメントレノス
タ(DR)20にセ。
At this time, the address generation device (AA) 21 is not used. The instruction decoder (DEC) 14 detects that the address generator (AA) 21 is not used because the instruction being decoded does not need to read operands from the storage device 2. Also, instruction decoder (DEC)
14 also detects that the instruction being decoded is an instruction that updates a general-purpose register. Instruction register (IR) 1
When the instruction No. 1 detects that the address generator (AA) 21 is not used and that it is an instruction to update a general-purpose register, the index register (XR) 18,
Pace register (BR)19. Input selector (SEL) of displacement register (DR) 20 15
, 16 and 17 are switched according to instructions from the instruction decoder (DEC) 14, and values different from those for RX type instructions are index register (XR) 18, pace register (BR) 19, and displacement register (DR). Set to 20.

トさnる。これらのレジスタにセットさnた値はアドレ
ス生成装置(AA)21に送られ、その出力が先行制御
汎用レジスタファイル(PGR) 13 K書き込まれ
る。
Tosanru. The values set in these registers are sent to the address generator (AA) 21, and its output is written to the advance control general register file (PGR) 13K.

例えば命令レジスタ(IR)11にGR2+GR3をG
R2にセットする命令があったとすると、命令デコーダ
(DEC) 14でこの命令がアドレス生成装置(AA
)21が使用されないことと、汎用レジスタを更新する
命令であることを検出する。命令デコーダ(DEC) 
14はセレクタ15.16および17に制御信号を送る
ことにより、インデックスレジスタ(XR)18にGR
3を、ベースレジスタ(BR)19にGR2を、ディス
プレースメントレシスタ(DR)20に0をセットする
。アドレス生成装置(AA)21はインデックスレジス
タ(XR)18.ペースレジスタ(BR)19゜ディス
プレースメントレジスタ(DR)20の値をそれぞれ加
算し、その値が先行制御汎用レジスタファイル(PGR
) 13のGR2に書き込まれる。
For example, set GR2+GR3 to the instruction register (IR) 11.
If there is an instruction to set R2, the instruction decoder (DEC) 14 outputs this instruction to the address generator (AA).
) 21 is not used and that it is an instruction to update a general-purpose register. Instruction decoder (DEC)
14 sends a control signal to selectors 15, 16 and 17 to set GR to index register (XR) 18.
3, GR2 is set in the base register (BR) 19, and 0 is set in the displacement register (DR) 20. The address generation device (AA) 21 includes an index register (XR) 18. The values of the pace register (BR) 19° and the displacement register (DR) 20 are added, and the resulting value is added to the advance control general-purpose register file (PGR).
) is written to GR2 of 13.

汎用レジスタファイル(GR)12のGR2にはこの命
令が演算実行装置3で実行された後GR2−1−GR3
が書き込まれるが、この書き込みが行なわnるまでは汎
用レジスタファイル(GR)12のGR2の代りに先行
制御汎用レジスタファイル(PGR) 13のGR2を
後続命令で使用する。
After this instruction is executed by the arithmetic execution unit 3, GR2-1-GR3 of the general-purpose register file (GR) 12 are stored in GR2.
is written, but until this writing is performed, GR2 of the advance control general register file (PGR) 13 is used in the subsequent instruction instead of GR2 of the general register file (GR) 12.

また、もし仮に直後の命令でGR2がアドレス生成のた
めに参照されたならば、アドレス生成装置(AA)21
の出力を先行制御汎用レジスタファイル(PGR) 1
3に書き込むとともにセレクタ(SEL) 15 、1
6にも送シ、インデックスレソスタ(XR)18および
ペースレジスタ(BR) 19にセットすることもでき
る。
Also, if GR2 is referenced for address generation in the immediately following instruction, the address generation device (AA) 21
General purpose register file (PGR) 1
3 and selector (SEL) 15, 1
6 can also be set in the index register (XR) 18 and pace register (BR) 19.

本実施例では汎用レジスタファイル(GR)12とは別
に先行制御汎用レジスタファイル(PGR) 13を設
けたが、それはアドレス生成装置(AA)21からの書
き込みが演算実行装置3からの書き込みと競合した場合
に同時に書き込みができるようにするためで、汎用レジ
スタファイル(GR)12が同時に2個のレジスタに書
き込み可能であれば。
In this embodiment, a advance control general-purpose register file (PGR) 13 is provided separately from the general-purpose register file (GR) 12, but this is because writing from the address generation device (AA) 21 competes with writing from the arithmetic execution device 3. If the general purpose register file (GR) 12 can write to two registers at the same time.

先行制御汎用レジスタファイル(PGR) 13は特に
必要はない。
The advanced control general-purpose register file (PGR) 13 is not particularly necessary.

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

以上説明したように2本発明は記憶装置からオ綬ランド
を読み出す必要のない命令であることを検出する手段と
、命令が汎用レジスタを更新する命令であることを検出
する手段と、各検出手段の条件が共に成立したとき上記
記憶装置に送られるアドレスを生成するアドレス生成装
置を用いて演の先行命令によシ汎用レジスタが更新され
るまで待たされずにおこなうことができ、また、アドレ
ス生成装置を用いて汎用レジスタの更新データを生成し
ているので金物増が少ないという効果がある。
As explained above, two aspects of the present invention include means for detecting that the instruction does not require reading O-Land from a storage device, means for detecting that the instruction is an instruction for updating a general-purpose register, and each detection means. By using an address generation device that generates an address to be sent to the storage device when both of the conditions of Since update data for general-purpose registers is generated using

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

第1図は本発明の一実施例のブロック構成図である。 1・・・先行制御装置、2・・・記憶装置、3・・・演
算実行装置、11・・・命令レジスタ、12・・・汎用
レノスタフアイル、13・・・先行制御汎用レゾスタフ
アイル、14・・・命令レコーダ+15+16+17・
・・入力セレクタ、18・・・インデックスレジスタ、
19・・・ペースレジスタ、20・・・ディスプレース
メントレソスタ、21・・・アドレス生成装置第1図
FIG. 1 is a block diagram of an embodiment of the present invention. DESCRIPTION OF SYMBOLS 1... Preliminary control device, 2... Storage device, 3... Arithmetic execution device, 11... Instruction register, 12... General-purpose renosta file, 13... Preliminary control general-purpose renosta file, 14...Instruction recorder+15+16+17・
...input selector, 18...index register,
19... Pace register, 20... Displacement register, 21... Address generation device Fig. 1

Claims (1)

【特許請求の範囲】[Claims] 1、先行制御装置、記憶装置および演算実行装置を備え
た情報処理装置において、記憶装置からオペランドを読
み出す必要のない命令であることを検出する手段と、該
命令が汎用レジスタを更新する命令であることを検出す
る手段と、該各検出手段の条件が共に成立したとき前記
記憶装置に送られるアドレスを生成するアドレス生成装
置を用いて演算を実行し前記命令の演算実行に先行して
後続命令のアドレス生成のための汎用レジスタの更新デ
ータを作成する手段とを含むことを特徴とする情報処理
装置。
1. In an information processing device equipped with a preceding control device, a storage device, and an arithmetic execution device, means for detecting that the instruction does not require reading an operand from the storage device, and the instruction is an instruction for updating a general-purpose register. and an address generating device that generates an address to be sent to the storage device when the conditions of each of the detection means are satisfied. An information processing device comprising: means for creating update data for a general-purpose register for address generation.
JP11182286A 1986-05-17 1986-05-17 Information processor Pending JPS62269235A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11182286A JPS62269235A (en) 1986-05-17 1986-05-17 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11182286A JPS62269235A (en) 1986-05-17 1986-05-17 Information processor

Publications (1)

Publication Number Publication Date
JPS62269235A true JPS62269235A (en) 1987-11-21

Family

ID=14571027

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11182286A Pending JPS62269235A (en) 1986-05-17 1986-05-17 Information processor

Country Status (1)

Country Link
JP (1) JPS62269235A (en)

Similar Documents

Publication Publication Date Title
JP3237858B2 (en) Arithmetic unit
JPS62269235A (en) Information processor
JPS588011B2 (en) Microprogram Seigiyohoshiki
JP3140028B2 (en) Subroutine argument passing method
JP3481301B2 (en) Processor control unit
JPS5971542A (en) Arithmetic processor
JPS59223846A (en) Arithmetic processor
JPS61133440A (en) Data processing unit
JP2895892B2 (en) Data processing device
JPS63120336A (en) Switching system for memory access mode
JPS61267135A (en) Data processor
JPH0424731B2 (en)
JPH0588893A (en) Parallel operation processor
JPH0916399A (en) Computer
JPS63301331A (en) Processing system for program interruption
JPS60129837A (en) Signal processing operation processor
JPS6028014B2 (en) microprocessor
JPH0338613B2 (en)
JPS58205256A (en) Data processor
JPS63172356A (en) Address conversion system
JPH03229324A (en) Information processor
JPH0256027A (en) Parallel processing system for digital signal processor
JPH02204861A (en) Vector data processor
JPH036735A (en) Data processor
JPS62251930A (en) Information processor