JPH07160540A - Runaway detector - Google Patents

Runaway detector

Info

Publication number
JPH07160540A
JPH07160540A JP5305375A JP30537593A JPH07160540A JP H07160540 A JPH07160540 A JP H07160540A JP 5305375 A JP5305375 A JP 5305375A JP 30537593 A JP30537593 A JP 30537593A JP H07160540 A JPH07160540 A JP H07160540A
Authority
JP
Japan
Prior art keywords
flip
flop
control command
input
shift register
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
JP5305375A
Other languages
Japanese (ja)
Inventor
Kotaro Suzuki
康太郎 鈴木
Fumiko Tanizaki
文子 谷崎
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP5305375A priority Critical patent/JPH07160540A/en
Publication of JPH07160540A publication Critical patent/JPH07160540A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To make a pattern area narrow and small and to reduce the load of a hardware by performing the runaway detection of an integrated circuit by using a software without using any timer. CONSTITUTION:This device is provided with a switching circuit 1 for switching, outputting the control instruction inputs of positive and negative values, shift register 2 composed of two bits for storing and transferring a control instruction input from the switching circuit 1 while shifting its digits one by one, and data shift means 3 for performing the data shift of the shift register 2 even when the control instruction input of the positive or negative value is generated at the shift register 2, and a runaway detecting means 4 judges the abnormality of the circuit corresponding to whether the data at the first bit and the second bit of the shift register 2 are matched or not.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、タイマを使用せずに
半導体集積回路の暴走検出を行う暴走検出装置に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a runaway detecting device for detecting runaway of a semiconductor integrated circuit without using a timer.

【0002】[0002]

【従来の技術】図14は従来の暴走検出手段としてのウ
オッチドッグタイマを内蔵したマイクロコンピュータの
ブロック図であり、図において、101はマイクロコン
ピュータのCPU内部を表わしている。102はプログ
ラムカウンタであり、後述するROM109の番地を示
す働きをする。
2. Description of the Related Art FIG. 14 is a block diagram of a conventional microcomputer incorporating a watchdog timer as a runaway detecting means. In the figure, 101 indicates the inside of the CPU of the microcomputer. Reference numeral 102 denotes a program counter, which serves to indicate the address of the ROM 109 described later.

【0003】103はスタックレジスタであり、サブル
ーチンコール命令や割り込み処理時に、プログラムカウ
ンタ102の値を退避するレジスタ、104は命令制御
回路であり、ROM109から読み込んだ命令コードに
従って、CPU101の各機能ブロックを制御する働き
をする。
Reference numeral 103 denotes a stack register, a register for saving the value of the program counter 102 at the time of processing a subroutine call instruction or interrupt, and 104 an instruction control circuit for each functional block of the CPU 101 according to the instruction code read from the ROM 109. It works to control.

【0004】105はアキュームレータであり、演算,
転送,入出力等のデータ処理を行うレジスタ、106は
演算論理ユニットであり、命令制御回路104の制御に
従ってデータの演算処理を行う。107はアドレスバス
であり、プログラムカウンタ102の内容を周辺回路に
出力する働きをする。
Reference numeral 105 denotes an accumulator, which calculates,
A register for performing data processing such as transfer and input / output, and 106 is an arithmetic logic unit, which performs arithmetic processing of data under the control of the instruction control circuit 104. An address bus 107 serves to output the contents of the program counter 102 to peripheral circuits.

【0005】108はデータバスであり、ROM109
からの命令コードをCPU1に伝える働きをする。10
9はROMであり、マイクロコンピュータはROM10
9に書込まれた命令コード(プログラム)に従って動作
する。118は暴走検出手段の一つとしてのウオッチド
ッグタイマである。
Reference numeral 108 denotes a data bus, which is the ROM 109.
From the instruction code to the CPU 1. 10
9 is a ROM, and the microcomputer is a ROM 10.
It operates according to the instruction code (program) written in 9. Reference numeral 118 is a watchdog timer as one of the runaway detecting means.

【0006】119は8ビットのアップカウンタであ
り、信号線zを介して入力されるクロック信号によって
アップカウントする。120はリセット回路であり、信
号線yを介して入力されるアップカウンタ119のオー
バーフロー信号によってCPU101をリセットする信
号を信号線qを介して出力する。
Reference numeral 119 is an 8-bit up counter which counts up by a clock signal input via the signal line z. Reference numeral 120 denotes a reset circuit, which outputs a signal for resetting the CPU 101 by the overflow signal of the up counter 119 input through the signal line y through the signal line q.

【0007】次に動作について説明する。ウオッチドッ
グタイマ118はCPU101の暴走を検出し、リセッ
トをかける働きをする。アップカウンタ119には初期
値として“00H”が設定されており、マイクロコンピ
ュータのリセットを解除すると、信号線zを介して入力
されるクロック信号に従ってアップカウントする。
Next, the operation will be described. The watchdog timer 118 detects a runaway of the CPU 101 and resets it. The initial value "00H" is set in the up counter 119, and when the reset of the microcomputer is released, the up counter 119 counts up according to the clock signal input via the signal line z.

【0008】アップカウンタ119がアップカウントを
続けることによってオーバーフローが発生すると、リセ
ット回路120に対して信号線yを介してオーバーフロ
ー信号を出力し、リセット回路120は信号線qを介し
てCPU101をリセットする信号を発生する。
When the up counter 119 continues to count up and overflows, an overflow signal is output to the reset circuit 120 via the signal line y, and the reset circuit 120 resets the CPU 101 via the signal line q. Generate a signal.

【0009】命令制御回路104がウオッチドッグタイ
マ118を初期化する命令を実行すると、信号線xを介
してアップカウンタ119をクリアする信号を発生し、
アップカウンタ119が“00H”に初期化される。
When the instruction control circuit 104 executes an instruction to initialize the watchdog timer 118, a signal for clearing the up counter 119 is generated via the signal line x,
The up counter 119 is initialized to "00H".

【0010】従来のマイクロコンピュータにおいては、
ウオッチドッグタイマ118を初期化する命令をプログ
ラム中にある一定の間隔、すなわち正常動作時にはアッ
プカウンタ119のオーバーフローが発生しないように
配置することによって、CPU101の暴走を監視して
いた。
In the conventional microcomputer,
The runaway of the CPU 101 is monitored by arranging an instruction for initializing the watchdog timer 118 at a certain interval in the program, that is, arranging so that the up counter 119 does not overflow during normal operation.

【0011】[0011]

【発明が解決しようとする課題】従来のウオッチドッグ
タイマは以上のように構成されているので、ウオッチド
ッグタイマ用のアップカウンタ119が暴走検出のため
に必要であり、アップカウンタ119の存在によってマ
イクロコンピュータ等の集積回路のパターン面積が非常
に大きくなってしまうほか、1つのタイマがウオッチド
ッグタイマ専用に使用されて、他の動作に使用できない
ため、不経済であるなどの問題点があった。
Since the conventional watchdog timer is constructed as described above, the upcounter 119 for the watchdog timer is necessary for detecting the runaway, and the presence of the upcounter 119 causes the microcounter 119 to operate. There is a problem that the pattern area of an integrated circuit of a computer or the like becomes very large and one timer is dedicated to a watchdog timer and cannot be used for other operations, which is uneconomical.

【0012】請求項1の発明は上記のような問題点を解
消するためになされたものであり、タイマを用いずにソ
フトウエアによって集積回路の暴走検出を行うことによ
り、パターン面積の狭小化が図れるとともに、ハードウ
エアの負担を軽減することができる暴走検出装置を得る
ことを目的とする。
The invention of claim 1 has been made to solve the above-mentioned problems, and the pattern area can be narrowed by detecting the runaway of the integrated circuit by software without using a timer. An object of the present invention is to obtain a runaway detection device that can be implemented and can reduce the load on hardware.

【0013】請求項2の発明はJ−Kフリップフロップ
およびDフリップフロップを用いることでパターン面積
を少なくし、これにより所期の暴走検出を経済的に実施
できる暴走検出装置を得ることを目的とする。
It is an object of the invention of claim 2 to obtain a runaway detecting device which can reduce the pattern area by using the JK flip-flops and the D flip-flops and thereby economically perform the desired runaway detection. To do.

【0014】請求項3の発明は3つの制御命令入力を正
値,負値いずれにするかを組み合せ条件にて決定するこ
とで、シフトレジスタのビット状態に応じて暴走検出を
実施できる暴走検出装置を得ることを目的とする。
According to a third aspect of the present invention, a runaway detection device capable of performing a runaway detection according to a bit state of a shift register by determining whether a positive value or a negative value of three control command inputs is determined according to a combination condition. Aim to get.

【0015】請求項4の発明は3組のJ−Kフリップフ
ロップおよびDフリップフロップを用いて、パターン面
積を少なくするとともに、所期の暴走検出を確実かつ経
済的に実施できる暴走検出装置を得ることを目的とす
る。
According to a fourth aspect of the present invention, by using three sets of JK flip-flops and D flip-flops, it is possible to obtain a runaway detecting device which can reduce the pattern area and can surely and economically perform the desired runaway detection. The purpose is to

【0016】請求項5の発明は4つ以上の制御命令入力
を正値,負値いずれにするかを組み合せ条件にて決定す
ることで、シフトレジスタのビット状態に応じて暴走判
定を行うことができる暴走検出装置を得ることを目的と
する。
According to a fifth aspect of the present invention, by determining whether the positive or negative value of four or more control command inputs is a positive value or a negative value according to a combination condition, a runaway judgment can be performed according to the bit state of the shift register. The purpose is to obtain a possible runaway detection device.

【0017】請求項6の発明は4組以上のJ−Kフリッ
プフロップおよびDフリップフロップを用いて暴走検出
を行うことができる暴走検出装置を得ることを目的とす
る。
It is an object of the present invention to provide a runaway detecting device capable of performing a runaway detection using four or more sets of JK flip-flops and D flip-flops.

【0018】請求項7の発明は特別の制御命令入力を用
いずに、集積回路で使用される通常の命令を用いて、つ
まり命令数を増やすことなく、シフトレジスタを制御
し、これにより所期の暴走検出を行うことができる暴走
検出装置を得ることを目的とする。
According to the invention of claim 7, the shift register is controlled without using a special control command input and with a normal command used in the integrated circuit, that is, without increasing the number of commands, whereby the desired control is performed. It is an object of the present invention to obtain a runaway detecting device capable of detecting runaway of.

【0019】[0019]

【課題を解決するための手段】請求項1の発明に係る暴
走検出装置は、切換回路からの正値および負値に応じた
制御命令入力を1桁ずつずらしながら記憶,転送する2
ビット構成のシフトレジスタと、該シフトレジスタに正
値および負値の制御命令入力のいずれが発生してもデー
タシフトを行わせるデータシフト手段を設けて、上記シ
フトレジスタの1ビット目と2ビット目のデータが合致
するか否かにもとづいて回路異常を判断させるようにし
たものである。
According to another aspect of the present invention, there is provided a runaway detecting device which stores and transfers a control command input corresponding to a positive value and a negative value from a switching circuit while shifting the input by one digit.
A shift register having a bit structure and data shift means for performing data shift regardless of whether a positive or negative control command input occurs in the shift register are provided, and the first bit and the second bit of the shift register are provided. The circuit abnormality is judged based on whether or not the data of (1) match.

【0020】請求項2の発明に係る暴走検出装置は、正
値および負値の制御命令入力をクロックパルスとして持
ち、これの分周信号およびこの分周信号の反転信号を出
力する第1および第2のJ−Kフリップフロップと、上
記2つの分周信号を入力とする第1のイクスクルシブノ
アゲートおよび上記第1のJ−Kフリップフロップの上
記反転信号,上記第2のJ−Kフリップフロップの分周
信号を入力とする第2のイクスクルシブノアゲートの各
出力を一時保持するとともに、上記正値および負値の制
御命令入力をクロックパルスとしてデータシフトする第
1および第2のDフリップフロップとを設けたものであ
る。
According to another aspect of the present invention, there is provided a runaway detecting device having first and second control command inputs of positive and negative values as clock pulses, and outputs a divided signal thereof and an inverted signal of the divided signal. 2 J-K flip-flops, a first exclusive NOR gate that receives the two divided signals, the inverted signal of the first J-K flip-flop, and the second J-K flip-flop First and second D flip-flops for temporarily holding respective outputs of the second exclusive NOR gate which receives the frequency-divided signal as input, and for data-shifting using the positive and negative control command inputs as clock pulses. And are provided.

【0021】請求項3の発明に係る暴走検出装置は、3
つの制御命令入力を正値,負値のいずれにするかを組み
合せ条件で決定する条件決定手段を設け、該条件決定手
段からの制御命令入力をシフトレジスタにより1桁ずつ
ずらしながら記憶,転送させ、3つの制御命令入力のい
ずれが発生しても、上記シフトレジスタにデータシフト
を行わせるようにしたものである。
The runaway detecting apparatus according to the invention of claim 3 is 3
Condition determining means is provided for determining whether one of the control command inputs is a positive value or a negative value based on a combination condition, and the control command input from the condition determining means is stored and transferred by shifting one digit by a shift register. The shift register is made to shift data when any of the three control command inputs occurs.

【0022】請求項4の発明に係る暴走検出装置は、正
値,負値のいずれにするかが決定された3つの制御命令
入力をクロックパルスとして持ち、これの分周信号およ
びこの分周信号の反転信号を出力する第1,第2,第3
のJ−Kフリップフロップと、該第1,第2,第3の各
J−Kフリップフロップの出力を入力とする第1,第
2,第3のイクスクルシブノアゲートと、これらの第
1,第2,第3のイクスクルシブノアゲートの出力を一
時保持するとともに、上記制御命令入力をクロックパル
スとしてデータシフトする第1,第2,第3のDフリッ
プフロップを設けたものである。
A runaway detecting apparatus according to a fourth aspect of the present invention has three control command inputs for which a positive value or a negative value is determined, as clock pulses, and a divided signal thereof and this divided signal. 1st, 2nd, 3rd which outputs the inversion signal of
J-K flip-flops, first, second, and third exclusive NOR gates that receive the outputs of the first, second, and third J-K flip-flops, and these first and second The first, second, and third D flip-flops are provided for temporarily holding the outputs of the second and third exclusive NOR gates and for shifting the data using the control command input as a clock pulse.

【0023】請求項5の発明に係る暴走検出装置は、4
つ以上の制御命令入力を正値,負値のいずれにするかを
決定する条件決定手段を設け、該条件決定手段からの制
御命令入力をシフトレジスタにより1桁ずつずらしなが
ら記憶,転送させ、3つの制御命令入力のいずれが発生
しても、上記シフトレジスタにデータシフトを行わせる
ようにしたものである。
The runaway detecting device according to the fifth aspect of the present invention is 4
Condition determining means for determining which of one or more control command inputs is to be a positive value or a negative value is provided, and the control command inputs from the condition determining means are stored and transferred while shifting by one digit by a shift register. When any one of the control command inputs occurs, the shift register is made to shift data.

【0024】請求項6の発明に係る暴走検出装置は、正
値または負値の複数の制御命令入力をクロックパルスと
して持ち、これの分周信号およびこの分周信号の反転信
号を出力する4つ以上のJ−Kフリップフロップと、選
択された上記分周信号および反転信号を入力とする4つ
以上のイクスクルシブノアゲートを設け、上記正値およ
び負値の制御命令入力をクロックパルスとして4つ以上
のDフリップフロップにデータシフトさせるようにした
ものである。
According to another aspect of the present invention, there is provided a runaway detecting device which has a plurality of positive or negative control command inputs as clock pulses, and outputs a divided signal of the clock pulses and an inverted signal of the divided signal. The above J-K flip-flops and four or more exclusive NOR gates to which the selected divided signal and inverted signal are input are provided, and four positive and negative control command inputs are used as clock pulses. The data is shifted to the above D flip-flop.

【0025】請求項7の発明に係る暴走検出装置は、シ
フトレジスタ、またはJ−KフリップフロップおよびD
フリップフロップを制御する制御命令入力に代えて集積
回路において使用される命令を用いるようにしたもので
ある。
A runaway detecting device according to a seventh aspect of the present invention is a shift register, or a JK flip-flop and a D-type flip-flop.
Instead of the control command input for controlling the flip-flop, the command used in the integrated circuit is used.

【0026】[0026]

【作用】請求項1の発明における暴走検出装置は、シフ
トレジスタを制御命令入力により制御し、そのシフトレ
ジスタのビット判定を行い、上記制御命令入力により変
化したシフトレジスタの1ビット目と2ビット目を比較
し、合致していれば暴走と判定する。
In the runaway detecting apparatus according to the present invention, the shift register is controlled by the control command input, the bit of the shift register is judged, and the first bit and the second bit of the shift register changed by the control command input. Are compared, and if they match, it is determined to be a runaway.

【0027】請求項2の発明における暴走検出装置は、
J−Kフリップフロップがクロックパルスとして制御命
令入力を持ち、該制御命令入力の分周信号とこの分周信
号の反転信号を出力する。また、上記制御命令入力をク
ロックパルスとして持つ他のJ−Kフリップフロップは
制御命令入力の分周信号を出力する。
The runaway detecting device in the invention of claim 2 is
The JK flip-flop has a control command input as a clock pulse, and outputs a divided signal of the control command input and an inverted signal of this divided signal. Further, another JK flip-flop having the control command input as a clock pulse outputs a frequency division signal of the control command input.

【0028】そして、入力信号として、上記分周信号を
持つイクスクルシブノアゲートは出力信号を出力し、入
力信号として反転信号,分周信号を持つイクスクルシブ
ノアゲートも上記と同様に出力信号を出力する。
Then, the exclusive NOR gate having the frequency-divided signal as an input signal outputs an output signal, and the exclusive NOR gate having an inverted signal and a frequency-divided signal as an input signal also outputs the output signal in the same manner as described above. To do.

【0029】このため、各出力信号をそれぞれ入力とし
てもつDフリップフロップは、クロックパルスとしてそ
れぞれ制御命令入力をもち、判定信号を出力し、これら
をナンドゲートの入力にして暴走検出信号を出力する。
Therefore, the D flip-flop having each output signal as an input has a control command input as a clock pulse, outputs a determination signal, and outputs a runaway detection signal by using these as inputs of a NAND gate.

【0030】請求項3の発明における暴走検出装置は、
シフトレジスタを3つの制御命令入力により制御し、そ
のシフトレジスタのビット判定を高精度に行い、上記制
御命令入力により変化したシフトレジスタの1ビット目
と2ビット目を比較し、合致していれば暴走と判定す
る。
The runaway detecting device in the invention of claim 3 is
The shift register is controlled by three control command inputs, the bit determination of the shift register is performed with high accuracy, the first bit and the second bit of the shift register changed by the control command input are compared, and if they match, Judged as a runaway.

【0031】請求項4の発明における暴走検出装置は、
3つのJ−Kフリップフロップがクロックパルスとして
各一の制御命令入力を持ちそれぞれの分周信号を出力す
る。
The runaway detecting device according to the invention of claim 4 is
Each of the three JK flip-flops has one control command input as a clock pulse, and outputs each divided signal.

【0032】また、3入力のイクスクルシブノアゲート
は各々の信号の合致判定を行い、これらの出力を各一の
Dフリップフロップの入力とし、これら3つのDフリッ
プフロップのクロックパルスとして制御命令入力を入力
して、制御信号を出力し、この制御信号を3入力のナン
ドゲートの入力として暴走検出信号を出力する。
Further, the 3-input exclusive NOR gate determines whether or not each signal is matched, and these outputs are used as the input of each D flip-flop, and the control command input is used as the clock pulse of these three D flip-flops. When the control signal is input, a control signal is output, and the runaway detection signal is output by using this control signal as an input of a 3-input NAND gate.

【0033】請求項5の発明における暴走検出装置は、
4つ以上の制御命令入力を正値,負値いずれにするかを
組み合せ条件にて決定し、シフトレジスタの判定をさら
に高精度に実施し、ビット状態に応じた暴走判定を行
う。
The runaway detecting device according to the invention of claim 5 is
The positive or negative value of four or more control command inputs is determined by a combination condition, the shift register determination is performed with higher accuracy, and the runaway determination according to the bit state is performed.

【0034】請求項6の発明における暴走検出装置は、
4組以上のJ−KフリップフロップおよびDフリップフ
ロップを用いて暴走検出を行えるようにする。
The runaway detecting device in the invention of claim 6 is
Runaway detection can be performed using four or more sets of JK flip-flops and D flip-flops.

【0035】請求項7の発明における暴走検出装置は、
特別の制御命令入力を用いずに、集積回路で使用される
通常の命令を用いて、つまり命令数を増やすことなく、
シフトレジスタを制御し、これにより所期の暴走検出を
行えるようにする。
The runaway detecting device in the invention of claim 7 is
Without using special control command inputs, with the normal commands used in integrated circuits, that is, without increasing the number of commands,
It controls the shift register so that the desired runaway can be detected.

【0036】[0036]

【実施例】【Example】

実施例1.以下、請求項1の発明の一実施例を図につい
て説明する。図1において、1は切換回路、2は切換回
路1に接続されたシフトレジスタ、3はオアゲート、4
は暴走検出回路(暴走検出手段)、L1,L2は切換回
路1を構成するノアゲート1a,1bおよびオアゲート
3への制御命令入力、L3はノアゲート1bおよびシフ
トレジスタ2のリセット信号、L4は暴走検出信号であ
る。
Example 1. An embodiment of the invention of claim 1 will be described below with reference to the drawings. In FIG. 1, 1 is a switching circuit, 2 is a shift register connected to the switching circuit 1, 3 is an OR gate, 4
Is a runaway detection circuit (runaway detection means), L1 and L2 are control command inputs to the NOR gates 1a and 1b and the OR gate 3 which constitute the switching circuit 1, L3 is a reset signal of the NOR gate 1b and the shift register 2, and L4 is a runaway detection signal. Is.

【0037】次に動作について説明する。まず、制御命
令入力L1として「H」が入力されると、切換回路1よ
り「H」が出力されて、シフトレジスタ2の1ビット目
に「H」が設定される。また、制御命令入力L1が
「L」で制御命令入力L2として「H」が入力される
と、切換回路1より「L」が出力されて、シフトレジス
タ2の1ビット目に「L」が設定される。
Next, the operation will be described. First, when "H" is input as the control command input L1, "H" is output from the switching circuit 1 and "H" is set to the first bit of the shift register 2. When the control command input L1 is “L” and the control command input L2 is “H”, the switching circuit 1 outputs “L” and sets the first bit of the shift register 2 to “L”. To be done.

【0038】シフトレジスタ2は、制御命令入力L1,
L2を入力とするオアゲート3の出力をクロックパルス
としているので、制御命令入力L1,L2のどちらか一
方の立ち上がりエッジでデータシフトを行う。また、リ
セット信号L3の入力により、1ビット目を「H」、2
ビット目を「L」に設定する。
The shift register 2 has control command inputs L1,
Since the output of the OR gate 3 having L2 as an input is used as a clock pulse, data shift is performed at the rising edge of either one of the control command inputs L1 and L2. Also, by inputting the reset signal L3, the first bit is "H", 2
Set the bit to "L".

【0039】ここで、暴走判定方法の説明を行うと、上
記記載の動作を行いシフトレジスタ2の1ビット目と2
ビット目の値を暴走検出回路4によって判定させ、合致
しているのであれば、暴走検出信号L4を「H」にす
る。
Here, the runaway determination method will be described. The above-described operation is performed to shift the first bit and the second bit of the shift register 2.
The value of the bit is determined by the runaway detection circuit 4, and if they match, the runaway detection signal L4 is set to "H".

【0040】次にかかる暴走判定方法を、図2のタイミ
ングチャートを用いて説明する。まず、リセット信号L
3により切換回路1およびシフトレジスタ2の初期設定
を行う。
Next, the runaway determination method will be described with reference to the timing chart of FIG. First, the reset signal L
3, the switching circuit 1 and the shift register 2 are initialized.

【0041】続いて、制御命令入力L1が入力される
と、シフトレジスタ2の入力aは「H」になるが、シフ
トレジスタ2の1ビット目には初期設定の時のデータ
「L」が入力される。
Subsequently, when the control command input L1 is inputted, the input a of the shift register 2 becomes "H", but the data "L" at the time of initialization is inputted to the first bit of the shift register 2. To be done.

【0042】この時、シフトレジスタ2の2ビット目は
初期設定により1ビット目のデータが「H」より、この
データがシフトすることで「H」が設定される。ここ
で、シフトレジスタ2の1ビット目「L」、2ビット目
「H」より暴走検出信号L4として「L」が出力され
る。
At this time, the second bit of the shift register 2 is set to "H" by shifting this data from the data of the first bit being "H" by initialization. Here, "L" is output as the runaway detection signal L4 from the first bit "L" and the second bit "H" of the shift register 2.

【0043】次に、制御命令入力L2が入力されると、
シフトレジスタ2の入力aは「L」に設定され、シフト
レジスタ2の2ビット目には、1ビット目のデータ
「L」がデータシフトされ、1ビット目には上記制御命
令入力L1が入力された時のシフトレジスタ2の入力a
の「H」が入力される。
Next, when the control command input L2 is input,
The input a of the shift register 2 is set to "L", the first bit data "L" is data-shifted to the second bit of the shift register 2, and the control command input L1 is input to the first bit. Input a of shift register 2 when
“H” is input.

【0044】ここで、シフトレジスタ2の1ビット目と
2ビット目の照合を行うと、合致していないので、暴走
検出信号L4として「L」が出力される。すなわち、正
常動作の場合、以上の動作を繰り返し行う。
Here, when the first bit and the second bit of the shift register 2 are compared, since they do not match, "L" is output as the runaway detection signal L4. That is, in the case of normal operation, the above operation is repeated.

【0045】また、制御命令入力L1が連続で入力され
た場合の動作は、最初に制御命令入力L1が入力された
動作と同様であるが、次に、再び制御命令入力L1が入
力されると、シフトレジスタ2の入力aは「H」に設定
され、シフトレジスタ2の2ビット目には1ビット目の
データ「L」がデータシフトされ、1ビット目には
「H」が入力され、暴走検出信号L4は「L」である。
The operation when the control command input L1 is continuously input is the same as the operation when the control command input L1 is first input, but next when the control command input L1 is input again. , The input a of the shift register 2 is set to “H”, the first bit data “L” is data-shifted to the second bit of the shift register 2, “H” is input to the first bit, and the runaway occurs. The detection signal L4 is "L".

【0046】次に、どちらかの制御命令入力が入力され
た時に、上記シフトレジスタ2の入力aのデータ「H」
が1ビット目に設定され、1ビット目のデータが2ビッ
ト目にデータシフトされ、2ビット目には「H」が設定
される。ここで、1ビット目と2ビット目の照合を行う
と、合致しているので、異常検出信号L4は「H」とな
り暴走と判断する。
Next, when one of the control command inputs is input, the data "H" of the input a of the shift register 2 is input.
Is set to the first bit, the data of the first bit is data-shifted to the second bit, and "H" is set to the second bit. Here, when the first bit and the second bit are compared, since they match, the abnormality detection signal L4 becomes "H" and it is determined that the runaway.

【0047】実施例2.図3は請求項2の発明の一実施
例を示し、図において、5aはJ−Kフリップフロップ
(第1のJ−Kフリップフロップ)で、このJ−Kフリ
ップフロップ5aはクロックパルスとして制御命令入力
L1を持ち、制御命令入力L1の分周信号L5とこの分
周信号L5の反転信号L6を出力する。また、制御命令
入力L2をクロックパルスとして持つJ−Kフリップフ
ロップ(第2のJ−Kフリップフロップ)5bは制御命
令入力L2の分周信号L7を出力する。
Example 2. FIG. 3 shows an embodiment of the invention of claim 2, wherein 5a is a JK flip-flop (first JK flip-flop), and this JK flip-flop 5a is a control command as a clock pulse. It has an input L1 and outputs a divided signal L5 of the control command input L1 and an inverted signal L6 of this divided signal L5. Further, the JK flip-flop (second JK flip-flop) 5b having the control command input L2 as a clock pulse outputs the divided signal L7 of the control command input L2.

【0048】次に、入力信号として分周信号L5,L7
を持つイクスクルシブノアゲート(第1のイクスクルシ
ブノアゲート)6aは出力信号L8を出力し、入力信号
として反転信号L6,分周信号L7を持つイクスクルシ
ブノアゲート(第2のイクスクルシブノアゲート)6b
も上記と同様に出力信号L9を出力する。
Next, the divided signals L5 and L7 are input signals.
An exclusive NOR gate (a first exclusive NOR gate) 6a having an output signal L8 outputs an output signal L8, and an exclusive NOR gate (second exclusive NOR gate) having an inverted signal L6 and a divided signal L7 as an input signal. 6b
Also outputs the output signal L9 in the same manner as above.

【0049】このため、出力信号L8,L9をそれぞれ
入力としてもつ第1のDフリップフロップとしてのDフ
リップフロップ7c,第2のDフリップフロップとして
のDフリップフロップ7dは、クロックパルスとしてそ
れぞれ制御命令入力L1,L2をもち、判定信号L1
0,L11を出力する。なお、リセット信号L3が
「H」の時には各Dフリップフロップ7c,7dは
「H」である。そして、上記の判定信号L10,L11
をナンドゲート(暴走検出手段)8の入力にして、暴走
検出信号L12を出力する。
Therefore, the D flip-flop 7c as the first D flip-flop and the D flip-flop 7d as the second D flip-flop, which have the output signals L8 and L9 as their inputs, respectively, receive the control command as clock pulses. L1 and L2, and a determination signal L1
0 and L11 are output. When the reset signal L3 is "H", the D flip-flops 7c and 7d are "H". Then, the above determination signals L10 and L11
Is input to a NAND gate (runaway detection means) 8 and a runaway detection signal L12 is output.

【0050】上記の動作を行うためには、制御命令入力
L1,L2が交互に入力されなければならず、正常動作
の場合には、暴走検出信号L12は「L」であるが、制
御命令入力L1,L2が交互に入力されなければ、暴走
検出信号L12は「H」となり、暴走と判断できる。
In order to perform the above operation, the control command inputs L1 and L2 must be alternately input. In the normal operation, the runaway detection signal L12 is "L", but the control command input is If L1 and L2 are not input alternately, the runaway detection signal L12 becomes "H", and it can be determined that the runaway.

【0051】これを、図4に示すタイミングチャートを
用いて説明を行う。リセット信号L3に「H」が入力さ
れると、J−Kフリップフロップ5a,5bおよびDフ
リップフロップ7c,7dの全部の初期設定が行われ、
J−Kフリップフロップ5a,5bには「L」が、Dフ
リップフロップ7c,7dには「H」がそれぞれ設定さ
れる。
This will be described with reference to the timing chart shown in FIG. When "H" is input to the reset signal L3, the initialization of all the JK flip-flops 5a and 5b and the D flip-flops 7c and 7d is performed,
"L" is set to the JK flip-flops 5a and 5b, and "H" is set to the D flip-flops 7c and 7d.

【0052】次に、制御命令入力L1が入力されると、
J−Kフリップフロップ5aの出力は「H」となり、J
−Kフリップフロップ5bの出力は初期設定のままなの
で、「L」となる。そして、これらの出力データをイク
スクルシブノアゲート6a,6bの入力とすることで、
Dフリップフロップ7cの入力L8は「L」、Dフリッ
プフロップ7dの入力L9は「H」となる。
Next, when the control command input L1 is input,
The output of the JK flip-flop 5a becomes "H", and J
The output of the -K flip-flop 5b remains "L" because it remains unchanged from the initial setting. Then, by inputting these output data to the exclusive NOR gates 6a and 6b,
The input L8 of the D flip-flop 7c becomes "L", and the input L9 of the D flip-flop 7d becomes "H".

【0053】ここで、Dフリップフロップ7cの出力L
10は、制御命令入力L1からのクロックパルスで初期
設定におけるデータ「H」がデータシフトされ、「H」
となる。また、Dフリップフロップ7dの出力L11は
制御命令入力L2からのクロックパルスがないので、初
期設定値「H」のままである。従って、ナンドゲート8
からの出力L12は「L」となる。
Here, the output L of the D flip-flop 7c
Reference numeral 10 is a clock pulse from the control command input L1 and the data "H" in the initial setting is data-shifted to "H"
Becomes Further, the output L11 of the D flip-flop 7d has no clock pulse from the control command input L2, and therefore remains the initial setting value "H". Therefore, NAND gate 8
The output L12 from is L.

【0054】一方、次動作において、制御命令入力L2
が入力された場合には、J−Kフリップフロップ5aの
出力L5は変化しないが、J−Kフリップフロップ5b
の出力L7は「H」となり、入力L8,L9データはそ
れぞれ「H」,「L」となる。ここで、フリップフロッ
プ7cの出力L10はデータ変化はしないが、Dフリッ
プフロップ7dの出力L11は、制御命令入力L2より
のクロックパルスにより、「H」が設定される。従っ
て、暴走検出信号L12は「L」となり、正常動作と判
断する。
On the other hand, in the next operation, the control command input L2
, The output L5 of the JK flip-flop 5a does not change, but the output of the JK flip-flop 5b does not change.
Output L7 becomes "H", and input L8 and L9 data become "H" and "L", respectively. Here, the output L10 of the flip-flop 7c does not change data, but the output L11 of the D flip-flop 7d is set to "H" by the clock pulse from the control command input L2. Therefore, the runaway detection signal L12 becomes "L", and it is determined that the operation is normal.

【0055】次に暴走時の動作であるが、上記において
説明を行った、制御命令入力L1があった時の動作の次
に、もう一度制御命令入力L1があった場合には、分周
信号L5は図4より、「H」から「L」になり、分周信
号L7は「L」のままである。
Next, regarding the operation at the time of runaway, when the control command input L1 is again provided next to the operation when the control command input L1 has been described above, the divided signal L5 From FIG. 4, "H" changes to "L", and the divided signal L7 remains "L".

【0056】従って、入力L8は「H」となり、入力L
9は「L」となる。ここで、Dフリップフロップ7cの
出力は制御命令入力としてのクロックパルスにより、こ
の制御命令入力L1よりデータが入力される前のデータ
「L」がデータシフトされ、出力L10は「L」とな
る。これにより、暴走検出信号L12の出力は「H」と
なって、暴走と判断される。
Therefore, the input L8 becomes "H" and the input L
9 becomes "L". Here, the output of the D flip-flop 7c is data-shifted from the data "L" before the data is input from the control command input L1 by the clock pulse as the control command input, and the output L10 becomes "L". As a result, the output of the runaway detection signal L12 becomes "H", and it is determined that the runaway is occurring.

【0057】実施例3.図5は請求項3の発明の一実施
例を示し、図において、L1,L2,L13は制御命令
入力で、制御命令入力L1によりシフトレジスタ2の1
ビット目の値が設定されると、制御命令入力L2の入力
を許可し、制御命令入力L13は制御命令入力L1と同
じ扱いとする。
Example 3. FIG. 5 shows an embodiment of the invention of claim 3, in which L1, L2 and L13 are control command inputs, and 1 of the shift register 2 is controlled by the control command input L1.
When the value of the bit is set, the input of the control command input L2 is permitted, and the control command input L13 is treated the same as the control command input L1.

【0058】同様に、制御命令入力L2によりシフトレ
ジスタ2の1ビット目の値が設定されると、制御命令入
力L13の入力を許可し、制御命令入力L1は制御命令
入力L2と同じ扱いをする。制御命令入力L13により
シフトレジスタ2の1ビット目の値が設定されると、制
御命令入力L1の入力を許可し、制御命令入力L2は制
御命令入力L13と同じ扱いとする。ここで、Pは各制
御命令入力L1,L2,L13を入力し、インバータI
Vを介してシフトレジスタ2に条件決定出力を入力する
条件決定手段である。
Similarly, when the value of the first bit of the shift register 2 is set by the control command input L2, the input of the control command input L13 is permitted, and the control command input L1 is treated the same as the control command input L2. . When the value of the first bit of the shift register 2 is set by the control command input L13, the input of the control command input L1 is permitted, and the control command input L2 is treated the same as the control command input L13. Here, P inputs each control command input L1, L2, L13, and outputs the inverter I
It is a condition determination means for inputting a condition determination output to the shift register 2 via V.

【0059】また、シフトレジスタ2のクロックパルス
を上記3つの制御命令入力のオアゲート(データシフト
手段)3Aの出力とし、3つの制御命令入力のどれかが
発生すればシフトレジスタ2のデータシフトを行う。な
お、暴走判定方法は実施例1と同様の動作によってなさ
れ、この動作は図6のタイミングチャートで示すとおり
であり、詳細は実施例1と同様であるので、ここではそ
の重複する説明を省略する。
Further, the clock pulse of the shift register 2 is used as the output of the OR gate (data shift means) 3A for the above three control command inputs, and the data shift of the shift register 2 is performed if any of the three control command inputs occurs. . The runaway determination method is performed by the same operation as that of the first embodiment, and this operation is as shown in the timing chart of FIG. 6, and since the details are the same as those of the first embodiment, the duplicate description thereof will be omitted here. .

【0060】実施例4.図7は請求項4の発明の一実施
例を示す。5e,5f,5gはそれぞれ第1,第2,第
3のJ−KフリップフロップとしてのJ−Kフリップフ
ロップで、これらはクロックパルスとして制御命令入力
L1,L2,L13を持ち、それぞれの分周信号L5,
L7,L15を出力する。
Example 4. FIG. 7 shows an embodiment of the invention of claim 4. Reference numerals 5e, 5f, and 5g denote JK flip-flops as first, second, and third JK flip-flops, which have control command inputs L1, L2, and L13 as clock pulses, and divide the respective frequencies. Signal L5
Outputs L7 and L15.

【0061】また、9e,9f,9gは3入力のそれぞ
れ第1,第2,第3のイクスクルシブノアゲートとして
のイクスクルシブノアゲートで、これらによって、各々
の信号の合致判定を行い、さらに、そのイクスクルシブ
ノアゲート9e,9f,9gの出力をそれぞれ第1,第
2,第3のDフリップフロップとしてのDフリップフロ
ップ7e,7f,7gの入力として、これら3つのDフ
リップフロップ7e,7f,7gのクロックパルスとし
て制御命令入力L1,L2,L13を入力して、制御信
号L16,L17,L18を出力する。
Further, 9e, 9f, and 9g are three-input exclusive-nor gates as the first, second, and third exclusive-nor gates, which are used to determine the matching of the respective signals. The outputs of the exclusive NOR gates 9e, 9f, 9g are input to the D flip-flops 7e, 7f, 7g as the first, second, and third D flip-flops, respectively, and these three D flip-flops 7e, 7f, The control command inputs L1, L2 and L13 are input as 7 g clock pulses and the control signals L16, L17 and L18 are output.

【0062】さらに、この制御信号L16,L17,L
18を3入力のナンドゲート(暴走検出手段)10の入
力にして暴走検出信号L12を出力する。図8はこの実
施例の実際の動作のタイミングチャートを示し、J−K
フリップフロップ5e,5f,5gおよびDフリップフ
ロップ7e,7f,7gの動作は実施例2と同様である
ので、ここではその重複する説明を省略する。
Further, the control signals L16, L17, L
18 is input to a 3-input NAND gate (runaway detection means) 10 to output a runaway detection signal L12. FIG. 8 shows a timing chart of the actual operation of this embodiment, JK
Since the operations of the flip-flops 5e, 5f, 5g and the D flip-flops 7e, 7f, 7g are the same as those in the second embodiment, the duplicated description will be omitted here.

【0063】実施例5.図9は請求項5の発明の一実施
例を示し、これはシフトレジスタ2の1ビット目の値の
設定を、シフトレジスタの制御命令入力L19−1〜L
19−nによって行うものである。例えば、制御命令入
力L19−1が設定されている時は、制御命令入力L1
9−2〜L19−(n−1)の入力を許可し、制御命令
入力L19−nの入力はL19−1と同じ扱いとする。
制御命令入力L19−2〜L19−nの命令が設定され
ている時は、上記動作と同様の動作を行う。なお、3B
はN個の制御命令入力を入力するデータシフト手段とし
てのオアゲートであり、Qは各制御命令入力L19−1
〜L19−nを入力し、インバータIVを介してシフト
レジスタ2に条件決定出力を入力する条件決定手段であ
る。
Example 5. FIG. 9 shows an embodiment of the invention of claim 5, which sets the value of the first bit of the shift register 2 by inputting the control command inputs L19-1 to L19 of the shift register.
19-n. For example, when the control command input L19-1 is set, the control command input L1
Inputs 9-2 to L19- (n-1) are permitted, and the input of the control command input L19-n is the same as that of L19-1.
When the control command inputs L19-2 to L19-n are set, the same operation as described above is performed. 3B
Is an OR gate as a data shift means for inputting N control command inputs, and Q is each control command input L19-1.
.About.L19-n, and a condition determining means for inputting a condition determining output to the shift register 2 via the inverter IV.

【0064】また、暴走検出方法は実施例1と同様の動
作によって行われ、図10には制御信号L19−nのn
=4のときの動作を、タイミングチャートで示してあ
る。ここで、初期設定,シフトレジスタ2の動作は実施
例1と同様であるので、ここではその重複する説明を省
略する。
The runaway detection method is performed by the same operation as that of the first embodiment, and in FIG. 10, the control signal L19-n is n.
The timing chart shows the operation when = 4. Here, since the initial setting and the operation of the shift register 2 are the same as those in the first embodiment, the duplicated description will be omitted here.

【0065】シフトレジスタ2の入力aは、図10に示
す通り暴走が発生した場合に、2クロック分が同一デー
タになってシフトレジスタ2に入力される。これによ
り、実施例1と同様の動作を行い暴走検出信号L12と
して「H」が出力され、暴走と判断される。
When a runaway occurs as shown in FIG. 10, the input a of the shift register 2 becomes the same data for two clocks and is input to the shift register 2. As a result, the same operation as that of the first embodiment is performed, "H" is output as the runaway detection signal L12, and the runaway is determined.

【0066】実施例6.図11は請求項6の発明の一実
施例を示し、ここでは、制御命令入力L19−1〜L1
9−nがJ−Kフリップフロップ5h〜5nおよびDフ
リップフロップ7h〜7nのクロックパルスとして入力
されており、Dフリップフロップ7a〜7nからそれぞ
れの判定信号を出力し、多入力のナンドゲート(暴走検
出手段)12から暴走検出信号L12を出力する。
Example 6. FIG. 11 shows an embodiment of the invention of claim 6 in which control command inputs L19-1 to L1 are input.
9-n is input as a clock pulse of the J-K flip-flops 5h to 5n and the D flip-flops 7h to 7n, and each of the determination signals is output from the D flip-flops 7a to 7n, and a multi-input NAND gate (runaway detection). Means 12 to output a runaway detection signal L12.

【0067】この実施例が他の実施例1,2と違う点
は、制御命令入力L19−1〜L19−nに優先順位が
あり、例えば制御命令入力L19−1の次の制御命令入
力はL19−2でもL19−3でもよい点が上げられ
る。従って、回路構成においても、制御命令入力L19
−3をクロックパルスとして持つDフリップフロップ7
jの入力は、制御命令入力L19−2を除いた多入力の
イクスクルシブノアゲート11jの出力となる。
The difference between this embodiment and the other embodiments 1 and 2 is that the control command inputs L19-1 to L19-n have priority, and for example, the control command input next to the control command input L19-1 is L19. -2 and L19-3 are good points. Therefore, even in the circuit configuration, the control command input L19
D flip-flop 7 having -3 as a clock pulse
The input of j is the output of the multi-input exclusive NOR gate 11j excluding the control command input L19-2.

【0068】動作のタイミングは図12にタイミングチ
ャートとして示した。ここで、J−Kフリップフロップ
5h〜5nおよびDフリップフロップ7h〜7nの個々
の動作タイミングは実施例2と同様であるので、ここで
はその重複する説明を省略する。
The operation timing is shown in the timing chart of FIG. Here, since the individual operation timings of the J-K flip-flops 5h to 5n and the D flip-flops 7h to 7n are the same as those in the second embodiment, the duplicate description thereof will be omitted here.

【0069】実施例7.図13は請求項7の発明の一実
施例を示す。上記各実施例1〜6について説明した動作
は制御命令の入力に依存していたが、その制御命令を元
々集積回路において使用されている命令に置き換えると
上記記載の動作を行うことができ、これにより、命令の
増加を低減できる。
Example 7. FIG. 13 shows an embodiment of the invention of claim 7. Although the operation described in each of the first to sixth embodiments depends on the input of the control instruction, the operation described above can be performed by replacing the control instruction with the instruction originally used in the integrated circuit. This makes it possible to reduce the increase in the number of instructions.

【0070】[0070]

【発明の効果】以上のように、請求項1の発明によれ
ば、切換回路からの正値および負値に応じた制御命令入
力を1桁ずつずらしながら記憶,転送する2ビット構成
のシフトレジスタと、該シフトレジスタに正値および負
値の制御命令入力のいずれが発生してもデータシフトを
行わせるデータシフト手段を設けて、上記シフトレジス
タの1ビット目と2ビット目のデータが合致するか否か
にもとづいて回路異常を判断させるように構成したの
で、タイマを用いずにソフトウエアによって集積回路の
暴走検出を行うことにより、パターン面積の狭小化が図
れるとともに、ハードウエアの負担を軽減することがで
きるものが得られる効果がある。
As described above, according to the first aspect of the present invention, the shift register having a 2-bit structure stores and transfers the control command input corresponding to the positive value and the negative value from the switching circuit while shifting the input by one digit. And a data shift means for performing data shift regardless of whether a positive or negative control command input occurs in the shift register, and the first bit data and the second bit data of the shift register match. Since it is configured to judge the circuit abnormality based on whether or not it is possible to reduce the pattern area and reduce the load on the hardware by detecting the runaway of the integrated circuit by software without using a timer. There is an effect that what can be obtained.

【0071】請求項2の発明によれば、正値および負値
の制御命令入力をクロックパルスとして持ち、これの分
周信号およびこの分周信号の反転信号を出力する第1お
よび第2のJ−Kフリップフロップと、上記2つの分周
信号を入力とする第1のイクスクルシブノアゲートおよ
び上記第1のJ−Kフリップフロップの上記反転信号,
上記第2のJ−Kフリップフロップの分周信号を入力と
する第2のイクスクルシブノアゲートの各出力を一時保
持するとともに、上記正値および負値の制御命令入力を
クロックパルスとしてデータシフトする第1および第2
のDフリップフロップとを設けるように構成したので、
J−KフリップフロップおよびDフリップフロップを用
いることでパターン面積を少なくし、これにより所期の
暴走検出を経済的に実施できるものが得られる効果があ
る。
According to the second aspect of the present invention, the first and second J's having positive and negative control command inputs as clock pulses and outputting the frequency-divided signal and the inverted signal of the frequency-divided signal. A K flip-flop, a first exclusive NOR gate which receives the two divided signals, and an inverted signal of the first JK flip-flop,
Each output of the second exclusive NOR gate, to which the frequency-divided signal of the second JK flip-flop is input, is temporarily held, and data is shifted by using the positive and negative control command inputs as clock pulses. First and second
Since it is configured to include the D flip-flop of
By using the JK flip-flops and the D flip-flops, the pattern area can be reduced, and this has the effect of obtaining the desired runaway detection economically.

【0072】請求項3の発明によれば、3つの制御命令
入力を正値,負値のいずれにするかを組み合せ条件で決
定する条件決定手段を設け、該条件決定手段からの制御
命令入力をシフトレジスタにより1桁ずつずらしながら
記憶,転送させ、3つの制御命令入力のいずれが発生し
ても、上記シフトレジスタにデータシフトを行わせるよ
うに構成したので、3つの制御命令入力を正値,負値い
ずれにするかを組み合せ条件にて決定することで、シフ
トレジスタのビット状態に応じて暴走検出をより高精度
に実施できるものが得られる効果がある。
According to the invention of claim 3, condition determining means for determining whether the three control command inputs are positive values or negative values by a combination condition is provided, and the control command inputs from the condition determining means are provided. The shift register stores and transfers the data while shifting it by one digit, and when any of the three control command inputs occurs, the shift register is configured to perform data shift. By deciding which of the negative values is used in combination, there is an effect that a runaway detection can be performed with higher accuracy according to the bit state of the shift register.

【0073】請求項4の発明によれば、正値,負値のい
ずれにするかが決定された3つの制御命令入力をクロッ
クパルスとして持ち、これの分周信号およびこの分周信
号の反転信号を出力する第1,第2,第3のJ−Kフリ
ップフロップと、該第1,第2,第3の各J−Kフリッ
プフロップの出力を入力とする第1,第2,第3のイク
スクルシブノアゲートと、これらの第1,第2,第3の
イクスクルシブノアゲートの出力を一時保持するととも
に、上記制御命令入力をクロックパルスとしてデータシ
フトする第1,第2,第3のDフリップフロップを設け
るように構成したので、3組のJ−Kフリップフロップ
およびDフリップフロップを用いて、パターン面積を少
なくするとともに、所期の暴走検出を確実かつ経済的に
実施できるものが得られる効果がある。
According to the fourth aspect of the present invention, three control command inputs for which a positive value or a negative value is determined are provided as clock pulses, and a divided signal thereof and an inverted signal of the divided signal are provided. For outputting the first, second, and third JK flip-flops, and the first, second, and third J-K flip-flops for receiving the outputs of the first, second, and third JK flip-flops, respectively. The first, second, and third Ds that temporarily store the output of the exclusive NOR gate and the first, second, and third exclusive NOR gates, and shift the data using the control command input as a clock pulse. Since the flip-flops are provided, three sets of JK flip-flops and D flip-flops can be used to reduce the pattern area and to reliably and economically perform the desired runaway detection. There is an effect to be.

【0074】請求項5の発明によれば、4つ以上の制御
命令入力を正値,負値のいずれにするかを決定する条件
決定手段を設け、該条件決定手段からの制御命令入力を
シフトレジスタにより1桁ずつずらしながら記憶,転送
させ、3つの制御命令入力のいずれが発生しても、上記
シフトレジスタにデータシフトを行わせるように構成し
たので、4つ以上の制御命令入力を正値,負値いずれに
するかを組み合せ条件にて決定することで、シフトレジ
スタのビット状態に応じて暴走判定を行うことができる
ものが得られる効果がある。
According to the invention of claim 5, condition determining means for determining which of four or more control command inputs is a positive value or a negative value is provided, and the control command inputs from the condition determining means are shifted. The shift register stores and transfers the data while shifting it by one digit, and when any of the three control command inputs occurs, the shift register is configured to perform data shift. Therefore, four or more control command inputs are positive values. By deciding which one of the negative values is to be used, it is possible to obtain the one capable of performing the runaway judgment according to the bit state of the shift register.

【0075】請求項6の発明によれば、正値または負値
の複数の制御命令入力をクロックパルスとして持ち、こ
れの分周信号およびこの分周信号の反転信号を出力する
4つ以上のJ−Kフリップフロップと、選択された上記
分周信号および反転信号を入力とする4つ以上のイクス
クルシブノアゲートを設け、上記正値および負値の制御
命令入力をクロックパルスとして4つ以上のDフリップ
フロップにデータシフトさせるように構成したので、4
組以上のJ−KフリップフロップおよびDフリップフロ
ップを用いて暴走検出を行うことができるものが得られ
る効果がある。
According to the invention of claim 6, four or more J's having a plurality of positive or negative control command inputs as clock pulses and outputting a divided signal thereof and an inverted signal of the divided signal. -K flip-flops and four or more exclusive NOR gates to which the selected frequency-divided signal and inverted signal are input are provided, and four or more D-values are used with the positive and negative control command inputs as clock pulses. Since it is configured to shift data to the flip-flop, 4
It is possible to obtain the one capable of performing the runaway detection by using the JK flip-flops and the D flip-flops of more than one set.

【0076】請求項7の発明によれば、シフトレジスタ
またはJ−KフリップフロップおよびDフリップフロッ
プを制御する制御命令入力に代えて集積回路において使
用される命令を用いるように構成したので、特別の制御
命令入力を用いずに、集積回路で使用される通常の命令
を用いて、つまり命令数を増やすことなく、シフトレジ
スタを制御し、これにより所期の暴走検出を行うことが
できるものが得られる効果がある。
According to the seventh aspect of the present invention, the instruction used in the integrated circuit is used instead of the control instruction input for controlling the shift register or the JK flip-flop and the D flip-flop. It is possible to control the shift register without using the control command input and with the normal commands used in the integrated circuit, that is, without increasing the number of commands, and thereby to obtain the desired runaway detection. It is effective.

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

【図1】請求項1の発明の一実施例による暴走検出装置
を示す回路図である。
FIG. 1 is a circuit diagram showing a runaway detecting device according to an embodiment of the present invention.

【図2】図1における回路各部の信号を示すタイミング
チャートである。
FIG. 2 is a timing chart showing signals of respective parts of the circuit in FIG.

【図3】請求項2の発明の一実施例による暴走検出装置
を示す回路図である。
FIG. 3 is a circuit diagram showing a runaway detecting device according to an embodiment of the invention of claim 2;

【図4】図3における回路各部の信号を示すタイミング
チャートである。
FIG. 4 is a timing chart showing signals of various parts of the circuit in FIG.

【図5】請求項3の発明の一実施例による暴走検出装置
を示す回路図である。
FIG. 5 is a circuit diagram showing a runaway detecting device according to an embodiment of the invention of claim 3;

【図6】図5における回路各部の信号を示すタイミング
チャートである。
6 is a timing chart showing signals of various parts of the circuit in FIG.

【図7】請求項4の発明の一実施例による暴走検出装置
を示す回路図である。
FIG. 7 is a circuit diagram showing a runaway detecting device according to an embodiment of the invention of claim 4;

【図8】図7における回路各部の信号を示すタイミング
チャートである。
8 is a timing chart showing signals of various parts of the circuit in FIG.

【図9】請求項5の発明の一実施例による暴走検出装置
を示す回路図である。
FIG. 9 is a circuit diagram showing a runaway detecting device according to an embodiment of the invention of claim 5;

【図10】図9における回路各部の信号を示すタイミン
グチャートである。
10 is a timing chart showing signals of various parts of the circuit in FIG.

【図11】請求項6の発明の一実施例による暴走検出装
置を示す回路図である。
FIG. 11 is a circuit diagram showing a runaway detecting device according to an embodiment of the invention of claim 6;

【図12】図11における回路各部の信号を示すタイミ
ングチャートである。
12 is a timing chart showing signals of various parts of the circuit in FIG.

【図13】請求項7の発明の一実施例による暴走検出装
置を示すブロック図である。
FIG. 13 is a block diagram showing a runaway detecting device according to an embodiment of the invention of claim 7;

【図14】従来のウオッチドッグタイマを示すブロック
図である。
FIG. 14 is a block diagram showing a conventional watchdog timer.

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

1 切換回路 2 シフトレジスタ 3,3A,3B オアゲート(データシフト手段) 4 暴走検出回路(暴走検出手段) 5a,5e J−Kフリップフロップ(第1のJ−Kフ
リップフロップ) 5b,5f J−Kフリップフロップ(第2のJ−Kフ
リップフロップ) 5g J−Kフリップフロップ(第3のJ−Kフリップ
フロップ) 5h〜5n J−Kフリップフロップ 6a,9e イクスクルシブノアゲート(第1のイクス
クルシブノアゲート) 6b,9f イクスクルシブノアゲート(第2のイクス
クルシブノアゲート) 9g イクスクルシブノアゲート(第3のイクスクルシ
ブノアゲート) 7c,7e Dフリップフロップ(第1のDフリップフ
ロップ) 7d,7f Dフリップフロップ(第2のDフリップフ
ロップ) 7g Dフリップフロップ(第3のDフリップフロッ
プ) 7h〜7n Dフリップフロップ 8,10,12 ナンドゲート(暴走検出手段) P,Q 条件決定手段 11h〜11n イクスクルシブノアゲート
1 switching circuit 2 shift register 3, 3A, 3B OR gate (data shift means) 4 runaway detection circuit (runaway detection means) 5a, 5e JK flip-flop (first JK flip-flop) 5b, 5f JK Flip-flop (second JK flip-flop) 5g JK flip-flop (third JK flip-flop) 5h to 5n JK flip-flop 6a, 9e Exclusive NOR gate (First exclusive NOR Gate) 6b, 9f Exclusive NOR gate (second exclusive NOR gate) 9g Exclusive NOR gate (exclusive NOR gate 3) 7c, 7e D flip-flop (first D flip-flop) 7d, 7f D Flip-flop (second D flip-flop) 7g D flip-flop (Third D flip-flop) 7H~7n D flip-flop 8,10,12 NAND gate (runaway detection means) P, Q condition determining means 11h~11n EXCLUSIVE cycle Shiv NOR gate

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成6年6月30日[Submission date] June 30, 1994

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】請求項4[Name of item to be corrected] Claim 4

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【手続補正2】[Procedure Amendment 2]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図5[Name of item to be corrected] Figure 5

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図5】 [Figure 5]

【手続補正3】[Procedure 3]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図9[Correction target item name] Figure 9

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図9】 [Figure 9]

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 正値および負値の制御命令入力を切換出
力する切換回路と、該切換回路からの制御命令入力を1
桁ずつずらしながら記憶,転送する2ビット構成のシフ
トレジスタと、該シフトレジスタに正値および負値の制
御命令入力のいずれが発生しても、該シフトレジスタの
データシフトを行わせるデータシフト手段と、上記シフ
トレジスタの1ビット目と2ビット目のデータが合致す
るか否かにより回路の異常を判断する暴走検出手段とを
備えた暴走検出装置。
1. A switching circuit for switching and outputting positive and negative control command inputs, and a control command input from the switching circuit.
A shift register having a 2-bit structure for storing and transferring while shifting by digits, and a data shift means for performing data shift of the shift register regardless of whether a positive or negative control command input occurs in the shift register. , A runaway detecting device provided with a runaway detecting means for judging an abnormality of a circuit depending on whether the first bit data and the second bit data of the shift register match.
【請求項2】 正値の制御命令入力をクロックパルスと
して持ち、これの分周信号およびこの分周信号の反転信
号を出力する第1のJ−Kフリップフロップと、負値の
制御命令入力をクロックパルスとして持ち、これの分周
信号を出力する第2のJ−Kフリップフロップと、上記
2つの分周信号を入力とする第1のイクスクルシブノア
ゲートと、上記第1のJ−Kフリップフロップの上記反
転信号および第2のJ−Kフリップフロップの分周信号
を入力とする第2のイクスクルシブノアゲートと、上記
第1のイクスクルシブノアゲートおよび上記第2のイク
スクルシブノアゲートの出力を一時保持するとともに、
上記正値および負値の制御命令入力をクロックパルスと
してデータシフトする第1のDフリップフロップおよび
第2のDフリップフロップと、該第1のDフリップフロ
ップおよび第2のDフリップフロップの各出力にもとづ
き回路の異常を判断する暴走検出手段とを備えた暴走検
出装置。
2. A first JK flip-flop which has a positive-valued control command input as a clock pulse and outputs a frequency-divided signal thereof and an inverted signal of the frequency-divided signal, and a negative-valued control command input. A second JK flip-flop which has a clock pulse and outputs a divided signal of the clock pulse, a first exclusive NOR gate which receives the two divided signals as an input, and the first JK flip-flop. Output of the second exclusive NOR gate, the first exclusive NOR gate, and the second exclusive NOR gate, which receive the inverted signal of the second flip-flop and the frequency-divided signal of the second JK flip-flop. While holding the
A first D flip-flop and a second D flip-flop for data-shifting with the positive and negative control command inputs as clock pulses, and outputs to the first D flip-flop and the second D flip-flop, respectively. A runaway detection device including a runaway detection means for determining an abnormality in a circuit.
【請求項3】 3つの制御命令入力を正値,負値のいず
れにするかを組み合せ条件で決定する条件決定手段と、
該条件決定手段からの制御命令入力を1桁ずつずらしな
がら記憶,転送する2ビット構成のシフトレジスタと、
上記3つの制御命令入力のいずれが発生しても、上記シ
フトレジスタにデータシフトを行わせるデータシフト手
段と、上記シフトレジスタの1ビット目と2ビット目の
データが合致するか否かにより回路の異常を判断する暴
走検出手段とを備えた暴走検出装置。
3. Condition determining means for determining whether the three control command inputs are positive values or negative values by a combination condition,
A shift register having a 2-bit structure for storing and transferring the control command input from the condition determining means while shifting the input by one digit;
Regardless of which of the three control command inputs occurs, the data shift means for causing the shift register to perform data shift and the circuit of the circuit depending on whether the first bit data and the second bit data of the shift register match. A runaway detecting device comprising a runaway detecting means for judging an abnormality.
【請求項4】 正値,負値のいずれにするかが組み合せ
条件で決定された3つの制御命令入力をクロックパルス
として持ち、それぞれこれの分周信号およびこの分周信
号の反転信号を出力する第1のJ−Kフリップフロッ
プ,第2のJ−Kフリップフロップおよび分周信号のみ
を出力する第3のJ−Kフリップフロップと、上記3つ
の分周信号を入力とする第1のイクスクルシブノアゲー
トと、上記第1のJ−Kフリップフロップの上記反転信
号および上記第2のJ−Kフリップフロップ,第3のJ
−Kフリップフロップの分周信号を入力とする第2のイ
クスクルシブノアゲートと、上記第1のJ−Kフリップ
フロップ,第2のJ−Kフリップフロップの上記反転信
号および第3のJ−Kフリップフロップの分周信号を入
力とする第3のイクスクルシブノアゲートと、上記第1
のイクスクルシブノアゲート,第2のイクスクルシブノ
アゲートおよび第3のイクスクルシブノアゲートの出力
を一時保持するとともに、上記制御命令入力をクロック
パルスとしてデータシフトする第1のDフリップフロッ
プ,第2のDフリップフロップおよび第3のDフリップ
フロップと、該第1のDフリップフロップ,第2Dのフ
リップフロップおよび第3のDフリップフロップの各出
力にもとづき回路の異常を判断する暴走検出手段とを備
えた暴走検出装置。
4. A clock pulse having three control command inputs, which is determined by a combination condition, to be either a positive value or a negative value, and outputs a divided signal thereof and an inverted signal of the divided signal, respectively. A first JK flip-flop, a second JK flip-flop, a third JK flip-flop that outputs only a divided signal, and a first excursion that receives the three divided signals as an input. A bunoa gate, the inverted signal of the first JK flip-flop, the second JK flip-flop, and the third JK flip-flop.
A second exclusive NOR gate that receives the divided signal of the -K flip-flop, the above-mentioned inverted signal of the first JK flip-flop, the second JK flip-flop, and the third JK A third exclusive NOR gate having a frequency-divided signal of a flip-flop as an input;
The first D flip-flop and the second D flip-flop that temporarily hold the outputs of the second exclusive gate, the second exclusive NOR gate, and the third exclusive NOR gate of A D flip-flop and a third D flip-flop, and a runaway detecting means for judging a circuit abnormality based on each output of the first D flip-flop, the second D flip-flop and the third D flip-flop are provided. Runaway detection device.
【請求項5】 4つ以上の制御命令入力を正値,負値の
いずれにするかを組み合せ条件で決定する条件決定手段
と、該条件決定手段からの制御命令入力を1桁ずつずら
しながら記憶,転送する2ビット構成のシフトレジスタ
と、上記3つの制御命令入力のいずれが発生しても、上
記シフトレジスタにデータシフトを行わせるデータシフ
ト手段と、上記シフトレジスタの1ビット目と2ビット
目のデータが合致するか否かにより回路の異常を判断す
る暴走検出手段とを備えた暴走検出装置。
5. A condition determining means for determining whether a positive value or a negative value of four or more control command inputs is a combination condition, and a control command input from the condition determining means is stored while shifting by one digit. , A 2-bit shift register for transferring, a data shift means for causing the shift register to shift data when any of the three control command inputs occurs, and a first bit and a second bit of the shift register. Runaway detection device provided with a runaway detection means for judging an abnormality of the circuit depending on whether or not the data of the above are matched.
【請求項6】 正値または負値の複数の制御命令入力を
クロックパルスとして持ち、これの分周信号およびこの
分周信号の反転信号を出力する4つ以上のJ−Kフリッ
プフロップと、選択された上記分周信号および反転信号
を入力とする4つ以上のイクスクルシブノアゲートと、
上記各イクスクルシブノアゲートの出力を一時保持する
とともに、上記正値および負値の制御命令入力をクロッ
クパルスとしてデータシフトする4つ以上のDフリップ
フロップと、該各Dフリップフロップの各出力にもとづ
き回路の異常を判断する暴走検出手段とを備えた暴走検
出装置。
6. Four or more JK flip-flops which have a plurality of positive or negative control command inputs as clock pulses, and which output a divided signal of the clock pulses and an inverted signal of the divided signal, and a selection. Four or more exclusive NOR gates that receive the divided signal and the inverted signal that have been input,
Based on four or more D flip-flops for temporarily holding the output of each of the exclusive NOR gates and data-shifting the positive and negative control command inputs as clock pulses, and each output of the D flip-flops. A runaway detecting device comprising a runaway detecting means for judging a circuit abnormality.
【請求項7】 シフトレジスタ、またはJ−Kフリップ
フロップおよびDフリップフロップを制御する制御命令
入力に代えて、集積回路において使用される命令を用い
る請求項1〜6いずれか1項記載の暴走検出装置。
7. The runaway detection according to claim 1, wherein an instruction used in an integrated circuit is used instead of the control instruction input for controlling the shift register or the JK flip-flop and the D flip-flop. apparatus.
JP5305375A 1993-12-06 1993-12-06 Runaway detector Pending JPH07160540A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5305375A JPH07160540A (en) 1993-12-06 1993-12-06 Runaway detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5305375A JPH07160540A (en) 1993-12-06 1993-12-06 Runaway detector

Publications (1)

Publication Number Publication Date
JPH07160540A true JPH07160540A (en) 1995-06-23

Family

ID=17944365

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5305375A Pending JPH07160540A (en) 1993-12-06 1993-12-06 Runaway detector

Country Status (1)

Country Link
JP (1) JPH07160540A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100324734B1 (en) * 1995-08-04 2002-08-24 엘지전자주식회사 Device for detecting bit pattern

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100324734B1 (en) * 1995-08-04 2002-08-24 엘지전자주식회사 Device for detecting bit pattern

Similar Documents

Publication Publication Date Title
US4144562A (en) System and method for increasing microprocessor output data rate
US5459855A (en) Frequency ratio detector for determining fixed frequency ratios in a computer system
JPS62214464A (en) Coprocessor coupling system
JPH07282576A (en) Fifo module
JPH0431411B2 (en)
JP2983542B2 (en) Processing speed-up device
US7051194B2 (en) Self-synchronous transfer control circuit and data driven information processing device using the same
US4878191A (en) Multiplication circuit capable of operating at a high speed with a small amount of hardware
JPH07160540A (en) Runaway detector
US5742842A (en) Data processing apparatus for executing a vector operation under control of a master processor
US6012077A (en) Method and apparatus for indicating overflow status of bit-variable data employing pipelining adder
US6122651A (en) Method and apparatus for performing overshifted rotate through carry instructions by shifting in opposite directions
US7467178B2 (en) Dual mode arithmetic saturation processing
US5611068A (en) Apparatus and method for controlling pipelined data transfer scheme between stages employing shift register and associated addressing mechanism
US8060729B1 (en) Software based data flows addressing hardware block based processing requirements
US5018092A (en) Stack-type arithmetic circuit
JP3611049B2 (en) Internal register circuit
KR940004579B1 (en) Interrupt processor
JPH09128241A (en) Method and apparatus for arrangement with reference to belonging function value of language input value of fuzzy logic processor
JPH0683618A (en) Flag control circuit
JPH04184535A (en) Parallel arithmetic units
JP2615746B2 (en) Bit operation circuit
WO2024129169A1 (en) Coarse grained reconfigurable architecture
JPS6029406B2 (en) Arithmetic control method
JP2553175B2 (en) Overflow detection circuit