JPH04276851A - Parallel arithmetic unit - Google Patents

Parallel arithmetic unit

Info

Publication number
JPH04276851A
JPH04276851A JP3037011A JP3701191A JPH04276851A JP H04276851 A JPH04276851 A JP H04276851A JP 3037011 A JP3037011 A JP 3037011A JP 3701191 A JP3701191 A JP 3701191A JP H04276851 A JPH04276851 A JP H04276851A
Authority
JP
Japan
Prior art keywords
processors
processor
arithmetic
flag
output
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
JP3037011A
Other languages
Japanese (ja)
Inventor
伸彰 ▲高▼梨
Nobuaki Takanashi
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP3037011A priority Critical patent/JPH04276851A/en
Publication of JPH04276851A publication Critical patent/JPH04276851A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To provide a parallel arithmetic unit that allows outputting of a termination signal indicating that each of a plurality of processors terminate arithmetic processing independently without consideration for the operation of another processor and without adjusting work on data output between processors, and that enhances the processing efficiency of a plurality of processors. CONSTITUTION:A plurality of processors 11, 21, and 91 execute arithmetic operation in parallel. Flags 12, 22, and 92 output a first and second flag signals that indicate the termination of arithmetic processors 11, 21, and 91 and arithmetic operation error. Buffers 12, 29, and 99 output data for every first flag signals 18, 28, and 98 to a logical product circuit 9, and inverters 13, 23, and 93 output data for every second flag signals 15, 25, and 95 to an OR circuit 3.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は複数のプロセッサが同期
して並列演算を実行する並列演算装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a parallel computing device in which a plurality of processors synchronously execute parallel computing.

【0002】0002

【従来の技術】従来、複数のプロセッサを用いて演算を
並行して実行する並列計算機システムにおいて、一台の
メインプロセッサと複数のサブプロセッサからなり、複
数のサブプロセッサ毎に設けられた終了フラグの値によ
りサブプロセッサとのデータ通信を行う並列演算装置が
あった。この装置において終了フラグは、第1の従来例
としてサブプロセッサ毎に独立に設けられたデータメモ
リ上におかれる場合と、第2の従来例としてメインプロ
セッサが持つデータメモリ内におかれる場合がある。
[Prior Art] Conventionally, in a parallel computer system that uses multiple processors to execute operations in parallel, it consists of one main processor and multiple sub-processors, and an end flag is set for each of the multiple sub-processors. There was a parallel computing device that communicated data with subprocessors by value. In this device, the end flag is placed in a data memory provided independently for each sub-processor as a first conventional example, and in a data memory possessed by a main processor as a second conventional example. .

【0003】第1の従来例の構成において、各サブプロ
セッサは、他のサブプロセッサの動作と無関係にプロセ
ッサに接続されたデータメモリに終了フラグを書き込む
ことができる。メインプロセッサは全サブプロセッサの
終了フラグを順次読みだし、演算が終了したことを確認
した後各サブプロセッサの演算結果の収集及び次の計算
のためのデータの分配を行う。
In the configuration of the first conventional example, each sub-processor can write an end flag to a data memory connected to the processor, regardless of the operation of other sub-processors. The main processor sequentially reads the completion flags of all sub-processors, and after confirming that the calculations have been completed, collects the calculation results of each sub-processor and distributes the data for the next calculation.

【0004】第2の従来例の構成において、各サブプロ
セッサは、メインプロセッサに接続されたデータメモリ
に終了フラグを書き込むが、他のサブプロセッサと共通
にメインプロセッサに接続されたメモリへの書き込みを
行うため、プロセッサ間のメモリアクセスの調停が必要
である。メインプロセッサは各サブプロセッサが書き込
んだ終了フラグを読みだし、演算終了を確認した後各サ
ブプロセッサの演算結果の収集及び次の計算のためのデ
ータ分配を行う。
[0004] In the configuration of the second conventional example, each sub-processor writes an end flag to the data memory connected to the main processor, but in common with other sub-processors, it cannot write to the memory connected to the main processor. To do this, memory access arbitration between processors is required. The main processor reads the completion flag written by each sub-processor, confirms the completion of the calculation, and then collects the calculation results of each sub-processor and distributes the data for the next calculation.

【0005】[0005]

【発明が解決しようとする課題】上述した第1の従来例
の並列演算装置では、各サブプロセッサが独立に終了フ
ラグの設定を行うことができるが、メインプロセッサは
全プロセッサの終了フラグを定期的かつ順次読みだす必
要があり、メインプロセッサ上の処理効率を低下させて
しまう。
[Problems to be Solved by the Invention] In the first conventional parallel processing device described above, each sub-processor can independently set the end flag, but the main processor periodically sets the end flag of all processors. Moreover, it is necessary to read out the data sequentially, which reduces processing efficiency on the main processor.

【0006】また、第2の従来例の並列演算装置では、
メインプロセッサが全プロセッサの終了フラグを定期的
かつ順次読みだす必要があり、メインプロセッサ上の処
理効率を低下させてしまう他に各サブプロセッサは他の
サブプロセッサと共通にメインプロセッサに接続された
メモリへの書き込みを行うため、サブプロセッサ間のメ
モリアクセスの調停が必要でありサブプロセッサの処理
効率を低下させてしまう。
[0006] Furthermore, in the second conventional parallel computing device,
The main processor must periodically and sequentially read the termination flags of all processors, which reduces the processing efficiency on the main processor. In addition, each sub-processor has memory connected to the main processor in common with other sub-processors. In order to write to the subprocessor, memory access arbitration between the subprocessors is required, which reduces the processing efficiency of the subprocessors.

【0007】また、調停期間及びデータ書き込み期間メ
インプロセッサの処理を停止させてしまい、メインプロ
セッサ上の処理効率をさらに低下させてしまう等の問題
があった。
[0007] Furthermore, there is a problem in that the processing of the main processor is stopped during the arbitration period and the data writing period, further reducing the processing efficiency on the main processor.

【0008】[0008]

【課題を解決するための手段】本発明の並列演算装置は
、演算を並行して実行する複数の演算プロセッサと、こ
の演算プロセッサの演算処理の状態を示す第1と第2の
フラグ信号を出力する手段と、前記第1のフラグ信号ご
とに論理積回路に出力するバッファと、前記第2のフラ
グ信号ごとに論理和回路に出力するインバータとを有す
る。
[Means for Solving the Problems] A parallel arithmetic device of the present invention includes a plurality of arithmetic processors that execute arithmetic operations in parallel, and outputs first and second flag signals indicating the state of arithmetic processing of the arithmetic processors. a buffer that outputs each of the first flag signals to the AND circuit, and an inverter that outputs each of the second flag signals to the OR circuit.

【0009】[0009]

【作用】本発明の並列演算装置の作用について図2を用
いて説明する。
[Operation] The operation of the parallel computing device of the present invention will be explained with reference to FIG.

【0010】プロセッサ(1)11、プロセッサ(2)
21……プロセッサ(N)91を用いて演算を並行して
実行する並列計算機システムにおいて、複数のプロセッ
サ(1)〜(N)は、それぞれフラグ(1)11……フ
ラグ(N)92を備えている。各フラグはそれぞれ意味
を持つ複数のフラグ信号から構成され、各プロセッサ(
1)〜(N)は必要に応じてフラグ信号をアクティブに
する。但しここでは説明の便宜上正論理を用いることと
し、アクティブであるとは論理レベル1またはHである
こととする。
Processor (1) 11, Processor (2)
21... In a parallel computer system that executes operations in parallel using processors (N) 91, each of the plurality of processors (1) to (N) is equipped with a flag (1) 11... flag (N) 92. ing. Each flag consists of multiple flag signals, each with its own meaning, and each processor (
1) to (N) activate the flag signal as necessary. However, for convenience of explanation, positive logic will be used here, and active means logic level 1 or H.

【0011】各フラグ信号は必要に応じてインバータ1
3、14、23、24……93、94または、バッファ
19、29、……99に接続される。インバータ及びバ
ッファはオープンコレクタ出力とし、他の出力と共通に
信号線を駆動する。それぞれの信号出力は、用途毎に共
通の信号線103、104、……109と接続される。 さらにインバータ13、14、23、24……93、9
4の出力に接続された信号線103、104……はイン
バータ3、4の入力に接続され、バッファ19、29、
……99に接続された信号線109は、バッファ9の入
力に接続される。
Each flag signal is sent to the inverter 1 as necessary.
93, 94 or buffers 19, 29, . . . 99. The inverter and buffer have open collector outputs, and drive the signal line in common with other outputs. The respective signal outputs are connected to common signal lines 103, 104, . . . , 109 for each purpose. Furthermore, inverters 13, 14, 23, 24...93, 9
Signal lines 103, 104... connected to the outputs of inverters 3 and 4 are connected to the inputs of inverters 3 and 4, and
The signal line 109 connected to . . . 99 is connected to the input of the buffer 9.

