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

JPH0337220B2 - - Google Patents

Info

Publication number
JPH0337220B2
JPH0337220B2 JP59185983A JP18598384A JPH0337220B2 JP H0337220 B2 JPH0337220 B2 JP H0337220B2 JP 59185983 A JP59185983 A JP 59185983A JP 18598384 A JP18598384 A JP 18598384A JP H0337220 B2 JPH0337220 B2 JP H0337220B2
Authority
JP
Japan
Prior art keywords
input
interrupt
cpu
output
interrupt information
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.)
Expired
Application number
JP59185983A
Other languages
Japanese (ja)
Other versions
JPS6182260A (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 OR CALCULATING; 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)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データ処理システムにおける割込み
制御方式に関し、特にCPUと入出力アダプタが
独立して非同期で動作するシステムにおいて、入
出力アダプタからCPUへの割込み要求時に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 interrupt control method in a data processing system. CPU at interrupt request
The present invention relates to an input/output interrupt control method that enables faster input/output processing by shortening the time occupied by the interrupt.

〔従来の技術〕[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
2 is a main storage device, 3 is a bus, 4 and 5 are input/output adapters, 6 is an input/output device #1, 7 is an input/output device #2, and 8 is interrupt information.

第2図の例では、入出力アダプタ4がたとえば
入出力デバイス#1からの要求に基づき、CPU
1に割込み要求信号を上げると、CPU1は割
込みマスクのチエツクを行ない、マスクされてい
なければこれを受け付け、入出力アダプタ4の割
込み情報領域8から割込み情報を直接読み出して
、割込み原因を解析する。すなわち割込み原因
の内容と割込み要求装置の入出力ユニツトの機番
#1を識別して対応する制御コマンド情報を決定
し、入出力アダプタ4へ書き込み制御するように
している。
In the example shown in FIG.
When the interrupt request signal is raised to 1, the CPU 1 checks the interrupt mask, accepts it if it is not masked, directly reads the interrupt information from the interrupt information area 8 of the input/output adapter 4, and analyzes the cause of the interrupt. That is, the contents 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 information is written to the input/output adapter 4 for control.

また第3図の例では、入出力アダプタ4からの
割込み要求′に対して、CPU1は割込み許可を
通知し′、入出力アダプタ4はこれに応じて、
主記憶装置2の予め定められた固定番地へ、割込
み情報8および入出力ユニツトの機番#1を格納
する′。CPU1はこの情報に基づいて割込み原
因解析を行ない、制御コマンド情報を設定し、入
出力アダプタ4を制御するようにしている。
Further, in the example shown in FIG. 3, in response to an interrupt request 'from the input/output adapter 4, the CPU 1 notifies interrupt permission', and the input/output adapter 4 responds by
The interrupt information 8 and the machine number #1 of the input/output unit are stored at a predetermined fixed address in the main storage device 2. The CPU 1 analyzes the cause of the interrupt based on this information, sets control command information, and controls the input/output adapter 4.

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

第2図および第3図の例に見られるように、従
来は、割込み要求が上るごとに、入出力アダプタ
からCPUへ割込み情報を転送する必要があり、
その間CPUが占有されるため、他の処理が遅れ
るという問題があつた。
As seen in the examples in Figures 2 and 3, in the past, it was necessary to transfer interrupt information from the input/output adapter to the CPU each time an interrupt request was received.
During this time, the CPU was occupied, causing a problem with other processes being delayed.

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

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

そして本発明の構成は、それによりCPUと入
出力アダプタとが非同期に動作するデータ処理シ
ステムにおいて、CPUは予め入出力アダプタに
対して入出力装置機番ごとに定められた主記憶装
置の割込み情報格納領域アドレスを通知してお
き、入出力アダプタは、CPUへ割込み要求を行
なう際、まず当該割込み情報を上記予め通知され
ている割込み情報格納領域に格納した後で、
CPUに対して割込み要求を行ない、これに対し
てCPUから割込み要求を行ない、これに対して
CPUから割込み許可通知があつたとき当該入出
力装置機番をCPUへ通知し、CPUは入出力アダ
プタから通知された入出力装置機番に基づいて対
応する割込み情報格納領域をアクセスし、割込み
情報を取り出して割込み処理を行なうことを特徴
としている。
According to the configuration of the present invention, in a data processing system in which the CPU and the 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. The storage area address is notified, and when the input/output adapter makes an interrupt request to the CPU, it first stores the interrupt information in the interrupt information storage area notified in advance, and then
Make an interrupt request to the CPU, in response, make an interrupt request from the CPU, and in response
When an interrupt permission notification is received from the CPU, the relevant input/output device number is notified to the CPU, and the CPU accesses the corresponding interrupt information storage area based on the input/output device number notified from the input/output adapter. The feature is that it extracts the data and performs 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 only needs to refer directly to a predetermined address in the main storage device using only the model number of the input/output device. The burden of this will be reduced.

〔実施例〕〔Example〕

第1図は、本発明の1実施例システムの構成図
である。図において、1はCPU、2は主記憶装
置、3はバス、4,5は入出力アダプタ、6は入
出力デバイス#1、7は入出力デバイス#2、
8,8′はそれぞれ入出力デバイス#1,#2の
割込み情報、9,9′は同じく入出力デバイス
#1,#2用のユニツト制御ワードUCW#1、
UCW#2,10,10′は同じく入出力デバイス
#1、#2用の割込み情報格納領域、11は入出
力デバイス機番と割込み情報格納領域アドレスと
の対応を与える管理テーブルである。また、各ユ
ニツト制御ワードUCWには、割込み情報格納ア
ドレス領域9a,9a′が設けられている。
FIG. 1 is a configuration diagram of a system according to an embodiment of the present invention. In the figure, 1 is a CPU, 2 is a main storage device, 3 is a bus, 4 and 5 are input/output adapters, 6 is an input/output device #1, 7 is an input/output device #2,
8 and 8' indicate interrupt information for input/output devices #1 and #2, respectively; 9 and 9' indicate unit control word UCW#1 for input/output devices #1 and #2, respectively;
UCW #2, 10, and 10' are interrupt information storage areas for input/output devices #1 and #2, and 11 is a management table that provides correspondence between input/output device numbers and interrupt information storage area addresses. Further, each unit control word UCW is provided with interrupt information storage address areas 9a and 9a'.

ユニツト制御ワードUCWは、入出力アダプタ
が配下の複数の入出力デバイスを多重制御するた
めの制御情報として使用され、9,9′で示され
ているように、予め入出力アダプタ内に入出力デ
バイスごとに格納されている。それぞれ、動作可
能状態、動作状態、割込み保留状態の3つの制御
状態をもつ。動作可能状態はCPUからの起動を
待つている状態であり、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, and interrupt pending state. The ready state is a state waiting for activation from the CPU, and is activated when the CPU issues an input/output command, and transitions to the operational state.

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

さらに各入出力制御ワードUCW9,9′は、図
示のように割込み情報格納アドレス領域9a,9
a′を有しており、それぞれIPL(初期プログラム
ローデイング)時に、CPU1により主記憶装置
2の割込み情報格納領域10,10′のアドレス
を設定される。
Further, each input/output control word UCW9, 9' has an interrupt information storage address area 9a, 9' as shown in the figure.
a', and the addresses of the interrupt information storage areas 10 and 10' of the main storage device 2 are set by the CPU 1 at the time of IPL (initial program loading), respectively.

入出力アダプタ4は、上記のユニツト制御ワー
ドUCW機能を用いて、各入出力デバイス6,7,
…と主記憶装置2との間のデータ転送を、CPU
から独立して非同期に実行する。
The input/output adapter 4 uses the unit control word UCW function described above to control each input/output device 6, 7,
…and the main storage device 2, the CPU
Execute asynchronously and independently from

入出力アダプタ4は、入出力デバイスからの終
了割込みに応答し、CPU1に割込み要求を行な
うが、それに先立つて、割込み情報8,8′,…
にある割込み情報を、ユニツト制御ワードUCW
9,9′,…中の割込み情報格納アドレスが指す
主記憶装置2の割込み情報格納領域10,10′,
…へ転送する。
The input/output adapter 4 responds to the end interrupt from the input/output device and issues an interrupt request to the CPU 1, but prior to that, interrupt information 8, 8', . . .
The interrupt information in the unit control word UCW
Interrupt information storage areas 10, 10', of the main storage device 2 pointed to by the interrupt information storage addresses in 9, 9', .
Transfer to...

割込み情報には、データ転送終了時のコマンド
アドレス、制御フラグ、残りバイトカウント、入
出力デバイスステータス、入出力アダプタステー
タス等が含まれる。
The interrupt information 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は、割込み情報を主記憶装置
2の指定された領域に格納した後、CPU1に割
込み要求信号を送る。そしてCPU1から受付け
た旨の応答があると、今度は割込み要求源の入出
力デバイス機番を通知する。
The input/output adapter 4 stores the interrupt information in a designated area of the main storage device 2, and then sends an interrupt request signal to the CPU 1. When there is a response from the CPU 1 indicating acceptance, the CPU 1 notifies the input/output device number of the interrupt request source.

他方、CPU1では、入出力アダプタ4からの
上記割込み要求信号を検出すると、マスクを調
べ、受付け可能であれば入出力アダプタ4に受付
けを通知する。次に入出力デバイスの機番が送ら
れてくると、主記憶装置2の管理テーブル11を
参照し、その機番のアドレスを求め、割込み情報
格納領域10,10′,…中の該当するアドレス
の領域から、割込み情報を読み出す。
On the other hand, when the CPU 1 detects the interrupt request signal from the input/output adapter 4, the CPU 1 checks the mask and, if it is acceptable, notifies the input/output adapter 4 of acceptance. Next, when the machine number of the input/output device is sent, the management table 11 of the main memory 2 is referred to, the address of that machine number is obtained, and the corresponding address in the interrupt information storage area 10, 10',... Read interrupt information from the area.

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

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

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

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

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

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

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

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

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

では、CPUが入出力アダプタへ割込み情報の
受信通知を行なう。そして入出力アダプタは、
UCW#1を動作可能に戻す。
Then, the CPU notifies the input/output adapter of receiving interrupt information. And the input/output adapter is
Return UCW #1 to operational status.

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

以上のように、本発明によれば、入出力アダプ
タからCPUへの割込み要求の際、割込み情報転
送後に割込み要求信号がCPUへ上げられるため、
CPUはそれまで他の処理を行なつていることが
でき、CPUの処理効率を向上させることができ
る。
As described above, according to the present invention, when an interrupt request is made from the input/output adapter to the CPU, the interrupt request signal is raised to the CPU after the interrupt information is transferred.
The CPU can perform other processing until then, and 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#1およびUCW#2、9aおよび9a′は割
込み情報格納アドレス領域、10および10′は
割込み情報格納領域、11は管理テーブルを示
す。
FIG. 1 is a configuration diagram of a system according to an embodiment of the present invention.
2 and 3 are explanatory diagrams of the conventional system, and FIG. 4 is a time chart of an example of the operation of the embodiment system shown in FIG. In the figure, 1 is the CPU, 2 is the main memory, 3 is the bus,
4 and 5 are input/output adapters, 6 and 7 are input/output devices #1 and #2, 8 and 8' are interrupt information, and 9 and 9' are unit control words.
UCW#1 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] 1 CPUと入出力アダプタとが非同期に動作す
るデータ処理システムにおいて、CPUは予め入
出力アダプタに対して入出力装置機番ごとに定め
られた主記憶装置の割込み情報格納領域アドレス
を通知しておき、入出力アダプタは、CPUへ割
込み要求を行なう際、まず当該割込み情報を上記
予め通知されている割込み情報格納領域に格納し
た後で、CPUに対して割込み要求を行ない、こ
れに対してCPUから割込み許可通知があつたと
き当該入出力装置機番をCPUへ通知し、CPUは
入出力アダプタから通知された入出力装置機番に
基づいて対応する割込み情報格納領域をアクセス
し、割込み情報を取り出して割込み処理を行なう
ことを特徴とする入出力割込み制御方式。
1. In a data processing system in which the CPU and the 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 that has been notified in advance, then makes an interrupt request to the CPU, and in response, the When an interrupt permission notification is received, the relevant input/output device number is notified to the CPU, 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 that is characterized by performing interrupt processing.
JP59185983A 1984-09-05 1984-09-05 Input and output interruption control system Granted JPS6182260A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59185983A JPS6182260A (en) 1984-09-05 1984-09-05 Input and output interruption control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59185983A JPS6182260A (en) 1984-09-05 1984-09-05 Input and output interruption control system

Publications (2)

Publication Number Publication Date
JPS6182260A JPS6182260A (en) 1986-04-25
JPH0337220B2 true 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 Input and output interruption control system

Country Status (1)

Country Link
JP (1) JPS6182260A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7849247B2 (en) * 2008-10-14 2010-12-07 Freescale Semiconductor, Inc. Interrupt controller for accelerated interrupt handling in a data processing system and method thereof

Also Published As

Publication number Publication date
JPS6182260A (en) 1986-04-25

Similar Documents

Publication Publication Date Title
JPH0337220B2 (en)
JPH0511339B2 (en)
JP2522412B2 (en) Communication method between programmable controller and input / output device
JP2961542B2 (en) Data processing system
JPS61250758A (en) Communication controller
JP2594673B2 (en) Data processing method
JPH0260015B2 (en)
JP2501393B2 (en) Direct memory access device
JP3227274B2 (en) Link processing method of programmable controller
JPS63153635A (en) Specification system for data transfer speed
JP2524620B2 (en) Input / output control method
JPS63300346A (en) Dma control system
JPH0459635B2 (en)
JP2000010899A (en) Input/output processing system and its peripheral device control method, and recording medium where its control program is recorded
JPS63245754A (en) Input/output control system for information processing system
JPH0318951A (en) Exclusive control method for command
JPH0342740B2 (en)
JPH03246654A (en) Method for controlling data transfer
JPH0468458A (en) Data communication processing unit
JPH0316653B2 (en)
JPS62190544A (en) Higher link unit for programmable controller
JPH01248264A (en) System bus contention control method
JPH0241547A (en) I/O adapter status notification method
JPH0689254A (en) Information processor
JPS61131154A (en) Data transfer control system