JP2560520B2 - Advance control device - Google Patents

Advance control device

Info

Publication number
JP2560520B2
JP2560520B2 JP2171440A JP17144090A JP2560520B2 JP 2560520 B2 JP2560520 B2 JP 2560520B2 JP 2171440 A JP2171440 A JP 2171440A JP 17144090 A JP17144090 A JP 17144090A JP 2560520 B2 JP2560520 B2 JP 2560520B2
Authority
JP
Japan
Prior art keywords
instruction
branch
address
relative
prefetched
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.)
Expired - Fee Related
Application number
JP2171440A
Other languages
Japanese (ja)
Other versions
JPH0460836A (en
Inventor
真一 名児耶
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
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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP2171440A priority Critical patent/JP2560520B2/en
Publication of JPH0460836A publication Critical patent/JPH0460836A/en
Application granted granted Critical
Publication of JP2560520B2 publication Critical patent/JP2560520B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は仮想記憶空間を有し、命令の先取りを行なう
パイプライン構成の情報処理装置に関し、特に、相対分
岐命令の分岐先の命令を高速に先取りすることができる
先行制御装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus having a virtual memory space and having a pipeline configuration for prefetching instructions, and in particular, to instructions at a branch destination of a relative branch instruction at high speed. The present invention relates to a preceding control device that can be preempted.

〔従来の技術〕[Conventional technology]

従来、この種の先行制御装置は相対分岐命令の分岐先
の命令を取出す場合、相対分岐命令を取出した論理アド
レスに上記命令の分岐ディスプレースメントを加算して
分岐先の論理アドレスを求めた後、絶対アドレス変換を
行ない、絶対アドレス変換によって求めた絶対アドレス
に基づいて分岐先の命令を取出すようにしている。ま
た、この他にも、前回相対分岐命令を実行した時に求ま
った分岐先の絶対アドレスをテーブル等の記憶手段に記
憶させておき、再び上記命令を実行する場合は上記の記
憶手段に記憶されている絶対アドレスを分岐先の命令の
絶対アドレスとする装置も提案されている。
Conventionally, when the preceding control device of this type fetches an instruction of a branch destination of a relative branch instruction, after adding the branch displacement of the above instruction to the logical address of the relative branch instruction to obtain the logical address of the branch destination, Absolute address translation is performed, and the branch destination instruction is fetched based on the absolute address obtained by absolute address translation. In addition to this, the absolute address of the branch destination obtained when the relative branch instruction was executed last time is stored in a storage means such as a table, and when the instruction is executed again, it is stored in the storage means. A device has also been proposed in which the absolute address of the branch destination instruction is used as the absolute address.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

上述した従来技術の内、前者は分岐先の論理アドレス
を求めた後、絶対アドレス変換を行なうものであるの
で、絶対アドレスを求めるまでに数サイクルを要し、次
命令を取出すまでに時間がかかるという問題があった。
また、後者は、次のサイクルで分岐先の絶対アドレスを
求めることができるため、前者に比べて処理を高速化す
ることはできるが、分岐先の絶対アドレスを記憶してお
くためのテーブル等の記憶手段が必要となるため、ハー
ドウェア量が崇むという問題があった。
Among the above-mentioned conventional techniques, the former requires absolute address translation after determining the logical address of the branch destination, so it takes several cycles to obtain the absolute address, and it takes time to fetch the next instruction. There was a problem.
Also, the latter can obtain the absolute address of the branch destination in the next cycle, so the processing speed can be increased as compared with the former, but a table or the like for storing the absolute address of the branch destination can be used. There is a problem in that the amount of hardware is scarce because a storage means is required.

本発明は少ないハードウェア量で、相対分岐命令の分
岐先の命令を高速に取り出せるようにすることにある。
An object of the present invention is to enable a branch destination instruction of a relative branch instruction to be fetched at high speed with a small amount of hardware.

〔課題を解決するための手段〕[Means for solving the problem]

本発明は上記目的を達成するため、 仮想記憶空間を有し、命令の先取りを行なうパイプラ
イン構成の情報処理装置に使用される先行制御装置に於
いて、 先取りした命令が相対分岐命令であるか否かを判定す
る第1の判定手段と、 該第1の判定手段で前記先取りした命令が相対分岐命
令であると判定されることにより、前記先取りした相対
分岐命令自身の絶対アドレスのページ内要素と前記先取
りした相対分岐命令の分岐ディスプレースメントとを加
算する加算手段と、 該加算手段の加算結果に基づいて前記先取りした相対
分岐命令の分岐先の命令が前記先取りした相対分岐命令
と同一ページ内にあるか否かを判定する第2の判定手段
と、 該第2の判定手段で同一ページ内にあると判定される
ことにより、前記先取りした相対分岐命令自身の絶対ア
ドレスのページ先頭アドレスと前記加算手段の加算結果
とを連結したアドレスに基づいて次命令の取出しを行な
う命令取出し手段とを設けたものである。
In order to achieve the above object, the present invention has a virtual memory space, and in a preceding control device used in an information processing device of a pipeline structure for prefetching an instruction, is the prefetched instruction a relative branch instruction? First determining means for determining whether or not the prefetched instruction is a relative branch instruction by the first determining means, so that the in-page element of the absolute address of the prefetched relative branch instruction itself And an addition means for adding the branch displacement of the prefetched relative branch instruction, and a branch destination instruction of the prefetched relative branch instruction based on the addition result of the addition means in the same page as the prefetched relative branch instruction. Second determining means for determining whether or not the prefetched relative branch instruction itself is determined by the second determining means. Absolute based address page head address of the addition result and the address of concatenating said adding means is provided with a an instruction fetch means for fetching of the next instruction.

〔作 用〕[Work]

先取りされた命令は第1の判定手段により相対分岐命
令であるか否かが判定される。第1の判定手段で先取り
された命令が相対分岐命令であると判定されると、加算
手段により先取りされた相対分岐命令自身の絶対アドレ
スのページ内要素と相対分岐命令の分岐ディスプレース
メントとが加算される。第2の判定手段は加算手段の加
算結果に基づいて相対分岐命令の分岐先が相対分岐命令
と同一ページにあるか否かを判定し、第2の判定手段で
分岐先と相対分岐命令とが同一ページ内に存在すると判
定されることにより、命令取出し手段は相対分岐命令自
身の絶対アドレスのページ先頭アドレスと加算手段の加
算結果とを連結したアドレスに基づいて次命令を取出
す。
Whether or not the prefetched instruction is a relative branch instruction is determined by the first determining means. When the instruction prefetched by the first determining means is determined to be a relative branch instruction, the in-page element of the absolute address of the relative branch instruction itself prefetched by the adding means and the branch displacement of the relative branch instruction are added. To be done. The second determination means determines whether or not the branch destination of the relative branch instruction is on the same page as the relative branch instruction based on the addition result of the addition means, and the second determination means determines whether the branch destination and the relative branch instruction are present. When it is determined that the instruction exists in the same page, the instruction fetching unit fetches the next instruction based on the address obtained by concatenating the page start address of the absolute address of the relative branch instruction itself and the addition result of the adding unit.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して詳細に説
明する。
Next, embodiments of the present invention will be described in detail with reference to the drawings.

第1図は本発明の実施例のブロック図である。この実
施例の先行制御装置が適用される情報処理装置は、説明
の便宜上、命令取出しに於ける絶対アドレスが32ビッ
ト、1ページの大きさが一律4Kバイト、命令語長が一律
32ビット(4バイト)であり、命令は主記憶装置中に4
バイト単位で整列されているものとする。また、分岐命
令を取出した場合の次命令の取出しは一律に分岐成功側
を取出し、上記分岐命令を実行した結果、分岐不成功で
あった場合には先行制御はキャンセルし、命令を取出し
直す方式を採用しているとする。
FIG. 1 is a block diagram of an embodiment of the present invention. For convenience of explanation, the information processing apparatus to which the preceding control apparatus of this embodiment is applied has an absolute address of 32 bits for fetching an instruction, a page size of 4 Kbytes, and an instruction word length of 1 byte.
It is 32 bits (4 bytes), and the instructions are 4 in main memory.
It is assumed to be aligned in bytes. Further, when a branch instruction is fetched, the next instruction is fetched uniformly, and if the branch instruction is executed and the branch is unsuccessful, the preceding control is canceled and the instruction is fetched again. Is adopted.

さて、本実施例の先行制御装置は、第1図に示すよう
に、命令が格納されている主記憶装置(図示せず)の写
しが格納されている命令キャッシュ(IC)1と、命令取
出しにかかる絶対アドレスが設定される命令アドレスレ
ジスタ(IAR)2とを有している。ここで、最も単純化
された構成では命令キャッシュ1は1コンパートメント
構成であり、命令アドレスレジスタ2に格納されたアド
レスにより索引される。また、命令が設定される命令レ
ジスタ(IR)3と、外部ユニット(図示せず)からの命
令取出しアドレス5,命令アドレスレジスタ2内のアドレ
スに命令語長に対応する「4」を加えたアドレス6,命令
アドレスレジスタ2の上位20ビットと加算器9の加算結
果とを連結したアドレス7の内の1つを選択するセレク
タ4と、命令レジスタ3に設定された命令が分岐命令で
あるか否かを判定し、分岐命令である場合は更に相対分
岐命令であるか否かを判定するデコータ8と、加算器9
と、デコーダ8の判定結果と符号ビット14と加算器9の
キャリー信号11とに基づいてセレクタ4を制御するセレ
クト信号を生成するセレクト信号生成回路10と、命令ア
ドレスレジスタ2の下位12ビットがセットされるページ
内アドレスレジスタ(PAR)12とを有している。
Now, as shown in FIG. 1, the advance control apparatus of the present embodiment has an instruction cache (IC) 1 in which a copy of a main memory (not shown) in which instructions are stored and an instruction fetch And an instruction address register (IAR) 2 in which the absolute address is set. Here, in the simplest configuration, the instruction cache 1 has a one-compartment configuration and is indexed by the address stored in the instruction address register 2. An instruction register (IR) 3 in which an instruction is set, an instruction fetch address 5 from an external unit (not shown), an address in the instruction address register 2 plus "4" corresponding to the instruction word length 6, a selector 4 for selecting one of the addresses 7 connecting the upper 20 bits of the instruction address register 2 and the addition result of the adder 9, and whether the instruction set in the instruction register 3 is a branch instruction If it is a branch instruction, it is further judged whether it is a relative branch instruction and an adder 9
A select signal generating circuit 10 for generating a select signal for controlling the selector 4 based on the judgment result of the decoder 8, the sign bit 14 and the carry signal 11 of the adder 9, and the lower 12 bits of the instruction address register 2 are set. In-page address register (PAR) 12 is provided.

次に本実施例の動作を説明する。 Next, the operation of this embodiment will be described.

命令アドレスレジスタ2には初期設定時、外部からセ
レクタ4を介して命令取出しアドレス5として命令開始
アドレスが設定される。以後、命令の取出しはこの命令
アドレスレジスタ2に設定されたアドレスによって命令
キャッシュ1を索引することにより行なわれ、読出され
た命令は命令レジスタ3に設定される。命令レジスタ3
に命令が設定されると、デコーダ8は設定された命令が
分岐命令であるか否かを判定し、分岐命令であると判定
した場合は更に相対分岐命令であるか否かを判定し、判
定結果をセレクト信号生成回路10に加える。
At the time of initialization, the instruction start address is set in the instruction address register 2 as the instruction fetch address 5 from the outside through the selector 4. After that, the instruction is fetched by indexing the instruction cache 1 with the address set in the instruction address register 2, and the read instruction is set in the instruction register 3. Instruction register 3
When the instruction is set to, the decoder 8 determines whether or not the set instruction is a branch instruction, and when it is determined to be a branch instruction, it is further determined whether or not it is a relative branch instruction. The result is added to the select signal generation circuit 10.

デコーダ8で分岐命令でないと判定された場合は、セ
レクト信号生成回路10はアドレス6を選択させるセレク
ト信号をセレクタ4に加える。これにより、命令アドレ
スレジスタ2には現在設定されているアドレスに「4」
を加算したアドレスが設定され、次の命令が取り出され
る。以降、取出した命令がデコーダ8により分岐命令で
あると判定されるまで、上記動作が繰返される。
When the decoder 8 determines that the instruction is not a branch instruction, the select signal generation circuit 10 adds a select signal for selecting the address 6 to the selector 4. As a result, "4" is added to the address currently set in the instruction address register 2.
Is added to set the address, and the next instruction is fetched. After that, the above operation is repeated until the fetched instruction is determined to be a branch instruction by the decoder 8.

また、デコーダ8で分岐命令ではあるが、相対分岐命
令ではないことが判定された場合は、セレクト信号生成
回路10は命令取出しアドレス5を選択させるセレクト信
号をセレクタ4に加える。これにより、外部ユニット
(図示せず)で生成された分岐先の絶対アドレスが命令
アドレスレジスタ2に設定され、命令キャッシュ1から
分岐先の命令が取出される。
When the decoder 8 determines that the instruction is a branch instruction but not a relative branch instruction, the select signal generation circuit 10 adds a select signal for selecting the instruction fetch address 5 to the selector 4. As a result, the absolute address of the branch destination generated by the external unit (not shown) is set in the instruction address register 2, and the instruction of the branch destination is fetched from the instruction cache 1.

次に、命令レジスタ3に設定された命令がデコーダ8
で相対分岐命令であると判定された場合の動作を説明す
る。
Next, the instruction set in the instruction register 3 is transferred to the decoder 8
The operation when it is determined to be a relative branch instruction will be described.

相対分岐命令の分岐先の論理アドレスは相対分岐命令
が格納されていた論理アドレスに対して命令中のディス
プレースメント部(本実施例では下位12ビットとする)
により相対的に示される。ここで、周知のように、論理
アドレスの下位12ビット、即ち4Kバイトのページ内のア
ドレスは絶対アドレスのそれに等しい。従って、分岐先
のアドレスが相対分岐命令を取出したページと同一ペー
ジに存在する場合は、分岐先の絶対アドレスの内、上記
の20ビット、即ちページの先頭アドレスは上記相対分岐
命令を取出したページの先頭アドレスより求められ、下
位12ビット、即ちページ内アドレスは上記相対分岐命令
を取出したページ内アドレスと命令中のディスプレース
メント部とを加算することにより求めることができる。
本発明はこの点に着目したものである。
The logical address of the branch destination of the relative branch instruction is the displacement part in the instruction for the logical address in which the relative branch instruction was stored (lower 12 bits in this embodiment)
Relative to. Here, as is well known, the lower 12 bits of a logical address, that is, an address within a 4 Kbyte page is equal to that of an absolute address. Therefore, if the branch destination address is on the same page as the page from which the relative branch instruction is fetched, the 20 bits above the absolute address of the branch destination, that is, the top address of the page is the page from which the relative branch instruction was fetched. The lower 12 bits, that is, the in-page address can be obtained by adding the in-page address from which the relative branch instruction is taken out and the displacement part in the instruction.
The present invention focuses on this point.

命令レジスタ3に相対分岐命令が設定されると、デコ
ーダ8は設定された命令が相対分岐命令であることを示
す判定結果をセレクト信号生成回路10に加える。
When a relative branch instruction is set in the instruction register 3, the decoder 8 adds a determination result indicating that the set instruction is a relative branch instruction to the select signal generation circuit 10.

また、命令レジスト3に相対分岐命令がセットされる
ことにより、加算器9により分岐先のページ内アドレス
が求められる。加算器9はページ内アドレスレジスタ12
の内容と命令レジスト3の下位12ビット13の内容と符号
ビット14とを入力とし、符号ビット14が“0"の場合、即
ち分岐ディスプレースメントが正の場合はページ内アド
レスレジスタ12の内容と命令レジスタ3の下位12ビット
13の内容とを加算し、桁上げが生じることによりキャリ
ー信号11を“1"とし、符号ビット14が“1"の場合、即ち
分岐ディスプレースメントが負の場合はページ内アドレ
スレジスタ12の内容から命令レジスタ3の下位12ビット
13の内容を減算し、桁借りが生じることによりキャリー
信号11を“0"とするものである。ここで、命令レジスタ
3に相対分岐命令が設定された場合、ページ内アドレス
レジスタ12の内容は上記相対分岐命令を取出したページ
内アドレスを、命令レジスタ3の下位12ビット13は分岐
ディスプレースメントを、符号ビット14は分岐ディスプ
レースメントが正か負かを示しているので、加算器9の
加算結果は分岐先のページ内アドレスを示すことにな
る。
Further, by setting the relative branch instruction in the instruction register 3, the adder 9 obtains the in-page address of the branch destination. The adder 9 is an in-page address register 12
And the contents of the lower 12 bits 13 of the instruction register 3 and the sign bit 14 are input, and if the sign bit 14 is "0", that is, the branch displacement is positive, the contents of the in-page address register 12 and the instruction Lower 12 bits of register 3
When the carry signal 11 is set to "1" by adding the contents of 13 and carrying occurs, and the sign bit 14 is "1", that is, when the branch displacement is negative, the contents of the in-page address register 12 Lower 12 bits of instruction register 3
The carry signal 11 is set to "0" by subtracting the contents of 13 and borrowing. Here, when a relative branch instruction is set in the instruction register 3, the contents of the in-page address register 12 are the in-page address from which the relative branch instruction is fetched, and the lower 12 bits 13 of the instruction register 3 are the branch displacement, Since the sign bit 14 indicates whether the branch displacement is positive or negative, the addition result of the adder 9 indicates the in-page address of the branch destination.

セレクト信号生成回路10は命令レジスタ3に設定され
た命令が相対分岐命令であるとデコーダ8で判定される
と、加算器9のキャリー信号11及び符号ビット14に基づ
いて以下の処理を行なう。
When the decoder 8 determines that the instruction set in the instruction register 3 is a relative branch instruction, the select signal generation circuit 10 performs the following processing based on the carry signal 11 and the sign bit 14 of the adder 9.

ここで、キャリー信号11と符号ビット14との組み合わ
せは下記(a)〜(d)の4通りがある。
Here, there are the following four combinations of the carry signal 11 and the sign bit 14 (a) to (d).

(a) 符号ビット14及びキャリー信号11が共に“0" (b) 符号ビット14が“0“で、キャリー信号11が
“1" (c) 符号ビット14及びキャリー信号11が共に“1" (d) 符号ビット14が“1"で、キャリー信号11が“0" 上記4つの組み合わせの内、(a),(d)は相対分
岐命令と分岐先とが同一ページ内に存在する場合、
(b),(c)は同一ページにない場合の符号ビット14
とキャリー信号11との組み合わせである。
(A) Sign bit 14 and carry signal 11 are both "0" (b) Sign bit 14 is "0" and carry signal 11 is "1" (c) Sign bit 14 and carry signal 11 are both "1" ( d) Sign bit 14 is "1" and carry signal 11 is "0". Among the above four combinations, (a) and (d) are relative branch instructions and branch destinations in the same page.
Sign bits 14 when (b) and (c) are not on the same page
And carry signal 11.

そこで、符号ビット14とキャリー信号11との組み合わ
せが(b),(c)の場合、即ち、相対分岐命令と分岐
先とが同一ページにない場合は、外部ユニットによる絶
対アドレス変換結果を命令アドレスレジスタ2に設定す
ることが必要になるため、セレクト信号生成回路10は命
令取出しアドレス5を選択させるセレクト信号をセレク
タ4に加える。これにより、外部ユニットによる絶対ア
ドレス変換結果が命令アドレスレジスタ2に設定され、
次命令の取出しが行なわれる。
Therefore, when the combination of the sign bit 14 and the carry signal 11 is (b) or (c), that is, when the relative branch instruction and the branch destination are not on the same page, the absolute address conversion result by the external unit is used as the instruction address. Since it is necessary to set it in the register 2, the select signal generation circuit 10 adds a select signal for selecting the instruction fetch address 5 to the selector 4. As a result, the absolute address translation result by the external unit is set in the instruction address register 2,
The next command is fetched.

また、符号ビット14とキャリー信号11との組み合わせ
が(a),(d)の場合、即ち、相対分岐命令と分岐先
とが同一ページに存在する場合は、分岐先の先頭アドレ
スは相対分岐命令を取出したページの先頭アドレス、即
ち命令レジスタの上位20ビットであり、ページ内アドレ
スは加算器9の加算結果であるので、両者を連結した相
対分岐先アドレス7を選択させるセレクト信号をセレク
タ4に加える。これにより、ページの先頭アドレスとペ
ージ内アドレスとを連結した相対分岐先アドレス7が命
令アドレスレジスタ2に設定され、次命令の取出しが行
なわれる。
When the combination of the sign bit 14 and the carry signal 11 is (a) or (d), that is, when the relative branch instruction and the branch destination are on the same page, the start address of the branch destination is the relative branch instruction. Since the top address of the fetched page, that is, the upper 20 bits of the instruction register, and the in-page address are the addition result of the adder 9, the selector 4 is supplied with a select signal for selecting the relative branch destination address 7 connecting them. Add. As a result, the relative branch destination address 7 connecting the top address of the page and the in-page address is set in the instruction address register 2, and the next instruction is fetched.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明は、相対分岐命令とその
分岐先とが同一ページに存在する場合、相対分岐命令の
ディスプレースメントと相対分岐命令自身の絶対アドレ
スのページ内要素との加算結果と、相対分岐命令自身の
絶対アドレスのページ先頭アドレスとを連結したアドレ
スに基づいて次命令を取出すようにしたものであり、相
対分岐命令とその分岐先とが異なるページになる確率は
一般のプログラム構造からして稀少であるため、絶対ア
ドレスの変換結果を常に待ち合わせる従来装置に比べて
相対分岐命令の先取りを高速に行なうことが可能になる
効果がある。また、相対分岐命令の分岐先アドレスを動
的に計算して求めるので、前回相対分岐命令が実行され
たときの分岐先の絶対アドレスを記憶する従来装置に比
べて記憶の為のハードウェア量を大幅に削減することが
できる効果もある。
As described above, according to the present invention, when a relative branch instruction and its branch destination exist on the same page, the displacement result of the relative branch instruction and the addition result of the relative branch instruction itself and the in-page element of the absolute address of the relative branch instruction, The next instruction is fetched based on the address obtained by concatenating the absolute start address of the relative branch instruction and the page start address, and the probability that the relative branch instruction and the branch destination will be different pages is Since it is rare, the relative branch instruction can be prefetched at a higher speed than in the conventional apparatus that always waits for the absolute address conversion result. Also, since the branch destination address of the relative branch instruction is dynamically calculated and calculated, the amount of hardware for storage is reduced compared to the conventional device that stores the absolute address of the branch destination when the previous relative branch instruction was executed. There is also an effect that it can be significantly reduced.

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

第1図は本発明の実施例のブロック図である。 図に於いて、1……命令キャッシュ、2……命令アドレ
スレジスタ、3……命令レジスタ、4……セレクタ、8
……デコーダ、9……加算器、10……セレクト信号生成
回路、12……ページ内アドレスレジスタ。
FIG. 1 is a block diagram of an embodiment of the present invention. In the figure, 1 ... Instruction cache, 2 ... Instruction address register, 3 ... Instruction register, 4 ... Selector, 8
...... Decoder, 9 ... Adder, 10 ... Select signal generation circuit, 12 ... In-page address register.

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】仮想記憶空間を有し、命令の先取りを行な
うパイプライン構成の情報処理装置に使用される先行制
御装置に於いて、 先取りした命令が相対分岐命令であるか否かを判定する
第1の判定手段と、 該第1の判定手段で前記先取りした命令が相対分岐命令
であると判定されることにより、前記先取りした相対分
岐命令自身の絶対アドレスのページ内要素と前記先取り
した相対分岐命令の分岐ディスプレースメントとを加算
する加算手段と、 該加算手段の加算結果に基づいて前記先取りした相対分
岐命令の分岐先の命令が前記先取りした相対分岐命令と
同一ページ内にあるか否かを判定する第2の判定手段
と、 該第2の判定手段で同一ページ内にあると判定されるこ
とにより、前記先取りした相対分岐命令自身の絶対アド
レスのページ先頭アドレスと前記加算手段の加算結果と
を連結したアドレスに基づいて次命令の取出しを行なう
命令取出し手段とを含むことを特徴とする先行制御装
置。
1. A preceding control device used in an information processing device having a pipeline structure having a virtual memory space for prefetching an instruction, determines whether or not the prefetched instruction is a relative branch instruction. First determining means, and by the first determining means determining that the prefetched instruction is a relative branch instruction, the prefetched relative branch instruction itself has an absolute address within a page element and the prefetched relative instruction. Addition means for adding the branch displacement of the branch instruction, and whether the branch destination instruction of the prefetched relative branch instruction is on the same page as the prefetched relative branch instruction based on the addition result of the addition means. And a page of the absolute address of the prefetched relative branch instruction itself when it is judged by the second judgment means that it is in the same page. A preceding control device comprising: an instruction fetching means for fetching a next instruction based on an address obtained by concatenating the start address and the addition result of the adding means.
【請求項2】前記第2の判定手段は前記分岐ディスプレ
ースメントが正の値の時、前記加算手段の加算結果に桁
上げが生じることにより、前記先取りした相対分岐命令
と該相対分岐命令の分岐先の命令とが同一ページ内に存
在しないと判定することを特徴とする請求項1記載の先
行制御装置。
2. The second judgment means, when the branch displacement has a positive value, a carry occurs in the addition result of the addition means, whereby the prefetched relative branch instruction and the branch of the relative branch instruction. The preceding control device according to claim 1, wherein it is determined that the previous instruction is not within the same page.
【請求項3】前記第2の判定手段は前記分岐ディスプレ
ースメントが負の値の時、前記加算手段の加算結果に桁
借りが生じることにより、前記先取りした相対分岐命令
と該相対分岐命令の分岐先の命令とが同一ページ内に存
在しないと判定することを特徴とする請求項1記載の先
行制御装置。
3. The second judgment means, when the branch displacement has a negative value, a borrow occurs in the addition result of the addition means, whereby the prefetched relative branch instruction and the branch of the relative branch instruction. The preceding control device according to claim 1, wherein it is determined that the previous instruction is not within the same page.
JP2171440A 1990-06-29 1990-06-29 Advance control device Expired - Fee Related JP2560520B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2171440A JP2560520B2 (en) 1990-06-29 1990-06-29 Advance control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2171440A JP2560520B2 (en) 1990-06-29 1990-06-29 Advance control device

Publications (2)

Publication Number Publication Date
JPH0460836A JPH0460836A (en) 1992-02-26
JP2560520B2 true JP2560520B2 (en) 1996-12-04

Family

ID=15923164

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2171440A Expired - Fee Related JP2560520B2 (en) 1990-06-29 1990-06-29 Advance control device

Country Status (1)

Country Link
JP (1) JP2560520B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5821304B2 (en) * 1975-12-27 1983-04-28 横河電機株式会社 Data search
JPS59105148A (en) * 1982-12-06 1984-06-18 Sanyo Electric Co Ltd Microprogram controlling type central processing unit

Also Published As

Publication number Publication date
JPH0460836A (en) 1992-02-26

Similar Documents

Publication Publication Date Title
US5247639A (en) Microprocessor having cache bypass signal terminal
US4218743A (en) Address translation apparatus
JP2507756B2 (en) Information processing device
KR920004962A (en) Virtual long command memory device for digital signal processing device and method of generating the command
EP0173981A2 (en) Cache memory control circuit
JP3199465B2 (en) Information processing device
US4811206A (en) Data processing system with overlapped address translation and address computation
US5848436A (en) Method and apparatus for efficiently providing data from a data storage medium to a processing entity
KR19990037571A (en) A data pointer for outputting an indirect addressing mode address in a single period and a method of providing the same
JP2560520B2 (en) Advance control device
JPH05507378A (en) Address generator for circular buffers
JPH0695875A (en) Memory access method for microcomputer
JPH0544049B2 (en)
JPH01177145A (en) Information processor
US7660908B2 (en) Implementing virtual packet storage via packet work area
JPH05143330A (en) Stack cache and control system thereof
JPH01255933A (en) Sweeping-out control system
JPH0235331B2 (en)
JPH0573424A (en) High speed address converting system
JP3155056B2 (en) Information processing device
JPH0385636A (en) Instruction advance control device
JP2805786B2 (en) Information processing device
JPS5975483A (en) Buffer storage control system
JPH05324316A (en) Microprocessor
JPH0567000A (en) Microprocessor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees