JPH02100163A - Command chain control system - Google Patents

Command chain control system

Info

Publication number
JPH02100163A
JPH02100163A JP25200988A JP25200988A JPH02100163A JP H02100163 A JPH02100163 A JP H02100163A JP 25200988 A JP25200988 A JP 25200988A JP 25200988 A JP25200988 A JP 25200988A JP H02100163 A JPH02100163 A JP H02100163A
Authority
JP
Japan
Prior art keywords
command
input
chain
output
processing
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
JP25200988A
Other languages
Japanese (ja)
Other versions
JP2523167B2 (en
Inventor
Masahiro Kurita
栗田 真広
Koichi Nie
贄 浩一
Shinji Shihara
真二 紫原
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

Abstract

PURPOSE:To perform input/output at high speed and with stable performance without being affected by the loading status of a bus and the priority of bus use of an input/output device by performing command chain after pre-fetching all commands comprising the command chain in an input/output controller. CONSTITUTION:The command chain is executed after all commands comprising the command chain are pre-fetched in the input/output controller 12. In such a case, it is not necessary to fetch the next command via the bus 14 at every finishing of one command, and the command chain can be executed in the input/output controller 12. Thus, since the command chain can be executed in the input/output controller 12, it is possible to perform an input/output operation at high speed and with stable performance without being affected by the loading status of the bus 14 and the influence of the priority of bus use of the input/output devices 13A-13N.

Description

【発明の詳細な説明】 〔概 要〕 情報処理装置にバスで接続される入出力制御装置にコマ
ンドチェインが発行された場合のコマンドチェイン制御
方式に関し、 バスの負荷状況や入出力装置のバス使用優先度に影響な
く、高速かつ安定した性能で入出力動作が行われるよう
にすることを目的とし、情報処理装置に共通バスで接続
され、その指示に従ってマイクロプログラム制御で配下
の入出力装置の入出力動作を制御する入出力制御装置に
対し、情報処理装置からコマンドが発行された時のコマ
ンドチェイン制御方式において、最初のコマンド処理開
始前にコマンドチェインがある場合に全チェインコマン
ドをブリフェッチして入出力装置内に格納し、各ブリフ
ェッチコマンド毎にチェインするコマンドの有無を指示
するフラグを設定し、コマンド処理終了毎に対応する指
示フラグから次のチェインコマンドの有無を検出して入
出力制御装置内でコマンドチェインを行うように構成す
る。
[Detailed Description of the Invention] [Summary] Regarding the command chain control method when a command chain is issued to an input/output control device connected to an information processing device via a bus, The purpose is to ensure that input/output operations are performed at high speed and with stable performance without affecting priority levels. In the command chain control method when a command is issued from an information processing device to an input/output control device that controls output operations, if there is a command chain before the start of the first command processing, all chain commands are briefetched and input. Stored in the output device, a flag indicating the presence or absence of a command to be chained is set for each briffetch command, and the presence or absence of the next chain command is detected from the corresponding instruction flag each time command processing is completed, and the input/output control device Configure to perform a command chain within.

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

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

〔従来の技術〕[Conventional technology]

情報処理装置は一般に多数の入出力装置を搭載している
が、これらの入出力装置と情報処理装置間の入出力動作
を制御するために入出力制御装置が用いられている。
An information processing device is generally equipped with a large number of 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には、コマンドチェ
インに用いられ各コマンドCCW、、〜CCW33が例
示されている。
FIG. 5 is a principle diagram of a human output control method using an input/output control device. In the figure, 21 is an information processing device;
is the main memory in which various commands and transfer data for input/output control are stored. In the main memory 211, commands CCW, . . . -CCW33 used in the command chain are illustrated.

22は入出力チャネルで、情報処理装置21から発jテ
されるコマンドの受付は及び入出力制御装置の状態の監
視を行うインタフェース部である。
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 status of the input/output control device.

23は入出力制御装置で、マイクロプログラム制御方式
によりコマンドの解析、入出力装置固有の動作の制御、
複数ある入出力装置の監視、起動を行う。入出力チャネ
ル22に対しては、その標準的な制御と適合させる機能
を備えている。
23 is an input/output control device, which uses a microprogram control method to analyze commands, control operations specific to the input/output device,
Monitor and start multiple input/output devices. The input/output channel 22 is provided with functions to match 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 input/output channel 22 and the input/output control device 23, and 26 is the input/output control device 23 and each input/output device 24 under it. .. This is an input/output bus that connects A to 24N.

次に、第5図の入出力制御動作について説明する。情報
処理装置21は、入出力チャネルに対してアクセス対象
入出力装置(24Aとする)の機器番号を指定したコマ
ンドを発行する。入出力チャネル22は、該当する入出
力装置24Aを制御している入出力制御装置23に対し
、このコマンドをバス25経出で受は渡す。
Next, the input/output control operation shown in FIG. 5 will be explained. The information processing device 21 issues a command specifying the device number of the input/output device (assumed to be 24A) to be accessed 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 specified input/output device 24A, and controls input/output operations such as writing or reading instructed by the command.

この入出力動作には、一つのコマンドで行われるものと
、複数のコマンドで行われるチエイニング方式によるも
のとがある。
There are two types of input/output operations: those performed using a single command, and those performed using a chaining method using multiple commands.

一つのコマンドで行われる入出力動作では、情報処理装
置21より基本形のコマンドが発行される。第4図(A
)は基本形のコマンド(CCW、。で示す)のフォーマ
ットの一例を示したものである。
In an input/output operation performed by one command, the information processing device 21 issues a basic command. Figure 4 (A
) is an example of the format of the basic command (CCW, indicated by .).

図ニおいて、CC部はコマンドコード部で、書込み、読
出し等のコマンドの種別がセットされる。
In FIG. 2, the CC section is a command code section in which the type of command, such as write or read, is set.

制御フラグ部には、データチェインを指示するチェイン
データフラグ(以下、CDFで示す)、コマンドチェイ
ンを指示するチェインコマンドフラグ(以下、CCFで
示す)、コマンドの終了を指示する終結フラグ等の各種
制御フラグがセントされる。データ部には、転送データ
の主記憶211上のアドレス及びデータ長がセットされ
る。
The control flag section includes various controls such as a chain data flag (hereinafter referred to as CDF) that instructs a data chain, a chain command flag (hereinafter referred to as CCF) that instructs a command chain, and a termination flag that instructs the end of a command. The flag is cented. The address and data length of the transfer data on the main memory 211 are set in the data section.

入出力制御装置23は、入出力チャネル22より受は取
ったコマンドccw、oのコマンドコード部及び制御フ
ラグ部を解析してコマンドCCW I Oが基本形であ
ると判別すると、データ部で指示されたアドレス及びデ
ータ長に従って主記憶211と入出力袋ff24A間の
データ転送を制御する。
The input/output control device 23 analyzes the command code part and control flag part of the commands ccw, o received from the input/output channel 22, and when it determines that the command CCW I O is the basic form, it reads the commands specified in the data part. Data transfer between the main memory 211 and the input/output bag ff24A is controlled according to the address and data length.

コマンドCCW loの指示する入出力動作が終了する
と、入出力制御装置23は入出力チャネル22にコマン
ド処理の終結を通知する。入出力チャネル22は、更に
この処理終結を情報処理装置21に通知して、情報処理
装置21より通知されたコマンドの処理を終了する。
When the input/output operation instructed by the command CCW lo is completed, the input/output control device 23 notifies the input/output channel 22 of the termination of the command processing. The input/output channel 22 further notifies the information processing device 21 of the termination of the processing, 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 using the chaining method, when the input/output operation based on one command is completed, the input/output control device 23 sends the main information to the information processing device 21 via the input/output channel 22 without interrupting the information processing device 21. The next command is fetched from the memory 211 and the input/output operation specified by the command is performed. This chaining method includes (a) a data chain, (b) a command chain, and (C) a method in which both are mixed.

以下、これらの処理方式について簡単に説明する。Below, these processing methods will be briefly explained.

(al  データチェイン データチェインでは、第4図(8)に示すように同一種
別の複数のコマンド(CCWzl−CCWz□。
(al Data Chain In the data chain, as shown in FIG. 4 (8), a plurality of commands of the same type (CCWzl-CCWz□.

ccwts等で示す)が発行され、一つの入出力動作に
より主記憶211上の複数の領域との間でのデータ転送
が行われる。すなわち、これらのチェインされたコマン
ドCCWz+〜CCWZffが、一つのコマンドとして
処理される。
ccwts etc.) is issued, and data is transferred between multiple areas on the main memory 211 by one input/output operation. That is, these chained commands CCWz+ to CCWZff are processed as one command.

各コマンドCCW z I〜ccwzzのフォーマント
は基本形のコマンドCCW、。と同じであるが、制御フ
ラグ部中のチェインインデータフラグCDFが「1」に
セットされる。また、2番目以降のコマンドCCW t
 を及びCCW z xのコマンドコードは11目のコ
マンドCCW、のコマンドコードと一致するので無視さ
れる。
The formant of each command CCW z I~ccwzz is the basic form command CCW. However, the chain-in data flag CDF in the control flag section is set to "1". Also, the second and subsequent commands CCW t
The command codes of CCW z and CCW z x match the command code of the 11th command CCW, so they are ignored.

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

データチェインの場合は、1番目のコマンドCCW z
 rのデータ部の指示するアドレス領域のデータについ
てそのコマンドコード部CCの指示する入出力処理が終
了すると、次のコマンドCCW、□のデータ部の指示す
るアドレス領域のデータについて、1番目のコマンドと
同じ入出力処理を行う。
For data chain, first command CCW z
When the input/output processing specified by the command code section CC is completed for the data in the address area specified by the data section r, the next command CCW executes the first command and the data in the address area specified by the data section □. Perform the same input/output processing.

2番目のコマンドCCW2□のチェインデータフラグC
DF!□が「1」のときは、コマンドCCW2□のデー
タ部の指示するアドレス領域のデータについての所定の
入出力動作が終了すると、次の第3番目のコマンドCC
W z 3のデータ部の指示するアドレス領域のデータ
について同様の入出力処理を行う。コマンドCCW23
の制御フラグ部の終結フラグはオンにセットされ、デー
タチェインがコマンドCCW t 3で終結することが
指示される。
Chain data flag C of second command CCW2□
DF! When □ is "1", when the specified input/output operation for the data in the address area specified by the data part of command CCW2□ is completed, the next third command CC
Similar input/output processing is performed for the data in the address area indicated by the data section of W z 3. Command CCW23
The termination flag in the control flag portion of is set on, indicating that the data chain is terminated with command CCW t 3.

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

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

各コマンドCCW3.〜CCW33はフォーマットは基
本形のコマンドCCW、、と同じであるが、制御フラグ
部中のチェインコマンドフラグCCFが「1」にセット
され、チェインデータフラグCDFが「0」にセットさ
れる。
Each command CCW3. ~CCW33 has the same format as the basic command CCW, 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番目のコマンドCCWffIのコマンドコード部
CC及び制御フラグ部を解析し、そのチェインコマンド
フラグCCF31がrlJでチェインデータフラグCD
Fが「0」であることからコマンドチェイン処理である
ことを検出する。
The input/output control device 23 analyzes the command code section CC and control flag section of the first command CCWffI received from the input/output channel 22, and determines that the chain command flag CCF31 is rlJ and the chain data flag CD.
Since F is "0", it is detected that command chain processing is being performed.

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

したがって、1番目のコマンドCCW31の入出力処理
が終了すると、人出力制御装置23は情報処理装置21
に対して入出力割込みを起すことなく、その内部で求め
た次の2番目のコマンドCCW32を入出力チャネル2
2を介して主記憶211よりフェッチし、そのコマンド
CCW3!のコマンドコード部CCの指示する新しい入
出力動作を制御する。
Therefore, when the input/output processing of the first command CCW31 is completed, the human output control device 23
The next second command CCW32 determined internally is sent to input/output channel 2 without causing an input/output interrupt.
2 from the main memory 211 via CCW3! The new input/output operation specified by the command code section CC is controlled.

以下同様にしてコマンドCCW s tの入出力処理が
終了すると次の第3番目のコマンドCCWff3を主記
憶211よりフェッチし、コマンドCCW 33の指示
する入出力動作を制御する。コマンドCCW33の制御
フラグ部の終結フラグはオンにセットされ、コマンドチ
ェインがコマンドCCW 3 sで終結することが指示
される。
Similarly, when the input/output processing of the command CCW s t is completed, the next third command CCWff3 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 portion of command CCW33 is set on, instructing that the command chain is terminated with command CCW 3 s.

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

(C)  データチェイン及びコマンドチェインの混在
する場合、 この場合は、第4図(D)に示すように、データチェイ
ン(CCW41及びCCW4□)を1個のコマンドとし
て、これと次のコマンド(CCW43)がコマンドチェ
インを構成する。
(C) When a data chain and a command chain coexist In this case, as shown in FIG. 4(D), the data chain (CCW41 and CCW4 ) make up the command chain.

データチェインのコマンド部分CCW a I及びCC
W 4 !については、前述の(a)と同様にしてデー
タチェイン処理が行われ、続(コマンドCCW 4 m
については、前述の(b)と同様にしてコマンドチェイ
ン処理が行われる。
Command part of data chain CCW a I and CC
W 4! , the data chain processing is performed in the same manner as in (a) above, and the continuation (command CCW 4 m
For this, command chain processing is performed in the same manner as in (b) above.

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

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

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

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

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

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

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

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

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

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

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

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

前述の課題を解決するために本発明が採用した手段を、
第1図の原理図を参照して説明する。
The means adopted by the present invention to solve the above-mentioned problems are as follows:
This will be explained with reference to the principle diagram shown in FIG.

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

12は入出力制御装置で、マイクロプログラム制御方式
で入力コマンドの解析、入出力装置固有の動作の制御、
複数ある入出力装置の監視、起動を行う。入出力チャネ
ルがある場合は、入出力チャネルの標準的な制御と適合
させる。
12 is an input/output control device that uses a microprogram control method to analyze input commands, control operations specific to the input/output device,
Monitor and start multiple input/output devices. If you have input/output channels, match them with standard controls for input/output channels.

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

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

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

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

すなわち、情報処理装置11に共通のバス14で接続さ
れ、情報処理装置1・lの指示に従ってマイクロプログ
ラム制御方式で配下の各入出力装置13A−13Nの行
う入出力動作を制御する入出力制御装置12に対して、
情報処理装置11からコマンドが発行された場合のコマ
ンドチェイン制御方式において、 (A)最初のコマンドの処理開始前に、チェインされる
全コマンドをブリフェッチして入出力制御装置12内に
格納し、 (B)ブリフェッチした各コマンドでチェインコマンド
の有無を指示するチェインコマンドフラグ(CCF)が
オンの場合に、チェイン指示フラグ(CI F)を入出
力制御装置12に設定し、(C)一つのコマンド処理が
終了する毎にそのコマンドに対応するチェイン指示フラ
グCIFの内容から次にチェインするコマンドの有無を
検出して、入出力制御装置12内でコマンドチェインを
行う、 ように構成される。
That is, an input/output control device that is connected to the information processing device 11 via a common bus 14 and controls input/output operations performed by each of the subordinate input/output devices 13A to 13N using a microprogram control method according to instructions from the information processing device 1.l. For 12,
In the command chain control method when a command is issued from the information processing device 11, (A) before starting processing of the first command, all commands to be chained are briefetched and stored in the input/output control device 12; B) If the chain command flag (CCF), which indicates the presence or absence of a chain command in each briefetched command, is on, set the chain instruction flag (CIF) in the input/output control device 12, and (C) process one command. Each time a command is completed, the presence or absence of the next command to be chained is detected from the contents of the chain instruction flag CIF corresponding to that command, and the command chain is executed within the input/output control device 12.

〔作 用〕[For production]

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

最初のコマンドにチェインするコマンドがあるとき、す
なわちコマンドチェインであるときは、最初のコマンド
処理実行を留保して、マイクロプログラムMCPは次の
コマンド(CCWxzで示す)を主記憶111よりブリ
フェッチする。ブリフェッチされた2番目のコマンドC
CW2□は、最初のコマンドCCW3.とともに、ブリ
フェッチコマンド領域1220所定位置に格納される。
When there is a command chained to the first command, that is, when there is a command chain, the microprogram MCP prefetches the next command (indicated by CCWxz) from the main memory 111 while suspending execution of the first command. Second command C briefetched
CW2□ is the first command CCW3. It is also stored in a predetermined position in the brief fetch command area 1220.

それとともに、チェイン1旨示領域123にある最初の
コマンドCCW3Iに対応するチェイン指示フラグ(C
IFitで示す)をオンにセットする。
At the same time, the chain instruction flag (C
IFit) is set to on.

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

次にチェインするコマンドがあるときは、チェインする
3番目のコマンド(CCW:+sで示す)を主記憶11
1よりブリフェッチして、ブリフェ)チコマンド領域1
22の所定位置に格納する。
When there is a command to be chained next, the third command to be chained (CCW: +s) is stored in the main memory 11.
Briefetch from 1, Briefetch command area 1
22 at a predetermined location.

それとともに、チェイン指示領域123にある2番目の
コマンドCCW、、、に対応するチェイン指示フラグ(
CIF:+gで示す)をオンにセットする。
At the same time, the chain instruction flag (
CIF: (indicated by +g) is set to on.

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

チェインされている全コマンドのブリフェッチが終了す
ると、マイクロプログラムはコマンドチェイン処理を開
始する。
When the brief fetching of all chained commands is completed, the microprogram starts command chain processing.

最初のコマンドCCW31をブリフェッチコマンド領域
122より取り出してそのコマンド処理を実行する。コ
マンドCCW 31の終結処理においてそのチェイン指
示フラグClF31を参照し、オンにセットされている
ことが検出されたときは、終結しようとしているコマン
ドCCW3.がエラー終結でないことを確認した後、ブ
リフェッチコマンド領域122の所定位置より2番目の
コマンドCCW3□を取り出してその処理を実行する。
The first command CCW31 is taken out from the brief fetch command area 122 and the command processing is executed. In the termination processing of the command CCW31, the chain instruction flag CIF31 is referred to, and if it is detected that it is set on, the command CCW3. After confirming that this is not an error termination, the second command CCW3□ is extracted from a predetermined position in the brief fetch command area 122 and its processing is executed.

以下同様にして、一つのコマンドCCWffjの終結処
理においてそのチェイン指示フラグCIF3jがオンの
ときは、次のコマンドをブリフェッチコマンド領域12
2より取り出して実行する。
Similarly, when the chain instruction flag CIF3j is on in the finalization process of one command CCWffj, the next command is sent to the brief fetch command area 12.
Extract from 2 and execute.

コマンドCCW□のチェイン指示フラグCIF、Jがオ
フにクリアされているときは、コマンドチェインが終結
したことを認識し、情報処理装置11に処理終結を通知
してコマンドチェイン処理を終了する。
When the chain instruction flags CIF and J of the command CCW□ are cleared to OFF, it is recognized that the command chain has ended, and the information processing device 11 is notified of the end of processing, thereby terminating the command chain processing.

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

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

[実施例〕 本発明の実施例を、第1図〜第4図を参照して説明する
。第2図は本発明の一実施例のコマンドブリフェッチ処
理フローチャート、第3図は同実施例コマンドチェイン
処理フローチャートである。
[Example] An example of the present invention will be described with reference to FIGS. 1 to 4. FIG. 2 is a flowchart of command brief fetch processing according to an embodiment of the present invention, and FIG. 3 is a flowchart of command chain processing of the same embodiment.

第1図の実施システム及び第4図の各コマンドのフォー
マットについては、既に説明したとおりである。第1図
の実施システムは、本発明の一実施例の実施システムと
して使用される。
The execution system shown in FIG. 1 and the format of each command shown in FIG. 4 have already been described. The implementation system of FIG. 1 is used as an implementation system of one embodiment of the present invention.

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

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

■ 処理S I I y  S I 2情報処理装置1
11は、入出力処理を行う入出力装置(13Aとする)
を起動するS I O(Start■10)命令を入出
力チャネル16に発行する(処理S、1)。入出力チャ
ネル16は、指示された入出力装置13Aを制御する入
出力制御装置12が使用可能状態であることを確認する
と、主記憶111上にある入出力装置13Aのチャネル
アドレス語CAWを取り出して人出力制御装置12に送
る(処理S+z)。
■ Processing S I I y S I 2 information processing device 1
11 is an input/output device that performs input/output processing (referred to as 13A)
A SIO (Start 10) command is issued to the input/output channel 16 (processing S, 1). When the input/output channel 16 confirms that the input/output control device 12 that controls the designated input/output device 13A is available, it retrieves the channel address word CAW of the input/output device 13A from the main memory 111. It is sent to the human output control device 12 (processing S+z).

■ 処理S13 人出力制御装置12のマイクロプログラムMCPは、人
出力チャネル16より受は取ったチャネルアドレス語C
AWより入出力装置13Aの入出力動作内容を指示する
最初のコマンド(チャネルコマンド語CCW、、、第4
図(C)参照)の主記憶111上のアドレスを求めると
、このアドレスに従ってバス14を経由して主記憶11
1よりコマンドCCW41 (図示せず)をフェッチし
、ブリフェッチコマンド領域122内の所定位置に格納
する。
■ Processing S13 The microprogram MCP of the human output control device 12 executes the channel address word C received from the human output channel 16.
The first command (channel command word CCW, 4th
(see figure (C))), the main memory 111 is sent via the bus 14 according to this address.
A command CCW41 (not shown) is fetched from 1 and stored in a predetermined position in the brief fetch command area 122.

■ 処理5car Sli s16 人出力制御装置12のマイクロプログラムMCPは、フ
j−7チしたコマンドccwa+の制御用フラグ部を解
析しく処理514)、まずデータチェインであるか判定
する(処理S3.)。
(2) Processing 5car Sli s16 The microprogram MCP of the human output control device 12 analyzes the control flag part of the command ccwa+ that has been checked by j-7 (processing 514), and first determines whether it is a data chain (processing S3.).

データチェインの有無を指示するチェインデータフラグ
(CDF41で示す)がオンでデータチェインと判定さ
れたときは、コマンドCCW、、の実行を留保して、デ
ータチェインを構成する次のコマンドCCW4□をプリ
フェッチする(処理S 16)。
When the chain data flag (indicated by CDF41) indicating the presence or absence of a data chain is on and a data chain is determined, execution of commands CCW, , is suspended and the next command CCW4□ that forms the data chain is prefetched. (Processing S16).

このプリフェッチされたコマンドCCW4□の制御フラ
グ部を解析し、そのチェインデータフラグ(CDFat
で示す)よりデータチェインであるか判定する(処理S
 14.S +s)。
The control flag section of this prefetched command CCW4□ is analyzed, and its chain data flag (CDFat
) to determine whether it is a data chain (processing S
14. S+s).

データチェインはCCW4□で終了し、そのCDF4□
はオフにリセットされているので、データチェインを構
成する次のコマンドはないと判定される。
The data chain ends with CCW4□ and its CDF4□
has been reset to off, so it is determined that there is no next command that forms the data chain.

■ 処理Sa1.  Sl!I+  319コマンドC
CW 4zにデータチェインするコマンドが無いときは
、更にコマンドチェインの有無を指示するチェインコマ
ンドフラグ(CCFa□で示す)のオン/オフよりコマ
ンドチェインであるか判定する(処理S1.)。
■ Processing Sa1. Sl! I+ 319 Command C
If there is no command to data chain in the CW 4z, it is further determined whether the command chain is a command chain based on the on/off status of a chain command flag (indicated by CCFa□) that indicates the presence or absence of a command chain (processing S1).

CCF4□がオフの場合は、コマンドチェインがなくデ
ータチェインのみであるので、チェイン指示フラグ領域
123にあるコマンドCCW4.に対応するチェイン指
示フラグ(CIF41で示す)をオフにクリヤして(処
理5I8)、データチェイン処理を実行する。なお、デ
ータチェイン又は1個のコマンドの場合は次のコマンド
がないので、処理S2□は行われない(処理S、9)。
When CCF4□ is off, there is no command chain and only a data chain, so the command CCW4. The chain instruction flag (indicated by CIF41) corresponding to is cleared to OFF (process 5I8), and data chain processing is executed. Note that in the case of a data chain or one command, there is no next command, so process S2□ is not performed (process S, 9).

■ 処理S2゜+321 処理S17においてコマンドCCW4□のフラグCCF
 a□がオンでコマンドチェインと判定された場合は、
次のコマンドCCW4.をバス14を経由して主記憶1
11よりプリフェッチしく処理S2゜)、ブリフェッチ
コマンド領域122の所定位置に格納する(処理S z
+)。
■ Processing S2゜+321 In processing S17, flag CCF of command CCW4□
If a□ is on and it is determined to be a command chain,
Next command CCW4. to main memory 1 via bus 14
11, the prefetch command is stored in a predetermined position in the prefetch command area 122 (processing S2).
+).

■ 処理S2□ 次いで、チェイン指示フラグ領域123にあるコマンド
CCW、、に対応するチェイン指示フラグCIF41を
オンにセットする(処理S tz)。
(Processing S2□) Next, the chain instruction flag CIF41 corresponding to the command CCW, , in the chain instruction flag area 123 is set on (processing Stz).

■ 処理S 14+  S ls+  S I’7+ 
S 18+ S +q処理S2□が終ると再び処理SI
4に戻ってプリフェッチされたコマンドCCW43の制
御フラグ部を解析しく処理S、、)、そのチェインデー
タフラグ(CDF、3で示す)のオン/オフよりデータ
チェインであるか判定する(処理S+s)。フラグCD
FLIはオフであるので、更にチェインコマンドフラグ
CGCFa3で示す)のオン/オフよりコマンドチェイ
ンであるか判定する(処理S、7)。コマンドチェイン
はコマンドCCW 4 sで終了するので、フラグCC
F4:lはオフになっている。
■ Processing S 14+ S ls+ S I'7+
After S 18+ S +q processing S2□ is completed, processing SI is performed again.
Returning to step 4, the control flag part of the prefetched command CCW43 is analyzed and processed (S,...), and whether it is a data chain is determined from the on/off of its chain data flag (CDF, indicated by 3) (processing S+s). flag cd
Since FLI is off, it is further determined whether it is a command chain based on the on/off of the chain command flag CGCFa3 (indicated by the chain command flag CGCFa3) (processing S, 7). The command chain ends with the command CCW 4 s, so the flag CC
F4:l is off.

フラグCCFazがオフで次にチェインするコマンドが
ないと判定されると、チェイン指示フラグ領域123に
あるコマンドCCW、3に対応するチェイン指示フラグ
(CIF43で示す)をオフにクリアしく処理S+s)
、更にコマンドチェインの有無を判定する(処理S1.
)。
If it is determined that the flag CCFaz is off and there is no command to chain next, clear the chain instruction flag (indicated by CIF43) corresponding to the command CCW, 3 in the chain instruction flag area 123 to OFF (processing S+s).
, further determines the presence or absence of a command chain (process S1.
).

■ 処理S23 コマンドチェインされる全コマンドのプリフェッチが終
了すると、最初に実行されるコマンドCCW a +の
次のコマンドCCW、:tの実行に必要な前準備を行う
(処理523)。これにより、コマンドCCW41(す
なわちデータチェイン)の処理が終了したとき、速やか
に次のコマンドCCW 4:lの処理を実行することが
できる。
(Processing S23) When the prefetching of all commands in the command chain is completed, preparations necessary for executing the command CCW, :t that follows the command CCW a + to be executed first are performed (processing 523). Thereby, when the processing of the command CCW41 (ie, data chain) is completed, the processing of the next command CCW4:l can be executed immediately.

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

■ 処理S 31 + S 3 を 前述のコマンドプリフェッチ処理が終了すると、入出力
制御装置12のマイクロプログラムMCPは、最初のコ
マンドCCW、、を取り出してその処理を実行する(処
理S :l+)。すなわち、従来方式と同様に指定され
た入出力装置13Aを起動しく処理S。)、コマンドC
CW 41の処理を実行する。
(2) When the command prefetch process described above in process S31+S3 is completed, the microprogram MCP of the input/output control unit 12 takes out the first command CCW, and executes the process (process S:l+). That is, the process S starts up the specified input/output device 13A as in the conventional method. ), command C
CW 41 processing is executed.

コマンドCCW、、は次のコマンドCCW 41ととも
にデータチェインを構成しているので、従来方式と同様
にデータチェイン処理が行われる。
Since the commands CCW, . . . constitute a data chain together with the next command CCW 41, data chain processing is performed in the same manner as in the conventional method.

■ 処理53jh S34 データチェインの最後のコマンドCCW、□の処理が正
常に終了すると、入出力装置13Aより所定の動作(デ
ータの書込みや読取り等)終了が入出力制御装置12に
通知される(処理S*z) 、この終了通知を受ける入
出力制御装置12のマイクロプログラムはコマンドの終
結処理を行い、入出力装置13Aを解放する(処理53
4)。なお、入出力動作中にエラーが発生すると、入出
力装置13Aは、入出力制御装置12にエラー通知を行
う。
■ Processing 53jh S34 When the processing of the last command CCW, □ in the 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 (processing S*z), the microprogram of the input/output control device 12 that receives this termination notification performs command finalization processing and releases the input/output device 13A (processing 53).
4). Note that if an error occurs during the input/output operation, the input/output device 13A notifies the input/output control device 12 of the error.

エラー通知があると、人出力制御装置12は入出力動作
をエラー終結する。
Upon receiving an error notification, the human output control device 12 terminates the input/output operation as an error.

■ 処理S 3S+  S ff& コマンド終結処理が終ると、マイクロプロクラムMCP
は、チェイン指示フラグ領域123にあるCCW4Iに
対応するチェイン指示フラグCIF41のオン/オフよ
り次のコマンドの有無を判定する(処理S1.)。この
実施例では次のコマンドCCW43が存在し、フラグC
IF41はオンにセ・ノドされている。
■ Processing S 3S+ S ff& When the command finalization process is finished, the micro program MCP
determines the presence or absence of the next command based on the on/off status of the chain instruction flag CIF41 corresponding to CCW4I in the chain instruction flag area 123 (processing S1.). In this embodiment, the following command CCW43 exists, and the flag C
IF41 is turned on.

フラグCI F4.がオンのときは、更に入出力装置1
3Aよりエラー通知の有無を判定する(処理83M)。
Flag CI F4. is on, input/output device 1
3A, it is determined whether there is an error notification (processing 83M).

■ 処理S。■ Processing S.

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

[相] 処理5311+ S39 次いで、マイクロプログラムMCPは、ブリフェッチコ
マンド領域122より次のコマンドCCW43を取り出
して、制御領域にある作業域に転送しく処理5311)
、そのコマンドCCW4Jの起動処理を行う (処理S
3.)。
[Phase] Process 5311+ S39 Next, the microprogram MCP takes out the next command CCW43 from the brief fetch command area 122 and transfers it to the work area in the control area. Process 5311)
, executes the startup process of the command CCW4J (processing S
3. ).

■ 処理531=334 以下、次のコマンドCCW43について、前述の各処理
331〜S’+4が実行され、所定の入出力動作が終了
すると、コマンドccw、tの終結処理が行われる。
(2) Process 531=334 Thereafter, for the next command CCW43, the aforementioned processes 331 to S'+4 are executed, and when the predetermined input/output operation is completed, the finalization process of the commands ccw, t is performed.

■ 処理835+ s4゜ コマンド終結処理が終ると、マイクロプログラムMCP
は、チェイン指示フラグH3’4123にあるコマンド
CCW43に対応するチェイン指示フラグCIF43の
オン/オフより次のコマンドの有無を判定する(処理S
3.)。この実施例ではコマンドチェインはCCW43
で終了するので、前述の処理Sll+によりフラグC■
F43はオフにクリアされている。
■ When the processing 835 + s4゜command termination processing is completed, the microprogram MCP
determines the presence or absence of the next command based on the on/off of chain instruction flag CIF43 corresponding to command CCW43 in chain instruction flag H3'4123 (processing S
3. ). In this example, the command chain is CCW43
Therefore, the flag C■ is set by the above-mentioned process Sll+.
F43 is cleared off.

フラグCIF43がオフのときは、更に入出力動作相手
よりエラー通知の有無を判定する(処理S4゜)。
When the flag CIF43 is off, it is further determined whether there is an error notification from the input/output operation partner (processing S4°).

[相] 処理S<1.  Sa□、S43人出力動作相
手よりエラー通知がない場合、マイクロプログラムは入
出力動作が正常に終了したと判定してコマンドの正常終
結通知の設定を行い(処理541) 、バス14を経由
し”で人出力チャネル1Gにコマンドの正常終結を通知
する(処理S4□)。
[Phase] Processing S<1. Sa□, S43 If there is no error notification from the output operation partner, the microprogram determines that the input/output operation has completed normally, sets a normal termination notification of the command (process 541), and sends the command via the bus 14. The normal termination of the command is notified to the human output channel 1G (processing S4□).

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

[相] 処理S ff4+  S 451  S a6
前述の処理S36又はS40においてエラー通知があっ
た場合は、入出力制御装置11のマイクロプログラムM
CPは、エラー発生による入出力動作終結を情報処理装
置11に通知するために、エラー終結通知を設定しく処
理S、、) 、バス14を経由して入出力チャネル16
にエラー終結を通知する(処理S4.)。
[Phase] Processing S ff4+ S 451 S a6
If there is an error notification in the above-mentioned process S36 or S40, the microprogram M of the input/output control device 11
In order to notify the information processing device 11 of the termination of the input/output operation due to the occurrence of an error, the CP sets an error termination notification process S, ), and sends the input/output channel 16 via the bus 14.
of the error termination (processing S4.).

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

以上、2回のデータチェインの次に1回のコマンドチェ
インが指示されている場合の実施例について説明したが
、これよりもコマンド数の多いデータチェイン及びコマ
ンドチェインの場合も同様にして行うことができる。ま
た、データチェイン又はコマンドチェインだけの場合、
更にコマンドが1個の場合の動作は、前述の実施例の一
つの動作態様であって実施例の動作説明から明らかであ
るので、それらの動作説明は省略する。
Above, we have described an example in which one command chain is instructed after two data chains, but the same method can be used for data chains and command chains with a larger number of commands. can. Also, if there is only a data chain or command chain,
Further, the operation when there is one command is one of the operation modes of the above-described embodiment, and is clear from the explanation of the operation of the embodiment, so the explanation of the operation will be omitted.

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

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

(1)コマンドチェインを構成する全コマンドを入出力
制御装置内にブリフェッチした後にコマンドチェインを
実行するようにしたので、一つのコマンドが終結するた
びにバスを経由して次のコマンドをフェッチする必要な
く、入出力制御装置内でコマンドチェインを実行するこ
とができる。
(1) Since the command chain is executed after all commands that make up the command chain are pre-fetched into the input/output control unit, it is no longer necessary to fetch the next command via the bus every time one command is completed. Command chains can be executed within the I/O controller without having to do so.

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

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

第1図は、本発明の原理図、 第2図は、本発明の一実施例のコマンドフェッチ処理フ
ローチャート、 第3図は、同実施例のコマンドチェイン処理フローチャ
ート、 第4図は、基本形及びチエイニング方式の各コマンドの
フォーマントの説明図、 第5図は、従来の入出力制御方式の説明図であ第1図に
おいて、 11・・・情報処理装置、111・・・主記憶、12・
・・出力制御装置、120・・・入出力制御装置内メモ
(IOCメモリ)、121・・・マイクロプロゲラ領域
、122・・・ブリフェッチコマンド領域、13・・・
チェイン指示フラグ領域、124・・・制′4HnM1
3A〜13N・・・入出力装置、14・・・バス、■・
・・入出力バス、16・・・入出力チャネル。
FIG. 1 is a principle diagram of the present invention. FIG. 2 is a command fetch processing flowchart of an embodiment of the present invention. FIG. 3 is a command chain processing flowchart of the same embodiment. FIG. 4 is a basic form and chaining. FIG. 5 is an explanatory diagram of the formant of each command in the conventional input/output control method. In FIG. 1, 11... information processing device, 111... main memory, 12...
... Output control device, 120... Memo in input/output control device (IOC memory), 121... Microprogera area, 122... Brifetch command area, 13...
Chain instruction flag area, 124...control'4HnM1
3A~13N...Input/output device, 14...Bus,■・
...I/O bus, 16...I/O channels.

Claims (1)

【特許請求の範囲】 1、情報処理装置(11)に共通のバス(14)で接続
され、情報処理装置(11)の指示に従ってマイクロプ
ログラム制御方式で配下の各入出力装置(13A〜13
N)の行う入出力動作を制御する入出力制御装置(12
)に対して、情報処理装置(11)からコマンドが発行
された場合のコマンドチェイン制御方式において、(A
)最初のコマンドの処理開始前に、発行される全コマン
ドをプリフェッチして入出力制御装置(12)内に格納
し、 (B)プリフェッチされた各コマンドでチェインコマン
ドの有無を指示するチェインコマンドフラグ(CCF)
がオンの場合にチェイン指示フラグ(CIF)を入出力
制御装置(12)内に設定し、 (C)一つのコマンド処理が終了する毎にそのコマンド
に対応するチェイン指示フラグ(CIF)の内容から次
にチェインするコマンドの有無を検出して、入出力制御
装置(12)内でコマンドチェインを行う、 ことを特徴とするコマンドチェイン制御方式。
[Claims] 1. Connected to the information processing device (11) via a common bus (14), each subordinate input/output device (13A to 13
an input/output control device (12) that controls input/output operations performed by
), in the command chain control method when a command is issued from the information processing device (11) to (A
) Before starting processing of the first command, all commands to be issued are prefetched and stored in the input/output control unit (12), and (B) a chain command flag is set for each prefetched command to indicate the presence or absence of a chain command. (CCF)
is on, a chain instruction flag (CIF) is set in the input/output control device (12), and (C) every time one command processing is completed, the contents of the chain instruction flag (CIF) corresponding to that command are A command chain control method characterized by detecting the presence or absence of a command to be chained next and performing a command chain within an input/output control device (12).
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 true JPH02100163A (en) 1990-04-12
JP2523167B2 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)

Citations (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

Patent Citations (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
JP2523167B2 (en) 1996-08-07

Similar Documents

Publication Publication Date Title
JP2692609B2 (en) Multitask program debugging method and apparatus
JPH0348537B2 (en)
JPH02156334A (en) Information processor
JPH02100163A (en) Command chain control system
JPS6049352B2 (en) data processing equipment
JPH0357053A (en) Down load control system for communication processing device
JP2808558B2 (en) Information processing device
JPH05216690A (en) Computer apparatus and computer-apparatus operating method
JPH03260838A (en) Limiting system for cpu using time
JP3139310B2 (en) Digital signal processor
JPS6398704A (en) Programmable controller
JPH02191042A (en) Interruption control system
JP3288750B2 (en) Robot controller
JPH07287660A (en) Interruption processing method for programmable controller
JPH0736510A (en) Programmable controller
JPS60222934A (en) Microprogram control processing system under table control
JPS6020771B2 (en) Micro diagnosis method
JP2707770B2 (en) Data chain control method for remote channel system
JPH07134656A (en) Interruption control method and multi-task system for realizing the same
JPH0426503B2 (en)
JPS60238958A (en) Information processing system capable of preventing abnormal termination due to storage capacity insufficiency
JPH0431421B2 (en)
JP2000298641A (en) Information processor, its data transferring method and storage medium with data transfer control program stored therein
JPS61184644A (en) Control system of virtual computer system
JPS63255752A (en) Initial program loading system

Legal Events

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