JPH0192834A - Microprogram controller - Google Patents

Microprogram controller

Info

Publication number
JPH0192834A
JPH0192834A JP17380487A JP17380487A JPH0192834A JP H0192834 A JPH0192834 A JP H0192834A JP 17380487 A JP17380487 A JP 17380487A JP 17380487 A JP17380487 A JP 17380487A JP H0192834 A JPH0192834 A JP H0192834A
Authority
JP
Japan
Prior art keywords
microinstruction
flop
software instruction
circuit
output
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
JP17380487A
Other languages
Japanese (ja)
Inventor
Shinji Oga
大賀 伸二
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP17380487A priority Critical patent/JPH0192834A/en
Publication of JPH0192834A publication Critical patent/JPH0192834A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To attain the fine adjustment of a software instruction executing time by adding a circuit for detecting the end of a software instruction, a flop flop (FF) for invalidating the suppression of microinstruction execution and an AND circuit. CONSTITUTION:The instruction end detecting circuit 5, the FF 6, the AND circuit 7, and signal lines connected to the circuits 5, 7 are added. When the output of the circuit 5 displays the end of the software instruction, the FF 6 is set up and then reset by a 2nd microinstruction. When the FF 6 is in the set state, a suppression signal is validated, and in case of its reset state, the suppression signal is invalidated. Consequently, the execution can be adjusted at every software instruction.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はマイクロプログラム制御装置に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a microprogram controller.

〔従来の技術〕[Conventional technology]

一般に、情報処理装置は1機種当シ複数のモデルが設定
されるが、モデル間の差を設定する1手段としてソフト
ウェア命令の実行時間に差を持たせることがある。即ち
、上位モデルでは高速でソフトウェア命令を処理し下位
モデルでは低速でソフトウェア命令を処理する。
Generally, a plurality of models are set for each type of information processing apparatus, and one means of setting differences between models is to provide a difference in the execution time of software instructions. That is, the upper model processes software instructions at high speed, and the lower model processes software instructions at low speed.

従来からモデル毎のソフトウェア命令の実行時間を設定
するいくつかの方法が知られている。
Several methods have been known for setting the execution time of software instructions for each model.

その1つは、あるソフトウェア命令の終了と次のソフト
ウェア命令の開始との間に機能的に意味を持たないマイ
クロ命令、即ち、ダミーステップを挿入し、その数をモ
デル毎に変えることによりモデル毎のソフトウェア命令
の実行時間を設定する方法である。更にもう1つは、ク
ロック毎に歩進するカウンタとマイクロ命令によって設
定可能な調速用レジスタを持ち、前記カウンタと前記調
速用レジスタとを比較し、ある条件が成立した場合にソ
フトウェアを処理するマイクロ命令の実行を抑止する手
段を有し、モデル毎に前記調速用レジスタの値を変える
ことによシモデル毎のソフトウェア命令の実行時間を設
定する方法である。
One method is to insert microinstructions that have no functional meaning between the end of one software instruction and the start of the next software instruction, that is, dummy steps, and change the number of dummy steps for each model. This is a method of setting the execution time of software instructions. Furthermore, it has a counter that increments every clock and a speed regulating register that can be set by a microinstruction, compares the counter and the speed regulating register, and executes software processing when a certain condition is met. In this method, the execution time of software instructions for each model is set by changing the value of the speed regulating register for each model.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の方法では1機能的に意味を持たないマイ
クロ命令の挿入、または、マイクロ命令実行の抑止がソ
フトウェア命令と無関係に設定されるために、ソフトウ
ェア命令毎に実行時間の調整ができないという欠点があ
った。
The conventional method described above has one drawback: it is not possible to adjust the execution time for each software instruction because microinstructions that have no functional meaning are inserted or the inhibition of microinstruction execution is set independently of software instructions. was there.

〔問題点を解決するだめの手段〕[Failure to solve the problem]

本発明によるマイクロプログラム制御装置は。 A microprogram control device according to the present invention.

マイクロ命令を格納するマイクロ命令レジスタと。A microinstruction register that stores microinstructions.

クロック毎に歩進するカウンタと、第1のマイクロ命令
によって任意の値を設定可能な調速レジスタと、前記カ
ウンタの値と前記調速レジスタの値とを比較し2両値が
所定の関係を満足した場合にマイクロ命令実行の抑止を
指示する抑止信号を発生する比較回路と、ソフトウェア
命令の終了を検出する検出回路と、前記検出回路の出力
がソフトウェア命令の終了を表示する場合にセットされ
A counter that increments every clock, a speed regulating register that can be set to an arbitrary value by a first microinstruction, and comparing the value of the counter and the value of the speed regulating register so that the two values have a predetermined relationship. a comparison circuit that generates an inhibition signal that instructs to inhibit execution of the microinstruction when the condition is satisfied; a detection circuit that detects the end of the software instruction; and a detection circuit that is set when the output of the detection circuit indicates the end of the software instruction.

かつ、第2のマイクロ命令によってリセットされるフリ
ツノフロップと、前記フリツノフロップがセット状態の
場合には前記抑止信号を有効にし。
Further, when the fritsuno flop reset by the second microinstruction and the fritsuno flop are in a set state, the inhibit signal is enabled.

前記フリツノフロップがリセット状態の場合には前記抑
止信号を無効にする回路とを有している。
and a circuit for disabling the inhibit signal when the fritsuno flop is in a reset state.

〔実施例〕〔Example〕

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

説明の都合上、まず、第2図を参照して従来技術を説明
する。
For convenience of explanation, the prior art will first be explained with reference to FIG.

ここで、カウンタ2及び調速レジスタ3は共に3ビツト
の大きさを持つと仮定する。更に、1マイクロ命令の実
行は1クロツクで完了するとし。
Here, it is assumed that both the counter 2 and the regulating register 3 have a size of 3 bits. Furthermore, assume that execution of one microinstruction is completed in one clock.

1ソフトウエア命令の処理は、複数のマイクロ命令の実
行によって達成されるとする。
It is assumed that processing of one software instruction is achieved by executing multiple microinstructions.

マイクロ命令レジスタ1にはクロック100が供給され
、クロック毎にマイクロ命令がロードされる。カウンタ
2にはクロック100が供給されており、カウンタ2は
クロック毎に歩進し、その値はO→1→2→・・・→7
→0→1→2→・・・と8クロツクの周期で変化する。
A clock 100 is supplied to the microinstruction register 1, and microinstructions are loaded every clock. A clock 100 is supplied to the counter 2, and the counter 2 increments every clock, and the value is O→1→2→...→7
→0→1→2→... It changes in a cycle of 8 clocks.

調速レジスタ3には情報処理システムの初期設定時にマ
イクロ命令によってモデルに固有の値がロードされる。
A value unique to the model is loaded into the speed regulating register 3 by a microinstruction at the time of initial setting of the information processing system.

カウンタ2の出力22及び調速レジスタ3の出力23は
共に比較回路4に供給される。比較回路4はカウンタ2
の出力22の値と調速レジスタ3の出力23の値とを比
較し、1周期8クロツクのうち、調速レジスタ3の出力
23の値が示すクロックの数だけ1″を出力する。調速
レジスタ3の出力23の値が00場合は比較回路4の出
力24は0”となる。比較回路4は比較的単純な構成で
実現可能であるので1回路図及び説明は省略する。
The output 22 of the counter 2 and the output 23 of the speed regulating register 3 are both supplied to the comparison circuit 4. Comparison circuit 4 is counter 2
The value of the output 22 of the speed governor register 3 is compared with the value of the output 23 of the speed governor register 3, and 1'' is output for the number of clocks indicated by the value of the output 23 of the speed governor register 3 out of 8 clocks in one cycle. When the value of the output 23 of the register 3 is 00, the output 24 of the comparator circuit 4 becomes 0''. Since the comparison circuit 4 can be realized with a relatively simple configuration, a circuit diagram and explanation thereof will be omitted.

ソフトウェア命令の処理を指示するマイクロ命令レジス
タ1の出力21.比較回路4の出力24及びクロック1
00がソフトウェア命令処理部10に供給されている。
Output 21 of microinstruction register 1 that directs the processing of software instructions. Output 24 of comparison circuit 4 and clock 1
00 is supplied to the software instruction processing unit 10.

比較回路4の出力24が0”の場合には、マイクロ命令
レジスタ1の出力21の内容、即ち、ソフトウェア命令
処理マイクロ命令がソフトウェア命令処理部10で実行
され、比較回路4の出力24が11”の場合には、ソフ
トウェア命令処理マイクロ命令のソフトウェア命令処理
部10での実行が抑止される。
When the output 24 of the comparison circuit 4 is 0'', the contents of the output 21 of the microinstruction register 1, that is, the software instruction processing microinstruction is executed by the software instruction processing unit 10, and the output 24 of the comparison circuit 4 is 11''. In this case, execution of the software instruction processing microinstruction by the software instruction processing unit 10 is inhibited.

調速レジスタ3に上位モデルでは0を、下位モデルでは
2をロードすると仮定した場合には、上位モデルではソ
フトウェア命令処理マイクロ命令は抑止されずクロック
毎に実行され、下位モデルではカウンタ2の1周期8ク
ロツクのうち2クロック抑止信号が発生するので、2/
8の時間はソフトウェア命令処理マイクロ命令は実行さ
れないことになる。従りて、下位モデルのソフトウェア
命令の平均実行時間は上位モデルの876倍となる。
Assuming that the upper model loads 0 into the speed control register 3 and the lower model loads 2, the software instruction processing microinstruction is not inhibited in the higher model and is executed every clock, and the lower model executes one cycle of counter 2. Since 2 clock inhibition signals are generated out of 8 clocks, 2/
The software instruction processing microinstruction will not be executed during the time 8. Therefore, the average execution time of software instructions in the lower model is 876 times that of the upper model.

次に2本発明の一実施例について第1図を参照して説明
する。
Next, an embodiment of the present invention will be described with reference to FIG.

本実施例では、第2図に示す従来技術の例に対し、第1
図の点線で囲まれた命令終了検出回路5゜フリップフロ
ップ6,772 5、6.7に接続される信号線を追加した。点線外の回
路は,従来技術と同じであるので2点線内の部分につい
て説明を加える。
In this embodiment, in contrast to the prior art example shown in FIG.
A signal line connected to the instruction end detection circuit 5° flip-flop 6,7725, 6.7 surrounded by the dotted line in the figure was added. Since the circuits outside the dotted lines are the same as those in the prior art, explanations will be added for the parts inside the two-dotted lines.

フリップフロップ6のセット端子には,ソフトウェア命
令の処理終了を検出する命令終了検出回路5の出力25
が供給され,フリップフロップ6のリセット端子には,
マイクロ命令レジスタlの出力31が供給されている。
The set terminal of the flip-flop 6 is connected to the output 25 of the instruction completion detection circuit 5 that detects the completion of processing of software instructions.
is supplied to the reset terminal of flip-flop 6,
The output 31 of microinstruction register l is supplied.

即ち,フリップフロップ6は,ソフトウェア命令の処理
終了時に′1”にセットされ,マイクロ命令レジスタ1
の出力31上に特定のマイクロ命令がソフトウェア命令
処理中に出現した場合に10′にリセットされる。
That is, the flip-flop 6 is set to ``1'' when the processing of the software instruction is completed, and the microinstruction register 1 is set to ``1''.
is reset to 10' if a particular microinstruction appears on the output 31 of the software instruction during software instruction processing.

アンド回路7の一方の入力には,7リツグフロツf6の
出力26が供給され,他方の入力には。
One input of the AND circuit 7 is supplied with the output 26 of the 7-rig float f6, and the other input is supplied with the output 26 of the 7-rig float f6.

比較回路4の出力24が供給されている。従って。The output 24 of the comparator circuit 4 is supplied. Therefore.

比較回路4の出力24が0”の場合には,アンド回路7
の出力27はフリップフロップ6の出力26の値に関係
なく”0”となり、比較回路4の出力24が1”の場合
には,アンド回路7の出力27は7リツプフロツプ6の
出力26が1″のときには61”となシ,フリッゾフロ
ッゾ6の出力が0”のときには0″となる。アンド回路
7の出力27はソフトウェア命令処理部lOに供給され
ている。アンド回路7の出力27が0″の場合には,マ
イクロ命令レジスタ1の出力21の内容,即ち,ソフト
ウェア命令処理マイクロ命令がソフトウェア命令処理部
10で実行され,アンド回路7の出力27が1”の場合
には,ソフトウェア命令処理マイクロ命令のソフトウェ
ア命令処理部10での実行が抑止される。補足説明を加
えると,フリップフロップ6の値が1″の場合には調速
レジスタ3に設定された値の分だけソフトウェア命令処
理マイクロ命令の実行が抑止され,フリップフロップ6
の値が0″の場合には前記調速レジスタ3によるソフト
ウェア命令処理マイクロ命令の実行抑止は無効となる。
When the output 24 of the comparison circuit 4 is 0'', the AND circuit 7
The output 27 of the AND circuit 7 becomes "0" regardless of the value of the output 26 of the flip-flop 6, and when the output 24 of the comparator circuit 4 is "1", the output 27 of the AND circuit 7 becomes "0" regardless of the value of the output 26 of the flip-flop 6. When the output of the frizzo flop 6 is 0'', the output is 0''.The output 27 of the AND circuit 7 is supplied to the software instruction processing unit IO.The output 27 of the AND circuit 7 is 0'' In this case, if the contents of the output 21 of the microinstruction register 1, that is, the software instruction processing microinstruction is executed by the software instruction processing unit 10, and the output 27 of the AND circuit 7 is 1'', the software instruction processing microinstruction is Execution in the software instruction processing unit 10 is suppressed.Adding a supplementary explanation, when the value of the flip-flop 6 is 1'', the software instruction processing microinstruction is inhibited by the value set in the speed regulating register 3. Execution is inhibited and flip-flop 6
When the value of is 0'', the inhibition of execution of the software instruction processing microinstruction by the speed regulating register 3 is disabled.

本実施例ではフリップフロップ60セツトは命令終了検
出回路5の出力25のみとしたが,この出力25または
特定のマイクロ命令によってセクトできるようにしても
よい。また、命令終了検出回路5はソフトウェア命令の
終了ではなく,ソフトウェア命令の開始を検出するよう
にしてもよい。
In this embodiment, only the output 25 of the instruction end detection circuit 5 is used as the flip-flop 60 set, but it may be possible to select by this output 25 or by a specific microinstruction. Further, the instruction end detection circuit 5 may detect the start of a software instruction instead of the end of a software instruction.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は,従来技術に対してソフト
ウェア命令終了を検出する回路,マイクロ命令実行抑止
を無効化するための7リツグ70ッゾ,及びアンド回路
を追加することによシ,ソフトウェア命令実行時間の微
調整を行うことができるという効果がある。
As explained above, the present invention can improve software by adding a circuit for detecting the end of a software instruction, a 7 rig for disabling microinstruction execution inhibition, and an AND circuit to the prior art. This has the effect that the instruction execution time can be finely adjusted.

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

第1図は本発明の一実施例によるマイクロプログラム制
御装置の構成を示す!ロン2図,第2図は従来のマイク
ロプログラム制御装置の構成を示すブロック図である。 1・・・マイクロ命令レジスタ、2・・・カウンタ、3
・・・調速レジスタ、4・・・比較回路,5・・・命令
終了検出回路,6・・・フリップフロップ,7・・・ア
ンド回路。 10・・・ソフトウェア命令処理部,21〜27.31
及び100・・・接続線。
FIG. 1 shows the configuration of a microprogram control device according to an embodiment of the present invention! FIG. 2 is a block diagram showing the configuration of a conventional microprogram control device. 1... Microinstruction register, 2... Counter, 3
. . . Speed control register, 4. Comparison circuit, 5. Instruction end detection circuit, 6. Flip-flop, 7. AND circuit. 10...Software instruction processing section, 21 to 27.31
and 100... connection line.

Claims (1)

【特許請求の範囲】[Claims] 1、複数個のマイクロ命令の実行によりソフトウェア命
令を処理する情報処理システムに於いて、マイクロ命令
を格納するマイクロ命令レジスタと、クロック毎に歩進
するカウンタと、第1のマイクロ命令によって任意の値
を設定可能な調速レジスタと、前記カウンタの値と前記
調速レジスタの値とを比較し、両値が所定の関係を満足
した場合にマイクロ命令実行の抑止を指示する抑止信号
を発生する比較回路と、ソフトウェア命令の終了を検出
する検出回路と、前記検出回路の出力がソフトウェア命
令の終了を表示する場合にセットされ、かつ、第2のマ
イクロ命令によってリセットされるフリップフロップと
、前記フリップフロップがセット状態の場合には前記抑
止信号を有効にし、前記フリップフロップがリセット状
態の場合には前記抑止信号を無効にする回路とを有し、
前記調速レジスタ及び前記フリップフロップの値によっ
てマイクロ命令の実行を抑止することにより、ソフトウ
ェア命令の実行時間を制御することを特徴とするマイク
ロプログラム制御装置。
1. In an information processing system that processes software instructions by executing multiple microinstructions, there is a microinstruction register that stores the microinstructions, a counter that increments every clock, and an arbitrary value that is incremented by the first microinstruction. a speed control register that can be set; and a comparison that compares the value of the counter with the value of the speed control register, and generates a suppression signal that instructs to suppress execution of the microinstruction when both values satisfy a predetermined relationship. a detection circuit for detecting the end of a software instruction; a flip-flop that is set when the output of the detection circuit indicates the end of the software instruction and reset by a second microinstruction; and the flip-flop a circuit that enables the inhibition signal when the flip-flop is in a set state, and disables the inhibition signal when the flip-flop is in a reset state;
A microprogram control device, characterized in that the execution time of a software instruction is controlled by inhibiting the execution of the microinstruction based on the values of the speed regulating register and the flip-flop.
JP17380487A 1987-07-14 1987-07-14 Microprogram controller Pending JPH0192834A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17380487A JPH0192834A (en) 1987-07-14 1987-07-14 Microprogram controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17380487A JPH0192834A (en) 1987-07-14 1987-07-14 Microprogram controller

Publications (1)

Publication Number Publication Date
JPH0192834A true JPH0192834A (en) 1989-04-12

Family

ID=15967469

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17380487A Pending JPH0192834A (en) 1987-07-14 1987-07-14 Microprogram controller

Country Status (1)

Country Link
JP (1) JPH0192834A (en)

Similar Documents

Publication Publication Date Title
US3934131A (en) Output controller for initiating delayed or conditional commands via a general purpose computer
JPH0157824B2 (en)
JPH0192834A (en) Microprogram controller
JPH0573296A (en) Microcomputer
JPS62221729A (en) Microprogram control system
JP2778066B2 (en) Microprocessor with capture mechanism
JPH01140246A (en) Logic simulator
JPS62263537A (en) Microprogram control device with sleeping timer
JPH03266110A (en) Resetting device for computer
JPS5913767B2 (en) Data transfer control circuit
JPH01216626A (en) Pulse count circuit
WO1990013071A1 (en) Programmable controller
JPH1185684A (en) I/o access control circuit
JPS62197834A (en) Microprogram controller
JPH05120155A (en) Microprogram controller
JPH04107792A (en) Microcomputer
JPH0331940A (en) Microprogram controller
JPS6232509B2 (en)
JPS58168150A (en) Program counter controlling system with loop counter
JPH0644068A (en) Cpu rate controller
JPH0421212B2 (en)
JPH02222055A (en) Automatic inserting circuit for i/o recovery time
JPH04222045A (en) Processor
JPS63197245A (en) Microprogram controller
JPS61294552A (en) Control system for processing mode of information processing device