JP3045888B2 - Data processing device - Google Patents

Data processing device

Info

Publication number
JP3045888B2
JP3045888B2 JP5033149A JP3314993A JP3045888B2 JP 3045888 B2 JP3045888 B2 JP 3045888B2 JP 5033149 A JP5033149 A JP 5033149A JP 3314993 A JP3314993 A JP 3314993A JP 3045888 B2 JP3045888 B2 JP 3045888B2
Authority
JP
Japan
Prior art keywords
signal
data
storage unit
reset signal
address
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
JP5033149A
Other languages
Japanese (ja)
Other versions
JPH06250860A (en
Inventor
亘  重範
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP5033149A priority Critical patent/JP3045888B2/en
Publication of JPH06250860A publication Critical patent/JPH06250860A/en
Application granted granted Critical
Publication of JP3045888B2 publication Critical patent/JP3045888B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、メインプロセッサと、
主記憶部と、入出力部とを有するデータ処理装置に係わ
り、特に、異常発生時には、メインプロセッサの暴走等
を防止する機能を有するデータ処理装置に関する。
BACKGROUND OF THE INVENTION The present invention relates to a main processor,
The present invention relates to a data processing device having a main storage unit and an input / output unit, and more particularly to a data processing device having a function of preventing runaway of a main processor when an abnormality occurs.

【0002】[0002]

【従来の技術】データ処理装置においては、メインプロ
セッサが、データアクセス等の定常動作を実行している
際に、例外処理が発生した場合には、メインプロセッサ
の内部状態を外部記憶装置に退避させてから、例外処理
を実行する。そして、例外処理の終了後に、退避させた
上記内部状態を読みだし、再びメインプロセッサによる
定常動作を開始する構成となっている。図3は上記デー
タ処理装置の概略構成図であり、図4は図3の例におけ
る概略動作フローチャートである。図3及び図4におい
て、MPU(メインプロセッサ)4はアドレスバス上の
アドレス信号1、データバス上のデータ信号2、制御バ
ス上の制御信号3を使用し、I/O(入出力部)6及び
主記憶部5の動作を制御している。
2. Description of the Related Art In a data processing device, when an exception process occurs while a main processor is executing a regular operation such as data access, the internal state of the main processor is saved to an external storage device. And then execute exception processing. Then, after the end of the exception processing, the saved internal state is read out, and the regular operation by the main processor is started again. FIG. 3 is a schematic configuration diagram of the data processing device, and FIG. 4 is a schematic operation flowchart in the example of FIG. 3 and 4, an MPU (main processor) 4 uses an address signal 1 on an address bus, a data signal 2 on a data bus, and a control signal 3 on a control bus, and an I / O (input / output unit) 6 And the operation of the main storage unit 5.

【0003】図4のステップ100において、MPU4
は、定常動作を実行し、ステップ110において、バス
エラー等の例外処理が発生したか否かを判定する。例外
処理が発生していなければ、ステップ100に戻り、定
常動作を実行する。ステップ110において、例外処理
が発生すると、ステップ150に進み、さらに例外処理
が発生したか否かを判定する。例外処理が発生していな
ければ、ステップ120に進む。
[0003] In step 100 of FIG.
Performs a steady operation, and determines in step 110 whether exception processing such as a bus error has occurred. If no exception processing has occurred, the process returns to step 100 to execute a regular operation. If an exception process occurs in step 110, the process proceeds to step 150, and it is determined whether or not an exception process has occurred. If no exception processing has occurred, the process proceeds to step 120.

【0004】ステップ120において、MPU4はMP
U4内部の各種レジスタ情報を主記憶部5に退避させ
る。そして、ステップ130にて、例外処理を実行し、
処理が終了すると、ステップ140に進み、ステップ1
20にて退避させた情報をMPU4のレジスタに復帰さ
せ、ステップ100に戻る。
In step 120, the MPU 4 sends the MP
Various register information in U4 is saved in the main storage unit 5. Then, in step 130, an exception process is executed,
Upon completion of the processing, the process proceeds to a step 140, and a step 1
The information saved at 20 is returned to the register of the MPU 4 and the process returns to step 100.

【0005】ステップ150において、例外処理が発生
した場合には、MPU4は、各種レジスタ情報の主記憶
部5への退避を良好に実行する事ができず、暴走してし
まう可能性がある。この暴走を回避するために、ステッ
プ150において、例外処理が発生した場合には、ステ
ップ170に進み、MPU4の動作を停止させる。次
に、ステップ180に進み、MPU4にリセット信号8
が入力されたか否かを判定する。そして、リセット信号
8が入力されていなければ、入力されるまで待機状態と
なり、入力されると、スタート状態、つまり、初期状態
に戻る。
If an exception process occurs in step 150, the MPU 4 cannot save the various register information in the main storage unit 5 properly, and may run away. In order to avoid this runaway, if an exception process occurs in step 150, the process proceeds to step 170, and the operation of the MPU 4 is stopped. Next, the routine proceeds to step 180, where the reset signal 8 is sent to the MPU 4.
It is determined whether or not is input. If the reset signal 8 has not been input, the apparatus enters a standby state until the reset signal 8 is input. When the reset signal 8 is input, the apparatus returns to the start state, that is, the initial state.

【0006】上記図3及び図4に示した例において、例
外処理発生時(ステップ110)に、さらに、例外処理
が発生した場合(ステップ150)には上述したよう
に、MPU4の動作が停止される。そして、リセット信
号8によりMPU4の各種レジスタ情報がクリアされて
しまう。したがって、例外処理の発生原因が不明とな
り、 中断されたデータ処理を最初から再開しなければ
ならない。これに対して、例外処理発生時に、MPUの
内部状態を記憶部に退避している際に、再度例外処理が
発生した場合、アドレス信号、データ信号をラッチする
データ処理装置がある。このデータ処理装置であれば、
MPUがリセット信号によってリセットされても、定常
動作復帰後に、ラッチされたアドレス信号、データ信号
により、例外処理の要因を知ることができる。
In the example shown in FIGS. 3 and 4, when exception processing occurs (step 110) and when exception processing occurs (step 150), the operation of the MPU 4 is stopped as described above. You. Then, various register information of the MPU 4 is cleared by the reset signal 8. Therefore, the cause of the exception processing becomes unknown, and the interrupted data processing must be restarted from the beginning. On the other hand, there is a data processing device that latches an address signal and a data signal when an exception process occurs again while the internal state of the MPU is being saved in the storage unit when the exception process occurs. With this data processing device,
Even if the MPU is reset by the reset signal, the cause of the exception processing can be known from the latched address signal and data signal after the normal operation returns.

【0007】図5は上述したラッチ機能を有するデータ
処理装置の概略構成図であり、上記図3の例に、アドレ
ス信号、データ信号をラッチ部が追加されている。ま
た、図6は図5の例の概略動作フローチャートである。
図5と図6において、MPU4はアドレス信号1やデー
タ信号2や制御信号3を使用し、I/O部6及び主記憶
部5を制御し、ラッチ部7はアドレスバス、データバ
ス、制御バスに接続されている。MPU4の定常動作中
(ステップ100)に、バスエラー等の例外処理(ステ
ップ110)が発生すると、MPU4はMPU4内部の
各種レジスタ情報を主記憶に退避(ステップ120)し
ようとするが、この時さらに例外処理が発生すると(ス
テップ150)、ステップ160に進む。そして、この
ステップ160において、その時のアドレス信号1やデ
ータ信号2をラッチ部7が保持する。次に、ステップ1
70に進み、MPU4は暴走を避けるために停止する。
そして、ステップ180において、リセット信号8がM
PU4に入力されるまで、待機状態となる。リセット信
号8がMPU4に入力されると、MPU4の各種レジス
タ情報がクリアされてしまうが、ラッチ部7に保持され
た情報により、例外処理(ステップ150)が発生した
際のアドレス信号1やデータ信号2の内容を知ることが
できる。
FIG. 5 is a schematic configuration diagram of a data processing device having the above-described latch function. A latch section for address signals and data signals is added to the example of FIG. FIG. 6 is a schematic operation flowchart of the example of FIG.
5 and 6, an MPU 4 uses an address signal 1, a data signal 2, and a control signal 3 to control an I / O unit 6 and a main storage unit 5, and a latch unit 7 includes an address bus, a data bus, and a control bus. It is connected to the. If an exception process (step 110) such as a bus error occurs during the normal operation of the MPU 4 (step 100), the MPU 4 attempts to save various register information inside the MPU 4 to the main memory (step 120). When exception processing occurs (step 150), the process proceeds to step 160. Then, in this step 160, the latch unit 7 holds the address signal 1 and the data signal 2 at that time. Next, step 1
Proceeding to 70, MPU 4 stops to avoid runaway.
Then, in step 180, the reset signal 8 becomes M
It waits until it is input to PU4. When the reset signal 8 is input to the MPU 4, various register information of the MPU 4 is cleared, but the information held in the latch unit 7 causes the address signal 1 and the data signal 1 when an exception process (step 150) occurs. You can know the contents of 2.

【0008】なお、上述したデータ処理装置に類似する
ものとしては、例えば、特開昭60−3732号公報に
記載された入出力装置の異常検出方法や、特開平3−1
19448号公報に記載されたデータ処理装置さらに、
特開平4−195617号公報に記載された記録再生装
置及び情報処理装置等がある。
[0008] Examples of a device similar to the data processing device described above include a method for detecting an abnormality in an input / output device described in Japanese Patent Application Laid-Open No. 60-3732 and Japanese Patent Application Laid-Open No.
Further, a data processing device described in JP-A-19448
There is a recording / reproducing apparatus, an information processing apparatus, and the like described in JP-A-4-195617.

【0009】[0009]

【発明が解決しようとする課題】図5及び図6に示した
例にあっては、例外処理の発生時(ステップ110)、
さらにバスエラー等の例外処理が発生すると(ステップ
150)、ラッチ部7が機能し、例外処理が発生した時
のアドレス信号1やデータ信号2の情報を保持する(ス
テップ160)。これにより、MPU4が定常動作に復
帰した際に、例外処理の発生時のアドレス信号1やデー
タ信号2の情報を検索することが可能である。
In the example shown in FIGS. 5 and 6, when exception processing occurs (step 110),
Further, when an exception process such as a bus error occurs (step 150), the latch unit 7 functions to hold information on the address signal 1 and the data signal 2 at the time when the exception process occurs (step 160). Thereby, when the MPU 4 returns to the normal operation, it is possible to search for the information of the address signal 1 and the data signal 2 at the time of occurrence of the exception processing.

【0010】しかしながら、上記図5の例のデータ処理
装置においても、ステップ100の例外処理発生と、ス
テップ150の例外処理発生とを関連付けた例外発生の
原因究明は困難であり、例外処理発生前のデータ復元が
困難であった。したがって、例外発生を起因とする、M
PU4の停止状態や暴走状態からの自動復帰は不可能で
あった。本発明の目的は、データ処理装置において、例
外処理発生の原因究明が容易に実行でき、MPUの停止
状態や暴走状態からの自動復帰が可能なデータ処理装置
を実現することである。
However, in the data processing device of FIG. 5 as well, it is difficult to determine the cause of the exception occurrence in which the exception processing in step 100 and the exception processing in step 150 are associated with each other. Data recovery was difficult. Therefore, M
Automatic return from the stop state or runaway state of PU4 was impossible. SUMMARY OF THE INVENTION It is an object of the present invention to provide a data processing device that can easily determine the cause of occurrence of exception processing in a data processing device and that can automatically return from a stopped state or a runaway state of an MPU.

【0011】[0011]

【課題を解決するための手段】本発明は、上記目的を達
成するため、以下のように構成される。データ処理装置
において、命令やデータを格納する主記憶部と、主記憶
部内に格納された命令及びデータを使用し、データ処理
を行なうメインプロセッサと、メインプロセッサからの
指令により動作する入出力部と、データのアドレスを示
すアドレス信号とデータ信号とアドレス信号及びデータ
信号の転送を制御する制御信号とを記憶する副記憶部
と、アドレス信号を伝達するアドレスバスとデータ信号
を伝達するデータバスと制御信号を伝達するコントロー
ルバスに接続され、メインプロセッサ、主記憶部、入出
力部によるアドレスバス、データバス及びコントロール
バスのアクセス状態を監視し、割り込み、例外処理、又
はメインプロセッサ以外の主記憶部又は入出力部による
ダイレクトメモリアクセスの発生を検出したときには、
アドレス信号、データ信号及び制御信号の状態を、時系
列的に副記憶部に格納し、さらに、割り込み、例外処
理、又はメインプロセッサ以外の主記憶部又は入出力部
によるダイレクトメモリアクセスの発生を検出したとき
には、少なくともメインプロセッサの内部レジスタ情報
を収集して、副記憶部に格納し、この副記憶部に格納さ
れたアドレス信号、データ信号及び制御信号の状態とメ
インプロセッサの内部レジスタ情報とに基づいてメイン
プロセッサが自動復帰可能か否かを判断して、自動復帰
可能な場合には、復帰用リセット信号を出力する例外処
理発生監視部と、復帰用リセット信号と外部から供給さ
れる外部リセット信号とに基づいて、少なくとも上記メ
インプロセッサに、リセット信号を供給するリセット信
号選択合成部と、を備える。
SUMMARY OF THE INVENTION The present invention is configured as follows to achieve the above object. In the data processing device, a main storage unit that stores instructions and data, a main processor that performs data processing using the instructions and data stored in the main storage unit, and an input / output unit that operates according to instructions from the main processor. A sub-storage unit for storing an address signal indicating a data address, a data signal, a control signal for controlling the transfer of the address signal and the data signal, an address bus for transmitting the address signal, and a data bus for transmitting the data signal. It is connected to a control bus that transmits signals, monitors the access state of the address bus, data bus, and control bus by the main processor, main storage unit, and input / output unit, interrupts, exception processing, or main storage units other than the main processor or When the occurrence of direct memory access by the input / output unit is detected,
The states of the address signal, the data signal, and the control signal are stored in a time-series manner in the sub-storage unit, and further, interrupt and exception processing is performed.
Main memory or input / output unit other than the main processor
When direct memory access is detected due to
Contains at least the internal register information of the main processor.
Are collected and stored in the secondary storage unit, and stored in the secondary storage unit.
Address and data signals and control signals
Main based on in-processor internal register information
Determines whether the processor can be automatically restored, and returns automatically
When possible , a reset signal for supplying a reset signal to at least the main processor on the basis of an exception process occurrence monitoring unit that outputs a reset signal for reset, and an external reset signal supplied from the outside. And a signal selection / synthesis unit.

【0012】好ましくは、上記データ処理装置におい
て、副記憶部は、記憶領域を循環使用可能な記憶手段で
ある。また、好ましくは、上記データ処理装置におい
て、副記憶部は、停電時においても、記憶された情報を
保持可能なバックアップ用電源を有する。
Preferably, in the above data processing device, the sub-storage section is a storage means capable of circulating a storage area. Preferably, in the data processing device, the sub-storage unit has a backup power supply capable of retaining the stored information even when a power failure occurs.

【0013】また、好ましくは、上記データ処理装置に
おいて、リセット信号選択合成部は、上記復帰用リセッ
ト信号及び外部リセット信号の両信号が供給されたとき
のみ、メインプロセッサにリセット信号を供給する。ま
た、好ましくは、上記データ処理装置において、例外処
理発生監視部は、副記憶部に格納されたアドレス信号、
データ信号及び制御信号の状態から、メインプロセッサ
が正常復帰可能か否か判断する判断部を有し、正常復帰
可能な場合には、データ修正を実行するとともに、正常
復帰可能であることを示す自動復帰可能信号を、リセッ
ト信号選択合成部に供給し、リセット信号選択合成部
は、自動復帰可能信号が供給された場合には、外部リセ
ット信号の供給の有無に関係なく、メインプロッサにリ
セット信号を供給する。
Preferably, in the data processing device, the reset signal selection / synthesis unit supplies a reset signal to the main processor only when both the reset signal for recovery and the external reset signal are supplied. Preferably, in the data processing device, the exception processing occurrence monitoring unit includes an address signal stored in the secondary storage unit,
The main processor has a determination unit that determines whether or not the normal recovery can be performed based on the state of the data signal and the control signal. When the normal recovery can be performed, the main processor executes data correction and automatically indicates that the normal recovery is possible. A resettable signal is supplied to the reset signal selection / synthesis unit, and the reset signal selection / synthesis unit supplies the reset signal to the main processor when the automatic resettable signal is supplied, regardless of whether an external reset signal is supplied or not. I do.

【0014】[0014]

【作用】メインプロセッサは、主記憶部内の命令やデー
タを使用しデータの処理を行なう。主記憶部は、メイン
プロセッサの行なうデータの処理に必要な命令やデータ
を格納する。入出力部は、メインプロセッサの行なうデ
ータ処理に伴い、システムの必要に応じた、アプリケー
ション回路で、フロッピーディスク、ハードディスク等
の補助記憶手段や、補助演算手段、画像表示手段等があ
る。アドレスバスは、バスの使用権利を有するマスタ
が、データの処理を行なう為の目的アドレス信号を伝達
する。データバスは、バスの使用権利を有するマスタ
が、データの処理を行なう為の情報を伝達する。コント
ロールバスは、アドレス信号及びデータ信号を各装置間
に円滑に伝達する為のストローブ等の制御信号を伝達す
る。例外処理発生監視部は、上記アドレスバスと、デー
タバスと、コントロールバスを使用し、メインプロセッ
サによるアクセスやメインプロセッサ以外のバスマスタ
によるバスアクセスの状態を監視する。
The main processor processes data using instructions and data in the main memory. The main storage unit stores instructions and data necessary for data processing performed by the main processor. The input / output unit is an application circuit according to the needs of the system in accordance with data processing performed by the main processor, and includes an auxiliary storage unit such as a floppy disk and a hard disk, an auxiliary calculation unit, and an image display unit. The address bus transmits a target address signal for a master having the right to use the bus to process data. The data bus transmits information for the master having the right to use the bus to process data. The control bus transmits control signals such as strobes for smoothly transmitting address signals and data signals between the devices. The exception processing occurrence monitoring unit uses the address bus, data bus, and control bus to monitor the state of access by the main processor and the state of bus access by a bus master other than the main processor.

【0015】例外処理発生やメインプロセッサ以外のバ
スマスタによるダイレクトメモリアクセスが発生したと
き、そのときのアドレス信号、データ信号、制御信号の
状態を、副憶部に時系列的に格納する。メインプロセッ
サが異常停止をした際、副記憶部内の情報や主記憶部内
の情報、及びメインプロセッサの内部レジスタ等を解析
し、メインプロセッサが正常復帰可能ならば、復帰用リ
セット信号を発生する。
When exception processing occurs or direct memory access occurs by a bus master other than the main processor, the state of the address signal, data signal, and control signal at that time is stored in the secondary storage unit in time series. When the main processor stops abnormally, it analyzes the information in the sub storage unit, the information in the main storage unit, the internal register of the main processor, and the like, and if the main processor can return to normal, generates a reset signal for return.

【0016】副記憶部は、例外処理発生監視部から送ら
れる情報を記憶する。リセット信号選択合成部は、外部
から入力されるリセット信号と、例外処理発生監視部
が、発生する復帰用リセット信号とに基づいて、メイン
プロセッサをリセットする信号を発生する。
The sub-storage section stores information sent from the exception processing occurrence monitoring section. The reset signal selection / synthesis unit generates a signal for resetting the main processor based on an externally input reset signal and a reset signal generated by the exception process monitoring unit.

【0017】[0017]

【実施例】図1は、本発明の一実施例であるデータ処理
装置の概略構成図である。図1において、MPU(メイ
ンプロセッサ)4は、アドレスバス上のアドレス信号
1、データバス上のデータ信号2及びコントロールバス
上の制御信号3を使用して、主記憶部5やI/O(入出
力部)6の動作を制御する。主記憶部5は、主に、MP
U4が実行するデータ処理に必要な命令やデータを格納
するが、I/O6やシーケンサ部(例外処理発生監視
部)12等のバスマスタとなる構成部によるダイレクト
メモリアクセスにも対応する。アドレスバス1Bやデー
タバス2B、及びコントロールバス3Bは、MPU4、
主記憶部5、I/O6、及びシーケンサ部12に接続さ
れる。
FIG. 1 is a schematic block diagram of a data processing apparatus according to an embodiment of the present invention. In FIG. 1, an MPU (main processor) 4 uses an address signal 1 on an address bus, a data signal 2 on a data bus, and a control signal 3 on a control bus to control a main storage unit 5 and an I / O (input / output). The operation of the output unit 6 is controlled. The main storage unit 5 mainly stores the MP
The U4 stores instructions and data necessary for data processing executed by the U4, but also supports direct memory access by a component serving as a bus master such as the I / O 6 and the sequencer unit (exception process occurrence monitoring unit) 12. The address bus 1B, the data bus 2B, and the control bus 3B are connected to the MPU 4,
It is connected to the main storage unit 5, the I / O 6, and the sequencer unit 12.

【0018】アドレスバス1Bは、バスの使用権利を有
するマスタ部が、データの処理を行なうための目的アド
レスを伝達する。また、データバス2Bは、バスの使用
権利を有するマスタ部が、データの処理を行なう為の情
報を伝達する。コントロールバス3Bは、上記アドレス
信号2及びデータ信号3を各部間に円滑に伝達する為の
ストローブ等の信号や、割り込み信号やMPU4のステ
ータス信号等を伝達する。
Address bus 1B transmits a target address for the master unit having the right to use the bus to process data. The data bus 2B transmits information for the master unit having the right to use the bus to perform data processing. The control bus 3B transmits a signal such as a strobe for smoothly transmitting the address signal 2 and the data signal 3 between the respective units, an interrupt signal, a status signal of the MPU 4, and the like.

【0019】シーケンサ部12は、上記アドレス信号1
と、データ信号2と、制御信号3を使用し、MPU4に
よるアクセスやMPU4以外のバスマスタ部によるバス
アクセスの状態を監視し、例外処理発生やMPU4以外
のバスマスタ部によるダイレクトメモリアクセス発生等
を検知すると、それらの状態が発生したときのアドレス
信号1と、データ信号2と、制御信号3の状態を、シー
ケンサ部12の専用記憶部(副記憶部)13に時系列的
に格納する。
The sequencer section 12 receives the address signal 1
, Using the data signal 2 and the control signal 3 to monitor the state of the access by the MPU 4 and the bus access by the bus master unit other than the MPU 4 to detect the occurrence of exception processing, the occurrence of the direct memory access by the bus master unit other than the MPU 4, and the like. The states of the address signal 1, the data signal 2, and the control signal 3 when those states occur are stored in the dedicated storage unit (sub-storage unit) 13 of the sequencer unit 12 in time series.

【0020】次に、図1の例の動作を説明する。図2の
ステップ100において、MPU4は、定常動作を実行
する。そして、ステップ110において、例外処理が発
生したか否かを判定する。例外処理が発生していなけれ
ば、ステップ100に戻り、定常動作を実行する。ステ
ップ110において、バスエラー等の例外処理が発生す
ると、ステップ190に進み、シーケンサ部12が、ア
ドレス信号1、データ信号2、制御信号3の情報を収集
し、時系列的に記憶部13に格納する。そして、処理
は、ステップ150に進み、さらに例外処理が発生した
か否かを判定し、例外処理が発生していなければ、ステ
ップ120に進む。
Next, the operation of the example of FIG. 1 will be described. In step 100 of FIG. 2, the MPU 4 executes a steady operation. Then, in step 110, it is determined whether or not exception processing has occurred. If no exception processing has occurred, the process returns to step 100 to execute a regular operation. When an exception process such as a bus error occurs in step 110, the process proceeds to step 190, where the sequencer unit 12 collects information of the address signal 1, the data signal 2, and the control signal 3, and stores the information in the storage unit 13 in time series. I do. Then, the process proceeds to step 150, and it is determined whether or not an exception process has occurred. If the exception process has not occurred, the process proceeds to step 120.

【0021】ステップ120において、MPU4の内部
レジスタ等の情報が主記憶部5に格納される。次に、ス
テップ130において、MPU4は、発生した例外処理
を実行する。そして、ステップ140において、主記憶
部5に格納された情報が復帰され、ステップ100に戻
る。このステップ100にて、再び定常動作が実行され
る。
In step 120, information such as the internal register of the MPU 4 is stored in the main storage unit 5. Next, in step 130, the MPU 4 executes the exception processing that has occurred. Then, in step 140, the information stored in the main storage unit 5 is restored, and the process returns to step 100. In step 100, the steady operation is performed again.

【0022】ステップ150において、例外処理が発生
した場合には、ステップ200に進み、シーケンサ部1
2が、その時のアドレス信号1、データ信号2、制御信
号3の情報を収集し、時系列的に記憶部13に格納す
る。そして、処理はステップ170に進み、MPU4の
動作を停止させる。次に、ステップ210において、シ
ーケンサ部12は、MPU4の内部レジスタ等の情報を
収集し、専用記憶部13に格納する。さらに、シーケン
サ部12は、ステップ220において、収集したMPU
4の内部レジスタ等の情報、アドレス信号1、データ信
号2、制御信号3の情報より、MPU4の自動復帰が可
能か不可能かを判断し、自動復帰が可能な状態であれ
ば、ステップ230に進む。ステップ230において、
シーケンサ部12は、主記憶部5等のデータ修正が有れ
ば修正を実行し、ステップ240において、復帰用リセ
ット信号10をリセットブロック(リセット信号選択合
成部)11に供給する。すると、リセットブロック11
は、MPUリセット信号9をMPU4に供給する。そし
て、MPU4による定常動作(ステップ100)が再開
される。
If an exception process occurs in step 150, the process proceeds to step 200, where the sequencer unit 1
2 collects the information of the address signal 1, the data signal 2, and the control signal 3 at that time, and stores the information in the storage unit 13 in time series. Then, the process proceeds to step 170, where the operation of the MPU 4 is stopped. Next, in step 210, the sequencer unit 12 collects information such as internal registers of the MPU 4 and stores the information in the dedicated storage unit 13. Further, the sequencer unit 12 in step 220
It is determined whether or not the MPU 4 can automatically return from the information of the internal register 4 and the information of the address signal 1, the data signal 2, and the control signal 3 if the automatic return is possible. move on. In step 230,
The sequencer unit 12 executes the correction if the data in the main storage unit 5 and the like is corrected, and supplies the reset signal 10 for restoration to the reset block (reset signal selection / synthesis unit) 11 in step 240. Then, the reset block 11
Supplies the MPU reset signal 9 to the MPU 4. Then, the normal operation (Step 100) by the MPU 4 is restarted.

【0023】ステップ220において、自動復帰が不可
能であれば、不可能であることを示す信号が、シーケン
サ部12からリセットブロック11に供給され、ステッ
プ180に進む。このステップ180において、リセッ
トブロック11は、外部リセット信号8が、このリセッ
トブロック11に供給されたか否かを判断する。外部リ
セット信号8が供給されると、リセットブロック11
は、MPUリセット信号9をMPU4に供給する。そし
て、MPU4による定常動作(ステップ100)が再開
される。
If it is determined in step 220 that automatic recovery is not possible, a signal indicating that automatic recovery is not possible is supplied from the sequencer unit 12 to the reset block 11, and the process proceeds to step 180. In step 180, the reset block 11 determines whether the external reset signal 8 has been supplied to the reset block 11. When the external reset signal 8 is supplied, the reset block 11
Supplies the MPU reset signal 9 to the MPU 4. Then, the normal operation (Step 100) by the MPU 4 is restarted.

【0024】シーケンサ部12及び専用記憶部13は、
外部リセット信号8が、リセットブロック11に供給さ
れても、影響を受けないように、つまり、内部記憶状態
が変更されないように構成されている。また、シーケン
サ部12は、電源立ち上げ時のみ初期化される。また、
専用記憶部13は、必要に応じて停電時バックアップ用
電源を備え、シーケンサ部12又はMPU4からのコマ
ンドによってのみ初期化されるように構成される。
The sequencer unit 12 and the dedicated storage unit 13
Even if the external reset signal 8 is supplied to the reset block 11, the external reset signal 8 is not affected, that is, the internal storage state is not changed. The sequencer unit 12 is initialized only when the power is turned on. Also,
The dedicated storage unit 13 is provided with a backup power supply at the time of power failure as necessary, and is configured to be initialized only by a command from the sequencer unit 12 or the MPU 4.

【0025】以上説明したように、本発明の一実施例に
よれば、データ処理装置において、シーケンサ部12
は、例外処理発生や、MPU4以外のバスマスタによる
ダイレクトメモリアクセス発生等を検出したとき、その
都度、MPU4の内部レジスタ情報、アドレス信号1、
データ信号2、制御信号3を時系列的に、専用記憶部1
3に格納する。したがって、MPU4が、例外処理発生
により、異常停止した場合であっても、例外処理発生の
原因究明が容易に実行でき、MPU4の停止状態や暴走
状態からの自動復帰が可能なデータ処理装置を実現する
ことができる。上述した一実施例は、データ処理を実行
する種々のものに適用可能であるが、特に、核磁気共鳴
画像診断装置における画像データ処理等を行うデータ処
理装置に適用した場合に、有効である。
As described above, according to one embodiment of the present invention, the sequencer 12
When detecting the occurrence of exception processing, the occurrence of direct memory access by a bus master other than the MPU 4, etc., the internal register information of the MPU 4, the address signal 1,
The dedicated storage unit 1 stores the data signal 2 and the control signal 3 in time series.
3 is stored. Therefore, even if the MPU 4 is abnormally stopped due to exception processing, the cause of the exception processing can be easily investigated, and a data processing device capable of automatically returning from the stopped state or the runaway state of the MPU 4 is realized. can do. The above-described embodiment can be applied to various devices that execute data processing, but is particularly effective when applied to a data processing device that performs image data processing or the like in a nuclear magnetic resonance imaging diagnostic apparatus.

【0026】なお、専用記憶部13としては、通常のメ
モリを使用できる他、記憶内容が記憶容量範囲を超過す
る場合には、最古の記憶データを最新のデータに更新し
て記憶する、循環使用可能な記憶手段(リングバッフ
ァ)を用いることもできる。また、記憶部13として
は、停電時においても、記憶内容が消失されないような
不揮発性メモリを備えるように構成することもできる。
In addition, a normal memory can be used as the dedicated storage unit 13, and when the storage content exceeds the storage capacity range, the oldest storage data is updated to the latest data and stored. An available storage means (ring buffer) may be used. Further, the storage unit 13 may be configured to include a non-volatile memory so that stored contents are not lost even during a power failure.

【0027】また、上記実施例においては、自動復帰可
能な場合、リセットブロック11は、シーケンサ部12
からの復帰用リセット信号10のみの供給により、MP
Uリセット信号9を出力するように構成したが、外部リ
セット信号8と、復帰用リセット信号10との両信号が
供給されてから、MPUリセット信号9を出力するよう
に構成することもできる。また、リセットブロック11
は、リセット信号をメインプロセッサ4のみではなく、
入出力部6等にも供給することもできる。
In the above embodiment, when the automatic return is possible, the reset block 11
Supply of only the reset signal 10 for return from the
Although the U reset signal 9 is configured to be output, the MPU reset signal 9 may be output after both the external reset signal 8 and the resetting reset signal 10 are supplied. Also, the reset block 11
Sends the reset signal not only to the main processor 4,
It can also be supplied to the input / output unit 6 and the like.

【0028】[0028]

【発明の効果】本発明は、以上のように構成されている
ので、以下のような効果がある。データ処理装置におい
て、主記憶部と、メインプロセッサと、入出力部と、ア
ドレス信号とデータ信号と制御信号とを記憶する副記憶
部と、アドレスバスとデータバスとコントロールバスと
に接続され、これらのバスのアクセス状態を監視し、割
り込み、例外処理、又はメインプロセッサ以外によるダ
イレクトメモリアクセスの発生を検出すると、アドレス
信号、データ信号及び制御信号の状態を、時系列的に副
記憶部に格納し、復帰用リセット信号を出力する例外処
理発生監視部と、復帰用リセット信号と外部リセット信
号と、に基づいて、メインプロセッサにリセット信号を
供給するリセット信号選択合成部と、を備える。これに
より、メインプロセッサが異常停止をした場合でも、ア
ドレス信号と、データ信号と、制御信号との状態及びメ
インプロセッサ内部レジスタ等の情報を保持することが
可能であり、メインプロセッサを再起動した後において
も異常発生の原因究明が容易になる。したがって、例外
処理発生の原因究明が容易に実行でき、メインプロセッ
サの停止状態や暴走状態からの自動復帰が可能なデータ
処理装置を実現することができる。
The present invention is configured as described above and has the following effects. In the data processing device, a main storage unit, a main processor, an input / output unit, a sub-storage unit that stores an address signal, a data signal, and a control signal, an address bus, a data bus, and a control bus. When the access state of the bus is monitored and the occurrence of an interrupt, exception processing, or direct memory access by a device other than the main processor is detected, the states of the address signal, the data signal, and the control signal are stored in time series in the secondary storage unit. And a reset signal selection / synthesis unit that supplies a reset signal to the main processor based on the return reset signal and the external reset signal. Thereby, even when the main processor is stopped abnormally, it is possible to retain the state of the address signal, the data signal, and the control signal and the information such as the internal register of the main processor. In this case, it is easy to find the cause of the abnormality. Therefore, it is possible to easily determine the cause of the occurrence of the exception processing, and to realize a data processing device capable of automatically returning from the stopped state or the runaway state of the main processor.

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

【図1】本発明の一実施例の概略構成図である。FIG. 1 is a schematic configuration diagram of an embodiment of the present invention.

【図2】図1の例の動作フローチャートである。FIG. 2 is an operation flowchart of the example of FIG. 1;

【図3】データ処理装置の一従来例の概略構成図であ
る。
FIG. 3 is a schematic configuration diagram of a conventional example of a data processing device.

【図4】図3の例の動作フローチャートである。FIG. 4 is an operation flowchart of the example of FIG. 3;

【図5】データ処理装置の他の従来例の概略構成図であ
る。
FIG. 5 is a schematic configuration diagram of another conventional example of a data processing device.

【図6】図5の例の動作フローチャートである。FIG. 6 is an operation flowchart of the example of FIG. 5;

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

1 アドレス信号 1B アドレスバス 2 データ信号 2B データバス 3 制御信号 3B コントロールバス 4 MPU(メインプロセッサ) 5 主記憶部 6 I/O(入出力部) 8 外部リセット信号 9 MPUリセット信号 10 復帰用リセット信号 11 リセットブロック 12 シーケンサ部 13 専用記憶部 Reference Signs List 1 address signal 1B address bus 2 data signal 2B data bus 3 control signal 3B control bus 4 MPU (main processor) 5 main storage unit 6 I / O (input / output unit) 8 external reset signal 9 MPU reset signal 10 return reset signal 11 Reset block 12 Sequencer unit 13 Dedicated storage unit

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 11/14 G06F 11/00 G06F 11/30 - 11/34 G06F 13/00 ──────────────────────────────────────────────────続 き Continued on the front page (58) Fields surveyed (Int. Cl. 7 , DB name) G06F 11/14 G06F 11/00 G06F 11/30-11/34 G06F 13/00

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】データ処理装置において、 命令やデータを格納する主記憶部と、 主記憶部内に格納された命令及びデータを使用し、デー
タ処理を行なうメインプロセッサと、 メインプロセッサからの指令により動作する入出力部
と、 データのアドレスを示すアドレス信号と、データ信号
と、上記アドレス信号及びデータ信号の転送を制御する
制御信号と、を記憶する副記憶部と、 上記アドレス信号を伝達するアドレスバスと、上記デー
タ信号を伝達するデータバスと、上記制御信号を伝達す
るコントロールバスと、に接続され、メインプロセッ
サ、主記憶部、入出力部による上記アドレスバス、デー
タバス及びコントロールバスのアクセス状態を監視し、
割り込み、例外処理、又はメインプロセッサ以外の主記
憶部又は入出力部によるダイレクトメモリアクセスの発
生を検出したときには、アドレス信号、データ信号及び
制御信号の状態を、時系列的に上記副記憶部に格納し、
さらに、割り込み、例外処理、又はメインプロセッサ以
外の主記憶部又は入出力部によるダイレクトメモリアク
セスの発生を検出したときには、少なくともメインプロ
セッサの内部レジスタ情報を収集して、上記副記憶部に
格納し、この副記憶部に格納されたアドレス信号、デー
タ信号及び制御信号の状態とメインプロセッサの内部レ
ジスタ情報とに基づいて上記メインプロセッサが自動復
帰可能か否かを判断して、自動復帰可能な場合には、
帰用リセット信号を出力する例外処理発生監視部と、 上記復帰用リセット信号と、外部から供給される外部リ
セット信号と、に基づいて、少なくとも上記メインプロ
セッサに、リセット信号を供給するリセット信号選択合
成部と、 を備えることを特徴とするデータ処理装置。
1. A data processing apparatus, comprising: a main storage unit for storing instructions and data; a main processor for performing data processing using the instructions and data stored in the main storage unit; An input / output unit, an address signal indicating a data address, a data signal, a control signal for controlling transfer of the address signal and the data signal, and a sub storage unit for storing the address signal; and an address bus for transmitting the address signal. And a data bus for transmitting the data signal, and a control bus for transmitting the control signal. The main bus, the main storage unit, and the input / output unit control the access state of the address bus, data bus, and control bus. Monitor,
When the occurrence of an interrupt, an exception process, or the occurrence of a direct memory access by a main storage unit or an input / output unit other than the main processor is detected, the states of the address signal, the data signal, and the control signal are stored in time series in the sub-storage unit. And
In addition, interrupts, exception handling, or
Direct memory access by external main memory or input / output unit
When the occurrence of a process is detected, at least the main
Collects the internal register information of the processor and stores it in the sub-storage section.
Address and data stored in the secondary storage unit.
Data signal and control signal status and the internal
The main processor automatically recovers based on the
It is determined whether or not return is possible, and if automatic recovery is possible, an exception process occurrence monitoring unit that outputs a reset signal for recovery, the reset signal for recovery, and an external reset signal supplied from the outside. And a reset signal selection / synthesis unit that supplies a reset signal to at least the main processor.
【請求項2】請求項1記載のデータ処理装置において、
上記副記憶部は、記憶領域を循環使用可能な記憶手段で
あることを特徴とするデータ処理装置。
2. The data processing device according to claim 1, wherein
The data processing device according to claim 1, wherein the sub-storage unit is a storage unit capable of circulating a storage area.
【請求項3】請求項1又は請求項2記載のデータ処理装
置において、上記副記憶部は、停電時においても、記憶
された情報を保持可能なバックアップ用電源を有するこ
とを特徴とするデータ処理装置。
3. The data processing apparatus according to claim 1, wherein said sub-storage unit has a backup power supply capable of retaining stored information even when a power failure occurs. apparatus.
【請求項4】請求項1、請求項2又は請求項3記載のデ
ータ処理装置において、上記リセット信号選択合成部
は、上記復帰用リセット信号及び外部リセット信号の両
信号が供給されたときのみ、上記メインプロセッサにリ
セット信号を供給することを特徴とするデータ処理装
置。
4. The data processing device according to claim 1, wherein said reset signal selecting / combining section only outputs the reset signal when said reset signal and said external reset signal are supplied. A data processing device for supplying a reset signal to the main processor.
【請求項5】請求項1、請求項2又は請求項3記載のデ
ータ処理装置において、上記例外処理発生監視部は、副
記憶部に格納されたアドレス信号、データ信号及び制御
信号の状態から、メインプロセッサが正常復帰可能か否
か判断する判断部を有し、正常復帰可能な場合には、デ
ータ修正を実行するとともに、正常復帰可能であること
を示す自動復帰可能信号を、リセット信号選択合成部に
供給し、上記リセット信号選択合成部は、上記自動復帰
可能信号が供給された場合には、外部リセット信号の供
給の有無に関係なく、メインプロッサにリセット信号を
供給することを特徴とするデータ処理装置。
5. The data processing device according to claim 1, wherein the exception processing occurrence monitoring unit determines the state of the address signal, the data signal, and the control signal stored in the secondary storage unit. The main processor has a determination unit for determining whether or not normal recovery is possible. If normal recovery is possible, data correction is performed, and an automatic recovery enable signal indicating that normal recovery is possible is reset signal selective synthesis. Wherein the reset signal selection / synthesis unit supplies a reset signal to the main processor regardless of whether an external reset signal is supplied or not, when the automatic resettable signal is supplied. Processing equipment.
JP5033149A 1993-02-23 1993-02-23 Data processing device Expired - Lifetime JP3045888B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5033149A JP3045888B2 (en) 1993-02-23 1993-02-23 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5033149A JP3045888B2 (en) 1993-02-23 1993-02-23 Data processing device

Publications (2)

Publication Number Publication Date
JPH06250860A JPH06250860A (en) 1994-09-09
JP3045888B2 true JP3045888B2 (en) 2000-05-29

Family

ID=12378528

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5033149A Expired - Lifetime JP3045888B2 (en) 1993-02-23 1993-02-23 Data processing device

Country Status (1)

Country Link
JP (1) JP3045888B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
BR112012008687A2 (en) 2009-10-15 2016-04-19 L E Tech Co Ltd microcomputer and method of operating a microcomputer
JP5579257B2 (en) * 2010-03-30 2014-08-27 株式会社エルイーテック Apparatus and method for restoring information in main memory

Also Published As

Publication number Publication date
JPH06250860A (en) 1994-09-09

Similar Documents

Publication Publication Date Title
US5790878A (en) System and method for recovering from a power failure within a digital camera device
JP3481737B2 (en) Dump collection device and dump collection method
JPH07219809A (en) Apparatus and method for data processing
JPH07210500A (en) Data transfer controller
JP3045888B2 (en) Data processing device
JPH07248858A (en) Electronic apparatus with power interruption function
US5481756A (en) DMA controller mailing auto-initialize halting unit
JPH04329413A (en) Information processing method
JP3446653B2 (en) Data transfer device
JP3127880B2 (en) Method of detecting abnormality of monitored device, device thereof, and machine-readable recording medium storing program
JPH06348535A (en) Abnormality generation history storage device
US5307488A (en) System interruption apparatus
JP3977694B2 (en) Reset device
JPH06214831A (en) Abnormality detector for central processing unit
JPH04182835A (en) Bus monitor device for multiprocessor system
JPH01134637A (en) Supervising system for information in stall processing system
JP3191282B2 (en) Failure information data collection method
JP2699291B2 (en) Power failure processing device
JP2592360B2 (en) Computer system
JPH08220198A (en) Battery backup memory unit and backup function testing method
JP2928707B2 (en) Interrupt reporting device
JPH0395634A (en) Restart control system for computer system
JP2815730B2 (en) Adapters and computer systems
JPS6027049B2 (en) Logical motion tracking device
JPS6026588A (en) Data recorder for elevator

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090317

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090317

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100317

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110317

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110317

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120317

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130317

Year of fee payment: 13

EXPY Cancellation because of completion of term