JPS63101937A - Instruction execution monitoring device - Google Patents

Instruction execution monitoring device

Info

Publication number
JPS63101937A
JPS63101937A JP61247186A JP24718686A JPS63101937A JP S63101937 A JPS63101937 A JP S63101937A JP 61247186 A JP61247186 A JP 61247186A JP 24718686 A JP24718686 A JP 24718686A JP S63101937 A JPS63101937 A JP S63101937A
Authority
JP
Japan
Prior art keywords
instruction
execution
data
time
time required
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
JP61247186A
Other languages
Japanese (ja)
Inventor
Masahiro Ono
雅弘 大野
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 JP61247186A priority Critical patent/JPS63101937A/en
Publication of JPS63101937A publication Critical patent/JPS63101937A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To shorten a time required for the transmission/execution of data by executing abnormal state processing for various kinds of machine word instructions immediately after the passage of each maximum execution time required. CONSTITUTION:A memory stores data indicating the maximum execution time required for the execution of respective instructions other than I/O control instructions out of machine word instructions to be executed by an CPU1 and data indicating the maximum value of a residual time obtained by subtracting the time required for the transmission/reception of data to/from an I/O device 6 from the time required for the execution of the I/O control instructions, and when the CPU1 starts the execution of a machine word instruction, outputs the data indicating the maximum value in accordance with the kind of the instruction. If the succeeding instruction is not executed even after the passage of the maximum time required for the execution of the machine word instruction, the abnormal event processing is executed immediately after the passage of the maximum execution time independently required for each kind of the machine word instruction, so that the transmission/reception of data to/from the I/O device having many uncertain elements can be neglected.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、データ処理装置における命令実行監視装置に
関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an instruction execution monitoring device in a data processing device.

(従来の技術) 従来、この種の命令実行監視装置は機械語命令の実行開
始時から上記命令の種類には無関係な一定の時間を経過
した後で、次の命令の実行が開始されなければ異常動作
であるとみなして、対応する処理を実行していた。
(Prior Art) Conventionally, this type of instruction execution monitoring device detects that the next instruction must be executed after a certain period of time, which is unrelated to the type of instruction, has elapsed from the start of execution of a machine language instruction. It was assumed that this was an abnormal operation and the corresponding processing was executed.

(発明が解決しようとする問題点) 上述した従来の命令実行監視装置においては、上記一定
の時間として実行司能な、あらゆる機械語命令のなかで
、実行時間が最も長くかかる命令の実行時間と等しいか
、あるいはよフ長い時間を設定しなければならず、実行
時間の短い命令の実行中に動作の異常が起って次の命令
を実行できなくなった場合には、異常事態が検出される
まで比較的長時間にわたって異常動作が続くと云う欠点
がある。
(Problems to be Solved by the Invention) In the conventional instruction execution monitoring device described above, the execution time of the instruction that takes the longest execution time among all the machine language instructions that can be executed during the above fixed time is An equal or longer time must be set, and if an abnormality occurs during the execution of an instruction with a short execution time and the next instruction cannot be executed, an abnormal situation will be detected. The disadvantage is that the abnormal operation continues for a relatively long period of time.

また、入出力装置とのデータの送受を伴う機械語命令の
場合には、入出力装置の状態によりデータの送受にかか
る時間の範囲が大きくなり、上記一定の時間を、そのた
めに特に長く設定しなければならないと云う欠点がある
In addition, in the case of machine language instructions that involve sending and receiving data to and from an input/output device, the range of time required for sending and receiving data increases depending on the status of the input/output device, so the above fixed time should be set particularly long for that purpose. There is a drawback that it is necessary.

本発明の目的は、機械語命令の実行に必要な最大限の時
間が経過した後においても次の命令が実行されない場合
には異常事態としての処理を機械語命令の各種類につい
て、それぞれ独自の必要最大限の実行時間の経過後にお
いて直ちに実行することによって上記欠点を除去し、デ
ータの送受に要する時間を特に長く設定する必要のない
ように構成した命令実行監視装置を提供することにある
An object of the present invention is to provide unique methods for each type of machine language instruction to treat the situation as an abnormal situation when the next instruction is not executed even after the maximum time required for executing the machine language instruction has elapsed. It is an object of the present invention to provide an instruction execution monitoring device which eliminates the above-mentioned drawbacks by executing the instruction immediately after the maximum necessary execution time has elapsed, and which eliminates the need to set a particularly long time for sending and receiving data.

(問題点を解決するための手段) 本発明による命令実行監視装置はCPUと、単数または
複数のI/O装置と、メモリと、カウンタと、信号発生
装置とを具備して構成したものである。
(Means for Solving the Problems) An instruction execution monitoring device according to the present invention includes a CPU, one or more I/O devices, a memory, a counter, and a signal generator. .

CPUは入出力制御命令を含む複数の機械語合@を実行
し、且つ、単数または複数の異常事態t−表わす信号が
入力されている場合に事態を処理するためのものである
The CPU executes a plurality of machine instructions including input/output control commands, and processes situations when signals representing one or more abnormal situations t- are input.

単数または複数のI/O装置は、CPUによる入出力制
御命令の実行に際してCPUからの指示によりCPUに
対してデータの送受を行うためのものである。
The single or plural I/O devices are for transmitting and receiving data to and from the CPU according to instructions from the CPU when the CPU executes input/output control instructions.

メモリは、0PUKよって実行される機械語命令のうち
で入出力制御命令以外の各命令については、実行に必要
となる最大限の実行時間を表わすデータを記憶しておき
、入出力制御命令については実行に必要な時間からI/
O装置とのデータの送受に必要な時間を除いた残りの時
間の最大値を表わすデータを記憶しておき、CPUによ
り機械語命令の実行を開始したときに命令の種類に応じ
て最大値を表わすデータを出力するためのものである。
Among the machine language instructions executed by 0PUK, the memory stores data representing the maximum execution time required for execution of each instruction other than input/output control instructions, and for input/output control instructions, From the time required for execution
Data representing the maximum time remaining after excluding the time required for sending and receiving data with the O device is stored, and when the CPU starts executing a machine language instruction, the maximum value is set according to the type of instruction. This is for outputting the data represented.

カウンタは、メモリの出力を機械語命令の実行開始時に
保持し、その後で機械語命令の実行においてI/O装置
との間でデータを送受するとき以外には、保持された値
を一定周期で、且つ、一定の割合で増分または減分させ
て結果を出力し、データを送受するときにはデータの送
受開始の時点で保持されている値を直接出力するための
ものである。
The counter retains the output of the memory at the start of execution of a machine language instruction, and thereafter updates the retained value at regular intervals except when data is sent to and received from the I/O device during execution of the machine language instruction. , and outputs the result by incrementing or decrementing at a constant rate, and when transmitting/receiving data, directly outputs the value held at the time of starting the data transmission/reception.

信号発生装置は、カウンタの出力にもとずいて実行開始
時からデータの送受以外に必要最大実行時間の経過後も
次の命令が開始されない状態を検出し、その状態を表わ
す信号をCPUに異常事態としてエラー信号の形で入力
するためのものである。
Based on the output of the counter, the signal generator detects a state in which the next instruction is not started even after the required maximum execution time has elapsed, in addition to data transmission and reception from the start of execution, and sends a signal representing this state to the CPU for abnormality. It is intended for input in the form of an error signal as a situation.

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

第1図は、本発明による命令実行監視装置の一実施例を
示すブロック図である。第1図において、lはCPU、
2はROM13はカウンタ、4は信号発生装置、5はメ
モリ、6はI/O装置である。
FIG. 1 is a block diagram showing an embodiment of an instruction execution monitoring device according to the present invention. In FIG. 1, l is the CPU,
2 is a ROM 13, a counter, 4 is a signal generator, 5 is a memory, and 6 is an I/O device.

0PUIは機械語命令を実行するとともに、単数または
複数の異常事象を表わす信号が入力されていれば上記異
常事態を処理する機能を有するプロセサで、機械語命令
の種類を表わす命令コード信号PDと、命令の実行が開
始された状態t−表わす命令実行開始信号XFと、一定
の周期を有するクロック信号OKとを出力する。
0PUI is a processor that executes machine language instructions and has a function of processing the abnormal situation if a signal representing one or more abnormal events is input, and includes an instruction code signal PD representing the type of machine language instruction; It outputs an instruction execution start signal XF representing a state t in which execution of an instruction has started, and a clock signal OK having a constant period.

ROM 2は読出し専用メモリであり、CPU1からの
命令コード信号FDにもとずいて、上記命令の実行に必
要な最大限のマイクロプログラムステップ数を表わすス
テップ数データ信号N5Ti出力する。
The ROM 2 is a read-only memory, and based on the instruction code signal FD from the CPU 1, outputs a step number data signal N5Ti representing the maximum number of microprogram steps required to execute the above instruction.

カウンタ3は、カウント開始時の出力の初期値が設定で
きるカウンタである。第1図においては、初期値として
ROM2からのステップ数データ信号NETが用いられ
、信号XFが0PU1から出力されたときに信号NET
が初期設定される。信号発生装置4はカウンタ3からの
出力信号OTにもとずいて、命令実行ステップ数が必要
最大限を越えた状態を表わすエラー信号ERを発生する
信号発生装置である。メモリ5は機械語命令およびオペ
ランドデータを格納しておくメモリであり、0PUIか
らのアドレス信号ADにもとずいて機械語命令、または
オペランドデータを表わすデータ信号DTt−CPU1
に送出する。
The counter 3 is a counter that can set an initial value of output at the time of starting counting. In FIG. 1, the step number data signal NET from ROM2 is used as the initial value, and when the signal XF is output from 0PU1, the signal NET
is initialized. The signal generator 4 is a signal generator that generates an error signal ER based on the output signal OT from the counter 3, which indicates that the number of instruction execution steps exceeds the required maximum. The memory 5 is a memory that stores machine language instructions and operand data, and based on the address signal AD from 0PUI, the data signal DTt-CPU1 representing the machine language instruction or operand data is stored.
Send to.

I/O装置6は0PUIが入出力制御を行う機械語命令
を実行する際に、0PU1からの指示によ50PU1と
の間でデータ信号l0DTの送受を行う入出力装置であ
り、データ全I/O装置6からCPU1へ送る際にはI
/O装置6に入手でデータを入力する必要があるものと
する。また、信号IOMViCPU1とI/O装置6と
の間でデータの送受を行っている間に出力され、カウン
タ3のカウント動作を抑止する。
The I/O device 6 is an input/output device that sends and receives data signals 10DT to and from 50PU1 according to instructions from 0PU1 when 0PUI executes machine language instructions for input/output control, and handles all data I/O. When sending from O device 6 to CPU 1, I
Assume that it is necessary to input data into the /O device 6 on demand. Further, the signal is output while data is being exchanged between the IOMVi CPU1 and the I/O device 6, and the counting operation of the counter 3 is suppressed.

信号AOKは、I/O装f16がデータの送受を完了し
たこと20PU1に通知するときに出力される。
The signal AOK is output when the I/O device f16 notifies the 20PU1 that the data transmission/reception has been completed.

次に、第1図に示す命令実行監視装置の動作上以下の2
例で説明する。
Next, regarding the operation of the instruction execution monitoring device shown in FIG.
Let's explain with an example.

例1: 0PUIが入出力制御を伴わない成る機械語命令、例え
ば0PUIのなかのひとつのレジスタ(以下、R1と称
する。)に格納されたデータと、メモリ5から読出され
たオペランドデータとを加算し、その結果をR1に保持
すると云う命令(以下、ADDIM命令と称する。)の
実行を開始したものとする。このとき、装置に異常がな
ければ、ADDIM命令の実行は5マイクロ秒で終了す
るものとし、信号OKの周期は1マイクロ秒とする。
Example 1: 0PUI is a machine language instruction that does not involve input/output control, for example, the data stored in one register (hereinafter referred to as R1) in 0PUI is added to the operand data read from memory 5. It is assumed that execution of an instruction (hereinafter referred to as an ADDIM instruction) to hold the result in R1 is started. At this time, if there is no abnormality in the device, the execution of the ADDIM command will be completed in 5 microseconds, and the cycle of the OK signal will be 1 microsecond.

このとき、信号PDがADDIM命令を表わしている場
合には、ROM2の出力省号NSTが/O進数の5を表
わすようにすると、ADD 1M命令の実行開始時、i
号XFが生じてカウンタ3に上記値がセットされる。そ
の後、クロック信号OKに同期してカウンタ3の値が1
ずつ減分するものとすれば、カウンタ3の出力信号OT
は命令実行の終了時に数1直0を表示した後、次の命令
の実行開始に伴って、その命令の種類にもとすく最大ス
テップ数の値が再度セットされる。
At this time, when the signal PD represents the ADDIM instruction, if the output code NST of ROM2 is made to represent 5 in the /O base, when the execution of the ADD 1M instruction starts, i
No. XF is generated and the above value is set in the counter 3. After that, the value of counter 3 changes to 1 in synchronization with the clock signal OK.
If the output signal OT of counter 3 is decremented by
displays the number 1 or 0 at the end of instruction execution, and then, when the execution of the next instruction starts, the value of the maximum number of steps is set again for that instruction type.

信号発生装置4において信号OTの1直が0を下廻った
ときにエラー信号ERが出力されるようにしておけば、
ADDIM命令の実行に必要な最大限のステップ数のマ
イクロプログラムの実行後、直ちにエラー処理を行うこ
とができる。
If the signal generator 4 is configured to output the error signal ER when the first shift of the signal OT falls below 0,
Error handling can be performed immediately after the microprogram has been executed for the maximum number of steps necessary to execute the ADDIM instruction.

この際には、CPU1がエラー信号gRの入力に厄じて
エラー処理を直ちに開始する機能をもっていることが前
提となる。
In this case, it is assumed that the CPU 1 has a function to immediately start error processing even when the error signal gR is input.

例2: CPU lが入出力制御を伴う機械語命令、例えばI/
O装置6から例1で示した凡1ヘデータta込むと云う
命令(以下、LD几IIO命令と称する。)の実行を開
始したものとする。
Example 2: CPU l executes machine language instructions that involve input/output control, such as I/O
It is assumed that execution of the command (hereinafter referred to as the LD_IIO command) to input data ta into the data storage unit 1 shown in Example 1 from the O device 6 is started.

このとき、0PUIとのデータの送受以外の部分は、4
マイクロ秒で終了するものとする。信号FDがLDRI
 IO命令を表わしている場合に信号NETが/O進数
の47に表わすようにすると、LDR1/O命令の実行
開始時に例1と同様にカウンタ3に上記値がセットされ
る。
At this time, the parts other than sending and receiving data with 0PUI are 4
It shall end in microseconds. Signal FD is LDRI
If the signal NET is made to represent 47 in the /O base when it represents an IO command, the above value is set in the counter 3 as in Example 1 at the start of execution of the LDR1/O command.

その後、信号OKに同期してカウンタ3の傭は例1と同
様に減分するが、LDRIIO命合の実行の途中でI/
O装置6からのデータ現出し待ちの場合には値が減分せ
ずに保持される。
After that, the value of counter 3 is decremented in synchronization with the OK signal, as in Example 1, but in the middle of executing the LDRIIO command, I/O
When waiting for data to appear from the O device 6, the value is held without being decremented.

I/O装置6からの入力が人手で行われるため、その部
分の実行時間が大きく、且つ、不確定となるため、カウ
ンタ3の値が保持され、この間は必要最大実行時間には
含めないことになる。
Since the input from the I/O device 6 is performed manually, the execution time for that part is long and uncertain, so the value of the counter 3 is held and this period should not be included in the required maximum execution time. become.

従って、I/O装置6より信号AOKが入力され、デー
タの読出しが終了状態となって、初めてカウンタ3の減
分動作が再開される。
Therefore, the decrementing operation of the counter 3 is restarted only after the signal AOK is input from the I/O device 6 and the data reading is completed.

後は、例1と同様に信号OTの値がOt下廻ったときに
エラー信号ERが出力されるようにしておけば、LDR
IIO命情の実行の場合も異常事態の検出が同様に可能
となる。
After that, as in Example 1, if the error signal ER is output when the value of the signal OT falls below Ot, the LDR
It is also possible to detect an abnormal situation in the case of executing an IIO mission.

ここで、信号OKの周期は例1と同様に1マイクロ秒と
する。
Here, the period of the signal OK is assumed to be 1 microsecond as in Example 1.

このよりにすると、機械語命令の種類に応じて命令の実
行に必要な最大限の命令実行時間が命令の実行開始時に
セットされ、セットされた値が表わす実行時間の経過後
も、次の機械語命令の実行が開始されない場合には異常
事態が生じたとみなさn1対応する処理を実行すること
ができる。この異常事態の検出に際し、人手の介入によ
ってデータを入力するなど、不確定要素の多い事象に要
する時間が無視できる。
With this, the maximum instruction execution time required to execute an instruction according to the type of machine language instruction is set at the start of instruction execution, and even after the execution time represented by the set value has elapsed, the next machine If the execution of the word command is not started, it is assumed that an abnormal situation has occurred, and the process corresponding to n1 can be executed. When detecting this abnormal situation, the time required for events with many uncertain elements, such as inputting data through manual intervention, can be ignored.

(発明の効果) 以上説明したように本発明によれば、機械語命令の実行
に必要な最大限の時間が経過した後においても、次の命
令が実行されない場合には異常事態としての処理を機械
語命令の各種類について独自の必要最大限の実行時間の
経過後において直ちに実行することにより、不確定要素
の多い入出力装置との間のデータの送受を無視すること
ができると云5効来がある。
(Effects of the Invention) As explained above, according to the present invention, even after the maximum time required to execute a machine language instruction has elapsed, if the next instruction is not executed, processing is performed as an abnormal situation. By immediately executing each type of machine language instruction after its own maximum required execution time has elapsed, it is possible to ignore the transmission and reception of data to and from input/output devices, which have many uncertainties. There is a coming.

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

第1図は、本発明による命令実行監視装置の一実施例を
示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of an instruction execution monitoring device according to the present invention.

Claims (1)

【特許請求の範囲】[Claims] 入出力制御命令を含む複数の機械語命令を実行し、且つ
、単数または複数の異常事態を表わす信号が入力されて
いる場合に前記事態を処理するためのCPUと、前記C
PUによる前記入出力制御命令の実行に際して前記CP
Uからの指示により前記CPUに対してデータの送受を
行うための単数、または複数のI/O装置と、前記CP
Uによつて実行される機械語命令のうちで前記入出力制
御命令以外の各命令については実行に必要となる最大限
の実行時間を表わすデータを記憶しておき、前記入出力
制御命令については実行に必要な時間から前記I/O装
置とのデータの送受に必要な時間を除いた残りの時間の
最大値を表わすデータを記憶しておき、前記CPUによ
り前記機械語命令の実行を開始したときに前記命令の種
類に応じて前記最大値を表わすデータを出力するための
メモリと、前記メモリの出力を前記機械語命令の実行開
始時に保持し、その後で前記機械語命令の実行において
前記I/O装置との間でデータを送受するとき以外には
前記保持された値を一定周期で、且つ、一定の割合で増
分、または減分させて結果を出力し、前記データを送受
するときにはデータの送受開始の時点で保持されている
値を直接出力するためのカウンタと、前記カウンタの出
力にもとずいて前記実行開始時から前記データの送受以
外に前記必要最大実行時間の経過後も次の命令が開始さ
れない状態を検出し、その状態を表わす信号を前記CP
Uに異常事態としてエラー信号の形で入力するための信
号発生装置とを具備して構成したことを特徴とする命令
実行監視装置。
a CPU for executing a plurality of machine language instructions including input/output control instructions and for processing a situation when a signal representing one or more abnormal situations is input;
When the PU executes the input/output control command, the CP
one or more I/O devices for transmitting and receiving data to and from the CPU according to instructions from the CPU;
Among the machine language instructions executed by U, data representing the maximum execution time required for execution is stored for each instruction other than the input/output control instruction, and for the input/output control instruction, Data representing a maximum value of the remaining time after subtracting the time required for sending and receiving data with the I/O device from the time required for execution is stored, and execution of the machine language instruction is started by the CPU. and a memory for outputting data representing the maximum value according to the type of the instruction, and an output of the memory is held at the start of execution of the machine language instruction, and then the I /O When not transmitting or receiving data to/from the device, the held value is incremented or decremented at a constant rate at a fixed period and the result is output; when the data is transmitted/received, the data is A counter for directly outputting the value held at the time of the start of the transmission/reception of the data, and a counter for directly outputting the value held at the time of the start of the transmission/reception of the data, and a counter for directly outputting the value held at the time of the start of the data transmission/reception, and a counter for directly outputting the value held at the time of the start of the data transmission/reception. detects a state in which the instruction of CP is not started, and sends a signal representing that state to
1. An instruction execution monitoring device comprising: a signal generating device for inputting an abnormal situation in the form of an error signal to U.
JP61247186A 1986-10-17 1986-10-17 Instruction execution monitoring device Pending JPS63101937A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61247186A JPS63101937A (en) 1986-10-17 1986-10-17 Instruction execution monitoring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61247186A JPS63101937A (en) 1986-10-17 1986-10-17 Instruction execution monitoring device

Publications (1)

Publication Number Publication Date
JPS63101937A true JPS63101937A (en) 1988-05-06

Family

ID=17159719

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61247186A Pending JPS63101937A (en) 1986-10-17 1986-10-17 Instruction execution monitoring device

Country Status (1)

Country Link
JP (1) JPS63101937A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04241636A (en) * 1991-01-14 1992-08-28 Nec Corp Time monitoring circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04241636A (en) * 1991-01-14 1992-08-28 Nec Corp Time monitoring circuit

Similar Documents

Publication Publication Date Title
US6356795B1 (en) Synchronization method
JPS5985567A (en) Stored program type controller
JPS63101937A (en) Instruction execution monitoring device
JP2877095B2 (en) Multiprocessor system
KR970003319B1 (en) Data processing system having serial interface
US4710928A (en) Method and apparatus for detecting the uncontrollable operation of a control system
JPS6260038A (en) Watchdog circuit
JPS59206957A (en) Device for supervising execution of instruction
JPS5916054A (en) Microprocessor
JPS62290935A (en) Monitor device for execution of instruction
JPH07168740A (en) Watchdog method
JPH064318A (en) Error detecting system
JP2530040Y2 (en) Full-duplex communication method by serial communication
JPH11327959A (en) Method and device for monitoring abnormality of processor
JPS62239244A (en) Instruction execution supervisory equipment
JP2010033475A (en) Electronic controller
KR100427789B1 (en) Data input / output method
JPH0877113A (en) Multiprocessor system and its start method
JPS5922145A (en) Interruption control system
JP2844624B2 (en) Data processing device
JPS58181388A (en) Program managing method of remote monitor controller
JPH10275097A (en) Hang-up detecting method for data processing system
JPS59163658A (en) Monitor device for execution of instruction
JPH09237205A (en) Program runaway detection device
JPS6256544B2 (en)