JP2523167B2 - Command chain controller - Google Patents

Command chain controller

Info

Publication number
JP2523167B2
JP2523167B2 JP63252009A JP25200988A JP2523167B2 JP 2523167 B2 JP2523167 B2 JP 2523167B2 JP 63252009 A JP63252009 A JP 63252009A JP 25200988 A JP25200988 A JP 25200988A JP 2523167 B2 JP2523167 B2 JP 2523167B2
Authority
JP
Japan
Prior art keywords
command
input
chain
output
ccw
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 - Fee Related
Application number
JP63252009A
Other languages
Japanese (ja)
Other versions
JPH02100163A (en
Inventor
真広 栗田
浩一 贄
真二 紫原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP63252009A priority Critical patent/JP2523167B2/en
Publication of JPH02100163A publication Critical patent/JPH02100163A/en
Application granted granted Critical
Publication of JP2523167B2 publication Critical patent/JP2523167B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔概 要〕 情報処理装置にバスで接続される入出力制御装置にコ
マンドチェインが発行された場合のコマンドチェイン制
御装置に関し、 バスの負荷状況や入出力装置のバス使用優先度に影響
なく、高速かつ安定した性能で入出力動作が行われるよ
うにすることを目的とし、 情報処理装置に共通のバスで接続され、情報処理装置
の指示に従って配下の各入出力装置の行う入出力動作を
制御する入出力制御装置に対して、情報処理装置からコ
マンドが発行された場合の制御を行うコマンドチェイン
制御装置において、情報処理装置よりフェッチしたコマ
ンドを解析する手段と、前記解析した第1のコマンドに
チェインする第2のコマンドがある場合に、当該第1の
コマンドの処理実行前に当該第2のコマンドを前記情報
処理装置からプリフェッチする手段と、前記情報処理装
置からフェッチした第1および第2のコマンドを、当該
コマンドにチェインするコマンドの有無を指示するフラ
グとともに格納する手段と、前記フラグにもとづき、前
記格納されたコマンドチェインを構成する全てのコマン
ドのチェイン処理を行う手段と、を備える。
DETAILED DESCRIPTION OF THE INVENTION [Outline] The present invention relates to a command chain control device when a command chain is issued to an input / output control device connected to an information processing device by a bus, and relates to a bus load condition and a bus use of the input / output device. For the purpose of I / O operations being performed at high speed and with stable performance without affecting priority, it is connected to the information processing device via a common bus, and the I / O devices under it are connected according to the instructions of the information processing device. A command chain control device that controls an input / output control device that controls an input / output operation when a command is issued from the information processing device, and means for analyzing a command fetched from the information processing device; If there is a second command that is chained to the first command that was executed, the second command is executed before the processing of the first command is executed. Means for prefetching from the device, means for storing the first and second commands fetched from the information processing device together with a flag indicating whether or not there is a command to chain to the command, and the means for storing the command based on the flag. Means for performing chain processing of all the commands constituting the command chain.

〔産業上の利用分野〕[Industrial applications]

本発明は、情報処理装置にバスで接続される入出力制
御装置にコマンドが発行された場合のコマンドチェイン
装置に関する。
The present invention relates to a command chain device when a command is issued to an input / output control device connected to an information processing device via a bus.

〔従来の技術〕[Conventional technology]

情報処理装置は一般に多数の入出力装置を搭載してい
るが、これらの入出力装置と情報処理装置間の入出力動
作を制御するために入出力制御装置が用いられている。
An information processing apparatus is generally equipped with many input / output devices, and an input / output control device is used to control input / output operations between these input / output devices and the information processing device.

第5図は、入出力制御装置を用いた入出力制御方式の
原理図である。図において、21は情報処理装置、211は
入出力制御のための各種コマンドや転送データが格納さ
れる主記憶である。主記憶211には、コマンドチェイン
に用いられ各コマンドCCW31〜CCW33が例示されている。
FIG. 5 is a principle diagram of an input / output control system using the input / output control device. In the figure, 21 is an information processing device, and 211 is a main memory for storing various commands for input / output control and transfer data. The main memory 211 exemplifies the commands CCW 31 to CCW 33 used in the command chain.

22は入出力チャネルで、情報処理装置21から発行され
るコマンドの受付け及び入出力制御装置の状態の監視を
行うインタフェース部である。
Reference numeral 22 denotes an input / output channel, which is an interface unit that receives commands issued from the information processing device 21 and monitors the state of the input / output control device.

23は入出力制御装置で、マイクロプログラム制御方式
によりコマンドの解析、入出力装置固有の動作の制御、
複数ある入出力装置の監視,起動を行う。入出力チャネ
ル22に対しては、その標準的な制御と適合させる機能を
備えている。
23 is an input / output control device, which analyzes commands by the microprogram control method, controls the operation unique to the input / output device,
Monitors and starts multiple I / O devices. The I / O channel 22 is provided with the function of adapting to its standard control.

24A〜24Nは入出力制御装置23配下の各入出力装置、25
は入出力チャネル22と入出力制御装置23を接続する共通
のバス、26は入出力制御装置23と配下の各入出力装置24
A〜24Nを接続する入出力バスである。
24A to 24N are each input / output device under the input / output control device 23, 25
Is a common bus connecting the I / O channel 22 and the I / O controller 23, and 26 is the I / O controller 23 and each of the I / O devices 24 under it.
Input / output bus for connecting A to 24N.

次に、第5図の入出力制御動作について説明する。情
報処理装置21は、入出力チャネルに対してアクセス対象
入出力装置(24Aとする)の機器番号を指定したコマン
ドを発行する。入出力チャネル22は、該当する入出力装
置24Aを制御している入出力制御装置23に対し、このコ
マンドをバス25経由で受け渡す。
Next, the input / output control operation of FIG. 5 will be described. The information processing device 21 issues a command specifying the device number of the access target input / output device (24A) to the input / output channel. The input / output channel 22 passes this command via the bus 25 to the input / output control device 23 controlling the corresponding input / output device 24A.

入出力制御装置23は、受け取ったコマンドを解析して
指定された入出力装置24Aを起動し、コマンドの指示す
る書込み又は読出し等の入出力動作を制御する。
The input / output control device 23 analyzes the received command, activates the designated input / output device 24A, and controls the input / output operation such as writing or reading designated by the command.

この入出力動作には、一つのコマンドで行われるもの
と、複数のコマンドで行われるチェイニング方式による
ものとがある。
This input / output operation includes one performed by one command and one performed by a chaining method performed by a plurality of commands.

一つのコマンドで行われる入出力動作では、情報処理
装置21より基本形のコマンドが発行される。第4図
(A)は基本形のコマンド(COW10で示す)のフォーマ
ットの一例を示したものである。図において、CC部はコ
マンドコード部で、書込み、読出し等のコマンドの種別
がセットされる。制御フラグ部には、データチェインを
指示するチェインデータフラグ(以下、CDFで示す)、
コマンドチェインを指示するチェインコマンドフラグ
(以下、CCFで示す)、コマンドの終了を指示する終結
フラグ等の各種制御フラグがセットされる。データ部に
は、転送データの主記憶211上のアドレス及びデータ長
がセットされる。
In the input / output operation performed by one command, the information processing device 21 issues a basic command. FIG. 4 (A) shows an example of the format of the basic command (indicated by COW 10 ). In the figure, the CC section is a command code section, in which the type of command such as writing or reading is set. The control flag part has a chain data flag (hereinafter, referred to as CDF) for instructing a data chain,
Various control flags such as a chain command flag (hereinafter, referred to as CCF) for instructing a command chain and a termination flag for instructing the end of the command are set. The address and data length of the transfer data in the main memory 211 are set in the data section.

入出力制御装置23は、入出力チャネル22より受け取っ
たコマンドCCW10のコマンドコード部及び制御フラグ部
を解析してコマンドCCW10が基本形であると判別する
と、データ部で指示されたアドレス及びデータ長に従っ
て主記憶211と入出力装置24A間のデータ転送を制御す
る。コマンドCCW10の指示する入出力動作が終了する
と、入出力制御装置23は入出力チャネル22にコマンド処
理の終結を通知する。入出力チャネル22は、更にこの処
理終結を情報処理装置21に通知して、情報処理装置21よ
り通知されたコマンドの処理を終了する。
When the input / output control device 23 analyzes the command code part and control flag part of the command CCW 10 received from the input / output channel 22 and determines that the command CCW 10 is the basic form, the address and data length designated by the data part According to the above, data transfer between the main memory 211 and the input / output device 24A is controlled. When the input / output operation designated by the command CCW 10 is completed, the input / output controller 23 notifies the input / output channel 22 of the end of the command processing. The input / output channel 22 further notifies the information processing device 21 of this processing end, and ends the processing of the command notified from the information processing device 21.

次に、チェイニング方式による入出力動作では、一つ
のコマンドによる入出力動作が終了したとき、入出力制
御装置23は、情報処理装置21に入出力割込みを行うこと
なく入出力チャネル22を介して主記憶211より次のコマ
ンドをフェッチし、そのコマンドの指示する入出力動作
を行う。このチェィニング方式には、(a)データチェ
イン,(b)コマンドチェイン,(c)両者を混在する
方式がある。以下、これらの処理方法について簡単に説
明する。
Next, in the input / output operation by the chaining method, when the input / output operation by one command is completed, the input / output control device 23 does not perform an input / output interrupt to the information processing device 21 and outputs the information via the input / output channel 22. The next command is fetched from the main memory 211, and the input / output operation instructed by the command is performed. This chaining method includes a method in which (a) data chain, (b) command chain, and (c) both are mixed. Hereinafter, these processing methods will be briefly described.

(a) データチェイン データチェインでは、第4図(B)に示すように同一
種別の複数のコマンド(CCW21,CCW22,CCW23等で示す)
が発行され、一つの入出力動作により主記憶211上の複
数の領域との間でのデータ転送が行われる。すなわち、
これらのチェインされたコマンドCCW21〜CCW23が、一つ
のコマンドとして処理される。
(A) Data chain In the data chain, as shown in FIG. 4 (B), a plurality of commands of the same type (indicated by CCW 21 , CCW 22 , CCW 23, etc.)
Is issued and data is transferred to and from a plurality of areas on the main memory 211 by one input / output operation. That is,
These chained commands CCW 21 to CCW 23 are processed as one command.

各コマンドCCW21〜CCW23のフォーマットは基本形のコ
マンドCCW10と同じであるが、制御フラグ部中のチェイ
ンデータフラグCDFが「1」にセットされる。また、2
番目以降のコマンドCCW22及びCCW23のコマンドコードは
1番目のコマンドCCW1のコマンドコードと一致するので
無視される。
The commands CCW 21 to CCW 23 have the same format as the basic command CCW 10 , but the chain data flag CDF in the control flag portion is set to "1". Also, 2
The command codes of the second and subsequent commands CCW 22 and CCW 23 are ignored because they match the command code of the first command CCW 1 .

入出力制御装置23は、入出力チャネル22より受け取っ
た1番目コマンドCCW21のコマンドコード部CC及び制御
フラグ部を解析し、そのチェインデータフラグCDF21
「1」であることからデータチェイン処理であることを
検出する。
The input / output control device 23 analyzes the command code part CC and the control flag part of the first command CCW 21 received from the input / output channel 22, and because the chain data flag CDF 21 is “1”, the data chain processing is performed. Detect that there is.

データチェインの場合は、1番目のコマンドCCW21
データ部の指示するアドレス領域のデータについてその
コマンドコード部CCの指示する入出力処理が終了する
と、次のコマンドCCW22のデータ部の指示するアドレス
領域のデータについて、1番目のコマンドと同じ入出力
装置を行う。2番目のコマンドCCW22のチェインデータ
フラグCDF22が「1」のときは、コマンドCCW22のデータ
部の指示するアドレス領域のデータについての所定の入
出力動作が終了すると、次の第3番目のコマンドCCW23
のデータ部の指示するアドレス領域のデータについて同
様の入出力処理を行う。コマンドCCW23の制御フラグ部
の終結フラグはオンにセットされ、データチェインがコ
マンドCCW23で終結することが指示される。
In the case of the data chain, when the input / output processing instructed by the command code section CC of the data in the address section instructed by the data section of the first command CCW 21 is completed, the address instructed by the data section of the next command CCW 22 For the data in the area, the same input / output device as the first command is performed. Chain data flag CDF 22 of the second command CCW 22 is when the "1", when a predetermined input operation for the data of the address area to instruct the data portion of the command CCW 22 is completed, the next third Command CCW 23
The same input / output processing is performed on the data in the address area designated by the data section of the above. The termination flag in the control flag part of the command CCW 23 is set to ON, and the data chain is instructed to be terminated by the command CCW 23 .

すべてのチェインデータについての所定の入出力処理
が終了すると、入出力制御装置23は、入出力チャネル22
にコマンド処理の終結を通知する。入出力チャネル22
は、更にこの処理終結を情報処理装置21に通知して、情
報処理装置21より通知されたデータチェインの処理を終
了する。
When the predetermined input / output processing for all chain data is completed, the input / output controller 23 sets the input / output channel 22.
Notify the end of command processing to. I / O channel 22
Further notifies the information processing device 21 of the end of the processing, and ends the processing of the data chain notified by the information processing device 21.

(b) コマンドチェイン コマンドチェインでは、第4図(c)に示すように複
数のコマンド(CCW31,CCW32,CCW33等で示す)がチェイ
ンになって発行され、一つのコマンドの指示する入出力
動作が終了したとき、情報処理装置21に対して入出力割
込みを起さずに、自動的に次のコマンドを主記憶211よ
りフェッチし、そのコマンドの指示する新しい入出力動
作が行われる。
(B) Command chain In the command chain, as shown in FIG. 4 (c), a plurality of commands (indicated by CCW 31 , CCW 32 , CCW 33, etc.) are issued in a chain, and the command specified by one command is issued. When the output operation ends, the next command is automatically fetched from the main memory 211 without causing an input / output interrupt to the information processing device 21, and a new input / output operation instructed by the command is performed.

各コマンドCCW31〜CCW33はフォーマットは基本形のコ
マンドCCW10と同じであるが、制御フラグ部中のチェイ
ンコマンドフラグCCFが「1」にセットされ、チェイン
データフラグCDFが「0」にセットされる。
The commands CCW 31 to CCW 33 have the same format as the basic command CCW 10 , but the chain command flag CCF in the control flag section is set to "1" and the chain data flag CDF is set to "0". .

入出力制御装置23は、入出力チャネル22より受け取っ
た1番目のコマンドCCW31のコマンドコード部CC及び制
御フラグ部を解析し、そのチェインコマンドフラグCCF
31が「1」でチェインデータフラグCDFが「0」である
ことからコマンドチェイン処理であることを検出する。
The input / output control device 23 analyzes the command code portion CC and the control flag portion of the first command CCW 31 received from the input / output channel 22, and outputs the chain command flag CCF.
Since 31 is "1" and the chain data flag CDF is "0", it is detected that the command chain process is in progress.

コマンドチェインの場合は、各コマンドの入出力動作
は基本形のコマンドCCW10と同様にして行われるが、各
コマンドCCW31〜CCW33は、第5図に図示するようにチェ
インの形で連続して主記憶211上に配列されているの
で、2番目以降のコマンドの主記憶211上のアドレスは
1番目のコマンドCCW31のアドレスから順次自動的に求
められる。
In the case of the command chain, the input / output operation of each command is performed in the same manner as the basic type command CCW 10 , but the commands CCW 31 to CCW 33 are consecutive in the form of a chain as shown in FIG. Since the addresses are arranged on the main memory 211, the addresses of the second and subsequent commands on the main memory 211 are automatically obtained sequentially from the address of the first command CCW 31 .

したがって、1番目のコマンドCCW31の入出力処理が
終了すると、入出力装置23は情報処理装置21に対して入
出力割込みを起すことなく、その内部で求めた次の2番
目のコマンドCCW32を入出力チャネル22を介して主記憶2
11よりフェッチし、そのコマンドCCW32のコマンドコー
ド部CCの指示する新しい入出力動作を制御する。
Therefore, when the input / output processing of the first command CCW 31 is completed, the input / output device 23 does not cause an input / output interrupt to the information processing device 21 and executes the next second command CCW 32 obtained internally. Main memory 2 via I / O channel 22
It fetches from 11 and controls the new input / output operation instructed by the command code section CC of the command CCW 32 .

以下同様にしてコマンドCCW32の入出力処理が終了す
ると次の第3番目のコマンドCCW33を主記憶211よりフェ
ッチし、コマンドCCW33の指示する入出力動作を制御す
る。コマンドCCW33の制御フラグ部の終結フラグはオン
にセットれ、コマンドチェインがコマンドCCW33で終結
することが指示される。
Similarly, when the input / output processing of the command CCW 32 is completed, the next third command CCW 33 is fetched from the main memory 211 and the input / output operation instructed by the command CCW 33 is controlled. The termination flag in the control flag part of the command CCW 33 is set to ON, and it is instructed that the command chain is terminated by the command CCW 33 .

すべてのチェインコマンドについての所定の入出力処
理が終了すると、入出力制御装置23は、入出力チャネル
22にコマンド処理の終結を通知する。入出力チャネル22
は、更にこの処理終結を情報処理装置21に通知して、情
報処理装置21より通知されたコマンドチェインの処理を
終了する。
When the predetermined I / O processing for all chain commands is completed, the I / O controller 23 determines the I / O channel.
Notify 22 of the end of command processing. I / O channel 22
Further informs the information processing device 21 of the end of the processing, and ends the processing of the command chain notified by the information processing device 21.

(c) データチェイン及びコマンドチェインの混在す
る場合、 この場合は、第4図(D)に示すように、データチェ
イン(CCW41及びCCW42)を1個のコマンドとして、これ
と次のコマンド(CCW43)がコマンドチェインを構成す
る。
(C) When the data chain and the command chain are mixed, in this case, as shown in FIG. 4 (D), the data chain (CCW 41 and CCW 42 ) is regarded as one command, and this and the next command ( CCW 43 ) constitutes the command chain.

データチェインのコマンド部分CCW41及びCCW42につい
ては、前述の(a)と同様にしてデータチェイン処理が
行われ、続くコマンドCCW44については、前述の(b)
と同様にしてコマンドチェイン処理が行われる。
For the command parts CCW 41 and CCW 42 of the data chain, the data chain processing is performed in the same manner as (a) above, and for the subsequent command CCW 44 , the above (b)
Command chain processing is performed in the same manner as.

以上説明した各コマンド処理において、情報処理装置
21は、入出力チャネル22に入出力命令を与えて起動する
とそれ以降は入出力処理から解放され、入出力処理が終
了して入出力チャネル22より入出力割込みが上ってくる
まで他の処理を実行することができる。
In each command processing described above, the information processing device
When the I / O channel 22 is started by giving an I / O command to it, the I / O channel 22 is released from I / O processing after that, and other processing is performed until the I / O processing ends and an I / O interrupt comes up from the I / O channel 22. Can be executed.

基本形のコマンドCCW10では、各コマンドの処理終了
毎に入出力チャネル22より情報処理装置21に対して入出
力割込みが行われる。データチェインでは全体が1個の
コマンドとして取り扱われ、全データの入出力処理が終
了した後に情報処理装置21に対して入出力割込みが行わ
れる。コマンドチェインでは、各コマンドの処理終了毎
に主記憶211から次のコマンドがフェッチされるが、情
報処理装置21に対する入出力割込みは、全コマンドの処
理終了後に行われる、両者が混在する場合は、データチ
ェイン及びコマンドチェインの両者の処理終了後に情報
処理装置21に対して入出力割込みが行われる。
In the basic command CCW 10 , an input / output interrupt is issued from the input / output channel 22 to the information processing device 21 each time the processing of each command is completed. The entire data chain is treated as one command, and an input / output interrupt is issued to the information processing device 21 after the input / output processing of all data is completed. In the command chain, the next command is fetched from the main memory 211 each time the processing of each command ends, but the input / output interrupt to the information processing device 21 is performed after the processing of all commands is completed. An input / output interrupt is issued to the information processing device 21 after the processing of both the data chain and the command chain is completed.

このように、データチェインやコマンドチェインを行
うことにより、入出力処理を効率的に行うことができる
とともに、入出力割込み回数が減少されるので情報処理
装置の負荷を軽減し、その処理効率を向上させることが
できる。
By thus performing the data chain and the command chain, the input / output processing can be efficiently performed, and the number of input / output interrupts is reduced, which reduces the load on the information processing device and improves the processing efficiency. Can be made.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

情報処理装置21と各入出力装置24A〜24N間の入出力処
理は、前述のようにデータチェインやコマンドチェイン
により効率的に行うことができる。
The input / output processing between the information processing device 21 and each of the input / output devices 24A to 24N can be efficiently performed by the data chain or the command chain as described above.

しかし、情報処理装置21と各入出力装置24A〜24Nは共
通のバス25を介して接続されるので、バス25に接続され
る入出力装置の数が多くなるとバスの負荷が問題とな
る。特に大型の情報処理装置は極めて多くの入出力装置
を搭載するので、バスが過負荷の問題が顕著になる。
However, since the information processing device 21 and each of the input / output devices 24A to 24N are connected via the common bus 25, if the number of input / output devices connected to the bus 25 increases, the bus load becomes a problem. In particular, since a large-sized information processing device is equipped with an extremely large number of input / output devices, the problem of bus overload becomes significant.

そこで、バスが過負荷とならないようにするため、通
常の入出力装置の種類に応じてバス使用に優先度を付与
し、入出力割込みが競合しバスの負荷が高くなった場合
には、優先度の高い入出力装置が優先的にバスを使用で
きるようにしている。
Therefore, in order to prevent the bus from becoming overloaded, priority is given to the bus usage according to the type of normal I / O device, and when the bus load becomes high due to contention of I / O interrupts, priority is given to it. Highly frequent I / O devices are given priority to use the bus.

しかしながら、このように入出力装置のバス使用に優
先度を付与すると、バスの負荷が高い場合は、優先度の
低い入出力装置はバスを使用することができないので、
入出力処理が遅れ、、入出力処理効率がバスの負荷状況
によって左右されて安定した性能が得られないという問
題があった。
However, when the priority is given to the bus use of the input / output device in this way, when the load on the bus is high, the input / output device with a low priority cannot use the bus.
There was a problem that the input / output processing was delayed and the input / output processing efficiency was affected by the load condition of the bus, and stable performance could not be obtained.

データチェインの場合は、全体が1個のコマンドと考
えられ、データチェイン処理の中で行われる入出力処理
の内容は変らないので(例えば書込み処理,読取り処
理)、バスが使用できなくて次のデータのフェッチが遅
れても、所定の入出力処理の終了が遅くなるが、その入
出力処理自体がエラーとなることは通常ない。
In the case of the data chain, the entire command is considered to be one command, and the contents of the input / output processing performed during the data chain processing does not change (for example, write processing and read processing), so the bus cannot be used and the next Even if the data fetch is delayed, the completion of the predetermined input / output processing will be delayed, but the input / output processing itself does not usually result in an error.

これに対して、コマンドチェインの場合は、一つのコ
マンド処理が終了したとき、バスが使用できなくて次の
コマンドのフェッチが遅れると、次のコマンド処理が実
行できなくなるので、全体の処理が遅れるのみならず、
コマンドチェインの処理が正常に行われなくなる場合が
生じる。例えば通信制御装置のように相手と遣り取りを
行う入出力装置の場合、次のコマンドで相手からのデー
タの受信処理を行うものであるとすると、次のコマンド
のフェッチが遅れると相手からのデータが受信できなく
なるという問題が生じる。
On the other hand, in the case of the command chain, when the processing of one command is completed and the fetch of the next command is delayed because the bus cannot be used, the next command processing cannot be executed, so the overall processing is delayed. As well,
The command chain may not be processed normally. For example, in the case of an input / output device such as a communication control device that exchanges data with the other party, if the next command receives data from the other party, the data from the other party will be delayed if the fetch of the next command is delayed. There is a problem that it becomes impossible to receive.

本発明は、入出力制御装置へのコマンドがコマンドチ
ェインの場合において、バスの負荷状況及び入出力装置
のバス使用優先度に影響されずに、高速でかつ性能が安
定した入出力動作が行われるように改良したコマンドチ
ェイン制御装置を提供することを目的とする。
According to the present invention, when the command to the input / output control device is a command chain, high-speed and stable input / output operation is performed without being affected by the load status of the bus and the bus use priority of the input / output device. An object of the present invention is to provide an improved command chain control device.

〔課題を解決するための手段〕[Means for solving the problem]

前述の課題を解決するために本発明が採用した手段
を、第1図の原理図を参照して説明する。
Means adopted by the present invention to solve the above problems will be described with reference to the principle diagram of FIG.

第1図において、11は情報処理装置、111は入出力制
御のための各種コマンドや転送データが格納される主記
憶である。主記憶111において、CCW31,CCW32等はチャネ
ルコマンド語で、チェイン形式で連続して主記憶111上
に配列される。CAWはチャネルアドレス語で、最初のCCW
(コマンドチェインの場合は、CCW31)の主記憶111上の
アドレスを指示する。コマンドチェインでは、1番目の
コマンドCCW31のアドレスが指示されれば、2番目のコ
マンドCCW32以後の各CCWの主記憶111上のアドレスは、
1番目のコマンドCCW31のアドレス及び各CCWの長さより
自動的に求められる。
In FIG. 1, 11 is an information processing apparatus, and 111 is a main memory for storing various commands for input / output control and transfer data. In the main memory 111, CCW 31 , CCW 32 and the like are channel command words, which are continuously arranged in a chain format on the main memory 111. CAW is the channel address word, the first CCW
The address on the main memory 111 of (CCW 31 in the case of command chain) is designated. In the command chain, if the address of the first command CCW 31 is designated, the address on the main memory 111 of each CCW after the second command CCW 32 is
It is automatically obtained from the address of the first command CCW 31 and the length of each CCW.

12は入出力制御装置で、マイクロプログラム制御で入
力コマンドの解析,入出力装置固有の動作の制御,複数
ある入出力装置の監視,起動を行う。入出力チャネルが
ある場合は、入出力チャネルの標準的な制御と適合させ
る。
Reference numeral 12 is an input / output control device, which analyzes the input commands by microprogram control, controls the operation peculiar to the input / output device, and monitors and starts a plurality of input / output devices. If there is an I / O channel, match standard I / O channel controls.

入出力制御装置12の内部は、入出力制御装置12のソフ
トウェア構造を示したものである。120は入出力制御装
置内メモリ(以下、IOCメモリで示す)で、内部にマイ
クロプログラム領域121,プリフェッチコマンド領域122,
チェイン指示フラグ領域123及び制御領域124を備えてい
る。マイクロプログラム領域121には、マイクロプログ
ラム制御を行うマイクロプログラムMCPが格納される。
プリフェッチコマンド領域122には、主記憶111よりプリ
フェッチされた各コマンドが格納される。チェイン指示
フラグ領域123には、チェイン指示フラグ(CIFで示す)
が格納される。チェイン指示フラグCIFは各プリフェッ
チコマンドに対応して設けられ、そのプリフェッチコマ
ンドにチェインする場合にはオンにセットされ、ないと
きにはオフにクリアされる。制御領域124には、入出力
装置を動作させるための各情報が設定される。
The inside of the input / output control device 12 shows the software structure of the input / output control device 12. Reference numeral 120 denotes a memory in the input / output control device (hereinafter referred to as IOC memory), which internally has a microprogram area 121, a prefetch command area 122,
A chain instruction flag area 123 and a control area 124 are provided. The micro program area 121 stores a micro program MCP for performing micro program control.
The prefetch command area 122 stores each command prefetched from the main memory 111. The chain instruction flag area 123 has a chain instruction flag (indicated by CIF).
Is stored. The chain instruction flag CIF is provided corresponding to each prefetch command, and is set to ON when chaining to the prefetch command, and cleared to OFF when there is no prefetch command. Each information for operating the input / output device is set in the control area 124.

13A〜13Nは、入出力制御装置12配下の各入出力装置で
ある。14は情報処理装置11と入出力制御装置12を接続す
る共通のバス、15は入出力制御装置12と配下の入出力装
置13A〜13Nを接続する入出力バスである。
13A to 13N are input / output devices under the input / output control device 12. Reference numeral 14 is a common bus that connects the information processing device 11 and the input / output control device 12, and 15 is an input / output bus that connects the input / output control device 12 and the subordinate input / output devices 13A to 13N.

16は入出力チャネルで、情報処理装置11から発行され
るコマンドの受付け及び入出力制御装置12の状態の監視
を行うインタフェース部である。ただし、入出力チャネ
ル16は必須のものでなく、情報処理装置11によって行う
ようにしてもよい。
Reference numeral 16 denotes an input / output channel, which is an interface unit that receives commands issued from the information processing device 11 and monitors the state of the input / output control device 12. However, the input / output channel 16 is not essential, and may be performed by the information processing device 11.

本発明は以上説明したシステムによって実施されるも
のであって、以下のように構成される。
The present invention is implemented by the system described above and is configured as follows.

すなわち、情報処理装置11に共通のバス14で接続さ
れ、情報処理装置11の指示に従ってマイクロプログラム
制御で配下の各入出力装置13A〜13Nの行う入出力動作を
制御する入出力制御装置12に対して、情報処理装置11か
らコマンドが発行された場合のコマンドチェイン制御装
置において、 情報処理装置よりフェッチしたコマンドを解析する手
段と、 前記解析した第1のコマンドにチェインする第2のコ
マンドがある場合に、当該第1のコマンドの処理実行前
に当該第2のコマンドを前記情報処理装置からプリフェ
ッチする手段と、 前記情報処理装置からフェッチした第1および第2の
コマンドを、当該コマンドにチェインするコマンドの有
無を指示するフラグとともに格納する手段と、 前記フラグにもとづき、前記格納されたコマンドチェ
インを構成する全てのコマンドのチェイン処理を行う手
段と、 を備える。
That is, to the input / output control device 12 which is connected to the information processing device 11 by the common bus 14 and controls the input / output operation performed by each of the subordinate input / output devices 13A to 13N by microprogram control according to the instruction of the information processing device 11. In the command chain control device when a command is issued from the information processing device 11, when there is a means for analyzing the command fetched from the information processing device and a second command chained to the analyzed first command. Means for prefetching the second command from the information processing apparatus before the execution of the processing of the first command, and a command for chaining the first and second commands fetched from the information processing apparatus to the command. Means for storing together with a flag for instructing the presence or absence of the command chain, and the stored command chain based on the flag. And means for performing chain processing of all commands to configure.

〔作 用〕[Work]

入出力制御装置12のマイクロプログラムMCP(マイク
ロプログラム領域121にある)は、バス14経由で情報処
理装置11よりフェッチした最初のコマンド(CCW31で示
す)を解析する(コマンドを解析するのは、図示しない
入出力制御装置11のマイクロプロセッサがマイクロプロ
グラムに従って行うものであるが、簡単のため以下上記
のようにいう)。
The microprogram MCP (in the microprogram area 121) of the input / output control device 12 analyzes the first command (indicated by CCW 31 ) fetched from the information processing device 11 via the bus 14 (to analyze the command, The microprocessor of the input / output control device 11 (not shown) performs this according to a micro program, but for simplicity, it will be referred to as above).

最初のコマンドにチェインするコマンドがあるとき、
すなわちコマンドチェインであるときは、最初のコマン
ド処理実行を留保して、マイクロプログラムMCPは次の
コマンド(CCW32で示す)を主記憶111よりプリフェッチ
する。プリフェッチされた2番目のコマンドCCW32は、
最初のコマンドCCW31とともに、プリフェッチコマンド
領域122の所定位置に格納される。
When there is a chaining command in the first command,
That is, in the case of the command chain, the first command processing execution is reserved, and the microprogram MCP prefetches the next command (indicated by CCW 32 ) from the main memory 111. The second prefetched command CCW 32 is
It is stored at a predetermined position in the prefetch command area 122 together with the first command CCW 31 .

それとともに、チェイン指示領域123にある最初のコ
マンドCCW31に対応するチェイン指示フラグ(CIF31で示
す)をオンにセットする。
At the same time, the chain instruction flag (indicated by CIF 31 ) corresponding to the first command CCW 31 in the chain instruction area 123 is set to ON.

マイクロプログラムMCPはプリフェッチした2番目の
コマンドCCW32を解析し、次にチェインするコマンドの
有無を検出する。
The microprogram MCP analyzes the prefetched second command CCW 32 and detects the presence or absence of the next chained command.

次にチェインするコマンドがあるときは、チェインす
る3番目のコマンド(CCW33)で示すを主記憶111よりプ
リフェッチして、プリフェッチコマンド領域122の所定
位置に格納する。それとともに、チェイン指示領域123
にある2番目のコマンドCCW32に対応するチェイン指示
フラグ(CIF32で示す)をオンにセットする。
When there is a command to be chained next, the third command (CCW 33 ) to be chained is prefetched from the main memory 111 and stored in a predetermined position of the prefetch command area 122. Along with that, the chain instruction area 123
The chain instruction flag (indicated by CIF 32 ) corresponding to the second command CCW 32 in the above is set to ON.

以下同様にして、チェインするコマンドを順番にプリ
フェッチしてプリフェッチコマンド領域122の所定位置
に格納し、対応するチェイン指示フラグCIFをオンにセ
ットする。チェインコマンドの最後のコマンドにはチェ
インするコマンドが存在しないので、対応するチェイン
指示フラグCIFをオフにクリアする。
Similarly, the commands to be chained are sequentially prefetched and stored in a predetermined position of the prefetch command area 122, and the corresponding chain instruction flag CIF is set to ON. Since there is no chaining command in the last command of the chain commands, the corresponding chain instruction flag CIF is cleared to off.

チェインされている全コマンドのプリフェッチが終了
すると、マイクロプログラムはコマンドチェイン処理を
開始する。
When all the commands in the chain have been prefetched, the microprogram starts the command chain process.

最初のコマンドCCW31をプリフェッチコマンド領域122
より取り出してそのコマンド処理を実行する。コマンド
CCW31の終結結果においてそのチェイン指示フラグCIF31
を参照し、オンにセットされていることが検出されたと
きは、終結しようとしているコマンドCCW31がエラー終
結でないことを確認した後、プリフェッチコマンド領域
122の所定位置より2番目のコマンドCCW32を取り出して
その処理を実行する。
First command CCW 31 prefetch command area 122
To retrieve and execute the command processing. command
In the result of termination of CCW 31 , its chain instruction flag CIF 31
When it is detected that the command is set to ON, the command CCW 31 to be terminated is confirmed not to be in error termination, and then the prefetch command area
The second command CCW 32 is fetched from the predetermined position 122 and its processing is executed.

以下同様にして、一つのコマンドCCW3jの終結処理に
おいてそのチェイン指示フラグCIF3jがオンのときは、
次のコマンドをプリフェッチコマンド領域122より取り
出して実行する。
Similarly, when the chain instruction flag CIF 3j is turned on in the termination processing of one command CCW 3j ,
The next command is fetched from the prefetch command area 122 and executed.

コマンドCCW3jのチェイン指示フラグCIF3jがオフにク
リアされているときは、コマンドチェインが終結したこ
とを認識し、情報処理装置11に処理終結を通知してコマ
ンドチェイン処理を終了する。
When a command CCW 3j of chain indication flag CIF 3j is cleared off, it recognizes that the command chain is terminated, and terminates the command chain processing notifies the processing termination to the information processing apparatus 11.

以上のように、コマンドチェインを構成する全コマン
ドを入出力制御装置内にプリフェッチした後にコマンド
チェインを実行するようにしたので、一つのコマンドが
終結するたびにバスを経由して次のコマンドをフェッチ
する必要なく、入出力制御装置内でコマンドチェインを
実行することができる。
As described above, the command chain is executed after prefetching all the commands that make up the command chain into the I / O controller, so the next command is fetched via the bus each time one command is completed. The command chain can be executed in the I / O controller without needing to do so.

これにより入出力制御装置内でのコマンドチェインが
実行できるので、バスの負荷状況及び入出力装置のバス
使用優先度に影響を受けることなく、高速でかつ性能が
安定した入出力動作を行うことができる。
As a result, the command chain in the I / O controller can be executed, so high-speed and stable I / O operations can be performed without being affected by the load status of the bus and the priority of bus usage of the I / O device. it can.

〔実施例〕〔Example〕

本発明の実施例を、第1図〜第4図を参照して説明す
る。第2図は本発明の一実施例のコマンドプリフェッチ
処理フローチャート、第3図は同実施例コマンドチェイ
ン処理フローチャートである。第1図の実施システム及
び第4図の各コマンドのフォーマットについては、既に
説明したとおりである。第1図の実施システムは、本発
明の一実施例の実施システムとして使用される。
An embodiment of the present invention will be described with reference to FIGS. FIG. 2 is a command prefetch processing flowchart of one embodiment of the present invention, and FIG. 3 is a command chain processing flowchart of the same embodiment. The formats of the implementation system of FIG. 1 and the commands of FIG. 4 are as described above. The implementation system of FIG. 1 is used as an implementation system of an embodiment of the present invention.

以下、第4図(D)に示されるように、コマンドCCW
41及びCCW42がデータチェインを構成し、これと次とコ
マンドCCW43がコマンドチェインを構成する場合を例に
とって本発明の一実施例の動作を説明する。
Hereinafter, as shown in FIG. 4 (D), the command CCW
The operation of one embodiment of the present invention will be described by exemplifying a case where 41 and CCW 42 form a data chain, and this and the next command CCW 43 form a command chain.

(A)コマンドプリフェッチ処理 実施例のコマンドプリフェッチ処理を、第2図のコマ
ンドプリフェッチ処理を参照し、その処理ステップに従
って説明する。なお、以下の各処理は、特に指示しない
限り、マイクロプログラム領域121にあるマイクロプロ
グラムMCPによって制御、実行されるものである。
(A) Command Prefetch Process The command prefetch process of the embodiment will be described with reference to the command prefetch process of FIG. 2 and the processing steps thereof. Unless otherwise specified, the following processes are controlled and executed by the microprogram MCP in the microprogram area 121.

処理S11,S12 情報処理装置11は、入出力処理を行う入出力装置(13
Aとする)を起動するSIO(start I/O)命令を入出力チ
ャネル16に発行する(処理S11)。入出力チャネル16
は、指示された入出力装置13Aを制御する入出力制御装
置12が使用可能状態であることを確認すると、主記憶11
1上にある入出力装置13Aのチャネルアドレス語CAWを取
り出して入出力制御装置12に送る(処理S12)。
Processing S 11 , S 12 The information processing device 11 is an input / output device (13
A SIO (start I / O) instruction for activating (A) is issued to the I / O channel 16 (process S 11 ). I / O channel 16
Confirms that the input / output control device 12 controlling the instructed input / output device 13A is in the usable state, the main memory 11
Remove the channel address word CAW output devices 13A located above 1 sends to the output control unit 12 (processing S 12).

処理S13 入出力制御処理12のマイクロプログラムMCPは、入出
力チャネル16より受け取ったチャネルアドレス語CAWよ
り入出力装置13の入出力動作内容を指示する最初のコマ
ンド(チャネルコマンド語CCW41,第4図(D)参照)の
主記憶111上のアドレスを求めると、このアドレスに従
ってバス14を経由して主記憶111よりコマンドCCW41(図
示せず)をフェッチし、プリフェッチコマンド領域122
内の所定位置に格納する。
Process S 13 The I / O control process 12 of the microprogram MCP uses the channel address word CAW received from the I / O channel 16 as the first command (channel command word CCW 41 , fourth command) for instructing the I / O operation content of the I / O device 13. When the address on the main memory 111 of FIG. (D) is obtained, a command CCW 41 (not shown) is fetched from the main memory 111 via the bus 14 according to this address, and the prefetch command area 122
It is stored in a predetermined position inside.

処理S14,S15,S16 入出力制御装置12のマイクロプログラムMCPは、フェ
ッチしたコマンドCCW41の制御フラグ部を解析し(処理S
14)、まずデータチェインであるか判定する(処理
S15)。
Process S 14 , S 15 , S 16 The microprogram MCP of the I / O controller 12 analyzes the control flag part of the fetched command CCW 41 (process S 14
14 ), first, determine whether it is a data chain (process
S 15 ).

データチェインの有無を指示するチェインデータフラ
グ(CDF41で示す)がオンでデータチェインと判定され
たときは、コマンドCCW41の実施例を留保して、データ
チェインを構成する次のコマンドCCW42をプリフェッチ
する(処理S16)。このプリフェッチされたコマンドCCW
42の制御フラグ部を解析し、そのチェインデータフラグ
(CDF42で示す)よりデータチェインであるか判定する
(処理S14,S15)。
When the chain data flag (indicated by CDF 41 ) that indicates the presence or absence of the data chain is turned on and it is determined to be the data chain, the example of the command CCW 41 is reserved and the next command CCW 42 that forms the data chain is set. Prefetch (process S 16 ). This prefetched command CCW
The control flag portion of 42 is analyzed, and it is determined from the chain data flag (indicated by CDF 42 ) whether it is a data chain (processes S 14 and S 15 ).

データチェインはCCW42で終了し、そのCDF42はオフに
リセットされているので、データチェインを構成する次
のコマンドはないと判定される。
Since the data chain ends at CCW 42 and its CDF 42 has been reset off, it is determined that there is no next command to make up the data chain.

処理S17,S18,S19 コマンドCCW42にデータチェインするコマンドが無い
ときは、更にコマンドチェインの有無を指示するチェイ
ンコマンドフラグ(CDF42で示す)のオン/オフよりコ
マンドチェインであるか判定する(処理S17)。
Process S 17 , S 18 , S 19 Command If there is no data chain command in CCW 42 , it is determined whether the command chain is based on the ON / OFF state of the chain command flag (indicated by CDF 42 ) that indicates the presence or absence of the command chain. Yes (process S 17 ).

CDF42がオフの場合は、コマンドチェインがなくデー
タチェインのみであるので、チャイン指示フラグ領域12
3にあるコマンドCCW41に対応するチェイン指示フラグ
(CIF41で示す)をオフにクリヤして(処理S18)、デー
タチェイン処理を実行する。なお、データチェイン又は
1個のコマンドの場合は次のコマンドがないので、処理
S22は行われない(S19)。
When the CDF 42 is off, there is no command chain and only the data chain, so the chain instruction flag area 12
The chain instruction flag (indicated by CIF 41 ) corresponding to the command CCW 41 in 3 is cleared to OFF (process S 18 ) and the data chain process is executed. In case of data chain or one command, there is no next command.
S 22 is not performed (S 19 ).

処理S20,S21 処理S17においてコマンドCCW42のフラグCCF42がオン
でコマンドチェインと判定された場合は、次のコマンド
CCW43をバス14を経由して主記憶111よりプリフェッチし
(処理S20)、プリフェッチコマンド領域122の所定位置
に格納する(処理S21)。
If in the process S 20, S 21 processing S 17 flag CCF 42 command CCW 42 is determined to command chain on-the following command
The CCW 43 is prefetched from the main memory 111 via the bus 14 (process S 20 ) and stored at a predetermined position in the prefetch command area 122 (process S 21 ).

処理S22 次いで、チェイン指示フラグ領域123にあるコマンドC
CW41に対応するチェイン指示フラグCIF41をオンにセッ
トする(処理S22)。
Process S 22 Next, the command C in the chain instruction flag area 123
The chain instruction flag CIF 41 corresponding to CW 41 is set to ON (process S 22 ).

処理S14,S15,S17,S18,S19 処理S22が終ると再び処理S14に戻ってプリフェッチさ
れたコマンドCCW43の制御フラグ部を解析し(処理
S14)、そのチェインデータフラグ(CDF43で示す)のオ
ン/オフよりデータチェインであるか判定する(処理S
15)。フラグCDF43はオフであるので、更にチェインコ
マンドフラグ(CCF43で示す)のオン/オフよりコマン
ドチェインであるか判定する(処理S17)。コマンドチ
ェインはコマンドCCW43で終了するので、フラグCCF43
オフになっている。
Process S 14 , S 15 ,, S 17 ,, S 18 ,, S 19 When process S 22 is finished, the process returns to process S 14 and analyzes the control flag part of the prefetched command CCW 43 (process
S 14 ), it is determined whether the data chain is based on the on / off state of the chain data flag (indicated by CDF 43 ) (process S
15 ). Since the flag CDF 43 is off, it is further determined from the on / off state of the chain command flag (indicated by CCF 43 ) whether it is a command chain (process S 17 ). The flag CCF 43 is off because the command chain ends with the command CCW 43 .

フラグCCF43がオフで次にチェインするコマンドがな
いと判定されると、チェイン指示フラグ領域123にある
コマンドCCW43に対応するチェイン指示フラグ(CIF43
示す)をオフにクリアし(処理S18)、更にコマンドチ
ェインの有無を判定する(処理S19)。
If it is determined that the flag CCF 43 is off and there is no command to chain next, the chain instruction flag (indicated by CIF 43 ) corresponding to the command CCW 43 in the chain instruction flag area 123 is cleared to off (process S 18 ), And the presence / absence of a command chain is further determined (process S 19 ).

処理S23 コマンドチェインされる全コマンドのプリフェッチが
終了すると、最初に実行されるコマンドCCW41の次のコ
マンドCCW43の実行に必要な前準備を行う(処理S23)。
これにより、コマンドCCW41(すなわちデータチェイ
ン)の処理が終了したとき、速やかに次のコマンドCCW
43の処理を実行することができる。
Process S 23 When the prefetch of all the commands in the command chain is completed, the preparation necessary for executing the command CCW 43 next to the command CCW 41 to be executed first is performed (process S 23 ).
As a result, when the processing of command CCW 41 (that is, the data chain) is completed, the next command CCW
43 processes can be executed.

(B)コマンドチェイン処理 次に実施例のコマンドチェイン処理を、第3図のコマ
ンドチェイン処理フローチャートを参照し、その処理ス
テップに従って説明する。なお、以下の各処理も、特に
指示しないかぎり、マイクロプログラム領域121にある
マイクロプログラムMCPによって制御、実行されるもの
である。
(B) Command Chain Processing Next, the command chain processing of the embodiment will be described with reference to the command chain processing flowchart of FIG. 3 and the processing steps thereof. The following processes are also controlled and executed by the microprogram MCP in the microprogram area 121 unless otherwise specified.

処理S31,S32 前述のコマンドプリフェッチ処理が終了すると、入出
力制御装置12のマイクロプログラムMCPは、最初のコマ
ンドCCW41を取り出してその処理を実行する(処理
S31)。すなわち、従来方式と同様に指定された入出力
装置13Aを起動し(処理S32),コマンドCCW41の処理を
実行する。コマンドCCW41は次のコマンドCCW42とともに
データチェインを構成しているので、従来方式と同様に
データチェイン処理が行われる。
Processing S 31 , S 32 When the above command prefetch processing is completed, the microprogram MCP of the input / output control device 12 fetches the first command CCW 41 and executes the processing (processing
S 31). That is, to start the output device 13A which is specified similarly to the conventional method (process S 32), executes the processing of the command CCW 41. The command CCW 41 constitutes a data chain together with the next command CCW 42 , so that the data chain processing is performed as in the conventional method.

処理S33,S34 データチェインの最後のコマンドCCW42の処理が正常
に終了すると、入出力装置13Aより所定の動作(データ
の書込みや読取り等)終了が入出力制御装置12に通知さ
れる(処理S33)、この終了通知を受ける入出力制御装
置12のマイクロプログラムはコマンドの終結処理を行
い、入出力装置13Aを解放する(処理S34)。なお、入出
力動作中にエラーが発生すると、入出力装置13Aは、入
出力制御装置12にエラー通知を行う。エラー通知がある
と、入出力制御装置12は入出力動作をエラー終結する。
When the processing of the last command CCW 42 of the processing S 33 , S 34 data chain is completed normally, the input / output device 13A notifies the input / output control device 12 that the predetermined operation (data writing, reading, etc.) is completed ( process S 33), the microprogram of the input-output control unit 12 which receives the end notification performs cleanup command to release the output device 13A (processing S 34). When an error occurs during the input / output operation, the input / output device 13A notifies the input / output control device 12 of the error. Upon receiving the error notification, the I / O controller 12 terminates the I / O operation in error.

処理S35,S36 コマンド終結処理が終ると、マイクロプログラムMCP
は、チェイン指示フラグ領域123にあるCOW41に対応する
チェイン指示フラグCIF41のオン/オフより次のコマン
ドの有無を判定する(処理S35)。この実施例では次の
コマンドCCW43が存在し、フラグCIF41はオンにセットさ
れている。
Processing S 35 , S 36 When the command termination processing is completed, the microprogram MCP
Determines the presence or absence of the next command based on the on / off state of the chain instruction flag CIF 41 corresponding to COW 41 in the chain instruction flag area 123 (process S 35 ). In this example, the following command CCW 43 is present and flag CIF 41 is set on.

フラグCIF41がオンのときは、更に入出力装置13Aより
エラー通知の有無を判定する(処理S36)。
When the flag CIF 41 is on, the presence / absence of error notification is further determined from the input / output device 13A (process S36 ).

処理S37 入出力動作が正常に終了し、入出力装置13Aよりエラ
ー通知がない場合は、マイクロプログラムMCPは上位装
置に対するコマンドの終結処理を行う(処理S37)。こ
れにより入出力チャネル16を経由して情報処理装置11に
コマンドすなわちデータチェインの終結が通知される。
Process S 37 If the input / output operation ends normally and there is no error notification from the input / output device 13A, the microprogram MCP performs command termination processing for the host device (process S 37 ). This notifies the information processing apparatus 11 via the input / output channel 16 of the end of the command, that is, the data chain.

処理S38,S39 次いで、マイクロプログラムMCPは、プリフェッチコ
マンド領域122より次のコマンドCCW43を取り出して、制
御領域にある作業域に転送し(処理S38)、そのコマン
ドCCW43の起動処理を行う(処理S39)。
Processing S 38 , S 39 Next, the microprogram MCP fetches the next command CCW 43 from the prefetch command area 122, transfers it to the work area in the control area (processing S 38 ), and executes the start processing of the command CCW 43. Perform (process S 39 ).

処理S31〜S34 以下、次のコマンドCCW43について、前述の各処理S31
〜S34が実行され、所定の入出力動作が終了すると、コ
マンドCCW43の終結処理が行われる。
Processing S 31 to S 34 and below, for the following command CCW 43 , the processing S 31 described above
To S 34 is performed, when a predetermined input operation is completed, terminates command processing CCW 43 is performed.

処理S35,S40 コマンド終結処理が終ると、マイクロプログラムMCP
は、チェイン指示フラグ領域123にあるコマンドCCW43
対応するチェイン指示フラグCIF43のオン/オフより次
のコマンドの有無を判定する(処理S35)。この実施例
ではコマンドチェインはCCW43で終了するので、前述の
処理S18によりフラグCIF43はオフにクリアされている。
Processing S 35 , S 40 When the command termination processing is completed, the microprogram MCP
Determines the presence or absence of the next command from the ON / OFF state of the chain instruction flag CIF 43 corresponding to the command CCW 43 in the chain instruction flag area 123 (process S 35 ). Since this embodiment command chain ends in CCW 43, flag CIF 43 are cleared off by the process S 18 described above.

フラグCIF43がオフのときは、更に入出力動作相手よ
りエラー通知の有無を判定する(処理S40)。
When the flag CIF 43 is off, further determines whether an error notification from the input operation partner (process S 40).

処理S41,S42,S43 入出力動作相手よりエラー通知がない場合、マイクロ
プログラムは入出力動作が正常に終了したと判定してコ
マンドの正常終結通知の設定を行い(処理S41)、バス1
4を経由して入出力チャネル16にコマンドの正常終結を
通知する(処理S42)。
Processing S 41 , S 42 , S 43 If there is no error notification from the input / output operation partner, the microprogram determines that the input / output operation has completed normally and sets the normal termination notification of the command (processing S 41 ). Bus 1
The normal termination of the command is notified to the I / O channel 16 via 4 (process S 42 ).

入出力チャネル16は、更に情報処理装置11にこの正常
終結を通知し、コマンドチェイン処理を終了する(処理
S43)。
The input / output channel 16 further notifies the information processing device 11 of this normal termination, and ends the command chain processing (processing
S 43 ).

処理S34,S45,S46 前述の処理S36又はS40においてエラー通知があった場
合は、入出力制御装置11のマイクロプログラムMCPは、
エラー発生による入出力動作終結を情報処理装置11に通
知するために、エラー終結通知を設定し(処理S44)、
バス14を経由して入出力チャネル16にエラー終結を通知
する(処理S45)。
Processing S 34 , S 45 , S 46 When an error is notified in the above processing S 36 or S 40 , the microprogram MCP of the input / output control device 11
In order to notify the information processing device 11 of the end of the input / output operation due to the error occurrence, an error end notification is set (process S44 ),
The end of error is notified to the input / output channel 16 via the bus 14 (process S45 ).

入出力チャネル16は、更に情報処理装置11にこのエラ
ー終結を通知し、コマンドチェイン処理を終了する。
The input / output channel 16 further notifies the information processing device 11 of this error termination, and ends the command chain processing.

以上、2回のデータチェインの次に1回のコマンドチ
ェインが指示されている場合の実施例について説明した
が、これよりもコマンド数の多いデータチェイン及びコ
マンドチェインの場合も同様にして行うことができる。
また、データチェイン又はコマンドチェインだけの場
合、更にコマンドが1個の場合の動作は、前述の実施例
の一つの動作態様であって実施例の動作説明から明らか
であるので、それらの動作説明は省略する。
The embodiment has been described above in which one command chain is instructed after two data chains, but the same can be done in the case of a data chain and a command chain having more commands than this. it can.
Further, the operation in the case of only the data chain or the command chain, and the operation in the case where there is one command is one operation mode of the above-described embodiment and is clear from the operation description of the embodiment, and therefore the operation description thereof will be omitted. Omit it.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明によれば次の諸効果が得
られる。
As described above, according to the present invention, the following various effects can be obtained.

(1) コマンドチェインを構成する全コマンドを入出
力制御装置内にプリフェッチした後にコマンドチェイン
を実行するようにしたので、一つのコマンドが終結する
たびにバスを経由して次のコマンドをフェッチする必要
なく、入出力制御装置内でコマンドチェインを実行する
ことができる。
(1) Since the command chain is executed after prefetching all the commands constituting the command chain into the I / O controller, it is necessary to fetch the next command via the bus each time one command is completed. Instead, the command chain can be executed within the I / O controller.

(2) 前記(1)により入出力制御装置内でコマンド
チェインが実行できるので、バスの負荷状況及び入出力
装置のバス使用優先度に影響を受けることなく、高速で
かつ性能が安定した入出力動作を行うことができる。
(2) Since the command chain can be executed in the input / output control device according to the above (1), the input / output is fast and stable in performance without being affected by the load condition of the bus and the priority of bus use of the input / output device. You can take action.

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

第1図は、本発明の原理図、 第2図は、本発明の一実施例のコマンドフェッチ処理フ
ローチャート、 第3図は、同実施例のコマンドチェイン処理フローチャ
ート、 第4図は、基本形及びチェイニング方式の各コマンドの
フォーマットの説明図、 第5図は、従来の入出力制御方式の説明図である。 第1図において、 11……情報処理装置、111……主記憶、12……入出力制
御装置、120……入出力制御装置内メモリ(IOCメモ
リ)、121……マイクロプログラム領域、122……プリフ
ェッチコマンド領域、123……チェイン指示フラグ領
域、124……制御領域、13A〜13N……入出力装置、14…
…バス、15……入出力バス、16……入出力チャネル。
FIG. 1 is a principle diagram of the present invention, FIG. 2 is a command fetch processing flowchart of one embodiment of the present invention, FIG. 3 is a command chain processing flowchart of the same embodiment, and FIG. 4 is a basic form and a chain. FIG. 5 is an explanatory diagram of a format of each command of the inning system, and FIG. 5 is an explanatory diagram of a conventional input / output control system. In FIG. 1, 11 ... Information processing device, 111 ... Main memory, 12 ... Input / output control device, 120 ... Input / output control device memory (IOC memory), 121 ... Microprogram area, 122 ... Prefetch command area, 123 ... Chain instruction flag area, 124 ... Control area, 13A to 13N ... Input / output device, 14 ...
… Bus, 15… I / O bus, 16… I / O channel.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】情報処理装置に共通のバスで接続され、情
報処理装置の指示に従って配下の各入出力装置の行う入
出力動作を制御する入出力制御装置に対して、情報処理
装置からコマンドが発行された場合の制御を行うコマン
ドチェイン制御装置において、情報処理装置よりフェッ
チしたコマンドを解析する手段と、 前記解析した第1のコマンドにチェインする第2のコマ
ンドがある場合に、当該第1のコマンドの処理実行前に
当該第2のコマンドを前記情報処理装置からプリフェッ
チする手段と、 前記情報処理装置からフェッチした第1および第2のコ
マンドを、当該コマンドにチェインするコマンドの有無
を指示するフラグとともに格納する手段と、 前記フラグにもとづき、前記格納されたコマンドチェイ
ンを構成する全てのコマンドのチェイン処理を行う手段
と、 を備えたことを特徴とするコマンドチェイン制御装置。
1. A command is sent from an information processing device to an input / output control device which is connected to the information processing device by a common bus and controls input / output operations performed by respective subordinate input / output devices according to an instruction from the information processing device. In the command chain control device that performs control when issued, if there is a unit that analyzes a command fetched from the information processing device and a second command that chains to the analyzed first command, the first command Means for prefetching the second command from the information processing apparatus before execution of command processing, and a flag for instructing the presence or absence of a command for chaining the first and second commands fetched from the information processing apparatus to the command Together with a means for storing all of the commands that make up the stored command chain based on the flag. Command chain control apparatus characterized by comprising means for performing Ein process, the.
JP63252009A 1988-10-07 1988-10-07 Command chain controller Expired - Fee Related JP2523167B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63252009A JP2523167B2 (en) 1988-10-07 1988-10-07 Command chain controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63252009A JP2523167B2 (en) 1988-10-07 1988-10-07 Command chain controller

Publications (2)

Publication Number Publication Date
JPH02100163A JPH02100163A (en) 1990-04-12
JP2523167B2 true JP2523167B2 (en) 1996-08-07

Family

ID=17231302

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63252009A Expired - Fee Related JP2523167B2 (en) 1988-10-07 1988-10-07 Command chain controller

Country Status (1)

Country Link
JP (1) JP2523167B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54161855A (en) * 1978-06-12 1979-12-21 Nippon Telegr & Teleph Corp <Ntt> Input/output control system

Also Published As

Publication number Publication date
JPH02100163A (en) 1990-04-12

Similar Documents

Publication Publication Date Title
US7293119B2 (en) DMA data transfer between low-overhead processor and connected external circuitry using transactions log
US4888691A (en) Method for disk I/O transfer
EP0558926A1 (en) Efficient channel and control unit for host computer
US5937200A (en) Using firmware to enhance the functionality of a controller
EP0795831A1 (en) Peripheral interface with delayed flow control for run length encoded data transfers
JP2009054083A (en) Processor, data transfer unit, and multi-core processor system
JP2523167B2 (en) Command chain controller
JPH0357053A (en) Down load control system for communication processing device
JP3157794B2 (en) Peripheral control processor
JP2562474B2 (en) Multi-CPU system adapter and control method thereof
JPH0319574B2 (en)
JPS61288232A (en) Output instruction control system
JP3227273B2 (en) Link processing method of programmable controller
JPS63153635A (en) Specification system for data transfer speed
JPS6160468B2 (en)
JPS62190544A (en) Higher link unit for programmable controller
JPS62180448A (en) Increment system for input and output working speed
JPH071494B2 (en) Channel command word chain device
JPS63255752A (en) Initial program loading system
JPS61282956A (en) Dma transfer queue matrix control system
JPH0675898A (en) Direct memory access controller
JPS6116103B2 (en)
JPS6245575B2 (en)
JPH04102116A (en) Interruption control system for disk sub system
JPH0431421B2 (en)

Legal Events

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