JPH02129754A - Common memory access system - Google Patents

Common memory access system

Info

Publication number
JPH02129754A
JPH02129754A JP63282539A JP28253988A JPH02129754A JP H02129754 A JPH02129754 A JP H02129754A JP 63282539 A JP63282539 A JP 63282539A JP 28253988 A JP28253988 A JP 28253988A JP H02129754 A JPH02129754 A JP H02129754A
Authority
JP
Japan
Prior art keywords
cpu
counter value
signal
counter
value change
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
JP63282539A
Other languages
Japanese (ja)
Inventor
Yukihiko Yoshida
幸彦 吉田
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 JP63282539A priority Critical patent/JPH02129754A/en
Publication of JPH02129754A publication Critical patent/JPH02129754A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To easily detect a holding state or an in-loop state by allowing a timing circuit to monitor the interruption of a counter value change detecting signal for a prescribed time or more and allowing an abnormality processing selecting circuit to select simple alarm processing or the setting of a CPU normal flag. CONSTITUTION:In a multi-CPU system, each of CPUs 1, 2 is provided with a counter output function, a counter value change detecting device 2i and a timing circuit 2t for inputting a counter value change detecting signal. Since the operating state of each CPU 1 or 2 is outputted as a counter signal, a change in the counter value can be detected by the device 2i and the holding state or in-loop state of the transmission side CPU can be easily detected by the timing circuit 2t for inputting the detecting signal after turning on the CPU normal flag.

Description

【発明の詳細な説明】[Detailed description of the invention] 【産業上の利用分野】[Industrial application field]

この発明は、複数台の中央演算処理ユニット(以下、C
PUと称す)が有機的に結合し、各CPU固有の入出力
信号装置及び記憶装置以外に、共通の入出力信号装置及
び記憶装置を有するマルチCPUシステムにおける共通
記憶装置のコモンメモリアクセス方式に関するものであ
る。
This invention utilizes a plurality of central processing units (hereinafter referred to as C
Related to a common memory access method for a common storage device in a multi-CPU system in which CPUs (referred to as PUs) are organically coupled and have a common input/output signal device and storage device in addition to the input/output signal device and storage device unique to each CPU. It is.

【従来の技術】[Conventional technology]

第2図は一般的なマルチCPUシステムの一例を示す構
成図、第3図は例えば特願昭59−239430号に記
載された第2図に示すマルチCPUシステムにおけるコ
モンメモリアクセス方式を示すブロック図である。第2
図において、lは第1 CPUシステム、2は第2CP
Uシステムである。そして、前記第1 CPUシステム
1は、第1CPU1aと、第1CPU1a専用として設
けられている記憶装置1bと、第1CPUla専用とし
て設けられている入出力信号装置ICとによって構成さ
れている。また、前記第2CPUシステム2は、第2C
PU2aと、第2CPU2a専用として設けられている
記憶袋W2 bと、第2CPU2a専用として設けられ
ている入出力信号装置2cとによって構成されている。 3aは第1cPUシステムlに設けられている第1CP
U1aと、第2CPUシステム2に設けられている第2
CPU2aとを有機的に結合するための制御を行うマル
チパスコントローラ、3b、3cはマルチパスコントロ
ーラ3aの制御下において動作する共通記憶装置と共通
入出力装置である。 次に動作について説明する。共通記憶装置3bは第1C
PU1aと第2CPU2aが共通して使用する記憶装置
であり、第1CPU1aと第2CPU2a間の情報伝達
として使用される。 第3図に示すブロック図は、第1CPUシステム1から
第2CPUシステム2への情報伝達を示すものであって
、第1 CPUシステムlと第2CPUシステム2を読
み替えることにより、第2CPUシステム2から第1 
CPUシステム1への情報伝達が全く同様に行えること
になる。ここで、第3図に示すブロック図の動作を説明
する。まず、送信側の第1 CPUシステムlは、プロ
グラムの実行により、第2CPUシステム2に伝送すべ
き情報を共通記憶装置3bに供給する。更に、プログラ
ムの最後尾に設けられているカウンタ出力プログラムに
よって、共通記憶装置3bにおける特定エリアにカウン
タ信号3bcを転送する。 一方、受信側の第2CPUシステム2は、プログラムの
1スキヤンを実行する毎に、今回メモリ2eの値を前回
メモリ2fに、またカウンタ信号3bcを今回メモリ2
eに格納する。次に、カウンタ値変化検出装置21は、
今回メモリ2eと前回メモリ2fの内容を比較すること
によって、カウンタ値の変化を検出する。 次に、送信側の第1 CPUシステム1におけるH/W
(ハードウェアー)正常信号1dがオンし、かつカウン
タ値変化検出装置21がカウンタ値の変化を検出すると
、送信側のCPU正常フラグ2hがオンとなり、これを
条件として第1 CPUシステム1から共通記憶装置3
bに転送されて記憶されているデータが読み出される。 ここで、送信側のCPU正常フラグ2hのオフは、送信
側の第1CPUシステム1におけるH/W正常信号1d
のオフが条件となる。即ち、第1 CPUシステムlの
H/W異常及び電源を“切り°°にした場合にCPU正
常フラグ2hがオフされることになる。 また、復旧時においては、H/W正常信号1dがすぐに
オンするが、カウンタ信号3bcは、第1CPUシステ
ム1がプログラムを1スキヤンするまで変化しない為に
、前記手順によって過ったデータ(旧データ)は読み出
されない。
Fig. 2 is a block diagram showing an example of a general multi-CPU system, and Fig. 3 is a block diagram showing a common memory access method in the multi-CPU system shown in Fig. 2, which is described in Japanese Patent Application No. 59-239430. It is. Second
In the figure, l is the first CPU system and 2 is the second CPU system.
This is the U system. The first CPU system 1 includes a first CPU 1a, a storage device 1b provided exclusively for the first CPU1a, and an input/output signal device IC provided exclusively for the first CPU1a. Further, the second CPU system 2 has a second CPU system 2.
It is composed of a PU 2a, a memory bag W2b provided exclusively for the second CPU 2a, and an input/output signal device 2c provided exclusively for the second CPU 2a. 3a is the first CP provided in the first cPU system l.
U1a and the second CPU provided in the second CPU system 2.
Multipath controllers 3b and 3c that perform control to organically connect the CPU 2a are a common storage device and a common input/output device that operate under the control of the multipath controller 3a. Next, the operation will be explained. The common storage device 3b is the 1st C
It is a storage device that is commonly used by the PU1a and the second CPU2a, and is used for information transmission between the first CPU1a and the second CPU2a. The block diagram shown in FIG. 3 shows information transmission from the first CPU system 1 to the second CPU system 2. 1
Information can be transmitted to the CPU system 1 in exactly the same way. Here, the operation of the block diagram shown in FIG. 3 will be explained. First, the first CPU system 1 on the sending side supplies information to be transmitted to the second CPU system 2 to the common storage device 3b by executing a program. Further, the counter output program provided at the end of the program transfers the counter signal 3bc to a specific area in the common storage device 3b. On the other hand, the second CPU system 2 on the receiving side stores the value of the current memory 2e in the previous memory 2f and stores the counter signal 3bc in the current memory 2f every time it executes one scan of the program.
Store in e. Next, the counter value change detection device 21
A change in the counter value is detected by comparing the contents of the current memory 2e and the previous memory 2f. Next, the H/W in the first CPU system 1 on the sending side
(Hardware) When the normal signal 1d is turned on and the counter value change detection device 21 detects a change in the counter value, the CPU normal flag 2h on the sending side is turned on, and on this condition, the data is transferred from the first CPU system 1 to the common memory. Device 3
The data transferred to and stored in B is read out. Here, turning off the CPU normal flag 2h on the sending side means the H/W normal signal 1d in the first CPU system 1 on the sending side.
The condition is that it is turned off. In other words, if there is an H/W error in the first CPU system l and the power is turned off, the CPU normal flag 2h will be turned off. Also, at the time of recovery, the H/W normal signal 1d will be turned off immediately. However, since the counter signal 3bc does not change until the first CPU system 1 scans the program once, the erroneous data (old data) is not read out by the above procedure.

【発明が解決しようとする課題】[Problem to be solved by the invention]

従来のコモンメモリアクセス方式は以上のように構成さ
れているので、−旦CPU正常フラグ2hがオンすれば
、H/W正常信号1dが落ちるまでオフされることが無
くなり、これに伴ってCPU正常フラグ2hがオン状態
のままとなってしまう問題点があった。 この発明は上記のような問題点を解消するためになされ
たもので、CPU正常フラグと共に、送信側のCPUに
対するH/Wの異常以外のホールド状態やインループ状
態を検出することが出来るコモンメモリアクセス方式を
得ることを目的とする。
Since the conventional common memory access method is configured as described above, once the CPU normal flag 2h is turned on, it will not be turned off until the H/W normal signal 1d falls, and along with this, the CPU normality flag 2h is turned on. There was a problem that the flag 2h remained on. This invention was made to solve the above-mentioned problems, and includes a common memory that can detect a hold state or an in-loop state other than an abnormality of H/W for the CPU on the sending side, as well as a CPU normal flag. The purpose is to obtain an access method.

【課題を解決するための手段】[Means to solve the problem]

この発明に係るコモンメモリアクセス方式は、マルチC
PUシステムにおいて、各CPUにカウンタ出力機能、
カウンタ値変化検出装置及びカウンタ値変化検出信号を
入力とする時限回路を設けることにより、送信側CPU
のホールド状態及びインループ状態を検出するものであ
る。
The common memory access method according to the present invention is a multi-C
In the PU system, each CPU has a counter output function,
By providing a counter value change detection device and a time limit circuit that receives the counter value change detection signal as input, the transmission side CPU
This is to detect the hold state and in-loop state.

【作用】[Effect]

この発明におけるコモンメモリアクセス方式は、CPU
の動作状態がカウンタ信号として出力されることから、
このカウンタ値の変化をカウンタ値変化検出装置によっ
て検出し、且つこの検出信号を入力とする時限回路によ
って、CPU正常フラグのオン後に送信側CPUのホー
ルド状態やインループ状態の検出が容易に行えることに
なる。
The common memory access method in this invention is based on the CPU
Since the operating status of is output as a counter signal,
A change in the counter value is detected by a counter value change detection device, and a time limit circuit that receives this detection signal as input can easily detect the hold state or in-loop state of the transmitting CPU after the CPU normal flag is turned on. become.

【発明の実施例】[Embodiments of the invention]

以下、この発明の一実施例を図について説明する。第1
図において、1は第1CPUシステム、2は第2CPU
システム、3bは共通記憶装置、3bcは共通記憶装置
3bにおける特定エリアに格納されたカウンタ信号であ
る。また、第2CPUシステム2における2eは今回メ
モリ、2fは前回メモリ、21はカウンタ値変化検出装
置、2hはCPU正常フラグであって、これらの構成は
第3図と同一である。2pはカウンタ値変化検出装置2
1の検出信号を入力とするパルスカット回路、2tはパ
ルスカット回路2pの出力を入力とする時限回路、2s
は時限回路2tの出力を入力とする異常処理選択回路で
ある。そして、前記第3図との違いは、パルスカット回
路2p、時限回路2を及び異常処理選択回路2sを付加
したことである。 以下、第1図に示すブロック図の動作を説明する。まず
、送信側の第1 CPUシステムlは、プログラムの実
行により、第2CPUシステム2に伝送すべき情報を共
通記憶装置3bに供給する。 更に、プログラムの最後尾に設けられているカウンタ出
力プログラムによって、共通記憶装置3bにおける特定
エリアにカウンタ信号3bcを転送する。 一方、受信側の第2CPUシステム2は、プログラムの
1スキヤンを実行する毎に、今回メモリ2eの値を前回
メモリ2rに、またカウンタ信号3bcを今回メモリ2
しに格納する。次に、カウンタ値変化検出装置21は、
今回メモリ2eと前回メモリ2fの内容を比較すること
によって、カウンタ値の変化を検出する。 ・次に、送信側の第1CPUシステムlにおけるH/W
正常信号1dがオンし、かつカウンタ値変化検出装W2
1がカウンタ値の変化を検出すると、送信側のCPU正
常フラグ2hがオンとなり、これを条件として第1 C
PUシステムlから共通記憶装置3bに転送されて記憶
されているデータが読み出される。ここで、送信側のC
PU正常フラグ2hのオフは、送信側の第1CPUシス
テム1におけるH/W正常信号1dのオフが条件となる
。 即ち、第1 CPUシステム1のH/W異常及び電源を
“切り′”にした場合にCPU正常フラグ2hがオフさ
れることになる。また、復旧時においては、H/W正常
信号1dがすぐにオンするが、カウンタ信号3bcは、
第1 CPUシステム1がプログラムを1スキヤンする
まで変化しない為に、前記手順によって過ったデータ(
旧データ)は読み出されない。 次に、カウンタ値変化検出[i2iから出力される変化
検出信号は、パルスカット回路2Pにおいて、カウンタ
値変化検出信号に変換されて時限回路2tに供給される
。時限回路2Lは、人力される信号がオンされる毎に、
リセットされた後にスタートされるが、ある一定の時間
に渡って入力信号の供給が途絶えると、タイムアツプし
て出力がオン状態となる。そして、この時限回路2tの
出力信号は、異常処理選択回路2sに入力され、単にア
ラーム扱いされる場合と、CPU正常フラグ2hのリセ
ット端子に入力される場合が選択される。これにより、
送信側の第1CPUシステム1に設けられている第1 
CPUから発生されるH/W正常信号1dが落ちずに、
ソフトウェア的にホールド或いはインループ状態にある
場合が検出され、且つその場合に単にアラーム扱いにす
るか、CPU正常フラグ2hを落とすかが、異常処理選
択回路2Sによって選択されることになる。 従って、このように構成された場合には、カウンタ値変
化検出信号を時限回路によって監視することから、送信
側のCPUがホールド状態或いはインループ状態となっ
たことが容易に検出されることになる。 なお、上記実施例においては、説明を簡略化するために
、2台のCPUによって構成されるマルチシステムに適
用した場合についてのみ示したが、3台以上CPUを使
用したマルチシステムにおいても、各CPU毎に1個の
カウンタ出力機能及び他のCPUのカウンタ値検出回路
1特限回路を設置することにより、上記実施例と全く同
様の効果を奏す。
An embodiment of the present invention will be described below with reference to the drawings. 1st
In the figure, 1 is the first CPU system, 2 is the second CPU system
3b is a common storage device, and 3bc is a counter signal stored in a specific area in the common storage device 3b. Further, in the second CPU system 2, 2e is a current memory, 2f is a previous memory, 21 is a counter value change detection device, and 2h is a CPU normal flag, and these structures are the same as in FIG. 2p is counter value change detection device 2
1 is a pulse cut circuit which receives the detection signal as input, 2t is a time limit circuit which receives the output of pulse cut circuit 2p as input, 2s
is an abnormality processing selection circuit which receives the output of the time limit circuit 2t as an input. The difference from FIG. 3 is that a pulse cut circuit 2p, a time limit circuit 2, and an abnormality processing selection circuit 2s are added. The operation of the block diagram shown in FIG. 1 will be explained below. First, the first CPU system 1 on the sending side supplies information to be transmitted to the second CPU system 2 to the common storage device 3b by executing a program. Further, the counter output program provided at the end of the program transfers the counter signal 3bc to a specific area in the common storage device 3b. On the other hand, every time the second CPU system 2 on the receiving side executes one scan of the program, the value of the current memory 2e is stored in the previous memory 2r, and the counter signal 3bc is stored in the current memory 2r.
Store it. Next, the counter value change detection device 21
A change in the counter value is detected by comparing the contents of the current memory 2e and the previous memory 2f.・Next, the H/W in the first CPU system l on the sending side
The normal signal 1d is turned on, and the counter value change detection device W2
1 detects a change in the counter value, the CPU normal flag 2h on the sending side turns on, and with this as a condition, the 1st C
Data transferred from the PU system 1 to the common storage device 3b and stored therein is read out. Here, C on the sending side
The condition for turning off the PU normal flag 2h is that the H/W normal signal 1d in the first CPU system 1 on the transmitting side is turned off. That is, if there is an H/W abnormality in the first CPU system 1 and the power is turned off, the CPU normality flag 2h will be turned off. Moreover, at the time of recovery, the H/W normal signal 1d turns on immediately, but the counter signal 3bc
Because the first CPU system 1 does not change the program until it scans the program once, incorrect data (
old data) will not be read. Next, the change detection signal output from the counter value change detection [i2i is converted into a counter value change detection signal in the pulse cut circuit 2P, and is supplied to the time limit circuit 2t. The timer circuit 2L operates as follows every time the manually input signal is turned on.
It starts after being reset, but if the supply of input signals is interrupted for a certain period of time, the output turns on due to timeout. The output signal of the time limit circuit 2t is input to the abnormality processing selection circuit 2s, and a case where the signal is simply treated as an alarm or a case where the signal is input to the reset terminal of the CPU normal flag 2h is selected. This results in
The first CPU provided in the first CPU system 1 on the sending side
The H/W normal signal 1d generated from the CPU does not drop,
A hold or in-loop state is detected by software, and in that case, the abnormality processing selection circuit 2S selects whether to treat it as an alarm or to drop the CPU normal flag 2h. Therefore, in this configuration, since the counter value change detection signal is monitored by the timer circuit, it is easily detected that the CPU on the transmitting side is in the hold state or in-loop state. . In addition, in the above embodiment, in order to simplify the explanation, only the case where it is applied to a multi-system composed of two CPUs is shown, but even in a multi-system using three or more CPUs, each CPU By providing one counter output function for each CPU and a special circuit for the counter value detection circuit 1 of the other CPU, the same effects as in the above embodiment can be obtained.

【発明の効果】【Effect of the invention】

以上のように、この発明によれば時限回路によって、カ
ウンタ値変化検出信号が所定時間以上に渡ってその供給
が途絶えたことを監視して、単にアラーム扱いにするか
、CPU正常フラグを落とすかが、異常処理選択回路に
よって選択されることから、送信側のCPUがH/W異
常にならないまでも、ホールド状態或いはインループ状
態になった事が容易に検出される効果をかある。
As described above, according to the present invention, the time limit circuit monitors when the supply of the counter value change detection signal is interrupted for a predetermined period of time or more, and determines whether to simply treat it as an alarm or to drop the CPU normal flag. is selected by the abnormality processing selection circuit, so even if the CPU on the transmitting side does not become H/W abnormal, it can be easily detected that the CPU is in the hold state or in-loop state.

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

第1図はこの発明の一実施例を示すブロック図、第2図
は従来のマルチCPtJシステムを示す構成図、第3図
は従来のコモンメモリアクセス方式を示すブロック図で
ある。 ■は第1 CPUシステム、2は第2CPUシステム、
2eは今回メモリ、2fは的回メモリ、21はカウンタ
値変化検出装置、2pはパルスカット回路、2tは時限
回路、2sは異常処理選択回路、3bは共通記憶装置。 なお、図中、同一符号は同一、又は相当部分を示す。 (外2名)
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a block diagram showing a conventional multi-CPtJ system, and FIG. 3 is a block diagram showing a conventional common memory access system. ■ is the first CPU system, 2 is the second CPU system,
2e is a current memory, 2f is a target memory, 21 is a counter value change detection device, 2p is a pulse cut circuit, 2t is a time limit circuit, 2s is an abnormality processing selection circuit, and 3b is a common storage device. In addition, in the figures, the same reference numerals indicate the same or equivalent parts. (2 others)

Claims (1)

【特許請求の範囲】[Claims]  複数のCPUシステムが有機的に結合され、各CPU
システム固有の記憶装置と各CPUシステムが共有する
共通記憶装置との間でアクセスが行われるマルチCPU
システムのコモンメモリアクセス方式において、前記各
CPUシステムは自己CPUがラン状態にあることを示
すカウンタ値を出力すると共にカウンタ値変化検出装置
を備え、他方の前記CPUシステムにおけるカウンタ出
力を前記共通記憶装置の特定メモリエリアに出力して格
納し、このメモリエリアに格納されているカウント値を
他方の前記CPUシステムがプログラムをスキャンする
毎に読み取ると共に、前回と今回のカウンタ値変化をカ
ウンタ値変化検出装置によって検出し、この検出結果に
より前記共通記憶装置から出力される信号を正常と判断
すると共に、時限回路によって前記カウンタ値変化検出
信号の供給が一定期間に渡って途絶えた時に前記共通記
憶装置からの信号に対してアラーム信号を出力すること
を特徴とするコモンメモリアクセス方式。
Multiple CPU systems are organically combined, and each CPU
Multi-CPU access between system-specific storage and common storage shared by each CPU system
In the common memory access method of the system, each of the CPU systems outputs a counter value indicating that its own CPU is in a run state, and is equipped with a counter value change detection device, and the counter output of the other CPU system is output to the common memory. The count value stored in this memory area is read every time the other CPU system scans the program, and the counter value change detection device detects the change in the counter value between the previous time and this time. Based on this detection result, the signal output from the common storage device is determined to be normal, and when the supply of the counter value change detection signal is interrupted for a certain period of time, a time limit circuit determines that the signal output from the common storage device is normal. A common memory access method characterized by outputting an alarm signal in response to a signal.
JP63282539A 1988-11-10 1988-11-10 Common memory access system Pending JPH02129754A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63282539A JPH02129754A (en) 1988-11-10 1988-11-10 Common memory access system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63282539A JPH02129754A (en) 1988-11-10 1988-11-10 Common memory access system

Publications (1)

Publication Number Publication Date
JPH02129754A true JPH02129754A (en) 1990-05-17

Family

ID=17653782

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63282539A Pending JPH02129754A (en) 1988-11-10 1988-11-10 Common memory access system

Country Status (1)

Country Link
JP (1) JPH02129754A (en)

Similar Documents

Publication Publication Date Title
JPH01293450A (en) Troubled device specifying system
US4945540A (en) Gate circuit for bus signal lines
JPH02129754A (en) Common memory access system
JPH06324721A (en) Method for detecting falling-off of connection unit
JP2508305B2 (en) Initial value determination device
JPH01217666A (en) Fault detecting system for multiprocessor system
JPH02281343A (en) Cpu operation monitor system
JP2998804B2 (en) Multi-microprocessor system
US6658501B1 (en) Printer device having a function of preventing malfunctions owing to an abnormal signal leaking out from an external recording device
JPS62102646A (en) Self-diagnosis system
JP4983806B2 (en) System monitoring apparatus and monitoring method using dual timer
JP2569892B2 (en) Switching control monitoring circuit
JP2706027B2 (en) Programmable controller
JPH0273451A (en) Controller
JP2606615B2 (en) Computer reset control circuit and computer reset control method
JPS61267810A (en) Deciding circuit for detection of service interruption
JPS5942340B2 (en) Failure detection device
JPH0293970A (en) Multiprocessor system
JPH0898278A (en) Digital control system
CA2168076A1 (en) Power supply controller for magnetic disk apparatus
EP0112672A2 (en) System for processing machine check interruption
JPH05250195A (en) Health check control system of information processing system
JPH04355809A (en) Initial value setting circuit
JPH02278436A (en) Microprocessor diagnostic circuit
JPH01199242A (en) Abnormality detector of microcomputer system