【0012】上記構成によれば、フラグ信号のうちイン
バータ13、23、……93に接続した信号の何れか一
つがアクティブ、即ちHレベルになると信号線103が
Lとなり、インバータ3の出力203はH,即ちアクテ
ィブとなる。また、フラグ信号のうちバッファ19、2
9、……99に接続した信号は、全てがアクティブ、即
ちHレベルになったときのみ信号線109がHとなり、
バッファ9の出力209はH,即ちアクティブとなる。 従って、プロセッサ毎のフラグ信号の中で、全プロセッ
サが信号をアクティブにしたときのみ出力信号をアクテ
ィブにする必要のある信号はインバータに接続し、いず
れかのプロセッサが信号をアクティブにしたときのみ出
力信号をアクティブとする必要のある信号は、バッファ
に接続すれば良い。
According to the above configuration, when any one of the flag signals connected to the inverters 13, 23, . H, ie, active. Also, among the flag signals, buffers 19 and 2
9,...The signal line 109 becomes H only when all of the signals connected to 99 are active, that is, at H level.
The output 209 of the buffer 9 becomes H, that is, active. Therefore, among the flag signals for each processor, signals that need to be activated only when all processors activate the signal should be connected to an inverter, and output only when any processor activates the signal. Signals that need to be activated can be connected to buffers.

【0013】ここでは説明の都合上、プロセッサ毎にバ
ッファを1つ、インバータを2つ使用する例を挙げて解
説したが、幾つのバッファ・インバータを使用しても良
い。
For convenience of explanation, an example in which one buffer and two inverters are used for each processor has been described here, but any number of buffer inverters may be used.

【0014】[0014]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments Next, embodiments of the present invention will be described with reference to the drawings.

【0015】図1は本発明の一実施例を示すブロック図
である。
FIG. 1 is a block diagram showing one embodiment of the present invention.

【0016】本実施例は、プロセッサ(1)11、プロ
セッサ(2)21……プロセッサ(N)91を用いて演
算を並行して実行する。複数のプロセッサ(1)〜(N
)は、それぞれフラグ(1)12……フラグ(N)92
を備えている。各フラグ(1)〜(N)はエラー検出フ
ラグ15、25、95と、演算終了フラグ18、28、
98からなる。各プロセッサ(1)〜(N)は演算終了
時に演算終了フラグ18、28、98をアクティブとし
、エラー検出時にエラー検出フラグ15、25、95を
アクティブにする。但しここでは説明の便宜上正論理を
用いることとし、アクティブであるとは論理レベルが1
またはHであることとする。
In this embodiment, operations are executed in parallel using processor (1) 11, processor (2) 21, . . . processor (N) 91. Multiple processors (1) to (N
) are respectively flags (1) 12...flags (N) 92
It is equipped with Each flag (1) to (N) is an error detection flag 15, 25, 95, an operation end flag 18, 28,
Consists of 98. Each of the processors (1) to (N) activates the calculation end flags 18, 28, and 98 when the calculation ends, and activates the error detection flags 15, 25, and 95 when an error is detected. However, for convenience of explanation, positive logic will be used here, and active means that the logic level is 1.
or H.

【0017】ここでエラー検出フラグ15、25、95
はインバータ13、23、93と接続され、演算終了フ
ラグ18、28、98は、バッファ19、29、……9
9に接続される。インバータ13、23、93の出力は
信号線103に、バッファ19、29、……99の出力
は信号線109に共通に接続する。
Here, error detection flags 15, 25, 95
are connected to inverters 13, 23, 93, and calculation end flags 18, 28, 98 are connected to buffers 19, 29, . . . 9
Connected to 9. The outputs of the inverters 13, 23, 93 are commonly connected to a signal line 103, and the outputs of the buffers 19, 29, . . . , 99 are commonly connected to a signal line 109.

【0018】信号線103はインバータ3の入力に接続
され、信号線109は、バッファ9の入力に接続される
。インバータ3の出力はエラー出力203として上位の
プロセッサにて使用され、バッファ9の出力は演算終了
出力209として使用される。
Signal line 103 is connected to the input of inverter 3, and signal line 109 is connected to the input of buffer 9. The output of the inverter 3 is used as an error output 203 in a higher-order processor, and the output of the buffer 9 is used as an operation completion output 209.

【0019】上記構成によれば、フラグ信号のうちイン
バータ13、……93に接続したエラー検出信号の何れ
か一つがアクティブ、即ちHレベルになると上位プロセ
ッサへのエラー出力203がアクティブになる。また、
フラグ信号のうちバッファ19、29、……99に接続
した演算終了フラグは、全てがアクティブ、即ちHレベ
ルになったときのみ、上位プロセッサへの演算終了出力
209がアクティブとなる。
According to the above configuration, when any one of the error detection signals connected to the inverters 13, . Also,
Of the flag signals, the computation end flags connected to the buffers 19, 29, .

【0020】このようにすると、複数の全プロセッサの
演算処理が終了した時点で演算終了出力209がアクテ
ィブとなって出力される。この時、演算終了出力209
を割込入力に接続することにより、メインプロセッサは
順次各プロセッサの終了信号を確認することなしに全プ
ロセッサの演算終了を知ることができる。
[0020] With this arrangement, the computation end output 209 becomes active and output when the computation processing of all the plurality of processors is completed. At this time, the calculation end output 209
By connecting the main processor to the interrupt input, the main processor can know the completion of operations of all processors without sequentially checking the completion signal of each processor.

【0021】また、エラー出力203を同様に割込み入
力に接続することにより、いずれかのプロセッサの演算
にエラーが生じた場合にもエラーの発生を検出すること
ができる。また、各プロセッサは他のプロセッサと独立
にフラグの出力を行うことができ、プロセッサの処理効
率の低下を避けることができる。また、メインプロセッ
サは割込がかかるまでプロセッサの演算終了状況を定期
的かつ順次確認する必要はなく、メインプロセッサの処
理効率を低下させることもない。更にプロセッサを独立
したプリンタ基板として構成した場合、演算終了出力2
09及びエラー検出出力203を共通バスとして接続す
ることができ、必要となるハードウェア規模の観点から
は、一例として各サブプロセッサをそれぞれ一枚のプリ
ント基板として構成することを想定した場合、実施例の
ように終了信号は論理積、エラー信号は論理和が必要で
あるにも関わらず、上記終了信号及びエラー検出信号を
共通バスとして接続することができる。従って、基板挿
入位置の制約はなく、共通バス以外の接続の必要もない
ため、基板間接続が非常に容易となる。
Furthermore, by similarly connecting the error output 203 to the interrupt input, it is possible to detect the occurrence of an error even if an error occurs in the calculation of any processor. Further, each processor can output a flag independently of other processors, and a decrease in processing efficiency of the processor can be avoided. Furthermore, the main processor does not need to periodically and sequentially check the processor's operation completion status until an interrupt occurs, and the processing efficiency of the main processor does not decrease. Furthermore, when the processor is configured as an independent printer board, the calculation end output 2
09 and the error detection output 203 can be connected as a common bus, and from the viewpoint of the required hardware scale, as an example, assuming that each sub-processor is configured as a single printed circuit board, the embodiment Even though the end signal requires AND and the error signal requires OR, the end signal and error detection signal can be connected as a common bus. Therefore, there are no restrictions on the board insertion position, and there is no need for connections other than the common bus, making connection between the boards very easy.

【0022】また、複数プロセッサをサブプロセッサと
し、演算処理全体の同期をとるメインプロセッサを別に
設ける構成において、前記全サブプロセッサの終了信号
をメインプロセッサの割込入力に接続することにより、
メインプロセッサが順次各サブプロセッサの終了信号を
確認すことなしに全サブプロセッサの演算終了を知るこ
とができる。メインプロセッサは割込がかかるまでサブ
プロセッサの演算終了状況を定期的かつ順次確認する必
要はなく、メインプロセッサの処理効率を低下させるこ
ともない。さらに各サブプロセッサが終了信号を書き込
むためメインプロセッサ上のメモリにアクセスすること
もないため、メインプロセッサ上で行われている処理が
中断されることもない。
Further, in a configuration in which a plurality of processors are used as sub-processors and a main processor is separately provided for synchronizing the entire arithmetic processing, by connecting the termination signals of all the sub-processors to the interrupt input of the main processor,
The main processor can know the completion of calculations of all sub-processors without sequentially checking the completion signals of each sub-processor. The main processor does not need to periodically and sequentially check the computation completion status of the sub-processors until an interrupt occurs, and the processing efficiency of the main processor does not decrease. Furthermore, since each sub-processor does not access the memory on the main processor to write the end signal, the processing being performed on the main processor is not interrupted.

【0023】[0023]

【発明の効果】以上説明したように本発明は、演算を並
行して実行する複数の演算プロセッサの演算処理の状態
を示す第1と第2のフラグ信号を出力し、バッファが第
1のフラグ信号ごとに論理積回路に出力し、インバータ
が第2のフラグ信号ごとに論理和回路に出力することに
より、各演算プロセッサは他のプロセッサの動作を考慮
する必要はなくプロセッサ間のデータ出力に関する調停
作業も不要であるため、複数のプロセッサの処理効率を
高めることができる。
As described above, the present invention outputs first and second flag signals indicating the state of arithmetic processing of a plurality of arithmetic processors that execute arithmetic operations in parallel, and the buffer outputs the first flag signal. By outputting each signal to the AND circuit and the inverter outputting each second flag signal to the OR circuit, each arithmetic processor does not have to consider the operation of other processors, and arbitration regarding data output between processors is possible. Since no work is required, the processing efficiency of multiple processors can be improved.

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

【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

【図2】本発明の作用を説明するためのブロック図であ
る。
FIG. 2 is a block diagram for explaining the operation of the present invention.

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

3,4,13,14,23,24,93,94    
インバータ 9,29,29,99    バッファ11,21,9
1    プロセッサ
3, 4, 13, 14, 23, 24, 93, 94
Inverter 9, 29, 29, 99 Buffer 11, 21, 9
1 processor

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  演算を並行して実行する複数の演算プ
ロセッサと、この演算プロセッサの演算処理の状態を示
す第1と第2のフラグ信号を出力する手段と、前記第1
のフラグ信号ごとに論理積回路に出力するバッファと、
前記第2のフラグ信号ごとに論理和回路に出力するイン
バータとを有することを特徴とする並列演算装置。
1. A plurality of arithmetic processors that execute arithmetic operations in parallel; means for outputting first and second flag signals indicating the state of arithmetic processing of the arithmetic processors;
a buffer that outputs each flag signal to an AND circuit;
A parallel arithmetic device comprising: an inverter that outputs an output to an OR circuit for each second flag signal.
JP3037011A 1991-03-04 1991-03-04 Parallel arithmetic unit Pending JPH04276851A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3037011A JPH04276851A (en) 1991-03-04 1991-03-04 Parallel arithmetic unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3037011A JPH04276851A (en) 1991-03-04 1991-03-04 Parallel arithmetic unit

Publications (1)

Publication Number Publication Date
JPH04276851A true JPH04276851A (en) 1992-10-01

Family

ID=12485740

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3037011A Pending JPH04276851A (en) 1991-03-04 1991-03-04 Parallel arithmetic unit

Country Status (1)

Country Link
JP (1) JPH04276851A (en)

Similar Documents

Publication Publication Date Title
US5682518A (en) System for updating inactive system memory using dual port memory
JPH0690682B2 (en) Fault processing method of multiprocessor system
JPH02224140A (en) Interruption testing device
JPH04276851A (en) Parallel arithmetic unit
JPS63123130A (en) Pipeline control system
JPH02114362A (en) Parallel arithmetic unit
JPS6159565A (en) Interrupt input device of multicomputer system
JP2000311155A (en) Multiprocessor system and electronic equipment
JP2000076089A (en) Multiple system processor
JPH02114361A (en) Parallel arithmetic unit
KR960015586B1 (en) Asserting scheme of transfer failure interrupt in a multiprocessor interrupt requester
JP2821176B2 (en) Information processing device
JPH02112054A (en) Data processor
JPS6379161A (en) Semiconductor memory device
JPH09160689A (en) Data transfer circuit
JPH04102955A (en) Interruption controller
JPH05165735A (en) Identification system for parity error occured memory element
JPH0253169A (en) Trouble detecting device for multi-microprocessor system
JPH02170261A (en) Parallel arithmetic unit
JPH01121965A (en) Microprocessor
JPS61153770A (en) Image processor
JPH0521262B2 (en)
JPH01258291A (en) Access controller for dual port memory
JPH05257881A (en) Device for data transfer between computers
JPS62298867A (en) System for detecting stable state of parallel system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19990518