JPH0559449B2 - - Google Patents

Info

Publication number
JPH0559449B2
JPH0559449B2 JP61055553A JP5555386A JPH0559449B2 JP H0559449 B2 JPH0559449 B2 JP H0559449B2 JP 61055553 A JP61055553 A JP 61055553A JP 5555386 A JP5555386 A JP 5555386A JP H0559449 B2 JPH0559449 B2 JP H0559449B2
Authority
JP
Japan
Prior art keywords
microinstruction
control storage
reset
register
control
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 - Lifetime
Application number
JP61055553A
Other languages
Japanese (ja)
Other versions
JPS62221729A (en
Inventor
Hidenori Karibe
Shoichi Yoshida
Kazuko Shimakura
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 JP61055553A priority Critical patent/JPS62221729A/en
Publication of JPS62221729A publication Critical patent/JPS62221729A/en
Publication of JPH0559449B2 publication Critical patent/JPH0559449B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔概要〕 停止命令コードを0に設定してマイクロプロセ
ツサの暴走を防止するように構成したマイクロプ
ログラム制御方式において、オペレーシヨン・レ
ジスタの値が0でリセツト信号が到来した後、ク
ロツクと同期させてマイクロプログラムを実行さ
せるようにし、上位の回路装置から実行のための
信号を必要とすることなく暴走および停止後の動
作を可能とする。
Detailed Description of the Invention [Summary] In a microprogram control system configured to prevent a microprocessor from running out of control by setting a stop command code to 0, a reset signal arrives when the value of an operation register is 0. After that, the microprogram is executed in synchronization with the clock, and operation after runaway or stoppage is possible without requiring a signal for execution from a higher-order circuit device.

〔産業上の利用分野〕[Industrial application field]

本発明はマイクロプロセツサの暴走を防ぐため
の制御方式に関するもので、さらに詳しく言え
ば、マイクロプログラムのストツプマイクロ命令
(以下、停止命令という。)コードをオール0で構
成すると共に、コントロール・ストレツジの空き
領域をゼロクリアしておくことで暴走を停止させ
るようなマイクロプログラム制御方式において、
フリツプフロツプを用いてリセツト時にオペレー
シヨン・レジスタの内容を所定のものとし、上位
の回路装置から命令コードまたは信号を必要とす
ることなく停止後の動作を可能とする。
The present invention relates to a control system for preventing a microprocessor from running out of control.More specifically, the present invention relates to a control system for preventing a microprocessor from running out of control. In a microprogram control method that stops runaway by clearing the free space to zero,
A flip-flop is used to set the contents of the operation register to a predetermined value at the time of reset, allowing operation after stopping without requiring an instruction code or signal from a higher-order circuit device.

〔従来の技術〕[Conventional technology]

従来のマイクロプログラム制御方式は、第3図
に示すようにコントロール・ストレツジ・アドレ
ス・レジスタ1、コントロール・ストレツジ2お
よびオペレーシヨン・レジスタ3とを用い、コン
トロール・ストレツジ・アドレス・レジスタ1の
アドレスに相当するインストラクシヨンをコント
ロール・ストレツジ2より発生させ、オペレーシ
ヨン・レジスタ3を介してデコーダ4に実行のた
めのコードを供給する。マイクロプログラムの暴
走を防止するためコントロール・ストレツジ2の
空き領域は0とされ、また、停止命令コードが0
に設定されている。暴走時にこの領域にジヤンプ
すると、コントロール・ストレツジ2からオペレ
ーシヨン・レジスタ3にオール0の内容が読み出
され、従つて、レジスタ3のコード部は停止命令
コードと同一内容となつているためマイクロプロ
グラムの実行が行われない。このため、コントロ
ール・ストレツジ2の所定のアドレス例えば0ア
ドレスから命令を実行させるように、上位あるい
は外部の回路装置から命令あるいは信号を与えて
いる。然るに、暴走を防止するように構成したマ
イクロプロセツサにおいても、リセツト時には内
部の回路より信号を供給するだけでその動作を開
始できることが望ましい。
The conventional microprogram control method uses control storage address register 1, control storage 2, and operation register 3, as shown in FIG. The control storage 2 generates an instruction to execute the instruction, and supplies the code for execution to the decoder 4 via the operation register 3. To prevent the microprogram from running out of control, the free space in control storage 2 is set to 0, and the stop command code is set to 0.
is set to . If a jump is made to this area during a runaway, the contents of all 0s are read from control storage 2 to operation register 3. Therefore, the code section of register 3 has the same contents as the stop instruction code, so the microprogram is not executed. For this reason, a command or signal is given from a higher order or external circuit device so that the command is executed from a predetermined address of the control storage 2, for example, address 0. However, even in a microprocessor configured to prevent runaway, it is desirable to be able to start its operation simply by supplying a signal from an internal circuit at the time of reset.

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

この従来方式では、暴走時にコントロール・ス
トレツジ2の空き領域にジヤンプすると、自動的
に回路は停止状態になるが、コントロール・スト
レツジ・アドレス・レジスタ1およびオペレーシ
ヨン・レジスタ3にリセツト信号を供給しても、
停止命令コードと同一内容のためのマイクロプロ
グラムの実行が行なわれない。このため、上位あ
るいは外部の回路装置から命令あるいは信号を与
えて停止されているマイクロプログラムの実行を
再開させる必要があつた。
In this conventional method, if the circuit jumps to a free area in control storage 2 during a runaway, the circuit automatically stops, but a reset signal is supplied to control storage address register 1 and operation register 3. too,
A microprogram with the same content as the stop instruction code is not executed. For this reason, it has been necessary to resume execution of the suspended microprogram by applying a command or signal from a higher-level or external circuit device.

本発明はこのような点にかんがみて創作された
もので、リセツト信号を供給するのみでコントロ
ール・ストレツジ2における所定のアドレスの命
令から実行可能なマイクロプログラム制御方式を
提供することを目的としている。
The present invention was created in view of these points, and an object of the present invention is to provide a microprogram control system that can be executed from an instruction at a predetermined address in the control storage 2 by simply supplying a reset signal.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は、本発明の原理説明図であつて、暴走
時の停止状態からスタートする様子を示したもの
で、オペレーシヨンレジスタの内容をチエツクす
るステツプS100、リセツト信号の到来を判別す
るステツプS110、リセツト信号の到来でフリツ
プフロツプをセツトし、コントロール・ストレー
ジ・アドレス・レジスタを所定のアドレスにセツ
トするステツプS120、リセツト時のフリツプフ
ロツプ5のセツト出力及びオペレーシヨンレジス
タのデコーダ出力と、クロツクとのAND条件を
得るステツプS130、並びにステツプ130での
AND条件で出力されたクロツクに応答してコン
トロール・ストレージ・アドレス、レジスタの値
で指定されるコントロール・ストレージのマイク
ロ命令からマイクロ命令を実行するステツプ
S140とから成る。なお、これらの判別は、一般
的なAND/ORゲートにより達成される。
FIG. 1 is an explanatory diagram of the principle of the present invention, and shows how the system starts from a stopped state at the time of runaway, including step S100 for checking the contents of the operation register, and step S110 for determining the arrival of a reset signal. , step S120 of setting the flip-flop and setting the control storage address register to a predetermined address upon arrival of the reset signal, AND condition of the set output of the flip-flop 5 and the decoder output of the operation register at the time of reset, and the clock. Step S130 to obtain the
A step to execute a microinstruction from the control storage microinstruction specified by the control storage address and register value in response to the clock output in an AND condition.
Consists of S140. Note that these determinations are achieved using a general AND/OR gate.

〔作用〕[Effect]

ステツプS100において、オペレーシヨン・レ
ジスタの内容がチエツクされ、ステツプS110に
おいてリセツト信号が到来すると、ステツプ
S120において図示しないフリツプフロツプのセ
ツトが行われてストツプ・リリース・ビツト信号
が1となる。又、暴走で停止命令へセツトされた
オペレーシヨンレジスタの内容が出力される。コ
ントロール・ストレージ・アドレス・レジスタ
は、リセツト信号によつて所定のアドレスにセツ
トされる。
In step S100, the contents of the operation register are checked, and when a reset signal arrives in step S110, the process is started.
At S120, a flip-flop (not shown) is set and the stop release bit signal becomes 1. Also, the contents of the operation register set to the stop command due to runaway are output. The control storage address register is set to a predetermined address by a reset signal.

リセツト時のフリツプフロツプ5のセツト出力
及びオペレーシヨンレジスタのデコード出力と、
クロツク信号とのAND条件を満たすとき、クロ
ツク信号が出力される。
The set output of the flip-flop 5 and the decode output of the operation register at the time of reset,
When the AND condition with the clock signal is satisfied, the clock signal is output.

この出力されたクロツク信号でコントロール・
ストレージ・アドレス・レジスタの値をコントロ
ール・ストレージへ供給し、その値で指定される
コントロール・ストレージのマイクロ命令からマ
イクロ命令を実行する。
Control using this output clock signal.
The value of the storage address register is supplied to the control storage, and the microinstruction is executed from the microinstruction in the control storage specified by the value.

前述の停止命令へセツトされたオペレーシヨン
レジスタの内容のデコード、コントロール・スト
レージ・アドレス・レジスタの所定のアドレスへ
のセツト、デコード出力及びストツプ・リリー
ス・ビツト信号による前記クロツクの出力、そし
て該クロツクに応答してのコントロール・ストレ
ージ・アドレス・レジスタの値のコントロール・
ストレージへの供給により、前記オペレーシヨン
レジスタにセツトされた停止命令は、等価的に
NOP命令として実行されることになり、そして
コントロール・ストレージの所定のマイクロ命令
からの実行を行うことができるから、リセツト信
号を供給するのみで、コントロール・ストレージ
の所定のマイクロ命令からの実行が可能となる。
decoding the contents of the operation register set to the aforementioned stop command, setting the control storage address register to a predetermined address, outputting the clock with the decode output and stop release bit signal, and Control storage address register value in response
By supplying the storage, the stop instruction set in the operation register is equivalently
It will be executed as a NOP instruction, and it can be executed from a predetermined microinstruction in control storage, so it is possible to execute from a predetermined microinstruction in control storage just by supplying a reset signal. becomes.

〔実施例〕〔Example〕

第2図は本発明の実施例であつて、コントロー
ル・ストレツジ・アドレス・レジスタ1、コント
ロール・ストレツジ2およびオペレーシヨン・レ
ジスタ3を用い、コントロール・ストレツジ・ア
ドレス・レジスタ1にセツトされたアドレスに相
当するインストラクシヨンをコントロール・スト
レツジ2より発生させ、オペレーシヨン・レジス
タ3を介してデコーダ4に実行のためのコードを
供給する。また、コントロール・ストレツジ・ア
ドレス・レジスタ1は1つのアドレスを発生した
後、次のアドレスを発生するようにインクレメン
トされる。マイクロプログラムの暴走を防止する
ためコントロール・ストレツジ2の空き領域は0
にクリアされ、また、停止命令コードが0に設定
されている。暴走時にこの領域にジヤンプする
と、オペレーシヨン・レジスタ3に読み出される
内容はオール0であるため自動的に全ての回路が
停止状態になる。第2図に示す回路には、更に、
ストツプ・リリースビツトを生成するためのフリ
ツプフロツプ5と、ANDゲート6,8およびOR
ゲート7が示される。フリツプフロツプ5は、シ
ステムリセツトRESETが供給されるときセツト
されてストツプリリースビツトを発生する。
ANDゲート8は、オペレーシヨンレジスタ3の
内容がオール“0”で、ストツプリリースビツト
が発生された時に出力を発生する。この出力発生
はオペレーシヨンレジスタ3のオール“0”をデ
コーダ4でデコードした結果の出力がANDゲー
ト8へ“1”のOP信号が供給されるからである。
ORゲート7は、ANDゲート8の出力およびその
他の入力条件により出力を発生する。そして、
ANDゲート6は、ORゲート7が出力を発生した
後のクロツクをコントロール・ストレージ・アド
レス・レジスタ1に供給してマイクロプログラム
を実行する。即ち、この供給に先立つて、システ
ムリセツト信号RESETがコントロール・ストレ
ージ・アドレス・レジスタ1へ供給され、その内
容はオール0のアドレスへリセツトされている。
そのオール0のアドレスがコントロール・ストレ
ージ2へ供給されて該アドレスで指定されるコン
トロール・ストレージ2のアドレスに記憶されて
いるマイクロ命令がオペレーシヨン・レジスタ3
へセツトされ、そのマイクロ命令をデコーダ4で
デコードしてマイクロ命令の実行が開始される。
FIG. 2 shows an embodiment of the present invention in which control storage address register 1, control storage 2, and operation register 3 are used to create an address corresponding to the address set in control storage address register 1. The control storage 2 generates an instruction to execute the instruction, and supplies the code for execution to the decoder 4 via the operation register 3. Also, after the control storage address register 1 has generated one address, it is incremented to generate the next address. To prevent the microprogram from running out of control, the free space in control storage 2 is set to 0.
, and the stop command code is set to 0. If the circuit jumps to this area during a runaway, the contents read into the operation register 3 are all 0s, so all circuits are automatically stopped. The circuit shown in FIG. 2 further includes:
Flip-flop 5 and AND gates 6, 8 and OR for generating stop/release bits
Gate 7 is shown. Flip-flop 5 is set to generate a stop release bit when the system reset RESET is applied.
AND gate 8 generates an output when the contents of operation register 3 are all "0" and a stop release bit is generated. This output is generated because all "0"s in the operation register 3 are decoded by the decoder 4, and an OP signal of "1" is supplied to the AND gate 8.
OR gate 7 generates an output depending on the output of AND gate 8 and other input conditions. and,
The AND gate 6 supplies the clock after the output of the OR gate 7 to the control storage address register 1 to execute the microprogram. That is, prior to this supply, the system reset signal RESET is supplied to the control storage address register 1, and its contents have been reset to an all-0 address.
The all-0 address is supplied to the control storage 2, and the microinstruction stored at the address in the control storage 2 specified by the address is stored in the operation register 3.
The decoder 4 decodes the microinstruction and starts executing the microinstruction.

前述のところから明らかになるように、マイク
ロプログラムの暴走で、コントロール・ストレー
ジ・アドレス・レジスタ3へセツトされた停止命
令は、等価的にNOPマイクロ命令とされて実行
され、コントロール・ストレージ2の0アドレス
に記憶されているマイクロ命令からのマイクロ命
令の再開を生ぜしめる。即ち、マイクロプログラ
ムの暴走で停止命令とされたオペレーシヨン・レ
ジスタ3の内容をデコーダ4でデコードしてOP
信号を出力すると共に、リセツト信号によつてフ
リツプフロツプ5からストツプ・リリース・ビツ
ト信号が発生され、そのストツプ・リリース・ビ
ツト信号に応答してゲートされたクロツクで、リ
セツト信号によつてオール0とされたコントロー
ル・ストレージ・アドレス・レジスタ1のアドレ
ス(0アドレス)をコントロール・ストレージ2
へ供給することが、停止命令を等価的にNOPマ
イクロ命令として実行することになるし、又コン
トロール・ストレージ2の0アドレスへのジヤン
プともなる。
As is clear from the above, the stop instruction set in control storage address register 3 due to a runaway microprogram is equivalently executed as a NOP microinstruction, and the 0 in control storage 2 is executed. Causes microinstruction resumption from the microinstruction stored at address. That is, the contents of the operation register 3, which was issued as a stop command due to a runaway microprogram, are decoded by the decoder 4 and the OP is executed.
In addition to outputting the signal, a stop release bit signal is generated from the flip-flop 5 in response to the reset signal, and the clock gated in response to the stop release bit signal is set to all 0s by the reset signal. The address (0 address) of control storage address register 1 is set to control storage 2.
This would equivalently execute the stop instruction as a NOP microinstruction, and also result in a jump to the 0 address of control storage 2.

そのコントロール・ストレージ2の0アドレス
から読み出されて来たマイクロ命令の実行により
フリツプフロツプ5は、リセツトされる。
The flip-flop 5 is reset by executing the microinstruction read from the 0 address of the control storage 2.

なお、上記実施例においては、停止命令コード
を0とし、コントロール・ストレツジ2の空き領
域を0にクリアする例について説明したが他のビ
ツトパターン例えばオール1にするようにしても
よい。
In the above embodiment, an example was explained in which the stop command code is set to 0 and the free area of the control storage 2 is cleared to 0, but other bit patterns may be used, for example, all 1s.

〔発明の効果〕 以上述べてきたように本発明によれば、リセツ
ト信号を供給するのみでコントロール・ストレツ
ジにおける所定のアドレスの命令から実行可能な
マイクロプログラム制御方式を提供することがで
き、実用的に極めて有用である。
[Effects of the Invention] As described above, according to the present invention, it is possible to provide a microprogram control method that can be executed from an instruction at a predetermined address in the control storage simply by supplying a reset signal, which is practical. extremely useful.

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

第1図は本発明のマイクロプログラム制御方式
の原理説明図、第2図は本発明のマイクロプログ
ラム制御方式を実施するためのブロツク回路図、
第3図は従来例のブロツク回路図である。 第2図において、1はコントロール・ストレツ
ジ・アドレス・レジスタ、2はコントロール・ス
トレツジ、3はオペレーシヨン・レジスタ、4は
デコーダ、5はフリツプフロツプ、6,8は
ANDゲート、7はORゲートである。
FIG. 1 is a diagram explaining the principle of the microprogram control method of the present invention, and FIG. 2 is a block circuit diagram for implementing the microprogram control method of the present invention.
FIG. 3 is a block circuit diagram of a conventional example. In Figure 2, 1 is a control storage address register, 2 is a control storage, 3 is an operation register, 4 is a decoder, 5 is a flip-flop, and 6 and 8 are
AND gate, 7 is an OR gate.

Claims (1)

【特許請求の範囲】 1 マイクロ命令を格納するマイクロ命令格納域
及び空き領域を有するコントロール・ストレージ
2内の前記空き領域に、ストツプマイクロ命令の
命令コードと等しい情報を格納し、マイクロプロ
セツサの暴走時にオペレーシヨン・レジスタ3に
セツトされたマイクロ命令をデコーダ4でデコー
ダして為されるマイクロ命令の実行が空き領域を
アクセスしたときマイクロ命令の実行を停止する
マイクロプロセツサのためのマイクロプログラム
制御方式において、 マイクロプロセツサのリセツト信号によりセツ
トされてストツプ・リリース・ビツト信号を出力
し、マイクロプログラムの実行によりリセツトさ
れるフリツプフロツプ5と、 リセツト時の前記フリツプフロツプ5からのス
トツプ・リリース・ビツト信号、及びリセツト時
の前記オペレーシヨン・レジスタ3の内容をデコ
ードした前記デコーダ4のデコード出力に応答し
てクロツク信号をゲートするクロツクゲート回路
8,7,6と、 リセツト信号に応答して所定のアドレスヘリセ
ツトされるコントロール・ストレージ・アドレ
ス・レジスタ1とを備え、 前記クロツクゲート回路8,7,6から出力さ
れたクロツク信号に応答して前記コントロール・
ストレージ・アドレス・レジスタ1の所定のアド
レスを前記コントロールストレージ2へ供給して
読み出されるマイクロ命令からマイクロ命令の実
行を再開することを特徴とするマイクロプログラ
ム制御方式。
[Scope of Claims] 1. Information equivalent to the instruction code of the stop microinstruction is stored in the free area in the control storage 2, which has a microinstruction storage area for storing microinstructions and a free area, and A microprogram control for a microprocessor that stops the execution of a microinstruction when a free area is accessed by decoding the microinstruction set in the operation register 3 at the time of a runaway. In the method, a flip-flop 5 is set by a reset signal of a microprocessor and outputs a stop-release bit signal, and is reset by execution of a microprogram; a stop-release bit signal from the flip-flop 5 at the time of reset; and clock gate circuits 8, 7, and 6 that gate clock signals in response to the decoded output of the decoder 4 that decodes the contents of the operation register 3 at the time of reset, and clock gate circuits 8, 7, and 6 that gate the clock signal in response to the reset signal. and a control storage address register 1 which is controlled by the clock gate circuits 8, 7, and 6, in response to the clock signals output from the clock gate circuits 8, 7, and 6.
A microprogram control system characterized by supplying a predetermined address of a storage address register 1 to the control storage 2 and restarting execution of a microinstruction from a read microinstruction.
JP61055553A 1986-03-13 1986-03-13 Microprogram control system Granted JPS62221729A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61055553A JPS62221729A (en) 1986-03-13 1986-03-13 Microprogram control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61055553A JPS62221729A (en) 1986-03-13 1986-03-13 Microprogram control system

Publications (2)

Publication Number Publication Date
JPS62221729A JPS62221729A (en) 1987-09-29
JPH0559449B2 true JPH0559449B2 (en) 1993-08-31

Family

ID=13001890

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61055553A Granted JPS62221729A (en) 1986-03-13 1986-03-13 Microprogram control system

Country Status (1)

Country Link
JP (1) JPS62221729A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5243705A (en) * 1989-12-11 1993-09-07 Mitsubishi Denki K.K. System for rapid return of exceptional processing during sequence operation instruction execution
JP2677719B2 (en) * 1991-05-08 1997-11-17 富士通株式会社 Information processing device
JP4810108B2 (en) * 2005-03-04 2011-11-09 株式会社東芝 IC card and control method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5417641A (en) * 1977-07-08 1979-02-09 Nec Corp Microprogram controller
JPS5482944A (en) * 1977-12-15 1979-07-02 Toshiba Corp Initializing system for microprogram
JPS6039243A (en) * 1983-08-12 1985-03-01 Nippon Telegr & Teleph Corp <Ntt> Fault detecting system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5417641A (en) * 1977-07-08 1979-02-09 Nec Corp Microprogram controller
JPS5482944A (en) * 1977-12-15 1979-07-02 Toshiba Corp Initializing system for microprogram
JPS6039243A (en) * 1983-08-12 1985-03-01 Nippon Telegr & Teleph Corp <Ntt> Fault detecting system

Also Published As

Publication number Publication date
JPS62221729A (en) 1987-09-29

Similar Documents

Publication Publication Date Title
US4747045A (en) Information processing apparatus having an instruction prefetch circuit
JPS63307535A (en) Pipeline control circuit
JPH0559449B2 (en)
JPS63245523A (en) Microprogram processor
JPS59739A (en) Time assurance system in microprogram processor
JPH05216721A (en) Electronic computer
JPS63280333A (en) Microprogram controller
JPH0573296A (en) Microcomputer
JPS60124746A (en) Data processing unit
JPS6070550A (en) Disc device
JPS6350725B2 (en)
JPH0411895B2 (en)
JPH05257751A (en) Microcomputer
JPS6353643A (en) Instruction control device
JPH087679B2 (en) Microprocessor
JP2541940B2 (en) Micro program controller
JPS62243032A (en) Information processor
JPH0223457A (en) Input/output control circuit
JPS61240341A (en) Microprogram controller
JPS61131125A (en) Information processing unit
JPS60196849A (en) Method for detecting runaway of microprocessor
JPS60193046A (en) Detecting system for instruction exception
JPS60230246A (en) Data processor
JPS60105048A (en) Microprogram control system
JPS6093555A (en) Microprogram controller