JPS6386065A - Synchronizing system for multi-processor system - Google Patents

Synchronizing system for multi-processor system

Info

Publication number
JPS6386065A
JPS6386065A JP61232601A JP23260186A JPS6386065A JP S6386065 A JPS6386065 A JP S6386065A JP 61232601 A JP61232601 A JP 61232601A JP 23260186 A JP23260186 A JP 23260186A JP S6386065 A JPS6386065 A JP S6386065A
Authority
JP
Japan
Prior art keywords
processor
sub
flag
initial information
memory
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
JP61232601A
Other languages
Japanese (ja)
Inventor
Akira Sugiyama
彰 杉山
Toshiya Takahashi
俊哉 高橋
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 JP61232601A priority Critical patent/JPS6386065A/en
Publication of JPS6386065A publication Critical patent/JPS6386065A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/177Initialisation or configuration control

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multi Processors (AREA)

Abstract

PURPOSE:To surely secure the rise synchronism of a multi-processor system by providing a flag showing whether the initial information on a subprocessor is set or not and checking said flag via a main processor. CONSTITUTION:The set and unset states of the initial information on a subprocessor 2 are stored in a flip-flop 7 when the system initial processing is carried out in an application and reset modes of a power supply. A flag showing the state of the flip-flop 7, i.e., the set or unset state of the initial information on the processor 2 is set to a bit 7 of an 8-bit I/O memory 8. The memory 8 is connected to a main processor 1 and the data on the bit 7 is fetched by the processor 1 to be checked. Thus the rise synchronism is attained between both processors 1 and 2.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、独立のプロセッサを複数台もつマルチプロ
セッサシステムの同期方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a synchronization method for a multiprocessor system having a plurality of independent processors.

〔従来の技術〕[Conventional technology]

マルチプロセッサは、独立のプロセッサ(演算装置)を
複数台もつコンピュータシステムであって、一部の記憶
装置や周辺装置を各プロセッサ間で共有し、これにより
プロセッサ当りのメモリコストを下げ、システム全体の
処理能力を向上させると共に、1台のプロセッサがダウ
ンしても、これを他のプロセッサで代行してシステムの
(8頬性を高め得ると云う特徴を有している。
A multiprocessor is a computer system that has multiple independent processors (arithmetic units), and some storage devices and peripheral devices are shared between each processor, thereby reducing the memory cost per processor and increasing the overall system efficiency. In addition to improving processing capacity, it has the feature that even if one processor goes down, it can be replaced by another processor, increasing the system's efficiency.

第5図は従来のマルチプロセッサシステムの概略構成図
を示すもので、1はメインプロセッサ、2はサブプロセ
ッサ、3は各プロセッサ1,2のリセット回路であり、
上記各プロセッサ1.2はそれぞれのバス4.5を介し
て共有の2ボートメモリ6に接続され、両プロセッサ1
.2間のデータの授受は2ボートメモリ6を通して行わ
れるようになっている。
FIG. 5 shows a schematic configuration diagram of a conventional multiprocessor system, in which 1 is a main processor, 2 is a sub-processor, 3 is a reset circuit for each processor 1 and 2,
Each processor 1.2 is connected via a respective bus 4.5 to a shared two-boat memory 6, with both processors 1.
.. Data is exchanged between the two through a two-board memory 6.

上記のように構成されたマルチプロセッサシステムの各
プロセッサのイニシャル処理手順を第6図及び第7図に
示すフローチャートに基いて説明する。
The initial processing procedure of each processor in the multiprocessor system configured as described above will be explained based on the flowcharts shown in FIGS. 6 and 7.

マルチプロセッサシステムの電源投入時及びリセット時
のイニシャル処理に際し、まず、第6図の処理プログラ
ムがスタートすると、ステップ40において、メインプ
ロセッサ1とサブプロセンサ2間で必要なイニシャル情
報を2ポートメモリ6にセットする。
When the multiprocessor system is powered on and reset, the processing program shown in FIG. set.

これに対して、メインプロセッサ1も同様に、電源投入
時及びリセット時のイニシャル処理において、第7図の
処理プログラムがスタートすると、まず、ステップ50
において、サブプロセッサ2がイニシャル情報をセット
処理するのに十分な時間を待つ処理がなされ、その後、
ステップ51に移行して、2ポートメモリ6にセットさ
れたイニシャル情報をチェックし、次のステップ52で
イニシャル情報が正常か否かを判定する。ここで、正常
と判定された場合は、ステップ53に進み、メインプロ
セッサ1とサブプロセッサ2間のイニシャル処理を行う
。また、イニシャル情報が異常に判定された場合は、ス
テップ54に進み、サブプロセッサ2が異常であるとし
て、システム停止等のエラー処理を行う。
On the other hand, in the main processor 1, when the processing program shown in FIG. 7 starts in the initial processing at power-on and reset, first, step 50
, a process is performed in which the sub-processor 2 waits for sufficient time to set the initial information, and then
In step 51, the initial information set in the 2-port memory 6 is checked, and in the next step 52, it is determined whether the initial information is normal. Here, if it is determined to be normal, the process proceeds to step 53, where initial processing between the main processor 1 and the sub-processor 2 is performed. If the initial information is determined to be abnormal, the process proceeds to step 54, where it is determined that the sub-processor 2 is abnormal, and error processing such as stopping the system is performed.

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

上記のような従来のマルチプロセッサシステムの立上が
り同期方式では、メインプロセッサ1が2ポートメモリ
6にセットされたサブプロセッサ2のイニシャル情報を
チェックしなければ、サブプロセッサ2が立上がったか
どうかを判定できない。このため、リセット時に前のデ
ータがメモリ6上に正しい状態で残っている場合には、
サブプロセッサ2が動作していなくとも、メインプロセ
ッサ1が異常を判別できずに正常と処理してしまうと云
う問題があった。
In the startup synchronization method of the conventional multiprocessor system as described above, it is impossible to determine whether the subprocessor 2 has started up unless the main processor 1 checks the initial information of the subprocessor 2 set in the 2-port memory 6. . Therefore, if the previous data remains in the correct state on memory 6 at the time of reset,
There is a problem in that even if the sub-processor 2 is not operating, the main processor 1 is unable to determine an abnormality and treats the system as normal.

この発明は上記のような問題点を解決するためになされ
たもので、マルチプロセッサの立上がり同期を、判別ミ
スすることなく確実に取ることができるマルチプロセッ
サシステムの同期方式を提供することを目的とする。
This invention was made to solve the above-mentioned problems, and its purpose is to provide a synchronization method for a multiprocessor system that can reliably synchronize the start-up of multiprocessors without making a misjudgment. do.

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

この発明に係るマルチプロセッサシステムの同期方式は
、サブプロセッサのイニシャル情報セット完了の有無を
表わすフラグセット手段と、上記フラグセット手段のフ
ラグを上記メインプロセッサでチェックすることにより
サブプロセッサが立上がったか否かを判定する手段を設
けたものである。
The synchronization method of the multiprocessor system according to the present invention includes a flag setting means for indicating whether or not the initial information setting of the subprocessor has been completed, and a flag of the flag setting means is checked by the main processor to determine whether the subprocessor has started up or not. It is provided with a means for determining whether the

〔作 用〕[For production]

この発明においては、システムの電源投入時及びリセッ
ト時のイニシャル処理において、イニシャル情報を共有
メモリにセットする時、サブプロセッサのイニシャル情
報セット完了及び未完のデータをフラグセット手段にセ
ットし、このフラグをメインプロセッサ側の判定手段に
よりチェックすることでサブプロセッサの立上がりを検
知してシステムの立上がりの同期を行わせる。従って、
メインプロセッサが従来のような判別ミスをすることな
く確実なシステム同期が可能になる。
In the present invention, when initial information is set in the shared memory during the initial processing at power-on and reset of the system, the initial information set completion and incomplete data of the sub-processor are set in the flag setting means, and this flag is set. By checking with the determination means on the main processor side, the start-up of the sub-processor is detected and the start-up of the system is synchronized. Therefore,
Reliable system synchronization is possible without the main processor making discrimination errors as in the past.

〔実施例〕〔Example〕

以下、この発明の一実施例を第1図乃至第4図について
説明する。
An embodiment of the present invention will be described below with reference to FIGS. 1 to 4.

第1図はこの発明に係るマルチプロセッサシステム同期
方式のブロック図を示す。同図において、1はメインプ
ロセッサ、2はサブプロセッサ、3はこれらプロセッサ
のリセット回路、6はそれぞれのバス4,5を介してメ
インプロセッサl及びサブプロセッサ2に接続した共有
の2ボートメモリであり、これらは第5図と同様のもの
である。
FIG. 1 shows a block diagram of a multiprocessor system synchronization method according to the present invention. In the figure, 1 is a main processor, 2 is a sub-processor, 3 is a reset circuit for these processors, and 6 is a shared two-boat memory connected to the main processor l and sub-processor 2 via buses 4 and 5, respectively. , these are similar to those shown in FIG.

また、7は電源投入時及びリセット時のシステムのイニ
シャル処理において、サブプロセッサ2のイニシャル情
報のセット完了及びセット未完の状態を記憶するフリッ
プフロップで、その入力端子Sはサブプロセッサ2に接
続され、かつリセット端子Rには、上記リセット回路3
からのリセット回路が加えられるようになっている。8
は第2図に示すように8ビツト構成のI10メモリで、
そのビット7には上記フリップフロップ7の出力端子Q
が接続され、フリップフロップ7の状態、即ちサブプロ
セッサ2のイニシャル情報セット完了又はセット未完の
状態を表わすフラグがセットされるようになっている。
Further, 7 is a flip-flop that stores the setting completion and setting incomplete states of the initial information of the sub-processor 2 during the initial processing of the system at power-on and reset, and its input terminal S is connected to the sub-processor 2. And the reset terminal R is connected to the above-mentioned reset circuit 3.
A reset circuit has been added. 8
is an 8-bit configuration I10 memory as shown in Figure 2,
Bit 7 is the output terminal Q of the flip-flop 7.
is connected, and a flag indicating the state of the flip-flop 7, that is, the state in which the initial information setting of the sub-processor 2 is completed or the setting is not completed, is set.

なお、イニシャル情報セット完了のときのフラグは“l
”となり、また、セット未完のときのフラグは“0”と
なる。 また、上記I10メモリ8はメインプロセッサ
1に接続され、I10メモリ8のビット7のデータをメ
インプロセッサ1に取り込み、これをチェックすること
により、メインプロセッサエとサブプロセッサ2との立
上がりの同期を実現させるようになっている。
Note that the flag when the initial information set is completed is “l”.
”, and the flag when the set is incomplete is “0”. Also, the I10 memory 8 is connected to the main processor 1, and the data in bit 7 of the I10 memory 8 is taken into the main processor 1 and checked. By doing so, synchronization of the start-up of the main processor and the sub-processor 2 is realized.

次に、上記のように構成された本実施例のマルチプロセ
ッサシステムのイニシャル処理動作を第3図及び第4図
のフローチャートに従い説明する。
Next, the initial processing operation of the multiprocessor system of this embodiment configured as described above will be explained with reference to the flowcharts of FIGS. 3 and 4.

ここで、第3図はサブプロセッサ2の処理手順を示すフ
ローチャートであり、第4図はメインプロセッサ1の処
理手順を示すフローチャートである。
Here, FIG. 3 is a flowchart showing the processing procedure of the sub-processor 2, and FIG. 4 is a flowchart showing the processing procedure of the main processor 1.

マルチプロセッサシステムの電源投入時又はリセット時
のイニシャル処理に際し、まずサブプロセッサ2側では
、第3図の処理プログラムがスタートすると、ステップ
20において、メインプロセッサ1とサブプロセッサ2
間で必要なイニシャル情報を2ポートメモリ6にセット
する。その後、ステップ21において、イニシャル情報
セット完了処理を実行して、その結果をフリップフロッ
プ7に出力する。ここで、イニシャル情報セント完了で
あれば、そのセット完了フラグはフリップフロップ7を
セット動作させることでセットされ、また、イニシャル
情報セント未完であれば、そのセット未完フラグは、フ
リップフロップ7をリセット動作させることでセントさ
れる。これによりセット完了のときは、フリップフロッ
プ7の出力は“1”となりセント未完のときはフリップ
フロップの出力は0″となり、これらはT10メモリ8
のビット7に記憶される。
When the multiprocessor system is powered on or reset, the subprocessor 2 first starts the processing program shown in FIG.
Initial information required between the two ports is set in the two-port memory 6. Thereafter, in step 21, initial information set completion processing is executed and the result is output to the flip-flop 7. Here, if the initial information writing is completed, the set completion flag is set by setting the flip-flop 7, and if the initial information writing is not completed, the set incomplete flag is set by resetting the flip-flop 7. You will earn cents by doing so. As a result, when the set is completed, the output of the flip-flop 7 becomes "1", and when the set is not completed, the output of the flip-flop becomes 0", and these are stored in the T10 memory 8.
is stored in bit 7 of

一方、メインプロセッサ1側では、第4図の処理プログ
ラムがスタートすると、まず、ステップ30において、
サブプロセッサ2がイニシャル情報をセット処理するの
に十分な時間を待つ処理がなされ、その後、ステップ3
1に移行して、T10メモリ8の記憶データをメインプ
ロセッサ1に読み込む。次のステップ32では、読み込
んだ記憶データのフラグビットが1”か、0”かによっ
て、イニシャル情報セント完了か否かを判定する。ここ
で、フラグ=″1″、即ちセント完了と判定された場合
は、ステップ33に進み、メインプロセッサ1とサブプ
ロセッサ2間のイニシャル処理を行い、両プロセッサ1
,2の立上がりを同期させる。また、フラグ=“O”、
即ちセット未完と判定された時は、ステップ34に進ん
で、サブプロセッサ2が異常であるとして、システムス
トップ等のエラー処理を実行する。
On the other hand, on the main processor 1 side, when the processing program shown in FIG. 4 starts, first, in step 30,
A process is performed in which the sub-processor 2 waits for sufficient time to set the initial information, and then step 3
1, the data stored in the T10 memory 8 is read into the main processor 1. In the next step 32, it is determined whether or not the initial information writing has been completed, depending on whether the flag bit of the read storage data is 1'' or 0''. Here, if the flag = "1", that is, it is determined that the cent is completed, the process proceeds to step 33, where initial processing between the main processor 1 and the sub-processor 2 is performed, and both processors
, 2 are synchronized. Also, flag="O",
That is, when it is determined that the set is incomplete, the process proceeds to step 34, where it is assumed that the sub-processor 2 is abnormal and error processing such as system stop is executed.

なお、電源オフ時又はリセット時には、フリップフロッ
プ7がリセットされるため、その出力は0”となり、T
10メモリ8のビット7も“0”になる。
Note that when the power is turned off or reset, the flip-flop 7 is reset, so its output becomes 0'' and T
Bit 7 of 10 memory 8 also becomes "0".

上記のような本実施例にあっては、サブプロセッサのイ
ニシャル情報セット完了の有無を表わすフラグを設け、
このフラグの“1″、“0″状態をメインプロセッサ2
でチェックすることでサブプロセッサ1が立上がったか
否かを判定するようにしているため、従来のようにリセ
ット時、前のデータがメモリ6上に正しい状態で残って
いても、これによってメインプロセッサ1がサブプロセ
ッサ2の異常を判別できなくなると云う問題を解決でき
ると共に、マルチプロセッサの立上がりの同期を確実に
取り得るのである。
In this embodiment as described above, a flag is provided to indicate whether or not the initial information setting of the sub-processor has been completed.
The “1” and “0” states of this flag are
Since it is decided whether or not sub-processor 1 has started up by checking with This makes it possible to solve the problem that sub-processor 1 is unable to determine whether there is an abnormality in sub-processor 2, and it is also possible to reliably synchronize the start-up of the multi-processors.

なお、上記実施例では、メインプロセッサ1とサブプロ
セッサ2がそれぞれ1台のシステムについて述べたが、
サブプロセッサ2が2台以上になっても、これら各サブ
プロセッサとメインプロセッサとの間の立上がりの同期
を上記実施例と同様に方式により取ることが可能である
Note that in the above embodiment, a system in which there is one main processor 1 and one sub-processor 2 is described;
Even if there are two or more sub-processors 2, it is possible to synchronize the start-up between each of these sub-processors and the main processor using the same method as in the above embodiment.

〔発明の効果〕〔Effect of the invention〕

以上のように、この発明によれば、マルチプロセッサシ
ステムにおいて、サブプロセッサのイニシャル情報のセ
ント完了の有無を表わすフラグを設け、このフラグをメ
インプロセッサでチェックすることによりサブプロセッ
サが立上がったか否かを判定し、立上がったとき、イニ
シャル処理を行うようにしたので、マルチプロセッサシ
ステムの立上がりの同期を確実に取ることができる。
As described above, according to the present invention, in a multiprocessor system, a flag is provided to indicate whether or not writing of the initial information of a subprocessor has been completed, and by checking this flag in the main processor, it is possible to determine whether or not the subprocessor has started up. Since the initial processing is performed when the multiprocessor system starts up, it is possible to reliably synchronize the start-up of the multiprocessor system.

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

第1図はこの発明に係るマルチプロセッサシステムの同
期方式の一例を示すブロック図、第2図は第1図におけ
るT10メモリの状態図、第3図及び第4図はこの発明
の実施例におけるシステムの処理手順を示すフローチャ
ート、第5図は従来のマルチプロセッサシステムのブロ
ック図、第6図及び第7図は、従来におけるシステムの
処理手順を示すフローチャートである。 1・・・メインプロセッサ、2・・・サブプロセッサ、
3・・・リセット回路、6・・・共有メモリ、7・・・
フリップフロップ、8・・・I10メモリ。 なお、図中同一符号は同−又は相当部分を示す。
FIG. 1 is a block diagram showing an example of a synchronization method of a multiprocessor system according to the present invention, FIG. 2 is a state diagram of the T10 memory in FIG. 1, and FIGS. 3 and 4 are system diagrams according to an embodiment of the invention. FIG. 5 is a block diagram of a conventional multiprocessor system, and FIGS. 6 and 7 are flowcharts showing the processing procedure of a conventional system. 1... Main processor, 2... Sub processor,
3... Reset circuit, 6... Shared memory, 7...
Flip-flop, 8...I10 memory. Note that the same reference numerals in the figures indicate the same or equivalent parts.

Claims (1)

【特許請求の範囲】[Claims] メインプロセッサ及びサブプロセッサを有するマルチプ
ロセッサシステムにおいて、。上記サブプロセッサのイ
ニシャル情報セット完了の有無を表わすフラグセット手
段と、上記フラグセット手段のフラグを上記メインプロ
セットでチェックすることによりサブプロセッサが立上
がったか否かを判定する手段を設けたことを特徴とする
マルチプロセッサシステムの同期方式。
In a multiprocessor system having a main processor and sub-processors. A flag setting means for indicating whether initial information setting of the sub-processor has been completed, and a means for determining whether or not the sub-processor has started up by checking the flag of the flag setting means in the main processor are provided. Features a synchronization method for multiprocessor systems.
JP61232601A 1986-09-30 1986-09-30 Synchronizing system for multi-processor system Pending JPS6386065A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61232601A JPS6386065A (en) 1986-09-30 1986-09-30 Synchronizing system for multi-processor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61232601A JPS6386065A (en) 1986-09-30 1986-09-30 Synchronizing system for multi-processor system

Publications (1)

Publication Number Publication Date
JPS6386065A true JPS6386065A (en) 1988-04-16

Family

ID=16941913

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61232601A Pending JPS6386065A (en) 1986-09-30 1986-09-30 Synchronizing system for multi-processor system

Country Status (1)

Country Link
JP (1) JPS6386065A (en)

Similar Documents

Publication Publication Date Title
US5021950A (en) Multiprocessor system with standby function
EP0868692B1 (en) Processor independent error checking arrangement
KR940011041B1 (en) Microcomputer
JPS6386065A (en) Synchronizing system for multi-processor system
JPS6113626B2 (en)
JP2988518B2 (en) Multiprocessor control method
JPS62166463A (en) Data transfer system
JPH067379B2 (en) Direct memory access control circuit
JPH02205956A (en) Fault diagnostic device for dual port memory in multiprocessor system
JPH01121965A (en) Microprocessor
JP3314948B2 (en) Data Exchange Method for Multi-CPU Programmable Controller
JPH07105001A (en) Central processing unit
JPS59121455A (en) Prefixing system
JPS60220448A (en) Mutual checking method of multi-cpu system
JPS63155330A (en) Microprogram controller
JPH03175538A (en) Duplex processor
JP2539064B2 (en) Microprocessor
JPH06124242A (en) Redundant shared memory equivalence guarantee method
JPH0679306B2 (en) Multiprocessor control method
JPH0523254U (en) Memory circuit
JPH0333939A (en) Microprocessor
JPH04158451A (en) Trace control system
JPH07230432A (en) Computing device
JPH02114364A (en) multiprocessor system
JPH022179B2 (en)