JPH07160656A - External interruption control method - Google Patents

External interruption control method

Info

Publication number
JPH07160656A
JPH07160656A JP5311700A JP31170093A JPH07160656A JP H07160656 A JPH07160656 A JP H07160656A JP 5311700 A JP5311700 A JP 5311700A JP 31170093 A JP31170093 A JP 31170093A JP H07160656 A JPH07160656 A JP H07160656A
Authority
JP
Japan
Prior art keywords
interrupt
cpu
flag
interruption
external
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5311700A
Other languages
Japanese (ja)
Inventor
Tomoshi Matsuda
知志 松田
Shuji Miki
修次 三木
Eiji Ishikawa
英治 石川
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP5311700A priority Critical patent/JPH07160656A/en
Publication of JPH07160656A publication Critical patent/JPH07160656A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To completely cope with the requests of various interruption processing functions to be required without drastically expanding functions in a communication close coupling multiprocessor system. CONSTITUTION:This method is provided with all or a part of a first interruption informing (control) function for selecting one optional CPU 1 as an interruption destination, a second interruption informing (control) function for selecting one specific CPU 1 specified beforehand as the interruption destination, a third interruption informing (control) function for selecting one specific CPU 1 specified by information accompanying an interruption request as the interruption destination, a forth interruption informing (control) function for selecting all the CPUs 1 excluding the specific CPU 1 specified by the information accompanying the interruption request as the interruption destinations and a fifth interruption informing (control) function for selecting all the CPUs 1 as the interruption destinations. Then, one of them is allocated for each interruption vector and executed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、汎用マイクロプロセッ
サを演算核部として用いる通信処理用密結合マルチプロ
セッサシステムにおいて、必要となる多様な割込み処理
機能要求を完全に対応することが可能な外部割込み制御
方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an external interrupt capable of completely responding to various required interrupt processing function requests in a tightly coupled multiprocessor system for communication processing using a general-purpose microprocessor as an arithmetic core. It relates to a control method.

【0002】[0002]

【従来の技術】従来より、通信処理装置用プロセッサに
は高信頼性および高実時間処理性が求められてきたた
め、独自のアーキテクチャに基づいた専用機が用いられ
てきた。しかし、近年は、通信サービスの普及や拡大に
伴って通信処理装置の経済化の要求が強くなり、通信処
理装置用プロセッサについてもスケールメリットが期待
できる汎用機を適用することが望まれている。一方、通
信サービスの高度化に伴ってプロセッサに対する処理能
力の向上が望まれているが、単一の汎用マイクロプロセ
ッサによるシングルプロセッサ構成では、それらの要求
に応えることは困難である。従来の通信処理用プロセッ
サでは、比較的小さなオーバヘッドで複数のプロセッサ
に負荷分散が可能な疎結合マルチプロセッサ(LCM
P)構成が主として用いられてきたが、LCMP専用の
複雑なソフトウェアによる制御が必要になるという問題
があった。これに対して、密結合マルチプロセッサ(T
CMP)構成のものは、主記憶を複数のCPUで共用す
るので、アクセス競合オーバヘッドにより総合性能がC
PU台数分よりも低下するという問題があり、通信処理
用としてはあまり用いられなかった。
2. Description of the Related Art Conventionally, since a processor for a communication processing device has been required to have high reliability and high real-time processing property, a dedicated machine based on an original architecture has been used. However, in recent years, with the spread and expansion of communication services, there has been a strong demand for economicization of communication processing devices, and it has been desired to apply general-purpose machines, which are expected to have economies of scale, to processors for communication processing devices. On the other hand, it is desired to improve the processing capability of the processor with the advancement of communication services, but it is difficult to meet these demands with a single processor configuration using a single general-purpose microprocessor. In a conventional communication processing processor, a loosely coupled multiprocessor (LCM) capable of distributing loads to a plurality of processors with a relatively small overhead.
Although the P) configuration has been mainly used, there is a problem that control by complicated software dedicated to LCMP is required. On the other hand, a tightly coupled multiprocessor (T
In the CMP) configuration, the main memory is shared by a plurality of CPUs, so the overall performance is C due to the access contention overhead.
There is a problem that the number of PUs is lower than the number of PUs, and it is not often used for communication processing.

【0003】しかし、近年、実装技術の進歩により、1
ボードに複数の汎用マイクロプロセッサを搭載して高速
な内部バスを使用することにより、オーバヘッドの低減
が可能となり、処理能力の観点で実用的になったため、
ソフトウェア生産性の向上という点から通信処理用プロ
セッサへ適用することが有望かつ現実的となってきた。
ところで、通信処理用プロセッサにおいては、極めて多
数の入出力デバイス等の制御が必要となるが、汎用マイ
クロプロセッサに内蔵される割込み制御機能だけでは不
十分であるため、独立の外部割込み制御部を付加しなけ
ればならなくなる。複数の汎用マイクロプロセッサによ
るTCMP構成を実現するためには、外部割込み制御部
においてもTCMPに対応する割込み制御機能を備える
必要がある。また、通信処理用として高信頼性、実時間
性を実現するためには、種々の機能が汎用マイクロプロ
セッサ以外の周辺回路に設けられるが、外部割込みの機
能はそれらのシステム制御機能との間のソフトウェアイ
ンタフェースとしての役目を果している。従って、外部
割込み制御部においては、システム制御という点からの
割込み制御機能も備えなければならない。
However, due to the progress of packaging technology in recent years,
By mounting multiple general-purpose microprocessors on the board and using a high-speed internal bus, it is possible to reduce overhead and become practical in terms of processing capacity.
From the viewpoint of improving software productivity, application to communication processors has become promising and practical.
By the way, in the processor for communication processing, it is necessary to control an extremely large number of input / output devices, but since the interrupt control function built into the general-purpose microprocessor is not sufficient, an independent external interrupt control unit is added. I have to do it. In order to realize a TCMP configuration using a plurality of general-purpose microprocessors, the external interrupt control unit must also have an interrupt control function compatible with TCMP. Further, in order to realize high reliability and real-time property for communication processing, various functions are provided in peripheral circuits other than the general-purpose microprocessor, but the function of external interrupt is between those system control functions. It serves as a software interface. Therefore, the external interrupt control unit must also have an interrupt control function from the viewpoint of system control.

【0004】最初に、従来のシングルプロセッサに対応
する外部割込み制御部について述べる。外部割込みの発
生源、つまりプロセッサ内外の種々のシステム資源は、
バスを介して、あるいは個々の信号線を介して、外部割
込み制御部に対してCPUへの割込み発生を要求してく
る。ここでは、これを明確にするために『割込み発生要
求』と呼ぶことにする。割込み発生要求は、外部割込み
制御部で個別のベクタ番号を割り当てられて管理され
る。以下、外部割込み制御部における割込み制御処理動
作を詳述する。外部割込み制御部は、ベクタ毎に割込み
表示(IR)フラグと割込みマスク(IM)フラグを備
えている。いずれかのベクタで割込み発生要求が生じた
場合、当該ベクタに対応するIRフラグがリセットされ
ていると、CPUに対して割込み信号線を介して割込み
を要求すると同時に、当該ベクタに対応するIRフラグ
をセットする。同じ場合に、IMフラグがリセットされ
ていると、CPUに対する割込み信号は抑止して、IR
フラグのセットのみを行う。ここでは、説明を簡単にす
るため、IMフラグの状態による動作の相違を個々に区
別して述べずに、一括して割込み要求と呼ぶことにす
る。IRフラグセット中は、当該ベクタに関する次の割
込み発生要求を受け付けず、当該ベクタからのCPUへ
の次の割込み要求も抑止する。IRフラグは、ソフトウ
ェアからのリセット要求でリセットする。IRフラグの
リセット後は、当該ベクタに関して割込み発生要求の受
け付けと、当該ベクタからのCPUへの割込み要求とが
可能である。IMフラグのセットおよびリセットは、ソ
フトウェアからの要求により行われる。
First, an external interrupt controller corresponding to the conventional single processor will be described. The source of external interrupts, the various system resources inside and outside the processor,
The external interrupt control unit is requested to generate an interrupt to the CPU via the bus or via individual signal lines. Here, in order to clarify this, it is referred to as an "interrupt request". The interrupt generation request is managed by the external interrupt control unit by assigning an individual vector number. Hereinafter, the interrupt control processing operation in the external interrupt control unit will be described in detail. The external interrupt control unit has an interrupt display (IR) flag and an interrupt mask (IM) flag for each vector. When an interrupt request is generated in any of the vectors and the IR flag corresponding to the vector is reset, an interrupt request is sent to the CPU via the interrupt signal line, and at the same time the IR flag corresponding to the vector is requested. Set. In the same case, if the IM flag is reset, the interrupt signal to the CPU is suppressed and IR
Only set flags. Here, for simplification of description, the difference in the operation depending on the state of the IM flag will not be individually described and will be collectively referred to as an interrupt request. While the IR flag is set, the next interrupt request for the vector is not accepted, and the next interrupt request to the CPU from the vector is also suppressed. The IR flag is reset by a reset request from software. After resetting the IR flag, it is possible to accept an interrupt generation request for the vector and request an interrupt from the vector to the CPU. The IM flag is set and reset at the request of software.

