JP5569185B2 - Semiconductor device and packet receiving method - Google Patents

Semiconductor device and packet receiving method Download PDF

Info

Publication number
JP5569185B2
JP5569185B2 JP2010147974A JP2010147974A JP5569185B2 JP 5569185 B2 JP5569185 B2 JP 5569185B2 JP 2010147974 A JP2010147974 A JP 2010147974A JP 2010147974 A JP2010147974 A JP 2010147974A JP 5569185 B2 JP5569185 B2 JP 5569185B2
Authority
JP
Japan
Prior art keywords
packet
transmission
semiconductor device
unit
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.)
Expired - Fee Related
Application number
JP2010147974A
Other languages
Japanese (ja)
Other versions
JP2012015630A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2010147974A priority Critical patent/JP5569185B2/en
Publication of JP2012015630A publication Critical patent/JP2012015630A/en
Application granted granted Critical
Publication of JP5569185B2 publication Critical patent/JP5569185B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本件は、パケット通信を行う半導体装置、およびパケット受信方法に関する。 This case, the semiconductor device for performing packet communications, and relates to the packet reception how.

従来、複数のデバイス間のデータ転送に、パケットを使用するものがある。例えば、複数のデバイスは、パケットの経路を切り替えるスイッチにシリアル伝送路を介して接続され、あるデバイスがあるデバイスにパケットを転送するのに、前記のスイッチを介して行う。   Conventionally, there is a technique that uses a packet for data transfer between a plurality of devices. For example, a plurality of devices are connected to a switch that switches a packet path via a serial transmission path, and a certain device transfers the packet to a certain device via the switch.

具体的には、送信側デバイスから出力されるパケットには、受信側デバイスの宛先を示すデスティネーションIDが含まれている。スイッチは、シリアル伝送路を介して、送信側デバイスからパケットを受信すると、パケットに含まれているデスティネーションIDに基づき、受信したパケットを宛先の受信側デバイスが接続されたシリアル伝送路に出力する。これにより、送信側デバイスから受信側デバイスへデータ転送が行われる。   Specifically, the packet output from the transmission side device includes a destination ID indicating the destination of the reception side device. When the switch receives the packet from the transmitting device via the serial transmission path, the switch outputs the received packet to the serial transmission path to which the destination receiving device is connected based on the destination ID included in the packet. . As a result, data is transferred from the transmitting device to the receiving device.

また、送信側デバイスは、割り込み信号を受信側デバイスに送信してパケットの送信完了通知を行う。受信側デバイスは、送信側デバイスからの割り込み信号を受信して受信したパケットのデータ処理を行う。これにより、受信側デバイスは、例えば、割り込み信号を受信してから、受信したパケットのデータ処理を行うことができ、割り込み信号を受信するまでの間、その他のデータ処理を行うことができる。なお、割り込み信号の信号線は、シリアル伝送路とは別に設けられている。   Further, the transmission side device transmits an interrupt signal to the reception side device to notify the completion of packet transmission. The receiving device receives the interrupt signal from the transmitting device and performs data processing on the received packet. Thereby, for example, the receiving side device can perform data processing of the received packet after receiving the interrupt signal, and can perform other data processing until the interrupt signal is received. The signal line for the interrupt signal is provided separately from the serial transmission path.

また、受信側デバイスは、例えば、パケットの輻輳などによってパケットの転送遅延が生じると、パケットの受信が完了していないときに、送信側デバイスから割り込み信号を受信することがある。この場合、受信側デバイスは、パケットを受信完了していないため、適切な受信処理を行うことができない。   In addition, when a packet transfer delay occurs due to, for example, packet congestion, the receiving device may receive an interrupt signal from the transmitting device when reception of the packet is not completed. In this case, since the receiving side device has not received the packet, it cannot perform an appropriate receiving process.

そこで、送信側デバイスは、パケットの終端にパケットの終端であることを示す情報を付加する。これにより、受信側デバイスは、パケットの受信完了前に割り込み信号を受信しても、例えば、受信バッファにパケットの終端を示す情報が受信されていなければ、パケットはまだ受信されていないと判断し、パケットの受信完了を待つ。そして、受信側デバイスは、パケットの終端を示す情報が受信バッファに受信されてから、すなわち、パケットの受信完了を確認してから、受信したパケットのデータ処理を行う。   Therefore, the transmission side device adds information indicating the end of the packet to the end of the packet. Thus, even if the receiving device receives an interrupt signal before the completion of packet reception, for example, if information indicating the end of the packet is not received in the reception buffer, the receiving device determines that the packet has not been received yet. Wait for the completion of packet reception. The receiving device performs data processing on the received packet after information indicating the end of the packet is received by the reception buffer, that is, after reception completion of the packet is confirmed.

なお、高速ネットワーク上でデータパケットを送受信する際のCPU(Central Processing Unit)に対する割り込み等のオーバヘッドを削減するための方法および装置が提案されている(例えば、特許文献1参照)。   A method and apparatus for reducing overhead such as interruption to a CPU (Central Processing Unit) when transmitting and receiving data packets on a high-speed network has been proposed (see, for example, Patent Document 1).

また、休止状態にあるホストプロセッサを頻繁に起動しないことにより、休止状態から稼動状態に遷移する際の時間的オーバヘッドを軽減するとともに、オーバヘッド時間に浪費する電力を抑制し、通信性能の向上を図るパケット受信装置が提案されている(例えば、特許文献2参照)。   In addition, by not starting the host processor in the hibernation state frequently, the time overhead when transitioning from the hibernation state to the operation state is reduced, and power consumed in the overhead time is suppressed, thereby improving communication performance. A packet receiving device has been proposed (see, for example, Patent Document 2).

また、ネットワークからの入力データを迅速にホストコンピュータに転送する通信処理装置が提案されている(特許文献3参照)。   A communication processing device that promptly transfers input data from a network to a host computer has been proposed (see Patent Document 3).

特開2000−341333号公報JP 2000-341333 A 特開2008−270918号公報JP 2008-270918 A 特開2000−332855号公報JP 2000-332855 A

しかし、受信側デバイスは、割り込み信号を受信したときにパケットの終端を示す情報を受信していない場合、パケットの受信完了を確認するためにその後、パケットの終端を示す情報の受信確認を繰り返し行う。そのため、受信側デバイスは、このパケットの受信完了を確認する処理に占有され、他の処理を行うことができず、データ処理に遅延が生じる場合があるという問題点があった。   However, if the receiving device does not receive the information indicating the end of the packet when receiving the interrupt signal, the receiving device repeatedly confirms the reception of the information indicating the end of the packet to confirm the completion of the packet reception. . For this reason, the receiving device is occupied by the process of confirming the completion of reception of the packet, cannot perform other processes, and there is a problem that a delay may occur in data processing.

本件はこのような点に鑑みてなされたものであり、パケット転送によるデータ処理の遅延を防止する半導体装置、およびパケット受信方法を提供することを目的とする。 This case has been made in view of the above problems, and an object thereof is to provide a semiconductor device, and a packet reception how to prevent the delay of the data processing by the packet transfer.

上記課題を解決するために、パケットを受信する半導体装置において、第1の伝送路を通じてパケットを受信する受信部と、パケットを送信した送信側半導体装置から第1の伝送路とは異なる第2の伝送路を通じて当該パケットの送信完了後に複数回送信される、当該パケットを送信したことを示すパケット送信信号を検出する送信信号検出部と、送信信号検出部によるパケット送信信号の検出に応じて、受信部によるパケットの受信が完了しているか否か判断するパケット受信判断部と、パケット受信判断部によってパケットの受信が完了していると判断された場合、送信信号検出部がその後に送信されるパケット送信信号を検出しないようにする送信信号マスク部と、を有する半導体装置が提供される。  In order to solve the above problem, in a semiconductor device that receives a packet, a receiving unit that receives the packet through the first transmission path, and a second transmission path that is different from the first transmission path from the transmission-side semiconductor device that transmitted the packet. A transmission signal detection unit that detects a packet transmission signal that indicates that the packet has been transmitted and is transmitted a plurality of times after transmission of the packet is completed through the transmission path, and reception according to detection of the packet transmission signal by the transmission signal detection unit A packet reception determination unit that determines whether or not reception of a packet by the transmission unit has been completed, and a packet that is subsequently transmitted by the transmission signal detection unit when the packet reception determination unit determines that reception of the packet is complete There is provided a semiconductor device having a transmission signal masking section that prevents detection of a transmission signal.

開示の装置および方法によれば、パケット転送によるデータ処理の遅延を防止することができる。   According to the disclosed apparatus and method, a delay in data processing due to packet transfer can be prevented.

第1の実施の形態に係る半導体装置を示した図である。1 is a diagram illustrating a semiconductor device according to a first embodiment. 受信側の半導体装置の動作を説明する図である。It is a figure explaining operation | movement of the semiconductor device of a receiving side. 受信側の半導体装置がパケットの受信確認を繰り返し行う動作を説明する図である。It is a figure explaining the operation | movement which the reception side semiconductor device repeats reception confirmation of a packet. 第2の実施の形態に係る半導体装置が適用されるデータ伝送システム例を示した図である。It is the figure which showed the example of the data transmission system with which the semiconductor device which concerns on 2nd Embodiment is applied. パケットのデータ構成例を示した図である。It is the figure which showed the data structural example of the packet. 送信側の半導体装置のブロック図である。It is a block diagram of the semiconductor device of a transmission side. 半導体装置の送信処理タイミングを示した図である。It is the figure which showed the transmission processing timing of the semiconductor device. 受信側の半導体装置のブロック図である。It is a block diagram of the semiconductor device on the receiving side. 半導体装置の受信処理タイミングを示した図である。It is the figure which showed the reception processing timing of the semiconductor device. 半導体装置の受信処理タイミングの他の例を示した図である。It is the figure which showed the other example of the reception process timing of a semiconductor device. 送信側の半導体装置のフローチャートである。It is a flowchart of the semiconductor device on the transmission side. 受信側の半導体装置のフローチャートである。It is a flowchart of the semiconductor device on the receiving side.

以下、第1の実施の形態を、図面を参照して詳細に説明する。
図1は、第1の実施の形態に係る半導体装置を示した図である。図1には、パケットを送信する半導体装置1およびパケットを受信する半導体装置2が示してある。半導体装置1は、送信部1aおよび送信信号送信部1bを有している。半導体装置2は、受信部2a、送信信号検出部2b、パケット受信判断部2c、および送信信号マスク部2dを有している。
Hereinafter, a first embodiment will be described in detail with reference to the drawings.
FIG. 1 is a diagram illustrating a semiconductor device according to the first embodiment. FIG. 1 shows a semiconductor device 1 that transmits packets and a semiconductor device 2 that receives packets. The semiconductor device 1 includes a transmission unit 1a and a transmission signal transmission unit 1b. The semiconductor device 2 includes a reception unit 2a, a transmission signal detection unit 2b, a packet reception determination unit 2c, and a transmission signal mask unit 2d.

半導体装置1の送信部1aは、パケットを半導体装置2に送信する。
送信信号送信部1bは、送信部1aのパケットの半導体装置2への送信に基づいて、パケットを送信したことを示すパケット送信信号を半導体装置2に所定回数送信する。例えば、送信信号送信部1bは、送信部1aがパケットを半導体装置2へ送信すると、2回以上の所定回数で、所定の送信間隔でパケット送信信号を半導体装置2に送信する。
The transmission unit 1 a of the semiconductor device 1 transmits the packet to the semiconductor device 2.
The transmission signal transmission unit 1b transmits a packet transmission signal indicating that the packet has been transmitted to the semiconductor device 2 a predetermined number of times based on the transmission of the packet from the transmission unit 1a to the semiconductor device 2. For example, when the transmission unit 1 a transmits a packet to the semiconductor device 2, the transmission signal transmission unit 1 b transmits a packet transmission signal to the semiconductor device 2 at a predetermined transmission interval at a predetermined number of times of two or more.

半導体装置2の受信部2aは、半導体装置1から送信されたパケットを受信する。
送信信号検出部2bは、半導体装置1から送信されるパケット送信信号を検出する。
パケット受信判断部2cは、送信信号検出部2bがパケット送信信号を検出したとき、受信部2aにパケットが受信されているか否か判断する。
The receiving unit 2 a of the semiconductor device 2 receives a packet transmitted from the semiconductor device 1.
The transmission signal detection unit 2 b detects a packet transmission signal transmitted from the semiconductor device 1.
The packet reception determination unit 2c determines whether a packet is received by the reception unit 2a when the transmission signal detection unit 2b detects a packet transmission signal.

送信信号マスク部2dは、パケット受信判断部2cによってパケットが受信部2aに受信されていると判断された場合、送信信号検出部2bがその後に送信されるパケット送信信号を検出しないようにする。   When the packet reception determination unit 2c determines that the packet is received by the reception unit 2a, the transmission signal mask unit 2d prevents the transmission signal detection unit 2b from detecting a packet transmission signal transmitted thereafter.

図2は、受信側の半導体装置の動作を説明する図である。図2には、半導体装置2の受信部2aに受信されるパケット、送信信号検出部2bに入力されるパケット送信信号、および送信信号マスク部2dから送信信号検出部2bに出力されるマスク信号が示してある。なお、送信側の半導体装置1の送信信号送信部1bからは、図2に示すように、3回パケット送信信号が出力されるとする。   FIG. 2 is a diagram for explaining the operation of the receiving-side semiconductor device. In FIG. 2, a packet received by the receiving unit 2a of the semiconductor device 2, a packet transmission signal input to the transmission signal detection unit 2b, and a mask signal output from the transmission signal mask unit 2d to the transmission signal detection unit 2b are shown. It is shown. It is assumed that the packet transmission signal is output three times from the transmission signal transmission unit 1b of the semiconductor device 1 on the transmission side as shown in FIG.

図2に示すように、送信信号検出部2bが1回目のパケット送信信号を検出したとき、受信部2aではパケットの受信が途中であり受信完了していない。このため、パケット受信判断部2cは、受信部2aにパケットが受信されていないと判断する。そして、送信信号マスク部2dは、パケット受信判断部2cのパケットが受信部2aに受信されていない旨の判断によって、送信信号検出部2bがその後に送信されるパケット送信信号を検出するようにする。例えば、送信信号マスク部2dは、図2に示すように、L状態のマスク信号を出力する。送信信号検出部2bは、L状態のマスク信号により、送信側の半導体装置1から送信されてくるパケット送信信号を検出する。   As shown in FIG. 2, when the transmission signal detection unit 2b detects the first packet transmission signal, the reception unit 2a is in the middle of receiving a packet and the reception is not completed. For this reason, the packet reception determination unit 2c determines that no packet is received by the reception unit 2a. Then, the transmission signal mask unit 2d detects the packet transmission signal transmitted thereafter by the transmission signal detection unit 2b by determining that the packet of the packet reception determination unit 2c is not received by the reception unit 2a. . For example, the transmission signal mask unit 2d outputs a mask signal in the L state as shown in FIG. The transmission signal detection unit 2b detects a packet transmission signal transmitted from the transmission-side semiconductor device 1 using the L state mask signal.

送信信号検出部2bが2回目のパケット送信信号を検出したとき、受信部2aではパケットの受信が完了している。このため、パケット受信判断部2cは、受信部2aにパケットが受信されていると判断する。そして、送信信号マスク部2dは、パケット受信判断部2cのパケットが受信部2aに受信されている旨の判断によって、送信信号検出部2bがその後に送信されるパケット送信信号を検出しないようにする。例えば、送信信号マスク部2dは、図2に示すように、H状態のマスク信号を出力する。送信信号検出部2bは、H状態のマスク信号により、送信側の半導体装置1から送信されてくるパケット送信信号(3回目のパケット送信信号)を検出しないようにする。   When the transmission signal detection unit 2b detects the second packet transmission signal, reception of the packet is completed in the reception unit 2a. For this reason, the packet reception determination unit 2c determines that the packet is received by the reception unit 2a. Then, the transmission signal masking unit 2d prevents the transmission signal detection unit 2b from detecting a packet transmission signal transmitted thereafter by determining that the packet of the packet reception determination unit 2c is received by the reception unit 2a. . For example, the transmission signal mask unit 2d outputs a mask signal in the H state as shown in FIG. The transmission signal detector 2b prevents the packet transmission signal (third packet transmission signal) transmitted from the semiconductor device 1 on the transmission side from being detected by the mask signal in the H state.

ここで、受信側の半導体装置がパケットの受信確認を繰り返し行う場合の動作について説明する。
図3は、受信側の半導体装置がパケットの受信確認を繰り返し行う動作を説明する図である。図3には、送信側の半導体装置が送信するパケット6と、受信側の半導体装置が受信するパケット7a,7bが示してある。また、受信側の半導体装置が送信側の半導体装置から受信する割り込み信号8が示してある。割り込み信号8は1回、送信側の半導体装置から受信側の半導体装置に送信される。
Here, an operation when the receiving-side semiconductor device repeatedly performs packet reception confirmation will be described.
FIG. 3 is a diagram for explaining an operation in which the reception-side semiconductor device repeatedly performs packet reception confirmation. FIG. 3 shows a packet 6 transmitted by the transmitting semiconductor device and packets 7a and 7b received by the receiving semiconductor device. An interrupt signal 8 received by the receiving semiconductor device from the transmitting semiconductor device is also shown. The interrupt signal 8 is transmitted once from the transmission-side semiconductor device to the reception-side semiconductor device.

送信側の半導体装置の送信するパケット6と、受信側の半導体装置の受信するパケット7aとの間には、図3の矢印A2に示すように、伝送路による伝送時間分遅延が生じる。送信側の半導体装置が送信する割り込み信号8の送信タイミングは、伝送路による伝送時間分を考慮して決められる。すなわち、送信側の半導体装置は、受信側の半導体装置がパケット6の受信を完了してから、割り込み信号8を受信するように、割り込み信号8の送信タイミングを決める。   As indicated by an arrow A2 in FIG. 3, a delay corresponding to the transmission time is generated between the packet 6 transmitted by the transmission-side semiconductor device and the packet 7a received by the reception-side semiconductor device. The transmission timing of the interrupt signal 8 transmitted by the transmission-side semiconductor device is determined in consideration of the transmission time for the transmission path. That is, the transmission-side semiconductor device determines the transmission timing of the interrupt signal 8 so that the reception-side semiconductor device receives the interrupt signal 8 after the reception of the packet 6 is completed.

例えば、図3に示すように、パケット7aより後に受信側の半導体装置が割り込み信号8を受信するように送信タイミングを決める。これにより、受信側の半導体装置は、割り込み信号8の受信によって、送信側の半導体装置から受信したパケット7aの受信処理を適切に行うことができる。   For example, as shown in FIG. 3, the transmission timing is determined so that the receiving semiconductor device receives the interrupt signal 8 after the packet 7a. Thus, the reception-side semiconductor device can appropriately perform the reception process of the packet 7 a received from the transmission-side semiconductor device by receiving the interrupt signal 8.

ところで、受信側の半導体装置の受信するパケットは、例えば、パケットの輻輳等によって、伝送路による伝送時間以上遅延する場合がある。そのため、受信側の半導体装置は、図3に示すように、割り込み信号8の受信後にパケット7bの受信を完了する場合がある。   By the way, a packet received by the receiving-side semiconductor device may be delayed for a transmission time or more by a transmission path due to, for example, packet congestion. For this reason, the receiving-side semiconductor device may complete the reception of the packet 7b after receiving the interrupt signal 8, as shown in FIG.

この場合、受信側の半導体装置は、割り込み信号8が一回しか送信されないため、割り込み信号8の受信後、自らパケットの受信完了確認を行う。このため、受信側の半導体装置は、矢印A3に示すように、パケットの受信完了のための確認処理を繰り返し行い、受信完了を確認する処理に占有され、他の処理を行うことができない。   In this case, since the interrupt signal 8 is transmitted only once, the receiving-side semiconductor device performs its own packet reception confirmation after receiving the interrupt signal 8. For this reason, as shown by the arrow A3, the receiving-side semiconductor device repeatedly performs the confirmation process for completing the reception of the packet, is occupied by the process for confirming the completion of reception, and cannot perform other processes.

一方、図1に示した半導体装置1では、所定回数パケット送信信号を送信する。半導体装置2は、複数のパケット送信信号の検出によって、パケットの受信確認を行う。これにより、半導体装置2は、例えば、図2の矢印A1に示すように、パケットが1回目のパケット送信信号より後に受信完了しても、2回目のパケット送信信号を受信する間、他のデータ処理を行うことができる。また、半導体装置2は、パケットの受信完了後に受信するパケット送信信号(3回目のパケット送信信号)をマスクするので、パケットを受信完了した後は、パケットの受信割り込みを受けない。よって、半導体装置2は、遅延を生じることなくデータ処理を行うことができる。   On the other hand, the semiconductor device 1 shown in FIG. 1 transmits a packet transmission signal a predetermined number of times. The semiconductor device 2 performs packet reception confirmation by detecting a plurality of packet transmission signals. Thereby, for example, as indicated by an arrow A1 in FIG. 2, the semiconductor device 2 receives other data while receiving the second packet transmission signal even if the packet is completely received after the first packet transmission signal. Processing can be performed. In addition, since the semiconductor device 2 masks the packet transmission signal (third packet transmission signal) received after the completion of packet reception, the semiconductor device 2 does not receive a packet reception interrupt after completing reception of the packet. Therefore, the semiconductor device 2 can perform data processing without causing a delay.

このように、パケットの送信側の半導体装置1は、パケットを送信したことを示すパケット送信信号を所定回数、受信側の半導体装置2に送信する。パケットの受信側の半導体装置2は、パケットを受信したと判断した場合、その後に送信されるパケット送信信号を検出しないようにする。これにより、半導体装置2は、パケット転送によるデータ処理の遅延を防止することができる。   In this way, the semiconductor device 1 on the packet transmission side transmits a packet transmission signal indicating that the packet has been transmitted to the semiconductor device 2 on the reception side a predetermined number of times. If the semiconductor device 2 on the packet receiving side determines that the packet has been received, it does not detect a packet transmission signal transmitted thereafter. Thereby, the semiconductor device 2 can prevent data processing delay due to packet transfer.

次に、第2の実施の形態を、図面を参照して詳細に説明する。
図4は、第2の実施の形態に係る半導体装置が適用されるデータ伝送システム例を示した図である。図4に示すように、データ伝送システムは、半導体装置11a〜11d,…およびスイッチ12を有している。半導体装置11a〜11d,…は、シリアル伝送路によってスイッチ12に接続されている。また、図4には示していないが、半導体装置11a〜11d,…のそれぞれは、割り込み信号を通知するための割り込み信号線が互いに接続されている。
Next, a second embodiment will be described in detail with reference to the drawings.
FIG. 4 is a diagram illustrating an example of a data transmission system to which the semiconductor device according to the second embodiment is applied. As shown in FIG. 4, the data transmission system includes semiconductor devices 11 a to 11 d,. The semiconductor devices 11a to 11d,... Are connected to the switch 12 by a serial transmission path. Although not shown in FIG. 4, each of the semiconductor devices 11 a to 11 d,... Is connected to an interrupt signal line for notifying an interrupt signal.

図4のデータ伝送システムは、例えば、BTS(Base Transceiver Station)の基板に実装された半導体装置11a〜11d,…のデータ転送に適用される。半導体装置11a〜11d,…は、例えば、CPUやDSP(Digital Signal Processor)などのデバイスである。半導体装置11a〜11d,…は、スイッチ12を介して、データ(パケット)の送受信を行う。例えば、半導体装置11a〜11d,…は、自分で計算した計算結果を、スイッチ12を介して、他の半導体装置11a〜11d,…に送信する。   The data transmission system of FIG. 4 is applied to, for example, data transfer of semiconductor devices 11a to 11d,... Mounted on a BTS (Base Transceiver Station) substrate. The semiconductor devices 11a to 11d,... Are devices such as a CPU and a DSP (Digital Signal Processor). The semiconductor devices 11a to 11d, ... transmit and receive data (packets) via the switch 12. For example, the semiconductor devices 11a to 11d,... Transmit the calculation results calculated by themselves to the other semiconductor devices 11a to 11d,.

半導体装置11a〜11d,…間で送受信されるパケットについて説明する。
図5は、パケットのデータ構成例を示した図である。図5に示すように、パケット21には、パケットの宛先を示すデスティネーションID(図中DEST)と、パケットの終端であることを示す終端情報(図中FLG)と、受信側の半導体装置11a〜11d,…に送信するデータとが含まれる。
Packets transmitted and received between the semiconductor devices 11a to 11d, ... will be described.
FIG. 5 is a diagram illustrating a data configuration example of a packet. As shown in FIG. 5, the packet 21 includes a destination ID (DEST in the figure) indicating the destination of the packet, termination information (FLG in the figure) indicating the end of the packet, and the receiving-side semiconductor device 11a. To 11d, ... are included.

パケット21の宛先は、例えば、8ビットのデスティネーションID(図中Destination ID)によって示される。パケット21の終端情報は、4ビットのシンボル番号(図中Symbol Num)と、1ビットのイネーブル情報(図中EN)とによって示される。パケット21の終端情報は、パケット21の終端の8ビットを用いて示されるが、4ビット目から6ビット目はリザーブとなっている。   The destination of the packet 21 is indicated by, for example, an 8-bit destination ID (Destination ID in the figure). The termination information of the packet 21 is indicated by a 4-bit symbol number (Symbol Num in the figure) and 1-bit enable information (EN in the figure). The end information of the packet 21 is indicated by using the 8 bits at the end of the packet 21, but the 4th to 6th bits are reserved.

パケットは、以下で説明するように、シンボル周期内において送受信される。シンボル番号は、パケットがどのシンボル周期内で送受信されたものであるかを示す。イネーブル情報は、送受信されるパケットのデータが有効であるか無効であるかを示す。半導体装置11a〜11d,…は、例えば、データが全て0であるなどの意味のないパケットを送る場合があり、この場合、イネーブル情報は無効であることを示す。   Packets are transmitted and received within a symbol period as described below. The symbol number indicates in which symbol period the packet is transmitted / received. The enable information indicates whether the data of the transmitted / received packet is valid or invalid. The semiconductor devices 11a to 11d,... May send a meaningless packet such as all data being 0, for example. In this case, the enable information is invalid.

図4の説明に戻る。スイッチ12は、半導体装置11a〜11d,…からパケットを受信すると、パケットに含まれるデスティネーションIDに基づいて、受信したパケットを所定のシリアル伝送路に出力する。これにより、半導体装置11a〜11d,…から出力されるパケットは、所望の半導体装置11a〜11d,…に転送される。   Returning to the description of FIG. When receiving a packet from the semiconductor devices 11a to 11d,..., The switch 12 outputs the received packet to a predetermined serial transmission path based on the destination ID included in the packet. Thereby, the packets output from the semiconductor devices 11a to 11d,... Are transferred to the desired semiconductor devices 11a to 11d,.

また、半導体装置11a〜11d,…は、パケットの送信を完了すると、パケットを送信したことを示す割り込み信号を、宛先の半導体装置11a〜11d,…に出力する。
例えば、半導体装置11aは、半導体装置11dにパケットを送信するとする。この場合、半導体装置11aは、パケットの送信を完了すると、図4の点線矢印A11に示すように、割り込み信号を半導体装置11dに出力する。パケットの受信側の半導体装置11dは、割り込み信号によって、パケットが自分宛てに送信されたことを認識することができる。
Further, when the semiconductor devices 11a to 11d,... Complete the transmission of the packet, the semiconductor devices 11a to 11d output an interrupt signal indicating that the packet has been transmitted to the destination semiconductor devices 11a to 11d,.
For example, it is assumed that the semiconductor device 11a transmits a packet to the semiconductor device 11d. In this case, when the transmission of the packet is completed, the semiconductor device 11a outputs an interrupt signal to the semiconductor device 11d as indicated by a dotted arrow A11 in FIG. The semiconductor device 11d on the packet receiving side can recognize that the packet is transmitted to itself by the interrupt signal.

パケットの送信側の半導体装置11a〜11d,…は、割り込み信号を所定回数出力する。パケットの受信側の半導体装置11a〜11d,…は、割り込み信号を受信すると、受信バッファにパケットが受信されたか否か判断する。受信側の半導体装置11a〜11d,…は、パケットの終端情報(図5で説明したFLG)が受信バッファに受信されているか否かに基づいて、パケットの受信を判断する。すなわち、受信側の半導体装置11a〜11d,…は、パケット全体を受信完了した場合に、パケットを受信したと判断する。   The semiconductor devices 11a to 11d on the packet transmission side output interrupt signals a predetermined number of times. When receiving the interrupt signal, the semiconductor devices 11a to 11d on the packet receiving side determine whether or not the packet is received in the reception buffer. The receiving-side semiconductor devices 11a to 11d,... Determine reception of the packet based on whether or not the packet termination information (FLG described in FIG. 5) is received by the reception buffer. That is, the receiving-side semiconductor devices 11a to 11d,... Determine that a packet has been received when the reception of the entire packet has been completed.

受信側の半導体装置11a〜11dは、割り込み信号を受信したときに、受信バッファにパケットが受信されていれば、その後に送られてくる割り込み信号をマスクし、受信したパケットのデータ処理を行う。   When receiving the interrupt signal, the receiving-side semiconductor devices 11a to 11d mask the interrupt signal transmitted thereafter and perform data processing on the received packet.

一方、受信側の半導体装置11a〜11dは、割り込み信号を受信したときに、例えば、パケットの輻輳等によって受信バッファにパケットが受信されていなければ、受信したパケットのデータ処理以外のデータ処理を行う。そして、受信側の半導体装置11a〜11dは、次の割り込み信号を受信したときに、受信バッファにパケットが受信されていれば、その後に送られてくる割り込み信号をマスクし、受信したパケットのデータ処理を行う。受信側の半導体装置11a〜11dは、次の割り込み信号を受信したときに、受信バッファにパケットが受信されていなければ、受信したパケットのデータ処理以外のデータ処理を行う。   On the other hand, when receiving the interrupt signal, the semiconductor devices 11a to 11d on the receiving side perform data processing other than the data processing of the received packet if, for example, the packet is not received in the reception buffer due to packet congestion or the like. . Then, if the receiving side semiconductor devices 11a to 11d receive the next interrupt signal and the packet is received in the reception buffer, the received interrupt signal is masked and the received packet data is received. Process. When receiving the next interrupt signal, the receiving-side semiconductor devices 11a to 11d perform data processing other than the data processing of the received packet if no packet is received in the reception buffer.

図6は、送信側の半導体装置のブロック図である。図6に示すように、パケットの送信側の半導体装置30は、データ処理部31、パケット組立部32、送信タイミング生成部33、送信バッファ34、回数設定部35、間隔設定部36、および割り込み信号生成部37を有している。   FIG. 6 is a block diagram of the semiconductor device on the transmission side. As shown in FIG. 6, the semiconductor device 30 on the packet transmission side includes a data processing unit 31, a packet assembly unit 32, a transmission timing generation unit 33, a transmission buffer 34, a number setting unit 35, an interval setting unit 36, and an interrupt signal. A generation unit 37 is included.

データ処理部31は、所定のデータ処理を行う。データ処理部31は、例えば、所定のデータ処理を行ったデータのうち、他の半導体装置に送信するデータについては、パケット組立部32に出力する。   The data processing unit 31 performs predetermined data processing. The data processing unit 31 outputs, for example, data to be transmitted to another semiconductor device among data subjected to predetermined data processing to the packet assembly unit 32.

パケット組立部32は、データ処理部31から出力されたデータからパケットを組み立てる。パケット組立部32は、宛先付加部32aおよびFLG付加部32bを有している。   The packet assembling unit 32 assembles a packet from the data output from the data processing unit 31. The packet assembling unit 32 includes a destination adding unit 32a and an FLG adding unit 32b.

宛先付加部32aは、データ処理部31から出力されたデータの先頭に宛先を付加する。FLG付加部32bは、データ処理部31から出力されたデータの終端に終端情報を付加する。これにより、例えば、図5で説明したようなパケットが生成される。   The destination adding unit 32 a adds a destination to the head of the data output from the data processing unit 31. The FLG adding unit 32b adds termination information to the end of the data output from the data processing unit 31. Thereby, for example, a packet as described in FIG. 5 is generated.

送信タイミング生成部33は、送信バッファ34に一時記憶されるパケットの送信タイミングを生成する。
送信バッファ34は、パケット組立部32から出力されるパケットを一時記憶する。送信バッファ34は、送信タイミング生成部33からの送信タイミングに応じて、一時記憶しているパケットをシリアル伝送路に出力する。
The transmission timing generation unit 33 generates the transmission timing of the packet temporarily stored in the transmission buffer 34.
The transmission buffer 34 temporarily stores a packet output from the packet assembly unit 32. The transmission buffer 34 outputs the temporarily stored packet to the serial transmission path according to the transmission timing from the transmission timing generation unit 33.

回数設定部35には、パケットの宛先の半導体装置に送信する割り込み信号の送信回数が設定される。
間隔設定部36には、パケットの宛先の半導体装置に送信する割り込み信号の送信間隔が設定される。
The number-of-times setting unit 35 sets the number of times of transmission of an interrupt signal to be transmitted to the packet destination semiconductor device.
In the interval setting unit 36, the transmission interval of the interrupt signal transmitted to the semiconductor device that is the destination of the packet is set.

割り込み信号生成部37は、送信バッファ34からパケットが出力されると、割り込み信号を生成する。割り込み信号生成部37は、送信バッファ34がパケットを出力してから、回数設定部35に設定された送信回数、割り込み信号を生成する。生成した割り込み信号は、パケットの宛先の半導体装置と接続された割り込み信号線に出力される。   When a packet is output from the transmission buffer 34, the interrupt signal generator 37 generates an interrupt signal. The interrupt signal generation unit 37 generates an interrupt signal for the number of transmissions set in the number setting unit 35 after the transmission buffer 34 outputs the packet. The generated interrupt signal is output to an interrupt signal line connected to the packet destination semiconductor device.

また、割り込み信号生成部37は、パケットのシリアル伝送路の伝送時間を考慮して、最初の割り込み信号を出力する。例えば、パケットサイズを1024バイト、伝送速度を2.5Gbpsとした場合、送信バッファ34から送信されるパケットは、約3.3μsec後に受信側の半導体装置に到着する。従ってこの場合、割り込み信号生成部37は、送信バッファ34からパケットが送信されてから約3.3μsec以上経過後に最初の割り込み信号を送信するようにする。   The interrupt signal generator 37 outputs the first interrupt signal in consideration of the transmission time of the packet serial transmission path. For example, when the packet size is 1024 bytes and the transmission rate is 2.5 Gbps, the packet transmitted from the transmission buffer 34 arrives at the receiving semiconductor device after about 3.3 μsec. Therefore, in this case, the interrupt signal generation unit 37 transmits the first interrupt signal after about 3.3 μsec or more after the packet is transmitted from the transmission buffer 34.

図7は、半導体装置の送信処理タイミングを示した図である。図7には、シンボル周期が示してある。シンボル周期は、例えば、約70μsecである。また、図7には、半導体装置30から他の半導体装置に送信するパケットが示してある。また、図7には、半導体装置30から出力される割り込み信号が示してある。   FIG. 7 is a diagram illustrating the transmission processing timing of the semiconductor device. FIG. 7 shows symbol periods. The symbol period is about 70 μsec, for example. FIG. 7 shows a packet transmitted from the semiconductor device 30 to another semiconductor device. FIG. 7 shows an interrupt signal output from the semiconductor device 30.

半導体装置30のデータ処理部31は、例えば、1シンボル周期ごとに所定のデータ処理を行う。所定のデータ処理が行われたデータのうち、他の半導体装置に送信するデータについては、パケット組立部32に出力される。   For example, the data processing unit 31 of the semiconductor device 30 performs predetermined data processing every symbol period. Of the data that has undergone predetermined data processing, data to be transmitted to another semiconductor device is output to the packet assembly unit 32.

パケット組立部32は、データ処理部31から出力されるデータを有するパケットを生成する。パケット組立部32によって生成されたパケットは、送信バッファ34に一時記憶される。   The packet assembling unit 32 generates a packet having data output from the data processing unit 31. The packet generated by the packet assembly unit 32 is temporarily stored in the transmission buffer 34.

送信タイミング生成部33は、1シンボル周期内における時刻Tsになると、送信タイミング信号を送信バッファ34に出力する。送信バッファ34は、送信タイミング生成部33からの送信タイミング信号を受けて、一時記憶しているパケットをシリアル伝送路に出力する。シリアル伝送路に出力されたパケットは、時刻Teに送信が完了する。   The transmission timing generator 33 outputs a transmission timing signal to the transmission buffer 34 at time Ts within one symbol period. The transmission buffer 34 receives the transmission timing signal from the transmission timing generation unit 33 and outputs the temporarily stored packet to the serial transmission path. Transmission of the packet output to the serial transmission path is completed at time Te.

割り込み信号生成部37は、送信バッファ34からパケットが出力されると、回数設定部35によって設定された送信回数、割り込み信号を出力する。また、割り込み信号生成部37は、間隔設定部36によって設定された送信間隔で割り込み信号を出力する。   When a packet is output from the transmission buffer 34, the interrupt signal generation unit 37 outputs an interrupt signal for the number of transmissions set by the number setting unit 35. Further, the interrupt signal generation unit 37 outputs an interrupt signal at the transmission interval set by the interval setting unit 36.

例えば、回数設定部35に、送信回数4が設定されたとする。間隔設定部36に、4μsecの送信間隔が設定されたとする。この場合、図7に示すように、パケットの送信完了後、4μsecごとに4回割り込み信号が出力される。   For example, it is assumed that the number of transmissions 4 is set in the number setting unit 35. It is assumed that a transmission interval of 4 μsec is set in the interval setting unit 36. In this case, as shown in FIG. 7, an interrupt signal is output four times every 4 μsec after packet transmission is completed.

なお、図7では、半導体装置30が1シンボル周期内に1パケットを送信する例を示しているが、2以上のパケットを1シンボル周期内に送信してもよい。
図8は、受信側の半導体装置のブロック図である。図8に示すように、パケットの受信側の半導体装置40は、受信バッファ41、割り込み信号検出部42、パケット受信判断部43、受信タイミング生成部44、割り込みマスク部45、およびデータ処理部46を有している。
FIG. 7 shows an example in which the semiconductor device 30 transmits one packet within one symbol period, but two or more packets may be transmitted within one symbol period.
FIG. 8 is a block diagram of the semiconductor device on the receiving side. As shown in FIG. 8, the semiconductor device 40 on the packet reception side includes a reception buffer 41, an interrupt signal detection unit 42, a packet reception determination unit 43, a reception timing generation unit 44, an interrupt mask unit 45, and a data processing unit 46. Have.

受信バッファ41は、スイッチから出力されるパケットを一時記憶する。
割り込み信号検出部42は、パケットの送信側の半導体装置から送信される割り込み信号を検出する。これにより、半導体装置40は、自分にパケットが送信されたことを認識することができる。
The reception buffer 41 temporarily stores packets output from the switch.
The interrupt signal detector 42 detects an interrupt signal transmitted from the semiconductor device on the packet transmission side. Thereby, the semiconductor device 40 can recognize that the packet has been transmitted to itself.

パケット受信判断部43は、割り込み信号検出部42が割り込み信号を検出したとき、受信バッファ41にパケットが受信されているか否か判断する。パケット受信判断部43は、受信バッファ41に終端情報(FLG)が記憶されているか否かによって、受信バッファ41にパケットが受信されているか否か判断する。すなわち、パケット受信判断部43は、受信バッファ41のパケットの受信が完了したか否か判断する。   The packet reception determination unit 43 determines whether or not a packet is received in the reception buffer 41 when the interrupt signal detection unit 42 detects an interrupt signal. The packet reception determination unit 43 determines whether a packet is received in the reception buffer 41 based on whether termination information (FLG) is stored in the reception buffer 41. That is, the packet reception determination unit 43 determines whether or not reception of the packet in the reception buffer 41 is completed.

例えば、パケット受信判断部43は、有効を示すイネーブル情報と、前回のシンボル番号に対して1加算されたシンボル番号が受信バッファ41に記憶されている場合(前回のシンボル番号が最大値の場合は0)、パケットは受信完了していると判断する。また、パケット受信判断部43は、無効を示すイネーブル情報とシンボル番号が受信バッファに記憶されている場合もパケットは受信完了していると判断する。一方、パケット受信判断部43は、イネーブル情報とシンボル番号が受信バッファ41に記憶されていない場合、パケットは受信完了していないと判断する。   For example, the packet reception determination unit 43 stores enable information indicating validity and a symbol number obtained by adding 1 to the previous symbol number in the reception buffer 41 (when the previous symbol number is the maximum value). 0), it is determined that the packet has been received. The packet reception determination unit 43 also determines that the reception of the packet has been completed when the enable information indicating invalidity and the symbol number are stored in the reception buffer. On the other hand, when the enable information and the symbol number are not stored in the reception buffer 41, the packet reception determination unit 43 determines that reception of the packet has not been completed.

受信タイミング生成部44は、パケットが当該半導体装置40に到達するであろう受信タイミングを生成する。例えば、送信側の半導体装置30は、図7で説明したように、シンボル周期内における時刻Tsでパケットを送信し、時刻Teでパケット送信を完了する。これにより、受信タイミング生成部44は、例えば、時刻Teに同期することができ、シンボル周期内における時刻Teになると、受信タイミングを生成する。   The reception timing generation unit 44 generates reception timing at which the packet will reach the semiconductor device 40. For example, as described with reference to FIG. 7, the transmitting-side semiconductor device 30 transmits a packet at time Ts within the symbol period, and completes packet transmission at time Te. Thereby, for example, the reception timing generation unit 44 can synchronize with the time Te, and generates reception timing when the time Te within the symbol period comes.

割り込みマスク部45は、パケット受信判断部43の受信バッファ41にパケットが受信されているか否かの判断と、受信タイミング生成部44によって生成された受信タイミングとによって、割り込み信号検出部42の割り込み信号の検出を活性化および不活性化する。   The interrupt mask unit 45 determines whether or not the packet is received in the reception buffer 41 of the packet reception determination unit 43 and the reception timing generated by the reception timing generation unit 44, and determines the interrupt signal of the interrupt signal detection unit 42. Activate and deactivate the detection of.

例えば、割り込みマスク部45は、受信タイミング生成部44から受信タイミングが出力されると、割り込み信号検出部42を活性化し、割り込み信号検出部42が割り込み信号を検出できるようにする。そして、割り込みマスク部45は、パケット受信判断部43によって受信バッファ41にパケットが受信されたと判断されると、その後、割り込み信号検出部42が送信側の半導体装置30から送信されてくる割り込み信号を検出しないように割り込み信号検出部42を不活性化する。   For example, when the reception timing is output from the reception timing generation unit 44, the interrupt mask unit 45 activates the interrupt signal detection unit 42 so that the interrupt signal detection unit 42 can detect the interrupt signal. When the packet reception determination unit 43 determines that the packet has been received by the reception buffer 41, the interrupt mask unit 45 then transmits an interrupt signal transmitted from the transmission-side semiconductor device 30 by the interrupt signal detection unit 42. The interrupt signal detection unit 42 is inactivated so as not to detect it.

データ処理部46は、パケット受信判断部43によって、受信バッファ41にパケットが受信された場合、受信バッファ41に受信されたパケットを読み出し、受信パケットのデータ処理を行う。   When the packet reception determining unit 43 receives a packet in the reception buffer 41, the data processing unit 46 reads the packet received in the reception buffer 41 and performs data processing on the received packet.

図9は、半導体装置の受信処理タイミングを示した図である。図9には、シンボル周期が示してある。シンボル周期は、例えば、約70μsecである。また、図9には、半導体装置40が他の半導体装置から受信するパケットが示してある。また、図9には、割り込みマスク部45から割り込み信号検出部42に出力される割り込みマスク信号が示してある。また、図9には、割り込み信号検出部42に入力される割り込み信号と、割り込み信号検出部42からパケット受信判断部43に出力される割り込み検出信号とが示してある。   FIG. 9 is a diagram illustrating the reception processing timing of the semiconductor device. FIG. 9 shows symbol periods. The symbol period is about 70 μsec, for example. FIG. 9 shows a packet that the semiconductor device 40 receives from another semiconductor device. FIG. 9 shows an interrupt mask signal output from the interrupt mask unit 45 to the interrupt signal detection unit 42. FIG. 9 shows an interrupt signal input to the interrupt signal detection unit 42 and an interrupt detection signal output from the interrupt signal detection unit 42 to the packet reception determination unit 43.

送信側の半導体装置は、1シンボル周期内の時刻Tsにおいてパケットの送信を開始し、時刻Teにおいて送信が完了する。このパケットは、例えば、シリアル伝送路の伝送時間やシリアル伝送路の輻輳等によって遅延する。そのため、受信側の半導体装置40では、例えば、図9に示すパケットのように、送信側の半導体装置のパケットの送信タイミングに遅れて受信する。   The transmitting-side semiconductor device starts packet transmission at time Ts within one symbol period, and transmission is completed at time Te. This packet is delayed due to, for example, the transmission time of the serial transmission path or the congestion of the serial transmission path. Therefore, in the semiconductor device 40 on the receiving side, for example, as in the packet shown in FIG.

割り込み信号検出部42には、送信側の半導体装置から送信された割り込み信号が入力される。送信側の半導体装置から送信される割り込み信号は、図7で説明したように、所定回数送信される。   The interrupt signal transmitted from the transmission-side semiconductor device is input to the interrupt signal detection unit 42. The interrupt signal transmitted from the transmission-side semiconductor device is transmitted a predetermined number of times as described with reference to FIG.

割り込み信号検出部42は、割り込みマスク部45から出力される割り込みマスク信号によって、割り込み信号を検出する。例えば、割り込み信号検出部42は、図9の例の場合、割り込みマスク信号がH状態のとき、割り込み信号を検出せず(割り込み信号をマスクし)、割り込み信号がL状態のとき、割り込み信号を検出する(割り込み信号のマスクを解除する)。   The interrupt signal detection unit 42 detects an interrupt signal based on the interrupt mask signal output from the interrupt mask unit 45. For example, in the example of FIG. 9, the interrupt signal detection unit 42 does not detect an interrupt signal when the interrupt mask signal is in an H state (masks the interrupt signal), and outputs an interrupt signal when the interrupt signal is in an L state. Detect (cancel interrupt signal mask).

割り込みマスク部45は、受信タイミング生成部44によって生成された受信タイミングによって、H状態およびL状態の割り込みマスク信号を出力する。例えば、割り込みマスク部45は、図9の例の場合、送信側の半導体装置のパケット送信を完了した時刻Teに、L状態の割り込みマスク信号を出力する。   The interrupt mask unit 45 outputs an interrupt mask signal in the H state and the L state according to the reception timing generated by the reception timing generation unit 44. For example, in the case of the example of FIG. 9, the interrupt mask unit 45 outputs an interrupt mask signal in the L state at time Te when the packet transmission of the transmission-side semiconductor device is completed.

割り込みマスク部45は、マスク解除の割り込みマスク信号を出力した後、パケット受信判断部43によって受信バッファ41にパケットが受信されたことが判断されると、割り込み信号をマスクするための割り込みマスク信号を出力する。   The interrupt mask unit 45 outputs an interrupt mask signal for masking an interrupt signal when the packet reception determination unit 43 determines that a packet has been received by the reception buffer 41 after outputting an interrupt mask signal for unmasking. Output.

例えば、図9の例では、マスク解除の割り込み信号が出力された後の1回目の割り込み信号が入力されたとき、パケットの受信が完了している。この場合、パケット受信判断部43は、1回目の割り込み信号によって、パケットの受信が完了していると判断する。そして、割り込みマスク部45は、パケット受信判断部43のパケットの受信完了の判断によって、割り込み信号をマスクするための割り込みマスク信号を割り込み信号検出部42に出力する。これにより、割り込み信号検出部42は、図9の下部に示す割り込み検出信号のように、2回目の以降の割り込み信号をマスクする。   For example, in the example of FIG. 9, the reception of the packet is completed when the first interrupt signal is input after the mask release interrupt signal is output. In this case, the packet reception determination unit 43 determines that the reception of the packet is completed by the first interrupt signal. The interrupt mask unit 45 then outputs an interrupt mask signal for masking the interrupt signal to the interrupt signal detection unit 42 based on the packet reception determination unit 43 determining that the packet has been received. As a result, the interrupt signal detection unit 42 masks the second and subsequent interrupt signals as in the interrupt detection signal shown in the lower part of FIG.

図10は、半導体装置の受信処理タイミングの他の例を示した図である。図10には、シンボル周期が示してある。シンボル周期は、例えば、約70μsecである。また、図10には、半導体装置40が他の半導体装置から受信するパケットが示してある。また、図10には、割り込みマスク部45から割り込み信号検出部42に出力される割り込みマスク信号が示してある。また、図10には、割り込み信号検出部42に入力される割り込み信号と、割り込み信号検出部42からパケット受信判断部43に出力される割り込み検出信号とが示してある。   FIG. 10 is a diagram illustrating another example of the reception processing timing of the semiconductor device. FIG. 10 shows symbol periods. The symbol period is about 70 μsec, for example. FIG. 10 shows a packet that the semiconductor device 40 receives from another semiconductor device. FIG. 10 shows an interrupt mask signal output from the interrupt mask unit 45 to the interrupt signal detector 42. FIG. 10 also shows an interrupt signal input to the interrupt signal detection unit 42 and an interrupt detection signal output from the interrupt signal detection unit 42 to the packet reception determination unit 43.

図10の例では、マスク解除(L状態)の割り込みマスク信号が出力された後、1回目の割り込み信号が受信されたとき、パケットの受信は完了していない。従って、パケット受信判断部43は、1回目の割り込み信号が割り込み信号検出部42によって検出されたとき、受信バッファ41にパケットが受信されたと判断しない。割り込みマスク部45は、このパケット受信判断部43の判断に基づき、割り込み信号をマスクするための割り込みマスク信号を出力しない。   In the example of FIG. 10, when the first interrupt signal is received after the mask release (L state) interrupt mask signal is output, the reception of the packet is not completed. Accordingly, the packet reception determination unit 43 does not determine that a packet has been received by the reception buffer 41 when the first interrupt signal is detected by the interrupt signal detection unit 42. The interrupt mask unit 45 does not output an interrupt mask signal for masking the interrupt signal based on the determination of the packet reception determination unit 43.

一方、2回目の割り込み信号が受信されたとき、パケットの受信は完了している。従ってこの場合、パケット受信判断部43は、2回目の割り込み信号が割り込み信号検出部42によって検出されたとき、受信バッファ41にパケットが受信されている判断する。割り込みマスク部45は、このパケット受信判断部43の判断に基づき、割り込み信号をマスクするための割り込みマスク信号を出力する。これにより、割り込み信号検出部42は、図10の下部に示す割り込み検出信号のように、3回目以降の割り込み信号をマスクする。   On the other hand, the reception of the packet is completed when the second interrupt signal is received. Therefore, in this case, the packet reception determination unit 43 determines that a packet is received in the reception buffer 41 when the second interrupt signal is detected by the interrupt signal detection unit 42. The interrupt mask unit 45 outputs an interrupt mask signal for masking the interrupt signal based on the determination of the packet reception determination unit 43. As a result, the interrupt signal detection unit 42 masks the third and subsequent interrupt signals as in the interrupt detection signal shown in the lower part of FIG.

なお、半導体装置40は、1回目の割り込み信号と2回目の割り込み信号との間において、パケットの受信確認をしなくてよいので、割り込み信号の間においても、受信したパケットのデータ処理以外のデータ処理を行うことができる。また、3回目と4回目の割り込み信号はマスクされるので、半導体装置40はパケットを受信完了した後、パケットの受信割り込みを受けない。よって、半導体装置40は、例えば、輻輳等によってパケット転送が遅延してもデータ処理の遅延を防止することができる。   Since the semiconductor device 40 does not have to confirm the reception of the packet between the first interrupt signal and the second interrupt signal, data other than the data processing of the received packet is also performed between the interrupt signals. Processing can be performed. Further, since the third and fourth interrupt signals are masked, the semiconductor device 40 does not receive a packet reception interrupt after completing the reception of the packet. Therefore, the semiconductor device 40 can prevent data processing delay even if packet transfer is delayed due to congestion or the like.

図11は、送信側の半導体装置のフローチャートである。
[ステップS1]半導体装置30の割り込み信号生成部37は、回数設定部35に設定された割り込み信号の送信回数を読み込む。また、割り込み信号生成部37は、間隔設定部36に設定された割り込み信号の送信間隔を読み込む。割り込み信号生成部37は、例えば、電源投入時に割り込み信号の送信回数および送信間隔を読み込む。また、割り込み信号生成部37は、例えば、回数設定部35の送信回数の設定変更または間隔設定部36の送信間隔の設定変更があったときに送信回数または送信間隔を読み込む。
FIG. 11 is a flowchart of the semiconductor device on the transmission side.
[Step S1] The interrupt signal generation unit 37 of the semiconductor device 30 reads the number of transmissions of the interrupt signal set in the number setting unit 35. The interrupt signal generation unit 37 reads the transmission interval of the interrupt signal set in the interval setting unit 36. The interrupt signal generation unit 37 reads, for example, the number of interrupt signal transmissions and the transmission interval when the power is turned on. In addition, the interrupt signal generation unit 37 reads the number of transmissions or the transmission interval when, for example, the transmission number setting change of the number setting unit 35 or the transmission interval setting of the interval setting unit 36 is changed.

[ステップS2]パケット組立部32の宛先付加部32aは、データ処理部31から出力されたデータの先頭に宛先を付加する。FLG付加部32bは、データ処理部31から出力されたデータの終端にFLGを付加する。パケット組立部32は、生成したパケットを送信バッファ34に出力する。   [Step S2] The destination adding unit 32a of the packet assembling unit 32 adds a destination to the head of the data output from the data processing unit 31. The FLG adding unit 32b adds FLG to the end of the data output from the data processing unit 31. The packet assembling unit 32 outputs the generated packet to the transmission buffer 34.

[ステップS3]送信バッファ34は、送信タイミング生成部33からの送信タイミングに応じて、一時記憶しているパケットをシリアル伝送路に出力する。例えば、送信バッファ34は、1シンボル周期内における時刻Tsになるとパケットをシリアル伝送路に出力し、時刻Teにパケットの出力を完了する。   [Step S3] The transmission buffer 34 outputs the temporarily stored packet to the serial transmission path according to the transmission timing from the transmission timing generation unit 33. For example, the transmission buffer 34 outputs a packet to the serial transmission path at time Ts within one symbol period, and completes the output of the packet at time Te.

[ステップS4]割り込み信号生成部37は、送信バッファ34からのパケット出力の完了後、間隔設定部36に設定された送信間隔の時間が経過したか否か判断する。また、割り込み信号生成部37は、割り込み信号の出力後、間隔設定部36に設定された送信間隔の時間が経過したか否か判断する。割り込み信号生成部37は、設定された送信間隔を経過していない場合、ステップS4の判断を繰り返す。割り込み信号生成部37は、設定された割り込み間隔を経過した場合、ステップS5へ進む。   [Step S4] The interrupt signal generation unit 37 determines whether or not the transmission interval time set in the interval setting unit 36 has elapsed after completion of the packet output from the transmission buffer 34. The interrupt signal generation unit 37 determines whether or not the transmission interval time set in the interval setting unit 36 has elapsed after the output of the interrupt signal. The interrupt signal generation unit 37 repeats the determination in step S4 when the set transmission interval has not elapsed. When the set interrupt interval has elapsed, the interrupt signal generation unit 37 proceeds to step S5.

[ステップS5]割り込み信号生成部37は、割り込み信号を出力する。
[ステップS6]割り込み信号生成部37は、回数設定部35に設定された送信回数、割り込み信号を送信したか否か判断する。割り込み信号生成部37は、回数設定部35に設定された送信回数、割り込み信号を送信していない場合、ステップS4へ進む。割り込み信号生成部37は、回数設定部35に設定された送信回数、割り込み信号を送信した場合、処理を終了する。なお、半導体装置30は、次のシンボル周期になると上記のステップS1の処理を実行する。
[Step S5] The interrupt signal generator 37 outputs an interrupt signal.
[Step S6] The interrupt signal generator 37 determines whether or not the interrupt signal has been transmitted for the number of transmissions set in the number setting unit 35. When the interrupt signal generation unit 37 has not transmitted the interrupt signal for the number of transmissions set in the number setting unit 35, the process proceeds to step S4. The interrupt signal generation unit 37 ends the processing when the interrupt signal is transmitted for the number of transmissions set in the number setting unit 35. Note that the semiconductor device 30 executes the process of step S1 when the next symbol period is reached.

図12は、受信側の半導体装置のフローチャートである。
[ステップS11]半導体装置40の受信バッファ41は、バッファをクリアする。
[ステップS12]割り込みマスク部45は、受信タイミング生成部44によって生成される受信タイミングに応じて、割り込み信号検出部42を活性化する割り込みマスク信号を出力する。すなわち、割り込みマスク部45は、割り込み信号検出部42が割り込み信号をマスクしないようにする(割り込みマスクOFF)。
FIG. 12 is a flowchart of the semiconductor device on the receiving side.
[Step S11] The reception buffer 41 of the semiconductor device 40 clears the buffer.
[Step S12] The interrupt mask unit 45 outputs an interrupt mask signal for activating the interrupt signal detection unit 42 in accordance with the reception timing generated by the reception timing generation unit 44. That is, the interrupt mask unit 45 prevents the interrupt signal detection unit 42 from masking the interrupt signal (interrupt mask OFF).

[ステップS13]割り込み信号検出部42は、割り込みマスク部45からの割り込みマスクOFFの割り込みマスク信号によって、割り込み信号の受信待ちとなる。データ処理部46は、割り込み信号受信待ちのとき、受信したパケットのデータ処理以外のデータ処理を行う。   [Step S13] The interrupt signal detection unit 42 waits for reception of an interrupt signal in response to an interrupt mask signal of interrupt mask OFF from the interrupt mask unit 45. The data processing unit 46 performs data processing other than the data processing of the received packet when waiting for an interrupt signal reception.

[ステップS14]パケット受信判断部43は、割り込み信号検出部42によって割り込み信号が検出されると、受信バッファ41にFLGが受信されているか否か判断する。パケット受信判断部43は、受信バッファ41にFLGが受信されていなければ、ステップS13へ進む。パケット受信判断部43は、受信バッファ41にFLGが受信されていれば、ステップS15へ進む。   [Step S14] When the interrupt signal detection unit 42 detects an interrupt signal, the packet reception determination unit 43 determines whether FLG is received in the reception buffer 41. If the reception buffer 41 has not received the FLG, the packet reception determination unit 43 proceeds to step S13. If the reception buffer 41 receives FLG, the packet reception determination unit 43 proceeds to step S15.

[ステップS15]割り込みマスク部45は、割り込み信号検出部42を不活性化する割り込みマスク信号を出力する。すなわち、割り込みマスク部45は、割り込み信号検出部42が割り込み信号をマスクするようにする(割り込みマスクON)。   [Step S15] The interrupt mask unit 45 outputs an interrupt mask signal for inactivating the interrupt signal detector 42. That is, the interrupt mask unit 45 causes the interrupt signal detection unit 42 to mask the interrupt signal (interrupt mask ON).

[ステップS16]データ処理部46は、受信されたパケットのデータ処理を行う。なお、データ処理部46は、無効を示すイネーブル情報を含むパケットが受信された場合、受信されたパケットのデータは無効であると判断し、受信データのデータ処理を行わない。   [Step S16] The data processing unit 46 performs data processing on the received packet. When a packet including enable information indicating invalidity is received, the data processing unit 46 determines that the received packet data is invalid and does not perform data processing on the received data.

このように、パケットの送信側の半導体装置は、パケットを送信したことを示す割り込み信号を所定回数、受信側の半導体装置に送信する。パケットの受信側の半導体装置は、パケットを受信したと判断した場合、その後に送信される割り込み信号を検出しないようにする。これにより、受信側の半導体装置は、パケット転送によるデータ処理の遅延を防止することができる。   As described above, the semiconductor device on the packet transmission side transmits an interrupt signal indicating that the packet has been transmitted to the semiconductor device on the reception side a predetermined number of times. When the semiconductor device on the packet receiving side determines that the packet has been received, it does not detect an interrupt signal transmitted thereafter. Thereby, the receiving-side semiconductor device can prevent a delay in data processing due to packet transfer.

なお、上記では、半導体装置の送信部分と受信部分とを別々に示したが、1つの半導体装置が送信部分と受信部分を有していてもよい。例えば、半導体装置は、図6で示したブロックと図8で示したブロックを有していてもよい。   In the above description, the transmission part and the reception part of the semiconductor device are shown separately, but one semiconductor device may have the transmission part and the reception part. For example, the semiconductor device may include the block illustrated in FIG. 6 and the block illustrated in FIG.

1,2 半導体装置
1a 送信部
1b 送信信号送信部
2a 受信部
2b 送信信号検出部
2c パケット受信判断部
2d 送信信号マスク部
DESCRIPTION OF SYMBOLS 1, 2 Semiconductor device 1a Transmission part 1b Transmission signal transmission part 2a Reception part 2b Transmission signal detection part 2c Packet reception judgment part 2d Transmission signal mask part

Claims (4)

パケットを受信する半導体装置において、
第1の伝送路を通じて前記パケットを受信する受信部と、
前記パケットを送信した送信側半導体装置から前記第1の伝送路とは異なる第2の伝送路を通じて当該パケットの送信完了後に複数回送信される、当該パケットを送信したことを示すパケット送信信号を検出する送信信号検出部と、
前記送信信号検出部による前記パケット送信信号検出に応じて、前記受信部による前記パケット受信が完了しているか否か判断するパケット受信判断部と、
前記パケット受信判断部によって前記パケット受信が完了していると判断された場合、前記送信信号検出部がその後に送信される前記パケット送信信号を検出しないようにする送信信号マスク部と、
を有することを特徴とする半導体装置。
In a semiconductor device that receives a packet,
A receiving unit that receives the packet through a first transmission path ;
A packet transmission signal indicating that the packet has been transmitted is detected a plurality of times after the transmission of the packet is completed through a second transmission path different from the first transmission path from the transmitting semiconductor device that has transmitted the packet. A transmission signal detector that performs
And the transmission signal in response to detection of the packet transmission signal by the detecting unit, the packet reception determination unit that determines whether the reception of the packet by the receiving unit is completed,
A transmission signal mask unit that prevents the transmission signal detection unit from detecting the packet transmission signal transmitted thereafter, when the packet reception determination unit determines that the reception of the packet is completed ;
A semiconductor device comprising:
前記パケット受信判断部は、前記パケットの終端に含まれる終端情報が前記受信部に受信されているか否かに基づいて、前記受信部に前記パケットが受信されているか否か判断することを特徴とする請求項1記載の半導体装置。   The packet reception determination unit is configured to determine whether or not the reception unit has received the packet based on whether or not termination information included in a termination of the packet has been received by the reception unit. The semiconductor device according to claim 1. 前記送信側半導体装置の前記パケットの送信完了タイミングに同期した受信タイミングを生成するタイミング生成部をさらに有し、
前記送信信号マスク部は、前記受信タイミングに基づいて前記送信信号検出部が前記パケット送信信号を検出するようにすることを特徴とする請求項1または2記載の半導体装置。
A timing generation unit that generates a reception timing synchronized with a transmission completion timing of the packet of the transmission-side semiconductor device;
The semiconductor device according to claim 1, wherein the transmission signal mask unit causes the transmission signal detection unit to detect the packet transmission signal based on the reception timing.
パケットを受信する半導体装置のパケット受信方法において、
第1の伝送路を通じて前記パケットを受信部によって受信し、
前記パケットを送信した送信側半導体装置から前記第1の伝送路とは異なる第2の伝送路を通じて当該パケットの送信完了後に複数回送信される、当該パケットを送信したことを示すパケット送信信号を検出し、
前記パケット送信信号検出に応じて、前記受信部による前記パケット受信が完了しているか否か判断し、
前記パケット受信が完了していると判断した場合、その後に送信される前記パケット送信信号を検出しないようにする、
ことを特徴とするパケット受信方法。
In a packet receiving method of a semiconductor device that receives a packet,
Receiving the packet through the first transmission path by the receiving unit;
A packet transmission signal indicating that the packet has been transmitted is detected a plurality of times after the transmission of the packet is completed through a second transmission path different from the first transmission path from the transmitting semiconductor device that has transmitted the packet. And
In response to detection of the packet transmission signal, it is determined whether or not reception of the packet by the receiving unit is completed,
When determined that the receiving of the packet is complete, so as not to detect the packet transmission signal to be transmitted subsequently,
And a packet receiving method.
JP2010147974A 2010-06-29 2010-06-29 Semiconductor device and packet receiving method Expired - Fee Related JP5569185B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010147974A JP5569185B2 (en) 2010-06-29 2010-06-29 Semiconductor device and packet receiving method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010147974A JP5569185B2 (en) 2010-06-29 2010-06-29 Semiconductor device and packet receiving method

Publications (2)

Publication Number Publication Date
JP2012015630A JP2012015630A (en) 2012-01-19
JP5569185B2 true JP5569185B2 (en) 2014-08-13

Family

ID=45601582

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010147974A Expired - Fee Related JP5569185B2 (en) 2010-06-29 2010-06-29 Semiconductor device and packet receiving method

Country Status (1)

Country Link
JP (1) JP5569185B2 (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS615645A (en) * 1984-06-20 1986-01-11 Toshiba Corp Data transmission method
JP2000332855A (en) * 1999-05-17 2000-11-30 Nec Eng Ltd Communication processing unit and data transfer processing method
JP2001197144A (en) * 2000-01-14 2001-07-19 Fuji Electric Co Ltd Radio equipment
EP1667395A4 (en) * 2003-09-18 2010-05-26 Nomura Res Inst Co Ltd Communication system, communication device, and data retransmission control method
JP4075898B2 (en) * 2005-03-23 2008-04-16 セイコーエプソン株式会社 Data transfer control device and electronic device
JP4361540B2 (en) * 2006-03-06 2009-11-11 富士通テン株式会社 Gateway device, data transfer method, and program
JP5205454B2 (en) * 2008-05-19 2013-06-05 パナソニック株式会社 COMMUNICATION PROCESSING DEVICE, COMMUNICATION PROCESSING METHOD, COMMUNICATION PROCESSING DEVICE CONTROL METHOD, AND COMMUNICATION DEVICE
JP2010050699A (en) * 2008-08-21 2010-03-04 Kawasaki Microelectronics Inc Network equipment device

Also Published As

Publication number Publication date
JP2012015630A (en) 2012-01-19

Similar Documents

Publication Publication Date Title
CN110831240B (en) Base station and user equipment for early data transmission in random access procedure
JP5249682B2 (en) Passage time fixing device for protective relay device
US20210351882A1 (en) Transmitting and Receiving Packets Wirelessly
CN1276635C (en) Priority enhanced information transfer device and its method
US20050066255A1 (en) Status report missing detection in a communication system
JP5569185B2 (en) Semiconductor device and packet receiving method
WO2010139216A1 (en) Method and system for realizing transmission of message between an extended processor and a switch chip
WO2019001352A1 (en) Method, device, and system for transmitting data
EP2442502A1 (en) Serial transmission apparatus, information processing apparatus, and serial transmission method
JP2010141819A (en) Communication device, communication method, and communication program
MXPA03011468A (en) Communication apparatus and method for supporting carrier sense multiple access/collision detection.
JP2002158613A (en) Provider connection device and mobile communication system
EP1991012B1 (en) Base station and handover control method
EP2916523B1 (en) Data stream and data packet transmission method and device
US20110267974A1 (en) Communication apparatus, communication system, and slave station apparatus
KR100966925B1 (en) Packet signal processing architecture
JP6146409B2 (en) Communication apparatus and communication method
JP2006254290A (en) Master/slave communication system and communication method
WO2018058538A1 (en) Information transmission method, network device and terminal device
JP4254048B2 (en) Transmission system of digital protection relay system
US20060142022A1 (en) Method of operating a base station of wireless communications network, base station of a wireless communications network and radio network controller
JP5536590B2 (en) Wireless communication system
JP2008199432A (en) Data transfer device and health check data processing method
JP5177860B2 (en) COMMUNICATION MODULE, COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP2010050699A (en) Network equipment device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130507

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140227

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140311

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140502

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140527

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140609

R150 Certificate of patent or registration of utility model

Ref document number: 5569185

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees