Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2634919B2 - Multiprocessor device - Google Patents
[go: Go Back, main page]

JP2634919B2 - Multiprocessor device - Google Patents

Multiprocessor device

Info

Publication number
JP2634919B2
JP2634919B2 JP2025774A JP2577490A JP2634919B2 JP 2634919 B2 JP2634919 B2 JP 2634919B2 JP 2025774 A JP2025774 A JP 2025774A JP 2577490 A JP2577490 A JP 2577490A JP 2634919 B2 JP2634919 B2 JP 2634919B2
Authority
JP
Japan
Prior art keywords
task
processing
master
cpu
synchronization
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 - Fee Related
Application number
JP2025774A
Other languages
Japanese (ja)
Other versions
JPH03229350A (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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2025774A priority Critical patent/JP2634919B2/en
Publication of JPH03229350A publication Critical patent/JPH03229350A/en
Application granted granted Critical
Publication of JP2634919B2 publication Critical patent/JP2634919B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、複数のCPU間の同期処理を行うマルチプロ
セッサ装置に関するものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multiprocessor that performs synchronous processing between a plurality of CPUs.

従来の技術 従来、マルチプロセッサシステムにおいて同期処理が
必要な場合、各CPUがシステムクロックに同期或は非同
期しているにもかかわらず、ソフトウェアによって同期
のための処理がされていた。
2. Description of the Related Art Conventionally, when synchronous processing is required in a multiprocessor system, processing for synchronization is performed by software even though each CPU is synchronized or asynchronous with a system clock.

第6図は、従来の一例を示した図である。4つのCPU
A、B、C、Dでマルチプロセッサシステムを構成し、C
PUAにはタスク1、CPUBにはタスク2、CPUCにはタスク
3、CPUDにはタスク4を割り当てている。更にタスク3
は他のタスクに比べ早く終了することが前もって解って
おり、CPUCに同期処理をさせるとし、タスク1〜4が全
て終了した後に、各タスク1〜4の結果を用いて新たな
タスクを開始するとする。タスク1〜4の処理をスター
トし、先ず最初にタスク3が終了し、CPUCは同期処理を
開始する。CPUAがタスク1を終了し、CPUCに対し終了し
たことをソフトウェアを用いて通信する。次にCPUDがタ
スク4を終了し、CPUCに対し終了したことをソフトウェ
アを用いて通信する。最後にCPUBがタスクを終了し、CP
UCに対し終了したことをソフトウェアを用いて通信す
る。CPUCは各CPUA、B、Dからの通信結果をメモリに格
納しておき、ある一定間隔或は連続してメモリ内容をソ
フトウェアによりチェックすることにより、各CPUに割
り当てたタスクが終了しているかどうかを判断する。各
タスクが終了していると、タスク1〜4終了後の処理、
例えばタスク1〜4までの処理結果を用いて実行するタ
スクを新たにCPUCは起動する。
FIG. 6 is a diagram showing an example of the related art. 4 CPUs
A, B, C, and D constitute a multiprocessor system, and C
Task 1 is assigned to PUA, task 2 is assigned to CPUB, task 3 is assigned to CPUC, and task 4 is assigned to CPUD. Task 3
Knows in advance that it will finish earlier than other tasks, let's say that you want the CPUC to perform synchronization processing, and after all tasks 1 to 4 finish, start a new task using the results of each task 1 to 4. I do. The processing of tasks 1 to 4 is started. First, task 3 ends, and the CPUC starts synchronous processing. CPUA finishes task 1 and communicates the completion to CPUC using software. Next, the CPUD completes the task 4, and communicates the completion to the CPUC using software. Finally, CPUB finishes the task and CP
The completion is communicated to the UC using software. CPUC stores the communication results from CPUs A, B, and D in the memory, and checks the contents of the memory by software at certain intervals or continuously to determine whether the tasks assigned to each CPU have been completed. Judge. When each task is completed, processing after completion of tasks 1 to 4,
For example, the CPUC newly starts a task to be executed using the processing results of tasks 1 to 4.

発明が解決しようとする課題 この様にソフトウェアによって同期を行う場合、各タ
スクの終了から、新たに同期後の処理を行うまでに、タ
スク終了通信と通信結果のチェックが必要であり、ソフ
トウェア負担が増大し、また、ソフトウェア処理による
オーバーヘッドが発生していた。
Problems to be Solved by the Invention When synchronization is performed by software as described above, it is necessary to perform task end communication and check the communication result from the end of each task to performing a new post-synchronization process. And the overhead caused by software processing.

本発明は上記従来の課題を解決するもので、複数のCP
U間の同期処理を行う場合、同期処理受理をソフトウェ
ア処理で行わず、ハードウェアでシステムクロックに同
期或は非同期に行うことにより、より高速処理が可能な
マルチプロセッサ装置を提供することを目的としてい
る。
The present invention solves the above-mentioned conventional problems, and includes a plurality of CPs.
When performing synchronous processing between U, the synchronous processing is not performed by software processing, but is performed synchronously or asynchronously with the system clock by hardware. I have.

課題を解決するための手段 本発明のマルチプロセッサ装置は、複数個のCPUを有
し、処理を行うマルチプロセッサ装置において、各CPU
は入力端子と出力端子を別々に持ち、各CPUの入力端子
は、他のCPUの出力端子と順次接続されてリング状接続
を形成し、マスタCPUは自らのタスクを終了すると、出
力端子から所定の信号を出力し、また入力端子にその所
定の信号が入力されることによって他の全ての非マスタ
CPUがタスク処理を終了したことを認識するものであ
り、非マスタCPUは、自らのタスクを終了すると自らの
入力端子と出力端子を接続するものであることを特徴と
し、また、複数個のCPUを有し、処理を行うマルチプロ
セッサ装置において、各CPUにはシステムクロック信号
が入力されると共に、それぞれのCPU間が接続され、マ
スタCPUは自らのタスクを終了すると、システムクロッ
ク信号に同期して、所定信号を他の全ての非マスタCPU
へ出力し、また、前記システムクロック信号とは別のタ
イミングで他の非マスタCPUからの出力を入力するもの
であり、前記非マスタCPUは、自らのタスクの処理が終
了すると、終了信号を出力するものであることを特徴と
するものである。
Means for Solving the Problems A multiprocessor device according to the present invention has a plurality of CPUs, and in a multiprocessor device that performs processing,
Has an input terminal and an output terminal separately, the input terminal of each CPU is connected to the output terminal of the other CPU sequentially to form a ring connection, and when the master CPU completes its task, it Of the other non-master by inputting the predetermined signal to the input terminal.
The non-master CPU recognizes that the CPU has completed the task processing, and the non-master CPU connects its own input terminal and output terminal when the own task is completed. In a multiprocessor device that performs processing, a system clock signal is input to each CPU, and the respective CPUs are connected, and when the master CPU completes its task, it synchronizes with the system clock signal. , A given signal to all other non-master CPUs
And outputs an output from another non-master CPU at a timing different from that of the system clock signal.The non-master CPU outputs an end signal when the processing of its own task is completed. It is characterized by doing.

作用 請求項1の本発明は、マスタCPUが自らのタスクの処
理を終了すると、出力端子から所定信号を出力し、他の
非マスタの一つがそれを入力し、その他の非マスタは自
らのタスク処理を終了すると、自らの入力端子と出力端
子を接続するので、全ての非マスタのタスク処理が終了
すると、マスタCPUの入力端子に所定信号が戻ってき
て、全CPUのタスク処理が終了したことを認識する。
According to the first aspect of the present invention, when the master CPU finishes processing of its own task, it outputs a predetermined signal from an output terminal, one of the other non-masters inputs it, and the other non-master receives its own task. When processing is completed, its own input terminal and output terminal are connected, so when all non-master task processing is completed, a predetermined signal is returned to the input terminal of the master CPU and task processing of all CPUs is completed Recognize.

請求項2の本発明は、マスタCPUは自らのタスクの処
理を終了すると、システムクロック信号に応じて、終了
信号を出力し、その他の非マスタCPUはその終了信号を
入力すると共に、自らのタスクの処理が終了すると、自
らの終了信号を出力し、マスタCPUは全ての他の非マス
タCPUが終了信号を出力したことによって全てのCPUのタ
スク処理が終了したことを認識する。
According to the second aspect of the present invention, when the master CPU finishes processing of its own task, it outputs an end signal in response to the system clock signal, and other non-master CPUs receive the end signal and output their own tasks. Is completed, the master CPU outputs its own end signal, and the master CPU recognizes that the task processing of all CPUs has ended by the output of the end signal by all other non-master CPUs.

実施例 以下、本発明の実施例について、図面を参照しながら
説明する。
Embodiments Hereinafter, embodiments of the present invention will be described with reference to the drawings.

第3図は、請求項1の発明の概略を示すブロック図で
ある。同図において、各CPUA、B、C、D、23、24、2
5、26は、それぞれの入力端子1と出力端子2を順次接
続し、リング状に接続されている。
FIG. 3 is a block diagram showing an outline of the first aspect of the present invention. In the figure, CPUs A, B, C, D, 23, 24, 2
Reference numerals 5 and 26 sequentially connect the input terminal 1 and the output terminal 2 and are connected in a ring shape.

第1図は、その同期処理信号出力端子2と同期処理信
号入力端子1の回路図である。該同期処理信号入力端子
(以下、入力端子という)1と該同期処理信号出力端子
(以下、出力端子という)2は、Pチャンネルトランジ
スタ3と、Nチャンネルトランジスタ4による接続スイ
ッチと、出力バッファ5により入力端子1からの入力信
号をそのまま出力端子2から出力できる構造を持ってい
る。
FIG. 1 is a circuit diagram of the synchronization processing signal output terminal 2 and the synchronization processing signal input terminal 1. The synchronization processing signal input terminal (hereinafter referred to as input terminal) 1 and the synchronization processing signal output terminal (hereinafter referred to as output terminal) 2 are connected by a connection switch including a P-channel transistor 3 and an N-channel transistor 4 and an output buffer 5. It has a structure in which an input signal from the input terminal 1 can be output from the output terminal 2 as it is.

先ず、マスタCPUに設定された場合の動作を、以下、
説明する。
First, the operation when set to the master CPU will be described below.
explain.

同期後の処理をさせるマスタCPUに設定するため、マ
スタフラグ6を予めセットしておく。マスタCPUは、他
のCPU同様に行っている並列タスクの実行の最終ステッ
プで同期フラグ7をソフトウェア的に設定する。マスタ
フラグ6はインバータ回路8を介して、Pチャンネルト
ランジスタ3とNチャンネルトランジスタ4で構成され
たスイッチゲートの動作を決定するAND回路10に入力さ
れる。同期フラグ7もAND回路10に入力され、マスタCPU
に設定され、且つ、同期フラグ7が設定され、同期処理
後のタスク実行を行うマスタCPU状態に選択された時点
で該スイッチゲートはオフされ、入力端子1と出力端子
2はそれぞれ独立した端子となる。出力端子2からはマ
スタCPU状態であることをAND回路11と出力バッファ5を
介して出力される。入力端子1からの入力信号はマスタ
フラグ6の値と共にAND回路12に入力され、入力信号を
トリガとしてマスタCPUにシステムクロックと非同期に
割込みをかけることができる。
The master flag 6 is set in advance in order to set the master CPU that performs the processing after synchronization. The master CPU sets the synchronization flag 7 by software at the last step of the execution of the parallel task performed similarly to the other CPUs. The master flag 6 is input via an inverter circuit 8 to an AND circuit 10 that determines the operation of a switch gate composed of a P-channel transistor 3 and an N-channel transistor 4. The synchronization flag 7 is also input to the AND circuit 10, and the master CPU
At the time when the synchronization flag 7 is set and the master CPU is selected to perform the task after the synchronization processing, the switch gate is turned off, and the input terminal 1 and the output terminal 2 are independent terminals. Become. The output terminal 2 outputs the status of the master CPU via the AND circuit 11 and the output buffer 5. An input signal from the input terminal 1 is input to the AND circuit 12 together with the value of the master flag 6, and the input signal can be used as a trigger to interrupt the master CPU asynchronously with the system clock.

次に、あるCPUがマスタCPUに設定されない場合の動作
を、第1図を用いて説明する。この場合、マスタフラグ
6は常にリセットされており、同期フラグ7はタスク開
始時、リセットされているため、AND回路10により該ス
イッチゲートはオフされている。この時出力端子2は高
インピーダンス状態となる。また、入力端子1では、マ
スタフラグ6によりAND回路12がオフされており、割込
み発生はディスエーブルされている。タスクが終了する
と、最終ステップにおいて、ソフトウェアにより同期フ
ラグ7がセットされる。これを受けてAND回路10は該ス
イッチゲートをオンし、入力端子1と出力端子2が接続
され、入力信号がそのまま出力される。
Next, the operation when a certain CPU is not set as the master CPU will be described with reference to FIG. In this case, since the master flag 6 is always reset and the synchronization flag 7 is reset at the start of the task, the switch gate is turned off by the AND circuit 10. At this time, the output terminal 2 is in a high impedance state. In addition, at the input terminal 1, the AND circuit 12 is turned off by the master flag 6, and interrupt generation is disabled. When the task is completed, in the final step, the synchronization flag 7 is set by software. In response to this, the AND gate 10 turns on the switch gate, the input terminal 1 and the output terminal 2 are connected, and the input signal is output as it is.

第3図は、第1図の回路を用いたマルチプロセッサ装
置の構成図である。CPUA23、CPUB24、CPUC25、CPUD26の
入力端子1と出力端子2をリング状に接続する。ここで
マスタCPUとして、CPUC25を選択するとする。CPUC25が
並行タスクを処理すると、内部にある同期フラグ7をセ
ットし、CPUC25からマスタCPU状態であるハイレベル信
号を出力する。CPUC25の入力端子1と出力端子2は、マ
スタCPU設定により切り離されている。一方、他のCPUA2
3、CPUB24、CPUD26は、それぞれ出力が高インピーダン
ス状態となっている。タスクが終了したCPUに関しては
入力端子1と出力端子2が接続され、入力信号がそのま
ま出力される。全タスクが終了した状態では、CPUC25の
出力端子2から出力されたハイレベル信号は、CPUD26→
CPUA23→CPUB24を通り、最終的にCPUC25に戻ってくる。
この戻ってきたハイレベル信号をトリガとしてCPUC25内
に同期処理割込みがハードウェアにより発生し、CPUC25
では同期後の処理が実行される。
FIG. 3 is a configuration diagram of a multiprocessor device using the circuit of FIG. The input terminals 1 and output terminals 2 of CPUA23, CPUB24, CPUC25, and CPUD26 are connected in a ring. Here, CPUC25 is selected as the master CPU. When the CPUC 25 processes the parallel task, it sets the internal synchronization flag 7 and outputs a high-level signal indicating the master CPU state from the CPU C25. The input terminal 1 and the output terminal 2 of the CPU C25 are separated by the setting of the master CPU. On the other hand, other CPUA2
3. The outputs of CPUB24 and CPUD26 are in a high impedance state, respectively. For the CPU for which the task has been completed, the input terminal 1 and the output terminal 2 are connected, and the input signal is output as it is. When all tasks have been completed, the high-level signal output from the output terminal 2 of the CPU C25 is
It passes through CPUA23 → CPUB24 and finally returns to CPUC25.
The returned high level signal triggers a synchronous processing interrupt in the CPUC25 by the hardware, and the CPUC25
Then, processing after synchronization is executed.

マスタCPUはフラグ設定により任意に選択でき、シス
テムの柔軟性が向上する。同期処理をハードウェアで大
部分処理することにより、システムのスループットが向
上し、高速処理が可能となる。また、本発明のシステム
の場合、各CPUのクロックが非同期であってもよく、非
同期システムを容易に実現することができる。
The master CPU can be arbitrarily selected by setting a flag, thereby improving the flexibility of the system. By performing most of the synchronization processing by hardware, the throughput of the system is improved, and high-speed processing can be performed. Further, in the case of the system of the present invention, the clock of each CPU may be asynchronous, and an asynchronous system can be easily realized.

第4図は、請求項2の本発明の概略を示すブロック図
である。各CPUA′、B′、C′、D′27、28、29、30へ
はシステムクロック信号が入力されている。また、それ
ぞれの入出力端子13は互いに接続されている。
FIG. 4 is a block diagram showing an outline of the present invention of claim 2. A system clock signal is input to each of CPUs A ', B', C ', D'27, 28, 29, 30. The input / output terminals 13 are connected to each other.

第2図は、その同期処理信号入出力端子13の回路図で
ある。同期処理信号入出力端子(以下、入出力端子とい
う)13は、システムクロックφ、によって入力と出力
が交互に切り替わるようになっている。
FIG. 2 is a circuit diagram of the synchronization processing signal input / output terminal 13. The input and output of the synchronization processing signal input / output terminal (hereinafter referred to as input / output terminal) 13 are alternately switched according to the system clock φ.

先ず、あるCPUがマスタCPUに設定された場合の動作
を、以下、説明する。
First, the operation when a certain CPU is set as the master CPU will be described below.

同期後の処理をさせるマスタCPUに設定するため、マ
スタフラグ6を予めセットしておく。マスタCPUが他のC
PU同様に行っている並列タスクの実行の最終ステップ
で、同期フラグ7をソフトウェア的に設定する。マスタ
CPUに設定され、同期フラグ7が設定されると、マスタC
PU状態となり、システムクロックφ20によりAND回路19
からハイレベルが出力される。この時AND回路17により
出力バッファ14はオフされ、高インピーダンス状態とな
る。入力バッファ15もマスタフラグ6の信号によりイン
バータ回路16を介してオフされる。AND回路18にはシス
テムクロック21のタイミングで入力され、入力信号が
ハイレベルであると割込みが発生する。
The master flag 6 is set in advance in order to set the master CPU that performs the processing after synchronization. Master CPU is another C
In the final step of the execution of the parallel task performed similarly to the PU, the synchronization flag 7 is set by software. Master
When the CPU is set and the synchronization flag 7 is set, the master C
It becomes PU state and AND circuit 19 by system clock φ20.
Output a high level. At this time, the output buffer 14 is turned off by the AND circuit 17, and enters a high impedance state. The input buffer 15 is also turned off via the inverter circuit 16 by the signal of the master flag 6. The signal is input to the AND circuit 18 at the timing of the system clock 21, and an interrupt occurs when the input signal is at a high level.

次に、CPUがマスタCPUに設定されない場合の動作を、
第2図を用いて説明する。
Next, the operation when the CPU is not set as the master CPU,
This will be described with reference to FIG.

この場合、マスタフラグ6は常にリセットされてお
り、同期フラグ7はタスク開始時リセットされている。
一方、人力バッファ15を介して入力信号がラッチ22にシ
ステムクロックφ20のタイミングでラッチされる。そし
てシステムクロック21のタイミングでラッチ22のデー
タが保持出力される。人力信号がハイレベルの時、該ラ
ッチデータとマスタフラグ6によりシステムクロック
21のタイミングでAND回路17がオンするが、タスク開始
時は同期フラグ7がリセットされているため、バッファ
14からはロウレベルが出力される。またAND回路19はオ
フされる。タスクが終了し、最終ステップにおいてソフ
トウェアにより同期フラグ7がセットされると、システ
ムクロック21のタイミングで同期フラグ7の値として
ハイレベルが出力される。人力信号により出力バッファ
14をイネーブルにすることにより、データの受渡しが確
実に行われているかがチェックできる。AND回路18は、
マスタフラグ6によりオフされる。以上のような回路構
成により、マスタCPUはシステムクロックφ20のタイミ
ングで出力、システムクロック21で入力し、マスタCP
U以外の他のCPUはシステムクロック21で出力、システ
ムクロックφ20で入力する。同期処理割込みは、システ
ムクロック21のタイミングに同期して発生する。
In this case, the master flag 6 is always reset, and the synchronization flag 7 is reset at the start of the task.
On the other hand, the input signal is latched by the latch 22 via the manual buffer 15 at the timing of the system clock φ20. Then, the data of the latch 22 is held and output at the timing of the system clock 21. When the human input signal is at a high level, the system clock is generated by the latch data and the master flag 6.
The AND circuit 17 turns on at the timing of 21, but at the start of the task, the synchronization flag 7 is reset, so the buffer
14 outputs a low level. The AND circuit 19 is turned off. When the task is completed and the synchronization flag 7 is set by software in the final step, a high level is output as the value of the synchronization flag 7 at the timing of the system clock 21. Output buffer by manual signal
By enabling 14, it is possible to check whether data transfer is being performed reliably. AND circuit 18
It is turned off by the master flag 6. With the above circuit configuration, the master CPU outputs at the timing of the system clock φ20,
CPUs other than U output at the system clock 21 and input at the system clock φ20. The synchronous processing interrupt occurs in synchronization with the timing of the system clock 21.

第4図は、第2図の回路を用いたマルチプロセッサ装
置の構成図である。CPUA′27、CPUB′28、CPUC′29、CP
UD′30の入出力端子13を1本の信号線L上に接続する。
また、同期用のクロックとしてシステムクロックφ20
を、各CPUに入力する。おこでマスタCPUとしてCPUC′29
を選択する。CPUC′29が並行タスクを処理すると、内部
にある同期フラグをセットし、CPUC′29からマスタCPU
状態であるハイレベル信号をシステムクロックφ20に同
期して出力する。一方他のCPUA′、B′、D′27、28、
30は、CPUC′29の信号を受けて、タスクが終了していれ
ばシステムクロック21のタイミングで各CPU内の同期
フラグ7の値を出力する。この時一つでもロウレベルを
出力するCPUがあれば、ロウレベルを出力するように出
力トランジスタのサイズが設定されている。従って全CP
U27、28、30の出力がハイレベルにならないと、ハイレ
ベル信号はCPUC′29へ入力されない。全タスクが終了し
た状態でCPUA′27、CPUB′28、CPUD′30からハイレベル
信号が出力され、CPUC′29はこれを受けて内部に同期処
理割込みをハードウェアにより発生し、CPUC′29で同期
後の処理が開始される。マスタCPUはフラグ設定により
任意に選択でき、システムの柔軟性が向上する。また、
同期処理の大部分をハードウェアで処理することによ
り、高速処理が可能となる。また、マスタCPUの信号を
受け、各CPUから同期割込み信号が発生するので、アク
ノレッジ処理が容易に実現できる。
FIG. 4 is a configuration diagram of a multiprocessor device using the circuit of FIG. CPUA'27, CPUB'28, CPUC'29, CP
The input / output terminal 13 of UD'30 is connected to one signal line L.
The system clock φ20 is used as a synchronization clock.
Is input to each CPU. CPUC'29 as master CPU
Select When CPUC'29 processes a parallel task, it sets an internal synchronization flag and sends the master CPU
A high level signal in a state is output in synchronization with the system clock φ20. On the other hand, the other CPUs A ', B', D'27, 28,
30 receives the signal of the CPU C'29 and outputs the value of the synchronization flag 7 in each CPU at the timing of the system clock 21 if the task has been completed. At this time, if at least one CPU outputs a low level, the size of the output transistor is set so as to output a low level. Therefore all CP
If the outputs of U27, 28 and 30 do not become high level, the high level signal is not input to CPUC'29. When all tasks have been completed, CPUA'27, CPUB'28, and CPUD'30 output high-level signals, and CPUC'29 receives this and internally generates a synchronous processing interrupt by hardware. Processing after synchronization is started. The master CPU can be arbitrarily selected by setting a flag, thereby improving the flexibility of the system. Also,
By performing most of the synchronization processing by hardware, high-speed processing becomes possible. In addition, since a synchronous interrupt signal is generated from each CPU upon receiving a signal from the master CPU, acknowledgment processing can be easily realized.

第5図は、本発明の同期処理シーケンスを示した図で
ある。CPUCをマスタCPUとし、並行処理できるタスク1
〜4をそれぞれCPU1〜4に割り当てる。タスク1〜4
は、同期後新たなタスクを開始する処理内容であるとす
る。CPUCに割り当てたタスク3の開始後に、先ず、マス
タフラグ6をセットするタスク3が終了すると、同期フ
ラグ7が設定され、マスタCPU状態になり、同期処理が
行われる。他のCPUも各々のタスクが終了し次第、同期
フラグをセットし、最後のタスクが終了した時点で同期
処理が完了する。この後、マスタCPUCでは新たなタスク
に起動がかかる。同期から新タスクの起動までを高速に
行うことができ、システムスループットが向上する。
FIG. 5 is a diagram showing a synchronization processing sequence of the present invention. Task 1 that can be processed in parallel by using CPUC as the master CPU
Are assigned to CPUs 1 to 4, respectively. Tasks 1-4
Is the processing content for starting a new task after synchronization. After the start of the task 3 assigned to the CPUC, first, when the task 3 for setting the master flag 6 ends, the synchronization flag 7 is set, the state is changed to the master CPU state, and the synchronization process is performed. The other CPUs also set the synchronization flag as soon as each task is completed, and the synchronization processing is completed when the last task is completed. Thereafter, the master CPUC starts a new task. From the synchronization to the start of a new task can be performed at high speed, and the system throughput is improved.

発明の効果 以上のように本発明によれば、複数のCPU間の同期処
理を行う場合、高速に同期処理を行うことができ、シス
テムスループットを改善、向上することができる。ま
た、マスタCPUを選択できるようにすることによってマ
スタCPUを容易に変更することができ、システムの柔軟
性を向上させることができる。
Effects of the Invention As described above, according to the present invention, when performing synchronization processing among a plurality of CPUs, the synchronization processing can be performed at high speed, and the system throughput can be improved and improved. Further, by allowing the selection of the master CPU, the master CPU can be easily changed, and the flexibility of the system can be improved.

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

第1図は、本発明のマルチプロセッサ装置の一実施例に
おける同期処理信号出力端子と同期処理信号入力端子の
回路図、第2図は、別の本発明のマルチプロセッサ装置
の一実施例における同期処理信号入出力端子の回路図、
第3図は、第1図の回路を用いたマルチプロセッサ装置
のブロック図、第4図は、第2図の回路を用いたマルチ
プロセッサ装置のブロック図、第5図は、本発明の同期
処理シーケンスを示したタイミングチャート、第6図
は、従来の同期処理シーケンスを示したタイミングチャ
ートである。 1……同期処理信号入力端子、2……同期処理信号出力
端子、6……マスタフラグ、7……同期フラグ、20、21
……システムクロックφ、、22……ラッチ回路、23〜
30……CPU。
FIG. 1 is a circuit diagram of a synchronization processing signal output terminal and a synchronization processing signal input terminal in one embodiment of the multiprocessor device of the present invention, and FIG. 2 is a synchronous circuit in another embodiment of the multiprocessor device of the present invention. Circuit diagram of processing signal input / output terminal,
FIG. 3 is a block diagram of a multiprocessor device using the circuit of FIG. 1, FIG. 4 is a block diagram of a multiprocessor device using the circuit of FIG. 2, and FIG. FIG. 6 is a timing chart showing a conventional synchronization processing sequence. 1 ... Synchronization processing signal input terminal, 2 ... Synchronization processing signal output terminal, 6 ... Master flag, 7 ... Synchronization flag, 20, 21
…… System clock φ, 22 …… Latch circuit, 23 ~
30 ... CPU.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数個のCPUを有し、処理を行うマルチプ
ロセッサ装置において、各CPUにはシステムクロック信
号が入力されると共に、それぞれのCPU間が接続され、
マスタCPUは自らのタスクを終了すると、システムクロ
ック信号に同期して、所定信号を他の全ての非マスタCP
Uへ出力し、また、前記システムクロック信号とは別の
タイミングで他の非マスタCPUからの出力を入力するも
のであり、前記非マスタCPUは、自らのタスクの処理が
終了すると、終了信号を出力するものであることを特徴
とするマルチプロセッサ装置。
In a multiprocessor device having a plurality of CPUs and performing processing, a system clock signal is input to each CPU, and the CPUs are connected to each other.
When the master CPU finishes its task, it synchronizes with the system clock signal and sends a predetermined signal to all other non-master CPs.
U, and inputs an output from another non-master CPU at a different timing from the system clock signal.The non-master CPU outputs an end signal when the processing of its own task ends. A multiprocessor device for outputting.
【請求項2】マスタCPUは、任意に選択可能であること
を特徴とする請求項1記載のマルチプロセッサ装置。
2. The multiprocessor device according to claim 1, wherein the master CPU can be arbitrarily selected.
JP2025774A 1990-02-05 1990-02-05 Multiprocessor device Expired - Fee Related JP2634919B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2025774A JP2634919B2 (en) 1990-02-05 1990-02-05 Multiprocessor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2025774A JP2634919B2 (en) 1990-02-05 1990-02-05 Multiprocessor device

Publications (2)

Publication Number Publication Date
JPH03229350A JPH03229350A (en) 1991-10-11
JP2634919B2 true JP2634919B2 (en) 1997-07-30

Family

ID=12175198

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2025774A Expired - Fee Related JP2634919B2 (en) 1990-02-05 1990-02-05 Multiprocessor device

Country Status (1)

Country Link
JP (1) JP2634919B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59176846A (en) * 1983-03-28 1984-10-06 Agency Of Ind Science & Technol Parallel data processor
JPS634365A (en) * 1986-06-24 1988-01-09 Nec Corp Mutual monitor system in multi microprocessor
JPS63240663A (en) * 1987-03-27 1988-10-06 Nec Corp Processor

Also Published As

Publication number Publication date
JPH03229350A (en) 1991-10-11

Similar Documents

Publication Publication Date Title
JP2634919B2 (en) Multiprocessor device
KR940011041B1 (en) Microcomputer
US5481753A (en) I/O device having identification register and data register where identification register indicates output from the data register to be an identifier or normal data
JP2652998B2 (en) Interrupt circuit
JPS62160564A (en) Pipeline control system
CN113722053A (en) Data access control circuit, method, electronic device, and computer-readable storage medium
JP2579003B2 (en) Data transfer device between memories
JPS58166424A (en) Timing control system for interface part
JPS59183455A (en) Multi-computer system
KR920000480B1 (en) How to Arbitrate Interrupt Buses
JPS63271635A (en) High-speed arithmetic processor
JP2950875B2 (en) Synchronous control device
JPS60168240A (en) Interrupt processing circuit
JPH0267665A (en) Interface circuit
JPH0374951A (en) Synchronizing circuit
JPS59138147A (en) Data transmitter
JPS62297954A (en) Memory control system
JPS6316780B2 (en)
JPH07271745A (en) Parallel arithmetic type signal processor
JPS63120355A (en) Bus interface circuit
JPS6197777A (en) Interruption processing circuit
JPH04124761A (en) Bus acquiring method for multi-processor system
JPS61223965A (en) Data transfer circuit
JPH07117938B2 (en) Synchronization method of processing between computers
JPS6148188B2 (en)

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees