JPH0573311A - Instruction rewriting system for instruction buffer in processor - Google Patents

Instruction rewriting system for instruction buffer in processor

Info

Publication number
JPH0573311A
JPH0573311A JP3231736A JP23173691A JPH0573311A JP H0573311 A JPH0573311 A JP H0573311A JP 3231736 A JP3231736 A JP 3231736A JP 23173691 A JP23173691 A JP 23173691A JP H0573311 A JPH0573311 A JP H0573311A
Authority
JP
Japan
Prior art keywords
instruction
buffer
execution
rewriting
rewritten
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
JP3231736A
Other languages
Japanese (ja)
Inventor
Chiyonsuwannapaisaan Poonshiyai
チヨンスワンナパイサーン ポーンシヤイ
Takahito Noda
敬人 野田
Yuji Kamisaka
裕士 神阪
Kazuyasu Nonomura
一泰 野々村
Toru Watabe
徹 渡部
Takumi Maruyama
拓巳 丸山
Takumi Takeno
巧 竹野
Shinya Kato
慎哉 加藤
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3231736A priority Critical patent/JPH0573311A/en
Publication of JPH0573311A publication Critical patent/JPH0573311A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve processing efficiency and to increase processing speed by reading out a rewritten instruction from a memory part in the case of storing the detection of a rewriting geneation graph part at the end of the execution of one instruction and writing it in an instruction buffer. CONSTITUTION:When an instruction stored in a memory part 1 is rewritten for the instruction change during the execution of one instruction in an instruction execution part 3, an rewriting detection part 4 detects whether or not an instruction stored in an instruction buffer 2 corresponds to the one stored in the storage address of the rewritten instruction. When it is detected, a rewriting geneation flag part 5 stores the detection of the geneation of the rewriting of the instruction. At the end of the execution of one instruction in the instruction execution part 3, the rewriting generation part 5 is checked. In the case of the geneation of a rewriting, the corresponding instruction is read out from the same address of the memory part 1 storing the rewritten instruction to be written in the corresponding place of the instruction buffer 2.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、メモリ部から読出され
たプログラム命令を命令バッファに複数保持すると共
に、この保持された命令を実行途中にメモリ部に格納さ
れている命令が書換えられた場合、この命令が命令バッ
ファに保持された命令に該当するものであるときに、こ
れをメモリ部から読出し命令バッファに書込む処理装置
における命令バッファの命令書換方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention holds a plurality of program instructions read from a memory unit in an instruction buffer, and rewrites the instructions stored in the memory unit during execution of the held instructions. The present invention relates to an instruction rewriting method of an instruction buffer in a processing device for writing this instruction from a memory unit to a read instruction buffer when this instruction corresponds to the instruction held in the instruction buffer.

【0002】[0002]

【従来の技術】図4に従来例に係る処理装置を示す。こ
の処理装置は、命令が格納されているメモリ31と、こ
れらの命令を解析実行するCPU36とを有している。
そして、各命令の命令長はすべて4バイトであり、また
バスが同時に転送できるバイト数いわゆるバス幅は4バ
イトである。
2. Description of the Related Art FIG. 4 shows a conventional processing apparatus. This processing device has a memory 31 in which instructions are stored, and a CPU 36 which analyzes and executes these instructions.
The instruction length of each instruction is 4 bytes, and the number of bytes that can be simultaneously transferred by the bus, the so-called bus width, is 4 bytes.

【0003】上記CPU36は、処理の高速化を図るた
めに16バイトの容量をもち4命令を保持できる命令バ
ッファ32を備える一方、これらの命令を実行する命令
実行部33と、命令実行中にメモリ31内の命令コード
が書換えられ、かつ書換えられる前の命令コードが命令
バッファ32内に既にフェッチ済である状態(以下、S
ICONF(STORE INSTRUCTION C
ONFLICTION)状態という)を検出するSIC
ONF検出部34とを備えている。
The CPU 36 has an instruction buffer 32 having a capacity of 16 bytes and capable of holding four instructions in order to speed up the processing, while an instruction executing section 33 for executing these instructions and a memory for executing the instructions. The instruction code in 31 is rewritten, and the instruction code before rewriting is already fetched in the instruction buffer 32 (hereinafter, S
ICONF (STORE INSTRUSION C
ONFLICTION) SIC to detect)
The ONF detector 34 is provided.

【0004】図5は上記SICONF検出部34の具体
的な回路を示したものである。この回路は、上記書換え
られた命令コードが格納されたメモリ31のライトアド
レスと、命令バッファ32に保持されている命令を読出
したメモリ31のアドレスとを比較器37で比較し、こ
れが一致したときSICONF検出信号が出力される。
FIG. 5 shows a specific circuit of the SICONF detector 34. This circuit compares the write address of the memory 31 in which the rewritten instruction code is stored with the address of the memory 31 from which the instruction held in the instruction buffer 32 is read by the comparator 37, and when they match. The SICONF detection signal is output.

【0005】本処理装置では、命令が一つずつメモリ3
1から命令バッファ32にフェッチされ、図に示すよう
に命令A,B,C,Dが順にメモリ31から読出され、
これが命令バッファ32に保持される。そして、この命
令バッファ32に保持された命令は順に実行され、一命
令の実行が終了すると新しく次の命令がメモリ31から
命令バッファ32にフェッチされる。図中Vi(i=
1,2,3,4)は、命令バッファ32における命令の
各保持エリアに対応して設けられている命令バッファ有
効フラグであり、NextiAは現在実行されている命
令の次の命令が保持されている命令バッファ32のアド
レスを指し、IFP(Instruction Fet
ch Pointer)は次にフェッチする命令を命令
バッファ32に保持する保持アドレスを指すものであ
る。
In this processing apparatus, instructions are stored in the memory 3 one by one.
1 is fetched into the instruction buffer 32, and instructions A, B, C and D are sequentially read from the memory 31 as shown in the figure,
This is held in the instruction buffer 32. Then, the instructions held in the instruction buffer 32 are sequentially executed, and when the execution of one instruction is completed, a new next instruction is fetched from the memory 31 to the instruction buffer 32. In the figure, Vi (i =
1, 2, 3, 4) are instruction buffer valid flags provided corresponding to respective instruction holding areas in the instruction buffer 32, and NextA holds the instruction next to the currently executed instruction. Address of the instruction buffer 32 in which the
ch Pointer) indicates a holding address for holding an instruction to be fetched next in the instruction buffer 32.

【0006】また、図4において命令A,B,Cは既に
命令バッファ32内に保持されており、命令Dは次に保
持される命令であることを示している。IFPの指すア
ドレスの命令バッファ有効フラグがOFFの場合、次の
命令がメモリ31からフェッチされ、命令バッファ32
にその命令が保持されると同時に命令バッファ有効フラ
グがONとなる。そして、当フラグは実行すべき命令を
命令実行部33に移すと同時にOFFとなる。
Further, in FIG. 4, the instructions A, B, and C are already held in the instruction buffer 32, and the instruction D is the next held instruction. When the instruction buffer valid flag at the address pointed to by the IFP is OFF, the next instruction is fetched from the memory 31 and the instruction buffer 32
At the same time that the instruction is held, the instruction buffer valid flag is turned ON. Then, this flag is turned off at the same time when the instruction to be executed is transferred to the instruction execution unit 33.

【0007】一方、命令実行部33では命令バッファ3
2から移された命令A,B,C,Dを順に実行する。こ
の図では命令Aを実行しているところが示されている。
On the other hand, in the instruction executing section 33, the instruction buffer 3
The instructions A, B, C and D transferred from 2 are executed in order. In this figure, the execution of instruction A is shown.

【0008】さて、命令Aを実行中この命令Aによって
メモリ31における命令Cが命令C’に書換えられた
(SICONF状態)とする。このとき、命令Bの次に
実行されるべき命令は前記書換えられた命令C’となる
が、命令バッファ32内の命令をそのまま実行したので
は、命令Cが実行され矛盾が生じてしまう。
Now, assume that during execution of the instruction A, the instruction C in the memory 31 is rewritten by the instruction A into the instruction C '(SICONF state). At this time, the instruction to be executed next to the instruction B is the rewritten instruction C ′. However, if the instruction in the instruction buffer 32 is executed as it is, the instruction C is executed and a contradiction occurs.

【0009】従来技術では、このような矛盾が生じない
ように命令実行中にメモリ31に書換えが行われたとき
のメモリライトアドレスをSICONF検出部34で監
視している。そして、当該アドレスが、命令バッファ3
2内に保持されている命令のメモリ31内における格納
アドレスと一致した時、SICONF検出部34でこれ
を検出してSICONF検出信号を命令バッファ32に
向け出力する。
In the prior art, the memory write address when the memory 31 is rewritten during the execution of the instruction is monitored by the SICONF detector 34 so that such a contradiction does not occur. Then, the address is the instruction buffer 3
When the instruction held in 2 matches the storage address in the memory 31, the SICONF detector 34 detects this and outputs a SICONF detection signal to the instruction buffer 32.

【0010】一方、命令バッファ32では命令バッファ
有効フラグを全て無効にし、IFPをNextiAが指
しているアドレスと同じアドレスを指すようにして、改
めて命令B,C’,Dを順にメモリ31から読出しこれ
を命令バッファ32に書込むのである。このようにする
と、命令Bの次には命令C’が実行され矛盾がなくな
る。
On the other hand, in the instruction buffer 32, all the instruction buffer valid flags are invalidated, the IFP is made to point to the same address as the address pointed to by NextA, and the instructions B, C ', and D are read again from the memory 31 in this order. Is written in the instruction buffer 32. By doing so, the instruction C ′ is executed next to the instruction B, and the contradiction disappears.

【0011】[0011]

【発明が解決しようとする課題】ところで、上記従来例
に係る処理装置において、特に転送命令等の命令の実行
途中には複数回のメモリライトが生じることがある。例
えば、命令Aの実行途中にメモリライトが2回実行さ
れ、各々命令Bと命令Cが書き換えられたりする場合が
ある。
By the way, in the processing apparatus according to the above-mentioned conventional example, a memory write may occur a plurality of times especially during the execution of an instruction such as a transfer instruction. For example, the memory write may be executed twice during the execution of the instruction A, and the instruction B and the instruction C may be rewritten.

【0012】上記従来の方法では、命令Aを実行途中に
命令Bが書換えられるSICONF状態を検出すると、
命令バッファ有効フラグを全てOFFにし、直ちに命令
B’,C,Dを順にメモリ31から読出し命令バッファ
32に書込みいわゆるメモリライトを行う。そして、上
記命令Aの実行が継続しているときに、更に命令Cが書
換えられたことを検出すると、改めて命令B’,C’,
Dを順にメモリ31から読出してメモリライトを行って
いた。
In the above conventional method, when the SICONF state in which the instruction B is rewritten is detected while the instruction A is being executed,
All the instruction buffer valid flags are turned off, and immediately the instructions B ′, C and D are sequentially written from the memory 31 to the read instruction buffer 32, so-called memory write is performed. Then, when it is detected that the instruction C has been rewritten while the execution of the instruction A continues, the instructions B ′, C ′,
D was sequentially read from the memory 31 to perform the memory write.

【0013】したがって、命令バッファ32内の一命令
を実行中に複数回のメモリライトが生じた場合、最後の
メモリライト以外は無駄になってしまい、このことがC
PUの処理速度を低下させていた。そのため、上記一命
令を実行中に、SICONF状態の発生回数が多いほど
その性能が大きく低下していた。
Therefore, when a memory write occurs a plurality of times during the execution of one instruction in the instruction buffer 32, the memory writes other than the last memory write are wasted.
The processing speed of PU was reduced. For this reason, the performance was greatly reduced as the number of occurrences of the SICONF state increased during the execution of the one instruction.

【0014】そこで、本発明は上記問題点に鑑みてなさ
れたもので、上記複数の命令を保持できる命令バッファ
32を有する処理装置の処理効率を改善して処理速度を
向上させることを目的とする。
Therefore, the present invention has been made in view of the above problems, and it is an object of the present invention to improve the processing efficiency of a processing device having an instruction buffer 32 capable of holding a plurality of instructions and to increase the processing speed. ..

【0015】[0015]

【課題を解決するための手段】以上の技術的課題を解決
するための本発明の手段は図1に示すように、プログラ
ム命令を格納するメモリ部1と、このメモリ部1から読
出した命令を複数保持する命令バッファ2と、この命令
バッファ2に保持された命令を一命令ずつ読出しこれを
実行する命令実行部3と、上記一命令を実行途中にメモ
リ部1に格納されている命令が書換えられたときに、上
記命令バッファ2に保持されている命令が上記書替えら
れた命令の格納アドレスに格納されていた命令に該当す
る命令かどうかを検出する書換検出部4とを有し、この
書換検出部4で上記検出をしたときに、上記メモリ部1
から上記書換えられた命令を読出しこれを命令バッファ
2に書込む処理装置において、上記命令実行部3で上記
一命令を実行途中に、上記書換検出部4で上記検出をし
たとき、この検出があったことを記憶する書換発生フラ
グ部5を設けると共に、上記一命令の実行が終了したと
きに書換発生フラグ部5において上記検出があったこと
を記憶していた場合には、メモリ部1から上記書換えら
れた命令を読出しこれを命令バッファ2に書込むことで
ある。
As shown in FIG. 1, the means of the present invention for solving the above-mentioned technical problems includes a memory section 1 for storing program instructions and an instruction read from the memory section 1. The instruction buffer 2 that holds a plurality of instructions, the instruction execution unit 3 that reads the instructions held in the instruction buffer 2 one by one, and executes the instructions, and the instructions stored in the memory unit 1 during the execution of the one instruction are rewritten. And a rewrite detection unit 4 for detecting whether the command held in the command buffer 2 is a command corresponding to the command stored in the storage address of the rewritten command. When the detection unit 4 makes the above detection, the memory unit 1
In the processing device that reads out the rewritten instruction from the above and writes it in the instruction buffer 2, when the instruction executing section 3 is executing the one instruction and the rewriting detecting section 4 performs the detection, this detection is detected. When the rewriting occurrence flag unit 5 for storing the information is provided and the fact that the rewriting occurrence flag unit 5 detects the above is detected when the execution of the one instruction is completed, the memory unit 1 This is to read the rewritten instruction and write it in the instruction buffer 2.

【0016】[0016]

【作用】上記手段によれば、上記メモリ部1から順次命
令を読出しこれを命令バッファ2に保持する。この命令
バッファ2は複数の命令を保持することができ、ここで
保持されている命令を一命令ずつ読出しこれを命令実行
部3で実行する。この命令実行部3において一命令を実
行途中に、メモリ部1に格納されている命令が命令変更
のために書換えられた場合、書換検出部4で上記命令バ
ッファ2に保持されている命令が上記書替えられた命令
の格納アドレスに格納されていた命令に該当する命令か
どうかを検出する。そして、これを検出したときには書
換発生フラグ部5に命令の書換えが発生して上記検出を
したことを記憶させる。また、上記書換えは上記一命令
を実行途中に複数回発生することがあるが、この場合は
書換発生フラグ部5は単に書換えを検出した状態を継続
するのみである。
According to the above means, the instructions are sequentially read from the memory section 1 and held in the instruction buffer 2. The instruction buffer 2 can hold a plurality of instructions, and the instructions held here are read one by one and executed by the instruction execution unit 3. When an instruction stored in the memory unit 1 is rewritten for instruction change while one instruction is being executed in the instruction execution unit 3, the instruction held in the instruction buffer 2 by the rewriting detection unit 4 is It is detected whether or not the instruction corresponds to the instruction stored in the storage address of the rewritten instruction. When this is detected, the rewriting occurrence flag unit 5 is made to store the fact that the rewriting of the instruction has occurred and the above detection is performed. Further, the rewrite may occur a plurality of times during the execution of the one instruction, but in this case, the rewrite occurrence flag unit 5 simply continues the state in which the rewrite is detected.

【0017】そして、命令実行部3における上記一命令
の実行が終了したときに、上記書換発生フラグ部5を調
べ、もし書換えが発生していた場合には、上記書換えら
れた命令が格納されているメモリ部1の同じアドレスか
ら当該命令を読出しこれを命令バッファ2の該当場所に
書込む。したがって、上記書換えが上記一命令を実行途
中に複数回発生することがあっても、上記メモリ部1か
ら命令を読出してこれを命令バッファ2に書込む処理は
1回のみ行われるだけである。
Then, when the execution of the one instruction in the instruction executing section 3 is completed, the rewriting occurrence flag section 5 is checked. If the rewriting has occurred, the rewritten instruction is stored. The instruction is read from the same address of the memory unit 1 in which it is stored and written in the corresponding location of the instruction buffer 2. Therefore, even if the rewriting may occur a plurality of times during the execution of the one instruction, the process of reading the instruction from the memory unit 1 and writing the instruction in the instruction buffer 2 is performed only once.

【0018】[0018]

【実施例】以下本発明に係る実施例を図面に基づいて説
明する。図2は本発明に係る処理装置の実施例を示すも
のである。この処理装置は、命令が格納されているメモ
リ21と、これらの命令を解析実行するCPU26とを
有する一方、各命令の命令長はすべて4バイトであり、
またバス幅は4バイトで構成されている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 2 shows an embodiment of the processing apparatus according to the present invention. This processing device has a memory 21 in which instructions are stored and a CPU 26 which analyzes and executes these instructions, while the instruction length of each instruction is all 4 bytes,
The bus width is composed of 4 bytes.

【0019】上記CPU26は、16バイトの容量をも
ち4命令を保持できる命令バッファ22と、これらの命
令を実行する命令実行部23と、命令実行中にメモリ2
1内の命令コードが書換えられ、かつ書換えられる前の
命令コードが命令バッファ22内に既にフェッチ済であ
るSICONF状態を検出する書換検出部4としてのS
ICONF検出部24と、更に、このSICONF検出
部24からの検出信号に基づきSICONF発生を記憶
する書換発生フラグ部5としてのSICONF発生フラ
グ部25とを備えている。
The CPU 26 has an instruction buffer 22 having a capacity of 16 bytes and capable of holding 4 instructions, an instruction executing section 23 for executing these instructions, and a memory 2 during the instruction execution.
S as the rewriting detection unit 4 that detects the SICONF state in which the instruction code in 1 is rewritten and the instruction code before being rewritten is already fetched in the instruction buffer 22.
An ICONF detection section 24 and a SICONF generation flag section 25 as a rewrite generation flag section 5 that stores the SICONF generation based on the detection signal from the SICONF detection section 24 are further provided.

【0020】図3(a)は上記SICONF検出部24
及びSICONF発生フラグ部25の具体的な回路を示
したものである。この回路は、比較器27と、JKフリ
ップフロップ28と、ANDゲート29とから構成さ
れ、上記書換えられた命令コードが格納されたメモリ2
1のライトアドレスと、命令バッファ22に保持された
命令が格納されていたメモリ21のアドレスとを比較器
27で比較し、この一致信号と命令実行部23からの命
令実行完了信号(ただし、この2つの信号は同時にON
にならないものとする)とをJKフリップフロップ28
に入力し、続くANDゲート29を介してSICONF
発生信号を出力する。上述した一命令処理のタイムチャ
ートを図3(b)に示す。
FIG. 3A shows the SICONF detector 24.
3 shows a specific circuit of the SICONF occurrence flag unit 25. This circuit comprises a comparator 27, a JK flip-flop 28, and an AND gate 29, and the memory 2 in which the rewritten instruction code is stored.
The write address of 1 and the address of the memory 21 in which the instruction held in the instruction buffer 22 was stored are compared by the comparator 27, and this coincidence signal and the instruction execution completion signal from the instruction execution unit 23 (however, Two signals are ON at the same time
JK flip-flop 28
To the SICONF
Output the generated signal. A time chart of the above-described one-command processing is shown in FIG.

【0021】さて、本処理装置では、命令バッファ22
の初期状態を前記従来例の場合と同様にし、命令A,
B,Cが既に命令バッファ22内に保持されており、命
令Dが続いて格納されるものとする。そして、ここでは
命令Aの処理中に命令Bと命令Cが書換えられる場合の
処理装置の動作を説明する。
Now, in this processing apparatus, the instruction buffer 22
In the same manner as the conventional example, the initial state of
It is assumed that B and C are already held in the instruction buffer 22 and the instruction D is stored subsequently. Then, the operation of the processing device when the instruction B and the instruction C are rewritten during the processing of the instruction A will be described here.

【0022】上記命令実行部23において命令Aを実行
中、命令Bが書き換えられたことをSICONF検出部
24で検出すると、これに基づきSICONF発生フラ
グ部25をSICONF発生有のONにする。そして、
上記命令Aの実行が継続しているときに、更に命令Cが
書換えられたことを検出した場合には、SICONF発
生フラグ部25は既にONになっているからONの状態
を継続する。
When the SICONF detection unit 24 detects that the command B has been rewritten while the command execution unit 23 is executing the command A, the SICONF generation flag unit 25 is turned ON based on the detection. And
When it is detected that the instruction C has been rewritten while the execution of the instruction A continues, the SICONF generation flag unit 25 continues to be in the ON state because it has already been turned ON.

【0023】次に、命令実行部23において上記命令A
が実行完了時点に達したら、この命令実行部23から命
令実行完了信号がSICONF発生フラグ部25に出力
される。このとき、SICONF発生フラグ部25では
SICONF発生有無が調べられるが、前述のようにS
ICONF発生フラグ部25はONになっている。する
と、このSICONF発生フラグ部25からはSICO
NF発生信号を命令バッファ22に出力する。命令バッ
ファ22では上記SICONF発生信号に基づいて、命
令バッファ22の各保持エリアに設けられた命令バッフ
ァ有効フラグViを全てOFFにし、命令B以降の命令
をメモリ21から再フェッチして命令バッファ22に書
込む。そして、SICONF発生フラグ部25をSIC
ONF発生無のOFFにする。
Next, in the instruction executing section 23, the above instruction A
When the execution completion point has been reached, the instruction execution section 23 outputs an instruction execution completion signal to the SICONF generation flag section 25. At this time, the SICONF occurrence flag unit 25 checks whether or not SICONF has occurred.
The ICONF occurrence flag unit 25 is ON. Then, from the SICONF occurrence flag unit 25, the SICO
The NF generation signal is output to the instruction buffer 22. Based on the SICONF generation signal, the instruction buffer 22 turns off all the instruction buffer valid flags Vi provided in each holding area of the instruction buffer 22 and refetches the instructions after the instruction B from the memory 21 to the instruction buffer 22. Write. Then, the SICONF occurrence flag unit 25 is set to SIC.
Turns ON without ONF occurrence.

【0024】したがって、本実施例に係る処理装置で
は、命令実行部23における命令Aの実行が終了したと
きに書換えられた命令の再フェッチを行うようにしてい
るので、命令Aの実行途中に無駄な再フェッチを行う必
要がなくなるので処理装置の処理効率が改善され処理速
度が向上するといった効果がある。
Therefore, in the processing apparatus according to the present embodiment, the rewritten instruction is re-fetched when the execution of the instruction A in the instruction execution unit 23 is completed, so that the instruction A is wasted during execution. Since there is no need to perform re-fetching frequently, the processing efficiency of the processing device is improved and the processing speed is improved.

【0025】[0025]

【発明の効果】以上説明したように、本発明によれば命
令実行部3で一命令を実行途中に、メモリ部1に格納さ
れている命令が書換えられたときに、これが命令バッフ
ァ2に保持されている命令に該当することを書換検出部
4で検出したとき、これを記憶する書換発生フラグ部5
を設けると共に、上記一命令の実行が終了したときに書
換発生フラグ部5を調べ、もし上記検出があったことを
記憶していた場合には、メモリ部1から上記書換えられ
た命令を読出しこれを命令バッファ2に書込む構成とし
たから、上記書換えが上記一命令を実行途中に複数回発
生することがあっても、上記メモリ部1から命令を読出
してこれを命令バッファ2に書込む処理は1回のみ行わ
れるだけであるから、本発明に係る処理装置の処理効率
が改善され処理速度を向上することができるといった効
果を奏する。
As described above, according to the present invention, when an instruction stored in the memory unit 1 is rewritten while one instruction is being executed by the instruction execution unit 3, this is held in the instruction buffer 2. When the rewrite detection unit 4 detects that it corresponds to the stored instruction, the rewrite occurrence flag unit 5 stores this.
When the execution of one instruction is finished, the rewrite occurrence flag portion 5 is checked, and if the fact that the above detection is detected is stored, the rewritten instruction is read from the memory portion 1 Is written in the instruction buffer 2, so that even if the rewriting may occur a plurality of times during the execution of the one instruction, a process of reading the instruction from the memory unit 1 and writing the instruction in the instruction buffer 2 Since it is performed only once, the processing efficiency of the processing apparatus according to the present invention is improved, and the processing speed can be increased.

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

【図1】本発明の原理構成図である。FIG. 1 is a principle configuration diagram of the present invention.

【図2】本発明の実施例に係る処理装置の構成図であ
る。
FIG. 2 is a configuration diagram of a processing device according to an embodiment of the present invention.

【図3】本発明の実施例に係るSICONF検出回路の
説明図で、(a)は回路図、(b)は一命令処理のタイ
ムチャートである。
3A and 3B are explanatory diagrams of a SICONF detection circuit according to an embodiment of the present invention, FIG. 3A is a circuit diagram, and FIG. 3B is a time chart of one instruction processing.

【図4】従来例に係る処理装置の構成図である。FIG. 4 is a configuration diagram of a processing device according to a conventional example.

【図5】従来例に係るSICONF検出回路である。FIG. 5 is a SICONF detection circuit according to a conventional example.

【符号の説明】[Explanation of symbols]

1 メモリ 2 命令バッファ 3 命令実行部 4 書換検出部 5 書換発生フラグ部 1 Memory 2 Instruction Buffer 3 Instruction Execution Section 4 Rewrite Detection Section 5 Rewrite Occurrence Flag Section

───────────────────────────────────────────────────── フロントページの続き (72)発明者 野々村 一泰 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (72)発明者 渡部 徹 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (72)発明者 丸山 拓巳 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (72)発明者 竹野 巧 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (72)発明者 加藤 慎哉 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Kazuyasu Nonomura 1015 Kamiodanaka, Nakahara-ku, Kawasaki City, Kanagawa Prefecture, Fujitsu Limited (72) Inventor Toru Watanabe, 1015, Kamedotachu, Nakahara-ku, Kawasaki City, Kanagawa Prefecture, Fujitsu Limited (72) Inventor Takumi Maruyama 1015 Kamiodanaka, Nakahara-ku, Kawasaki City, Kanagawa Prefecture, Fujitsu Limited (72) Inventor Takumi Takeno 1015, Uedotachu, Nakahara-ku, Kawasaki City, Kanagawa Prefecture, Fujitsu Limited (72) Inventor Shinya Kato, Kanagawa 1015 Kamiodanaka, Nakahara-ku, Kawasaki, Japan

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 プログラム命令を格納するメモリ部
(1)と、このメモリ部(1)から読出した命令を複数
保持する命令バッファ(2)と、この命令バッファ
(2)に保持された命令を一命令ずつ読出しこれを実行
する命令実行部(3)と、上記一命令を実行途中にメモ
リ部(1)に格納されている命令が書換えられたとき
に、上記命令バッファ(2)に保持されている命令が上
記書替えられた命令の格納アドレスに格納されていた命
令に該当する命令かどうかを検出する書換検出部(4)
とを有し、この書換検出部(4)で上記検出をしたとき
に、上記メモリ部(1)から上記書換えられた命令を読
出しこれを命令バッファ(2)に書込む処理装置におい
て、 上記命令実行部(3)で上記一命令を実行途中に、上記
書換検出部(4)で上記検出をしたとき、この検出があ
ったことを記憶する書換発生フラグ部(5)を設けると
共に、上記一命令の実行が終了したときに書換発生フラ
グ部(5)において上記検出があったことを記憶してい
た場合には、メモリ部(1)から上記書換えられた命令
を読出しこれを命令バッファ(2)に書込むことを特徴
とする処理装置における命令バッファの命令書換方式。
1. A memory section (1) for storing program instructions, an instruction buffer (2) for holding a plurality of instructions read from the memory section (1), and an instruction held in the instruction buffer (2). An instruction execution unit (3) that reads out one instruction at a time and executes the instruction, and when the instruction stored in the memory unit (1) is rewritten during the execution of the one instruction, the instruction is held in the instruction buffer (2). Rewriting detection unit (4) for detecting whether the stored instruction corresponds to the instruction stored in the storage address of the rewritten instruction
And a rewriting detection section (4) for detecting the rewritten instruction from the memory section (1) and writing the rewritten instruction in the instruction buffer (2) when the rewriting detection section (4) detects the instruction. When the rewriting detection unit (4) detects the above detection while the execution unit (3) is executing the one instruction, a rewrite occurrence flag unit (5) for storing the detection is provided, and When the rewriting occurrence flag portion (5) stores the fact that the above detection has been made when the execution of the instruction is completed, the rewritten instruction is read from the memory portion (1), and this is read in the instruction buffer (2). ), The instruction rewriting method of the instruction buffer in the processor.
JP3231736A 1991-09-11 1991-09-11 Instruction rewriting system for instruction buffer in processor Pending JPH0573311A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3231736A JPH0573311A (en) 1991-09-11 1991-09-11 Instruction rewriting system for instruction buffer in processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3231736A JPH0573311A (en) 1991-09-11 1991-09-11 Instruction rewriting system for instruction buffer in processor

Publications (1)

Publication Number Publication Date
JPH0573311A true JPH0573311A (en) 1993-03-26

Family

ID=16928236

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3231736A Pending JPH0573311A (en) 1991-09-11 1991-09-11 Instruction rewriting system for instruction buffer in processor

Country Status (1)

Country Link
JP (1) JPH0573311A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5482140A (en) * 1977-12-14 1979-06-30 Hitachi Ltd Information processor
JPS6149250A (en) * 1984-08-17 1986-03-11 Fujitsu Ltd Buffer memory control system
JPS62121545A (en) * 1985-11-21 1987-06-02 Nec Corp Instruction rewriting control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5482140A (en) * 1977-12-14 1979-06-30 Hitachi Ltd Information processor
JPS6149250A (en) * 1984-08-17 1986-03-11 Fujitsu Ltd Buffer memory control system
JPS62121545A (en) * 1985-11-21 1987-06-02 Nec Corp Instruction rewriting control system

Similar Documents

Publication Publication Date Title
JPH0573311A (en) Instruction rewriting system for instruction buffer in processor
JP2783285B2 (en) Information processing device
JP3130798B2 (en) Bus transfer device
JP2001005689A (en) Trace sampling circuit
JPH0447350A (en) Main storage read/response control
JPS6125168B2 (en)
JP3715505B2 (en) Computer having operation instructions for specific applications and calculation method of the computer
JPH02207328A (en) Pipe line control system
JP2005506591A (en) Hardware overflow / fill engine for register windows
JPS62108333A (en) Semiconductor device
JPH05313895A (en) Pipeline processor
JPH0465712A (en) Information processor
JPH03241435A (en) Pipe line system
JPH02114331A (en) Infinite structure detector
JPS6337416B2 (en)
JPH05197609A (en) Store buffer managing system
JPH0578052B2 (en)
JPH0433059B2 (en)
JPH06295252A (en) Computer
JPH05265942A (en) Data inputting and outputting method for dma control part
JPS60222969A (en) Pipeline controlling circuit
JPS63174173A (en) Information processor
JPH04245333A (en) Information processor
JPH07319753A (en) Multiplex system for bus cycle
JPH0154729B2 (en)

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19970318