【0005】ソフトウェア(割込み処理プログラム)
は、ベクタ方式とポーリング方式の2つの割込み制御方
式の選択に関係して、IMフラグを用いる。すなわち、
ベクタ方式の場合には、当該ベクタに対応するIMフラ
グをリセットしておく。外部割込み制御部から割込み要
求がCPUに通知されると、CPUハードウェアにより
割込み処理プログラムに制御が渡される。割込み処理プ
ログラムは割込み受付け処理を終了すると、IRフラグ
をリセットし、次の割込み受付けを可能にする。ポーリ
ング方式の場合には、割込み処理プログラムは予めIM
フラグをセットしておく。割込み処理プログラムは、随
時IRフラグを読み出して、IRフラグがセットされて
いる場合には割込みを検出する。割込みを受け付ける
と、IRフラグをリセットして次の割込み受付けを可能
にする。次に、従来のTCMPにおける割込み制御方法
について述べる。TCMPにおける外部割込み制御方法
としては、固定の1台のCPUに割込みを集中させ、割
込み処理プログラムによる割込み処理を当該CPUで集
中的に処理させる集中方式、データチャネル部や入出
力コントローラ部毎に特定の割込み通知先CPUを予め
設定しておく固定分散方式、あるいは入出力命令等を
発行したCPUの識別情報をデータチャネル部や入出力
コントローラ部等で記憶しておき、当該入出力命令等の
発行元CPUに割込みを行うことにより、割込み処理負
荷の分散を図る起動元通知方式のいずれか行われてき
た。これらの方式を、外部割込み制御部において
実現する方法を以下に述べる。
Software (interrupt processing program)
Uses the IM flag in connection with the selection of two interrupt control methods, the vector method and the polling method. That is,
In the case of the vector system, the IM flag corresponding to the vector is reset. When the external interrupt control unit notifies the CPU of the interrupt request, the control is transferred to the interrupt processing program by the CPU hardware. When the interrupt processing program finishes the interrupt acceptance processing, it resets the IR flag and enables the next interrupt acceptance. In the case of the polling method, the interrupt processing program is IM
Set the flag. The interrupt processing program reads the IR flag at any time and detects an interrupt when the IR flag is set. When an interrupt is accepted, the IR flag is reset and the next interrupt can be accepted. Next, an interrupt control method in the conventional TCMP will be described. As the external interrupt control method in TCMP, a centralized method in which interrupts are concentrated on a fixed CPU and the interrupt processing by the interrupt processing program is centrally processed by the CPU, is specified for each data channel unit and input / output controller unit. Of the CPU to which the interrupt notification destination is set in advance, or the identification information of the CPU that issued the input / output command is stored in the data channel unit or the input / output controller unit, and the input / output command is issued. One of the activation source notification methods has been performed to distribute the interrupt processing load by interrupting the original CPU. A method for realizing these methods in the external interrupt control unit will be described below.

【0006】図3は、従来の割込み制御方式のうちの集
中方式による密結合マルチプロセッサシステムの構成例
を示す図、図4は同じく固定分散方式による密結合マル
チプロセッサシステムの構成例を示す図、図5は同じく
起動元通知方式による密結合マルチプロセッサシステム
の構成例を示す図であり、図6は図3における集中方式
による外部割込み制御部の割込み通知動作の概略動作フ
ローチャート、図7は図4、図5における固定分散方式
および起動元通知方式による外部割込み制御部の動作フ
ローチャートである。先ず、集中方式では、図3に示
すように、外部割込み制御部4でCPU1への割込み要
求信号線11を一組だけ備え、特定のCPU1との間だ
けでシングルプロセッサと同等の動作を行うことにより
実現している。なお、10は密結合マルチプロセッサシ
ステム、2は主記憶部、6はCPU共通の外部資源(I
O等)、5はシステムバス、3はメモリバス、13は個
別線割込み信号、12はバスコマンド割込み信号、14
はソフトウェア制御割込み信号である。この場合には、
図6に示すように、割込み発生要求受付けがあると(ス
テップ601)、ベクタ割り付けを行い(ステップ60
2)、特定のCPUへの割込みを行う(ステップ60
3)。
FIG. 3 is a diagram showing a configuration example of a tightly coupled multiprocessor system according to a centralized system among conventional interrupt control systems, and FIG. 4 is a diagram showing a configuration example of a tightly coupled multiprocessor system according to the fixed distribution system, FIG. 5 is a diagram showing an example of the configuration of a tightly coupled multiprocessor system according to the activation source notification method, FIG. 6 is a schematic operation flowchart of the interrupt notification operation of the external interrupt control unit according to the centralized method in FIG. 3, and FIG. 6 is an operation flowchart of the external interrupt control unit according to the fixed distribution method and the activation source notification method in FIG. First, in the centralized system, as shown in FIG. 3, the external interrupt control unit 4 is provided with only one set of interrupt request signal lines 11 to the CPU 1, and the same operation as a single processor is performed only with a specific CPU 1. It is realized by. In addition, 10 is a tightly coupled multiprocessor system, 2 is a main memory unit, 6 is an external resource (I
O, etc.), 5 is a system bus, 3 is a memory bus, 13 is an individual line interrupt signal, 12 is a bus command interrupt signal, and 14 is a bus command interrupt signal.
Is a software controlled interrupt signal. In this case,
As shown in FIG. 6, when an interrupt request is received (step 601), vector allocation is performed (step 60).
2) Interrupt a specific CPU (step 60)
3).

【0007】次に、固定分散方式では、図4に示すよ
うに、外部割込み制御部4からは各CPU1への割込み
信号線11を個別に設けている。さらに、データチャネ
ル部や入出力コントローラ部に割込み通知先CPUを記
憶するレジスタ等を設けて、割込み発生要求時に付属情
報として外部割込み制御部4に通知し、外部割込み制御
部4で当該情報に基づいて割込み先の選択を行うことに
より実現している。この場合には、図7に示すように、
割込み発生要求を受付けると(ステップ701)、ベク
タ割り付けおよびCPU指定情報を抽出し(ステップ7
02)、指定のCPUへ割込みを行う(ステップ70
3)。次に、起動元通知方式では、図5に示すよう
に、固定分散方式と同じであって、各CPU1への個別
の割込み信号線11と、データチャネル部や入出力コン
トローラ部に割込み通知先CPUを記憶するレジスタ等
を設ける。そして、CPU1から発行される入出力命令
等に付随する割込み通知先CPU情報を記憶し、割込み
発生要求に付随して当該情報を外部割込み制御部4に通
知し、外部割込み制御部4は当該情報に基づいて割込み
先を選択することにより実現している。この場合にも、
図7に示すように、割込み発生要求を受け付けると(ス
テップ701)、ベクタ割り付けおよびCPU指定情報
を抽出し(ステップ702)、指定のCPUに割込みを
行う(ステップ703)。なお、従来文献としては、例
えば『マルチプロセッサと並列処理』PhilipH Ensl
ow.Jr監修、村岡洋一郎訳、昭和51年9月5月近代科学社
発行の第3章中の『マルチ・プロセッサ・オペレーティン
グシステムの構成』の節(pp85〜89)に記載されている。
また、例えば、特公平5-33414号公報の割込み処理方式
における背景と問題点に記載されている。
Next, in the fixed distribution system, as shown in FIG. 4, an interrupt signal line 11 from the external interrupt control unit 4 to each CPU 1 is individually provided. Furthermore, the data channel unit and the input / output controller unit are provided with a register for storing the interrupt notification destination CPU, and when the interrupt request is issued, the external interrupt control unit 4 is notified as attached information, and the external interrupt control unit 4 is based on the information. This is achieved by selecting the interrupt destination by In this case, as shown in FIG.
When the interrupt request is accepted (step 701), vector allocation and CPU designation information are extracted (step 7).
02), interrupt the designated CPU (step 70)
3). Next, as shown in FIG. 5, the activation source notification method is the same as the fixed distribution method, and the individual interrupt signal line 11 to each CPU 1 and the interrupt notification destination CPU to the data channel unit and the input / output controller unit A register or the like for storing is provided. Then, it stores the interrupt notification destination CPU information accompanying the input / output instruction issued from the CPU 1, notifies the external interrupt control unit 4 of the information in association with the interrupt generation request, and the external interrupt control unit 4 notifies the information. This is realized by selecting the interrupt destination based on Also in this case,
As shown in FIG. 7, when an interrupt request is received (step 701), vector allocation and CPU designation information are extracted (step 702), and the designated CPU is interrupted (step 703). Note that as a conventional document, for example, "Multiprocessor and parallel processing" Philip H Ensl
ow. Jr supervised, translated by Yoichiro Muraoka, and described in the section "Configuration of Multi-processor Operating System" (pp85-89) in Chapter 3 published by Modern Science Co., Ltd. in September, 1976.
Further, for example, it is described in the background and problems in the interrupt processing method of Japanese Patent Publication No. 5-33414.

【0008】[0008]

【発明が解決しようとする課題】従来の外部割込み制御
部でTCMP対応に行う割込み制御機能については、次
のような問題がある。先ず、集中方式では、通信処理
のように割込み処理の負荷が大きいアプリケーションに
おいては、特定の1台のCPUがTCMP全体の処理能
力上のボトルネックとなる可能性があるので、本発明の
利用分野(通信制御処理)には適さない。次に、固定
分散方式では、予めデータチャネル部や入出力コントロ
ーラ部の負荷を想定して各CPUに割り当てを行う必要
があるので、予想と異なる実負荷状況であれば、有効な
負荷分散が行えないという問題がある。プロセッサが実
際に運用される時には、一般に負荷は動的に変化するも
のであるため、固定分散方式では十分な負荷分散が図れ
ないと考えられる。次に、起動元通知方式では、動的
な割込み処理負荷の分散を図る1つの解決案であるが、
CPUに関しては入出力命令にCPU識別情報を付加す
る機能や、入出力命令を認識するデータチャネル部や入
出力コントローラ部に関してはCPUを指定して割込み
を発生する機能等が必要となる。すなわち、外部割込み
制御部のみならず、システム全体にわたる機能の拡張が
必要であるという問題がある。これが、本発明で解決し
ようとする第1の課題となる。
The interrupt control function performed by the conventional external interrupt control unit for TCMP has the following problems. First, in the centralized system, in an application such as a communication process in which the load of interrupt processing is large, one specific CPU may become a bottleneck in the processing capacity of the entire TCMP. Not suitable for (communication control processing). Next, in the fixed distribution method, since it is necessary to assume the load of the data channel unit and the input / output controller unit and allocate them to each CPU in advance, if the actual load situation is different from the expected one, effective load distribution can be performed. There is a problem that there is no. Since the load generally changes dynamically when the processor is actually operated, it is considered that the fixed distribution method cannot achieve sufficient load distribution. Next, the activation source notification method is one solution for dynamically distributing the interrupt processing load.
Regarding the CPU, it is necessary to have a function of adding CPU identification information to the input / output instruction, a function of specifying the CPU and generating an interrupt for the data channel section and the input / output controller section for recognizing the input / output instruction. That is, there is a problem that not only the external interrupt control unit but also the functions of the entire system need to be expanded. This is the first problem to be solved by the present invention.

【0009】次に、システム制御用割込みに関して考え
る。システム制御用割込みは、各種の周辺回路における
故障検出、ファームウェアの起動および終了、CPU間
通信、実時間制御のための周期処理タイマ等の要因で用
いられる。故障検出割込みは、検出元資源が主記憶部等
のようにCPUに共通のものであるときには、原則的に
任意の1台のCPUで割込み処理を行えばよいが、監視
タイマ等のようにCPU個別に使用されるものであると
きには、対応するCPUで個別に行われる必要がある。
また、ファームウェアには、CPU共通資源を操作対象
にするものと、CPU個別資源を操作対象とするものと
があり、前者については任意のCPUで走行可能である
が、後者については指定されるCPUで走行する必要が
ある。また、CPU間通信は、異なるCPUで並列に走
行しているソフトウェア間での同期機能を与えるもの
で、1対1と1対多の2種類の通信形態がある。また、
周期処理タイマは、周期的に実行するソフトウェアの起
動契機を一定の周期で与えるためのものであり、実時間
性の向上のために全CPUで負荷分散を行うためには、
周期処理タイマからの割込みを全CPUに同時に発生す
る必要がある。このように、TCMPにおけるシステム
制御用としては、従来のように1つのCPUにだけ割込
み通知をかけるだけではなく、多様な割込み通知形態が
必要である。この形態は、従来の外部割込み制御部では
対処することができない。これが、本発明で解決しよう
とする第2の課題である。本発明の目的は、これら従来
の第1、第2の課題をともに解決し、汎用マイクロプロ
セッサを演算核部として用いられる通信処理用密結合マ
ルチプロセッサシステムにおいて、システム全体にわた
る機能を拡張せずに、必要となる多様な割込み処理機能
要求を完全に対応させることが可能な外部割込み制御方
法を提供することにある。
Next, consider the system control interrupt. The system control interrupt is used for factors such as failure detection in various peripheral circuits, firmware startup and termination, inter-CPU communication, and periodic processing timer for real-time control. In the failure detection interrupt, when the detection source resource is common to the CPU such as the main storage unit, in principle, any one CPU may perform the interrupt processing. When used individually, it must be done individually by the corresponding CPU.
Further, there are two types of firmware, one for operating the CPU common resource and one for operating the CPU individual resource. The former can be run by any CPU, but the latter is designated by the CPU. Need to drive in. The inter-CPU communication provides a synchronization function between software running in parallel on different CPUs, and there are two types of communication modes, one-to-one and one-to-many. Also,
The periodic processing timer is for giving a trigger for activating software to be periodically executed at a constant cycle, and in order to perform load distribution in all CPUs in order to improve real-time performance,
It is necessary to generate an interrupt from the periodic processing timer to all CPUs at the same time. As described above, for system control in TCMP, it is necessary not only to issue an interrupt notification to one CPU as in the conventional case, but also to use various interrupt notification forms. This form cannot be dealt with by the conventional external interrupt control unit. This is the second problem to be solved by the present invention. An object of the present invention is to solve both the first and second problems of the related art, and in a tightly-coupled multiprocessor system for communication processing in which a general-purpose microprocessor is used as an arithmetic core, without expanding the function of the entire system. An object of the present invention is to provide an external interrupt control method capable of perfectly corresponding to various required interrupt processing function requests.

【0010】[0010]

【課題を解決するための手段】上記目的を達成するた
め、本発明の外部割込み制御方法は、起動元通知方式と
同じように、外部割込み制御部から各CPUに個別の割
込み信号線を設けて、種々の割込み通知手段を外部割込
み制御部に備え、必要に応じて単一または複数のCPU
への外部割込みを要求することができるようにする。詳
細には、 (イ)入出力割込み処理では、原則的に入出力命令発行
元に拘束されずに、不特定のCPUで実行可能とする。
従って、データチャネル部や入出力コントローラ部から
の割込み要求の発生時点で、外部割込み制御部が任意の
CPUを選択して割込みを行っても何等問題はない。外
部割込み制御部がベクタ毎に独立に割込み先CPUの選
択を行えば、負荷分散が実現できる。前記第1の課題を
解決するために、本発明では、外部割込み制御部におい
て、TCMPを構成する複数のCPUから任意に選択し
て割込み先CPUを決定する第1の割込み通知(制御)
機能を設ける。 (ロ)故障検出割込み処理では、入出力割込みのように
頻繁には発生しないため、負荷分散の必要はない。しか
し、故障の重大さに応じた処理の優先制御を行うことが
必要であるため、ソフトウェアで割込み先CPUの設
定、およびその変更が可能である。このために本発明で
は、ソフトウェアから割込み先CPUを設定するための
レジスタと、このレジスタの設定値に基づいて該当する
CPUへ割込み通知するか、あるいは監視タイマ等のC
PU個別の故障検出時には当該CPUに対してのみ割込
み通知するように、予め決められたICPUに対しての
み割込む第2の割込み通知(制御)機能を設ける。
In order to achieve the above object, according to the external interrupt control method of the present invention, an individual interrupt signal line is provided from the external interrupt control unit to each CPU as in the case of the activation source notification method. , Various interrupt notification means are provided in the external interrupt control unit, and a single CPU or a plurality of CPUs are provided as necessary.
Allows external interrupts to be requested. In detail, (a) In the input / output interrupt processing, in principle, the input / output instruction is not restricted by the issuer and can be executed by an unspecified CPU.
Therefore, there is no problem even if the external interrupt control unit selects an arbitrary CPU and makes an interrupt at the time of generation of an interrupt request from the data channel unit or the input / output controller unit. If the external interrupt control unit independently selects the interrupt destination CPU for each vector, load distribution can be realized. In order to solve the first problem, according to the present invention, a first interrupt notification (control) for determining an interrupt destination CPU by arbitrarily selecting from a plurality of CPUs configuring TCMP in an external interrupt control unit.
Provide a function. (B) In fault detection interrupt processing, load distribution is not necessary because it does not occur as frequently as I / O interrupts. However, since it is necessary to perform priority control of processing according to the seriousness of the failure, it is possible to set and change the interrupt destination CPU by software. For this reason, in the present invention, a register for setting an interrupt destination CPU from software and an interrupt notification to the corresponding CPU based on the setting value of this register, or a C such as a monitoring timer.
A second interrupt notification (control) function of interrupting only a predetermined ICPU is provided so that an interrupt notification is sent only to the CPU when a failure is detected for each PU.

【0011】(ハ)CPU共通資源を操作対象とするフ
ァームウェアの起動割込みについては、前述の第1また
は第2の割込み通知手段を用いることができる。CPU
個別資源を操作対象とするファームウェアの起動割込み
については、ファームウェア起動要求元が指定するCP
Uへ起動割込みを発生する必要があるので、起動要求元
からのCPU指定情報を識別し、当該CPUへ割込み通
知する第3の割込み通知(制御)機能を設ける。 (ニ)CPU間通信に対しては、従来のソフトウェア制
御割込みを適用する。すなわち、ソフトウェアが特定の
命令を実行することにより、割込み発生要求が外部割込
みに前述の第2の割込み通知手段を用いることができ
る。1対多のCPU間通信のためには、特定の命令実行
元のCPUを除き、他の全てのCPUに割込みを通知す
ることが必要であり、当該割込み処理は各CPUで個別
に並列に実行される必要がある。本発明では、IRフラ
グとIMフラグをCPU個別に複数個具備し、ソフトウ
ェア制御割込み発生命令実行元CPUを識別して、当該
CPU以外の全てのCPUに同時に割込み要求を行う第
4の割込み通知(制御)機能を設ける。 (ホ)周期処理タイマは全CPU共通に用いられるが、
周期処理は各CPUで分散して実行される必要がある。
本発明では、IRフラグとIMフラグをCPU個別に複
数個具備し、1つの周期処理タイマからの割込み発生要
求を全CPUに分配し、同時に一斉に割込み要求する第
5の割込み通知(制御)機能を設ける。
(C) For the start interrupt of the firmware whose operation target is the CPU common resource, the above-mentioned first or second interrupt notifying means can be used. CPU
For firmware activation interrupts that operate on individual resources, the CP specified by the firmware activation request source
Since it is necessary to generate a start interrupt to U, a third interrupt notification (control) function for identifying the CPU designation information from the start request source and notifying the CPU of the interrupt is provided. (D) The conventional software control interrupt is applied to the communication between the CPUs. That is, when the software executes a specific instruction, the interrupt generation request can use the second interrupt notification means as an external interrupt. For one-to-many CPU-to-CPU communication, it is necessary to notify all other CPUs of the interrupt, except for the specific instruction execution source CPU, and the interrupt processing is executed individually by each CPU in parallel. Needs to be done. In the present invention, a fourth interrupt notification (IR interrupt and IM flag are provided for each CPU individually, the software control interrupt generation instruction executing CPU is identified, and an interrupt request is simultaneously issued to all CPUs other than the CPU ( Control) function. (E) The cycle processing timer is commonly used for all CPUs,
The periodic processing needs to be distributed and executed by each CPU.
According to the present invention, a fifth interrupt notification (control) function is provided in which a plurality of IR flags and IM flags are provided for each CPU, and an interrupt generation request from one cycle processing timer is distributed to all CPUs, and an interrupt request is made simultaneously. To provide.

【0012】[0012]

【作用】本発明においては、プロセッサの設計時点ある
いは通信処理システムの設計時点で、ベクタ毎の要因割
り当てと、第1から第5までのいずれかの割込み通知手
段の設定が行われる。以下、入出力割込み処理と周期処
理タイマ割込み処理の動作を説明する。それ以外の処理
については、これから自明であるため説明を省略する。
先ず、入出力割込み要因が対応するベクタに関しては、
前述のように第1の割込み通知手段を用いる設定を行
う。システムの運転開始後、割込み発生要求が外部割込
み制御部に通知されると、外部割込み制御部は複数のC
PUから任意のCPUを選択し、当該CPUへの割込み
信号をアクティブとして割込み要求を通知する。当該割
込み信号を受け付けたCPUは、割込み要求に付随する
ベクタ情報を外部割込み制御部から取得し、対応する割
込み処理ソフトウェアを起動する。当該割込み処理ソフ
トウェアは、その他の必要な割込み関連情報を取得した
後、外部割込み制御部内の当該ベクタに対応するIRフ
ラグをリセットし、以後、割込み処理の本体を実行す
る。IRフラグのリセット以後、外部割込み制御部は、
再び割込み発生要求を受け付け可能にする。割込み処理
上必要であれば、割込み処理ソフトウェアは、必要な期
間のみIMフラグをセットし、外部割込み制御部からの
次の割込み要求の発生を抑止してよい。
In the present invention, at the time of designing a processor or a communication processing system, factor allocation for each vector and setting of any of the first to fifth interrupt notification means are performed. The operations of the input / output interrupt processing and the periodic processing timer interrupt processing will be described below. Since the other processes are self-explanatory, the description thereof will be omitted.
First, regarding the vector to which the I / O interrupt factor corresponds,
As described above, the setting using the first interrupt notification means is performed. When the interrupt request is notified to the external interrupt control unit after the operation of the system is started, the external interrupt control unit receives a plurality of Cs.
An arbitrary CPU is selected from PU, an interrupt signal to the CPU is activated, and an interrupt request is notified. The CPU that has received the interrupt signal acquires the vector information associated with the interrupt request from the external interrupt control unit and activates the corresponding interrupt processing software. After acquiring other necessary interrupt-related information, the interrupt processing software resets the IR flag corresponding to the vector in the external interrupt control unit, and thereafter executes the main body of interrupt processing. After resetting the IR flag, the external interrupt control unit
The interrupt request can be accepted again. If necessary for interrupt processing, the interrupt processing software may set the IM flag only during a necessary period to suppress the generation of the next interrupt request from the external interrupt control unit.

【0013】次に、周期処理タイマ要因が対応するベク
タに関しては、前述のように第5の割込み通知手段を用
いる設定を行う。システムの運転開始後、割込み発生要
求が外部割込み制御部に通知されると、外部割込み制御
部は全てのCPUへの割込み信号をアクティブとして割
込み要求を通知する。当該割込み信号を受け付けた各々
のCPUは、割込み要求に付随するベクタ情報を外部割
込み制御部から取得し、対応する割込み処理ソフトウェ
アを起動する。当該割込み処理ソフトウェアは、その他
の必要な割込み関連情報を取得した後、外部割込み制御
部内の当該ベクタに対応する自CPU個別のIRフラグ
をリセットし、以後、割込み処理の本体を実行する。I
Rフラグのリセット以後、外部割込み制御部は当該CP
Uに関して再び割込み発生要求を受け付け可能にする。
割込み処理上必要ならば、割込み処理ソフトウェアは、
必要な期間だけ自CPU個別のIMフラグをセットし、
外部割込み制御部からの次の自CPUに対する割込み要
求の発生を抑止してよい。
Next, as to the vector corresponding to the periodic processing timer factor, the setting using the fifth interrupt notifying means is performed as described above. After the start of system operation, when an interrupt request is notified to the external interrupt controller, the external interrupt controller makes the interrupt signals to all CPUs active and notifies the interrupt request. Each CPU that receives the interrupt signal acquires the vector information associated with the interrupt request from the external interrupt control unit and activates the corresponding interrupt processing software. After acquiring other necessary interrupt-related information, the interrupt processing software resets the IR flag of the own CPU corresponding to the vector in the external interrupt control unit, and thereafter executes the main body of interrupt processing. I
After resetting the R flag, the external interrupt control unit
For U, the interrupt generation request can be accepted again.
If necessary for interrupt processing, the interrupt processing software
Set the IM flag for each CPU for the required period,
The generation of the next interrupt request to the own CPU from the external interrupt control unit may be suppressed.

【0014】[0014]

【実施例】以下、本発明の実施例を、図面により詳細に
説明する。図1は、本発明が適用される密結合マルチプ
ロセッサシステムのブロック構成図であり、図2は、本
発明における第1〜第5の割込み通知手段を用いる場合
の外部割込み制御部の動作フローチャートであり、図8
は本発明の一実施例を示す外部割込み制御部の具体的構
成図である。図1において、図3〜図5と同じ記号は同
一のものを示す。なお、12はバスコマンド割込み信
号、13は個別線割込み信号、14はソフトウェア制御
割込み信号である。図2において、外部割込み制御部4
は割込み発生要求を受け付けたならば(ステップ20
1)、ベクタ番号対応付けおよびCPU指定情報抽出を
行い(ステップ202)、ベクタ毎の設定内容から割込
み通知手段を選択し(ステップ203)、第1の割込み
通知手段を起動して任意のCPU1に割込みを行う(ス
テップ204)。または、第2の割込み通知手段を起動
して、割込み制御モードレジスタで指定するCPUに割
込みをする(ステップ205)。同じようにして、第3
〜第4の割込み通知手段を起動して、それぞれ割込みを
実行する。そして、第5の割込み通知手段を起動して、
全CPUへ割込みを行う(ステップ207)。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a block configuration diagram of a tightly coupled multiprocessor system to which the present invention is applied, and FIG. 2 is an operation flowchart of an external interrupt control unit when using the first to fifth interrupt notification means of the present invention. Yes, Figure 8
FIG. 3 is a specific configuration diagram of an external interrupt control unit showing an embodiment of the present invention. In FIG. 1, the same symbols as those in FIGS. 3 to 5 indicate the same things. Reference numeral 12 is a bus command interrupt signal, 13 is an individual line interrupt signal, and 14 is a software control interrupt signal. In FIG. 2, the external interrupt control unit 4
Receives an interrupt request (step 20)
1) Correlating vector numbers and extracting CPU designation information (step 202), selecting an interrupt notification means from the set contents for each vector (step 203), activating the first interrupt notification means and activating any CPU 1. An interrupt is made (step 204). Alternatively, the second interrupt notification means is activated to interrupt the CPU designated by the interrupt control mode register (step 205). In the same way, the third
~ The fourth interrupt notification means is activated to execute an interrupt. Then, the fifth interrupt notification means is activated,
All CPUs are interrupted (step 207).

【0015】図8に示すように、外部割込み制御部4
は、種々の割込み発生要求を受付けてベクタの割り当て
を行う割込み発生要求受付部41と、割込み発生要求受
付部41の制御でベクタ毎の割込み通知手段の設定に応
じて割込み要求の生成を行う割込み要求発生部40と、
ベクタ毎に第1から第5の割込み通知手段のいずれを使
用するかを、ソフトウェアで設定するための割込み制御
モードレジスタ44と、IRフラグ45、IMフラグ4
6を記憶する記憶部43と、CPUや外部共通資源から
のアクセスを処理するメモリバスインタフェース部42
とを具備している。なお、制御モードレジスタ44は、
記憶部43内に設けられているため、図8では図示省略
されている。第2の割込み通知手段における割込み先C
PUを設定するためのレジスタは、上記割込み制御モー
ドレジスタ44の1つのフィールドとして割り付けられ
る。割込み発生要求は、図1に示すシステムバス5を介
して外部資源(IO)6から外部割込み制御部4に通知
されるバスコマンド割込み12、同じくメモリバス3を
介してCPU1から外部割込み制御部4に通知されるソ
フトウェア制御割込み14、および割込み発生要求受付
部41に直接接続される個別信号線による個別線割込み
13の3種類からなる。
As shown in FIG. 8, the external interrupt control unit 4
Is an interrupt generation request receiving unit 41 that receives various interrupt generation requests and allocates vectors, and an interrupt that generates an interrupt request according to the setting of the interrupt notification unit for each vector under the control of the interrupt generation request receiving unit 41. Request generation unit 40,
An interrupt control mode register 44 for setting by software which of the first to fifth interrupt notification means to be used for each vector, an IR flag 45, and an IM flag 4
6, and a memory bus interface unit 42 that processes access from the CPU and external common resources.
It has and. The control mode register 44 is
Since it is provided in the storage unit 43, it is not shown in FIG. Interrupt destination C in the second interrupt notification means
The register for setting the PU is assigned as one field of the interrupt control mode register 44. The interrupt request is a bus command interrupt 12 notified from the external resource (IO) 6 to the external interrupt control unit 4 via the system bus 5 shown in FIG. 1, and also from the CPU 1 to the external interrupt control unit 4 via the memory bus 3. Of the software control interrupt 14 and the individual line interrupt 13 by the individual signal line directly connected to the interrupt generation request receiving unit 41.

【0016】図9は、本発明における割込み制御モード
レジスタの詳細構成例を示す図である。割込み制御モー
ドレジスタ44は、前述のように記憶部4内に設けられ
ており、次の各フィールド440〜443から構成され
る。すなわち、FM440はフラグ構成を指定するため
のフィールド、RM441は割込み先CPUの選択方法
を指定するためのフィールド、CM442はフラグ制御
方法を指定するフィールド、PI443はCPU指定フ
ィールドである。図8におけるメモリバスインタフェー
ス部42は、ソフトウェアが割込み制御モードレジスタ
44にアクセスするための機能を与える。ソフトウェア
は、外部割込みの受付けを開始する前に、ベクタ毎に外
部割込み事象に応じてこのレジスタ44を設定しておく
必要がある。以下、外部割込み制御部4による外部割込
み制御動作を詳述する。図10は、本発明におけるフラ
グ構成別の動作を説明する図である。あるベクタに対応
する割込み制御モードレジスタ44のFMフィールド4
40の設定が記号Sで示される値である場合に、割込み
発生要求受付け部41、割込み要求発生部40、および
メモリバスインタフェース部42の各々は、記憶部43
内のただ1組のIMフラグ46とIRフラグ45を当該
ベクタに割り付ける。これにより、第1のフラグ構成が
実現される。全く同じようにして、FMフィールド44
0の設定が記号Hで示される値である場合に、外部割込
み制御部4内の各部は、CPU数に対応する複数組のI
RフラグおよびIMフラグを該当ベクタに割り付ける。
これにより、第2のフラグ構成が実現される。同じよう
にして、FMフィールド440の設定が記号Mで示され
る値である場合には、外部割込み制御部4内の各部は、
第2のフラグ構成と同じように複数組のIRフラグとI
Mフラグを、CPU対応に1組宛割り付ける。これによ
り、第3のフラグ構成が実現される。
FIG. 9 is a diagram showing a detailed configuration example of the interrupt control mode register in the present invention. The interrupt control mode register 44 is provided in the storage unit 4 as described above, and includes the following fields 440 to 443. That is, FM 440 is a field for designating a flag configuration, RM 441 is a field for designating a selection method of an interrupt destination CPU, CM 442 is a field for designating a flag control method, and PI 443 is a CPU designation field. The memory bus interface unit 42 in FIG. 8 provides a function for software to access the interrupt control mode register 44. The software needs to set this register 44 according to the external interrupt event for each vector before starting the acceptance of the external interrupt. Hereinafter, the external interrupt control operation by the external interrupt control unit 4 will be described in detail. FIG. 10 is a diagram for explaining the operation for each flag configuration in the present invention. FM field 4 of the interrupt control mode register 44 corresponding to a certain vector
When the setting of 40 is a value indicated by the symbol S, each of the interrupt generation request receiving unit 41, the interrupt request generation unit 40, and the memory bus interface unit 42 has a storage unit 43.
Allocate only one set of the IM flag 46 and the IR flag 45 in the vector. As a result, the first flag configuration is realized. In exactly the same way, FM field 44
When the setting of 0 is the value indicated by the symbol H, each unit in the external interrupt control unit 4 has a plurality of sets of I corresponding to the number of CPUs.
The R flag and IM flag are assigned to the corresponding vector.
As a result, the second flag configuration is realized. Similarly, when the setting of the FM field 440 is a value indicated by the symbol M, each unit in the external interrupt control unit 4 is
Similar to the second flag configuration, a plurality of sets of IR flags and I
The M flag is assigned to one set corresponding to the CPU. As a result, the third flag configuration is realized.

【0017】図11〜図14は、本発明における各種割
込み通知手段の例を示す図である。本実施例において
は、第1〜第5の5種類の割込み通知(制御)機能が、
割込み制御モードレジスタ44のFMフィールド440
で指定される動作およびRMフィールド441で指定さ
れる動作の組合せで指定される。図11に示すように、
RMフィールド441が記号Aで指定される値である場
合には、割込み要求発生部40は、複数のCPUの中か
ら任意のCPUを選択して割込み通知を行う。図11で
は、FMフィールド440が設定値Sであり、かつRM
フィールド441の設定値Aである時の動作を示してい
る。図12では、FMフィールド440が設定値Sであ
り、またRMフィールド441が記号Bで指定される場
合の動作を示している。この場合には、割込み要求発生
部40はPIフィールド443で指定されるCPUへ割
込み通知を行う。図13では、FMフィールド440が
設定値Hであり、またRMフィールド441が記号Cで
指定される場合の動作を示している。この場合には、割
込み要求発生部40は割込み発生要求元であるCPUを
除く他の全てのCPUへ割込み通知を行う。図14で
は、FMフィールド440が設定値Hであり、またRM
フィールド441が記号Dで指定される場合の動作を示
している。この場合には、割込み要求発生部40は全て
のCPUに割込み通知を行う。
11 to 14 are diagrams showing examples of various interruption notifying means in the present invention. In this embodiment, the five types of interrupt notification (control) functions of the first to fifth types are
FM field 440 of interrupt control mode register 44
Is specified by the combination of the operation specified by and the operation specified by the RM field 441. As shown in FIG.
When the RM field 441 has a value designated by the symbol A, the interrupt request generation unit 40 selects an arbitrary CPU from the plurality of CPUs and gives an interrupt notification. In FIG. 11, the FM field 440 has the set value S and the RM
The operation when the setting value A of the field 441 is set is shown. FIG. 12 shows the operation when the FM field 440 is the set value S and the RM field 441 is designated by the symbol B. In this case, the interrupt request generator 40 sends an interrupt notification to the CPU designated by the PI field 443. FIG. 13 shows the operation when the FM field 440 is the set value H and the RM field 441 is designated by the symbol C. In this case, the interrupt request generation unit 40 sends an interrupt notification to all CPUs other than the CPU that is the source of the interrupt generation request. In FIG. 14, the FM field 440 has the set value H, and the RM
The operation when the field 441 is designated by the symbol D is shown. In this case, the interrupt request generation unit 40 sends an interrupt notification to all CPUs.

【0018】図11〜図14から明らかなように、第1
の割込み通知(制御)機能は、FMフィールド440が
SまたはH、RMフィールド441がAの場合に実現さ
れる。第2の割込み通知(制御)機能は、FMフィール
ド440がSまたはH、RMフィールド441がBの場
合に、ソフトウェアが予めPIフィールド443に割込
み先CPUの識別番号を設定しておくことにより実現さ
れる。また、第3の割込み通知手段は、FMフィールド
440がSまたはH、RMフィールド441がBである
場合に、割込み発生要求受付部41が割込み発生要求に
付随するCPU指定情報に基づいてPIフィールド44
3を設定しておくことにより実現される。また、第4の
割込み通知(制御)機能は、FMフィールド440がS
またはH、RMフィールド441がCである場合に実現
される。さらに、第5の割込み通知手段は、FMフィー
ルド440がM、RMフィールド441がDの場合に実
現される。図15は、第1〜第5の割込み通知(制御)
機能を実現するための割込み制御モードレジスタの設定
を示す図である。
As apparent from FIGS. 11 to 14, the first
The interrupt notification (control) function of is realized when the FM field 440 is S or H and the RM field 441 is A. The second interrupt notification (control) function is realized by setting the identification number of the interrupt destination CPU in the PI field 443 in advance when the FM field 440 is S or H and the RM field 441 is B. It Further, when the FM field 440 is S or H and the RM field 441 is B, the third interrupt notification means causes the interrupt generation request receiving unit 41 to determine the PI field 44 based on the CPU designation information accompanying the interrupt generation request.
It is realized by setting 3 in advance. Further, the fourth interrupt notification (control) function is that the FM field 440 is S
Alternatively, it is realized when the H and RM fields 441 are C. Further, the fifth interruption notifying means is realized when the FM field 440 is M and the RM field 441 is D. FIG. 15 shows first to fifth interrupt notifications (control)
It is a figure which shows the setting of the interrupt control mode register for implement | achieving a function.

【0019】図16〜図19は、本発明におけるフラグ
制御方法の一例を示す図である。フラグ制御方法は、割
込み制御モードレジスタ44のFMフィールド440、
およびCMフィールド442で指定される動作の組合せ
で指定される。ここでは、4種類のフラグ制御方法が示
されている。図16では、FMフィールド440がS
で、かつCMフィールド442が記号Iで指定される場
合のメモリバスインタフェース部の動作が示されてい
る。この場合には、メモリバスインタフェース部42
が、割込み要求先CPUからのIMフラグのセットおよ
びリセットならびにIRフラグのリセットのみを有効と
する。また、図17では、FMフィールド440がHま
たはMで、かつCMフィールド442が記号Iで指定さ
れる場合のメモリバスインタフェース部の動作が示され
ている。この場合には、メモリバスインタフェース部4
2は、アクセス要求元CPUを識別し、当該CPUに割
り付けたフラグに関してのみセット、リセットを有効と
する。すなわち、図では、IR0、IM0が割り付けら
れたベクタのアクセス要求元CPU0、IRi、IMi
が割り付けられたベクタのアクセス要求元CPUi、I
Rn、IMnが割り付けられたベクタのアクセス要求元
CPUnを、それぞれ識別することにより、それらのC
PUに割り付けたフラグに関してのみ動作を有効とする
のである。
16 to 19 are views showing an example of the flag control method according to the present invention. The flag control method is the FM field 440 of the interrupt control mode register 44,
And the CM field 442 specify the combination of operations. Here, four types of flag control methods are shown. In FIG. 16, the FM field 440 is S
And the operation of the memory bus interface section when the CM field 442 is designated by the symbol I is shown. In this case, the memory bus interface unit 42
However, only the setting and resetting of the IM flag and the resetting of the IR flag from the interrupt request destination CPU are valid. Further, FIG. 17 shows the operation of the memory bus interface unit when the FM field 440 is designated as H or M and the CM field 442 is designated by the symbol I. In this case, the memory bus interface unit 4
2 identifies the access request source CPU, and sets and resets only the flag assigned to the CPU to be valid. That is, in the figure, the access request source CPU0, IRi, IMi of the vector to which IR0, IM0 is allocated
Access request source CPUi, I of the vector to which is allocated
By identifying the access request source CPUn of the vector to which Rn and IMn are assigned, the C
The operation is valid only for the flag assigned to the PU.

【0020】また、図18では、FMフィールド440
がSで、かつCMフィールド442が記号IIで指定され
る場合のメモリバスインタフェース部の動作が示されて
いる。この場合には、メモリバスインタフェース部42
は、任意のCPUからのIMフラグのセットおよびリセ
ットならびにIRフラグのリセットを有効とする。図で
は、CPUiからのIMフラグ、IRフラグがセットま
たはリセットされる。さらに、図19では、FMフィー
ルド440がHまたはMで、かつCMフィールド442
が記号IIで指定される場合のメモリバスインタフェース
部の動作が示される。この場合には、メモリバスインタ
フェース部42は任意のCPUからの、CPU個別に割
り付けられたIMフラグ一括のセットおよびリセットな
らびにIRフラグ一括のリセットを有効とする。図で
は、IR0,IM0が割り付けられたCPU0、IR
i,IMiが割り付けられたCPUi、およびIRn,
IMnが割り付けられたCPUnからのそれぞれIMフ
ラグ、IRフラグのセット、リセットが有効に行われ
る。
Further, in FIG. 18, the FM field 440
Is S and the CM field 442 is designated by the symbol II, the operation of the memory bus interface section is shown. In this case, the memory bus interface unit 42
Enables the setting and resetting of the IM flag and the resetting of the IR flag from any CPU. In the figure, the IM flag and IR flag from the CPUi are set or reset. Further, in FIG. 19, the FM field 440 is H or M, and the CM field 442 is
The operation of the memory bus interface unit is shown when is designated by the symbol II. In this case, the memory bus interface unit 42 enables the setting and resetting of the IM flags collectively assigned to each CPU and the resetting of the IR flags collectively from any CPU. In the figure, CPU0 and IR to which IR0 and IM0 are assigned
CPUi to which i, IMi are assigned, and IRn,
The IMn and the IR flag are effectively set and reset from the CPUn to which the IMn is assigned.

【0021】ベクタ方式の割込み処理では、割込み処理
ソフトウェアは自身が割込まれるのを防止するためにI
Mフラグをオンにし、その後、外部割込み制御部4が次
の割込み発生要求を受付け可能となるように、IRフラ
グをリセットする。割込み処理ソフトウェアで割込まれ
ることを防止する必要がなくなれば、IMフラグをオフ
にする。本実施例の方式に対応するためには、ソフトウ
ェアはFMフィールドの如何にかかわらず、CMフィー
ルドをIと設定する必要がある。ポーリング方式の割込
み処理では、予めIMフラグをオンに初期設定してお
き、割込み処理ソフトウェアはIRフラグを参照して、
セットされていれば割込みを受け付けて、外部割込み制
御部4が次の割込み発生要求を受付可能となるように、
IRフラグをリセットする。本実施例の方式に対応する
ためには、ソフトウェアはFMフィールドがSの場合に
は、CMフィールドをII、FMフィールドがHまたはM
の場合には、各CPUが個別のIMフラグを予めオンと
している条件でCMフィールドをIと設定する必要があ
る。FMフィールドがHまたはMの場合には、原則とし
て各CPUは自CPU個別のフラグ操作に限定されるの
で、割込み処理ソフトウェアで他のCPUと関連する割
込みの矛盾を発見した場合にも、これを解除する方法が
存在しないことになる。FMフィールドがHまたはM
で、CMフィールドがIIの機能は、このような場合にC
PU個別のIMフラグとIRフラグを一括リセットする
機能を与える。
In vector-based interrupt processing, the interrupt processing software uses an I
The M flag is turned on, and then the IR flag is reset so that the external interrupt control unit 4 can accept the next interrupt generation request. The IM flag is turned off when it is no longer necessary to prevent interruption by the interrupt handling software. In order to support the method of this embodiment, software needs to set the CM field to I regardless of the FM field. In the polling type interrupt processing, the IM flag is initially set to ON in advance, and the interrupt processing software refers to the IR flag,
If it is set, it accepts an interrupt so that the external interrupt controller 4 can accept the next interrupt request.
Reset the IR flag. In order to correspond to the method of this embodiment, the software sets the CM field to II and the FM field to H or M when the FM field is S.
In this case, it is necessary to set the CM field to I under the condition that each CPU turns on the individual IM flag in advance. When the FM field is H or M, each CPU is basically limited to the flag operation of its own CPU. Therefore, even if the interrupt processing software finds an inconsistency of an interrupt related to another CPU, There is no way to unlock it. FM field is H or M
So, the function of CM field II is C in such a case.
A function of collectively resetting the IM flag and IR flag of each PU is provided.

【0022】最後に、第1〜第5の割込み通知機能の指
定方法について述べる。ベクタ毎の具体的な割込み要因
の割り当て、および第1〜第5の割込み通知手段の割り
当ては、密結合マルチプロセッサが適用される通信処理
システム毎に、そのシステムの設計時点で決定される。
バスコマンド割込みに関しては、ある入出力装置がある
通信処理システムで用いられるか否か、用いられるとし
てどのベクタに割り当てられるか、第1〜第5のどの割
込み通知手段が適用されるかは、その通信処理システム
の種々の制御部の設計時点で、全てのあるいは一部のベ
クタを選定して製造時に布線しておき、全通信処理シス
テムで共通的な割込み要因に関しては密結合マルチプロ
セッサ製造時点で当該割込み要因と結線し、通信処理シ
ステム毎に個別の割込み要因に関しては当該通信処理シ
ステム製造時点で結線するような方法で、ベクタと割込
み要因との割り当てを行っておく。その結果、第1〜第
5のどの割込み通知機能を適用するかは、バスコマンド
割込みと同じように、その通信処理システムの設計時点
に決定する方法が可能である。いずれにしても、通信処
理システムの設計時点で決定された割込み通知手段の割
り当てに従って、当該通信処理システムの立上げ時点に
ソフトウェアが割込み制御モードレジスタの初期設定を
行うことにより、各ベクタへの割込み通知手段の指定が
可能となる。なお、通信処理システム共通に存在する割
込み要因で、ベクタ割り当て、ならびに割込み通知手段
の割り当ても、共通であれば外部割込み制御部の製造時
点で布線により固定的に指定することも可能である。
Finally, a method of designating the first to fifth interrupt notification functions will be described. Specific allocation of the interrupt factor for each vector and allocation of the first to fifth interrupt notification means are determined for each communication processing system to which the tightly coupled multiprocessor is applied at the time of designing the system.
Regarding the bus command interrupt, whether or not a certain input / output device is used in a communication processing system, which vector is allocated to be used, and which of the first to fifth interrupt notification means is applied is At the time of designing various control units of the communication processing system, all or part of the vectors are selected and wired at the time of manufacturing. Regarding interrupt factors common to all communication processing systems, at the time of manufacturing the tightly coupled multiprocessor. Then, the vector and the interrupt factor are assigned in such a manner that the interrupt factor is connected to the interrupt factor, and the individual interrupt factors for each communication processing system are connected at the time of manufacturing the communication processing system. As a result, which of the first to fifth interrupt notification functions is to be applied can be determined at the time of designing the communication processing system, like the bus command interrupt. In any case, according to the allocation of the interrupt notification means determined at the time of designing the communication processing system, the software initializes the interrupt control mode register at the time of starting the communication processing system, thereby interrupting each vector. It is possible to specify the notification means. It should be noted that the vector assignment and the assignment of the interrupt notification means can be fixedly designated by wiring at the time of manufacturing the external interrupt control unit if they are common due to the interrupt factor that is common to the communication processing systems.

【0023】[0023]

【発明の効果】以上説明したように、本発明によれば、
汎用マイクロプロセッサを演算核部として用いた通信処
理用密結合マルチプロセッサシステムにおいて、システ
ム全体にわたる機能を拡張せずに、必要となる多様な割
込み処理機能の要求に完全に対応することができる。
As described above, according to the present invention,
In a tightly-coupled multiprocessor system for communication processing using a general-purpose microprocessor as an arithmetic core, it is possible to completely meet the demands of various necessary interrupt processing functions without expanding the functions of the entire system.

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

【図1】本発明を適用した密結合マルチプロセッサシス
テムの構成例を示す図である。
FIG. 1 is a diagram showing a configuration example of a tightly coupled multiprocessor system to which the present invention has been applied.

【図2】図1における外部割込み制御部の割込み通知動
作の一例を示す動作フローチャートである。
FIG. 2 is an operation flowchart showing an example of an interrupt notification operation of an external interrupt control unit in FIG.

【図3】従来の割込み制御方法のうちの集中方式による
密結合マルチプロセッサシステムの構成例を示す図であ
る。
FIG. 3 is a diagram showing a configuration example of a tightly coupled multiprocessor system by a centralized method among conventional interrupt control methods.

【図4】従来の割込み制御方法のうちの固定分散方式に
よる密結合マルチプロセッサシステムの構成例を示す図
である。
FIG. 4 is a diagram showing a configuration example of a tightly-coupled multiprocessor system according to a fixed distribution method among conventional interrupt control methods.

【図5】従来の割込み制御方法のうちの起動元通知方式
による密結合マルチプロセッサシステムの構成例を示す
図である。
FIG. 5 is a diagram showing a configuration example of a tightly coupled multiprocessor system according to a boot source notification method of the conventional interrupt control methods.

【図6】図4における集中方式による外部割込み制御部
の割込み通知動作の動作フローチャートである。
FIG. 6 is an operation flowchart of an interrupt notification operation of the external interrupt control unit by the centralized method in FIG.

【図7】図5、図6における固定分散方式および起動元
通知方式による外部割込み制御部の割込み通知動作のフ
ローチャートである。
FIG. 7 is a flowchart of an interrupt notification operation of the external interrupt control unit according to the fixed distribution method and the activation source notification method in FIGS. 5 and 6.

【図8】本発明の一実施例を示す外部割込み制御部の構
成図である。
FIG. 8 is a configuration diagram of an external interrupt control unit showing an embodiment of the present invention.

【図9】本発明における割込み制御モードレジスタの構
成例を示す図である。
FIG. 9 is a diagram showing a configuration example of an interrupt control mode register in the present invention.

【図10】本発明のフラグ構成別の動作を示す説明図で
ある。
FIG. 10 is an explanatory diagram showing operations according to flag configurations of the present invention.

【図11】本発明における割込み通知手段の第1の組合
せの場合の動作説明図である。
FIG. 11 is an operation explanatory diagram in the case of a first combination of interrupt notification means according to the present invention.

【図12】同じく、本発明における割込み通知手段の第
2の組合せの場合の動作説明図である。
FIG. 12 is likewise an operation explanatory diagram in the case of a second combination of interrupt notification means in the present invention.

【図13】同じく、本発明における割込み通知手段の第
3の組合せの場合の動作説明図である。
FIG. 13 is an operation explanatory diagram of a third combination of interrupt notification means according to the present invention.

【図14】同じく、本発明における割込み通知手段の第
4の組合せの場合の動作説明図である。
FIG. 14 is likewise an operation explanatory diagram in the case of a fourth combination of interrupt notification means in the present invention.

【図15】本発明における各種割込み通知手段を実現す
る割込み制御モードレジスタの設定方法を示す図であ
る。
FIG. 15 is a diagram showing a method of setting an interrupt control mode register that realizes various interrupt notification means in the present invention.

【図16】本発明におけるフラグ制御方法の第1の組合
せの場合の動作説明図である。
FIG. 16 is an operation explanatory diagram in the case of the first combination of flag control methods in the present invention.

【図17】同じくフラグ制御方法の第2の組合せの場合
の動作説明図である。
FIG. 17 is an operation explanatory diagram of the second combination of flag control methods.

【図18】同じくフラグ制御方法の第3の組合せの場合
の動作説明図である。
FIG. 18 is an operation explanatory diagram of the third combination of flag control methods.

【図19】同じくフラグ制御方法の第4の組合せの場合
の動作説明図である。
FIG. 19 is an operation explanatory diagram similarly in the case of a fourth combination of flag control methods.

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

1 CPU 2 主記憶部(MM) 3 メモリバス 4 外部割込み制御部 5 システムバス 6 CPU共通外部資源(IO等) 10 密結合マルチプロセッサシステム 11 割込み要求信号線 12 バスコマンド割込み信号 13 個別線割込み信号 14 ソフトウェア制御割込み信号 40 割込み要求発生部 41 割込み発生要求受付け部 42 メモリバスインタフェース部 43 記憶部 44 割込み制御モードレジスタ 45 割込み表示(IR)フラグ 46 割込みマスク(IM)フラグ 440 フラグ構成モード(FM)フィールド 441 割込み通知モード(RM)フィールド 442 フラグ制御モード(CM)フィールド 443 CPU指定(PI)フィールド 1 CPU 2 Main memory unit (MM) 3 Memory bus 4 External interrupt control unit 5 System bus 6 CPU common external resource (IO etc.) 10 Tightly coupled multiprocessor system 11 Interrupt request signal line 12 Bus command interrupt signal 13 Individual line interrupt signal 14 Software Control Interrupt Signal 40 Interrupt Request Generation Unit 41 Interrupt Generation Request Reception Unit 42 Memory Bus Interface Unit 43 Storage Unit 44 Interrupt Control Mode Register 45 Interrupt Display (IR) Flag 46 Interrupt Mask (IM) Flag 440 Flag Configuration Mode (FM) Field 441 Interrupt notification mode (RM) field 442 Flag control mode (CM) field 443 CPU designation (PI) field

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 密結合マルチプロセッサシステムにおい
て、任意の1CPUを割込み先に選択する第1の外部割
込み制御処理と、予め指定される特定の1CPUを割込
み先に選択する第2の外部割込み制御処理と、起動要求
元からの割込み要求に付随する情報で指定される特定の
1CPUを割込み先に選択する第3の外部割込み制御処
理と、割込み要求に付随する情報で指定される特定1C
PUを除く他の全てのCPUを割込み先に選択する第4
の外部割込み制御処理と、全てのCPUを割込み先に選
択する第5の外部割込み制御処理の中からいずれか1つ
を割込みベクタ毎に割り当て、割り当てられた各外部割
込み制御処理を実行することを特徴とする外部割込み制
御方法。
1. In a tightly coupled multiprocessor system, a first external interrupt control process for selecting an arbitrary 1CPU as an interrupt destination and a second external interrupt control process for selecting a specific 1CPU designated in advance as an interrupt destination. And a third external interrupt control process for selecting a specific 1CPU designated by the information accompanying the interrupt request from the activation request source as the interrupt destination, and a specific 1C designated by the information accompanying the interrupt request.
Fourth, selecting all other CPUs except PU as interrupt destinations
Of the external interrupt control processing of No. 1 and the fifth external interrupt control processing of selecting all the CPUs as the interrupt destinations and assigning one of them to each interrupt vector, and executing the assigned external interrupt control processing. Characteristic external interrupt control method.
JP5311700A 1993-12-13 1993-12-13 External interruption control method Pending JPH07160656A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5311700A JPH07160656A (en) 1993-12-13 1993-12-13 External interruption control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5311700A JPH07160656A (en) 1993-12-13 1993-12-13 External interruption control method

Publications (1)

Publication Number Publication Date
JPH07160656A true JPH07160656A (en) 1995-06-23

Family

ID=18020420

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5311700A Pending JPH07160656A (en) 1993-12-13 1993-12-13 External interruption control method

Country Status (1)

Country Link
JP (1) JPH07160656A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0981402A (en) * 1995-09-13 1997-03-28 Kofu Nippon Denki Kk Multiprocessor system
JP2006216042A (en) * 2005-02-04 2006-08-17 Sony Computer Entertainment Inc System and method for interruption processing
US7281075B2 (en) 2003-04-24 2007-10-09 International Business Machines Corporation Virtualization of a global interrupt queue
US7386642B2 (en) 2005-01-28 2008-06-10 Sony Computer Entertainment Inc. IO direct memory access system and method
JP2008176360A (en) * 2007-01-16 2008-07-31 Renesas Technology Corp Multiprocessor system
JP2009187223A (en) * 2008-02-05 2009-08-20 Nec Corp Processor, electronic equipment, interrupt control method, and interrupt control program
US7680972B2 (en) 2005-02-04 2010-03-16 Sony Computer Entertainment Inc. Micro interrupt handler
JP2010244179A (en) * 2009-04-02 2010-10-28 Nec Corp System, method and program for interrupt control
JP2013507719A (en) * 2009-10-13 2013-03-04 エンパイア テクノロジー ディベロップメント エルエルシー Interrupt mask for multi-core processors
JP2014160367A (en) * 2013-02-20 2014-09-04 Mitsubishi Electric Corp Arithmetic processing unit
JP2019096338A (en) * 2019-02-04 2019-06-20 ルネサスエレクトロニクス株式会社 Semiconductor device and semiconductor device sales model

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0981402A (en) * 1995-09-13 1997-03-28 Kofu Nippon Denki Kk Multiprocessor system
US7281075B2 (en) 2003-04-24 2007-10-09 International Business Machines Corporation Virtualization of a global interrupt queue
US7546406B2 (en) 2003-04-24 2009-06-09 International Business Machines Corporation Virtualization of a global interrupt queue
US7386642B2 (en) 2005-01-28 2008-06-10 Sony Computer Entertainment Inc. IO direct memory access system and method
JP2006216042A (en) * 2005-02-04 2006-08-17 Sony Computer Entertainment Inc System and method for interruption processing
US7680972B2 (en) 2005-02-04 2010-03-16 Sony Computer Entertainment Inc. Micro interrupt handler
JP2008176360A (en) * 2007-01-16 2008-07-31 Renesas Technology Corp Multiprocessor system
JP2009187223A (en) * 2008-02-05 2009-08-20 Nec Corp Processor, electronic equipment, interrupt control method, and interrupt control program
JP2010244179A (en) * 2009-04-02 2010-10-28 Nec Corp System, method and program for interrupt control
JP2013507719A (en) * 2009-10-13 2013-03-04 エンパイア テクノロジー ディベロップメント エルエルシー Interrupt mask for multi-core processors
JP2014160367A (en) * 2013-02-20 2014-09-04 Mitsubishi Electric Corp Arithmetic processing unit
JP2019096338A (en) * 2019-02-04 2019-06-20 ルネサスエレクトロニクス株式会社 Semiconductor device and semiconductor device sales model

Similar Documents

Publication Publication Date Title
JP6294586B2 (en) Execution management system combining instruction threads and management method
JPH1027108A (en) Method for thread execution
US10459773B2 (en) PLD management method and PLD management system
US4725946A (en) P and V instructions for semaphore architecture in a multiprogramming/multiprocessing environment
JPH0695898A (en) Control method for virtual computer and virtual computer system
JPS6031648A (en) Controlling method of multitask
JP2012108576A (en) Multi-core processor, process execution method, and program
US7565659B2 (en) Light weight context switching
JPH07160656A (en) External interruption control method
JPH11272635A (en) Multiprocessor control system, booting device and booting controller used for the same
US20090241112A1 (en) Recording medium recording virtual machine control program and virtual machine system
JP2870254B2 (en) Virtual machine I / O interrupt handling method
US9367349B2 (en) Multi-core system and scheduling method
JPH0926885A (en) Circuit and method for control for multiple priority interrupt request with reference to microprocessor
US20030018682A1 (en) Computer system and computer-readable record medium
US7711925B2 (en) Information-processing device with transaction processor for executing subset of instruction set where if transaction processor cannot efficiently execute the instruction it is sent to general-purpose processor via interrupt
EP0049521A2 (en) Information processing system
JPH02210542A (en) Execution control system for virtual computer system
JPH0484335A (en) Virtual computer controlling system
JP2005316679A (en) Parallel arithmetic processor
JP2001167058A (en) Information processor
JPS59167756A (en) Dispatch control system of virtual computer
US20240134669A1 (en) Paravirtual pause loops in guest user space
JP2553526B2 (en) Multitasking processor
JPH10260850A (en) Virtual computer system