JPS61165138A - Interruption controlling system - Google Patents

Interruption controlling system

Info

Publication number
JPS61165138A
JPS61165138A JP26792284A JP26792284A JPS61165138A JP S61165138 A JPS61165138 A JP S61165138A JP 26792284 A JP26792284 A JP 26792284A JP 26792284 A JP26792284 A JP 26792284A JP S61165138 A JPS61165138 A JP S61165138A
Authority
JP
Japan
Prior art keywords
mask
information
interrupt
instruction
interruption
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.)
Granted
Application number
JP26792284A
Other languages
Japanese (ja)
Other versions
JPH0452489B2 (en
Inventor
Kouhei Ootsuyama
大津山 公平
Yuji Oinaga
勇次 追永
Katsumi Onishi
克己 大西
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP26792284A priority Critical patent/JPS61165138A/en
Publication of JPS61165138A publication Critical patent/JPS61165138A/en
Publication of JPH0452489B2 publication Critical patent/JPH0452489B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To improve the operation efficiency of a CPU by limiting an inhibition of executing an instruction, and an inhibition of an interruption, to only an actually necessary range, when changing a mask with respect to an input/output interruption. CONSTITUTION:A mask release detecting part 22 detects whether that which is changed to '1' from '0' exists or not in a mask, and executes a counting operation by setting a counter 24, if any. During this time, an interlock generating part 25 discriminates a kind of the next instruction 26, and if it is a mask changing instruction, it is delayed and prevented from being changed to '0' from '1'. A mask set detecting part 23 detects whether that which is changed to '0' from '1' exists or not in the mask, operates a counter 28, if any, turns on an interruption inhibiting signal 29, and as for an interrupting signal of an interruption receiving register 31, is input to an interruption processing part 33 is inhibited by a gate 32.

Description

【発明の詳細な説明】 (産業上の利用分野〕 本発明は情報処理システムの中央処理装置における、入
出力割り込みの制御方式に関する・。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a control method for input/output interrupts in a central processing unit of an information processing system.

比較的大規模の情報処理システムの構成方式として、第
2図に例示するように、1以上の中央処理装置(以下に
おいてCPUという)1及びチャネル制御装置(以下に
おいてCHPという)2、及び主記憶装置(M S t
J)3をシステム制御装置(以下においてMCUという
)4に接続する方式が用いられる。
As an example of a configuration method for a relatively large-scale information processing system, as illustrated in FIG. Equipment (M S t
J) 3 is connected to a system control unit (hereinafter referred to as MCU) 4.

こ\でMCU4は、CPUI及びCHP2の主記憶装置
3へのアクセスを制御し、又C’PUIとCHP2との
間の制御情報の転送、入出力割り込み信号の転送等を集
中的に処理する。
Here, the MCU 4 controls the access of the CPUI and the CHP 2 to the main storage device 3, and intensively processes the transfer of control information between the C'PUI and the CHP 2, the transfer of input/output interrupt signals, and the like.

このような構成では、MCU4に制御を集中することか
ら生じる問題があり、入出力割り込みのマスク制御もそ
の一つである。
In such a configuration, there are problems caused by concentrating control on the MCU 4, and mask control of input/output interrupts is one of them.

〔従来の技術〕[Conventional technology]

入出力割り込み信号の転送処理のために、MCU4は各
CPU1から割り込みマスク情報を受信し、CHF2の
発生する入出力割り込み信号のうち、該マスク情報その
他を参照して有効とすべき信号のみを、該当のCPUI
への入出カ割り込み信号として転送する。
In order to process the transfer of input/output interrupt signals, the MCU 4 receives interrupt mask information from each CPU 1, and among the input/output interrupt signals generated by the CHF 2, refers to the mask information and others to select only the signals that should be enabled. Applicable CPUI
It is transferred as an input/output interrupt signal.

入出力割り込みマスクは公知のように、例えばCHF2
に接続されるチャネルごとに、各チャネルからCPUI
への割り込みを許すか否かを、各CPUIが指定する情
報であり、例えば各CPUIごとのマスク情報は、各チ
ャネルごとに設ける1ビツトのマスクの110によって
入出力割り込みの可/不可(即ち、マスクの解除状態/
設定状態)を指定する。
As is well known, the input/output interrupt mask is, for example, CHF2.
CPUI from each channel for each channel connected to
For example, mask information for each CPUI is information that specifies whether input/output interrupts are allowed or not (i.e., Mask release status/
setting status).

CPUIはこのマスク情報を、特定の命令を実行するこ
とによって設定/解除する。このような効果を有する命
令は一般に複数種類設けられるが、以下においてそれら
を一括してマスク変更命令と呼ぶものとする。
The CPUI sets/cancels this mask information by executing a specific instruction. Generally, there are a plurality of types of commands having such an effect, but in the following, they will be collectively referred to as mask change commands.

CPUIでマスク変更命令が実行されると、CPUI内
の制御レジスタ等に保持するマスク情報を新しい値に設
定すると共に、そのマスク情報しょMCU4へ転送され
、実際のマスク制御はMCU4内で行われる。
When a mask change instruction is executed by the CPU, mask information held in a control register or the like in the CPU is set to a new value, and the mask information is transferred to the MCU 4, and actual mask control is performed within the MCU 4.

このような制御において、CPUIがらMCU4へ新し
いマスク情報を発送してから、MCU 4がそのマスク
情報を受信し、それによって制御された新しい入出力割
り込み信号を返送し、cpulがその割り込み信号を受
信するまでには、システムで定まる制御サイクル(以下
単にサイクルという)で10サイクル程度を要する場合
がある。
In such control, after the CPU sends new mask information to the MCU 4, the MCU 4 receives the mask information and returns a new input/output interrupt signal controlled by it, and the CPU receives the interrupt signal. It may take about 10 control cycles (hereinafter simply referred to as cycles) determined by the system.

このため、マスク変更命令の実行においては、命令で指
定されるマスク情報を、割り込み制御機構に保持すると
、マスク変更命令は実行完了となるが、以後割り込み制
御機構が独立に、保持しているマスク情報を逐次MCU
4へ転送すると共に、新しい割り込み信号が到着するま
での期間は割り込みを受は付けない状態にする。
Therefore, when executing a mask change instruction, if the mask information specified by the instruction is retained in the interrupt control mechanism, the execution of the mask change instruction is completed, but from then on, the interrupt control mechanism independently Information sequentially sent to MCU
4, and interrupts are not accepted until a new interrupt signal arrives.

このような構成において、プログラム上にマスク変更命
令が例えば連続している場合には、先のマスク変更命令
が終了したことによって、次のマスク変更命令を実行す
ると、第2のマスク変更命令によるマスク情報の変更が
終わるまで、割り込みを受は付けない状態が継続する。
In such a configuration, if there are consecutive mask change instructions in a program, when the next mask change instruction is executed after the previous mask change instruction is completed, the mask by the second mask change instruction is The state in which no interrupts are accepted continues until the information has been changed.

その結果、第1の命令によるマスク情報に従う割り込み
信号を受は付ける期間が無いま−に、MCU4のマスク
情報が第2の命令で指定する情報に変わってしまう等の
ことが起こり得る。
As a result, there is a possibility that the mask information of the MCU 4 changes to the information specified by the second instruction before there is a period for accepting an interrupt signal according to the mask information by the first instruction.

このような状況の発生を防ぐために、例えば第3図に示
すように、マスク変更命令10が実行されるときは、後
続命令の実行開始をダミーサイクル11として示す時間
だけ無条件に遅延させる。
To prevent such a situation from occurring, for example, as shown in FIG. 3, when a mask change instruction 10 is executed, the start of execution of subsequent instructions is unconditionally delayed by a period of time shown as a dummy cycle 11.

この遅延時間は、後続命令12がマスク変更命令であっ
た場合の、割り込み制御機構に対するマスク情報書き込
み時期(図にWとして示す)13が、割り込み制御機構
によりマスク情報転送期間14の終了後になるようにす
る。
This delay time is such that when the subsequent instruction 12 is a mask change instruction, the mask information write timing (indicated as W in the figure) 13 to the interrupt control mechanism is after the end of the mask information transfer period 14 by the interrupt control mechanism. Make it.

第3図は命令実行が、いわゆるバイブライン制御によっ
ている場合の処理の進行状態を示しており、図でDは命
令デコードサイクルを示し、この時点から実際の命令実
行が開始されるが、その前に命令のフェッチ等が行われ
ている。
Figure 3 shows the progress of processing when instruction execution is based on so-called vibe line control. Fetching of instructions is being performed.

又、もしダミーサイクル11が無い、通常の命令実行状
態では、マスク変更命令10のDサイクルの次のサイク
ル(図のダミーサイクル11の開始点)で次の命令のD
サイクルが実行されるが、パイプラインにいわゆるイン
クロックをかけることによって、この進行を抑止するこ
とにより、ダミーサイクル11が挿入されるものである
In addition, if there is no dummy cycle 11 and there is no dummy cycle 11, in a normal instruction execution state, the D cycle of the next instruction is
The cycle is executed, but the dummy cycle 11 is inserted by inhibiting the progress of the cycle by applying a so-called ink clock to the pipeline.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

前記の制御方式によると、次のような問題がある。 According to the above control method, there are the following problems.

(a)  マスク変更命令による、新しいマスクによる
割り込み信号が確定するまで、後続の命令がすべて実行
を遅延される。
(a) A mask change instruction causes execution of all subsequent instructions to be delayed until the interrupt signal due to the new mask is determined.

(bl  次の命令がマスク変更命令であっても、前の
マスク変更命令によるマスクの変化が、設定状態への変
化(マスクを1から0にする)のみの場合には、次の命
令でそのマスクが0から1に変更されても、処理上差し
支えないが、その場合にも後続の命令の実行が遅延され
る。
(bl Even if the next command is a mask change command, if the only change in the mask caused by the previous mask change command is a change to the setting state (change the mask from 1 to 0), the next command will change the mask. Even if the mask is changed from 0 to 1, there is no problem in processing, but the execution of subsequent instructions is delayed even in that case.

〔問題点を解決するための手段〕[Means for solving problems]

前記の問題点は、チャネル制御装置の発行する、中央処
理装置に対する入出力割り込み信号を、システム制御装
置が、該中央処理装置の発行する割り込みマスク情報に
従ってマスクして、該中央処理装置に転送するように構
成された情報処理システムの、該中央処理装置が上記マ
スク情報を変更するマスク変更命令を実行するに際し、
実行する該マスク変更命令による該マスク情報の変化を
識別し、設定状態から解除状態に変化する該マスク情報
があることを検出した場合に、後続のマスク変更命令の
実行を所定時間遅延する手段、及び解除状態から設定状
態に変化する該マスク情報があることを検出した場合に
、上記入出力割り込み信号の受信を所定時間抑止する手
段を持つ本発明の割り込み制御方式によって解決される
The above problem is that the system control unit masks input/output interrupt signals issued by the channel control unit to the central processing unit according to interrupt mask information issued by the central processing unit, and transfers the signals to the central processing unit. When the central processing unit of the information processing system configured as follows executes a mask change command to change the mask information,
means for identifying a change in the mask information due to the mask change command to be executed, and delaying execution of a subsequent mask change command for a predetermined time when detecting that there is mask information changing from a set state to a released state; The problem is solved by the interrupt control method of the present invention, which has means for suppressing reception of the input/output interrupt signal for a predetermined period of time when it is detected that there is mask information that changes from the canceled state to the set state.

〔作用〕[Effect]

即ち、マスク変更命令における指定内容と現マスク情報
から、マスク情報の変化を識別して、それに応じた制御
を行うこととし、0から1 (マスクを解除して割り込
みを許す状態)に変化するマスクがある場合は、その変
更が有効にならない間にそのマスクが再設定(1から0
へ)、されることを防ぐために、後続のマスク変更命令
の実行開始を所要の時間遅延させる。
In other words, the change in mask information is identified from the contents specified in the mask change command and the current mask information, and control is performed accordingly. If there is, the mask is reset (from 1 to 0) while the change does not take effect.
), the start of execution of subsequent mask change instructions is delayed for the required time.

又マスクの設定状態への変化(1から0)がある場合に
は、新しいマスク情報がMCU4で参照されて、変更後
の正しい割り込み信号が到着するまでに要する一定時間
、割り込み信号の受信を抑止して、割り込みを発生させ
ない。
Also, if there is a change in the mask setting state (from 1 to 0), the new mask information is referenced by the MCU 4, and reception of the interrupt signal is inhibited for a certain period of time required until the correct interrupt signal arrives after the change. to prevent interrupts from occurring.

しかし、後者を要因として後続命令を遅延させる制御は
行わない。
However, no control is performed to delay subsequent instructions due to the latter.

両方のマスクの変化がある場合には、上記の両制御が並
行する。
If there is a change in both masks, both of the above controls are performed in parallel.

以上により、前記の問題点が解決され、必要以上に後続
命令を遅延し、又は割り込みを抑止することが避けられ
る。
As described above, the above problem is solved, and it is possible to avoid unnecessarily delaying subsequent instructions or inhibiting interrupts.

〔実施例〕〔Example〕

第1図はCPUIの割り込み制御機構における、本発明
の一実施例構成ブロック図である。
FIG. 1 is a block diagram of an embodiment of the present invention in a CPUI interrupt control mechanism.

マスク変更命令の実行により、そのWサイクルにおいて
、制御vA20によって転送される新しいマスク情報が
マスクレジスタ21に設定される。
By executing the mask change instruction, new mask information transferred by the control vA20 is set in the mask register 21 in the W cycle.

マスクレジスタ21に設定されたマスク情報は、マスク
送出レジスタ30を経て、MCU4へ順次送出される。
The mask information set in the mask register 21 is sequentially sent to the MCU 4 via the mask sending register 30.

マスクレジスタ21への設定に先立って、制御線20の
新しいマスク情報と、マスクレジスタ21の現マスク情
報がマスク解除検出部22及びマスク設定検出部23で
比較される。
Prior to setting in the mask register 21, the new mask information on the control line 20 and the current mask information on the mask register 21 are compared by a mask release detection section 22 and a mask setting detection section 23.

マスク解除検出部22はマスクの中にOから1へ変更さ
れるものがあるか検査し、該当するマスクがある場合に
は、カウンタ24に計数値をセットして、計数動作を起
動する。
The mask release detection unit 22 checks whether there is any mask that is changed from O to 1, and if there is a corresponding mask, sets a count value in the counter 24 and starts a counting operation.

この計数値は、通常は前記の第3図におけるダミーサイ
クル11に相当する効果を得るように、次のマスク変更
命令の実行開始を遅延させるに必要な制御サイクル数で
あるが、要すれば制′aVA34によりCPUIの命令
実行制御部から送られるマスク変更命令の種類に応じて
、異なる長さの計数値を設定できるようにする。
This count value is normally the number of control cycles necessary to delay the start of execution of the next mask change instruction so as to obtain an effect corresponding to dummy cycle 11 in FIG. 'aVA 34 allows different lengths of count values to be set depending on the type of mask change command sent from the instruction execution control unit of the CPUI.

カウンタ24は、設定された計数値を毎制御サイクルに
1づつ減じ、計数値がOになると計数動作を終了する。
The counter 24 decrements the set count value by 1 every control cycle, and when the count value reaches O, the counting operation ends.

カウンタ24の動作中、インクロ・ツク生成部25は制
御線26で次の命令の種類を識別して、それがマスク変
更命令であれば、その実行開始を遅延するために、カウ
ンタ24の計数値がOでない期間インクロック信号27
を上げる。
While the counter 24 is operating, the ink generator 25 identifies the type of the next instruction using the control line 26, and if it is a mask change instruction, the count value of the counter 24 is incremented to delay the start of execution. is not O during the period ink clock signal 27
raise.

CPUIの命令実行制御部はインクロック信号27がオ
フになるまで、次のマスク変更命令及びそれに後続する
命令の実行を遅延する。
The instruction execution control section of the CPU delays execution of the next mask change instruction and the instructions subsequent thereto until the ink clock signal 27 is turned off.

マスク設定検出部23は、マスクの中に1からOへ変更
されるものがあるか検査し、該当するマスクがある場合
には、カウンタ28に計数値をセ・ノドして、計数動作
を起動する。
The mask setting detection unit 23 checks whether there is any mask to be changed from 1 to O, and if there is a corresponding mask, it sets the count value to the counter 28 and starts the counting operation. do.

この計数値は、並行して実行されるMCU4へのマスク
情報転送により、新しい状態における割り込み信号がM
CU4から返送されて、割り込み受信レジスタ31に受
信されるまでに要する時間より小さくない時間に相当す
る制御サイクル数(前記例の場合10サイクル以上)と
する。
This count value is calculated by transferring the mask information to the MCU4, which is executed in parallel, so that the interrupt signal in the new state is
The number of control cycles (in the case of the above example, 10 cycles or more) corresponds to a time not smaller than the time required for the interrupt to be sent back from the CU 4 and received by the interrupt reception register 31.

カウンタ28は、毎制御サイクルに計数値を1減じ、計
数値がOになると計数動作を終了する。
The counter 28 decreases the count value by 1 in every control cycle, and when the count value reaches O, the counting operation ends.

カウンタ2Bは計数値が0でない間、割り込み抑止信号
29をオンにするので、この間割り込み受信レジスタ3
10割り込み信号はゲート32によって、割り込み処理
回路33への入力を抑止される。
Since the counter 2B turns on the interrupt inhibit signal 29 while the count value is not 0, the interrupt reception register 3
The 10 interrupt signal is inhibited from being input to the interrupt processing circuit 33 by the gate 32.

これにより、マスクが解除状態から設定状態に変更され
る場合には、以前のマスク情報で制御された割り込み信
号による、割り込みの発生を防ぐことができる。
Thereby, when the mask is changed from the canceled state to the set state, it is possible to prevent an interrupt from occurring due to an interrupt signal controlled by the previous mask information.

〔発明の効果〕〔Effect of the invention〕

以上の説明から明らかケように本発明によれば、入出力
割り込みに対するマスクの変更における、命令実行の抑
止及び割り込みの禁止が、真に必要な範囲のみに限定さ
れるので、中央処理装置等の動作効率を改善するという
著しい工業的効果がある。
As is clear from the above description, according to the present invention, when changing the mask for input/output interrupts, inhibition of instruction execution and prohibition of interrupts are limited only to the truly necessary range, so that the central processing unit, etc. There is a significant industrial effect of improving operating efficiency.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明一実施例構成のブロック図、第2図は情
報処理システムの構成図、 第3図は従来の制御シーケンスの説明図である。 図において、 1はCPU、     2はCHP。 3はMSU、      4はMCU。 21はマスクレジスタ、 22はマスク解除検出部、2
3はマスク解除検出部、24.28はカウンタ、25は
インクロック生成部、 30はマスク送出レジスタ、 31は割り込み受信レジスタ、 33は割り込み処理部を示す。
FIG. 1 is a block diagram of the configuration of an embodiment of the present invention, FIG. 2 is a configuration diagram of an information processing system, and FIG. 3 is an explanatory diagram of a conventional control sequence. In the figure, 1 is the CPU and 2 is the CHP. 3 is MSU, 4 is MCU. 21 is a mask register, 22 is a mask release detection unit, 2
3 is a mask release detection section, 24 and 28 are counters, 25 is an ink clock generation section, 30 is a mask sending register, 31 is an interrupt reception register, and 33 is an interrupt processing section.

Claims (1)

【特許請求の範囲】[Claims] チャネル制御装置の発行する、中央処理装置に対する入
出力割り込み信号を、システム制御装置が、該中央処理
装置の発行する割り込みマスク情報に従ってマスクして
、該中央処理装置に転送するように構成された情報処理
システムの、該中央処理装置が上記マスク情報を変更す
るマスク変更命令を実行するに際し、実行する該マスク
変更命令による該マスク情報の変化を識別し、設定状態
から解除状態に変化する該マスク情報があることを検出
した場合に、後続のマスク変更命令の実行を所定時間遅
延する手段、及び解除状態から設定状態に変化する該マ
スク情報があることを検出した場合に、上記入出力割り
込み信号の受信を所定時間抑止する手段を持つことを特
徴とする割り込み制御方式。
Information configured such that the system control unit masks an input/output interrupt signal issued by the channel control unit to the central processing unit according to interrupt mask information issued by the central processing unit, and transfers the masked signal to the central processing unit. When the central processing unit of the processing system executes a mask change command for changing the mask information, the mask information identifies a change in the mask information due to the executed mask change command, and changes the mask information from a set state to a canceled state. means for delaying the execution of a subsequent mask change command for a predetermined period of time when it is detected that there is mask information that changes from the release state to the set state; An interrupt control method characterized by having means for inhibiting reception for a predetermined period of time.
JP26792284A 1984-12-19 1984-12-19 Interruption controlling system Granted JPS61165138A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26792284A JPS61165138A (en) 1984-12-19 1984-12-19 Interruption controlling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26792284A JPS61165138A (en) 1984-12-19 1984-12-19 Interruption controlling system

Publications (2)

Publication Number Publication Date
JPS61165138A true JPS61165138A (en) 1986-07-25
JPH0452489B2 JPH0452489B2 (en) 1992-08-24

Family

ID=17451477

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26792284A Granted JPS61165138A (en) 1984-12-19 1984-12-19 Interruption controlling system

Country Status (1)

Country Link
JP (1) JPS61165138A (en)

Also Published As

Publication number Publication date
JPH0452489B2 (en) 1992-08-24

Similar Documents

Publication Publication Date Title
EP0045634B1 (en) Programmable digital data processing apparatus arranged for the execution of instructions in overlap
JP2943464B2 (en) Program control method and program control device
JP2748822B2 (en) Information processing device
JPS63127368A (en) Control system for vector processor
JPH03160548A (en) Device and method for guaranteeing separation timing of strobed signal
EP0196964B1 (en) System for adjusting performance of information processing apparatus
JPS61165138A (en) Interruption controlling system
US4566062A (en) Timing control system in data processor
US7421521B2 (en) System, method and device for real time control of processor
US5088035A (en) System for accelerating execution of program instructions by a microprocessor
JP2944111B2 (en) Request control method and storage control device
JPH0573296A (en) Microcomputer
JPS6299832A (en) Control system for computer
KR100672550B1 (en) Method for processing multiple interrupt
JPH02271437A (en) Task running time measuring system
JP2969844B2 (en) Programmable controller
JPS62243031A (en) Information processor
JPH0850567A (en) Data transfer device
JPH10161887A (en) Method and device for interruption signal synchronization
JPH0540621A (en) Microprocessor
JPH04148243A (en) Data tracing system
JPH0283779A (en) Instruction execution control system for vector processor
JPH04255056A (en) Dma controller
JPH01315828A (en) Performance adjusting control system for information processor
JPH0750444B2 (en) Micro program control system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees