JP2531206B2 - Channel device - Google Patents

Channel device

Info

Publication number
JP2531206B2
JP2531206B2 JP62288939A JP28893987A JP2531206B2 JP 2531206 B2 JP2531206 B2 JP 2531206B2 JP 62288939 A JP62288939 A JP 62288939A JP 28893987 A JP28893987 A JP 28893987A JP 2531206 B2 JP2531206 B2 JP 2531206B2
Authority
JP
Japan
Prior art keywords
command
channel
branch
input
address
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
JP62288939A
Other languages
Japanese (ja)
Other versions
JPH01130247A (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.)
NEC Corp
Original Assignee
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP62288939A priority Critical patent/JP2531206B2/en
Publication of JPH01130247A publication Critical patent/JPH01130247A/en
Application granted granted Critical
Publication of JP2531206B2 publication Critical patent/JP2531206B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ディジタル情報処理装置のチャネル装置に
利用する。特に、シリアルインタフェースを介して入出
力装置に接続されるチャネル装置の分岐コマンドの高速
化に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] The present invention is used for a channel device of a digital information processing device. In particular, the present invention relates to speeding up a branch command of a channel device connected to an input / output device via a serial interface.

〔概要〕〔Overview〕

本発明はチャネル装置において、 主記憶装置から読出されたコマンドが転送コマンドか
分岐コマンドかを判定し、分岐コマンドのときにはこの
分岐コマンドの次のコマンドとこの分岐コマンドを実行
した場合の次のコマンドとを入出力制御装置に送出する
ことにより、 分岐コマンドを高速に実施できるようにしたものであ
る。
According to the present invention, in a channel device, it is determined whether the command read from the main storage device is a transfer command or a branch command. When the command is a branch command, the command next to this branch command and the command next to this branch command are executed. Is sent to the input / output control device so that the branch command can be executed at high speed.

〔従来の技術〕[Conventional technology]

一般に、チャネル装置と入出力制御装置とは、主記憶
装置に格納されたチャネルプログラムの各々のチャネル
コマンド語を順次読み出し、このコマンドに従い互いに
転送動作を実施する。
Generally, the channel device and the input / output control device sequentially read each channel command word of the channel program stored in the main storage device, and perform the transfer operation with each other according to this command.

また、チャネルプログラムの実行に際し、直前のコマ
ンドの実行状況により次に実行するチャネルコマンド語
を選択して(一般にはチャネルコマンド語を一つ飛ばし
て実行したり、直前のチャネルコマンド語を再度やり直
したりして制御手順を変更する)実行する手段も持って
いる。
When executing a channel program, select the channel command word to be executed next depending on the execution status of the previous command (in general, skip one channel command word and execute the previous channel command word again. And change the control procedure).

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

しかし、このような従来のチャネル装置では、チャネ
ル装置と入出力制御装置とをシリアルインタフェースに
より接続した場合に互いの通信のための信号の直並列変
換に時間を要し、チャネル装置と入出力制御装置との間
の信号のやり取りに時間がかかる。
However, in such a conventional channel device, when the channel device and the input / output control device are connected by a serial interface, it takes time to perform serial-parallel conversion of signals for mutual communication, and the channel device and the input / output control device It takes time to exchange signals with the device.

このために、上記のように入出力装置とチャネル装置
とのコマンドの実行結果によりチャネルプログラムの実
行手順に変更の生じる動作(チャネルプログラムの分岐
動作:データ転送等においてディスクの回転待ち等、制
御コマンドの指示手順を直前のコマンドの実行結果によ
って決定する)では、入出力装置からのコマンドの実行
結果をチャネル装置に表示してからそれに応じた次のコ
マンドをチャネル装置から受信するまで時間がかかり、 応答時間が遅くなった分を短縮するためにチャネル
プログラムを高速にフェッチする必要が生じ、高速のフ
ェッチ回路をチャネル装置に準備する必要がある。この
ためにチャネル装置が効果になる、 同様に、応答時間が遅くなった分を短縮するため
に、チャネル装置と入出力制御装置との距離を短くし、
その応答時間を速くする必要がある。このため、入出力
制御装置をチャネル装置から離して設置できなくなる、 欠点があった。
For this reason, the operation in which the execution procedure of the channel program is changed depending on the execution result of the command between the I / O device and the channel device as described above (branch operation of the channel program: waiting for disk rotation in data transfer, etc. The instruction procedure of is determined by the execution result of the previous command), it takes time from displaying the execution result of the command from the I / O device on the channel device until receiving the next command from the channel device. It is necessary to fetch the channel program at high speed in order to shorten the response time, and it is necessary to prepare a high-speed fetch circuit in the channel device. For this reason, the channel device is effective. Similarly, in order to reduce the response time delay, the distance between the channel device and the input / output control device is shortened,
The response time needs to be fast. Therefore, there is a drawback that the input / output control device cannot be installed separately from the channel device.

本発明は上記の欠点を解決するもので、分岐コマンド
を高速に実施できるチャネル装置を提供することを目的
とする。
The present invention solves the above drawbacks, and an object of the present invention is to provide a channel device capable of executing a branch command at high speed.

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

本発明は、主記憶装置からチャネルコマンド語を読出
すアドレスを作成する手段と、この作成する手段の出力
に従ってこの主記憶装置から読出されたコマンドを入出
力制御装置に送出する手段とを備えたチャネル装置にお
いて、上記主記憶装置から読出されたコマンドが分岐コ
マンドであるか否かを判定する手段と、この判定する手
段の判定結果が分岐コマンドであるときには、上記主記
憶装置からこの分岐コマンドの次のコマンドおよびこの
分岐コマンドを実行する場合の次のコマンドを上記作成
する手段に従って読出し上記送出する手段に与える手段
とを備えたことを特徴とする。
The present invention comprises means for creating an address for reading a channel command word from the main memory, and means for sending a command read from the main memory to the input / output control device in accordance with the output of the means for creating. In the channel device, means for determining whether or not the command read from the main storage device is a branch command, and when the determination result of the determination means is a branch command, the main storage device outputs the branch command It is characterized in that it further comprises means for reading the next command and the next command for executing this branch command in accordance with the means for creating and giving the means for sending out.

〔作用〕 判定する手段で主記憶装置から読出されたコマンドが
転送コマンドか分岐コマンドかを判定する。判定結果が
分岐コマンドのときには、与える手段で主記憶装置から
この分岐コマンドの次のコマンドおよび分岐コマンドを
実行する場合の次のコマンドを作成する手段の出力に従
って読出し送出する手段に与える。以上の動作により分
岐コマンドを高速に実施できる。
[Operation] The determining means determines whether the command read from the main storage device is a transfer command or a branch command. When the determination result is a branch command, it is given to the means for reading out from the main storage device by the giving means and the output of the means for producing the command next to this branch command and the next command when executing the branch command. With the above operation, the branch command can be executed at high speed.

〔実施例〕〔Example〕

本発明の実施例について図面を参照して説明する。第
1図は本発明一実施例チャネル装置のブロック構成図で
ある。第1図において、チャネル装置20は、主記憶装置
30にアドレスを与えてチャネルコマンド語を読出すアド
レスレジスタ21と、アドレスレジスタ21の出力を入力し
てアドレスを更新する加算器22と、加算器22の出力を一
方の入力に入力し、他方の入力に入力する分岐コマンド
の分岐先アドレスを切替えてアドレスレジスタ21に与え
る切替回路25と、主記憶装置30から読出されたチャネル
コマンド語を入力して一時格納し切替回路25に格納した
チャネルコマンド語が分岐コマンドの場合に分岐先アド
レスを切替回路25に与えるレジスタ23と、レジスタ23に
格納されたチャネルコマンド語が分岐コマンドのときに
この分岐コマンドを実行した場合の次のチャネルコマン
ド語が主記憶装置30から読出されて格納されるレジスタ
24と、レジスタ23の出力とレジスタ24の出力とを切替え
て信号線201を介して入出力制御装置10に与える送出回
路26と、レジスタ23の出力を入力して格納されたコマン
ドが転送コマンドか分岐コマンドかを判定し切替回路26
を制御するコマンド判定回路27と制御回路28とを備え
る。
Embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of a channel device according to an embodiment of the present invention. In FIG. 1, the channel device 20 is a main memory device.
An address register 21 that gives an address to 30 to read a channel command word, an adder 22 that inputs the output of the address register 21 and updates the address, and an output of the adder 22 are input to one input and the other A switching circuit 25 that switches the branch destination address of the branch command input to the input and gives it to the address register 21, and a channel command word that is temporarily stored by inputting the channel command word read from the main storage device 30 and storing it in the switching circuit 25. Is a branch command, the register 23 that gives the branch destination address to the switching circuit 25, and the next channel command word when this branch command is executed when the channel command word stored in the register 23 is a branch command is the main memory. Register read and stored from device 30
24, a sending circuit 26 for switching the output of the register 23 and the output of the register 24 to give to the input / output control device 10 via the signal line 201, and whether the command stored by inputting the output of the register 23 is a transfer command. Switch circuit by judging whether it is a branch command 26
A command determination circuit 27 and a control circuit 28 for controlling

ここで主記憶装置30は、複数個のチャネルコマンド語
からなるチャネルプログラムを含み、また入出力制御装
置10は、信号線141を介してコマンドの実行結果をチャ
ネル装置20に送出し入出力装置401〜40nが接続される。
Here, the main storage device 30 includes a channel program composed of a plurality of channel command words, and the input / output control device 10 sends the execution result of the command to the channel device 20 via the signal line 141. 1 to 40 n are connected.

ここで本発明の特徴とするところは、チャネル装置20
に、判定する手段および与える手段であるレジスタ23、
24と、切替回路25と、送出回路26と、コマンド判定回路
27と、これらを制御する制御回路28とを備えたことにあ
る。
Here, a feature of the present invention is that the channel device 20
To the register 23, which is a means for judging and a means for giving,
24, switching circuit 25, sending circuit 26, command determination circuit
27 and a control circuit 28 for controlling these.

このような構成のチャネル装置の動作について説明す
る。第2図は本発明のチャネル装置のチャネルプログラ
ムの構成を示す図である。第3図は本発明のチャネル装
置のチャネルコマンド語の構成を示す図である。第4図
は本発明のチャネル装置の動作を示すフローチャートで
ある。
The operation of the channel device having such a configuration will be described. FIG. 2 is a diagram showing the structure of a channel program of the channel device of the present invention. FIG. 3 is a diagram showing the structure of channel command words of the channel device of the present invention. FIG. 4 is a flow chart showing the operation of the channel device of the present invention.

第1図において、主記憶装置30に格納されたチャネル
プログラムは、チャネル装置20により読み出され、入出
力装置40を制御するコマンドに編集され、信号線201を
介して入出力制御装置10に指示される。
In FIG. 1, the channel program stored in the main memory device 30 is read by the channel device 20, edited into a command for controlling the input / output device 40, and instructed to the input / output control device 10 via the signal line 201. To be done.

入出力制御装置10は、このコマンドを用いて入出力装
置40を制御し、結果を信号線141を経てチャネル装置20
に送出する。
The input / output control device 10 controls the input / output device 40 using this command, and outputs the result via the signal line 141 to the channel device 20.
To send to.

チャネル装置20は、この情報により次のチャネルプロ
グラムを主記憶装置30より読出し、次のコマンドを生成
して同様に信号線201を経て入出力制御装置10に送出す
る。
The channel device 20 reads the next channel program from the main memory device 30 based on this information, generates the next command, and similarly sends it to the input / output control device 10 via the signal line 201.

第2図および第3図において、チャネルプログラムA
はチャネルコマンド語B1〜Bnより構成される。各々のチ
ャネルコマンド語B1〜Bnは大別してチャネル装置20と入
出力制御装置10との間でのデータ転送を指示するもの
と、分岐を指示するものがあり、それぞれ動作内容を指
示するコマンドCまたは分岐コマンドG、チャネルプロ
グラムAの実行を制御するフラグD、H、データ転送量
を指示する転送カウントE、主記憶装置30の転送位置を
示すデータアドレスFまたは分岐コマンドを実行する際
の分岐先アドレスIより構成される。
2 and 3, the channel program A
Is composed of channel command words B 1 to B n . Each of the channel command words B 1 to B n is roughly classified into one for instructing data transfer between the channel device 20 and the input / output control device 10, and one for instructing branching. C or a branch command G, flags D and H for controlling the execution of the channel program A, a transfer count E for instructing the data transfer amount, a data address F indicating the transfer position of the main storage device 30, or a branch for executing the branch command. It is composed of the destination address I.

チャネルプログラムAにおける分岐コマンドは、一般
に無条件分岐で記述されるが、直前に実行したコマンド
の実行結果によりこの分岐コマンドを実行するか、分岐
コマンドの次のコマンドを実行するかが決められる。
Although the branch command in the channel program A is generally described as an unconditional branch, whether to execute this branch command or the command next to the branch command is determined depending on the execution result of the command executed immediately before.

すなわち、分岐コマンドを実行するか否かは、分岐コ
マンドの直前のコマンドの実行結果を判断するまでは決
定できない。
That is, whether or not to execute the branch command cannot be determined until the execution result of the command immediately before the branch command is determined.

このために、一般には入出力制御装置10および入出力
装置40にて実行した結果をチャネル装置20に送出し、こ
の情報にて次に実行すべきチャネルコマンド語を選択す
るが、このような方法では処理が遅くなり、入出力制御
装置10は次のチャネルコマンド語Bより作られるコマン
ドを必要な時間内に受信できなくなる。
Therefore, generally, the result executed by the input / output control device 10 and the input / output device 40 is sent to the channel device 20, and the channel command word to be executed next is selected by this information. Then, the processing becomes slow, and the input / output control device 10 cannot receive the command made from the next channel command word B within the required time.

第1図および第4図について、本実施例のチャネル装
置20の動作を説明する。
The operation of the channel device 20 of this embodiment will be described with reference to FIGS. 1 and 4.

アドレスレジスタ21に格納されたチャネルコマンド語
のアドレスにより主記憶装置30より読み出し()、読
み出したチャネルコマンド語は、レジスタ23に格納さ
れ、コマンド判定回路27に与えられる。
The channel command word stored in the address register 21 is read from the main storage device 30 by the address (), and the read channel command word is stored in the register 23 and given to the command determination circuit 27.

コマンド判定回路27は、レジスタ23に格納されたチャ
ネルコマンド語が転送コマンドであるか分岐コマンドで
あるかを判定し、()、このチャネルコマンド語が転
送コマンドであれば送出回路26を経て入出力制御装置10
にこのコマンドを送出しその実行を指示する()。ア
ドレスレジスタ21の内容を加算器22にて次のチャネルコ
マンド語のアドレスに更新し、切替回路25を経てアドレ
スレジスタ21にもどし、次に実行すべきチャネルコマン
ド語のアドレスを準備する()。
The command judgment circuit 27 judges whether the channel command word stored in the register 23 is a transfer command or a branch command, and (), if this channel command word is a transfer command, input / output via the sending circuit 26. Controller 10
This command is sent to and the execution is instructed (). The content of the address register 21 is updated by the adder 22 to the address of the next channel command word, returned to the address register 21 via the switching circuit 25, and the address of the channel command word to be executed next is prepared ().

コマンド判定回路27にて、分岐コマンドであることが
判定されると()、アドレスレジスタ21の内容を加算
器22にて次のチャネルコマンド語のアドレスに更新し、
切替回路25を経てアドレスレジスタ21にもどす。
When the command determination circuit 27 determines that the command is a branch command (), the content of the address register 21 is updated by the adder 22 to the address of the next channel command word,
It returns to the address register 21 via the switching circuit 25.

さらに、アドレスレジスタ21の内容により主記憶装置
30よりチャネルコマンド語を読出してレジスタ24に格納
する()。
Further, depending on the contents of the address register 21, the main memory device
The channel command word is read from 30 and stored in the register 24 ().

分岐コマンドの場合は、さらに、レジスタ23に格納さ
れた分岐コマンドの分岐先アドレスを切替回路25を経て
アドレスレジスタ21に格納し、このアドレスにより主記
憶装置30よりチャネルコマンド語を読出してレジスタ23
に格納し()、送出回路26を経てレジスタ23および24
のコマンドを入出力制御装置10に送出する()。次に
実行すべきチャネルコマンド語のアドレスを準備する
()。
In the case of a branch command, the branch destination address of the branch command stored in the register 23 is further stored in the address register 21 via the switching circuit 25, and the channel command word is read from the main memory device 30 by this address to register 23.
Stored in () and passed through the sending circuit 26 to the registers 23 and 24.
The command is sent to the input / output control device 10 (). Prepare the address of the channel command word to be executed next ().

なお、入出力制御装置10にて、分岐先コマンドの次の
コマンドと分岐コマンドを実行する場合の次のコマンド
とのどちらを用いて実行したかは、この実行後に入出力
制御装置10よりチャネル装置20に報告され、チャネル装
置はこの報告にもとづいて、さらに次のチャネルコマン
ド語のアドレスを生成することになるが、本実施例では
この記述は省略してある。
In the input / output control device 10, the command next to the branch destination command or the command next when the branch command is executed is used to determine which is executed by the input / output control device 10 from the channel device. 20 and the channel device will generate the address of the next channel command word based on this report, but this description is omitted in this embodiment.

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

以上説明したように、本発明は、分岐コマンドを実施
する際、チャネル装置より入出力制御装置に対し分岐コ
マンドの次のコマンドと分岐コマンドを実行する場合の
次のコマンドの二つのコマンドを与えるために、どちら
のコマンドを実行する場合でも入出力制御装置は再度チ
ャネル装置よりコマンドを受信しなおす必要がなく、チ
ャネル装置と入出力制御装置との間での応答が減り、分
岐コマンドを高速に実施できる優れた効果がある。
As described above, according to the present invention, when the branch command is executed, the channel device gives two commands to the input / output control device, the command next to the branch command and the next command when the branch command is executed. In addition, the I / O controller does not have to re-receive the command from the channel device regardless of which command is executed, the response between the channel device and the I / O controller is reduced, and the branch command is executed at high speed. There is an excellent effect.

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

第1図は本発明一実施例チャネル装置のブロック構成
図。 第2図は本発明のチャネル装置のチャネルプログラムの
構成を示す図。 第3図は本発明のチャネル装置のチャネルコマンド語の
構成を示す図。 第4図は本発明のチャネル装置の動作を示すフローチャ
ート。 10……入出力制御装置、20……チャネル装置、21……ア
ドレスレジスタ、22……加算器、23、24……レジスタ、
25……切替回路、26……送出回路、27……判定回路、28
……制御回路、30……主記憶装置、40……入出力装置、
A……チャネルプログラム、B1〜Bn……チャネルコマン
ド語、C……コマンド、D、H……制御フラグ、E……
転送カウント、F……データアドレス、G……分岐コマ
ンド、I……分岐先アドレス。
FIG. 1 is a block diagram of a channel device according to an embodiment of the present invention. FIG. 2 is a diagram showing the structure of a channel program of the channel device of the present invention. FIG. 3 is a diagram showing the structure of channel command words of the channel device of the present invention. FIG. 4 is a flowchart showing the operation of the channel device of the present invention. 10 …… input / output control device, 20 …… channel device, 21 …… address register, 22 …… adder, 23, 24 …… register,
25 …… Switching circuit, 26 …… Sending circuit, 27 …… Judging circuit, 28
...... Control circuit, 30 …… Main memory, 40 …… I / O device,
A ...... channel program, B 1 ~B n ...... channel command word, C ...... commands, D, H ...... control flag, E ......
Transfer count, F ... Data address, G ... Branch command, I ... Branch destination address.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】主記憶装置(30)からチャネルコマンド語
を読出すアドレスを作成する手段(21、22)と、 この作成する手段の出力に従ってこの主記憶装置から読
出されたコマンドを入出力制御装置(10)に送出する手
段(26、28)と、 を備えたチャネル装置において、 上記主記憶装置から読出されたコマンドが分岐コマンド
であるか否かを判定する手段(23、27)と、 この判定する手段の判定結果が分岐コマンドであるとき
には、上記主記憶装置からこの分岐コマンドの次のコマ
ンドおよびこの分岐コマンドを実行する場合の次のコマ
ンドを上記作成する手段に従って読出し上記送出する手
段に与える手段(23、24、26、28)と を備えたことを特徴とするチャネル装置。
1. A means (21, 22) for creating an address for reading a channel command word from a main memory (30), and an input / output control for a command read from the main memory according to the output of the means for creating. Means (26, 28) for sending to the device (10), and means (23, 27) for judging whether or not the command read from the main memory device is a branch command in the channel device comprising: When the determination result of this determining means is a branch command, the command next to this branch command and the next command when executing this branch command are read from the main storage device according to the creating means, and are sent to the sending means. And a means (23, 24, 26, 28) for giving the channel device.
JP62288939A 1987-11-16 1987-11-16 Channel device Expired - Fee Related JP2531206B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62288939A JP2531206B2 (en) 1987-11-16 1987-11-16 Channel device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62288939A JP2531206B2 (en) 1987-11-16 1987-11-16 Channel device

Publications (2)

Publication Number Publication Date
JPH01130247A JPH01130247A (en) 1989-05-23
JP2531206B2 true JP2531206B2 (en) 1996-09-04

Family

ID=17736767

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62288939A Expired - Fee Related JP2531206B2 (en) 1987-11-16 1987-11-16 Channel device

Country Status (1)

Country Link
JP (1) JP2531206B2 (en)

Also Published As

Publication number Publication date
JPH01130247A (en) 1989-05-23

Similar Documents

Publication Publication Date Title
US4314332A (en) Memory control system
JPH0326866B2 (en)
JP2531206B2 (en) Channel device
EP0240606A2 (en) Pipe-line processing system and microprocessor using the system
JPS5858653A (en) Data processor
JP2564054B2 (en) Register file
JPS6325373B2 (en)
JPH03288228A (en) Information processor
JPS6122330B2 (en)
JPH01131936A (en) Memory data editing system
JPS6031646A (en) Data processor
JP2543589B2 (en) Data processing device
JPS62145430A (en) Data processor
JPH0644066A (en) Information processor
JPS6130295B2 (en)
JPS595355A (en) Access controlling system of virtual stack
JPH0338613B2 (en)
JPH0683705A (en) Microcomputer lsi
JPS6394333A (en) Digital computer having register indirect address form instruction
JPS5882342A (en) Microprogram controller
JPS5851354A (en) Program control circuit
JPH01283635A (en) Buffer control circuit
JPS62241039A (en) Logic simulator
JPS6127775B2 (en)
JPS5840618A (en) Process input and output controlling system

Legal Events

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