JPS6265133A - Instruction prefetching device - Google Patents

Instruction prefetching device

Info

Publication number
JPS6265133A
JPS6265133A JP20462485A JP20462485A JPS6265133A JP S6265133 A JPS6265133 A JP S6265133A JP 20462485 A JP20462485 A JP 20462485A JP 20462485 A JP20462485 A JP 20462485A JP S6265133 A JPS6265133 A JP S6265133A
Authority
JP
Japan
Prior art keywords
instruction
instructions
register
prefetched
buffer
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
JP20462485A
Other languages
Japanese (ja)
Inventor
Yoshinori Chiwaki
千脇 義憲
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 JP20462485A priority Critical patent/JPS6265133A/en
Publication of JPS6265133A publication Critical patent/JPS6265133A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To execute plural instructions just in a single instruction time by checking whether or not the prefetched plural instructions can be executed after decoding them simultaneously and synthesizing those instructions. CONSTITUTION:Plural instructions set in two pairs, etc. which are prefetched by a prefetch instruction buffer 1 with the address given from a buffer read address register 2 and the address passed through an adder 3. These read-out instructions are decoded by an instruction decoder 6 and at the same time it is checked whether two instructions can be synsethized into a single instruction or not. If this synthesizing is possible, selectors 7-9 are controlled for selection of operands and instructions to be synthesized. These selected operands and instructions are stored in operand registers 10-12 and an instruction register 13 respectively. Then plural instruction, e.g., two instruction are executed by a single instruction through a general-purpose register group 14, an arithmetic unit 15, etc.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は情報処理装置の命令先取り装置に関し、特に先
取シした命令の合成に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an instruction prefetching device for an information processing device, and more particularly to synthesis of prefetched instructions.

(従来の技術) 従来、この稽の命令先取り装置では先取シした命令を記
憶手段に格納し、命令の実行III序に従って先取りし
た命令を解読し、解読した演9指令を演算部に送出して
いた。
(Prior art) Conventionally, this instruction prefetching device stores the prefetched instruction in a storage means, decodes the prefetched instruction according to the instruction execution order, and sends the decoded instruction to the calculation unit. Ta.

(発明が解決しようとする問題点) 上述した従来の命令先取り装置では、順番に一つの命令
とと釦解読を実行するので先取りした複数の命令を同時
に解読し、合成して1回の演算で実現できる場合でも、
一つの命令ごとにしか演算できず、一つの命令の演算の
実行時間に比較して著しく演算時間が長くなるという欠
点がある。
(Problems to be Solved by the Invention) In the conventional instruction prefetching device described above, one instruction and button decoding are executed in sequence, so multiple prefetched instructions are simultaneously decoded and combined into one operation. Even if it is possible to achieve
The disadvantage is that the calculation can only be performed for each instruction, and the calculation time is significantly longer than the execution time of a single instruction.

本発明の目的は、先取りした複数の命令をいったん保持
しておA、先取すした上記複数の命令を同時に解読して
合成できるか否かを検出し、合成して演算できる場合に
は合成した演算指令を演算部に送出することによって上
記欠点を除去し、演算時間を短縮できるように構成した
命令先取り装置を提供することにある。
The purpose of the present invention is to temporarily hold a plurality of prefetched instructions, detect whether or not the prefetched instructions can be simultaneously decoded and synthesized, and, if they can be combined and operated, combine them. It is an object of the present invention to provide an instruction prefetching device configured to eliminate the above-mentioned drawbacks and shorten calculation time by sending calculation instructions to a calculation section.

(問題点を解決するだめの手段) 本発明による命令先取り装置は先取り命令保持手段と、
命令解読手段と、セレクタ手段とを具備して構成したも
のである。
(Means for solving the problem) The instruction prefetching device according to the present invention includes prefetched instruction holding means,
It is configured to include an instruction decoding means and a selector means.

先取り命令保持手段は、先取りした複数の命令を保持す
るためのものである。
The prefetched instruction holding means is for holding a plurality of prefetched instructions.

命令解読手段は先取りした複数の命令を同時に解読し、
合成して実行できるか否かを検出するためのものである
The instruction decoding means simultaneously decodes multiple prefetched instructions,
This is to detect whether it is possible to synthesize and execute.

セレクタ手段は、合成によって演算が実行できる場合に
は合成した演算指令を演算部に送出するためのものであ
る。
The selector means is for sending the combined calculation command to the calculation section if the calculation can be executed by combination.

(実施例) 次に、本発明について図面を参照して説明する。(Example) Next, the present invention will be explained with reference to the drawings.

第1図は、本発明による命令先取り装置の一実施例を示
すブロック図である。第1図において、1け先取り命令
バッファ、2はバックアリ−ドアドレスレジスタ、3.
4はそれぞれ第1および第2の加算器、5.7.8.9
はそれぞれ第1〜第4のセレクタ、6は命令解読器、1
0〜12はそれぞれ第1〜第3のオペランドレジスタ、
13は命令レジスタ、14は汎用レジスタ、15は演算
器である。
FIG. 1 is a block diagram showing an embodiment of an instruction prefetching device according to the present invention. In FIG. 1, a 1-digit prefetch instruction buffer, 2 a back read address register, 3.
4 are the first and second adders, respectively, 5.7.8.9
are the first to fourth selectors, 6 is an instruction decoder, and 1 is the first to fourth selector.
0 to 12 are the first to third operand registers, respectively;
13 is an instruction register, 14 is a general-purpose register, and 15 is an arithmetic unit.

第1図において先取り命令バッファ1はメモリ(図示し
ていない)から先取すした命令を入力して保持し、バッ
ファリードアドレスレジスタ2の内容と、バッファリー
ドアドレスレジスタ2の内容を第1の加9器3によって
1だけ減分した値とによって、信号線101.102に
よりアクセスされて同時に読出される。同時に読出され
た上記命令は信号線103.104を介して命令解読器
6に加えられ、命令解読器6により同時に解読される。
In FIG. 1, a prefetch instruction buffer 1 inputs and holds a prefetched instruction from a memory (not shown), and transfers the contents of the buffer read address register 2 and the contents of the buffer read address register 2 to the first buffer 9. The value decremented by 1 by the device 3 is accessed by the signal lines 101 and 102 and read out at the same time. The instructions read simultaneously are applied to the instruction decoder 6 via signal lines 103 and 104, and are simultaneously decoded by the instruction decoder 6.

このとき、続出された2命令が1命令に合成可能である
か否かも調べられる。″ 2命令が1命令に合成できる場合、第2の加算54によ
りパックアリ−ドアドレスレジスタ2の内容を2だけ減
分したアドレスを第1のセレクタ5によって選択し、バ
ッファリードアドレスレジスタ2に格納する。2命令が
1命令に合成できる場合、第2〜第4のセレクタ7〜9
は合成すべきオペランド、および命令を選択し、それぞ
れ第1〜第3のオペランドレジスタ10〜12と命令レ
ジスタ13とに格納する。第1のオペランドレジスタ1
0は汎用レジスタ群14のうちの書込み用の汎用レジス
タを指定し、第2のオペランドレジスタ11および第3
のオペランドレジスタ12は汎用レジスタ群14のうち
の読出し用の汎用レジスタを指定する。命令レジスタ1
3は、演算器15の演算を指定する。
At this time, it is also checked whether two consecutively issued instructions can be combined into one instruction. ``If two instructions can be combined into one instruction, the first selector 5 selects an address obtained by decrementing the contents of the packed read address register 2 by 2 by the second addition 54, and stores it in the buffer read address register 2. If two instructions can be combined into one instruction, the second to fourth selectors 7 to 9
selects operands and instructions to be synthesized and stores them in first to third operand registers 10 to 12 and instruction register 13, respectively. 1st operand register 1
0 specifies the general-purpose register for writing in the general-purpose register group 14, and specifies the second operand register 11 and the third
The operand register 12 specifies a general-purpose register for reading out of the general-purpose register group 14. instruction register 1
3 specifies the operation of the arithmetic unit 15.

次に、第1図に示す命令先取シ装置の動作を説明する。Next, the operation of the instruction preemption device shown in FIG. 1 will be explained.

第2図に示すように、先取り命令バッファ1の2番地に
命令LPRR2,,4が先取シされ、1番地に命令5Q
RR2,,5が先取シされているものとする。バッファ
リードアドレスレジスタ2は、次に実行すべき命令LD
RR,,4の2番地を示す。
As shown in FIG. 2, instructions LPRR2, 4 are prefetched at address 2 of prefetch instruction buffer 1, and instruction 5Q is prefetched at address 1.
Assume that RR2,,5 are preempted. Buffer read address register 2 contains the instruction LD to be executed next.
It shows address 2 of RR,,4.

命令LDRR2,,4け(G2)←(G4)を意味し、
命令5BRR2,,5けrGR2)←(GR2)−(G
R5)を意味する。ここで、(GRl)(i=2.4.
5・・・・・・)は汎用レジスタ群14の第iのレジス
タの内容を表わす。先取υ命令バッファ1は信号線10
1上のXIBRAと信号線102上のYIBRAとによ
り、2番地と1番地との内容が同時に読出されて命令w
ll密器に入力される。
The instruction LDRR2,,4 digits (G2)←(G4) means,
Instruction 5BRR2,, 5 digits GR2)←(GR2)-(G
R5). Here, (GRl)(i=2.4.
5...) represents the contents of the i-th register of the general-purpose register group 14. Preemption υ instruction buffer 1 is signal line 10
The contents of addresses 2 and 1 are simultaneously read by XIBRA on signal line 102 and YIBRA on signal line 102, and the instruction w
ll is input into the secret chamber.

命令解読器6は命令LDRR2,,4と命令5BRR2
,,5とを合成して(GR2)←(GR4)−(GR5
)を行えばよいので、合成可能であると判断する。第2
〜第4のセレクタ7〜9を選択して、第1のオペランド
レジスタ10にはGR2を指定するアドレスをセットし
、第2のオペランドレジスタ11KHGR4を指定する
アドレスをセットし、第3のオペランドレジスタ12に
はGR5を指定するアドレスをセットする。
The instruction decoder 6 reads instructions LDRR2, 4 and instruction 5BRR2.
,,5 and synthesize (GR2)←(GR4)-(GR5
), it is determined that synthesis is possible. Second
- Select the fourth selectors 7 to 9, set the address specifying GR2 in the first operand register 10, set the address specifying the second operand register 11KHGR4, and set the address specifying GR2 in the first operand register 11. Set the address specifying GR5 to .

命令レジスタ13には、減算を指示する命令をセットす
る。すなわち、上記動作には命令LDRR2,,4と命
令5BRR2,,5とを合成したことになる。
An instruction for instructing subtraction is set in the instruction register 13. That is, the above operation is a combination of instructions LDRR2, 4 and instructions 5BRR2, 5.

次に、汎用レジスタ群14の第2および第3のオペラン
ドレジスタ11.12によって指定されたGR4とGR
5との内容を読出し、命令レジスタ13で指定された減
算を演算器15で実施する。
Next, GR4 and GR specified by the second and third operand registers 11.12 of the general-purpose register group 14 are
5 is read out, and the subtraction specified by the instruction register 13 is executed by the arithmetic unit 15.

すなわち、(GR4)−(GR5)の結果が演算器15
から出力これる。第1のオペランドレジスタ10によっ
て指定されたGR2へ演算器15から得られた結果が書
込まれる。
That is, the result of (GR4)-(GR5) is
This is the output from. The result obtained from the arithmetic unit 15 is written to GR2 designated by the first operand register 10.

以上のようにして、命令LDRR2,,4と命令5BR
R2,,5とけ1命令に合成される。
As described above, instructions LDRR2,,4 and instruction 5BR
R2,,5 are combined into one instruction.

先取9命令バツフア1のバッファリードアドレスレジス
タ2には第2の加算器4が第1のセレクタ5によシ選択
されるので、2−2=0が入力される。すなわち、命令
LDRRI、、5が示され、次に実行すべき命令のアド
レスが示される。
Since the second adder 4 is selected by the first selector 5, 2-2=0 is input to the buffer read address register 2 of the prefetch 9-instruction buffer 1. That is, instructions LDRRI, , 5 are shown, and the address of the next instruction to be executed is shown.

(発明の効果) 以上説明したように本発明は、先取りした複数の命令を
同時に解読して合成することKより、複数の命令を1命
令の実行時間で実行できるという効果がある。
(Effects of the Invention) As described above, the present invention has the advantage that a plurality of instructions can be executed in the execution time of one instruction by simultaneously decoding and combining a plurality of prefetched instructions.

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

第1図は、本発明による命令先取り装置の一実施例を示
すブロック図である。 第2図は、先取り命令バッファに格納されている命令例
を示す説明図である。 1・・・先取り命令バッファ 2・・・バッファリードアドレスレジスタ3.4・・・
加算器 5.7〜9・・・セレクタ 6・・・命令解読器 10〜13・・・レジスタ 14・・・汎用レジメータ群 15・・・演算器 101〜109・・・信号線
FIG. 1 is a block diagram showing an embodiment of an instruction prefetching device according to the present invention. FIG. 2 is an explanatory diagram showing an example of instructions stored in the prefetch instruction buffer. 1... Prefetch instruction buffer 2... Buffer read address register 3.4...
Adders 5.7-9...Selector 6...Instruction decoder 10-13...Register 14...General-purpose register group 15...Arithmetic units 101-109...Signal line

Claims (1)

【特許請求の範囲】[Claims] 先取りした複数の命令を保持するための先取り命令保持
手段と、前記先取りした複数の命令を同時に解読し、合
成して実行できるか否かを検出するための命令解読手段
と、前記合成によつて演算が実行できる場合には前記合
成した演算指令を演算部に送出するためのセレクタ手段
とを具備して構成したことを特徴とする命令先取り装置
a prefetched instruction holding means for holding a plurality of prefetched instructions; an instruction decoding means for simultaneously decoding the plurality of prefetched instructions and detecting whether or not they can be executed by combining them; An instruction prefetching device comprising: selector means for sending the combined operation instruction to an operation section when the operation can be executed.
JP20462485A 1985-09-17 1985-09-17 Instruction prefetching device Pending JPS6265133A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20462485A JPS6265133A (en) 1985-09-17 1985-09-17 Instruction prefetching device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20462485A JPS6265133A (en) 1985-09-17 1985-09-17 Instruction prefetching device

Publications (1)

Publication Number Publication Date
JPS6265133A true JPS6265133A (en) 1987-03-24

Family

ID=16493552

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20462485A Pending JPS6265133A (en) 1985-09-17 1985-09-17 Instruction prefetching device

Country Status (1)

Country Link
JP (1) JPS6265133A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02130635A (en) * 1988-11-11 1990-05-18 Hitachi Ltd Simultaneous processing system for plural instructions
JPH02206836A (en) * 1989-02-07 1990-08-16 Matsushita Electric Ind Co Ltd Data processor
JPH04227542A (en) * 1990-05-14 1992-08-17 Matsushita Electric Ind Co Ltd Information processor
JP2004272927A (en) * 2004-04-26 2004-09-30 Matsushita Electric Ind Co Ltd Processor and compiler
JP2006012185A (en) * 2005-08-02 2006-01-12 Matsushita Electric Ind Co Ltd Processor
US7076638B2 (en) 2001-09-20 2006-07-11 Matsushita Electric Industrial Co., Ltd. Processor, compiler and compilation method
WO2006126449A1 (en) * 2005-05-26 2006-11-30 Nec Corporation Information processing device and command execution method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS51853A (en) * 1974-06-21 1976-01-07 Hitachi Ltd DEETASHORISHISUTEMUNO MEIREIGOSEISOCHI
JPS5694440A (en) * 1979-12-27 1981-07-30 Fujitsu Ltd Instruction execution system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS51853A (en) * 1974-06-21 1976-01-07 Hitachi Ltd DEETASHORISHISUTEMUNO MEIREIGOSEISOCHI
JPS5694440A (en) * 1979-12-27 1981-07-30 Fujitsu Ltd Instruction execution system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02130635A (en) * 1988-11-11 1990-05-18 Hitachi Ltd Simultaneous processing system for plural instructions
JPH02206836A (en) * 1989-02-07 1990-08-16 Matsushita Electric Ind Co Ltd Data processor
JPH04227542A (en) * 1990-05-14 1992-08-17 Matsushita Electric Ind Co Ltd Information processor
US7076638B2 (en) 2001-09-20 2006-07-11 Matsushita Electric Industrial Co., Ltd. Processor, compiler and compilation method
US7761692B2 (en) 2001-09-20 2010-07-20 Panasonic Corporation Processor, compiler and compilation method
JP2004272927A (en) * 2004-04-26 2004-09-30 Matsushita Electric Ind Co Ltd Processor and compiler
WO2006126449A1 (en) * 2005-05-26 2006-11-30 Nec Corporation Information processing device and command execution method
US8271766B2 (en) 2005-05-26 2012-09-18 Nec Corporation Intentionally delaying execution of a copy instruction to achieve simultaneous execution with a subsequent, non-adjacent write instruction
JP5051452B2 (en) * 2005-05-26 2012-10-17 日本電気株式会社 Information processing apparatus and instruction execution method
JP2006012185A (en) * 2005-08-02 2006-01-12 Matsushita Electric Ind Co Ltd Processor

Similar Documents

Publication Publication Date Title
JPH0374434B2 (en)
JP3237858B2 (en) Arithmetic unit
JPH03286332A (en) Digital data processor
JPS6265133A (en) Instruction prefetching device
JPS6041769B2 (en) Addressing method
JPH08212075A (en) Information processor
JPH0345420B2 (en)
JPH0218729B2 (en)
JP2861560B2 (en) Data processing device
JPH07110769A (en) Vliw type computer
JPH01147723A (en) Pipe line processing system for information processor
JP2842930B2 (en) Instruction readout circuit used in test processor of semiconductor integrated circuit test equipment
JPH0218732B2 (en)
JPS622363A (en) Arithmetic unit
JP2671161B2 (en) Register interference check method
JPS62251930A (en) Information processor
JPS63201830A (en) Information processor
JPH01271842A (en) Information processor
JPH04177428A (en) Data processor containing operand address transfer register
JPH03204029A (en) Information processor
JPS6047617B2 (en) information processing equipment
JPH0340075A (en) Microcomputer
JPH04135237A (en) Microprogram control information processor
JPS6028014B2 (en) microprocessor
JPH05204638A (en) Pipeline processor