[go: up one dir, main page]

JPS6182260A - I/O interrupt control method - Google Patents

I/O interrupt control method

Info

Publication number
JPS6182260A
JPS6182260A JP59185983A JP18598384A JPS6182260A JP S6182260 A JPS6182260 A JP S6182260A JP 59185983 A JP59185983 A JP 59185983A JP 18598384 A JP18598384 A JP 18598384A JP S6182260 A JPS6182260 A JP S6182260A
Authority
JP
Japan
Prior art keywords
input
interrupt
cpu
output
output adapter
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
JP59185983A
Other languages
Japanese (ja)
Other versions
JPH0337220B2 (en
Inventor
Tadashi Hanada
正 花田
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 JP59185983A priority Critical patent/JPS6182260A/en
Publication of JPS6182260A publication Critical patent/JPS6182260A/en
Publication of JPH0337220B2 publication Critical patent/JPH0337220B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/24Handling requests for interconnection or transfer for access to input/output bus using interrupt

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bus Control (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データ処理システムにおける割込み制御方式
に関し、特にCPUと入出力アダプタが独立して非同期
で動作するシステムにおいて、入出力アダプタからCP
Uへの割込み要求時にcpUが占有される時間を短縮し
て、入出力処理の高速化を可能にする入出力割込み制御
方式に関する。
Detailed Description of the Invention [Field of Industrial Application] The present invention relates to an interrupt control method in a data processing system, and particularly in a system where a CPU and an input/output adapter operate independently and asynchronously.
The present invention relates to an input/output interrupt control method that enables faster input/output processing by shortening the time during which a CPU is occupied when an interrupt request is made to a U.

〔従来の技術〕[Conventional technology]

第2図および第3図に、従来の典型的な入出力割込み制
御方式を2例示す。両図において、1はCPU、2は主
記憶装置、3はハス、4.5は入出力アダプタ、6は入
出力デバイス#1.7は入出力デバイス#2,8は割込
み情報である。
FIGS. 2 and 3 show two examples of conventional typical input/output interrupt control methods. In both figures, 1 is a CPU, 2 is a main storage device, 3 is a lotus, 4.5 is an input/output adapter, 6 is an input/output device #1, 7 is an input/output device #2, and 8 is interrupt information.

第2図の例では、入出力アダプタ4がたとえば入出力デ
バイス#1からの要求に基づき、CPU1に割込み要求
信号を上げると(■)、CPUIは割込みマスクのチェ
ックを行ない、マスクされていなければこれを受は付け
、入出力アダプタ4の割込み情報領域8から割込み情報
を直接読み出して(■)1割込み原因を解析する。すな
わち割込め原因の内容と割込め要求装置の入出カニニッ
トの機番(#1)を識別して対応する制御コマンド情報
を決定し、入出力アダプタ4へ書き込み制御するように
している。
In the example shown in Figure 2, when the input/output adapter 4 sends an interrupt request signal to the CPU 1 based on a request from the input/output device #1 (■), the CPU checks the interrupt mask, and if it is not masked, This is accepted, the interrupt information is directly read from the interrupt information area 8 of the input/output adapter 4, and the cause of the first interrupt is analyzed (■). That is, the content of the cause of the interrupt and the machine number (#1) of the input/output unit of the interrupt requesting device are identified, the corresponding control command information is determined, and the control command information is written to the input/output adapter 4 for control.

また第3図の例では、入出力アダプタ4からの割込み要
求(■′)に対して、CPUIは割込み許可を通知しく
■′)、入出力アダプタ4はこれに応じて、上記4.<
1装置2の予め定められた固定番地へ9割込み情報8お
よび入出カニニットの機番(#1)を格納する(■′)
。CP U 1はこの情報に基づいて割込め原因解析を
行ない、制御コマンド情報を設定し、入出力アダプタ4
を制御するようにしている。
In the example shown in FIG. 3, in response to an interrupt request (■') from the input/output adapter 4, the CPUI notifies interrupt permission (■'), and the input/output adapter 4 responds to the above-mentioned 4. <
1 Store the interrupt information 8 and the machine number (#1) of the input/output crab unit at a predetermined fixed address of the device 2 (■')
. Based on this information, the CPU 1 analyzes the cause of the interrupt, sets control command information, and sends the input/output adapter 4
I'm trying to control it.

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

第2図および第3図の例に見られるように、従来は2割
込み要求が上るごとに2人出力アダプタからCPUへ割
込め情報を転送する必要があり。
As seen in the examples of FIGS. 2 and 3, conventionally, it is necessary to transfer interrupt information from the two output adapters to the CPU every time two interrupt requests are received.

その間CPUが占有されるため、他の処理が遅れるとい
う問題があった。
Since the CPU is occupied during this time, there is a problem in that other processing is delayed.

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

本発明は、上記問題点を解決するために、入出力アダプ
タに対して、予め入出力デバイス機番ごとに上記1.a
装置内の割込み情報格納アドレスを通知しておき、入出
力アダプタは、動作中の入出力デバイスから終了割込み
が上げられたとき、  CPUへ直ちに割込み要求を上
げることをせず、その前に、先に通知された主記憶装置
のアドレスへ割込み情報を格納し、その後でCPUへ割
込み要求を上げるようにするものである。
In order to solve the above-mentioned problems, the present invention provides the above-mentioned 1. a
The input/output adapter is notified of the interrupt information storage address in the device, and when an end interrupt is raised from an active input/output device, it does not immediately raise an interrupt request to the CPU, but instead The interrupt information is stored in the main memory address notified by the CPU, and then an interrupt request is sent to the CPU.

そして本発明の構成は、それによりCPUと入出力アダ
プタとが非同期に動作するデータ処理システムにおいて
、CPUは予め入出力アダプタに対して入出力装置機番
ごとに定められた主記憶装置の割込み情報格納領域アド
レスを通知しておき。
According to the configuration of the present invention, in a data processing system in which a CPU and an input/output adapter operate asynchronously, the CPU receives interrupt information of the main storage device that is predetermined for each input/output device number for the input/output adapter. Notify me of the storage area address.

入出力アダプタは、CPUへ割込み要求を行なう際、ま
ず当該割込み情報を上記予め通知されている割込み情報
格納領域に格納した後で、cpuに対して割込み要求を
行ない、これに対してCPUから割込み許可通知があっ
たとき当該入出力装置機番をCPUへ通知し、CPUば
入出力アダプタから通知された入出力装置機番に基づい
て対応する割込み情報格納領域をアクセスし1割込み情
報を取り出して割込み処理を行なうことを特徴としてい
る。
When making an interrupt request to the CPU, the input/output adapter first stores the interrupt information in the interrupt information storage area notified in advance, then makes an interrupt request to the CPU, and in response, the CPU issues an interrupt. When a permission notification is received, the CPU is notified of the input/output device number, and the CPU accesses the corresponding interrupt information storage area based on the input/output device number notified from the input/output adapter and retrieves one interrupt information. It is characterized by interrupt processing.

〔発明の作用〕[Action of the invention]

本発明により、CPUは、入出力アダプタからの割込み
要求時に割込み情報を取り込む処理を行なう必要がなく
、入出力デバイスの機番のみで直接主記憶装置の所定の
アドレスを参照すればよいため、CPUの負担が軽減さ
れる。
According to the present invention, the CPU does not need to perform processing to capture interrupt information when receiving an interrupt request from an input/output adapter, and can directly refer to a predetermined address in the main storage device using only the machine number of the input/output device. The burden of this will be reduced.

〔実施例〕〔Example〕

第1図は9本発明の1実施例システムの構成図である。 FIG. 1 is a block diagram of a system according to an embodiment of the present invention.

図において、1はCP、U、2は主記憶装置、3はバス
、4,5は入出力アダプタ、6は人出力デバイス#1,
7は入出力デバイス#2. 8゜8′はそれぞれ入出力
デバイス#1.#2の割込み情報、9.9’は同じく入
出力デバイス#1. #2用のユニット制御ワードUC
W (#1)、UCW(#2) 、  10. 10’
は同じく入出力デバイス#1、#2用の割込み情報格納
領域、11は入出力デバイス機番と割込み情報格納領域
アドレスとの対応を与える管理テーブルである。また、
各ユニット制御ワードUCWには1割込み情報格納アド
レス領域9a、9a’が設けられている。
In the figure, 1 is the CP, U, 2 is the main storage, 3 is the bus, 4 and 5 are input/output adapters, 6 is human output device #1,
7 is input/output device #2. 8° and 8' are input/output devices #1, respectively. Interrupt information #2, 9.9' is also input/output device #1. Unit control word UC for #2
W (#1), UCW (#2), 10. 10'
Similarly, 11 is an interrupt information storage area for input/output devices #1 and #2, and 11 is a management table that provides correspondence between input/output device machine numbers and interrupt information storage area addresses. Also,
Each unit control word UCW is provided with one interrupt information storage address area 9a, 9a'.

ユニット制御ワードUCWは、入出力アダプタが配下の
複数の入出力デバイスを多重制御するための制御情報と
して使用され、9.9’で示されているように、予め入
出力アダプタ内に入出力デバイスごとに格納されている
。それぞれ、動作可能状態、動作状態9割込み保留状態
の3つの制御状態をもつ。動作可能状態はCP’Uから
の起動を待っている状態であり、CPUが入出力命令を
発行することにより起動され、動作状態に遷移する。
The unit control word UCW is used as control information for the input/output adapter to multiplex control multiple input/output devices under it. stored separately. Each has three control states: ready state, operating state 9 interrupt pending state. The ready state is a state waiting for activation from the CPU'U, and is activated when the CPU issues an input/output command, and transitions to the operational state.

ユニット制御ワードUCWの動作状態においては、UC
Wにより指定されるコマンドの内容たとえばデータ転送
を実行し、対応する入出力デバイスを起動してデータ転
送処理を行なう。そしてデータ転送終了により入出力デ
バイスから終了割込みが上がると2割込み保留状態に遷
移する。この状態は、CPUによる割込み処理が終了す
るまで維持され、制込み処理の終了により動作可能状態
に戻り、再び次の起動を待つ状態となる。
In the operating state of unit control word UCW, UC
The content of the command specified by W, for example, executes data transfer, activates the corresponding input/output device, and performs data transfer processing. Then, when a termination interrupt is raised from the input/output device due to the completion of data transfer, a transition is made to a 2-interrupt pending state. This state is maintained until the interrupt processing by the CPU is completed, and upon completion of the interrupt processing, the device returns to the operable state and returns to the state where it waits for the next activation.

さらに各入出力制御ワー)”UCW9,9’は2図示の
ように割込み情報格納アドレス領域9a、98′を有し
ており、それぞれIPL(初期プログラムローディング
)時に、CPUIにより主記憶装置2の割込み情報格納
領域10.10’のアドレスを設定される。
Furthermore, each input/output control word (UCW 9, 9') has interrupt information storage address areas 9a, 98' as shown in Figure 2. The address of the information storage area 10.10' is set.

人出力アダプタ4は、上記のユニット制御ワードLJ 
CW 4m能を用いて、各入出力デハイス6,7゜・・
・と主記憶装置2との間のデータ転送を、CPUから独
立して非同期に実行する。
The human output adapter 4 is connected to the unit control word LJ mentioned above.
Using CW 4m function, each input/output dehyce is 6,7°...
・Data transfer between the CPU and the main storage device 2 is executed asynchronously and independently from the CPU.

入出力アダプタ4は、入出力デバイスからの終了割込の
に応答し、CPUIに割込み要求を行なうが、それに先
立って1割込め情tilt(8,8’、・・・)にある
割込み情報を、ユニ・ノド制御ワーt″UCW(9,9
’、・・・)中の割込め情報格納アドレスが指す上記4
.を装置2の割込み情報格納領域(10゜10′、・・
・)へ転送する。
The input/output adapter 4 responds to the end interrupt from the input/output device and makes an interrupt request to the CPUI. , uni-nod control word t''UCW (9,9
4 above pointed to by the interrupt information storage address in ',...)
.. into the interrupt information storage area of device 2 (10°10',...
・Transfer to ).

割込み情報Gこは、データ転送終了時のコマンドアドレ
ス、制御フラグ、残りバイトカウント、入出力デバイス
ステータス、入出力アダプタステータス等が含まれる。
The interrupt information G includes the command address at the end of data transfer, control flag, remaining byte count, input/output device status, input/output adapter status, etc.

入出力アダプタ4は1割込み情報を上記1.a装置2の
指定された領域に格納した後、CPUIに割込み要求信
号を送る。そしてCPUIから受付けた旨の応答がある
と、今度は割込み要求源の入出力デハイス機番を3m知
する。
The input/output adapter 4 inputs 1 interrupt information into the above 1. After storing it in the designated area of the a device 2, an interrupt request signal is sent to the CPUI. When there is a response from the CPUI indicating that it has been accepted, the I/O device number 3m of the interrupt request source is known.

他方、CPUIでは、入出力アダプタ4からの上記割込
み要求信号を検出すると、マスクを調べ。
On the other hand, when the CPUI detects the interrupt request signal from the input/output adapter 4, it checks the mask.

受付は可能であれば入出力アダプタ4に受付げを通知す
る。次に入出力デバイスの機番が送られてくると、主記
憶装置2の管理テーブル11を参照し、その機番のアド
レスを求め、劃込み情報格納領域(10,10’、 ・
・・)中の該当するアドレスの領域から1割込み情報を
読み出す。
If the reception is possible, the input/output adapter 4 is notified of the reception. Next, when the machine number of the input/output device is sent, the management table 11 of the main storage device 2 is referred to, the address of the machine number is obtained, and the input information storage area (10, 10', ・
...) Read one interrupt information from the area of the corresponding address.

続いてCP U 1は、入出力アダプタ4に割込め情報
受信を通知する。入出力アダプタはこれにより当該入出
力デバイスの動作を終了させる。ずなわちそのUCWを
動作可能状態にする。
Subsequently, the CPU 1 notifies the input/output adapter 4 that the interrupt information has been received. The input/output adapter thereby terminates the operation of the input/output device. That is, the UCW is made operational.

次に、第4図のタイムチャートを用いて、第1図の実施
例システムの一連の動作を概略的に説明する。
Next, a series of operations of the embodiment system shown in FIG. 1 will be schematically explained using the time chart shown in FIG.

■は、IPL時であり、ユニット制御ワードUCWへの
割込み情報格納アドレスの設定が行なわれる。UCWは
動作可能となる。
(2) is the IPL time, and the interrupt information storage address is set in the unit control word UCW. UCW becomes operational.

■では、CPUから入出力アダプタへの起動が行なわれ
、UCW (#1)が動作状態となり、その結果、入出
力アダプタから人出ノコデバイス(#1)への起動が行
なわれる。
In (2), the CPU activates the input/output adapter, the UCW (#1) becomes operational, and as a result, the input/output adapter activates the manual saw device (#1).

■では、主記憶装置と入出力デバイス(#1)との間で
のデータ転送が実行される。
In (2), data transfer between the main storage device and the input/output device (#1) is executed.

■では、入出力デハイス(#1)からの終了割込みを受
けた入出力アダプタが、UCW (#1)を割込保留状
態にして割込み情報をUCW(#1)が指定する主記憶
装置の領域へ格納する。
In ■, the input/output adapter that receives the end interrupt from the input/output de-hysteret (#1) puts the UCW (#1) in the interrupt pending state and transfers the interrupt information to the area of the main storage device specified by the UCW (#1). Store it in

■では、入出力アダプタからCPUへ割込み要求を上げ
る。
In (2), an interrupt request is sent from the input/output adapter to the CPU.

■では、CPUから入出力アダプタへ受付は通知を出す
。入出力アダプタはこれに応答して入出力デバイス機番
を返す。
In (2), the CPU sends a notification to the input/output adapter. In response, the input/output adapter returns the input/output device number.

■では、CPUが主記憶装置の割込み情報の読み出し処
理を行なう。
In (2), the CPU performs a process of reading interrupt information from the main memory.

■では、CPUが入出力アダプタへ割込め情報の受信通
知を行なう。そして入出力アダプタは。
In (2), the CPU notifies the input/output adapter of reception of interrupt information. And the input/output adapter.

UCW(#1)を動作可能に戻す。Return UCW (#1) to operational status.

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

以上のように9本発明によれば、入出力アダプタからC
PtJへの割込み要求の際1割込み情報転送後に割込み
要求信号がCPUへ上げられるため。
As described above, according to the present invention, from the input/output adapter to the C
This is because when making an interrupt request to PtJ, the interrupt request signal is raised to the CPU after one interrupt information is transferred.

CPUはそれまで他の処理を行なっていることができ、
CPUの処理効率を向上させることができる。
Until then, the CPU can perform other processing,
The processing efficiency of the CPU can be improved.

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

第1図は本発明の1実施例システムの構成図。 第2図および第3図は従来方式の説明図、第4図は第1
図に示す実施例システムの動作例のタイムチャートであ
る。 図中、1はCPU、2は主記憶装置、3はバス。 4および5は入出力アダプタ、6および7は入出力デハ
イスの#1および#2,8および8′は割込み情報、9
および9′はユニット制御ワードのUCW(#I)およ
びUCW (#2)、9aおよび9a′は割込み情報格
納アドレス領域、10および10′は割込み情報格納領
域、11は管理テーブルを示す。
FIG. 1 is a configuration diagram of a system according to an embodiment of the present invention. Figures 2 and 3 are explanatory diagrams of the conventional method, and Figure 4 is the illustration of the 1st method.
3 is a time chart of an operation example of the embodiment system shown in the figure. In the figure, 1 is a CPU, 2 is a main storage device, and 3 is a bus. 4 and 5 are input/output adapters, 6 and 7 are input/output devices #1 and #2, 8 and 8' are interrupt information, 9
and 9' are unit control words UCW (#I) and UCW (#2), 9a and 9a' are interrupt information storage address areas, 10 and 10' are interrupt information storage areas, and 11 is a management table.

Claims (1)

【特許請求の範囲】[Claims] CPUと入出力アダプタとが非同期に動作するデータ処
理システムにおいて、CPUは予め入出力アダプタに対
して入出力装置機番ごとに定められた主記憶装置の割込
み情報格納領域アドレスを通知しておき、入出力アダプ
タは、CPUへ割込み要求を行なう際、まず当該割込み
情報を上記予め通知されている割込み情報格納領域に格
納した後で、CPUに対して割込み要求を行ない、これ
に対してCPUから割込み許可通知があったとき当該入
出力装置機番をCPUへ通知し、CPUは入出力アダプ
タから通知された入出力装置機番に基づいて対応する割
込み情報格納領域をアクセスし、割込み情報を取り出し
て割込み処理を行なうことを特徴とする入出力割込み制
御方式。
In a data processing system in which a CPU and an input/output adapter operate asynchronously, the CPU notifies the input/output adapter in advance of the interrupt information storage area address of the main storage device determined for each input/output device model number, When making an interrupt request to the CPU, the input/output adapter first stores the interrupt information in the interrupt information storage area notified in advance, then makes an interrupt request to the CPU, and in response, the CPU issues an interrupt. When a permission notification is received, the CPU is notified of the input/output device number, and the CPU accesses the corresponding interrupt information storage area based on the input/output device number notified from the input/output adapter, and retrieves the interrupt information. An input/output interrupt control method characterized by interrupt processing.
JP59185983A 1984-09-05 1984-09-05 I/O interrupt control method Granted JPS6182260A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59185983A JPS6182260A (en) 1984-09-05 1984-09-05 I/O interrupt control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59185983A JPS6182260A (en) 1984-09-05 1984-09-05 I/O interrupt control method

Publications (2)

Publication Number Publication Date
JPS6182260A true JPS6182260A (en) 1986-04-25
JPH0337220B2 JPH0337220B2 (en) 1991-06-04

Family

ID=16180304

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59185983A Granted JPS6182260A (en) 1984-09-05 1984-09-05 I/O interrupt control method

Country Status (1)

Country Link
JP (1) JPS6182260A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012506091A (en) * 2008-10-14 2012-03-08 フリースケール セミコンダクター インコーポレイテッド Interrupt approval in data processing systems

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012506091A (en) * 2008-10-14 2012-03-08 フリースケール セミコンダクター インコーポレイテッド Interrupt approval in data processing systems

Also Published As

Publication number Publication date
JPH0337220B2 (en) 1991-06-04

Similar Documents

Publication Publication Date Title
JPS59501802A (en) Method and apparatus for interprocess calls in multiprocessor systems
JPS6182260A (en) I/O interrupt control method
JPS61165170A (en) Bus control method
JPS6378257A (en) Input-output controller
JP2522412B2 (en) Communication method between programmable controller and input / output device
JP2501393B2 (en) Direct memory access device
JP2524620B2 (en) Input / output control method
JP2859396B2 (en) Data processing system
JP2594567B2 (en) Memory access control device
JPH0318144A (en) LAN adapter
JPS61117651A (en) Interface device
JPH0318951A (en) Exclusive control method for command
JPS6373458A (en) Shared memory access device
JPH02235134A (en) External storage device control system
JPH0638251B2 (en) Online method for multiple processors
JPS6245575B2 (en)
JPS62145345A (en) Direct memory access interval control method
JPS61183766A (en) DMA data transfer method
JPS60117361A (en) Storage device connection method
JPS61273659A (en) Data processing system
JPH04120648A (en) Common bus connection device
JPS6174045A (en) Channel control method in multiprocessor system
JPH0689254A (en) Information processor
JPH03296105A (en) Information transfer method for programmable controller
JPS63300346A (en) Dma control system