JPH03263127A - Instruction execution control system - Google Patents
Instruction execution control systemInfo
- Publication number
- JPH03263127A JPH03263127A JP6300290A JP6300290A JPH03263127A JP H03263127 A JPH03263127 A JP H03263127A JP 6300290 A JP6300290 A JP 6300290A JP 6300290 A JP6300290 A JP 6300290A JP H03263127 A JPH03263127 A JP H03263127A
- Authority
- JP
- Japan
- Prior art keywords
- instruction
- cycle
- flag
- execution
- fetched
- 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
Links
- 238000000034 method Methods 0.000 claims description 2
- 230000007423 decrease Effects 0.000 abstract 1
- 238000001514 detection method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は命令実行制御方式に関し、特に複数サイクル命
令の実行を可能とするための制御機構を備えたプロセッ
サの命令実行制御方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an instruction execution control system, and particularly to an instruction execution control system for a processor equipped with a control mechanism for enabling execution of multi-cycle instructions.
従来、この種の制御方式は、1つの命令を1サイクルの
みで実行するようになっていた。Conventionally, this type of control system has been designed to execute one instruction in only one cycle.
従来技術の一動作例を第3図のタイムチャートを参照し
て説明する。例えば、アドレス生成を行う場合、まず、
オフセット計算命令をフェッチしくf□)、それをデコ
ードしくdt)、同時にベース加算命令をフェッチする
(f2)。そして、そのデコード(d2)と同時にオフ
セット計算が実行され(ex)、続いてベース加算が実
行される (e 2 )。An example of the operation of the prior art will be explained with reference to the time chart of FIG. For example, when generating an address, first,
Fetch the offset calculation instruction (f□), decode it (dt), and at the same time fetch the base addition instruction (f2). Simultaneously with the decoding (d2), offset calculation is performed (ex), followed by base addition (e 2 ).
上述した従来の命令実行制御方式は、1つの命令を1サ
イクルのみで実行するようになっているので、プログラ
ムのステップ数が多くなり、それを格納するメモリの容
量が大きくなり、また、命令フェッチを頻繁に行うため
、バスの占有率が高くなるなどの欠点がある。In the conventional instruction execution control method described above, one instruction is executed in only one cycle, which increases the number of program steps and the memory capacity to store them. Since this is done frequently, there are disadvantages such as high bus occupancy.
本発明の命令実行制御方式の構成は、ブロモ・yすの命
令実行制御機構における実行命令の複数のマシンサイク
ルを要する命令である複数サイクル命令をフェッチした
ことを検出するデコーダと、前記複数サイクル命令のフ
ェッチを検出したことにより、新たな命令のフェッチを
中断させる命令更新制御手段と、前記複数サイクル命令
がフエ・ソチされたことを示すフラグと、前記フラグが
セ・ントされていることにより、前記デコーダは特定の
動作制御信号を生成し、複数サイクル命令の2サイクル
目以降の実行を制御することを特徴とする。The configuration of the instruction execution control system of the present invention includes a decoder that detects fetching of a multi-cycle instruction which is an instruction that requires a plurality of machine cycles for execution in the instruction execution control mechanism of the bromo-ysu; an instruction update control means for interrupting the fetch of a new instruction upon detecting the fetch of the instruction; a flag indicating that the multi-cycle instruction has been completed; and the flag being set; The decoder is characterized in that it generates a specific operation control signal and controls execution of the second cycle and subsequent cycles of the multi-cycle instruction.
次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は本発明の一実施例のブロック図であり、1は命
令レジスタ、2はプロセッサの動作制御信号の生成及び
複数サイクル命令フェッチの検出を行うデコーダ、3は
プロセッサの動作制御信号を格納するレジスタ、4は複
数サイクル命令がフェッチされたことを示すフラグ、5
は複数サイクル命令フェッチの検出により、命令の更新
を中断させるための制御回路である。FIG. 1 is a block diagram of an embodiment of the present invention, in which 1 is an instruction register, 2 is a decoder that generates processor operation control signals and detects multi-cycle instruction fetch, and 3 stores processor operation control signals. register, 4 is a flag indicating that a multi-cycle instruction has been fetched, 5 is a flag indicating that a multi-cycle instruction has been fetched.
is a control circuit for interrupting instruction updating upon detection of a multi-cycle instruction fetch.
同図の一動作例を第2図のタイミングチャートを参照し
て説明する。An example of the operation shown in FIG. 2 will be explained with reference to the timing chart of FIG.
複数サイクル命令としてアドレス生成命令を例として考
えると、この命令は2サイクル実行する命令であり、1
サイクル目にオフセット計算を実行し、2サイクル目に
ベース加算を実行するとする。Considering an address generation instruction as an example of a multi-cycle instruction, this instruction is an instruction that executes for 2 cycles, and 1
Assume that offset calculation is executed in the 1st cycle, and base addition is executed in the 2nd cycle.
まず、フェッチサイクルflでアドレス生成命令をフェ
ッチ(命令レジスタ1にロード)し、次にデコードサイ
クルdllでは、そのフェッチした命令がアドレス生成
命令であることをデコーダ2により検出し、複数サイク
ル命令検出信号り、により、命令更新制御回路5に通知
する。First, in the fetch cycle fl, an address generation instruction is fetched (loaded into instruction register 1), and then in the decode cycle dll, the decoder 2 detects that the fetched instruction is an address generation instruction, and the multi-cycle instruction detection signal is This notifies the instruction update control circuit 5 accordingly.
デコードサイクルdllの完了で、フラグ4に論理“1
”がセットされ、フラグ信号F1によりデコーダ2から
出力されるアドレス生成命令検出信号はマスクされる。Upon completion of the decode cycle dll, the flag 4 is set to logic “1”.
" is set, and the address generation command detection signal output from the decoder 2 is masked by the flag signal F1.
また、このとき、制御レジスタ3にはオフセット計算を
行うための制御信号がロードされるが、命令レジスタ1
のデータは命令更新制御回路5の制御により変化せず、
アドレス生成命令が格納されたままとなる。Also, at this time, the control register 3 is loaded with a control signal for performing offset calculation, but the instruction register 1
The data does not change under the control of the instruction update control circuit 5,
The address generation instruction remains stored.
デコードサイクルd12では、フラグ4に論理“1″が
セットされていることにより、ベース加算を行うための
制御信号がデコーダ2にて強制的に生成される。In the decode cycle d12, since the flag 4 is set to logic "1", the decoder 2 forcibly generates a control signal for base addition.
デコードサイクルd12完了で、それらの制御信号が制
御レジスタ3にロードされ、同時にフラグ4はリセット
される。At the completion of the decode cycle d12, those control signals are loaded into the control register 3, and at the same time the flag 4 is reset.
このようにして、実行サイクルettでオフセット計算
及び実行サイクルe12でベース加算が行われ、アドレ
ス生成命令という1つの命令により2サイクルの実行が
可能となる。In this way, offset calculation is performed in execution cycle ett and base addition is performed in execution cycle e12, making it possible to execute two cycles with one instruction, the address generation instruction.
また、アドレス生成命令以外がフェッチ(f2)された
場合は、デコード(d2)完了で、フラグ4はリセット
されたままなので1サイクルだけ実行(e2)される。Furthermore, if an instruction other than the address generation instruction is fetched (f2), decoding (d2) is completed and flag 4 remains reset, so only one cycle is executed (e2).
以上説明したように本発明は、複数サイクル命令がフェ
ッチされた場合、その2サイクル目以降に実行する命令
をハードウェアが強制的に作り出すという制御機構を設
けることにより、プログラムのステップ数が削減される
ため、それを格納するメモリの容量を縮小化することが
可能で、同時に命令フェッチの回数が減るため、バスの
占有率を低くできる効果がある。As explained above, the present invention reduces the number of program steps by providing a control mechanism in which when a multi-cycle instruction is fetched, the hardware forcibly creates an instruction to be executed from the second cycle onwards. Therefore, it is possible to reduce the capacity of the memory that stores them, and at the same time, the number of instruction fetches is reduced, which has the effect of lowering the bus occupancy rate.
第1図は本発明の一実施例のブロック図、第2図は第1
図の一動作例を示すタイミングチャート、第3図は従来
技術の一動作例を示すタイミングチャートである。
1・・・命令レジスタ、2・・・デコーダ、3・・・制
御レジスタ、4・・・フラグ、5・・・命令更新制御回
路。FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a block diagram of an embodiment of the present invention.
FIG. 3 is a timing chart showing an example of the operation of the conventional technology. 1... Instruction register, 2... Decoder, 3... Control register, 4... Flag, 5... Instruction update control circuit.
Claims (1)
のマシンサイクルを要する命令である複数サイクル命令
をフェッチしたことを検出するデコーダと、前記複数サ
イクル命令のフェッチを検出したことにより、新たな命
令のフェッチを中断させる命令更新制御手段と、前記複
数サイクル命令がフェッチされたことを示すフラグと、
前記フラグがセットされていることにより、前記デコー
ダは特定の動作制御信号を生成し、複数サイクル命令の
2サイクル目以降の実行を制御することを特徴とする命
令実行制御方式。A decoder detects fetching of a multi-cycle instruction, which is an instruction requiring multiple machine cycles for execution in an instruction execution control mechanism of a processor; an instruction update control means for suspending the instruction; a flag indicating that the multi-cycle instruction has been fetched;
An instruction execution control method characterized in that when the flag is set, the decoder generates a specific operation control signal to control execution of a multi-cycle instruction from the second cycle onwards.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6300290A JPH03263127A (en) | 1990-03-13 | 1990-03-13 | Instruction execution control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6300290A JPH03263127A (en) | 1990-03-13 | 1990-03-13 | Instruction execution control system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03263127A true JPH03263127A (en) | 1991-11-22 |
Family
ID=13216681
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP6300290A Pending JPH03263127A (en) | 1990-03-13 | 1990-03-13 | Instruction execution control system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03263127A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0869377A (en) * | 1994-05-10 | 1996-03-12 | Sgs Thomson Microelectron Sa | Electronic circuit and method for use of coprocessor |
-
1990
- 1990-03-13 JP JP6300290A patent/JPH03263127A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0869377A (en) * | 1994-05-10 | 1996-03-12 | Sgs Thomson Microelectron Sa | Electronic circuit and method for use of coprocessor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5504869A (en) | High speed processing system capable of executing strings of instructions in order without waiting completion of previous memory access instruction | |
US5253349A (en) | Decreasing processing time for type 1 dyadic instructions | |
JPH0418635A (en) | Digital signal processor | |
JPS62226231A (en) | Processor | |
JPH03201031A (en) | Information processor | |
JPH03263127A (en) | Instruction execution control system | |
JPH01286030A (en) | Information processor | |
US20050015561A1 (en) | Memory control method and memory control apparatus | |
JPH05143447A (en) | Digital processor and control method for the processor | |
JPH0573296A (en) | Microcomputer | |
JPS6242301B2 (en) | ||
JP2583614B2 (en) | Vector arithmetic unit | |
JP2771373B2 (en) | Instruction prefetch device | |
JPH04264624A (en) | Processor | |
JPH02217924A (en) | Storing processing system for data processor | |
JPH01241644A (en) | Microcomputer control circuit | |
JPH06223035A (en) | Arithmetic processor | |
JPH0348535B2 (en) | ||
JPH06161778A (en) | Multi-flow instruction control method and instruction processor | |
JPS61187044A (en) | Information processor | |
JPH01274254A (en) | Data processor | |
JPH0258127A (en) | Instruction precedence control system | |
JPH02137028A (en) | Instruction control system | |
JPH0415825A (en) | Micro branch processing system | |
JPH04245333A (en) | Information processor |