JP7070023B2 - Arithmetic processing device and control method of arithmetic processing device - Google Patents
Arithmetic processing device and control method of arithmetic processing device Download PDFInfo
- Publication number
- JP7070023B2 JP7070023B2 JP2018082002A JP2018082002A JP7070023B2 JP 7070023 B2 JP7070023 B2 JP 7070023B2 JP 2018082002 A JP2018082002 A JP 2018082002A JP 2018082002 A JP2018082002 A JP 2018082002A JP 7070023 B2 JP7070023 B2 JP 7070023B2
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- notification signal
- interrupt notification
- output
- unit
- 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.)
- Active
Links
Images
Description
本発明は、演算処理装置および演算処理装置の制御方法に関する。 The present invention relates to an arithmetic processing apparatus and a control method for the arithmetic processing apparatus.
CPU(Central Processing Unit)の割り込みの制御方式として、コアやプロセッサの周辺機器の割り込みをCPU内の割り込み制御部にて制御する手法が用いられている。割り込み制御部で制御を行うことにより、割り込み制御部はシステム全体の割り込みの状態を加味しながら各コアに対して最優先で処理すべき割り込みが何であるかを判断することが出来る。割り込み制御部に対して、各コアで発生した割り込みを通知する手法として、各コアと割り込み制御部とを接続する専用線を用いて割り込みを通知する手法が用いられている。 As a CPU (Central Processing Unit) interrupt control method, a method of controlling interrupts of peripheral devices of a core or a processor by an interrupt control unit in the CPU is used. By controlling the interrupt control unit, the interrupt control unit can determine what interrupt should be processed with the highest priority for each core while taking into account the interrupt status of the entire system. As a method of notifying the interrupt control unit of the interrupt generated in each core, a method of notifying the interrupt by using a dedicated line connecting each core and the interrupt control unit is used.
受信した通信パケットを各プロセッサに正しく振り分ける技術が知られている(例えば、特許文献1参照)。プロセッサユニット間多重連携処理を実現し、マルチプロセッサシステムのシステム・スループット向上およびリアルタイム応答性向上を実現する技術が知られている(例えば、特許文献2参照)。 A technique for correctly distributing received communication packets to each processor is known (see, for example, Patent Document 1). There is known a technique for realizing multiple linkage processing between processor units, improving system throughput and improving real-time responsiveness of a multiprocessor system (see, for example, Patent Document 2).
近年、1つのCPUに対して複数のコアを実装するメニーコアの技術が進歩してきており、複数のコアを実装するCPUが利用されている。割り込みの通知に用いられる専用線の本数はCPU内のコアの個数に比例して増えていく。そのため、割り込み制御部に割り込みを通知するまでの道程で割り込み専用線により配線チャネルを圧迫してしまい、実装面積が増大してしまうことが問題となっている。 In recent years, the technique of manycore that mounts a plurality of cores on one CPU has been advanced, and a CPU that mounts a plurality of cores is used. The number of dedicated lines used for interrupt notification increases in proportion to the number of cores in the CPU. Therefore, there is a problem that the wiring channel is pressed by the interrupt dedicated line in the process until the interrupt is notified to the interrupt control unit, and the mounting area increases.
1つの側面において、本発明は、演算部から割り込み制御部への割り込みの通知に用いられる配線の配線面積を削減することを目的とする。 In one aspect, it is an object of the present invention to reduce the wiring area of the wiring used for notifying an interrupt from the arithmetic unit to the interrupt control unit.
実施の形態の演算処理装置は、複数の演算部と、出力部と、受信部と、割り込み制御部と、を有する。 The arithmetic processing apparatus of the embodiment includes a plurality of arithmetic units, an output unit, a reception unit, and an interrupt control unit.
前記複数の演算部は、その各々に割り込み通知信号線が複数接続されており、前記割り込み通知信号線を1つずつ用いて、割り込みの発生と前記割り込みの種類とを示す割り込み通知信号を出力する。
前記出力部は、前記割り込み通知信号線を介して前記複数の演算部から受信した前記割り込み通知信号の状態を表すデータおよび前記割り込み通知信号を出力した演算部を示す識別情報を出力する。
A plurality of interrupt notification signal lines are connected to each of the plurality of arithmetic units, and each of the interrupt notification signal lines is used to output an interrupt notification signal indicating the occurrence of an interrupt and the type of the interrupt. ..
The output unit outputs data representing the state of the interrupt notification signal received from the plurality of arithmetic units via the interrupt notification signal line and identification information indicating the arithmetic unit that outputs the interrupt notification signal.
前記受信部は、前記出力部から受信した前記識別情報に基づいて、前記割り込み通知信号を出力した演算部に対応するレジスタに前記出力部から受信した割り込み通知信号の状態を表すデータを書き込む。 Based on the identification information received from the output unit, the receiving unit writes data representing the state of the interrupt notification signal received from the output unit to the register corresponding to the arithmetic unit that outputs the interrupt notification signal.
前記割り込み制御部は、前記レジスタを監視するとともに、前記割り込みの種類に対する優先度の情報であって予め格納されている前記優先度の情報と前記レジスタに書き込まれた前記データが示す前記割り込みの種類とに基づいて、起動させる割り込みを決定し、前記決定した割り込みについての前記割り込み通知信号を出力した演算部に、前記決定した割り込みを起動させる信号を出力する。 The interrupt control unit monitors the register, and the interrupt type indicated by the priority information stored in advance and the data written in the register, which is priority information for the interrupt type. Based on the above , the interrupt to be activated is determined, and the signal for activating the determined interrupt is output to the arithmetic unit that outputs the interrupt notification signal for the determined interrupt.
実施の形態によれば、演算部から割り込み制御部への割り込みの通知に用いられる配線の配線面積を削減することが出来る。 According to the embodiment, it is possible to reduce the wiring area of the wiring used for notifying the interrupt from the arithmetic unit to the interrupt control unit.
以下、図面を参照しながら実施の形態について説明する。
最初に比較例のCPUと問題点について説明し、その後、実施の形態のCPUについて説明する。
Hereinafter, embodiments will be described with reference to the drawings.
First, the CPU of the comparative example and the problem will be described, and then the CPU of the embodiment will be described.
図1は、比較例のCPUの配線手法を示す図である。
CPU11は、コア21-i(i=0~7)および割り込み制御部31を有する。
FIG. 1 is a diagram showing a wiring method of a CPU of a comparative example.
The
コア21-iは、割り込み通知信号線41-i-j(j=1~3)および割り込み起動信号線51-iを介して割り込み制御部31と接続されている。すなわち、各コア21-iは4本の信号線で割り込み制御部31と接続されている。また、以下の説明および図面において、コア21-iをコアiと表記する場合がある。
The core 21-i is connected to the
コア21-iは、割り込みの発生や種類を示す割り込み通知を割り込み通知信号線41-i-jを介して割り込み制御部31に通知する。
The core 21-i notifies the
割り込み制御部31は、割り込み通知を受信すると、割り込みを起動させる起動信号を割り込み起動信号線51-iを介してコア21-iに通知する。
Upon receiving the interrupt notification, the
比較例のCPU11では、割り込み通知に用いられる割り込み通知信号線41-i-jは、コア21-iの数に比例して増えていく。そのため、コア21-iの数が増えると割り込み通知信号線41-i-jが配線チャネルを圧迫してしまい、実装面積が増大してしまう。
In the
図2は、実施の形態のCPUの構成図である。
CPU101は、コア111-i(i=0~7)、割り込み通知パケット生成部121、パケットデコーダ131、および割り込み制御部141を有する。CPU101は、演算処理装置の一例である。また、コア111-iの数は一例であり、これに限られるものでない。また、以下の説明および図面において、コア111-iをコアiと表記する場合がある。
FIG. 2 is a configuration diagram of a CPU according to an embodiment.
The
コア111-iは、演算処理を行う。コア111-iは、演算部の一例である。コア111-iは、割り込み通知信号線151-i-j(j=1~3)を介して割り込み通知パケット生成部121と接続されている。尚、割り込み通知信号線151-i-jの数は一例であり、これに限られるものでない。
The core 111-i performs arithmetic processing. The core 111-i is an example of a calculation unit. The core 111-i is connected to the interrupt notification
コア111-iは、割り込み通知信号線151-i-jを介して、割り込みの発生や種類を示す割り込み通知信号を出力する。割り込み通知信号線151-i-1~151-i-3の信号(割り込み通知信号)の状態を表すデータをそれぞれ割り込みID1~割り込みID3と表記する。また、割り込みID1~割り込みID3をまとめて、割り込みIDと表記する場合がある。割り込みIDは、割り込み通知信号の状態を表すデータの一例である。 The core 111-i outputs an interrupt notification signal indicating the occurrence and type of an interrupt via the interrupt notification signal line 151-i-j. The data representing the state of the signals (interrupt notification signals) of the interrupt notification signal lines 151-i-1 to 151-i-3 are referred to as interrupt ID1 to interrupt ID3, respectively. Further, the interrupt ID1 to the interrupt ID3 may be collectively referred to as an interrupt ID. The interrupt ID is an example of data representing the state of the interrupt notification signal.
割り込み通知パケット生成部121は、割り込み通知パケット信号線161-k(k=1~4)を介してパケットデコーダ131と接続されている。
The interrupt notification
割り込み通知パケット生成部121は、受信した割り込み通知信号をパケット化し、割り込み通知パケットを割り込み通知パケット信号線161-kを介してパケットデコーダ131に出力する。割り込み通知パケットは、割り込み通知信号線151-i-jの信号(割り込み通知信号)それぞれの状態を表す割り込みID1~ID3と、割り込み通知信号を出力したコア111-iを示すコアIDを含む。割り込み通知パケットの詳細は、後述する。
The interrupt notification
割り込み通知パケット生成部121は、割り込み通知信号線151-i-jから受信した割り込みIDを割り込み通知パケット信号線161-1~161-3を介してパケットデコーダ131に出力する。また、割り込み通知パケット生成部121は、割り込み発生を示す割り込み通知信号を出力したコア111-iを示すコアIDを割り込み通知パケット信号線161-4を介してパケットデコーダ131に出力する。尚、割り込み通知パケット信号線161-4は、複数の信号線を含んでよい。
The interrupt notification
また、割り込み通知パケット生成部121は、複数のコア111-iから割り込み発生を示す割り込み通知信号を同時に受信した場合に、調停を行い、割り込みIDを含む割り込み通知パケットを順番に出力する。
Further, when the interrupt notification
尚、割り込み通知パケット生成部121は、コア111-iに近い位置に配置されるが望ましい。割り込み通知パケット生成部121は、出力部の一例である。
It is desirable that the interrupt notification
パケットデコーダ131は、割り込み通知信号線171-i-jを介して割り込み制御部141と接続されている。
The
パケットデコーダ131は、受信したコアIDが示すコア111-iに対応する割り込み通知信号線171-i-jから、受信した割り込みIDを出力する。
The
尚、パケットデコーダ131は、割り込み制御部141に近い位置に配置されるが望ましい。パケットデコーダ131は、受信部の一例である。
It is desirable that the
割り込み制御部141は、割り込み起動信号線181-iを介してコア111-iと接続されている。割り込み制御部141は、パケットデコーダ131から割り込み通知信号線171-i-jを介して割り込みIDを読み出す。割り込み制御部141は、読み出した割り込みIDに基づいて、現在発生している全ての割り込みの中から、最適な起動させる割り込みを決定する。割り込み制御部141は、割り込みを起動させる起動信号を割り込み起動信号線181-iを介してコア111-iに通知する。
The
実施の形態のCPUでは、割り込み通知パケット信号線161-kの数は割り込み専用線の3本に追加してコアIDの識別の信号線分である。そのため、コア111-iの数が増大しても、割り込み通知パケット信号線161-kの配線面積はコアIDの識別の信号線分しか増加せず、比較例のCPUと比べて割り込み通知に用いられる配線の配線面積を削減することが出来る。 In the CPU of the embodiment, the number of interrupt notification packet signal lines 161-k is a signal line segment for identifying the core ID in addition to the three interrupt dedicated lines. Therefore, even if the number of cores 111-i increases, the wiring area of the interrupt notification packet signal line 161-k increases only the signal line for identifying the core ID, and is used for interrupt notification as compared with the CPU of the comparative example. It is possible to reduce the wiring area of the wiring to be used.
図3は、割り込み通知パケット生成部およびパケットデコーダの詳細な構成図である。
割り込み通知パケット生成部121は、レジスタ122-i、比較回路123-i、調停回路124、AND回路125-i、およびOR回路126を含む。尚、図3では、簡単のため、コア111-1~111-6、レジスタ122-1~122-6、比較回路123-1~123-6、およびAND回路125-1~125-6の記載は省略している。また、図3では、簡単のため、割り込み通知信号線151-1-j~151-6-jの記載は省略している。
FIG. 3 is a detailed configuration diagram of an interrupt notification packet generation unit and a packet decoder.
The interrupt notification
レジスタ122-iは、コア111-iから割り込み通知信号線151-i-jを介して割り込み通知信号を受信し、割り込み通知信号の状態を表す割り込みIDを記憶する。尚、レジスタ122-iは、調停回路124からのレジスタ更新信号が入力されたら受信した割り込み通知信号の状態を表す割り込みIDを自身に書き込む。
The register 122-i receives an interrupt notification signal from the core 111-i via the interrupt notification signal line 151-i-j, and stores an interrupt ID indicating the state of the interrupt notification signal. The registers 122-i write to themselves an interrupt ID indicating the state of the interrupt notification signal received when the register update signal from the
比較回路123-iは、レジスタ122-iに記憶されている割り込みID(レジスタ値)とコア111-iから受信した割り込み通知信号とを比較する。比較回路123-iは、レジスタ値とコア111-iから受信した割り込み通知信号の状態とが異なる場合、調停回路124に参加通知信号を出力(参加通知信号をオン)する。
The comparison circuit 123-i compares the interrupt ID (register value) stored in the registers 122-i with the interrupt notification signal received from the core 111-i. When the register value and the state of the interrupt notification signal received from the core 111-i are different from each other, the comparison circuit 123-i outputs a participation notification signal (participation notification signal is turned on) to the
調停回路124は、比較回路123-iから参加通知信号を受信すると、コア111-iを選択し、レジスタ122-iとAND回路125-iにレジスタ更新信号を出力(レジスタ更新信号をオン)する。また、調停回路124は、複数の比較回路123-iから参加通知信号を受信する(すなわち、複数のコア111-iが割り込みの発生を同時または近いタイミングで通知する)と、調停を行い、割り込みIDを送信するコア111-iを選択する。調停回路124は、選択したコア111-iに対応するレジスタ122-iとAND回路125-iにレジスタ更新信号を出力(レジスタ更新信号をオン)する。選択したコア111-iが出力した割り込み通知信号の状態を表す割り込みIDがパケットデコーダ131に出力されたら、調停回路124は、次に割り込みIDを送信するコア111-iを選択し、新たに選択したコア111-iに対応するレジスタ122-iとAND回路125-iにレジスタ更新信号を出力(レジスタ更新信号をオン)する。以下、同様の処理を繰り返して、割り込み通知パケット生成部121は、割り込みの発生を通知したコア111-iからの割り込みIDを順にパケットデコーダ131に出力する。調停回路124は、調停処理において、例えば、ラウンドロビンを用いて割り込みIDを送信するコア111-iを選択する。
Upon receiving the participation notification signal from the comparison circuit 123-i, the
AND回路125-iは、コア111-iからの割り込み通知信号と調停回路124からのレジスタ更新信号を受信する。AND回路125-iは、調停回路124からレジスタ更新信号を受信した場合(参加通知信号がオンの場合)、割り込み通知パケットをOR回路126に出力する。割り込み通知パケットは、コア111-iからの割り込み通知信号の状態を示す割り込みID(割り込みID1~割り込みID3)とコア111-iを示すコアIDを含む。また、割り込みID1~割り込みID3およびコアIDはそれぞれ異なる信号線で送信される。
The AND circuit 125-i receives an interrupt notification signal from the core 111-i and a register update signal from the
OR回路126は、AND回路125-iから入力された割り込み通知パケットを割り込み通知パケット信号線161-kを介してパケットデコーダ131に出力する。OR回路126は、割り込み通知パケットを出力したら調停回路124に割り込み通知パケットの出力の完了を通知してもよい。それにより、調停回路124は、割り込み通知パケットの出力の完了を受信したら、調停処理において、次に割り込みIDを送信するコア111-iを選択する。
The OR
図4は、割り込み通知パケットのフォーマットを示す図である。
割り込み通知パケットは、コアID、割り込みID1、割り込みID2、および割り込みID3を含む。コアIDは、割り込み通知パケット信号線161-4を介してパケットデコーダ131に通知される。割り込みID1、割り込みID2、および割り込みID3は、割り込み通知パケット信号線161-1~161-3を介してパケットデコーダ131にそれぞれ通知される。
FIG. 4 is a diagram showing the format of the interrupt notification packet.
The interrupt notification packet includes a core ID, an interrupt
コアIDは、コア111-iを識別する情報である。例えば、コアID=コア0は、コア111-0を示す。コアIDは、識別情報の一例である。
The core ID is information that identifies the core 111-i. For example, core ID =
割り込みID1は、コアIDが示すコア111―iが出力した割り込み通知信号のうち、割り込み通知信号線151-i-1の信号の状態(データ)を示す。
The interrupt
割り込みID2は、コアIDが示すコア111―iが出力した割り込み通知信号のうち、割り込み通知信号線151-i-2の信号の状態(データ)を示す。
The interrupt
割り込みID3は、コアIDが示すコア111―iが出力した割り込み通知信号のうち、割り込み通知信号線151-i-3の信号の状態(データ)を示す。 The interrupt ID 3 indicates the state (data) of the signal of the interrupt notification signal line 151-i-3 among the interrupt notification signals output by the core 111-i indicated by the core ID.
図3に戻り説明を続ける。
パケットデコーダ131は、コアIDデコーダ132、AND回路133-i、およびレジスタ134-iを含む。尚、図3では、簡単のため、AND回路133-1~133-6およびレジスタ134-1~134-6の記載は省略している。また、図3では、簡単のため、割り込み通知信号線171-1-j~171-6-jおよび割り込み起動信号線181-1~181-6の記載は省略している。
Returning to FIG. 3, the explanation will be continued.
The
コアIDデコーダ132は、受信したコアIDをデコードして、コアIDに対応するコア111-iを確認し、当該コア111-iに対応するAND回路133-iにレジスタ更新信号を出力、すなわちレジスタ更新信号をオンにする。
The
AND回路133-iは、割り込み通知パケット信号線161-1~161-3を介して割り込みID1、割り込みID2、および割り込みID3を受信する。AND回路133-iは、コアIDデコーダ132からレジスタ更新信号を受信した場合(レジスタ更新信号がオンの場合)、受信した割り込みID1、割り込みID2、および割り込みID3をレジスタ134-iに出力する。
The AND circuit 133-i receives the interrupt ID1, the interrupt ID2, and the interrupt ID3 via the interrupt notification packet signal lines 161-1 to 161-3. When the AND circuit 133-i receives the register update signal from the core ID decoder 132 (when the register update signal is on), the AND circuit 133-i outputs the received interrupt
レジスタ134-iは、AND回路133-iから受信した割り込みID1、割り込みID2、および割り込みID3を記憶する。
Registers 134-i store interrupt
割り込み制御部141は、レジスタ134-iを監視し、レジスタ134-iに記憶されている割り込みID1、割り込みID2、および割り込みID3を割り込み通知信号線171-i-jを介してそれぞれ読み出す。このように、コア111-iからの割り込み通知信号の状態が割り込み制御部141に入力される。
The interrupt
実施の形態のCPU101によれば、コア111-iの数が増えても割り込み通知パケット信号線161-kの数はコアIDの識別の信号線分しか増加しないため、割り込み通知に用いられる配線の配線面積を削減することが出来る。
According to the
図5A、5Bは、実施の形態の制御方法のフローチャートである。
ステップS501において、コア111-iは、割り込み通知信号線151-i-jを介して割り込み通知信号を割り込み通知パケット生成部121に出力する。コア111-iは、割り込み通知信号の状態を変化させて割り込みの発生や種類を通知する。
5A and 5B are flowcharts of the control method of the embodiment.
In step S501, the core 111-i outputs an interrupt notification signal to the interrupt notification
ステップS502において、比較回路123-iは、レジスタ122-iに記憶されている割り込みID(レジスタ値)とコア111-iから受信した割り込み通知信号とを比較する。レジスタ122-iのレジスタ値とコア111-iから受信した割り込み信号とが同じであれば、制御はステップS501に戻る。レジスタ122-iのレジスタ値とコア111-iから受信した割り込み通知信号とに差異があれば、制御はステップS503に進む。 In step S502, the comparison circuit 123-i compares the interrupt ID (register value) stored in the registers 122-i with the interrupt notification signal received from the core 111-i. If the register value of the register 122-i and the interrupt signal received from the core 111-i are the same, the control returns to step S501. If there is a difference between the register value of the register 122-i and the interrupt notification signal received from the core 111-i, the control proceeds to step S503.
ステップS503において、レジスタ122-iのレジスタ値とコア111-iから受信した割り込み通知信号との差異を検出した比較回路123-iは、調停回路124に参加通知信号を出力する。
In step S503, the comparison circuit 123-i that detects the difference between the register value of the register 122-i and the interrupt notification signal received from the core 111-i outputs the participation notification signal to the
ステップS504において、調停回路124は、参加通知の調停を行い、割り込みの発生を通知したコア111―iのうち、割り込みIDを割り込み制御部141(またはパケットデコーダ131)に通知するコア111-iを選択する。調停回路124は、選択したコア111-iに対応するレジスタ122-iとAND回路125-iにレジスタ更新信号を出力(レジスタ更新信号をオン)する。ここで、割り込みの発生を通知したコア111-iのうちの1つに着目し、着目したコア111-iを該当コアと表記する。調停回路124の調停により、該当コアが選択されたら、制御はステップS505に進む。
In step S504, the
ステップS505において、AND回路125-iは、調停回路124からレジスタ更新信号を受信した場合(参加通知信号がオンの場合)、割り込み通知信号をパケット化し、割り込み通知パケットをOR回路126に出力する。
In step S505, when the AND circuit 125-i receives the register update signal from the arbiter circuit 124 (when the participation notification signal is on), the AND circuit 125-i packetizes the interrupt notification signal and outputs the interrupt notification packet to the
ステップS506において、レジスタ122-iは、調停回路124からレジスタ更新信号を受信したら、受信した割り込み通知信号の状態を表す割り込みIDで記憶している割り込みID(レジスタ値)を更新する。
In step S506, when the register 122-i receives the register update signal from the
ステップS507において、OR回路126は、AND回路125-iから入力された割り込み通知パケットを割り込み通知パケット信号線161-kを介してパケットデコーダ131に出力する。
In step S507, the
ステップS508において、受信した割り込み通知パケットのうちの受信したコアIDをデコードして、コアIDに対応するコア111-iを確認し、当該コア111-iに対応するAND回路133-iにレジスタ更新信号を出力、すなわちレジスタ更新信号をオンにする。 In step S508, the received core ID of the received interrupt notification packet is decoded, the core 111-i corresponding to the core ID is confirmed, and the register is updated to the AND circuit 133-i corresponding to the core 111-i. Output the signal, that is, turn on the register update signal.
ステップS509において、AND回路133-iは、コアIDデコーダ132からのレジスタ更新信号がオンの場合、受信した割り込みID1、割り込みID2、および割り込みID3をレジスタ134-iに出力する。レジスタ134-iは、記憶している割り込みIDをAND回路133-iから入力された割り込みID(割り込みID1、割り込みID2、および割り込みID3)で更新する。
In step S509, when the register update signal from the
ステップS510において、割り込み制御部141は、レジスタ134-iそれぞれに記憶されている割り込みID(レジスタ値)を読み出す。
In step S510, the interrupt
ステップS511において、割り込み制御部141は、読み出したレジスタ値によって割り込みの発生や種類を検出する。割り込み制御部141は、発生している全ての割り込みの中から最適な割り込みを選択し、選択した割り込みを起動させる起動信号をコア111-iに出力する。例えば、割り込み制御部141は、割り込みの種類によって予め優先度の情報を格納しており、読み出した割り込みIDが示す割り込みの種類と優先度とに基づいて、発生している全ての割り込みの中から起動させる割り込みを選択(決定)する。
In step S511, the interrupt
図6は、実施の形態のCPUの各信号のタイミングチャートである。
図6では、コア111-0、111-7が割り込み通知を行う場合を説明する。
FIG. 6 is a timing chart of each signal of the CPU of the embodiment.
FIG. 6 describes a case where the cores 111-0 and 111-7 perform interrupt notification.
図6の1行目は時刻を示す。2~5行目はコア111-0の割り込み通知に関する各種信号を示す。詳細には、2行目は割り込み通知信号線151-0-jの信号の状態、すなわち割り込みIDを示し、3行目はレジスタ122-0に記憶されている値(レジスタ値)を示し、4行目は比較回路123-0の出力(参加通知信号)を示し、5行目はレジスタ122-0への調停回路124の出力(レジスタ更新信号)を示す。
The first line of FIG. 6 shows the time. The 2nd to 5th lines show various signals related to the interrupt notification of the core 111-0. Specifically, the second line shows the signal state of the interrupt notification signal line 151-0-j, that is, the interrupt ID, and the third line shows the value (register value) stored in the register 122-0. The line shows the output of the comparison circuit 123-0 (participation notification signal), and the fifth line shows the output of the
6~9行目はコア111-7の割り込み通知に関する各種信号を示す。詳細には、6行目は割り込み通知信号線151-7-jの信号の状態、すなわち割り込みIDを示し、7行目はレジスタ122-7に記憶されている値(レジスタ値)を示し、8行目は比較回路123-7の出力(参加通知信号)を示し、9行目はレジスタ122-7への調停回路124の出力(レジスタ更新信号)を示す。
The 6th to 9th lines show various signals related to the interrupt notification of the core 111-7. Specifically, the 6th line shows the signal state of the interrupt notification signal line 151-7-j, that is, the interrupt ID, and the 7th line shows the value (register value) stored in the register 122-7. The 9th line shows the output of the comparison circuit 123-7 (participation notification signal), and the 9th line shows the output of the
10~11行目は割り込み通知パケット生成部121の出力(割り込み通知パケット)を示し、詳細には、10行目は割り込み通知パケット信号線161-1~161-3の信号(割り込みID)を示し、11行目は割り込み通知パケット信号線161-4の信号(コアID)を示す。
The 10th to 11th lines show the output (interrupt notification packet) of the interrupt notification
尚、図6では、簡単のため、割り込みIDとレジスタ値は、1文字で表している。例えば、割り込み通知信号線151-0-1~151-0-3の信号それぞれの状態がLow,Low,Lowの場合、「A」と表記する。 In FIG. 6, for the sake of simplicity, the interrupt ID and the register value are represented by one character. For example, when the states of the interrupt notification signal lines 151-0-1 to 151-0-3 are Low, Low, and Low, they are expressed as "A".
最初に、コア111-0が割り込み通知を行った場合を説明する。
時刻t1~t4において、コア111-0からの割り込みIDは「A」となっており、レジスタ122-0のレジスタ値は「A」である。
First, the case where the core 111-0 gives an interrupt notification will be described.
At times t1 to t4, the interrupt ID from the core 111-0 is "A", and the register value of the register 122-0 is "A".
時刻t5において、コア111-0は割り込みの発生を通知、すなわちコア111-0からの割り込みIDが「B」となる。比較回路123-0は、レジスタ値とコア111-0からの割り込みIDとの差異を検出し、比較回路123-0からの参加通知信号はオン(=1)となる。 At time t5, the core 111-0 notifies the occurrence of an interrupt, that is, the interrupt ID from the core 111-0 becomes "B". The comparison circuit 123-0 detects the difference between the register value and the interrupt ID from the core 111-0, and the participation notification signal from the comparison circuit 123-0 is turned on (= 1).
調停回路124は、参加通知の調停を行い、時刻t8において、コア111-0が選択され、調停回路124からのレジスタ122-0とAND回路125-0へのレジスタ更新信号がオン(=1)となり、レジスタ122-0のレジスタ値が「B」に更新される。AND回路125-0は、割り込みID=BとコアID=コア0をOR回路126に出力し、OR回路126は、割り込み通知パケット(割り込みID=BとコアID=コア0)をパケットデコーダ131に出力する。
The
次にコア111-7が割り込み通知を行った場合を説明する。
時刻t1~t5において、コア111-7からの割り込みIDは「C」となっており、レジスタ122-7のレジスタ値は「C」である。
Next, the case where the core 111-7 gives an interrupt notification will be described.
At times t1 to t5, the interrupt ID from the core 111-7 is "C", and the register value of the register 122-7 is "C".
時刻t6において、コア111-7は割り込みの発生を通知、すなわちコア111-7からの割り込みIDが「D」となる。比較回路123-7は、レジスタ値とコア111-7からの割り込みIDとの差異を検出し、比較回路123-7からの参加通知信号はオン(=1)となる。 At time t6, the core 111-7 notifies the occurrence of an interrupt, that is, the interrupt ID from the core 111-7 becomes "D". The comparison circuit 123-7 detects the difference between the register value and the interrupt ID from the core 111-7, and the participation notification signal from the comparison circuit 123-7 is turned on (= 1).
調停回路124は、参加通知の調停を行い、時刻t11において、コア111-7が選択され、調停回路124からのレジスタ122-7とAND回路125-7へのレジスタ更新信号がオン(=1)となり、レジスタ122-7のレジスタ値が「D」に更新される。AND回路125-7は、割り込みID=DとコアID=コア7をOR回路126に出力し、OR回路126は、割り込み通知パケット(割り込みID=DとコアID=コア7)をパケットデコーダ131に出力する。
The
以上の実施の形態に関し、さらに以下の付記を開示する。
(付記1)
割り込み通知信号を出力する複数の演算部と、
前記割り込み通知信号の状態を表すデータおよび前記割り込み通知信号を出力した演算部を示す識別情報を出力する出力部と、
前記出力部から受信した前記識別情報に基づいて、前記割り込み通知信号を出力した演算部に対応するレジスタに前記出力部から受信した前記割り込み通知信号の状態を表すデータを書き込む受信部と、
前記レジスタを監視するとともに前記レジスタに書き込まれた前記データに基づいて、前記割り込み通知信号を出力した演算部に割り込みを起動させる信号を出力する割り込み制御部と、
を有する演算処理装置。
(付記2)
前記出力部は、
前記複数の演算部うちの第1の演算部と第2の演算部から同時に前記割り込み通知信号が出力された場合、前記第1の演算部または前記第2の演算部のいずれかを選択し、
選択した一方が出力した割り込み通知信号の状態を表すデータおよび前記選択した一方を示す識別情報を出力し、当該出力後に、他方が出力した割り込み通知信号の状態を表すデータおよび前記他方を示す識別情報を出力する付記1記載の演算処理装置。
(付記3)
前記出力部は、前記選択した一方が出力した割り込み通知信号の状態を表すデータと前記他方が出力した割り込み通知信号の状態を表すデータとを同じ信号線を介して前記受信部に出力する付記2記載の演算処理装置。
(付記4)
演算処理装置が有する複数の演算部が、割り込み通知信号を出力し、
前記演算処理装置が有する出力部が、前記割り込み通知信号の状態を表すデータおよび前記割り込み通知信号を出力した演算部を示す識別情報を出力し、
前記演算処理装置が有する受信部が、前記出力部から受信した前記識別情報に基づいて、前記割り込み通知信号を出力した演算部に対応するレジスタに前記出力部から受信した前記割り込み通知信号の状態を表すデータを書き込み、
前記演算処理装置が有する割り込み制御部が、前記レジスタを監視するとともに前記レジスタに書き込まれた前記データに基づいて、前記割り込み通知信号を出力した演算部に割り込みを起動させる信号を出力する
演算処理装置の制御方法。
(付記5)
前記出力部は、
前記複数の演算部うちの第1の演算部と第2の演算部から同時に前記割り込み通知信号が出力された場合、前記第1の演算部または前記第2の演算部のいずれかを選択し、
選択した一方が出力した割り込み通知信号の状態を表すデータおよび前記選択した一方を示す識別情報を出力し、当該出力後に、他方が出力した割り込み通知信号の状態を表すデータおよび前記他方を示す識別情報を出力する付記4記載の制御方法。
(付記6)
前記出力部は、前記選択した一方が出力した割り込み通知信号の状態を表すデータと前記他方が出力した割り込み通知信号の状態を表すデータとを同じ信号線を介して前記受信部に出力する付記5記載の制御方法。
The following additional notes will be further disclosed with respect to the above embodiments.
(Appendix 1)
Multiple arithmetic units that output interrupt notification signals,
An output unit that outputs data indicating the state of the interrupt notification signal and identification information indicating an arithmetic unit that outputs the interrupt notification signal, and an output unit.
A receiving unit that writes data representing the state of the interrupt notification signal received from the output unit to a register corresponding to the arithmetic unit that outputs the interrupt notification signal based on the identification information received from the output unit.
An interrupt control unit that monitors the register and outputs a signal that activates an interrupt to the arithmetic unit that outputs the interrupt notification signal based on the data written in the register.
Arithmetic processing device having.
(Appendix 2)
The output unit is
When the interrupt notification signal is output from the first calculation unit and the second calculation unit of the plurality of calculation units at the same time, either the first calculation unit or the second calculation unit is selected.
Data indicating the state of the interrupt notification signal output by the selected one and identification information indicating the selected one are output, and after the output, data indicating the state of the interrupt notification signal output by the other and identification information indicating the other are output. The arithmetic processing device according to
(Appendix 3)
Note 2 that the output unit outputs data representing the state of the interrupt notification signal output by the selected one and data representing the state of the interrupt notification signal output by the other to the receiving unit via the same signal line. The arithmetic processing device described.
(Appendix 4)
A plurality of arithmetic units of the arithmetic processing device output an interrupt notification signal, and the interrupt notification signal is output.
The output unit of the arithmetic processing device outputs data indicating the state of the interrupt notification signal and identification information indicating the arithmetic unit that outputs the interrupt notification signal.
Based on the identification information received from the output unit, the receiving unit of the arithmetic processing device displays the state of the interrupt notification signal received from the output unit in the register corresponding to the arithmetic unit that outputs the interrupt notification signal. Write the data to represent,
The interrupt control unit of the arithmetic processing device monitors the register and outputs a signal for invoking an interrupt to the arithmetic unit that outputs the interrupt notification signal based on the data written in the register. Control method.
(Appendix 5)
The output unit is
When the interrupt notification signal is output from the first calculation unit and the second calculation unit of the plurality of calculation units at the same time, either the first calculation unit or the second calculation unit is selected.
Data indicating the state of the interrupt notification signal output by the selected one and identification information indicating the selected one are output, and after the output, data indicating the state of the interrupt notification signal output by the other and identification information indicating the other are output. The control method according to Appendix 4 for outputting.
(Appendix 6)
The output unit outputs the data representing the state of the interrupt notification signal output by the selected one and the data representing the state of the interrupt notification signal output by the other to the receiving unit via the same signal line. The control method described.
101 CPU
111 コア
121 割り込み通知パケット生成部
122 レジスタ
123 比較回路
124 調停回路
125 AND回路
126 OR回路
131 パケットデコーダ
132 コアIDデコーダ
133 AND回路
134 レジスタ
141 割り込み制御部
101 CPU
Claims (4)
前記割り込み通知信号線を介して前記複数の演算部から受信した前記割り込み通知信号の状態を表すデータおよび前記割り込み通知信号を出力した演算部を示す識別情報を出力する出力部と、
前記出力部から受信した前記識別情報に基づいて、前記割り込み通知信号を出力した演算部に対応するレジスタに前記出力部から受信した前記割り込み通知信号の状態を表すデータを書き込む受信部と、
前記レジスタを監視するとともに、前記割り込みの種類に対する優先度の情報であって予め格納されている前記優先度の情報と前記レジスタに書き込まれた前記データが示す前記割り込みの種類とに基づいて、起動させる割り込みを決定し、前記決定した割り込みについての前記割り込み通知信号を出力した演算部に、前記決定した割り込みを起動させる信号を出力する割り込み制御部と、
を有する演算処理装置。 A plurality of interrupt notification signal lines are connected to each of the plurality of arithmetic units, and each of the interrupt notification signal lines is used to indicate the occurrence of an interrupt and the type of the interrupt. The plurality of arithmetic units that output interrupt notification signals, and
An output unit that outputs data indicating the state of the interrupt notification signal received from the plurality of arithmetic units via the interrupt notification signal line and identification information indicating the arithmetic unit that outputs the interrupt notification signal.
A receiving unit that writes data representing the state of the interrupt notification signal received from the output unit to a register corresponding to the arithmetic unit that outputs the interrupt notification signal based on the identification information received from the output unit.
While monitoring the register, it is activated based on the priority information stored in advance for the interrupt type and the interrupt type indicated by the data written in the register. An interrupt control unit that determines an interrupt to be interrupted and outputs a signal for activating the determined interrupt to an arithmetic unit that outputs the interrupt notification signal for the determined interrupt.
Arithmetic processing device having.
前記複数の演算部うちの第1の演算部と第2の演算部から同時に前記割り込み通知信号が出力された場合、前記第1の演算部または前記第2の演算部のいずれかを選択し、
選択した一方が出力した割り込み通知信号の状態を表すデータおよび前記選択した一方を示す識別情報を出力し、当該出力後に、他方が出力した割り込み通知信号の状態を表すデータおよび前記他方を示す識別情報を出力する請求項1記載の演算処理装置。 The output unit is
When the interrupt notification signal is output from the first calculation unit and the second calculation unit of the plurality of calculation units at the same time, either the first calculation unit or the second calculation unit is selected.
Data indicating the state of the interrupt notification signal output by the selected one and identification information indicating the selected one are output, and after the output, data indicating the state of the interrupt notification signal output by the other and identification information indicating the other are output. The arithmetic processing apparatus according to claim 1.
前記演算処理装置が有する出力部が、前記割り込み通知信号線を介して前記複数の演算部から受信した前記割り込み通知信号の状態を表すデータおよび前記割り込み通知信号を出力した演算部を示す識別情報を出力し、
前記演算処理装置が有する受信部が、前記出力部から受信した前記識別情報に基づいて、前記割り込み通知信号を出力した演算部に対応するレジスタに前記出力部から受信した前記割り込み通知信号の状態を表すデータを書き込み、
前記演算処理装置が有する割り込み制御部が、前記レジスタを監視するとともに、前記割り込みの種類に対する優先度の情報であって予め格納されている前記優先度の情報と前記レジスタに書き込まれた前記データが示す前記割り込みの種類とに基づいて、起動させる割り込みを決定し、前記決定した割り込みについての前記割り込み通知信号を出力した演算部に、前記決定した割り込みを起動させる信号を出力する
演算処理装置の制御方法。 A plurality of arithmetic units included in the arithmetic processing apparatus , wherein the plurality of arithmetic units having a plurality of interrupt notification signal lines connected to each of the plurality of arithmetic units use the interrupt notification signal lines one by one. An interrupt notification signal indicating the occurrence of an interrupt and the type of the interrupt is output.
The output unit of the arithmetic processing apparatus provides data indicating the state of the interrupt notification signal received from the plurality of arithmetic units via the interrupt notification signal line and identification information indicating the arithmetic unit that outputs the interrupt notification signal. Output and
Based on the identification information received from the output unit, the receiving unit of the arithmetic processing device displays the state of the interrupt notification signal received from the output unit in the register corresponding to the arithmetic unit that outputs the interrupt notification signal. Write the data to represent,
The interrupt control unit of the arithmetic processing device monitors the register, and the priority information for the interrupt type, which is stored in advance, and the data written in the register are recorded. Control of an arithmetic processing device that determines an interrupt to be activated based on the type of the interrupt shown and outputs a signal for activating the determined interrupt to an arithmetic unit that outputs the interrupt notification signal for the determined interrupt. Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018082002A JP7070023B2 (en) | 2018-04-23 | 2018-04-23 | Arithmetic processing device and control method of arithmetic processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018082002A JP7070023B2 (en) | 2018-04-23 | 2018-04-23 | Arithmetic processing device and control method of arithmetic processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019191789A JP2019191789A (en) | 2019-10-31 |
JP7070023B2 true JP7070023B2 (en) | 2022-05-18 |
Family
ID=68390360
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018082002A Active JP7070023B2 (en) | 2018-04-23 | 2018-04-23 | Arithmetic processing device and control method of arithmetic processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7070023B2 (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006119802A (en) | 2004-10-20 | 2006-05-11 | Hitachi Ltd | Multiprocessor system |
JP2014038438A (en) | 2012-08-14 | 2014-02-27 | Fujitsu Ltd | Arithmetic processing unit, information processing apparatus and interruption control method |
-
2018
- 2018-04-23 JP JP2018082002A patent/JP7070023B2/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006119802A (en) | 2004-10-20 | 2006-05-11 | Hitachi Ltd | Multiprocessor system |
JP2014038438A (en) | 2012-08-14 | 2014-02-27 | Fujitsu Ltd | Arithmetic processing unit, information processing apparatus and interruption control method |
Also Published As
Publication number | Publication date |
---|---|
JP2019191789A (en) | 2019-10-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10679210B2 (en) | Blockchain transaction commitment ordering | |
US7788435B2 (en) | Interrupt redirection with coalescing | |
JP6776696B2 (en) | Parallel information processing equipment, information processing methods, and programs | |
CN110750341B (en) | Task scheduling method, device, system, terminal equipment and storage medium | |
WO2017000822A1 (en) | Transmission control method and device for direct memory access | |
JP2020537227A5 (en) | ||
JP6227767B2 (en) | Information processing apparatus, processing method thereof, and input / output apparatus | |
CN115168256A (en) | Interrupt control method, interrupt controller, electronic device, medium, and chip | |
JP7070023B2 (en) | Arithmetic processing device and control method of arithmetic processing device | |
JP2007122410A (en) | Bus arbitration circuit and method | |
JP2012093798A (en) | Transfer device, transfer method and transfer program | |
US20200201806A1 (en) | Apparatus and Method for Reducing Latency of Input/Output Transactions in an Information Handling System using No-Response Commands | |
JP6106986B2 (en) | Arithmetic processing device, information processing device and interrupt control method | |
CN113867802B (en) | Interrupt distribution device, chip and electronic equipment | |
EP2856304B1 (en) | Issuing instructions to execution pipelines based on register-associated preferences, and related instruction processing circuits, processor systems, methods, and computer-readable media | |
US8909823B2 (en) | Data processing device, chain and method, and corresponding recording medium for dividing a main buffer memory into used space and free space | |
US10467156B1 (en) | System and method of improving efficiency in parallel data processing of a RAID array | |
CN113886054A (en) | Interrupt processing device, chip and electronic equipment | |
JP2011070259A (en) | Data transfer device and data transfer method | |
US11347667B2 (en) | Bus controller and related methods | |
JP2015184935A (en) | I2c bus arbitration system and arbitration method | |
JP2004334840A (en) | Control method and related device of system bus | |
JP2007172105A (en) | Interruption arbitration system and interruption arbitration method | |
JP2008203989A (en) | Bus device | |
JP2006092077A (en) | Bus system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20210113 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20211125 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20211214 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20220125 |
|
RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20220125 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20220125 |
|
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: 20220405 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20220418 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7070023 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |