JPH02297221A - Executing speed control system for microprogram - Google Patents
Executing speed control system for microprogramInfo
- Publication number
- JPH02297221A JPH02297221A JP11767189A JP11767189A JPH02297221A JP H02297221 A JPH02297221 A JP H02297221A JP 11767189 A JP11767189 A JP 11767189A JP 11767189 A JP11767189 A JP 11767189A JP H02297221 A JPH02297221 A JP H02297221A
- Authority
- JP
- Japan
- Prior art keywords
- microprogram
- microinstruction
- code
- execution
- selection mode
- 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
Abstract
Description
【発明の詳細な説明】
[発明の目的]
(産業上の利用分野)
本発明はマイクロプログラム制御方式の情報処理装置に
用いられるマイクロプログラム実行速度制御方式に関す
る。DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to a microprogram execution speed control system used in a microprogram control type information processing apparatus.
(従来の技術)
従来、マイクロプログラム制御方式の情報処理装置に於
いて、マイクロプログラムの性能(実行速度)を制御す
る回路はマイクロプログラム(ファームウェア)自身で
制御されていた。このダ
第3図に於いて、001はマイクロプログラム格納メモ
リ(CS ) 002はマイクロプログラム格納メモ
リ001から読出された、実行すべきマイクロ命令を保
持するマイクロ命令レジスタ(M I R) 、003
はマイクロプログラム格納メモリ001の読み出しアド
レス102を発生するマイクロプログラムシーケンサ(
S Q ) 004はマイクロ命令レジスタ002に
貯えられたマイクロ命令コード100を解読し、そのコ
ード内容に応じた制御信号等を出力するマイクロ命令デ
コーダ(D E C) 、005は定期的に発生する外
部割込み信号108によりセットされ、アイドルルーチ
ン内で発生する特定デコード出力109によりリセット
されるフリップフロップ、00Bはフリップフロップ0
05がセット状態にあるとき、マイクロ命令デコーダ0
04からソフトウェア命令の終了を示すマイクロ命令の
デコード出力105があると“真”の信号を出力し、同
信号によりマイクロプログラムシーケンサ003の発生
アドレスを特定番地へ移行操作するアンドゲートである
。(Prior Art) Conventionally, in a microprogram control type information processing device, a circuit that controls the performance (execution speed) of the microprogram has been controlled by the microprogram (firmware) itself. In FIG. 3, 001 is a microprogram storage memory (CS), 002 is a microinstruction register (MIR) that holds microinstructions to be executed read from the microprogram storage memory 001, and 003 is
is a microprogram sequencer (
SQ) 004 is a microinstruction decoder (DEC) that decodes the microinstruction code 100 stored in the microinstruction register 002 and outputs control signals, etc. according to the code contents, and 005 is a microinstruction decoder (DEC) that decodes the microinstruction code 100 stored in the microinstruction register 002. Flip-flop set by interrupt signal 108 and reset by specific decode output 109 generated in the idle routine, 00B is flip-flop 0
When 05 is set, microinstruction decoder 0
This is an AND gate that outputs a "true" signal when there is a microinstruction decode output 105 indicating the end of a software instruction from 04, and uses this signal to move the generation address of the microprogram sequencer 003 to a specific address.
この第1図に示す従来のマイクロプログラム制御回路に
於ける実行速度制御動作を第4図に示すフローチャート
を参照して説明する。The execution speed control operation in the conventional microprogram control circuit shown in FIG. 1 will be explained with reference to the flow chart shown in FIG.
一連のマイクロ命令を実行中に、例えばタイマ等による
、外部の定期的な割込み108が発生すると、フリップ
フロップ005がセットする。次にマイクロ命令デコー
ダ004より、ソフトウェア命令の終rを示すマイクロ
命令のデコード出力105が発生すると、アンドゲート
005の出力103が“真”となり、マイクロプログラ
ムシーケンサ(103の出力102を操作して、マイク
ロプログラム格納メモリ001のアドレスを第4図に示
すように、XXO2番地から、△Δ01番地に変化させ
る。When a periodic external interrupt 108, such as from a timer, occurs while a series of microinstructions is being executed, the flip-flop 005 is set. Next, when the microinstruction decoder 004 generates a microinstruction decode output 105 indicating the end of the software instruction r, the output 103 of the AND gate 005 becomes "true", and the output 102 of the microprogram sequencer (103) is operated. As shown in FIG. 4, the address of the microprogram storage memory 001 is changed from address XXO2 to address ΔΔ01.
そして、第4図に示すアイドルルーチンの中で、マイク
ロ命令デコーダ004のデコード出力109を“真″と
するマイクロ命令を実行し、フリップフロップ006を
リセットする。これにより一定ステップ実行後、元のマ
イクロプログラムアドレス(XXO2番地)の次のアド
レス(XXO3番地)に戻り、次の命令が実行される。Then, in the idle routine shown in FIG. 4, a microinstruction that makes the decoded output 109 of the microinstruction decoder 004 "true" is executed, and the flip-flop 006 is reset. As a result, after executing a certain number of steps, the program returns to the address (XXO3 address) next to the original microprogram address (XXO2 address) and executes the next instruction.
以上のように、定期的にアイドルルーチンを実行するこ
とによって、マイクロプログラムの実行速度を制御して
いた。As described above, the execution speed of the microprogram is controlled by periodically executing the idle routine.
上記したような従来のマイクロプログラム制御機構に於
いては、単一のハードウェア構成で複数種のマイクロプ
ログラム処理速度をもった情報処理装置を実現しようと
すると、その複数種の処理速度と同数種のそれぞれステ
ップ数を異にするアイドルルーチンをもつマイクロプロ
グラムが必要となり、マイクロプログラムが繁雑化する
という問題かあった。In the conventional microprogram control mechanism described above, if you try to realize an information processing device with multiple types of microprogram processing speeds with a single hardware configuration, it is necessary to This required a microprogram with idle routines each having a different number of steps, which caused the problem that the microprogram became complex.
(発明が解決しようとする課題)
上記したように従来では、同一ハードウェア構成で複数
のマイクロプログラム処理速度をもった情報処理装置を
実現する際に、その制御対象速度の数と同数種の異なる
ステップ数のアイドルルーチンが必要となり、従ってマ
イクロプログラムが繁雑化するという問題があった。(Problems to be Solved by the Invention) As mentioned above, conventionally, when realizing an information processing device with multiple microprogram processing speeds using the same hardware configuration, it is necessary to There is a problem in that an idle routine with a large number of steps is required, which makes the microprogram complicated.
本発明は上記実情に鑑みなされたもので、マイクロプロ
グラム制御方式を採用してなる情報処理装置に於いて、
単一のハードウェア構成で、かつ一種のマイクロプログ
ラムにより、複数種のマイクロプログラム処理速度をも
つ装置を実現できるマイクロプログラム実行速度制御方
式を提供することを目的とする。The present invention has been made in view of the above circumstances, and provides an information processing device adopting a microprogram control method.
It is an object of the present invention to provide a microprogram execution speed control method that can realize a device having multiple types of microprogram processing speeds using a single hardware configuration and one type of microprogram.
[発明の構成]
(課題を解決するための手段及び作用)本発明は、マイ
クロプログラム制御方式を採用してなる情報処理装置に
於いて、外部のスイッチ設定情報に従い、任意のマイク
ロプログラム実行速度を選択できる構成としたもので、
外部スイッチより初期値を設定できるカウンタをもち、
外部からの定期的な割込みとマイクロ命令の状態とによ
り、マイクロプログラムシーケンサの動作を一時停止さ
せ、ハードウェア的に実行マイクロ命令中にノーオペレ
ーション(No 0PERATION)コードを挿入さ
せ′て、実行を続け、上記カウンタの値が一定値になっ
たタイミングでマイクロ命令の実行制御をマイクロプロ
グラムシーケンサに戻すことにより、マイクロプログラ
ム実行処理速度を制御する手段を実現する。[Structure of the Invention] (Means and Effects for Solving the Problems) The present invention provides an information processing device that employs a microprogram control method, in which an arbitrary microprogram execution speed can be adjusted according to external switch setting information. It has a configuration that allows you to choose.
It has a counter whose initial value can be set using an external switch.
The operation of the microprogram sequencer is temporarily stopped in response to periodic interrupts from the outside and the status of the microinstructions, and a no-operation code is inserted into the execution microinstructions using hardware to continue execution. By returning control of the execution of microinstructions to the microprogram sequencer at the timing when the value of the counter reaches a constant value, a means for controlling the microprogram execution processing speed is realized.
このようなマイクロプログラム実行速度制御方式を実現
することにより、単一のハードウェア構成にて、複数種
のマイクロプログラム実行速度をもった装置を実現する
際に、その速度の種類と同数種のステップ数の異なるア
イドルルーチンをもったマイクロプログラムを必要とせ
ず、只一種のマイクロプログラムのみにて複数種のマイ
クロプログラム処理速度をもつ装置を実現できる。By realizing such a microprogram execution speed control method, when realizing a device with multiple types of microprogram execution speeds with a single hardware configuration, it is possible to implement the same number of steps as the types of speeds. There is no need for microprograms having different numbers of idle routines, and an apparatus having multiple types of microprogram processing speeds can be realized using only one type of microprogram.
(実施例) 以下図面を参照して本発明の一実施例を説明する。(Example) An embodiment of the present invention will be described below with reference to the drawings.
第1図は本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.
第1図に於いて、llはマイクロプログラム格納メモリ
(CS)であり、マイクロプログラムシーケンサ14か
ら発生されるマイクロ命令読み出しアドレス100に従
い実行すべきマイクロ命令(マイクロコード)101を
読み出す。In FIG. 1, 11 is a microprogram storage memory (CS), which reads a microinstruction (microcode) 101 to be executed in accordance with a microinstruction read address 100 generated from the microprogram sequencer 14.
12はマイクロプログラム格納メモリ11より読み出さ
れたマイクロ命令101と外部のハードウェアより与え
られるマイクロ命令の一種であるNOPコード115と
を受けて、オアゲート20の出力111に従い、いずれ
か一方を選択的に出力するセレクタである。12 receives the microinstruction 101 read from the microprogram storage memory 11 and the NOP code 115, which is a type of microinstruction given from external hardware, and selectively selects one of them according to the output 111 of the OR gate 20. This is a selector that outputs to .
13はセレクタ12より出力された、実行すべきマイク
ロ命令を保持するマイクロ命令レジスタ(M I R)
である。13 is a microinstruction register (MIR) that holds microinstructions to be executed, output from the selector 12;
It is.
14はマイクロプログラム格納メモリ11の読み出しア
ドレス100を発生するマイクロプログラムシーケンサ
(SQ)であり、イネーブル端子(EN)に入力される
信号がイネーブル状態を示しているとき(即ち、オアゲ
ート20の出力litが“偽”(−0”)であるとき)
は、基本クロック(B−CLK)に同期してアドレスを
更新するが、イネーブル端子(EN)に入力される信号
がディセーブル状態を示しているとき(即ち、オアゲー
ト20の出力111が“真” (−“1”)であるとき
)は、同一アドレスを出力し続ける。14 is a microprogram sequencer (SQ) that generates the read address 100 of the microprogram storage memory 11, and when the signal input to the enable terminal (EN) indicates the enable state (that is, the output lit of the OR gate 20 is When it is “false” (-0”)
updates the address in synchronization with the basic clock (B-CLK), but when the signal input to the enable terminal (EN) indicates a disabled state (that is, the output 111 of the OR gate 20 is "true"). (-“1”), the same address continues to be output.
15はマイクロ命令レジスタ13に貯えられたマイクロ
命令(マイクロコード)を解読し、そのコード内容に応
じた制御信号等を出力するマイクロ命令デコーダ(DE
C)である。15 is a microinstruction decoder (DE) that decodes the microinstruction (microcode) stored in the microinstruction register 13 and outputs a control signal etc. according to the contents of the code.
C).
16はNOPコード115によるアイドルルーチンの長
さを示すカウント値を設定するための操作スイッチ(S
W)であり、マイクロプログラム実行前に設定操作され
る。16 is an operation switch (S
W), which is set and operated before the microprogram is executed.
17はスイッチ1Bの設定値を初期値として設定アイド
ルルーチンのカウント動作を実行するカウンタ(CTR
)であり、ロード端子(L)に入力される信号が“真”
であるとき、スイッチ1Bの設定カウント値105をセ
ットし、カウントイネーブル端子(CE)に人力される
信号がイネーブル状態を示しているとき(即ち、フリッ
プフロップ21のセット側出力端(Q)信号が“真”で
あるとき)カウント動作を実行して、設定アイドルルー
チンのカウント動作が終了するとカウント出力端子(C
A)よりカウント終了信号10Bを出力する。17 is a counter (CTR) that executes the count operation of the set idle routine with the set value of switch 1B as the initial value.
), and the signal input to the load terminal (L) is “true”
When the set count value 105 of the switch 1B is set and the signal input to the count enable terminal (CE) indicates the enable state (that is, the set side output terminal (Q) signal of the flip-flop 21 is When the count operation of the set idle routine is completed, the count output terminal (C
A) outputs a count end signal 10B.
18はタイマ割込み等の定期的に発生する割込み信号1
07をセット入力端(S)に受け、カウンタ17から出
力されるカウント終了信号106をリセット入力端(R
)に受けて、割込み信号107の発生から設定アイドル
ルーチンのカウント動作終了に伴うカウント終了信号1
0Bの発生までの間、セット側出力端(Q)の信号10
8を“真”とするフリップフロップである。18 is an interrupt signal 1 that occurs periodically such as a timer interrupt.
07 is received at the set input terminal (S), and the count end signal 106 output from the counter 17 is received at the reset input terminal (R
), the count end signal 1 is generated from the generation of the interrupt signal 107 to the end of the count operation of the set idle routine.
Until the generation of 0B, the signal 10 at the set side output terminal (Q)
This is a flip-flop that takes 8 as “true”.
19はフリップフロップI8よりアイドルルーチンの実
行を示す信号108が出力されているとき、マイクロ命
令デコーダ15よりソフトウェア命令の終了を示すマイ
クロ命令(第3図(c)参照)のデコード信号109が
出力されると、“真″の信号を出力するアンドゲートで
ある。Reference numeral 19 indicates that when the flip-flop I8 outputs a signal 108 indicating execution of an idle routine, the microinstruction decoder 15 outputs a decode signal 109 of a microinstruction (see FIG. 3(c)) indicating the end of a software instruction. This is an AND gate that outputs a “true” signal.
20は上記アンドゲート19の出力信号110とフリッ
プフロップ2Iのセット側出力端(Q)の信号とを受け
て、そのいずれかの信号が“真”であるとき、セレクタ
12をNOPコード115の選択モードに切替え、マイ
クロプログラムシーケンサ14のアドレス更新を停止制
御するオアゲートである。20 receives the output signal 110 of the AND gate 19 and the signal of the set side output terminal (Q) of the flip-flop 2I, and when either signal is "true", selects the NOP code 115 by the selector 12. This is an OR gate that switches to the mode and controls to stop updating the address of the microprogram sequencer 14.
21はアンドゲート19の出力をセット入力端(S)に
受け、カウンタ17から出力されるカウント終了信号1
0Bをリセット入力端(R)に受けて、アイドルルーチ
ンの間、セット側出力端(Q)より“真”の信号を出力
するフリップフロップである。21 receives the output of the AND gate 19 at the set input terminal (S), and receives the count end signal 1 output from the counter 17.
This flip-flop receives 0B at its reset input terminal (R) and outputs a "true" signal from its set side output terminal (Q) during the idle routine.
このフリップフロップ21のセット側出力端(Q)の信
号はカウンタ17のカウントイネーブル端子(CE)、
及びオアゲート20へ供給される。The signal at the set side output terminal (Q) of this flip-flop 21 is connected to the count enable terminal (CE) of the counter 17.
and is supplied to the OR gate 20.
22はカウンタ17のカウント出力端子(CA)より出
力されるカウント終了信号10Bとマイクロプログラム
が走り出す初期に“真”となる信号113とを受けて、
この各信号をカウンタ17のロード端子(L)へロード
イネーブル信号として供給するオアゲートである。22 receives the count end signal 10B outputted from the count output terminal (CA) of the counter 17 and the signal 113 which becomes "true" at the beginning of the microprogram running.
It is an OR gate that supplies each of these signals to the load terminal (L) of the counter 17 as a load enable signal.
第2図及び第3図はそれぞれ上記実施例の動作を説明す
るためのもので、第2図はマイクロプログラムステップ
を例示したフローチャート、第3図は第2図に示すマイ
クロプログラムを実行したとき定期的な割込み107が
発生した際の各部の状態を示すタイムチャートである。2 and 3 are for explaining the operation of the above embodiment, respectively. FIG. 2 is a flowchart illustrating the microprogram steps, and FIG. 3 is a flowchart illustrating the microprogram steps shown in FIG. 3 is a time chart showing the state of each part when a typical interrupt 107 occurs.
第2図に於いて、SlはマイクロプログラムのC番地を
実行するステップであり、ここで一つのソフトウェア命
令が終了する。この際のマイクロ命令の実行で、マイク
ロ命令デコーダ15よりソフトウェア命令の終rを示す
デコード信号109が出力されると、NOPコード11
5による実行速度制御のだめの処理が開始される。又、
第3図に於いて、a、b、c、・・・gはマイクロプロ
グラムシーケンサ14より出力されるマイクロ命令読み
出しアドレス(+00)であり、(a)、 (b)、
(c)。In FIG. 2, Sl is a step for executing address C of the microprogram, and one software instruction ends here. When the microinstruction is executed at this time, when the microinstruction decoder 15 outputs the decode signal 109 indicating the end of the software instruction r, the NOP code 11
5 starts the final execution speed control process. or,
In FIG. 3, a, b, c, . . . g are microinstruction read addresses (+00) output from the microprogram sequencer 14, and (a), (b),
(c).
・・・(g)は上記マイクロ命令読み出しアドレスab
、c、・・・gに従いマイクロプログラム格納メモリ1
.1より読出されるマイクロ命令(101)である。...(g) is the above microinstruction read address ab
, c, ...g, microprogram storage memory 1
.. This is a microinstruction (101) read from 1.
又、第3図に於いて、B−CLKは基本クロックであり
、この基本クロックに同期してマイクロプログラム処理
動作が実行される。Further, in FIG. 3, B-CLK is a basic clock, and microprogram processing operations are executed in synchronization with this basic clock.
ここで上記第1図乃至第3図を参照して上記実施例の動
作を説明する。The operation of the above embodiment will now be described with reference to FIGS. 1 to 3.
先ず、マイクロプログラム処理の実行に際し、スイッチ
1Gの操作でアイドルルーチンの長さ(初期値)が設定
される。First, when executing the microprogram processing, the length (initial value) of the idle routine is set by operating the switch 1G.
その後、マイクロプログラム処理の実行を開始すると、
マイクロプログラム開始時に“真”となる信号113に
より、スイッチ16の操作で設定された初期値がカウン
タ17にセットされる。Then, when you start executing the microprogram processing,
The initial value set by operating the switch 16 is set in the counter 17 by the signal 113 which becomes "true" at the start of the microprogram.
そして一連のマイクロプログラム実行中に、タイマ等に
よる定期的な割込みが発生して信号107が“真“にな
ると、フリップフロップ18がセットされ、同フリップ
フロップ18のセット側出力端子(Q)の信号108が
“真“となる(第3図参照)。During the execution of a series of microprograms, when a periodic interrupt by a timer or the like occurs and the signal 107 becomes "true", the flip-flop 18 is set, and the signal at the set side output terminal (Q) of the flip-flop 18 is set. 108 becomes "true" (see FIG. 3).
その後、一つのソフトウェア命令の終了を示す、第3図
に示す(C)のマイクロ命令が実行されて、マイクロ命
令デコーダ15の出力109が“真″になると、アンド
ゲート19の出力110が“真゛となり、これに伴いフ
リップフロップ21がセットされるとともに、オアゲー
ト20の出力Utが“真″となる(第3図参照)。Thereafter, when the microinstruction (C) shown in FIG. 3, which indicates the end of one software instruction, is executed and the output 109 of the microinstruction decoder 15 becomes "true", the output 110 of the AND gate 19 becomes "true". Accordingly, the flip-flop 21 is set and the output Ut of the OR gate 20 becomes "true" (see FIG. 3).
このオアゲート20の出力信号(111−’真#)によ
り、マイクロプログラムシーケンサ14のアドレス更新
動作が一時停止されるとともに、セレクタ12の選択モ
ードが、マイクロプログラム格納メモリ11のマイクロ
命令選択モードからNOPコード115の選択モードに
切替えられ、更に、カウンタ17がカウントイネーブル
状態になる。The output signal (111-'true#) of the OR gate 20 causes the address update operation of the microprogram sequencer 14 to be temporarily stopped, and the selection mode of the selector 12 is changed from the microinstruction selection mode of the microprogram storage memory 11 to the NOP code. The selection mode is switched to 115, and furthermore, the counter 17 is placed in a count enable state.
これにより、フリップフロップ21がセット状態にある
間、ハードウェア的に与えられるNOPコード115が
セレクタ12より選択されてマイクロ命令レジスタ13
に貯えられた後、マイクロ命令デコーダ15でデコード
され、NOPコード115による処理が実行される。As a result, while the flip-flop 21 is in the set state, the NOP code 115 given by hardware is selected by the selector 12 and the microinstruction register 13
After being stored in , it is decoded by the microinstruction decoder 15 and processing according to the NOP code 115 is executed.
カウンタ17はカウント動作を続行し、スイッチ16よ
りロードした初期値に従う設定アイドルルーチンのカウ
ント動作を終了すると、カウント出力端子(CA)より
カウント終了信号(106−真”)を出力する。The counter 17 continues its counting operation, and when it completes the counting operation of the set idle routine according to the initial value loaded from the switch 16, it outputs a count end signal (106-true") from the count output terminal (CA).
これにより、カウンタ17に再びスイッチ1Gの設定値
が初期値としてロードされるとともに、フリップフロッ
プ18.21が共にリセットされ、オアゲート20の出
力が“真0から“偽”に替わる。この信号変化(11■
−“真”−“為”)に伴い、−時停止されていたマイク
ロプログラムシーケンサ14のアドレス更新動作が再開
されるとともに、セレクタ12の選択モードが、NOP
コード115の選択モードからマイクロプログラム格納
メモリ11のマイクロ命令選択モードに切替えられて、
マイクロプログラム格納メモリ11より、上記マイクロ
命令(C)に続く次のマイクロ命令(d)が読出され、
マイクロプログラム格納メモリ11に格納されたマイク
ロ命令処理の実行が再開される。As a result, the set value of the switch 1G is loaded into the counter 17 again as an initial value, and the flip-flops 18 and 21 are both reset, and the output of the OR gate 20 changes from "true 0" to "false".This signal change ( 11■
- "true" - "for"), the address update operation of the microprogram sequencer 14 that had been stopped at - is restarted, and the selection mode of the selector 12 is changed to NOP.
The selection mode of the code 115 is switched to the microinstruction selection mode of the microprogram storage memory 11,
The next microinstruction (d) following the above microinstruction (C) is read from the microprogram storage memory 11,
Execution of the microinstruction processing stored in the microprogram storage memory 11 is resumed.
このように、外部スイッチ16で設定された値に従い
外部よりハードウェア的に与えられるNOPコード+1
5の処理を実行する、マイクロプログラム実行速度制御
方式を実現したことにより、単一のハードウェア構成に
て、複数種のマイクロプログラム実行速度をもった装置
を実現する際に、その速度の種類と同数種のステップ数
の異なるアイドルルーチンをもったマイクロプログラム
を必要とせず、只一種のマイクロプログラムのみにて複
数種のマイクロプログラム処理速度をもつ装置が実現で
きる。In this way, according to the value set by the external switch 16,
NOP code given externally by hardware +1
By realizing a microprogram execution speed control method that executes the processing in step 5, it is possible to realize a device with multiple types of microprogram execution speeds using a single hardware configuration. There is no need for microprograms having the same number of idle routines with different numbers of steps, and an apparatus having multiple types of microprogram processing speeds can be realized using only one type of microprogram.
[発明の効果]
以上詳記したように本発明のマイクロプログラム実行速
度制御方式によれば、マイクロプログム格納メモリより
読出されたマイクロ命令コードと外部より与えられたN
OPコードとを受けて、そのいずれか一方を選択するセ
レクタと、NOPコードによるアイドルルーチンの実行
期間を設定する手段と、外部より与えられる定期的な割
込みとマイクロプログラム格納メモリより読出されたソ
フトウェア命令の終了を示すコードの実行出力とを受け
て上記マイクロプログラム格納メモリのアドレス更新を
停止し、上記セレクタをマイクロプログラム格納メモリ
より読出されたコードの選択モードから外部より与えら
れたNOPコードの選択モードへ切替える論理回路と、
上記セレクタで選択されたNOPコードによる命令実行
期間が上記設定されたアイドルルーチンの実行期間に達
したことを検出する手段と、この手段で上記アイドルル
ーチンの実行終了を検出したとき上記セレクタをNOP
コードの選択モードからマイクロプログラム格納メモリ
より読出されたマイクロ命令フードの選択モードへ切替
え、上記マイクロプログラム格納メモリのアドレス更新
を再開する論理回路とを礒え、外部のスイッチ設定情報
に従い、任意のマイクロプログラム実行速度を選択でき
る構成としたことにより、単一のハードウェア構成にて
複数種のマイクロプログラム実行速度をもった装置を実
現する際に、その速度の種類と同数種のステップ数の異
なるアイドルルーチンをもったマイクロプログラムを必
要とせず、只一種のマイクロプログラムのみにて複数種
のマイクロプログラム処理速度をもつ装置を実現できる
。[Effects of the Invention] As detailed above, according to the microprogram execution speed control method of the present invention, the microinstruction code read from the microprogram storage memory and the N given from the outside are
a selector for receiving an OP code and selecting one of them; means for setting an execution period of an idle routine using a NOP code; periodic interrupts given from the outside; and software instructions read from a microprogram storage memory. In response to the execution output of the code indicating the end of the code, updating of the address of the microprogram storage memory is stopped, and the selector is changed from the selection mode of the code read from the microprogram storage memory to the selection mode of the NOP code given from the outside. a logic circuit that switches to
means for detecting that the instruction execution period according to the NOP code selected by the selector has reached the execution period of the set idle routine;
A logic circuit that switches from the code selection mode to the microinstruction food selection mode read from the microprogram storage memory and resumes address updating of the microprogram storage memory is installed, and according to external switch setting information, any microinstruction code is selected. By adopting a configuration in which the program execution speed can be selected, when realizing a device with multiple types of microprogram execution speeds with a single hardware configuration, it is possible to create an idle device with the same number of steps as the type of speed. A device having multiple types of microprogram processing speeds can be realized using only one type of microprogram without requiring a microprogram with a routine.
第1図は本発明の一実施例を示すブロック図、第2図及
び第3図はそれぞれ上記実施例の動作を説明するための
もので、第2図はマイクロプログラムステップを例示し
たフローチャート、第3図は第2図に示すマイクロプロ
グラムを実行したとき定期的な割込みが発生した際の各
部の状態を示すタイムチャートである。第4図は従来の
マイクロプログラム制御回路の構成を示すブロック図、
第5図は従来のマイクロプログラム実行速度制御処理フ
ローを示すフローチャートである。
11・・・マイクロプログラム格納メモリ(CS)、1
2・・・セレクタ、13・・・マイクロ命令レジスタ(
MIR)、+4・・・マイクロプログラムシーケンサ(
S Q) 、15−フィクロ命令デコーダ(DEC)、
1B−スイッチ(SW) 、17−カ’)ン9 (CT
R)、18、21・・・フリップフロップ、19・・・
アンドゲート、20、22・・・オアゲート、115・
・・NOPコード。
出願人代理人 弁理士 鈴江武彦
第
図
第
図FIG. 1 is a block diagram showing one embodiment of the present invention, FIGS. 2 and 3 are for explaining the operation of the above embodiment, respectively, and FIG. 2 is a flowchart illustrating microprogram steps, and FIG. FIG. 3 is a time chart showing the state of each part when a periodic interrupt occurs when the microprogram shown in FIG. 2 is executed. FIG. 4 is a block diagram showing the configuration of a conventional microprogram control circuit.
FIG. 5 is a flowchart showing a conventional microprogram execution speed control processing flow. 11...Microprogram storage memory (CS), 1
2... Selector, 13... Micro instruction register (
MIR), +4...Micro program sequencer (
S Q), 15-Ficro Instruction Decoder (DEC),
1B-Switch (SW), 17-Kan') 9 (CT
R), 18, 21... flip-flop, 19...
And gate, 20, 22...or gate, 115.
...NOP code. Applicant's Representative Patent Attorney Takehiko Suzue
Claims (1)
命令コードと外部より与えられたNOPコードとを受け
て、そのいずれか一方を選択するセレクタと、NOPコ
ードによるアイドルルーチンの実行期間を設定する手段
と、外部より与えられる定期的な割込みとマイクロプロ
グラム格納メモリより読出されたソフトウェア命令の終
了を示すコードの実行出力とを受けて上記マイクロプロ
グラム格納メモリのアドレス更新を停止し、上記セレク
タをマイクロプログラム格納メモリより読出されたコー
ドの選択モードから外部より与えられたNOPコードの
選択モードへ切替える論理回路と、上記セレクタで選択
されたNOPコードによる命令実行期間が上記設定され
たアイドルルーチンの実行期間に達したことを検出する
手段と、この手段で上記アイドルルーチンの実行終了を
検出したとき上記セレクタをNOPコードの選択モード
からマイクロプログラム格納メモリより読出されたマイ
クロ命令コードの選択モードへ切替え、上記マイクロプ
ログラム格納メモリのアドレス更新を再開する論理回路
とを具備してなることを特徴とするマイクロプログラム
実行速度制御方式。a selector for receiving a microinstruction code read from a microprogram storage memory and a NOP code applied from the outside and selecting one of them; means for setting an execution period of an idle routine using the NOP code; In response to the given periodic interrupt and the execution output of a code indicating the end of the software instruction read from the microprogram storage memory, updating of the address of the microprogram storage memory is stopped, and the selector is read from the microprogram storage memory. A logic circuit switches from a selected code selection mode to an externally given NOP code selection mode, and detects that the instruction execution period according to the NOP code selected by the selector has reached the idle routine execution period set above. means for detecting, and when the means detects the end of execution of the idle routine, switches the selector from a NOP code selection mode to a microinstruction code selection mode read from the microprogram storage memory; A microprogram execution speed control method comprising: a logic circuit for restarting address updating.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11767189A JPH02297221A (en) | 1989-05-11 | 1989-05-11 | Executing speed control system for microprogram |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11767189A JPH02297221A (en) | 1989-05-11 | 1989-05-11 | Executing speed control system for microprogram |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02297221A true JPH02297221A (en) | 1990-12-07 |
Family
ID=14717403
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP11767189A Pending JPH02297221A (en) | 1989-05-11 | 1989-05-11 | Executing speed control system for microprogram |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02297221A (en) |
-
1989
- 1989-05-11 JP JP11767189A patent/JPH02297221A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2943464B2 (en) | Program control method and program control device | |
| JP2848606B2 (en) | Method and apparatus for modifying microinstructions using a macroinstruction pipeline | |
| JPH0561692A (en) | Interruption control device for microprocessor | |
| JPH02156334A (en) | Information processor | |
| JPH02297221A (en) | Executing speed control system for microprogram | |
| JP2694948B2 (en) | Micro program processor | |
| JP2825315B2 (en) | Information processing device | |
| JP2844624B2 (en) | Data processing device | |
| JP2738141B2 (en) | Single chip microcomputer | |
| JPH0573296A (en) | Microcomputer | |
| JPH04370832A (en) | Processor circuit | |
| JPH04275603A (en) | Programmable controller | |
| JPS63280333A (en) | Microprogram controller | |
| JPH04245332A (en) | Data processor | |
| JP2853458B2 (en) | Instruction string switching method and arithmetic processor using the same | |
| JPS61272829A (en) | Microprogram controller | |
| JPH01286034A (en) | Information processor | |
| JPS6019018B2 (en) | data processing system | |
| JPH03222043A (en) | Micro processor and its program development device | |
| JP2000353098A (en) | Interrupt control circuit | |
| JPS63159935A (en) | data processing equipment | |
| JPH05143321A (en) | Performance adjusting circuit | |
| JPH09128237A (en) | Programmable controller | |
| JPH0336605A (en) | Pulse input device | |
| JPH0588914A (en) | Method and device for processor control |