JPH05265989A - Multiprocessor system - Google Patents

Multiprocessor system

Info

Publication number
JPH05265989A
JPH05265989A JP4089275A JP8927592A JPH05265989A JP H05265989 A JPH05265989 A JP H05265989A JP 4089275 A JP4089275 A JP 4089275A JP 8927592 A JP8927592 A JP 8927592A JP H05265989 A JPH05265989 A JP H05265989A
Authority
JP
Japan
Prior art keywords
transmission
processor
reception buffer
buffer
reception
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
JP4089275A
Other languages
Japanese (ja)
Inventor
Hiroyuki Nakano
博之 中野
Hiroaki Tsunoda
裕明 角田
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 JP4089275A priority Critical patent/JPH05265989A/en
Publication of JPH05265989A publication Critical patent/JPH05265989A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate the storage of erroneous data or the meaningless repetition of re-transmission due to the abnormality of the receiving buffer of the processor of a transmitting destination by stopping the re-transmission of transmitted data when the non-permission of the use of the receiving buffer is reported. CONSTITUTION:The decoder part 37 of the processor 2 of the transmitting destination refers to a receiving buffer permission register 34, and judges the presence or absence of the permission of the receiving buffer 31. The decoder part 37 judges that the receiving buffer 31 is not permitted because of the occurrence of the abnormality of the receiving buffer 31, it outputs a prescribed control signal to a reception control part 32. The reception control part 32 generates an NG1 packet (no packet) in an OK/NG return buffer 38, and transmits the NG1 packet to a transmitting source processor 1. This NG1 packet is inputted to the receiving buffer 23 of the processor 1. The decoder part 24 outputs a transmission stop signal to a transmission control part 22, and the transmission control part 22 stops the subsequent transmission.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、複数のプロセッサを
バスに接続し、送信先のプロセッサへのデータ送信失敗
時に、当該データの同一送信先への再送信を行うマルチ
プロセッサシステムに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multiprocessor system in which a plurality of processors are connected to a bus and when data transmission to a destination processor fails, the data is retransmitted to the same destination. ..

【0002】[0002]

【従来の技術】図5は例えば特開昭62−249541
号公報に示された従来のマルチプロセッサシステムを示
すブロック図である。図において、1は送信元となるプ
ロセッサ、2は送信先となるプロセッサであり、3はこ
れらのプロセッサ1および2が接続されたバスである。
2. Description of the Related Art FIG. 5 shows, for example, Japanese Patent Laid-Open No. 62-249541.
FIG. 10 is a block diagram showing a conventional multiprocessor system disclosed in Japanese Patent Publication No. In the figure, 1 is a processor as a transmission source, 2 is a processor as a transmission destination, and 3 is a bus to which these processors 1 and 2 are connected.

【0003】また、プロセッサ1内において、11は送
信データのバス3への送信を行う送信部、12はこの送
信部11によって送信される送信データが待ち合わせて
いる送信待ちデータキューであり、13は送信部11に
よる送信データの送信を制御する制御部である。14は
送信データ対応のフラグが設けられて、送信データの送
信失敗により再送信待機中であればその送信データに対
応する前記フラグに当該送信データが再送信待機中であ
ることを示す情報、例えば論理「1」なる信号が書き込
まれる送信停止中管理テーブルである。15は送信先の
プロセッサ対応に設けられ、送信部11による当該送信
先のプロセッサへの送信データの送信失敗回数を計数す
るカウンターであり、16は送信失敗が検出された場合
に、その送信データを再送信するまでのタイミングを生
成するタイマーである。
In the processor 1, 11 is a transmitter for transmitting the transmission data to the bus 3, 12 is a transmission queue for the transmission data transmitted by the transmission unit 11, and 13 is a transmission queue. The control unit controls the transmission of transmission data by the transmission unit 11. 14 is provided with a flag corresponding to the transmission data, and if the transmission data is unsuccessfully transmitted and waiting for retransmission, the flag corresponding to the transmission data indicates that the transmission data is in the standby state for retransmission, for example, It is a transmission stop management table in which a signal of logic "1" is written. Reference numeral 15 is a counter provided for the processor of the transmission destination and counting the number of transmission failures of the transmission data to the transmission destination processor by the transmission unit 11. Reference numeral 16 indicates the transmission data when the transmission failure is detected. It is a timer that generates the timing until retransmission.

【0004】なお、この送信元となるプロセッサ1につ
いては、その受信機能の図示を省略しており、また、受
信先となるプロセッサ2はこの送信元となるプロセッサ
1と全く同一の構成となっている。
The receiving function of the processor 1 as the transmission source is not shown, and the processor 2 as the reception destination has exactly the same configuration as the processor 1 as the transmission source. There is.

【0005】次に動作について説明する。送信元のプロ
セッサ1は送信先のプロセッサ2に対して送信データを
送信した後、制御部13によってプロセッサ2への送信
失敗が検出されると、プロセッサ2宛の送信データを送
信待ちデータキュー12の先頭へ再登録する。そして、
送信停止中管理テーブル14の送信データに対応したフ
ラグに論理「1」が書き込まれて記憶され、次いで、送
信先のプロセッサ2に対応したカウンター15の計数内
容が更新される。一方、タイマー16はこの送信データ
の送信失敗の検出に応答してリセットされると同時にタ
イムカウントを開始し、予め定められた時間になると制
御部13を介して送信部11に対してデータの再送信指
令を発生する。この再送信指令を受けた送信部11は、
送信待ちデータキュー12より先頭に登録されている再
送信すべき同一の送信データを導出してプロセッサ2へ
の再送信を試みる。
Next, the operation will be described. When the control unit 13 detects a transmission failure to the processor 2 after transmitting the transmission data to the transmission destination processor 2, the transmission source processor 1 transmits the transmission data addressed to the processor 2 to the transmission waiting data queue 12. Register again at the top. And
A logic "1" is written and stored in the flag corresponding to the transmission data of the transmission stop management table 14, and then the count content of the counter 15 corresponding to the destination processor 2 is updated. On the other hand, the timer 16 is reset in response to the detection of the transmission failure of the transmission data, and at the same time, starts the time counting, and when the predetermined time is reached, the data is retransmitted to the transmission unit 11 via the control unit 13. Generate a send command. The transmission unit 11 that has received this retransmission instruction
The same transmission data to be retransmitted, which is registered at the head of the transmission waiting data queue 12, is derived and an attempt is made to retransmit it to the processor 2.

【0006】ここで、送信先のプロセッサ2によって当
該送信データが受信されれば、以後の処理は終了とな
る。この時、当該送信先のプロセッサ2に対応したカウ
ンター15がクリアされるとともに、送信停止中管理テ
ーブル14の当該送信データ対応のフラグもクリアされ
る。なお、再び送信失敗となれば、上述した処理手順が
繰り返して実行されることになり、カウンター15の計
数内容が予め定められた値に達すると、当該送信データ
のプロセッサ2へ送信はそれ以降行なわれず、プロセッ
サ2は故障と判定されてシステムから切り離される。
Here, if the transmission data is received by the processor 2 of the transmission destination, the subsequent processing is ended. At this time, the counter 15 corresponding to the transmission destination processor 2 is cleared, and the flag corresponding to the transmission data in the transmission stop management table 14 is also cleared. Note that if the transmission fails again, the above-described processing procedure is repeatedly executed, and when the count content of the counter 15 reaches a predetermined value, the transmission of the transmission data to the processor 2 is performed thereafter. Then, the processor 2 is determined to have failed and is disconnected from the system.

【0007】なお、このように再送信のタイミングを定
めるタイマー16を用いて、再送信する時間間隔を零よ
り大なる有限時間とすることにより、送信先のプロセッ
サ2での受信バッファビジーによる一時的な送信失敗を
プロセッサ障害と誤って判断することはなくなる。
[0007] By using the timer 16 for determining the timing of retransmission as described above, the time interval for retransmission is set to a finite time greater than zero, so that the processor 2 of the transmission destination is temporarily affected by the reception buffer busy. It is no longer possible to erroneously determine a serious transmission failure as a processor failure.

【0008】[0008]

【発明が解決しようとする課題】従来のマルチプロセッ
サシステムは以上のように構成されているので、再送信
のタイミングを定めるタイマー16と再送信の回数を計
数するカウンター15で再送信の制御を行っているの
で、送信先プロセッサ2のバッファに異常が発生し、使
用不可能である状態のときに、その受信バッファエリア
にデータ送信が行われても、正常に転送完了し、受信側
が誤ったデータを格納するか、または送信失敗と判断さ
れ、前記のタイマー16、カウンター15を用いて再送
信を行い、成功することのない再送信が規定回数繰り返
されるという問題点があった。
Since the conventional multiprocessor system is configured as described above, the retransmission control is performed by the timer 16 which determines the retransmission timing and the counter 15 which counts the number of retransmissions. Therefore, even if data is transmitted to the receive buffer area when an error occurs in the buffer of the destination processor 2 and it is in an unusable state, the transfer is normally completed and the erroneous data is received by the receiving side. Is stored, or the transmission is judged to have failed, and the retransmission is performed using the timer 16 and the counter 15, and the retransmission without success is repeated a prescribed number of times.

【0009】この発明は、上記のような問題点を解消す
るためになされたものであり、送信先のプロセッサの受
信バッファの異常で誤データを格納、または無意味な再
送信を行うことのないマルチプロセッサシステムを得る
ことを目的とする。
The present invention has been made in order to solve the above problems, and does not store erroneous data or perform meaningless retransmission due to an abnormality in the receiving buffer of the destination processor. The purpose is to obtain a multiprocessor system.

【0010】[0010]

【課題を解決するための手段】請求項1に記載の発明に
係るマルチプロセッサシステムは、受信バッファの使用
を許可するかを示す受信バッファ許可レジスタ、受信バ
ッファが受信中がどうかを示す受信バッファビジーレジ
スタ、受信バッファ使用許可と受信バッファビジーとを
判断できるデコーダー部、受信バッファでの異常発生時
に上記の受信バッファ許可レジスタを不許可にするエラ
ー検出部、および受信バッファ使用不許可、受信バッフ
ァビジーなどを通知する返送データの送信を制御する受
信コントロール部を送信先のプロセッサに持たせ、この
送信先のプロセッサからの返送データを判断するデコー
ダー部と、このデコーダー部の発生する機動条件に従っ
て受信バッファ使用不許可の場合には再送信を行わずに
転送を中止し、受信バッファビジーの場合には所定のタ
イミングで再送信の制御を行う送信コントロール部を送
信元のプロセッサに持たせたものである。
According to a first aspect of the present invention, there is provided a multiprocessor system including a reception buffer permission register indicating whether the reception buffer is permitted to be used and a reception buffer busy indicating whether the reception buffer is receiving. Registers, decoder unit that can judge whether receive buffer use is enabled or not, error detection unit that disables the above receive buffer enable register when an error occurs in the receive buffer, receive buffer use disable, receive buffer busy, etc. A receiver control unit that controls the transmission of the return data that notifies the notification is provided in the destination processor, and the receive buffer is used according to the decoder unit that determines the return data from this destination processor and the operating conditions generated by this decoder unit. If it is not permitted, the transfer is canceled and the If the buffer busy those which gave a transmission control unit for controlling retransmission at a predetermined timing to the transmission source processor.

【0011】また、請求項2に記載の発明に係るマルチ
プロセッサシステムは、受信バッファとポートとの対応
を管理するポート/バッファ管理テーブルを送信先のプ
ロセッサに持たせて、エラー検出部が受信バッファの異
常を検出すると、当該ポートの対応受信バッファを別の
正常な受信バッファに変更し、送信元のプロセッサの送
信コントロール部は、受信バッファ使用不許可の場合に
も送信データの再送信の制御を行うものである。
According to a second aspect of the present invention, in the multiprocessor system, the destination processor has a port / buffer management table that manages the correspondence between the reception buffer and the port, and the error detection unit receives the reception buffer. When an error is detected, the corresponding receive buffer of the port is changed to another normal receive buffer, and the transmission control unit of the processor of the transmission source controls the retransmission of the transmission data even when the use of the reception buffer is not permitted. It is something to do.

【0012】[0012]

【作用】請求項1に記載の発明におけるマルチプロセッ
サシステムは、送信先のプロセッサから、受信バッファ
の異常発生によって受信バッファが使用不許可となった
ことが通知された場合には送信データの再送信を停止
し、受信バッファが使用中であることが通知された場合
には所定のタイミングで送信データの再送信を行うこと
により、送信先のプロセッサの受信バッファの異常によ
って、誤データの格納や、無意味な再送信を繰り返すこ
とのないマルチプロセッサシステムを実現する。
According to the first aspect of the present invention, the multiprocessor system retransmits the transmission data when the processor of the transmission destination notifies that the reception buffer is not permitted to be used due to the abnormality of the reception buffer. Stop, and when it is notified that the receive buffer is in use, by retransmitting the send data at a predetermined timing, due to an error in the receive buffer of the destination processor, incorrect data storage or A multiprocessor system that does not repeat meaningless retransmissions is realized.

【0013】また、請求項2に記載の発明におけるマル
チプロセッサシステムは、受信バッファに異常が発生し
た場合でも、受信バッファとポートとの対応を管理して
いるポート/バッファ管理テーブルを書き換えて、該当
ポートの対応受信バッファを別の正常な受信バッファに
変更することにより、送信元のプロセッサの再送信処理
によって送信データの転送を正常に終了することができ
るマルチプロセッサシステムを実現する。
In the multiprocessor system according to the second aspect of the present invention, even if an abnormality occurs in the reception buffer, the port / buffer management table that manages the correspondence between the reception buffer and the port is rewritten, By changing the corresponding reception buffer of the port to another normal reception buffer, it is possible to realize a multiprocessor system in which the transmission of the transmission data can be normally completed by the retransmission processing of the processor of the transmission source.

【0014】[0014]

【実施例】【Example】

実施例1.以下、この発明の実施例1を図について説明
する。図1は請求項1に記載の発明の一実施例を示すブ
ロック図であり、図2はメッセージ送信時の各メッセー
ジパケットのフォーマットを示す説明図である。図1に
おいて、1,2はプロセッサ、3はバスであり、この場
合にもプロセッサ1を送信元、プロセッサ2を送信先と
して説明する。20は送信元のプロセッサ1内の送信用
コントローラ、30は送信先のプロセッサ2内の受信用
コントローラであり、各プロセッサ1,2におけるその
他の機能は図示を省略している。
Example 1. Embodiment 1 of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of the invention described in claim 1, and FIG. 2 is an explanatory diagram showing a format of each message packet at the time of message transmission. In FIG. 1, reference numerals 1 and 2 denote processors, and 3 denotes a bus. In this case as well, the processor 1 will be described as a transmission source and the processor 2 as a transmission destination. Reference numeral 20 is a transmission controller in the transmission source processor 1, 30 is a reception controller in the transmission destination processor 2, and the other functions of the processors 1 and 2 are not shown.

【0015】また、送信用コントローラ20内におい
て、21は図2(a)に示したスタートパケットを格納
するスタートパケットバッファであり、22は送信開始
から送信終了(後述するリトライタイマー部25からの
再送信起動を含む)までの一連の動作を管理する送信コ
ントロール部である。23は受信したメッセージを格納
する受信バッファであり、24は受信したメッセージか
ら図2(b)に示すNG1パケット、同図(c)に示す
NG2パケット、あるいは同図(d)に示すOKパケッ
トを判断し、再送信するかしないかの起動条件を生成す
るデコーダー部である。25は前記NG2パケットを受
信した場合、再送信の回数及び再送信間隔を監視するリ
トライタイマー部である。
In the transmission controller 20, reference numeral 21 is a start packet buffer for storing the start packet shown in FIG. 2A, and 22 is a transmission start to a transmission end (retry timer section 25 to be described later). It is a transmission control unit that manages a series of operations up to (including transmission activation). Reference numeral 23 is a receive buffer for storing the received message, and 24 is a NG1 packet shown in FIG. 2B, an NG2 packet shown in FIG. 2C, or an OK packet shown in FIG. It is a decoder unit that makes a judgment and generates an activation condition whether to retransmit or not. Reference numeral 25 denotes a retry timer unit that monitors the number of retransmissions and the retransmission interval when the NG2 packet is received.

【0016】さらに、受信用コントローラ30内におい
ては、31は受信したメッセージデータを格納する受信
バッファであり、32はこの受信バッファ31にメッセ
ージを格納してから、そのメッセージのデコード、チェ
ック、及びNG1パケット、NG2パケット、OKパケ
ットの生成/実行までの受信側の一連の動作を管理する
受信コントロール部である。33はメッセージのデータ
を格納する受信バッファをメモリに確保する際、確保し
たバッファ番号のビットをセットする受信バッファ許可
レジスタ34と、セットされている受信バッファ番号ビ
ットが、メッセージの受信中であることを示す受信バッ
ファビジーレジスタ35とを含む受信レジスタ部であ
る。36は受信バッファでのエラー発生時に上記の受信
バッファ許可レジスタ34を不許可にするエラー検出部
であり、37は受信したスタートパケットの行先ポート
と受信レジスタ部を使用して、受信バッファ使用許可と
受信バッファビジーとを判断し、NG1パケット、NG
2パケット、OKパケットの生成起動条件を制御するデ
コーダー部である。38はその生成されたNG1パケッ
ト、NG2パケット、OKパケットを格納するOK/N
Gリターンバッファである。
Further, in the reception controller 30, 31 is a reception buffer for storing the received message data, and 32 is a buffer for storing the message in the reception buffer 31 and then decoding, checking and NG1 of the message. It is a reception control unit that manages a series of operations on the reception side until generation / execution of a packet, an NG2 packet, and an OK packet. 33 indicates that when a reception buffer for storing message data is secured in the memory, the reception buffer permission register 34 for setting the bit of the secured buffer number and the set reception buffer number bit are receiving the message. And a reception buffer busy register 35 indicating Reference numeral 36 denotes an error detection unit that disables the reception buffer enable register 34 when an error occurs in the reception buffer, and 37 uses the destination port of the received start packet and the reception register unit to enable reception buffer use. It is judged that the receiving buffer is busy, and NG1 packet, NG
This is a decoder unit that controls the generation start condition of 2 packets and OK packet. 38 is OK / N for storing the generated NG1 packet, NG2 packet, and OK packet.
G return buffer.

【0017】次に動作について説明する。まず、送信元
のプロセッサ1より送信先のプロセッサ2に対して図2
(a)に示すスタートパケットが送信される。この時、
スタートパケット内の行先ポート部には送信したいバッ
ファ番号を、またPID部にはスタートパケットである
ことを示すコードPID1をセットする。プロセッサ1
よりバス3に送信されたスタートパケットは、プロセッ
サ2の受信バッファ31に入る。ここで、デコーダー部
37がスタートパケット内の行先ポート部のバッファ番
号と受信バッファ許可レジスタ34にセットされている
バッファ番号ビットとをデコードしてその受信バッファ
の有無を判定し、受信コントロール部32にOK/NG
1/NG2のパケット生成起動信号を出力する。例え
ば、受信バッファの異常発生で受信バッファが許可され
ていないと判断されれば、デコーダー部37はNG1パ
ケット(バッファなし)を生成する制御信号を受信コン
トロール部32に出力し、受信コントロール部32は、
その信号を受けて図2(b)に示すNG1パケットをO
K/NGリターンバッファ38に生成し、送信元のプロ
セッサ1に対してNG1パケットを送信する。この時N
G1パケット内のPID部に当該パケットがNG1パケ
ットであることを示すコードPID2をセットする。
Next, the operation will be described. First, as shown in FIG.
The start packet shown in (a) is transmitted. At this time,
A buffer number to be transmitted is set in the destination port portion in the start packet, and a code PID1 indicating the start packet is set in the PID portion. Processor 1
The start packet transmitted from the bus 3 enters the reception buffer 31 of the processor 2. Here, the decoder unit 37 decodes the buffer number of the destination port unit in the start packet and the buffer number bit set in the reception buffer permission register 34 to determine the presence or absence of the reception buffer, and the reception control unit 32 OK / NG
The packet generation start signal of 1 / NG2 is output. For example, if it is determined that the reception buffer is not permitted due to the occurrence of an abnormality in the reception buffer, the decoder unit 37 outputs a control signal for generating an NG1 packet (no buffer) to the reception control unit 32, and the reception control unit 32. ,
Upon receiving the signal, the NG1 packet shown in FIG.
It is generated in the K / NG return buffer 38 and the NG1 packet is transmitted to the processor 1 of the transmission source. At this time N
A code PID2 indicating that the packet is an NG1 packet is set in the PID part of the G1 packet.

【0018】一方、受信バッファの使用が許可されてい
れば、次にデコーダー部37は、スタートパケット内の
行先ポート部と受信バッファビジーレジスタ35のデー
タから、指定するバッファ番号が使用中かどうかを判断
する。例えば、受信バッファが使用中と判断されれば、
図2(c)に示すNG2パケット(バッファ使用中)を
生成する制御信号を受信コントロール部32へ出力す
る。受信コントロール部32はその信号を受けてNG2
パケットをOK/NGリターンバッファ38に生成し、
プロセッサ1に対してNG2パケットを送信する。この
時、NG2パケット内のPID部にNG2パケットを示
すコードPID3をセットする。なお、受信バッファが
未使用と判断されれば、デコーダー部37は図2(d)
に示すOKパケットを生成する制御信号を受信コントロ
ール部32に出力する。受信コントロール部32はその
信号を受けてOKパケットをOK/NGリターンバッフ
ァ38に生成し、プロセッサ1に対してOKパケットを
送信する。この時、OKパケット内のPID部にOKパ
ケットを示すコードPID4をセットする。
On the other hand, if the use of the reception buffer is permitted, the decoder unit 37 next determines whether the designated buffer number is in use from the data of the destination port unit and the reception buffer busy register 35 in the start packet. to decide. For example, if it is determined that the receive buffer is in use,
A control signal for generating the NG2 packet (buffer in use) shown in FIG. 2C is output to the reception control unit 32. The reception control unit 32 receives the signal and fails NG2.
Generate a packet in the OK / NG return buffer 38,
The NG2 packet is transmitted to the processor 1. At this time, the code PID3 indicating the NG2 packet is set in the PID portion in the NG2 packet. If it is determined that the reception buffer is unused, the decoder unit 37 will be shown in FIG.
The control signal for generating the OK packet shown in is output to the reception control unit 32. The reception control unit 32 receives the signal, generates an OK packet in the OK / NG return buffer 38, and transmits the OK packet to the processor 1. At this time, the code PID4 indicating the OK packet is set in the PID portion in the OK packet.

【0019】送信先のプロセッサ2より送信されたNG
1パケット、NG2パケット、あるいはOKパケットの
いずれかが、送信元のプロセッサ1の受信バッファ23
に入る。ここで、デコーダー部24が受信したパケット
内のPID部のデータから、再送信を行うか、送信を停
止するか判断し、起動制御信号を送信コントロール部2
2に出力する。例えば、受信パケットのPID部のコー
ドがNG1パケットを示すPID2であれば、デコーダ
ー部24は送信停止信号を送信コントロール部22に出
力し、送信コントロール部22は以降の送信を停止す
る。また、NG2パケットを示すコードPID3であれ
ば、デコーダー部24はリトライタイマー部25を起動
し、送信コントロール部22は従来の場合と同様の再送
信を行う。さらに、OKパケットを示すコードPID4
であれば、送信コントロール部22は送信先の受信バッ
ファが確認できたので、以降のデータパケットの送信を
開始する。
NG sent from the destination processor 2
One of the 1 packet, the NG2 packet, and the OK packet is received by the reception buffer 23 of the processor 1 that is the transmission source.
to go into. Here, it is determined from the data of the PID portion in the packet received by the decoder unit 24 whether to retransmit or stop the transmission, and the start control signal is sent to the transmission control unit 2
Output to 2. For example, if the code of the PID part of the received packet is PID2 indicating the NG1 packet, the decoder part 24 outputs a transmission stop signal to the transmission control part 22, and the transmission control part 22 stops the subsequent transmission. If the code is PID3 indicating the NG2 packet, the decoder unit 24 activates the retry timer unit 25, and the transmission control unit 22 performs the same retransmission as in the conventional case. Furthermore, a code PID4 indicating an OK packet
If so, the transmission control unit 22 has confirmed the reception buffer of the transmission destination, and starts transmission of the subsequent data packets.

【0020】実施例2.なお、上記実施例1では、受信
バッファの異常発生で当該受信バッファの使用が許可さ
れていないときには送信データの転送を停止する場合に
ついて説明したが、該当するポートの受信バッファを正
常なものに変更して、受信バッファ使用中の場合と同様
の処理を実行することにより、受信バッファが使用不許
可であった場合でも、送信先のプロセッサへの送信デー
タの転送を可能にすることもできる。
Example 2. In the first embodiment described above, the case where the transfer of the transmission data is stopped when the use of the reception buffer is not permitted due to the occurrence of an abnormality in the reception buffer has been described. Then, by executing the same processing as when the reception buffer is being used, it is possible to transfer the transmission data to the destination processor even if the reception buffer is not permitted to be used.

【0021】図3は請求項2に記載したそのような発明
の一実施例を示すブロック図で、図1と同一の部分には
同一符号を付してその説明を省略する。図において、4
0は送信先のプロセッサ2内に配置されて、各ポートと
受信バッファとの対応を管理し、エラー検出部36が受
信バッファのエラーを検出した場合、当該エラーの検出
された受信バッファに対応付けられていたポートに、正
常な別の受信バッファを対応させるポート/バッファ管
理テーブルである。50はこのプロセッサ2の全体制御
を行う中央処理装置(以下、CPUという)である。
FIG. 3 is a block diagram showing an embodiment of the invention described in claim 2. The same parts as those in FIG. 1 are designated by the same reference numerals and the description thereof will be omitted. In the figure, 4
0 is arranged in the processor 2 of the transmission destination, manages the correspondence between each port and the reception buffer, and when the error detection unit 36 detects an error in the reception buffer, associates 0 with the reception buffer in which the error is detected. It is a port / buffer management table that associates another normal reception buffer with the existing port. Reference numeral 50 denotes a central processing unit (hereinafter referred to as CPU) that controls the entire processor 2.

【0022】次に動作について説明する。今、送信先の
プロセッサ2の受信バッファに異常が発生すると、エラ
ー検出部36は受信バッファ許可レジスタ34のエラー
受信バッファ部分を不許可にするとともに、CPU50
に対して割り込みを発生させる。ここで、図4はこのC
PU50の割り込み処理を示すフローチャートである。
CPU50は割り込みが発生すると、まずステップST
1によりエラーの発生した受信バッファを確認し、ステ
ップST2でポート/バッファ管理テーブル40の当該
エラーの発生した受信バッファのアドレスを他の正常な
受信バッファのアドレスに設定し直す。なお、この処理
をしている間にプロセッサ1からスタートパケットが送
信されても、プロセッサ2のCPU50が受信バッファ
許可とするまでは受信バッファ許可レジスタ34は不許
可なので、NG1パケットがプロセッサ1に対して送信
されて、プロセッサ1の送信コントロール部22は送信
データの再送信の制御を続ける。
Next, the operation will be described. Now, when an abnormality occurs in the reception buffer of the processor 2 of the transmission destination, the error detection unit 36 disables the error reception buffer portion of the reception buffer permission register 34, and the CPU 50
Generate an interrupt to. Here, FIG. 4 shows this C
It is a flowchart which shows the interruption process of PU50.
When an interrupt occurs, the CPU 50 firstly proceeds to step ST
The reception buffer in which the error has occurred is confirmed by 1 and the address of the reception buffer in which the error has occurred in the port / buffer management table 40 is reset to another normal reception buffer address in step ST2. Even if a start packet is transmitted from the processor 1 during this process, the reception buffer permission register 34 is not permitted until the CPU 50 of the processor 2 permits the reception buffer, so an NG1 packet is sent to the processor 1. Then, the transmission control unit 22 of the processor 1 continues to control the retransmission of the transmission data.

【0023】その後、ポート/バッファ管理テーブル4
0の変更が完了すると、プロセッサ2のCPU50はス
テップST3において受信バッファ許可レジスタ34の
エラー発生受信バッファ部分を許可に変更する。その
後、送信元のプロセッサ1が同一送信先のプロセッサに
同一データの再送信を行うことにより、以降、プロセッ
サ2は実施例1と同様の再送信処理を行う。
After that, the port / buffer management table 4
When the change of 0 is completed, the CPU 50 of the processor 2 changes the error occurrence reception buffer portion of the reception buffer permission register 34 to permission in step ST3. After that, the processor 1 of the transmission source retransmits the same data to the processor of the same transmission destination, and thereafter, the processor 2 performs the same retransmission processing as that of the first embodiment.

【0024】[0024]

【発明の効果】以上のように、請求項1に記載の発明に
よれば、送信先のプロセッサから、受信バッファの異常
発生によって受信バッファが使用不許可となったことが
通知された場合には送信データの再送信を停止し、受信
バッファが使用中であることが通知された場合には所定
のタイミングで送信データの再送信を行うように構成し
たので、送信先のプロセッサの受信バッファの異常によ
って、誤ったデータの格納、あるいは送信データの無意
味な再送信が繰り返されるようなことのないマルチプロ
セッサシステムが得られる効果がある。
As described above, according to the first aspect of the present invention, when the processor of the transmission destination notifies that the reception buffer has been disabled due to the abnormality of the reception buffer, An error occurred in the receive buffer of the destination processor because it was configured to stop retransmitting the transmit data and retransmit the transmit data at a predetermined timing when the receive buffer is notified that it is in use. Thus, it is possible to obtain a multiprocessor system in which incorrect data is not stored or meaningless retransmission of transmitted data is not repeated.

【0025】また、請求項2に記載の発明によれば、受
信バッファとポートとの対応を管理しているポート/バ
ッファ管理テーブルを設け、受信バッファに異常が発生
した場合、該当ポートの対応受信バッファを別の正常な
受信バッファに変更するように構成したので、受信バッ
ファの使用不許可の場合でも、送信元のプロセッサの再
送信処理によって、送信データの転送を正常に終了する
ことができるマルチプロセッサシステムが得られる効果
がある。
According to the second aspect of the invention, a port / buffer management table for managing the correspondence between the reception buffer and the port is provided, and when an abnormality occurs in the reception buffer, the corresponding reception of the corresponding port is received. Since the buffer is configured to be changed to another normal receive buffer, even if the use of the receive buffer is not permitted, the transmission of the send data can be completed normally by the retransmission processing of the sender processor. The processor system is effective.

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

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

【図2】上記実施例におけるメッセージ送信時の各メッ
セージパケットのフォーマットを示す説明図である。
FIG. 2 is an explanatory diagram showing a format of each message packet when a message is transmitted in the above embodiment.

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

【図4】上記実施例におけるCPUの割り込み処理を示
すフローチャートである。
FIG. 4 is a flowchart showing CPU interrupt processing in the above embodiment.

【図5】従来のマルチプロセッサを示すブロック図であ
る。
FIG. 5 is a block diagram showing a conventional multiprocessor.

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

1,2 プロセッサ 3 バス 15 カウンター 16 タイマー 22 送信コントロール部 24 デコーダー部 32 受信コントロール部 34 受信バッファ許可レジスタ 35 受信バッファビジーレジスタ 36 エラー検出部 37 デコーダー部 40 ポート/バッファ管理テーブル 1, 2 processor 3 bus 15 counter 16 timer 22 transmission control unit 24 decoder unit 32 reception control unit 34 reception buffer enable register 35 reception buffer busy register 36 error detection unit 37 decoder unit 40 port / buffer management table

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 複数のプロセッサをバスによって接続
し、送信元の前記プロセッサより送信された送信データ
の受信を、送信先の前記プロセッサで失敗した場合に、
前記送信元のプロセッサは、前記送信データの再送信間
隔を規定するタイマーが生成する所定のタイミングで、
前記送信データの再送信回数を計数するカウンターの計
数値が予め定められた最大再送信回数となるまで、前記
送信先のプロセッサに前記送信データの再送信を行うマ
ルチプロセッサシステムにおいて、前記送信先のプロセ
ッサに、受信バッファの使用許可を示す受信バッファ許
可レジスタと、前記受信バッファが受信中であることを
示す受信バッファビジーレジスタと、前記受信バッファ
使用許可と前記受信バッファビジーとを判断するデコー
ダー部と、前記受信バッファにて異常が発生した時、前
記受信バッファを使用不許可にするエラー検出部と、前
記受信バッファ使用不許可、受信バッファビジーなどを
通知する返送データの送信を制御する受信コントロール
部とを設け、前記送信元のプロセッサに、前記送信先の
プロセッサからの返送データを判断するデコーダー部
と、前記デコーダー部の発生する機動条件に従って、前
記受信バッファ使用不許可の場合には前記送信データの
再送信を行わずに転送を中止し、前記受信バッファビジ
ーの場合には前記所定のタイミングで前記送信データの
再送信を制御する送信コントロール部とを設けたことを
特徴とするマルチプロセッサシステム。
1. When a plurality of processors are connected by a bus and reception of transmission data transmitted from the source processor is failed in the destination processor,
The processor of the transmission source, at a predetermined timing generated by a timer that defines the retransmission interval of the transmission data,
In the multiprocessor system that retransmits the transmission data to the destination processor until the count value of the counter that counts the number of retransmissions of the transmission data reaches a predetermined maximum number of retransmissions, A reception buffer permission register indicating to the processor permission to use the reception buffer, a reception buffer busy register indicating that the reception buffer is receiving, and a decoder unit for determining the reception buffer use permission and the reception buffer busy. An error detection unit for disabling the use of the reception buffer when an abnormality occurs in the reception buffer, and a reception control unit for controlling the transmission of return data for notifying the use of the reception buffer, reception buffer busy, etc. And a processor of the transmission source is provided with a processor of the transmission source. In the case where the receiving buffer is not permitted, the transfer is stopped without retransmitting the transmitting data according to the decoder unit that determines the transmitting data and the mobile condition generated by the decoder unit, and when the receiving buffer is busy. And a transmission control unit for controlling retransmission of the transmission data at the predetermined timing.
【請求項2】 前記送信先のプロセッサに、前記受信バ
ッファとポートとの対応を管理し、前記エラー検出部が
前記受信バッファの異常を検出すると、前記異常の検出
された受信バッファに対応付けられていたポートに、別
の正常な受信バッファを対応させるポート/バッファ管
理テーブルを設け、前記送信元のプロセッサの送信コン
トロール部に、前記受信バッファ使用不許可の場合にも
前記送信データの再送信の制御を行わせることを特徴と
する、請求項1に記載のマルチプロセッサシステム。
2. The processor of the transmission destination manages the correspondence between the reception buffer and the port, and when the error detection unit detects an abnormality in the reception buffer, it is associated with the reception buffer in which the abnormality is detected. A port / buffer management table for associating another normal reception buffer with the port that had been used, and the transmission control unit of the processor of the transmission source can retransmit the transmission data even when the use of the reception buffer is not permitted. The multiprocessor system according to claim 1, wherein the multiprocessor system is controlled.
JP4089275A 1992-03-16 1992-03-16 Multiprocessor system Pending JPH05265989A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4089275A JPH05265989A (en) 1992-03-16 1992-03-16 Multiprocessor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4089275A JPH05265989A (en) 1992-03-16 1992-03-16 Multiprocessor system

Publications (1)

Publication Number Publication Date
JPH05265989A true JPH05265989A (en) 1993-10-15

Family

ID=13966185

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4089275A Pending JPH05265989A (en) 1992-03-16 1992-03-16 Multiprocessor system

Country Status (1)

Country Link
JP (1) JPH05265989A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010198226A (en) * 2009-02-24 2010-09-09 Canon Inc Device and method for data processing, and program
JP2013246642A (en) * 2012-05-25 2013-12-09 Fujitsu Ltd Multiprocessor system, and interprocessor communication method
US10417173B2 (en) 2016-12-08 2019-09-17 Fujitsu Limited Parallel processing apparatus and non-transitory computer-readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010198226A (en) * 2009-02-24 2010-09-09 Canon Inc Device and method for data processing, and program
JP2013246642A (en) * 2012-05-25 2013-12-09 Fujitsu Ltd Multiprocessor system, and interprocessor communication method
US10417173B2 (en) 2016-12-08 2019-09-17 Fujitsu Limited Parallel processing apparatus and non-transitory computer-readable storage medium

Similar Documents

Publication Publication Date Title
US4590468A (en) Token access controller protocol and architecture
JP2503086B2 (en) Data link control method
JPH053941B2 (en)
JPS5847111B2 (en) loop transmission system
JPH0656994B2 (en) Checkpoint / frame number reduction method
JPH05265989A (en) Multiprocessor system
EP0094177A2 (en) Apparatus for direct memory-to-memory intercomputer communication
JP2003338807A (en) Communication system
JP3049042B1 (en) Bus control device and bus control method
JP2581013B2 (en) Bus fault handling circuit
JP3421492B2 (en) Bus stack monitoring method
JP2008219551A (en) Transmission system, communication device, transmission control method, and program
JPH06290130A (en) Data communication controller
JPS63246055A (en) Packet transmitter-receiver
JPH0756842A (en) Channel sub system
JPH06103222A (en) Bus transfer system
JPS6116651A (en) Multilink communication processing system
JPH0715417A (en) Data transfer system
JPH0568902B2 (en)
JPH03158960A (en) Data transmission method
JPH0352048A (en) Automatic resending processing system for message
JPH0863407A (en) Information transfer controller
JPS60124146A (en) Data transmission system
JPH08272752A (en) Parallel processor
JPH05260125A (en) Data transfer control system