Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6586765B2 - Access blocking circuit, semiconductor integrated circuit, and access blocking method - Google Patents
[go: Go Back, main page]

JP6586765B2 - Access blocking circuit, semiconductor integrated circuit, and access blocking method - Google Patents

Access blocking circuit, semiconductor integrated circuit, and access blocking method Download PDF

Info

Publication number
JP6586765B2
JP6586765B2 JP2015086819A JP2015086819A JP6586765B2 JP 6586765 B2 JP6586765 B2 JP 6586765B2 JP 2015086819 A JP2015086819 A JP 2015086819A JP 2015086819 A JP2015086819 A JP 2015086819A JP 6586765 B2 JP6586765 B2 JP 6586765B2
Authority
JP
Japan
Prior art keywords
master
access
access blocking
bus
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
Application number
JP2015086819A
Other languages
Japanese (ja)
Other versions
JP2016206891A (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.)
Socionext Inc
Original Assignee
Socionext Inc
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 Socionext Inc filed Critical Socionext Inc
Priority to JP2015086819A priority Critical patent/JP6586765B2/en
Publication of JP2016206891A publication Critical patent/JP2016206891A/en
Application granted granted Critical
Publication of JP6586765B2 publication Critical patent/JP6586765B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Bus Control (AREA)

Description

本明細書で言及する実施例は、アクセス遮断回路、半導体集積回路およびアクセス遮断方法に関する。   The embodiments referred to in this specification relate to an access blocking circuit, a semiconductor integrated circuit, and an access blocking method.

近年、システムは、一層複雑化しており、それに伴って、搭載するモジュールの数は、膨大なものとなっている。その中で、プログラムミスや対向機器の不具合等が原因となって、システム内の一部モジュールが制御不能に陥ることがある。   In recent years, the system has become more complicated, and the number of modules to be mounted has become enormous. Among them, some modules in the system may become uncontrollable due to a program mistake or a malfunction of the opposite device.

また、近年、SoC(System-On-a-Chip)等のシステムLSI(半導体集積回路)の内部において、各種ブロックを結合するために使用されるバス規格として、例えば、AMBA(登録商標)(Advanced Microcontroller Bus Architecture)が知られている。   In recent years, for example, AMBA (registered trademark) (Advanced) is used as a bus standard used to connect various blocks in a system LSI (semiconductor integrated circuit) such as SoC (System-On-a-Chip). Microcontroller Bus Architecture) is known.

さらに、AMBA(登録商標)では、AXI(登録商標)(Advanced eXtensible Interface)、AHB(登録商標)(Advanced High-performance Bus)、および、APB(登録商標)(Advanced Peripheral Bus)等の複数のバス規格が定義されている。   Further, AMBA (registered trademark) has a plurality of buses such as AXI (registered trademark) (Advanced eXtensible Interface), AHB (registered trademark) (Advanced High-performance Bus), and APB (registered trademark) (Advanced Peripheral Bus). A standard is defined.

なお、後述する本実施例は、上記AMBA(登録商標)の各バス規格に限定されるものではなく、例えば、OCP(Open Core Protocol)を始めとして、様々なバス規格を用いた半導体集積回路に適用することができる。さらに、本実施例の適用は、半導体集積回路に限定されるものではなく、複数の半導体集積回路によるシステムやサーバ等に対して幅広く適用することができる。   Note that this embodiment described later is not limited to the AMBA (registered trademark) bus standards. For example, the present invention is applicable to semiconductor integrated circuits using various bus standards such as OCP (Open Core Protocol). Can be applied. Furthermore, the application of the present embodiment is not limited to a semiconductor integrated circuit, but can be widely applied to a system, a server, and the like using a plurality of semiconductor integrated circuits.

ところで、従来、システム内の一部モジュールが制御不能に陥った場合の対応策としては、様々な提案がなされている。   By the way, conventionally, various proposals have been made as countermeasures when some modules in the system become uncontrollable.

特開2013−205961号公報JP 2013-205961 A 特開2002−312333号公報JP 2002-31333 A 特開平05−020290号公報JP 05-020290 A 特開2004−348719号公報JP 2004-348719 A

上述したように、従来、システム内の一部モジュールが制御不能に陥った場合の対応策としては、様々な提案がなされている。また、AMBA(登録商標)等のバス規格に基づいたデータ転送は、マスタ/スレーブの関係で、転送命令に対して応答が求められるハンドシェイク形式で行われる。   As described above, conventionally, various proposals have been made as countermeasures when some modules in the system become uncontrollable. Further, data transfer based on a bus standard such as AMBA (registered trademark) is performed in a handshake format in which a response to a transfer command is required in a master / slave relationship.

そのため、例えば、プログラムミスや対向機器の不具合等が原因となって、或るマスタが制御不能になった場合、そのマスタの暴走によってバス経路が占有若しくはロックされ、他のマスタからのアクセスが滞ってシステム全体がハングアップ状態になる。すなわち、システム内の1つのモジュールの暴走でも、その影響は、システム全体に及ぶことになる。   Therefore, for example, when a master becomes uncontrollable due to a program mistake or a malfunction of the opposite device, the bus route is occupied or locked by the runaway of that master, and access from other masters is delayed. The entire system hangs up. In other words, even if one module in the system runs out of control, the effect extends to the entire system.

また、例えば、ハンドシェイクを伴うプロトコルの場合、単純にマスタとバス間のアクセスを即時遮断するだけでは不十分であり、転送中のデータは、ハンドシェイクを完了させることが求められる。   Further, for example, in the case of a protocol that involves handshaking, it is not sufficient to simply immediately block access between the master and the bus, and data being transferred is required to complete handshaking.

一実施形態によれば、マスタと、少なくとも1つのスレーブが接続されたバスの間に設けられたアクセス遮断回路であって、異常検出部と、アクセス遮断部と、プロトコル補正部と、を有するアクセス遮断回路が提供される。   According to one embodiment, an access blocking circuit provided between a master and a bus to which at least one slave is connected, the access having an abnormality detection unit, an access blocking unit, and a protocol correction unit A breaker circuit is provided.

前記異常検出部は、前記マスタの異常を検出し、前記アクセス遮断部は、前記異常検出部により前記マスタの異常が検出されたとき、異常が検出された前記マスタのアクセスを遮断する。前記プロトコル補正部は、アクセスが遮断された前記マスタによるプロトコルを補正して、前記スレーブをアイドル状態に保持する。前記異常検出部は、前記マスタおよび前記スレーブ間のデータ転送レートが、前記バスの規格に基づく値よりも閾値以上異なっているかどうかをモニタする第1モニタ部と、前記第1モニタ部の出力を受け取って、前記マスタおよび前記スレーブ間の異常を検出するステータス受信部と、を含む。 The abnormality detection unit detects an abnormality of the master, and the access blocking unit blocks the access of the master in which the abnormality is detected when the abnormality detection unit detects the abnormality of the master. The protocol correction unit corrects the protocol by the master whose access is blocked, and holds the slave in an idle state. The abnormality detection unit includes: a first monitor unit that monitors whether a data transfer rate between the master and the slave differs by a threshold value or more from a value based on the standard of the bus; and an output of the first monitor unit And a status receiving unit that detects an abnormality between the master and the slave.

開示のアクセス遮断回路、半導体集積回路およびアクセス遮断方法は、システム全体がハングアップ状態になるのを防ぐことができるという効果を奏する。さらに、開示のアクセス遮断回路、半導体集積回路およびアクセス遮断方法によれば、システム全体を初期化することなく、制御不能になったマスタのみ初期化すればよいことになる。   The disclosed access blocking circuit, semiconductor integrated circuit, and access blocking method have an effect that the entire system can be prevented from entering a hang-up state. Furthermore, according to the disclosed access blocking circuit, semiconductor integrated circuit, and access blocking method, only the master that has become uncontrollable needs to be initialized without initializing the entire system.

図1は、システム内の一部モジュールが制御不能に陥った場合を説明するための図である。FIG. 1 is a diagram for explaining a case where some modules in the system have become uncontrollable. 図2は、図1に示すシステムの動作の一例を説明するためのフローチャートである。FIG. 2 is a flowchart for explaining an example of the operation of the system shown in FIG. 図3は、アクセス遮断回路の第1実施例が適用されるシステムを模式的に示すブロック図である。FIG. 3 is a block diagram schematically showing a system to which the first embodiment of the access blocking circuit is applied. 図4は、図3に示すシステムの動作の一例を説明するためのフローチャートである。FIG. 4 is a flowchart for explaining an example of the operation of the system shown in FIG. 図5は、図3に示すシステムにおいて、読み出しデータチャネルが完了していない場合の処理の一例を説明するためのタイミングチャートである。FIG. 5 is a timing chart for explaining an example of processing when the read data channel is not completed in the system shown in FIG. 図6は、図3に示すシステムにおいて、書き込み応答チャネルが完了していない場合の処理の一例を説明するためのタイミングチャートである。FIG. 6 is a timing chart for explaining an example of processing when the write response channel is not completed in the system shown in FIG. 図7は、図3に示すシステムにおいて、書き込みアドレスチャネルは完了しているが、書き込みデータチャネルが完了していない場合の処理の一例を説明するためのタイミングチャートである。FIG. 7 is a timing chart for explaining an example of processing when the write address channel is completed but the write data channel is not completed in the system shown in FIG. 図8は、図3に示すシステムにおいて、書き込みデータチャネルは完了しているが、書き込みアドレスチャネルが完了していない場合の処理の一例を説明するためのタイミングチャートである。FIG. 8 is a timing chart for explaining an example of processing when the write data channel is completed but the write address channel is not completed in the system shown in FIG. 図9は、図3に示すシステムにおける第1実施例のアクセス遮断回路を示すブロック図である。FIG. 9 is a block diagram showing an access blocking circuit of the first embodiment in the system shown in FIG. 図10は、図9に示すアクセス遮断回路の状態遷移を説明するための図(その1)である。FIG. 10 is a diagram (part 1) for explaining the state transition of the access blocking circuit shown in FIG. 図11は、図9に示すアクセス遮断回路の状態遷移を説明するための図(その2)である。FIG. 11 is a diagram (No. 2) for explaining the state transition of the access blocking circuit shown in FIG. 図12は、アクセス遮断回路の第2実施例が適用されるシステムを模式的に示すブロック図である。FIG. 12 is a block diagram schematically showing a system to which the second embodiment of the access blocking circuit is applied. 図13は、図12に示すシステムにおける第2実施例のアクセス遮断回路を示すブロック図である。FIG. 13 is a block diagram showing an access blocking circuit of the second embodiment in the system shown in FIG. 図14は、図13に示すアクセス遮断回路の状態遷移を説明するための図(その1)である。FIG. 14 is a diagram (part 1) for explaining the state transition of the access blocking circuit shown in FIG. 図15は、図13に示すアクセス遮断回路の状態遷移を説明するための図(その2)である。FIG. 15 is a diagram (part 2) for explaining the state transition of the access blocking circuit shown in FIG.

まず、本実施例のアクセス遮断回路、半導体集積回路およびアクセス遮断方法を詳述する前に、図1および図2を参照して、システム内の一部モジュールが制御不能に陥った場合およびその問題点を説明する。   First, before describing the access blocking circuit, the semiconductor integrated circuit, and the access blocking method of this embodiment in detail, referring to FIG. 1 and FIG. 2, when some modules in the system become uncontrollable and its problems Explain the point.

図1は、システム内の一部モジュールが制御不能に陥った場合を説明するための図であり、システムLSI(半導体集積回路)100におけるマスタ111が制御不能に陥った場合を示す。   FIG. 1 is a diagram for explaining a case where some modules in the system have become uncontrollable, and shows a case where a master 111 in a system LSI (semiconductor integrated circuit) 100 has become uncontrollable.

図1において、参照符号111〜113は、例えば、CPU(Central Processing Unit)やDMA(Direct Memory Access)等のマスタ(バスマスタ)を示し、103は、内部バス(バス)、そして、121,122は、例えば、メモリ等のスレーブ(バススレーブ)を示す。   In FIG. 1, reference numerals 111 to 113 denote masters (bus masters) such as a CPU (Central Processing Unit) and DMA (Direct Memory Access), 103 is an internal bus (bus), and 121 and 122 are For example, a slave (bus slave) such as a memory is shown.

図1に示されるように、LSI100は、マスタ111〜113、バス103およびスレーブ121,122を含み、LSIの外部に設けられた対向機器200との間でデータを遣り取りして所定の処理を行う。   As shown in FIG. 1, the LSI 100 includes masters 111 to 113, a bus 103, and slaves 121 and 122, and exchanges data with an opposing device 200 provided outside the LSI to perform predetermined processing. .

ところで、LSI100において、例えば、AMBA(登録商標)等のバス規格に基づいたデータ転送は、マスタ/スレーブの関係で、転送命令に対して応答が求められるハンドシェイク形式で行われる。   Incidentally, in the LSI 100, for example, data transfer based on a bus standard such as AMBA (registered trademark) is performed in a handshake format in which a response to a transfer command is required in a master / slave relationship.

そのため、例えば、プログラムミスや対向機器200の不具合等が原因となって、或るマスタ111が制御不能になった場合、そのマスタの暴走によってバス経路が占有若しくはロックされ、他のマスタからのアクセスが滞ってシステム全体がハングアップ状態になる。   Therefore, for example, when a master 111 becomes uncontrollable due to a program mistake or a malfunction of the opposite device 200, the bus route is occupied or locked by the runaway of that master, and access from other masters Hangs and the entire system hangs up.

図2は、図1に示すシステムの動作の一例を説明するためのフローチャートである。まず、図2に示されるように、例えば、ステップST11において、ウォッチドッグタイマ(WDT:Watch Dog Timer)を起動し、ステップST12に進んで、ソフトウエア上で、定期的にWDTを初期化する。なお、WDTは、ノイズ等の原因によりCPU(例えば、マスタ111)が誤動作(暴走)を始めた場合、これを検出して正常な状態に戻すためのものである。   FIG. 2 is a flowchart for explaining an example of the operation of the system shown in FIG. First, as shown in FIG. 2, for example, in step ST11, a watch dog timer (WDT) is started, the process proceeds to step ST12, and WDT is periodically initialized on the software. Note that the WDT is used to detect a CPU (for example, the master 111) that starts a malfunction (runaway) due to noise or the like and return it to a normal state.

ステップST12において、WDTの初期化が不可(ST12:No)と判定すると、ステップST13に進んで、システム全体をリセットし、さらに、ステップST14に進んで、初期化ルーチンを起動して処理を終了する。なお、ステップST12において、WDTを初期化できる(ST12:No)と判定すると、WDTの初期化が不可と判定するまで処理を継続する。   If it is determined in step ST12 that initialization of WDT is impossible (ST12: No), the process proceeds to step ST13, the entire system is reset, and further, the process proceeds to step ST14 to start the initialization routine and finish the process. . If it is determined in step ST12 that WDT can be initialized (ST12: No), the processing is continued until it is determined that initialization of WDT is impossible.

ここで、ステップST13におけるシステム全体のリセット処理、並びに、ステップST14における初期化ルーチンの起動処理は、システムの性能に大きな影響を与えることになる。   Here, the reset process of the entire system in step ST13 and the activation process of the initialization routine in step ST14 have a great influence on the performance of the system.

すなわち、システム内の一部モジュール(例えば、マスタ111)が暴走(制御不能)すると、システム全体をリセットし、初期化シーケンスからやり直すことになり、システム内の1つのモジュールの暴走でも、その影響は、システム全体に及ぶことになる。   In other words, if some module in the system (for example, master 111) runs out of control (uncontrollable), the entire system will be reset and the initialization sequence will start over. Even if one module in the system runs out of control, the effect will be The whole system.

また、例えば、ハンドシェイクを伴うプロトコルの場合、単純にマスタとバス間のアクセスを即時遮断するだけでは不十分である。すなわち、転送中のデータは、ハンドシェイクを完了させることが求められ、特に、バス側のインターフェース(IF)は、アイドル(IDLE)状態を保証することが求められる。   Further, for example, in the case of a protocol involving handshake, it is not sufficient to simply immediately block access between the master and the bus. That is, the data being transferred is required to complete the handshake, and in particular, the bus-side interface (IF) is required to guarantee an idle (IDLE) state.

以下、アクセス遮断回路、半導体集積回路およびアクセス遮断方法の実施例を、添付図面を参照して詳述する。なお、以下の記載では、主として、AMBA(登録商標)のAXI(登録商標)を使用した半導体集積回路を例として説明するが、本実施例の適用は、このAXI(登録商標)を使用した半導体集積回路に限定されるものではない。   Hereinafter, embodiments of an access blocking circuit, a semiconductor integrated circuit, and an access blocking method will be described in detail with reference to the accompanying drawings. In the following description, a semiconductor integrated circuit using AXI (registered trademark) of AMBA (registered trademark) will be mainly described as an example. The application of this embodiment is applied to a semiconductor using this AXI (registered trademark). It is not limited to integrated circuits.

すなわち、本実施例の適用は、例えば、前述したAMBA(登録商標)のAHB(登録商標)やAPB(登録商標)、或いは、AMBA(登録商標)のACE(AXI Coherency Extensions)を使用した半導体集積回路であってもよい。   That is, the application of this embodiment is, for example, semiconductor integration using the above-mentioned AMBA (registered trademark) AHB (registered trademark) or APB (registered trademark), or AMBA (registered trademark) ACE (AXI Coherency Extensions). It may be a circuit.

さらに、本実施例の適用は、半導体集積回路(システムLSI,SoC)に限定されるものではなく、複数の半導体集積回路によるシステムやサーバ等に対しても、幅広く適用することができる。なお、例えば、後述するプロトコル補正回路の実装方法や疑似転送方法については、各バスの規格(バスプロトコル)に依存することになる。   Furthermore, the application of the present embodiment is not limited to a semiconductor integrated circuit (system LSI, SoC), and can be widely applied to a system, a server, and the like using a plurality of semiconductor integrated circuits. For example, a method for mounting a protocol correction circuit and a pseudo transfer method described later depend on the standard (bus protocol) of each bus.

図3は、アクセス遮断回路の第1実施例が適用されるシステムを模式的に示すブロック図である。図3において、参照符号1はシステムLSI(半導体集積回路)、11〜13はマスタ、21,22はスレーブ、3は内部バス(バス)、41〜43はアクセス遮断回路、そして、5はシステムコントローラ(CPU等)を示す。   FIG. 3 is a block diagram schematically showing a system to which the first embodiment of the access blocking circuit is applied. In FIG. 3, reference numeral 1 is a system LSI (semiconductor integrated circuit), 11 to 13 are masters, 21 and 22 are slaves, 3 is an internal bus (bus), 41 to 43 are access blocking circuits, and 5 is a system controller. (CPU etc.).

図3と上述した図1の比較から明らかなように、第1実施例では、各マスタ11〜13と、スレーブ21,22が接続されたバス3との間には、それぞれアクセス遮断回路41〜43が設けられている。なお、マスタ11〜13は、例えば、CPUやDMA等であり、また、スレーブ21,22は、例えば、メモリ等である。   As is clear from the comparison between FIG. 3 and FIG. 1 described above, in the first embodiment, access blocking circuits 41 to 41 are respectively connected between the masters 11 to 13 and the bus 3 to which the slaves 21 and 22 are connected. 43 is provided. The masters 11 to 13 are, for example, a CPU and a DMA, and the slaves 21 and 22 are, for example, a memory.

アクセス遮断回路41〜43は、例えば、システムコントローラ5により制御される。ここで、システムコントローラ5は、例えば、クロックリセットジェネレータやパワーマネージメントユニット等に代表されるSoC(半導体集積回路)内のシステム制御機能を有したモジュールである。   The access blocking circuits 41 to 43 are controlled by the system controller 5, for example. Here, the system controller 5 is a module having a system control function in a SoC (semiconductor integrated circuit) typified by, for example, a clock reset generator and a power management unit.

また、システムコントローラ5は、マスタ11〜13を制御する上位の演算処理装置、或いは、複数のマスタ11〜13のいずれかが直接役割を担うようにすることも可能である。   In addition, the system controller 5 may be configured such that any one of the higher-level arithmetic processing devices that control the masters 11 to 13 or the plurality of masters 11 to 13 directly plays a role.

システムコントローラ5は、各アクセス遮断回路41〜43からのアクセス遮断要求信号ABRSおよびアクセス遮断完了(リセット許可)信号ABCSを受け取り、各アクセス遮断回路41〜43に対して、アクセス遮断許可信号ABPSを出力する。また、システムコントローラ5は、各マスタ11〜13に対して、それぞれのマスタ11〜13を個別にリセットする個別リセット信号IRSTを出力する。   The system controller 5 receives the access blocking request signal ABRS and the access blocking completion (reset permission) signal ABCS from each of the access blocking circuits 41 to 43, and outputs an access blocking permission signal ABPS to each of the access blocking circuits 41 to 43. To do. Further, the system controller 5 outputs an individual reset signal IRST for individually resetting each of the masters 11 to 13 to each of the masters 11 to 13.

ここで、例えば、マスタ11からスレーブ21への転送中に、意図しない要因によってマスタ11が暴走すると、マスタ11とスレーブ21の転送路が、暴走アクセスにより占有され続けてしまうことになる。   Here, for example, when the master 11 runs away due to an unintended factor during the transfer from the master 11 to the slave 21, the transfer path between the master 11 and the slave 21 continues to be occupied by the runaway access.

このような場合、前述した図1に示す半導体集積回路100では、他のマスタ(例えば、マスタ112)からのアクセスは、延々と待たされることになり、前述したように、WDT等を用いてシステム全体のリセット処理を行って復旧する。   In such a case, in the semiconductor integrated circuit 100 shown in FIG. 1 described above, access from other masters (for example, the master 112) is waited indefinitely, and as described above, the system using the WDT or the like. Restore the entire reset process.

これに対して、本第1実施例の半導体集積回路1では、例えば、アクセス遮断回路41により、マスタ11からの暴走アクセスを一時遮断することが可能であり、その状態で、マスタ11のみをリセットする。   On the other hand, in the semiconductor integrated circuit 1 according to the first embodiment, for example, the access blocking circuit 41 can temporarily block the runaway access from the master 11, and in that state, only the master 11 is reset. To do.

その後、アクセス遮断回路41を通常状態に設定することで、マスタ11による通常アクセスが可能となる。これにより、システム全体をリセットすることなく、復旧させることができるようになっている。   Thereafter, normal access by the master 11 becomes possible by setting the access blocking circuit 41 to the normal state. As a result, the entire system can be recovered without being reset.

図4は、図3に示すシステムの動作の一例を説明するためのフローチャートである。まず、図4に示されるように、例えば、ステップST21において、アクセス遮断回路41が例外ケース(通常動作ではない状態)を検出すると、ステップST22に進む。   FIG. 4 is a flowchart for explaining an example of the operation of the system shown in FIG. First, as shown in FIG. 4, for example, when the access blocking circuit 41 detects an exceptional case (a state that is not a normal operation) in step ST21, the process proceeds to step ST22.

ステップST22では、(a)バスのハンドシェイク要因、および、(b)転送性能要因の判定を行う。ステップST22において、例えば、アクセス遮断回路41は、バス(内部バス)3を介したスレーブ21との間の転送をモニタし、(a)バスのハンドシェイクの異常を検出(判定)すれば、ステップST23に進む。例えば、ステップST22において、バス3を介したスレーブ21との間のハンドシェイクが完了していないと判定すると、ステップST23に進む。   In step ST22, (a) a bus handshake factor and (b) a transfer performance factor are determined. In step ST22, for example, the access blocking circuit 41 monitors the transfer with the slave 21 via the bus (internal bus) 3 and (a) detects (determines) a bus handshake abnormality. Proceed to ST23. For example, if it is determined in step ST22 that the handshake with the slave 21 via the bus 3 has not been completed, the process proceeds to step ST23.

また、ステップST22において、例えば、ハンドシェイクは完了しているが、(b)転送性能の異常、例えば、データの転送レートが、バス3の規格から予め定められた閾値以上異なっている等の異常を検出すれば、ステップST27に進む。   In step ST22, for example, the handshake is completed, but (b) an abnormality in transfer performance, for example, an abnormality such that the data transfer rate differs by a predetermined threshold or more from the bus 3 standard. If detected, the process proceeds to step ST27.

ステップST27では、例えば、設定回数およびサンプリング結果に変化がない、すなわち、本来の転送性能(通常の動作)から逸脱している(ST27:Yes)と判定すると、ステップST23に進む。なお、ステップST27において、設定回数およびサンプリング結果に変化がある、すなわち、通常の動作である(ST27:No)と判定すると、ステップST21に戻る。   In step ST27, for example, if it is determined that the set number of times and the sampling result are not changed, that is, deviate from the original transfer performance (normal operation) (ST27: Yes), the process proceeds to step ST23. If it is determined in step ST27 that the set number of times and the sampling result are changed, that is, normal operation (ST27: No), the process returns to step ST21.

ステップST23では、マスタ11のアクセスを遮断し、さらに、ステップST24に進んで、未完了ハンドシェイクが無いかどうかを判定する。ステップST24において、未完了ハンドシェイクが有る(ST24:No)と判定すると、ステップST28に進んで、疑似転送を行ってからステップST25に進む。   In step ST23, the access of the master 11 is blocked, and the process further proceeds to step ST24 to determine whether or not there is an incomplete handshake. If it is determined in step ST24 that there is an incomplete handshake (ST24: No), the process proceeds to step ST28, performs pseudo transfer, and then proceeds to step ST25.

また、ステップST24において、未完了ハンドシェイクが無い(ST24:Yes)と判定すると、そのままステップST25に進む。ステップST25では、対象マスタ(例えば、マスタ11)の初期化を行い、さらに、ステップST26に進んで、アクセス遮断の解除を行って処理を終了する。   If it is determined in step ST24 that there is no incomplete handshake (ST24: Yes), the process proceeds to step ST25 as it is. In step ST25, the target master (for example, master 11) is initialized, and the process proceeds to step ST26, where the access blocking is canceled and the process is terminated.

このように、本第1実施例によれば、例えば、マスタ11が暴走(制御不能)の場合、マスタ11のみを遮断して初期化し、例えば、バス3およびスレーブ21を開放してアイドル状態にすることができ、システム全体に影響が及ぶのを避けることができる。   Thus, according to the first embodiment, for example, when the master 11 is out of control (not controllable), only the master 11 is shut off and initialized, and for example, the bus 3 and the slave 21 are opened to enter an idle state. And avoid affecting the entire system.

次に、本実施例を適用した場合の動作シーケンスを、AMBA(登録商標)のAXI(登録商標)プロトコル(バス規格)を例として説明する。ここで、アクセスの遮断が求められる場合(マスタの暴走)を判定するには、例えば、バスプロトコルから判断できる要因、並びに、転送レートから判断できる要因が考えられる。   Next, an operation sequence when the present embodiment is applied will be described by taking the AMBA (registered trademark) AXI (registered trademark) protocol (bus standard) as an example. Here, in order to determine when access blocking is required (master runaway), for example, a factor that can be determined from the bus protocol and a factor that can be determined from the transfer rate can be considered.

まず、バスプロトコルから判断できる要因は、例えば、AXI(登録商標)プロトコルにおいて、マスタがプロトコルで規定されているハンドシェイクの処理が不可の場合((a)バスのハンドシェイク要因)である。   First, a factor that can be determined from the bus protocol is, for example, when the handshaking process specified by the protocol in the AXI (registered trademark) protocol is not possible ((a) bus handshake factor).

また、転送レートから判断できる要因は、マスタの転送性能はシステムシミュレーション等の結果から予め規定可能であり、マスタが規定された転送レートから大きく外れた振る舞いをする場合((b)転送性能要因)である。   The factor that can be determined from the transfer rate is that the master transfer performance can be specified in advance from the results of system simulation, etc., and the master behaves far from the specified transfer rate ((b) Transfer performance factor) It is.

以下の説明において、使用する信号名および用語(略語)は、次の内容(意味)を表している。まず、図5〜図8における略語(ARch,Rch,RVALID等)が表す意味は、次の通りである。   In the following description, signal names and terms (abbreviations) used represent the following contents (meanings). First, the meanings represented by abbreviations (ARch, Rch, RVALID, etc.) in FIGS. 5 to 8 are as follows.

ARch(Read address channel)は、読み出しアドレスチャネルを示し、Rch(Read data channel)は、読み出しデータチャネルを示し、AWch(Write address channel)は、書き込みアドレスチャネルを示す。また、Wch(Write data channel)は、書き込みデータチャネルを示し、Bch(Write response channel)は、書き込み応答チャネルを示す。   ARch (Read address channel) indicates a read address channel, Rch (Read data channel) indicates a read data channel, and AWch (Write address channel) indicates a write address channel. Wch (Write data channel) indicates a write data channel, and Bch (Write response channel) indicates a write response channel.

次に、信号名RVALID,RREADY,BVALID等は、AMBA(登録商標)のAXI(登録商標)プロトコルで定義された信号名であり、それぞれ下記の意味を示している。RVALIDは、読み出しが有効であることを示し、RREADYは、読み出しの準備が整っていることを示し、BVALIDは、書き込み応答が有効であることを示し、BREADYは、書き込み応答の準備が整っていることを示し、WVALIDは、書き込みデータが有効であることを示す。   Next, signal names RVALID, RREADY, BVALID, and the like are signal names defined by the AMBA (registered trademark) AXI (registered trademark) protocol, and have the following meanings, respectively. RVALID indicates that the read is valid, RREADY indicates that the read is ready, BVALID indicates that the write response is valid, and BREADY is ready for the write response WVALID indicates that the write data is valid.

また、WIDは、書き込みデータのIDタグを示し、WSTRBは、書き込みデータのストローブを示し、AWVALIDは、書き込みアドレスが有効であることを示し、AWIDは、書き込みアドレスのIDタグを示す。さらに、AWLENは、書き込みデータの転送回数(バースト長)を示し、AWADDRは、書き込みアドレスを示す。   WID indicates an ID tag of write data, WSTRB indicates a strobe of write data, AWVALID indicates that the write address is valid, and AWID indicates an ID tag of the write address. Furthermore, AWLEN indicates the number of write data transfers (burst length), and AWADDR indicates a write address.

まず、バスプロトコルから判断できる要因を、AMBA(登録商標)のAXI(登録商標)プロトコル(バス規格)を例として説明する。マスタがプロトコルで規定されているハンドシェイクの処理が不可の場合、例えば、バス(スレーブ)からのVALIDに対して、マスタから任意の時間内にREADYを返せない場合やAWVALIDとWVALIDの相関関係が崩れる場合がこれに当たる。これは、以下のような4つのケース(P1)〜(P4)が考えられる。   First, factors that can be determined from the bus protocol will be described using the AXI (registered trademark) protocol (bus standard) of AMBA (registered trademark) as an example. If the master cannot handle the handshake specified in the protocol, for example, the VALID from the bus (slave) cannot return READY from the master within an arbitrary time, or there is a correlation between AWVALID and WVALID. This is the case when it collapses. The following four cases (P1) to (P4) can be considered.

(P1)は、Rch(読み出しデータチャネル)が完了しない場合であり、(P2)は、Bch(書き込み応答チャネル)が完了しない場合である。また、(P3)は、AWch(書き込みアドレスチャネル)は完了しているが、Wch(書き込みデータチャネル)が完了しない場合である。さらに、(P4)は、Wch(書き込みデータチャネル)は完了しているが、AWch(書き込みアドレスチャネル)が完了しない場合である。   (P1) is a case where Rch (read data channel) is not completed, and (P2) is a case where Bch (write response channel) is not completed. (P3) is a case where AWch (write address channel) is completed but Wch (write data channel) is not completed. Further, (P4) is a case where Wch (write data channel) is completed but AWch (write address channel) is not completed.

これらの(P1)〜(P4)の場合は、バス3のデッドロック要因になるため、検出したら直ちにアクセスを遮断し、対象マスタをリセット処理するのが好ましい。ただし、アクセス遮断時には、上述したように、アクセス遮断回路41〜43からバス3(スレーブ21,22)に対する所定数のREADYやVALIDをマスタ11〜13の代わりに疑似転送し、アイドル状態に遷移させた後にリセット制御に移ることになる。   In these cases (P1) to (P4), it becomes a cause of a deadlock of the bus 3. Therefore, it is preferable that the access is cut off immediately after detection and the target master is reset. However, when the access is blocked, as described above, a predetermined number of READYs and VALIDs to the bus 3 (slaves 21 and 22) are pseudo-transferred from the access blocking circuits 41 to 43 instead of the masters 11 to 13 to shift to the idle state. After that, it will move to reset control.

図5は、図3に示すシステムにおいて、読み出しデータチャネルが完了していない場合の処理(P1)の一例を説明するためのタイミングチャートであり、例えば、マスタ11が、スレーブ(例えば、メモリ)21からデータを読み出す場合を示すものである。   FIG. 5 is a timing chart for explaining an example of the process (P1) when the read data channel is not completed in the system shown in FIG. 3. For example, the master 11 is a slave (for example, a memory) 21. This shows a case where data is read out from.

図5に示されるように、マスタ11がメモリ21から所定アドレスのデータを読み出す場合、例えば、マスタ11は、メモリ21に対して読み出しアドレスチャネル(読み出し命令)ARchを出力する。   As shown in FIG. 5, when the master 11 reads data at a predetermined address from the memory 21, for example, the master 11 outputs a read address channel (read command) ARch to the memory 21.

メモリ21は、アクセス遮断回路41およびバス3を介してARchを受け取り、マスタ11に対して、読み出しデータチャネルRchの読み出しが有効であることを示すRVALIDのアサートを開始する。ここで、マスタ11が暴走して制御不能になっていると、例えば、マスタ11は、RVALIDを受け取っても、読み出しの準備が整っていることを示すRREADYを返さない。   The memory 21 receives ARch via the access blocking circuit 41 and the bus 3, and starts asserting RVALID indicating that reading of the read data channel Rch is valid to the master 11. Here, if the master 11 runs out of control and becomes uncontrollable, for example, even if the master 11 receives RVALID, it does not return RREADY indicating that it is ready for reading.

このとき、アクセス遮断回路41は、例えば、マスタ11が、RVALIDを受け取ってからRREADYを返さない設定サイクル数の経過(予め設定されたクロック数のカウント)により、マスタ11が暴走していると判定してアクセスを遮断する。   At this time, for example, the access blocking circuit 41 determines that the master 11 is out of control due to the elapse of a set cycle number (count of a preset number of clocks) in which the master 11 does not return RREADY after receiving RVALID. To block access.

さらに、アクセス遮断回路41は、マスタ11の代わりに、メモリ21に対してRREADYをアサート(疑似アサート:疑似転送)する。すなわち、P1の場合、アクセス遮断回路41は、バス3(メモリ21)からのRVALIDに対してのRREADYを疑似アサートする。そして、アクセス遮断回路41は、例えば、制御不能となったマスタ11のみを初期化し、その後、マスタ11とバス3の接続を有効にする。   Further, the access blocking circuit 41 asserts RREADY to the memory 21 instead of the master 11 (pseudo-assertion: pseudo-transfer). That is, in the case of P1, the access blocking circuit 41 pseudo-asserts RREADY for RVALID from the bus 3 (memory 21). For example, the access blocking circuit 41 initializes only the master 11 that has become uncontrollable, and then enables the connection between the master 11 and the bus 3.

図6は、図3に示すシステムにおいて、書き込み応答チャネルが完了していない場合の処理(P2)の一例を説明するためのタイミングチャートであり、例えば、マスタ11が、メモリ21に対してデータを書き込む場合を示すものである。   FIG. 6 is a timing chart for explaining an example of the process (P2) when the write response channel is not completed in the system shown in FIG. 3. For example, the master 11 sends data to the memory 21. It shows the case of writing.

図6に示されるように、マスタ11がメモリ21の所定アドレスに対してデータを書き込む場合、例えば、マスタ11は、メモリ21に対して、書き込みアドレスチャネル(書き込み命令)AWchおよび書き込みデータチャネルWchを出力する。   As shown in FIG. 6, when the master 11 writes data to a predetermined address in the memory 21, for example, the master 11 sets a write address channel (write command) AWch and a write data channel Wch to the memory 21. Output.

メモリ21は、アクセス遮断回路41およびバス3を介してAWchおよびWchを受け取り、マスタ11に対して、書き込み応答チャネルBchの書き込み応答が有効であることを示すBVALIDのアサートを開始する。ここで、マスタ11が暴走して制御不能になっていると、例えば、マスタ11は、BALIDを受け取っても、書き込み応答の準備が整っていることを示すBREADYを返さない。   The memory 21 receives AWch and Wch via the access blocking circuit 41 and the bus 3, and starts asserting BVALID indicating that the write response of the write response channel Bch is valid to the master 11. Here, if the master 11 runs out of control and becomes uncontrollable, for example, even if the master 11 receives BALID, it does not return BREADY indicating that the write response is ready.

このとき、アクセス遮断回路41は、例えば、マスタ11が、BALIDを受け取ってからBEADYを返さない設定サイクル数の経過により、マスタ11が暴走していると判定してアクセスを遮断する。   At this time, for example, the access blocking circuit 41 determines that the master 11 is out of control due to the elapse of a set cycle number in which the master 11 does not return BEADY after receiving the BALID, and blocks the access.

さらに、アクセス遮断回路41は、マスタ11の代わりに、メモリ21に対してBREADYを疑似アサートする。すなわち、P2の場合、アクセス遮断回路41は、バス3(メモリ21)からのBVALIDに対してのBREADYを疑似アサートする。そして、アクセス遮断回路41は、例えば、制御不能となったマスタ11のみを初期化し、その後、マスタ11とバス3の接続を有効にする。   Further, the access blocking circuit 41 pseudo-asserts BREADY to the memory 21 instead of the master 11. That is, in the case of P2, the access blocking circuit 41 pseudo-asserts BREADY for BVALID from the bus 3 (memory 21). For example, the access blocking circuit 41 initializes only the master 11 that has become uncontrollable, and then enables the connection between the master 11 and the bus 3.

図7は、図3に示すシステムにおいて、書き込みアドレスチャネルは完了しているが、書き込みデータチャネルが完了していない場合の処理(P3)の一例を説明するためのタイミングチャートである。   FIG. 7 is a timing chart for explaining an example of the process (P3) when the write address channel is completed but the write data channel is not completed in the system shown in FIG.

図7に示されるように、マスタ11がメモリ21の所定アドレスに対してデータを書き込む場合、例えば、マスタ11は、メモリ21に対して、AWch(書き込みアドレスのIDタグAWID-1)および書き込みデータのIDタグWIDを出力する。   As shown in FIG. 7, when the master 11 writes data to a predetermined address in the memory 21, for example, the master 11 writes AWch (write address ID tag AWID-1) and write data to the memory 21. The ID tag WID is output.

ここで、マスタ11が、Wchの書き込みデータが有効であることを示すWVALIDを出力しないとき、アクセス遮断回路41は、WVALIDが出力されない設定サイクル数の経過により、マスタ11が暴走していると判定してアクセスを遮断する。   Here, when the master 11 does not output WVALID indicating that the write data of Wch is valid, the access blocking circuit 41 determines that the master 11 has runaway due to the elapse of the set number of cycles in which WVALID is not output. To block access.

さらに、アクセス遮断回路41は、マスタ11の代わりに、メモリ21に対してWVALIDを疑似アサートし、書き込みデータのストローブWSTRBを『0』として、メモリ21にデータを書き込まないようにする。そして、アクセス遮断回路41は、Bchの書き込み応答の準備が整っていることを示すBREADYを疑似アサートする。   Further, the access blocking circuit 41 pseudo-asserts WVALID to the memory 21 instead of the master 11 to set the write data strobe WSTRB to “0” so that data is not written to the memory 21. Then, the access blocking circuit 41 pseudo-asserts BREADY indicating that the Bch write response is ready.

すなわち、P3の場合、完了済のAWchのAWID(AWID-1)と等価のID値をWIDとしたWSTRBを『0』として疑似Wchをハンドシェイクする。さらに、その後のBchに備えて、BREADYを疑似アサートし続ける。そして、アクセス遮断回路41は、例えば、制御不能となったマスタ11のみを初期化し、その後、マスタ11とバス(内部バス)3の接続を有効にする。   That is, in the case of P3, the WSTRB having the ID value equivalent to the AWID (AWID-1) of the completed AWch as WID is set to “0”, and the pseudo Wch is handshaked. Further, BREADY is continuously asserted in preparation for the subsequent Bch. For example, the access blocking circuit 41 initializes only the master 11 that has become uncontrollable, and then enables the connection between the master 11 and the bus (internal bus) 3.

図8は、図3に示すシステムにおいて、書き込みデータチャネルは完了しているが、書き込みアドレスチャネルが完了していない場合の処理(P4)の一例を説明するためのタイミングチャートである。   FIG. 8 is a timing chart for explaining an example of the process (P4) when the write data channel is completed but the write address channel is not completed in the system shown in FIG.

図8に示されるように、マスタ11がメモリ21の所定アドレスに対してデータを書き込む場合、例えば、マスタ11は、メモリ21に対して、AWchのAWIDおよび書き込みデータのバースト長AWLENを出力する。さらに、マスタ11は、メモリ21に対して、AWchの書き込みアドレスAWADDRおよびWchの書き込みデータのIDタグWID(WID-2,WID-2)を出力する。   As shown in FIG. 8, when the master 11 writes data to a predetermined address of the memory 21, for example, the master 11 outputs the AWch AWID and the burst length AWLEN of the write data to the memory 21. Further, the master 11 outputs an AWch write address AWADDR and Wch write data ID tags WID (WID-2, WID-2) to the memory 21.

ここで、マスタ11が、AWchの書き込みアドレスが有効であることを示すAWVALIDを出力しないとき、アクセス遮断回路41は、AWVALIDが出力されない設定サイクル数の経過により、マスタ11が暴走していると判定してアクセスを遮断する。   Here, when the master 11 does not output AWVALID indicating that the write address of AWch is valid, the access blocking circuit 41 determines that the master 11 has runaway due to the elapse of the set number of cycles in which AWVALID is not output. To block access.

さらに、アクセス遮断回路41は、マスタ11の代わりに、メモリ21に対してAWVALIDを疑似アサートし、AWADDRにより設定された予約領域にデータ書き込みを行う。   Further, the access blocking circuit 41 pseudo-asserts AWVALID to the memory 21 instead of the master 11 and writes data to the reserved area set by AWADDR.

すなわち、P4の場合、完了済のWchのWID(WID-2)と等価のID値をAWIDとした疑似AWchをハンドシェイクする。その際のアドレス値は、AWADDRにより設定された予約領域に対して発行する。そして、上述したP3と同様に、アクセス遮断回路41は、その後のBchに備えて、BREADYを疑似アサートし続ける。そして、アクセス遮断回路41は、例えば、制御不能となったマスタ11のみを初期化し、その後、マスタ11とバス3の接続を有効にする。   That is, in the case of P4, handshaking is performed on a pseudo AWch having an ID value equivalent to the WID (WID-2) of the completed Wch as AWID. The address value at that time is issued to the reserved area set by AWADDR. Then, similarly to P3 described above, the access blocking circuit 41 continues to pseudo-assert BREADY in preparation for the subsequent Bch. For example, the access blocking circuit 41 initializes only the master 11 that has become uncontrollable, and then enables the connection between the master 11 and the bus 3.

以上、バスプロトコルから判断できる要因を、AMBA(登録商標)のAXI(登録商標)プロトコルに基づいて、P1〜P4として説明したが、次に、転送レートから判断できる要因を説明する。   The factors that can be determined from the bus protocol have been described as P1 to P4 based on the AXI (registered trademark) protocol of AMBA (registered trademark). Next, the factors that can be determined from the transfer rate will be described.

まず、マスタ11〜13の転送性能は、例えば、システムシミュレーションの結果等から予め認識することができる。従って、マスタが、予め認識された転送レートから大きく外れた振る舞いをする場合、例えば、そのマスタが暴走して制御不能となっていると判定する。   First, the transfer performance of the masters 11 to 13 can be recognized in advance from the result of a system simulation, for example. Accordingly, when the master behaves greatly deviating from the transfer rate recognized in advance, for example, it is determined that the master is out of control due to runaway.

ただし、想定される転送レートから一時的に大きく外れたとしても、転送性能に対してのオーバーシュートやアンダーシュートも考えられるため、何度かサンプリングを行った後に、現象が改善しない場合はアクセスを遮断してマスタを初期化するのが好ましい。   However, even if the transfer rate deviates significantly from the expected transfer rate, overshoot and undershoot can be considered for the transfer performance. It is preferable to initialize the master by shutting off.

この場合は、例えば、転送プロトコルの切れ目を検出し、バス3(スレーブ21,22)をプロトコル違反とならない状態にした後に、アクセスを遮断してリセット制御(マスタの初期化)に移るのが好ましい。   In this case, for example, it is preferable to detect a break in the transfer protocol, set the bus 3 (slaves 21 and 22) to a state that does not violate the protocol, and then block the access and move to reset control (master initialization). .

なお、いずれの場合も、本第1実施例のように、アクセス遮断要因信号(割り込み信号等を含む)をシステムコントローラ(CPU等)5に発行することで、ソフトウエア経由でアクセス遮断処理を行うことが可能である。   In any case, as in the first embodiment, an access blocking process is performed via software by issuing an access blocking factor signal (including an interrupt signal) to the system controller (CPU, etc.) 5. It is possible.

或いは、後に、図12〜図15を参照して説明する第2実施例のように、アクセス遮断回路(41’)が単独でアクセスを遮断し、マスタ(11)に対してリセットを発生することも可能である。   Alternatively, as in the second embodiment which will be described later with reference to FIGS. 12 to 15, the access blocking circuit (41 ′) blocks the access alone and generates a reset for the master (11). Is also possible.

図9は、図3に示すシステムにおける第1実施例のアクセス遮断回路を示すブロック図である。図9において、参照符号P11〜P17およびP11’は、図10および図11を参照して説明するアクセス遮断回路40の処理における信号(情報,処理)に対応している。   FIG. 9 is a block diagram showing an access blocking circuit of the first embodiment in the system shown in FIG. 9, reference symbols P11 to P17 and P11 'correspond to signals (information and processing) in the processing of the access blocking circuit 40 described with reference to FIGS.

図9に示されるように、アクセス遮断回路40(41〜43)は、システムIF部401、アクセス遮断部402、プロトコル補正部403、ステータス受信部404、プロトコルモニタ部405およびパフォーマンスモニタ部406を含む。ここで、ステータス受信部404、プロトコルモニタ部405およびパフォーマンスモニタ部406は、マスタの異常を検出する異常検出部として機能する。   As shown in FIG. 9, the access blocking circuit 40 (41 to 43) includes a system IF unit 401, an access blocking unit 402, a protocol correction unit 403, a status reception unit 404, a protocol monitoring unit 405, and a performance monitoring unit 406. . Here, the status reception unit 404, the protocol monitor unit 405, and the performance monitor unit 406 function as an abnormality detection unit that detects an abnormality of the master.

システムIF部401は、例えば、システムコントローラ5に対してアクセス遮断要求信号ABRSおよびアクセス遮断完了(リセット許可)信号ABCSを出力すると共に、システムコントローラ5からのアクセス遮断許可信号ABPSを受け取る。また、システムIF部401は、プロトコル補正部403からの信号(処理)P16およびステータス受信部404からの信号P12も受け取る。   For example, the system IF unit 401 outputs an access blocking request signal ABRS and an access blocking completion (reset permission) signal ABCS to the system controller 5 and receives an access blocking permission signal ABPS from the system controller 5. The system IF unit 401 also receives a signal (processing) P16 from the protocol correction unit 403 and a signal P12 from the status reception unit 404.

アクセス遮断部402は、マスタ側に設けられ、システムIF部401からの信号P13,P17を受け取り、プロトコル補正部403に信号P14を出力する。プロトコル補正部403は、スレーブ(バス)側に設けられ、アクセス遮断部402からの信号P14と共に、ステータス受信部404からの信号P15を受け取る。   The access blocking unit 402 is provided on the master side, receives signals P13 and P17 from the system IF unit 401, and outputs a signal P14 to the protocol correction unit 403. The protocol correction unit 403 is provided on the slave (bus) side, and receives the signal P15 from the status reception unit 404 together with the signal P14 from the access blocking unit 402.

ステータス受信部404は、プロトコルモニタ部405からの信号P11およびパフォーマンスモニタ部406からの信号(要因情報)P11’を受け取り、システムIF部401に対して、信号(遮断要求信号の通知)P12を出力する。また、ステータス受信部404は、プロトコル補正部403に対して、信号(対象信号,各種出力IDおよびアクセス先アドレス等の補正情報)P15を出力する。   The status receiving unit 404 receives the signal P11 from the protocol monitor unit 405 and the signal (cause information) P11 ′ from the performance monitor unit 406, and outputs a signal (notification of a cutoff request signal) P12 to the system IF unit 401. To do. Further, the status receiving unit 404 outputs a signal (correction information such as a target signal, various output IDs, and an access destination address) P15 to the protocol correction unit 403.

プロトコルモニタ部405は、バス3を常にモニタしてプロトコルを監視し続け、プロトコルを逸脱した振る舞いを検出した場合や、VALIDとREADYのハンドシェイクタイミングが予め設定したサイクル数をオーバーした場合等の要因(マスタの暴走)を検出する。   The protocol monitor unit 405 constantly monitors the bus 3 to monitor the protocol, detects a behavior that deviates from the protocol, or causes the handshake timing of VALID and READY to exceed the preset number of cycles. Detects (master runaway).

パフォーマンスモニタ部406は、転送性能を常に計測し続け、予め設定した想定値と比較して要因(マスタの暴走)を検出する。なお、上述した各モジュール機能は、例えば、プロトコルモニタ部405およびパフォーマンスモニタ部406の内部に包含することも可能である。   The performance monitor unit 406 continuously measures the transfer performance, and detects a factor (master runaway) by comparing with a preset assumed value. Each module function described above can be included in the protocol monitor unit 405 and the performance monitor unit 406, for example.

図10および図11は、図9に示すアクセス遮断回路の状態遷移を説明するための図である。なお、図11は、図10におけるアクセス遮断処理を説明するためのものである。   10 and 11 are diagrams for explaining the state transition of the access blocking circuit shown in FIG. FIG. 11 is for explaining the access blocking process in FIG.

図10に示されるように、図9に示すアクセス遮断回路40の処理が開始すると、ステップST31において、プロトコルモニタ部405がバス3の転送状態をモニタし、バスのプロトコルに準拠しているかを判定する。そして、バス3の転送状態がプロトコルを逸脱した場合には、プロトコル要因を検出した(P11)として、ステップST33に進む。   As shown in FIG. 10, when the processing of the access blocking circuit 40 shown in FIG. 9 starts, in step ST31, the protocol monitor unit 405 monitors the transfer state of the bus 3 and determines whether it conforms to the bus protocol. To do. If the transfer state of the bus 3 deviates from the protocol, the protocol factor is detected (P11), and the process proceeds to step ST33.

また、ステップST32において、パフォーマンスモニタ部406がバス3の転送性能を計測し、性能閾値の範囲内かどうかを判定する。そして、バス3の転送性能が性能閾値を逸脱した場合には、性能閾値逸脱(P11’)として、ステップST33に進む。   In step ST32, the performance monitor unit 406 measures the transfer performance of the bus 3 and determines whether it is within the performance threshold range. If the transfer performance of the bus 3 deviates from the performance threshold value, the process proceeds to step ST33 as performance threshold deviation (P11 ').

ステップST33では、ステータス受信部404が遮断要因(P11,P11’)を受信し、ステップST34に進んで、システムIF部401に対して遮断要求信号(P12)を送信し、ステップST35に進む。   In step ST33, the status receiving unit 404 receives the blocking factor (P11, P11 '), proceeds to step ST34, transmits a blocking request signal (P12) to the system IF unit 401, and proceeds to step ST35.

ステップST35では、システムコントローラ5からアクセス遮断許可信号(ABPS)を受信したかどうかを判定し、ABPSを受信したと判定すると、アクセス遮断部402に対して信号P13を出力し、ステップST36に進む。すなわち、ステップST36において、アクセス遮断部402は、図11に示すアクセス遮断処理を行う。   In step ST35, it is determined whether an access blocking permission signal (ABPS) has been received from the system controller 5. If it is determined that ABPS has been received, a signal P13 is output to the access blocking unit 402, and the process proceeds to step ST36. That is, in step ST36, the access blocking unit 402 performs the access blocking process shown in FIG.

図11に示されるように、アクセス遮断処理が開始すると、アクセス遮断部402は、マスタ(11:11〜13)のアクセスを遮断し、アクセス遮断完了信号(P14)を出力し、ステップST61に進む。   As shown in FIG. 11, when the access blocking process starts, the access blocking unit 402 blocks the access of the master (11: 11-13), outputs an access blocking completion signal (P14), and proceeds to step ST61. .

ステップST61では、ステータス受信部404が遮断要因を更新し、更新された情報(P15)を出力してステップST62に進む。ここで、ステップST62〜ST67,ST62’およびST67’は、プロトコル補正部403によるプロトコル処理を示す。   In step ST61, the status receiving unit 404 updates the blocking factor, outputs the updated information (P15), and proceeds to step ST62. Here, steps ST62 to ST67, ST62 'and ST67' indicate protocol processing by the protocol correction unit 403.

ステップST62において、転送が未完了かどうかを判定し、転送が未完了である(Yes)と判定した場合には、ステップST62’に進んで、図5〜図8を参照して上述したP1〜P4の場合分けを行う。   In step ST62, it is determined whether or not the transfer is incomplete. If it is determined that the transfer is incomplete (Yes), the process proceeds to step ST62 ′, and P1 to P1 described above with reference to FIGS. The case of P4 is divided.

すなわち、Rchが完了しないP1の場合には、ステップST63に進んで、RREADYをマスタの代わりに疑似アサートし、Bchが完了しないP2の場合には、ステップST64に進んで、BREADYをマスタの代わりに疑似アサートし、ステップST67’に進む。   That is, in the case of P1 where Rch is not completed, the process proceeds to step ST63, and RREADY is pseudo-asserted instead of the master. In the case of P2, where Bch is not completed, the process proceeds to step ST64 and BREADY is replaced in place of the master. Pseudo-assert and proceed to step ST67 ′.

さらに、AWchは完了しているが、Wchが完了しないP3の場合には、ステップST65に進んで、規定の(完了済AWIDに従った)WIDでWSTROB=0の疑似Wchをハンドシェイクし、ステップST67に進む。   Further, in the case of P3 in which AWch is completed but Wch is not completed, the process proceeds to step ST65, and a handshake of a pseudo Wch of WSTROB = 0 with a specified WID (according to completed AWID) is performed. Proceed to ST67.

そして、Wchは完了しているが、AWchが完了しないP4の場合には、ステップST66に進んで、予め設定された予約領域のアドレスに対し、規定の(完了済WIDに従った)AWIDで疑似AWchをハンドシェイクし、ステップST67に進む。   Then, in the case of P4 in which Wch is completed but AWch is not completed, the process proceeds to step ST66, and a preset reserved area address is simulated with a prescribed AWID (according to the completed WID). Handshake AWch and proceed to step ST67.

ステップST67では、続くBchに備えて、BREADYを疑似アサートし、ステップST67’に進む。このように、ステップST62’によりP1〜P4に場合分けされ、それぞれ対応する処理が行われた後、ステップST67’に進む。   In step ST67, BREADY is pseudo-asserted in preparation for the subsequent Bch, and the process proceeds to step ST67 '. As described above, the process is divided into P1 to P4 by step ST62 ', and after corresponding processing is performed, the process proceeds to step ST67'.

ステップST67’では、上述したステップST63〜ST67により、例えば、暴走したマスタ11を遮断して、スレーブ21,22(バス3)をアイドル状態に遷移させ、転送完了信号(P16)を出力して、ステップST68に進む。   In step ST67 ′, for example, in step ST63 to ST67 described above, the master 11 that has runaway is shut off, the slaves 21 and 22 (bus 3) are transitioned to the idle state, and a transfer completion signal (P16) is output. Proceed to step ST68.

なお、ステップST67’において、未完了の転送があると判定されると、ステップST61に戻って、同様の処理を繰り返す。また、ステップST62において、転送が未完了ではない(No),すなわち、転送が完了していると判定した場合には、そのままステップST68に進む。   If it is determined in step ST67 'that there is an incomplete transfer, the process returns to step ST61 and the same processing is repeated. If it is determined in step ST62 that the transfer is not incomplete (No), that is, it is determined that the transfer is complete, the process proceeds to step ST68.

ステップST68において、システムIF部401は、アクセス遮断完了信号ABCSをアサートし、ステップST69に進む。すなわち、システムコントローラ5は、アクセス遮断回路40(例えば、41)からのABCSを受け取り、例えば、対象となるマスタ11を初期化する。   In step ST68, the system IF unit 401 asserts the access cutoff completion signal ABCS, and the process proceeds to step ST69. That is, the system controller 5 receives ABCS from the access blocking circuit 40 (for example, 41), and initializes the target master 11, for example.

ここで、例えば、暴走したマスタ11は、対応するアクセス遮断回路41によりバス3およびスレーブ21,22から切り離されているため、他のマスタ12,13およびスレーブ21,23等に影響を与えることなく、そのまま初期化することができる。   Here, for example, the runaway master 11 is disconnected from the bus 3 and the slaves 21 and 22 by the corresponding access blocking circuit 41, so that the other masters 12 and 13 and the slaves 21 and 23 are not affected. It can be initialized as it is.

なお、暴走したマスタ11の初期化は、例えば、システムIF部401からの信号P17により、アクセス遮断部402に対して伝えられる。以上により、例えば、暴走したマスタ(11)のアクセス遮断および初期化が完了すると、アクセス遮断回路40(41)によるアクセス遮断が解除されることになる。   The initialization of the master 11 that has runaway is transmitted to the access blocking unit 402 by a signal P17 from the system IF unit 401, for example. As described above, for example, when access blocking and initialization of the runaway master (11) are completed, the access blocking by the access blocking circuit 40 (41) is released.

図12は、アクセス遮断回路の第2実施例が適用されるシステムを模式的に示すブロック図であり、システムコントローラ(CPU等)5を介さずに、アクセス遮断回路41’〜43’単独でアクセスの遮断やマスタ11〜13の初期化を行うものを示している。   FIG. 12 is a block diagram schematically showing a system to which the second embodiment of the access blocking circuit is applied, and the access blocking circuits 41 ′ to 43 ′ are accessed independently without using the system controller (CPU etc.) 5. Is shown, and the masters 11 to 13 are initialized.

図12と、前述した図3の比較から明らかなように、本第2実施例では、各アクセス遮断回路41’〜43’は、対応するマスタ11〜13を初期化するためのマスタリセット信号MRSTを出力する。   As is apparent from the comparison between FIG. 12 and FIG. 3 described above, in the second embodiment, each of the access blocking circuits 41 ′ to 43 ′ has a master reset signal MRST for initializing the corresponding masters 11 to 13. Is output.

各アクセス遮断回路41’〜43’から出力されたMRSTは、例えば、それぞれシステムリセット信号SRSTと所定の論理を取って対応するマスタ11〜13を制御するようになっている。   The MRST output from each of the access blocking circuits 41 'to 43' controls the corresponding masters 11 to 13 by taking predetermined logic with the system reset signal SRST, for example.

図13は、図12に示すシステムにおける第2実施例のアクセス遮断回路を示すブロック図である。図13と、前述した図9の比較から明らかなように、本第2実施例のアクセス遮断回路40’(41’〜43’)は、第1実施例のアクセス遮断回路40におけるシステムIF部401の代わりにリセット信号生成部407が設けられている。   FIG. 13 is a block diagram showing an access blocking circuit of the second embodiment in the system shown in FIG. As is clear from comparison between FIG. 13 and FIG. 9 described above, the access blocking circuit 40 ′ (41 ′ to 43 ′) of the second embodiment includes the system IF unit 401 in the access blocking circuit 40 of the first embodiment. Instead, a reset signal generation unit 407 is provided.

すなわち、第2実施例のアクセス遮断回路40’は、システムコントローラ5に対するアクセス遮断要求信号ABRSやアクセス遮断完了信号ABCSを生成する代わりに、マスタを初期化するためのリセット信号を生成するリセット信号生成部407を内蔵したものである。   That is, the access blocking circuit 40 ′ of the second embodiment generates a reset signal for generating a reset signal for initializing the master instead of generating an access blocking request signal ABRS and an access blocking completion signal ABCS for the system controller 5. The unit 407 is incorporated.

ステータス受信部404は、プロトコルモニタ部405およびパフォーマンスモニタ部406から要因情報P21,P21’を受け取り、アクセス遮断部402'に対する遮断通知P22およびプロトコル補正部403に対する補正情報P24を出力する。ここで、ステータス受信部404、プロトコルモニタ部405およびパフォーマンスモニタ部406は、マスタの異常を検出する異常検出部として機能する。   The status receiving unit 404 receives the factor information P21 and P21 'from the protocol monitoring unit 405 and the performance monitoring unit 406, and outputs the blocking notification P22 for the access blocking unit 402' and the correction information P24 for the protocol correction unit 403. Here, the status reception unit 404, the protocol monitor unit 405, and the performance monitor unit 406 function as an abnormality detection unit that detects an abnormality of the master.

リセット信号生成部407は、プロトコル補正部403からの信号P25を受け取り、自身のアクセス遮断回路40’に対応するマスタを初期化するためのマスタリセット信号MRSTを生成して出力する。なお、図13において、信号(処理,情報)P21,P21’およびP23〜P25は、図9におけるP11,P11’およびP14〜P16に対応する。   The reset signal generation unit 407 receives the signal P25 from the protocol correction unit 403, generates and outputs a master reset signal MRST for initializing the master corresponding to its own access blocking circuit 40 '. In FIG. 13, signals (processing, information) P21, P21 'and P23 to P25 correspond to P11, P11' and P14 to P16 in FIG.

図14および図15は、図13に示すアクセス遮断回路の状態遷移を説明するための図である。なお、図15は、図14におけるアクセス遮断処理を説明するためのものである。以下の説明では、主として、図10および図11を参照して説明した第1実施例と異なる処理に注目して説明を行う。   14 and 15 are diagrams for explaining the state transition of the access blocking circuit shown in FIG. FIG. 15 is for explaining the access blocking process in FIG. In the following description, the description will be given mainly focusing on processing different from the first embodiment described with reference to FIGS. 10 and 11.

図14と、図10の比較から明らかなように、図14に示す第2実施例は、図10に示す第1実施例におけるステップST34およびST35が省略されたものとなっている。すなわち、図13に示すアクセス遮断回路40’の処理が開始すると、ステップST31によるプロトコル要因(P21)およびステップST32による性能閾値逸脱(P21’)が、ステップST33において、ステータス受信部404により処理される。   As is clear from comparison between FIG. 14 and FIG. 10, the second embodiment shown in FIG. 14 is obtained by omitting steps ST34 and ST35 in the first embodiment shown in FIG. That is, when the processing of the access blocking circuit 40 ′ shown in FIG. 13 is started, the protocol factor (P21) in step ST31 and the performance threshold deviation (P21 ′) in step ST32 are processed by the status reception unit 404 in step ST33. .

ステップST33では、ステータス受信部404が遮断要因(P21,P21’)を受信し、アクセス遮断部402に対して遮断要求信号(P22)を送信し、ステップST37に進む。すなわち、ステップST37において、アクセス遮断部402は、図15に示すアクセス遮断処理を行う。   In step ST33, the status receiving unit 404 receives the blocking factor (P21, P21 '), transmits a blocking request signal (P22) to the access blocking unit 402, and proceeds to step ST37. That is, in step ST37, the access blocking unit 402 performs the access blocking process shown in FIG.

図15に示されるように、アクセス遮断処理が開始すると、アクセス遮断部402は、マスタのアクセスを遮断し、アクセス遮断完了信号(P23)を出力し、ステップST71に進む。   As shown in FIG. 15, when the access blocking process starts, the access blocking unit 402 blocks the access of the master, outputs an access blocking completion signal (P23), and proceeds to step ST71.

ここで、図15と、前述した図11の比較から明らかなように、図15におけるステップST71〜ST77(ST72’,ST77’)は、図11におけるステップST61〜ST67(ST62’,ST67’)に対応し、それらの説明は省略する。   Here, as apparent from the comparison between FIG. 15 and FIG. 11 described above, steps ST71 to ST77 (ST72 ′, ST77 ′) in FIG. 15 are replaced with steps ST61 to ST67 (ST62 ′, ST67 ′) in FIG. Correspondingly, their description is omitted.

図15に示されるように、ステップST72’によりP1〜P4に場合分けされ、それぞれステップST73〜ST77により対応する処理が行われた後、ステップST77’に進む。   As shown in FIG. 15, the process is divided into P1 to P4 by step ST72 ', and after corresponding processing is performed by steps ST73 to ST77, the process proceeds to step ST77'.

ステップST77’では、例えば、暴走したマスタ11を遮断して、スレーブ21,22(バス3)をアイドル状態に遷移させ、転送完了信号(P25)を出力して、ステップST78に進む。なお、ステップST77’において、未完了の転送があると判定されると、ステップST71に戻って、同様の処理を繰り返す。   In step ST77 ', for example, the runaway master 11 is shut off, the slaves 21 and 22 (bus 3) are shifted to the idle state, a transfer completion signal (P25) is output, and the process proceeds to step ST78. If it is determined in step ST77 'that there is an incomplete transfer, the process returns to step ST71 and the same processing is repeated.

ステップST78において、リセット信号生成部407は、マスタリセット信号MRSTをアサートし、ステップST79に進み、自身のアクセス遮断回路40’が設けられた対象となるマスタを初期化する。   In step ST78, the reset signal generation unit 407 asserts the master reset signal MRST, proceeds to step ST79, and initializes the master to be provided with its own access blocking circuit 40 '.

ここで、例えば、暴走したマスタ11は、対応するアクセス遮断回路41によりバス3およびスレーブ21,22から切り離されているため、他のマスタ12,13およびスレーブ21,23等に影響を与えることなく、そのまま初期化することができる。   Here, for example, the runaway master 11 is disconnected from the bus 3 and the slaves 21 and 22 by the corresponding access blocking circuit 41, so that the other masters 12 and 13 and the slaves 21 and 23 are not affected. It can be initialized as it is.

なお、暴走したマスタ11の初期化は、例えば、リセット信号生成部407からの信号P26により、アクセス遮断部402'に対して伝えられる。以上により、例えば、暴走したマスタ(11)のアクセス遮断および初期化が完了すると、アクセス遮断回路40’(41’)によるアクセス遮断が解除されることになる。   The initialization of the master 11 that has runaway is transmitted to the access blocking unit 402 ′ by, for example, a signal P26 from the reset signal generating unit 407. As described above, for example, when the access blocking and initialization of the runaway master (11) are completed, the access blocking by the access blocking circuit 40 '(41') is released.

以上、詳述したように、第1および第2実施例のアクセス遮断回路によれば、例えば、マスタ暴走時には、マスタと内部バス(スレーブ)間のアクセスを遮断し、復旧時には、暴走したマスタのみを初期化することでシステムを復旧させることが可能になる。そして、マスタのアクセス遮断時には、下流の内部バス(スレーブ)に対してプロトコル補正を行い、アイドル状態を保持する。   As described above in detail, according to the access blocking circuits of the first and second embodiments, for example, when the master runs away, the access between the master and the internal bus (slave) is blocked, and at the time of recovery, only the runaway master It becomes possible to restore the system by initializing the. When the master access is cut off, protocol correction is performed on the downstream internal bus (slave) and the idle state is maintained.

なお、前述したように、本実施例は、主として、AMBA(登録商標)のAXI(登録商標)プロトコルを例として説明したが、本実施例は、これに限定されるものではない。本実施例は、例えば、前述したAMBA(登録商標)のAXI(登録商標)、AHB(登録商標)およびAPB(登録商標)を始めとして、さらに、AMBA(登録商標)のACE(登録商標)(AXI(登録商標)Coherency Extensions)等に適用することができる。   As described above, the present embodiment has been described mainly using the AMXI (registered trademark) AXI (registered trademark) protocol as an example, but the present embodiment is not limited to this. The present embodiment includes, for example, the above-mentioned AMXI (registered trademark) AXI (registered trademark), AHB (registered trademark) and APB (registered trademark), as well as AMBA (registered trademark) ACE (registered trademark) ( AXI (registered trademark) Coherency Extensions).

また、本実施例は、OCP(Open Core Protocol)やPIF(Xtensa Processor Interface Protocol)等のAMBA(登録商標)以外のバス規格を用いた半導体集積回路に適用することができる。さらに、本実施例の適用は、半導体集積回路に限定されるものではなく、複数の半導体集積回路によるシステムやサーバ等に対して幅広く適用することができる。なお、プロトコル補正回路の実装方法や疑似転送方法については、各バスプロトコル(バス規格)に依存する。   Further, the present embodiment can be applied to a semiconductor integrated circuit using a bus standard other than AMBA (registered trademark) such as OCP (Open Core Protocol) or PIF (Xtensa Processor Interface Protocol). Furthermore, the application of the present embodiment is not limited to a semiconductor integrated circuit, but can be widely applied to a system, a server, and the like using a plurality of semiconductor integrated circuits. Note that the protocol correction circuit mounting method and pseudo-transfer method depend on each bus protocol (bus standard).

以上、実施形態を説明したが、ここに記載したすべての例や条件は、発明および技術に適用する発明の概念の理解を助ける目的で記載されたものであり、特に記載された例や条件は発明の範囲を制限することを意図するものではない。また、明細書のそのような記載は、発明の利点および欠点を示すものでもない。発明の実施形態を詳細に記載したが、各種の変更、置き換え、変形が発明の精神および範囲を逸脱することなく行えることが理解されるべきである。   Although the embodiment has been described above, all examples and conditions described herein are described for the purpose of helping understanding of the concept of the invention applied to the invention and the technology. It is not intended to limit the scope of the invention. Nor does such a description of the specification indicate an advantage or disadvantage of the invention. Although embodiments of the invention have been described in detail, it should be understood that various changes, substitutions and modifications can be made without departing from the spirit and scope of the invention.

以上の実施例を含む実施形態に関し、さらに、以下の付記を開示する。
(付記1)
マスタと、少なくとも1つのスレーブが接続されたバスの間に設けられたアクセス遮断回路であって、
前記マスタの異常を検出する異常検出部と、
前記異常検出部により前記マスタの異常が検出されたとき、異常が検出された前記マスタのアクセスを遮断するアクセス遮断部と、
アクセスが遮断された前記マスタによるプロトコルを補正して、前記スレーブをアイドル状態に保持するプロトコル補正部と、を有する、
ことを特徴とするアクセス遮断回路。
Regarding the embodiment including the above examples, the following supplementary notes are further disclosed.
(Appendix 1)
An access blocking circuit provided between a master and a bus to which at least one slave is connected,
An abnormality detection unit for detecting an abnormality of the master;
When an abnormality of the master is detected by the abnormality detection unit, an access blocking unit that blocks the access of the master from which an abnormality has been detected;
A protocol correction unit that corrects a protocol by the master whose access is blocked and holds the slave in an idle state,
An access blocking circuit characterized by that.

(付記2)
前記異常検出部は、
前記マスタおよび前記スレーブ間における前記バスの転送状態をモニタする第1モニタ部と、
前記マスタおよび前記スレーブ間における前記バスの転送性能をモニタする第2モニタ部と、
前記第1モニタ部および前記第2モニタ部の出力を受け取って、前記マスタおよび前記スレーブ間の異常を検出するステータス受信部と、を含む、
ことを特徴とする付記1に記載のアクセス遮断回路。
(Appendix 2)
The abnormality detection unit
A first monitoring unit for monitoring a transfer state of the bus between the master and the slave;
A second monitor unit for monitoring the transfer performance of the bus between the master and the slave;
A status receiving unit that receives outputs of the first monitor unit and the second monitor unit and detects an abnormality between the master and the slave;
The access cut-off circuit according to appendix 1, wherein:

(付記3)
さらに、
システムコントローラと信号の遣り取りを行い、前記アクセス遮断部を制御するシステムIF部を有し、
システムを復旧するとき、前記システムコントローラは、アクセスが遮断された前記マスタのみを初期化する、
ことを特徴とする付記2に記載のアクセス遮断回路。
(Appendix 3)
further,
A system IF unit for exchanging signals with the system controller and controlling the access blocking unit;
When recovering the system, the system controller initializes only the master whose access is blocked,
The access cut-off circuit according to Supplementary Note 2, wherein

(付記4)
前記システムIF部は、
前記システムコントローラに対して、アクセス遮断を要求するアクセス遮断要求信号、および、アクセス遮断が完了したことを示すアクセス遮断完了信号を出力し、
前記前記システムコントローラから、アクセス遮断の許可を示すアクセス遮断許可信号を受け取る、
ことを特徴とする付記3に記載のアクセス遮断回路。
(Appendix 4)
The system IF unit is
To the system controller, an access blocking request signal for requesting access blocking and an access blocking completion signal indicating that the access blocking has been completed are output,
Receiving an access blocking permission signal indicating permission of access blocking from the system controller;
The access cut-off circuit according to appendix 3, wherein

(付記5)
さらに、
前記アクセス遮断部を制御すると共に、システムを復旧するとき、アクセスが遮断された前記マスタのみを初期化するマスタリセット信号を生成するリセット信号生成部を有する、
ことを特徴とする付記3に記載のアクセス遮断回路。
(Appendix 5)
further,
Controlling the access blocking unit, and having a reset signal generating unit that generates a master reset signal that initializes only the master whose access is blocked when the system is restored,
The access cut-off circuit according to appendix 3, wherein

(付記6)
前記第1モニタ部は、
前記バスの規格に基づいて、前記マスタおよび前記スレーブ間のハンドシェイクが予め設定されたサイクル数だけ経過しても完了しないかどうかをモニタする、
ことを特徴とする付記2乃至付記5のいずれか1項に記載のアクセス遮断回路。
(Appendix 6)
The first monitor unit includes:
Monitoring whether the handshake between the master and the slave does not complete after a preset number of cycles based on the bus standard;
The access blocking circuit according to any one of Supplementary Note 2 to Supplementary Note 5, wherein:

(付記7)
前記第2モニタ部は、
前記マスタおよび前記スレーブ間のデータ転送レートが、前記バスの規格に基づく値よりも閾値以上異なっているかどうかをモニタする、
ことを特徴とする付記2乃至付記6のいずれか1項に記載のアクセス遮断回路。
(Appendix 7)
The second monitor unit includes
Monitoring whether the data transfer rate between the master and the slave differs by a threshold or more than a value based on the standard of the bus;
The access blocking circuit according to any one of appendix 2 to appendix 6, wherein

(付記8)
前記マスタは複数設けられ、それぞれの前記マスタおよび前記バス間には、付記1乃至付記7のいずれか1項に記載のアクセス遮断回路が設けられている、
ことを特徴とする半導体集積回路。
(Appendix 8)
A plurality of the masters are provided, and the access blocking circuit according to any one of appendix 1 to appendix 7 is provided between each master and the bus.
A semiconductor integrated circuit.

(付記9)
マスタと、少なくとも1つのスレーブが接続されたバスの間のアクセスを遮断するアクセス遮断方法であって、
前記マスタの異常を検出し、
異常が検出された前記マスタのアクセスを遮断し、
アクセスが遮断された前記マスタによるプロトコルを補正して、前記スレーブをアイドル状態に保持する、
ことを特徴とするアクセス遮断方法。
(Appendix 9)
An access blocking method for blocking access between a master and a bus to which at least one slave is connected,
Detecting an abnormality of the master,
Blocking access to the master where an abnormality is detected,
Correct the protocol by the master whose access is blocked, and keep the slave in an idle state;
An access blocking method characterized by the above.

(付記10)
前記マスタの異常検出は、
前記マスタおよび前記スレーブ間における前記バスの転送状態をモニタし、
前記マスタおよび前記スレーブ間における前記バスの転送性能をモニタし、
前記バスの転送状態のモニタ結果、および、前記バスの転送性能のモニタ結果に基づいて、前記マスタの異常を検出する、
ことを特徴とする付記9に記載のアクセス遮断方法。
(Appendix 10)
The abnormality detection of the master is
Monitor the transfer state of the bus between the master and the slave,
Monitor the transfer performance of the bus between the master and the slave,
Detecting an abnormality of the master based on the monitoring result of the transfer state of the bus and the monitoring result of the transfer performance of the bus;
The access blocking method according to appendix 9, characterized in that:

(付記11)
さらに、
システムコントローラと信号の遣り取りを行って、前記マスタのアクセス遮断を制御し、
システムを復旧するとき、前記システムコントローラにより、アクセスが遮断された前記マスタのみを初期化する、
ことを特徴とする付記10に記載のアクセス遮断方法。
(Appendix 11)
further,
Interact with the system controller to control access blocking of the master,
When the system is restored, only the master whose access is blocked by the system controller is initialized.
The access blocking method according to Supplementary Note 10, wherein

(付記12)
前記マスタのアクセス遮断の制御は、
前記システムコントローラに対して、アクセス遮断を要求するアクセス遮断要求信号、および、アクセス遮断が完了したことを示すアクセス遮断完了信号を出力し、
前記前記システムコントローラから、アクセス遮断の許可を示すアクセス遮断許可信号を受け取って行う、
ことを特徴とする付記11に記載のアクセス遮断方法。
(Appendix 12)
Control of access blocking of the master is as follows:
To the system controller, an access blocking request signal for requesting access blocking and an access blocking completion signal indicating that the access blocking has been completed are output,
An access blocking permission signal indicating permission of access blocking is received from the system controller.
The access blocking method according to Supplementary Note 11, wherein the access is blocked.

(付記13)
さらに、
前記マスタのアクセス遮断を制御し、
システムを復旧するとき、アクセスが遮断された前記マスタのみを初期化するマスタリセット信号を生成する、
ことを特徴とする付記10に記載のアクセス遮断方法。
(Appendix 13)
further,
Controlling access blocking of the master,
When restoring the system, a master reset signal is generated that initializes only the master whose access has been blocked.
The access blocking method according to Supplementary Note 10, wherein

(付記14)
前記バスの転送状態のモニタは、
前記バスの規格に基づいて、前記マスタおよび前記スレーブ間のハンドシェイクが予め設定されたサイクル数だけ経過しても完了しないかどうかをモニタする、
ことを特徴とする付記10乃至付記13のいずれか1項に記載のアクセス遮断方法。
(Appendix 14)
The bus transfer status monitor is:
Monitoring whether the handshake between the master and the slave does not complete after a preset number of cycles based on the bus standard;
14. The access blocking method according to any one of supplementary note 10 to supplementary note 13, characterized by:

(付記15)
前記バスの転送性能のモニタは、
前記マスタおよび前記スレーブ間のデータ転送レートが、前記バスの規格に基づく値よりも閾値以上異なっているかどうかをモニタする、
ことを特徴とする付記10乃至付記14のいずれか1項に記載のアクセス遮断方法。
(Appendix 15)
The bus transfer performance monitor is:
Monitoring whether the data transfer rate between the master and the slave differs by a threshold or more than a value based on the standard of the bus;
The access blocking method according to any one of Supplementary Note 10 to Supplementary Note 14, wherein:

1,100 システムLSI(半導体集積回路)
3,103 内部バス(バス)
5 システムコントローラ
11〜13,111〜113 マスタ
21,22,121,122 スレーブ
40,41〜43,40’,41’〜43’ アクセス遮断回路
200 対向機器
401 システムIF部
402,402' アクセス遮断部
403 プロトコル補正部
404 ステータス受信部
405 プロトコルモニタ部
406 パフォーマンスモニタ部
407 リセット信号生成部
1,100 system LSI (semiconductor integrated circuit)
3,103 Internal bus (bus)
5 System controller 11-13, 111-113 Master 21, 22, 121, 122 Slave 40, 41-43, 40 ', 41'-43' Access cut-off circuit
200 Counter device
401 System IF
402, 402 'Access blocker
403 Protocol correction unit
404 status receiver
405 Protocol monitor
406 Performance monitor
407 Reset signal generator

Claims (7)

マスタと、少なくとも1つのスレーブが接続されたバスの間に設けられたアクセス遮断回路であって、
前記マスタの異常を検出する異常検出部と、
前記異常検出部により前記マスタの異常が検出されたとき、異常が検出された前記マスタのアクセスを遮断するアクセス遮断部と、
アクセスが遮断された前記マスタによるプロトコルを補正して、前記スレーブをアイドル状態に保持するプロトコル補正部と、を有し、
前記異常検出部は、
前記マスタおよび前記スレーブ間のデータ転送レートが、前記バスの規格に基づく値よりも閾値以上異なっているかどうかをモニタする第1モニタ部と、
前記第1モニタ部の出力を受け取って、前記マスタおよび前記スレーブ間の異常を検出するステータス受信部と、を含む、
ことを特徴とするアクセス遮断回路。
An access blocking circuit provided between a master and a bus to which at least one slave is connected,
An abnormality detection unit for detecting an abnormality of the master;
When an abnormality of the master is detected by the abnormality detection unit, an access blocking unit that blocks the access of the master from which an abnormality has been detected;
A protocol correction unit that corrects a protocol by the master whose access is blocked and holds the slave in an idle state,
The abnormality detection unit
A first monitor that monitors whether a data transfer rate between the master and the slave differs by a threshold or more from a value based on the standard of the bus;
A status receiving unit that receives an output of the first monitor unit and detects an abnormality between the master and the slave;
An access blocking circuit characterized by that.
前記異常検出部は、さらに、
前記マスタおよび前記スレーブ間における前記バスの転送状態をモニタする第2モニタ部を含み、
前記ステータス受信部は、前記第1モニタ部および前記2モニタ部の出力を受け取って、前記マスタおよび前記スレーブ間の異常を検出する、
ことを特徴とする請求項1に記載のアクセス遮断回路。
The abnormality detection unit further includes:
A second monitor unit for monitoring a transfer state of the bus between the master and the slave;
The status receiving unit receives outputs of the first monitor unit and the second monitor unit, and detects an abnormality between the master and the slave;
The access blocking circuit according to claim 1, wherein:
さらに、
システムコントローラと信号の遣り取りを行い、前記アクセス遮断部を制御するシステムIF部を有し、
システムを復旧するとき、前記システムコントローラは、アクセスが遮断された前記マスタのみを初期化する、
ことを特徴とする請求項1または請求項2に記載のアクセス遮断回路。
further,
A system IF unit for exchanging signals with the system controller and controlling the access blocking unit;
When recovering the system, the system controller initializes only the master whose access is blocked,
The access blocking circuit according to claim 1 or 2, characterized in that
さらに、
前記アクセス遮断部を制御すると共に、システムを復旧するとき、アクセスが遮断された前記マスタのみを初期化するマスタリセット信号を生成するリセット信号生成部を有する、
ことを特徴とする請求項3に記載のアクセス遮断回路。
further,
Controlling the access blocking unit, and having a reset signal generating unit that generates a master reset signal that initializes only the master whose access is blocked when the system is restored,
The access blocking circuit according to claim 3, wherein:
前記マスタは複数設けられ、それぞれの前記マスタおよび前記バス間には、請求項1乃至請求項4のいずれか1項に記載のアクセス遮断回路が設けられている、
ことを特徴とする半導体集積回路。
A plurality of the masters are provided, and the access blocking circuit according to any one of claims 1 to 4 is provided between the masters and the buses.
A semiconductor integrated circuit.
マスタと、少なくとも1つのスレーブが接続されたバスの間のアクセスを遮断するアクセス遮断方法であって、
前記マスタと、少なくとも1つの前記スレーブが接続されたバスの間に設けられたアクセス遮断回路が、
前記マスタの異常を検出し、
異常が検出された前記マスタのアクセスを遮断し、
アクセスが遮断された前記マスタによるプロトコルを補正して、前記スレーブをアイドル状態に保持し、
前記マスタの異常検出は、前記アクセス遮断回路が、
前記マスタおよび前記スレーブ間のデータ転送レートが、前記バスの規格に基づく値よりも閾値以上異なっているかどうかをモニタし、
前記マスタおよび前記スレーブ間のデータ転送レートのモニタ結果に基づいて、前記マスタの異常を検出する、
ことを特徴とするアクセス遮断方法。
An access blocking method for blocking access between a master and a bus to which at least one slave is connected,
An access blocking circuit provided between the master and a bus to which at least one slave is connected;
Detecting an abnormality of the master,
Blocking access to the master where an abnormality is detected,
Correct the protocol by the master that has been blocked from access, and keep the slave in an idle state,
For detecting the abnormality of the master, the access blocking circuit
Monitoring whether the data transfer rate between the master and the slave differs by more than a threshold value from a value based on the standard of the bus;
Detecting an abnormality of the master based on a monitoring result of a data transfer rate between the master and the slave;
An access blocking method characterized by the above.
前記マスタの異常検出は、前記アクセス遮断回路が、さらに、
前記マスタおよび前記スレーブ間における前記バスの転送状態をモニタし、
前記バスの転送状態のモニタ結果、および、前記マスタおよび前記スレーブ間のデータ転送レートのモニタ結果に基づいて、前記マスタの異常を検出する、
ことを特徴とする請求項6に記載のアクセス遮断方法。
The master abnormality detection is performed by the access blocking circuit,
Monitor the transfer state of the bus between the master and the slave,
Detecting an abnormality of the master based on the monitoring result of the transfer state of the bus and the monitoring result of the data transfer rate between the master and the slave;
The access blocking method according to claim 6.
JP2015086819A 2015-04-21 2015-04-21 Access blocking circuit, semiconductor integrated circuit, and access blocking method Active JP6586765B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015086819A JP6586765B2 (en) 2015-04-21 2015-04-21 Access blocking circuit, semiconductor integrated circuit, and access blocking method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015086819A JP6586765B2 (en) 2015-04-21 2015-04-21 Access blocking circuit, semiconductor integrated circuit, and access blocking method

Publications (2)

Publication Number Publication Date
JP2016206891A JP2016206891A (en) 2016-12-08
JP6586765B2 true JP6586765B2 (en) 2019-10-09

Family

ID=57489957

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015086819A Active JP6586765B2 (en) 2015-04-21 2015-04-21 Access blocking circuit, semiconductor integrated circuit, and access blocking method

Country Status (1)

Country Link
JP (1) JP6586765B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6802034B2 (en) 2016-10-21 2020-12-16 株式会社メテク Infusion system
JP6992295B2 (en) * 2017-07-11 2022-01-13 富士フイルムビジネスイノベーション株式会社 Electronic device
TWI698769B (en) * 2018-04-18 2020-07-11 新唐科技股份有限公司 Secure access to peripheral devices over a bus
CN113918382B (en) * 2021-09-29 2025-12-19 昆仑芯(北京)科技有限公司 Method, apparatus, device and readable storage medium for resetting
CN117499127A (en) * 2023-11-14 2024-02-02 北京地平线信息技术有限公司 Methods, devices, equipment and media for cross-domain access
CN119025182A (en) * 2024-08-16 2024-11-26 Xg科技私人有限公司 Method, device and apparatus for restarting functional components on a system on chip
CN118796729B (en) * 2024-09-14 2025-03-28 芯科集成电路(苏州)有限公司 Access device, integrated circuit, controller and carrier

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005107683A (en) * 2003-09-29 2005-04-21 Sharp Corp COMMUNICATION CONTROLLER, COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND COMMUNICATION METHOD
JP2008250632A (en) * 2007-03-30 2008-10-16 Matsushita Electric Ind Co Ltd Data processing system
JP2010140361A (en) * 2008-12-12 2010-06-24 Fujitsu Microelectronics Ltd Computer system and abnormality detection circuit
JP6191604B2 (en) * 2012-07-04 2017-09-06 富士通株式会社 Information processing apparatus, access control program, and access control method

Also Published As

Publication number Publication date
JP2016206891A (en) 2016-12-08

Similar Documents

Publication Publication Date Title
JP6586765B2 (en) Access blocking circuit, semiconductor integrated circuit, and access blocking method
US8700835B2 (en) Computer system and abnormality detection circuit
US8018784B2 (en) Semiconductor device and data processor
JP5459807B2 (en) Debug signaling in multiprocessor data processing systems
JP3807250B2 (en) Cluster system, computer and program
US7860940B2 (en) System and method for bus transmission cancellation
JP6098778B2 (en) Redundant system, redundancy method, redundancy system availability improving method, and program
JP2008090375A (en) Interrupt control system and storage control system using the same
JP6819684B2 (en) Bus control circuit, semiconductor integrated circuit, circuit board, information processing device and bus control method
JP2006091972A (en) Bus system and semiconductor integrated circuit
JP2001134461A (en) Reset control system and method
JP4168281B2 (en) Parallel processing system, interconnection network, node and network control program
JP4218538B2 (en) Computer system, bus controller, and bus fault processing method used therefor
CN112416053B (en) Synchronous signal generating circuit, chip and synchronous method and device of multi-core architecture
JP3891994B2 (en) System and method for draining an in-order queue
JP2004030161A (en) Interrupt control method in computer system, computer system, semiconductor integrated circuit, and program
US20020174282A1 (en) Multiprocessor system
JP7476640B2 (en) Information processing device, interface control circuit, and method for controlling information processing device
TW201916644A (en) Bus system
JP2003309564A (en) Microcomputer system and transceiver used therein
JP2007108993A (en) Semiconductor integrated circuit
JP2017107441A (en) Information processing device, and control device and control method therefor
JP2007052685A (en) Microcontroller
CN118192759B (en) Clock synchronization method, device, equipment and storage medium
KR100532608B1 (en) a bus system having serial/parallel circuitry

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180308

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20181214

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190115

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190222

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190716

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190802

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: 20190813

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190826

R150 Certificate of patent or registration of utility model

Ref document number: 6586765

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150