JPH02287657A - Channel device - Google Patents

Channel device

Info

Publication number
JPH02287657A
JPH02287657A JP10872089A JP10872089A JPH02287657A JP H02287657 A JPH02287657 A JP H02287657A JP 10872089 A JP10872089 A JP 10872089A JP 10872089 A JP10872089 A JP 10872089A JP H02287657 A JPH02287657 A JP H02287657A
Authority
JP
Japan
Prior art keywords
request
ccw
system bus
read
microprocessor
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.)
Pending
Application number
JP10872089A
Other languages
Japanese (ja)
Inventor
Shoji Sako
迫 昭治
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP10872089A priority Critical patent/JPH02287657A/en
Publication of JPH02287657A publication Critical patent/JPH02287657A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To execute the read-out control of a CCW (channel command word) in a channel device at a high speed and to improve the use efficiency of the channel device by providing a means for executing the arbitration of a first and a second requests from a microprocessor. CONSTITUTION:A microprocessor 21 gives a first request (CCW read-out request) for reading out the corresponding CCW to a DMA (direct memory access) control part 25 in accordance with an input/output instruction from a CPU 11. Subsequently, in the control part 25, the arbitration to a second request (transmitting and receiving data read-out/write request) is executed. In this case, the priority of a first request is dealt with equally to a second request or above, and even in a period in which a transmitting and receiving data read-out/write cycle by the DMA is executed repeatedly, a first request is selected quickly and given as a third request to a system bus control part 24. In such a way, a system bus 15 is obtained and the corresponding processing is executed, therefore, the read-out control of the CCW is executed at a high speed, and also, the use efficiency of a channel device 13 can be improved.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、CPUから受取った入出力命令に応じて主
記憶装置から対応する入出力オペレーション情報である
チャネルコマンド語(以下、CCWと称する)を読出し
て解読し、自装置に接続された該当入出力制御装置の起
動並びにデータ転送を行うチャネル装置に関する。
[Detailed Description of the Invention] [Objective of the Invention] (Industrial Application Field) The present invention is directed to a channel command word (hereinafter referred to as , CCW), reads and decodes the channel device, activates the corresponding input/output control device connected to the device, and transfers data.

(従来の技術) この種のチャネル装置では、一般にCPU(中央処理装
置)から自装置宛ての入出力命令が発行されると、更に
詳細に述べるならば自装置に割付けられたチャネル、並
びに自装置に接続されている入出力制御装置に割付けら
れたサブチャネルを指定する入出力命令が発行されると
、次の動作が行われる。まずチャネル装置全体を制御す
るマイクロプロセッサは、入出力命令中に記述されてい
るCCW先頭アドレス(主記憶装置上のCCWの格納先
の先頭アドレス)を取出し、このアドレスを指定して、
チャネル装置内におけるシステムバス取得の制御を行う
システムバス制御部にCCW続出し要求を出力する。シ
ステムバス制御部はマイクロプロセッサからのCCW読
出し要求と、主記憶装置との間のDMA (ダイレクト
・メモリ・アクセス)転送を制御するDMA制御部部か
らの主記憶装置に対する送受信データの読出し/書込み
要求などの要求との間の優先制御を行う。
(Prior Art) In this type of channel device, when an input/output command is generally issued from a CPU (Central Processing Unit) to the device, the channel assigned to the device and the device When an I/O command is issued that specifies a subchannel assigned to an I/O control device connected to the I/O controller, the following operations occur. First, the microprocessor that controls the entire channel device retrieves the CCW start address (the start address of the CCW storage destination on the main memory) written in the input/output instruction, and specifies this address.
A CCW succession request is output to the system bus control unit that controls system bus acquisition within the channel device. The system bus control unit receives CCW read requests from the microprocessor and read/write requests for transmitted/received data to and from the main memory from the DMA control unit that controls DMA (direct memory access) transfers to and from the main memory. Perform priority control between requests such as

このシステムバス制御部において優先された要求の発行
元は、システムバスが開放されていればシステムバスを
取得して主記憶装置とチャネル装置間のデータ転送を開
始する。
If the system bus is open, the issuer of the request prioritized in the system bus control unit acquires the system bus and starts data transfer between the main storage device and the channel device.

さて、チャネル装置のシステムバス制御部においては、
一般にマイクロプロセッサからの要求よりDMA制御部
からの要求の方が優先度が高いものとして扱われる。こ
のため、成る(サブチャネルが割付けられた)入出力制
御装置がDMA制御により主記憶装置とデータ転送を行
っている間に、同じチャネル装置に接続されている池の
入出力制御装置(に割付けられたサブチャネル)を対象
とする入出力命令がCPUから発行された場合には、チ
ャネル装置内のマイクロプロセッサがこの入出力命令に
応じてCCW読出し要求をシステムバス制御部に出して
も、このCCW読出l−要求はDMA制御部から主記憶
装置に対する送受信データの読出し/書込み要求がある
と受付けられない。即ちマイクロプロセッサはシステム
バス制御部に対してCCW読出し要求を出しても、CC
W読出しに必要なシステムバスの取得は、DMA制御部
によるDMA制御が終結または中断するまで待たされる
Now, in the system bus control section of the channel device,
Generally, requests from the DMA control unit are treated as having higher priority than requests from the microprocessor. Therefore, while an input/output controller (to which a subchannel is assigned) is transferring data with the main storage device using DMA control, an input/output controller (to which a subchannel is assigned) is connected to the same channel device. If the CPU issues an input/output command that targets a subchannel that has A CCW read l-request cannot be accepted if there is a request from the DMA control unit to read/write transmitted/received data to the main memory. In other words, even if the microprocessor issues a CCW read request to the system bus control unit, the CCW
Acquisition of the system bus necessary for reading W is made to wait until DMA control by the DMA control section is completed or interrupted.

(発明が解決しようとする課題) 上記したように従来は、チャネル装置に接続された入出
力制御装置がDMA制御による主記憶装置とのデータ転
送中に、同じチャネル装置に接続されている池の入出力
制御装置を対象とする入出力命令がCPUからチャネル
装置に発行された場合には、チャネル装置内のマイクロ
プロセッサがCCW読出し要求を出しても容易にシステ
ムバスが取得できないことから待ち状態が長く続き、人
出力制御装置の起動が著しく遅れるため、高速処理には
不向きであるという問題があった。また、チャネル装置
のマイクロプロセッサは、CCW読出しのための待ち状
態が長く続くことから、CPUが更に次の入出力命令を
発行しようとしても受付は処理に移れず、チャネル装置
の使用効率が低下するという問題もあった。
(Problems to be Solved by the Invention) As described above, conventionally, when an input/output control device connected to a channel device is transferring data to and from a main storage device under DMA control, an input/output control device connected to the same channel device When an I/O command for an I/O control unit is issued from the CPU to a channel device, a wait state occurs because the microprocessor in the channel device cannot easily acquire the system bus even if it issues a CCW read request. The problem is that it lasts for a long time and the startup of the human output control device is significantly delayed, making it unsuitable for high-speed processing. In addition, since the microprocessor of the channel device remains in a waiting state for reading the CCW for a long time, even if the CPU attempts to issue the next input/output command, the reception cannot proceed to processing, reducing the usage efficiency of the channel device. There was also the problem.

したがってこの発明の解決すべき課題は、チャネル装置
におけるCCW(チャネルコマンド語)の読出し制御の
高速化と、チャネル装置の使用効率の向上が図れるよう
にすることである。
Therefore, the problem to be solved by the present invention is to make it possible to speed up the read control of CCW (channel command word) in a channel device and improve the usage efficiency of the channel device.

[発明の構成コ (3題を解決するための手段) この発明は、チャネル装置内のマイクロプロセッサに、
CPUからの入出力命令に応じて対応するccwcチャ
ネルコマンド語)を主記憶装置から読出すための第1要
求を発する機能と、主記憶装置から読出されたCCWの
指定する送受信データの読出し/書込みを行うための第
2要求を発する機能とを持たせ、且つ主記憶装置との間
でDMA転送を行うDMA制御部に、上記マイクロプロ
セッサから発せられる第1および第2要求の調停を第1
要求の優先度が第2要求の優先度と同等以上であるもの
として行ってシステムバスを取得するための第3要求を
システムバス制御部に発すると共に、対応する第1また
は第2要求の示す要求処理をDMAによって実行する機
能を持たせたことを特徴とするものである。
[Configuration of the Invention (Means for Solving Three Problems) This invention provides a microprocessor in a channel device,
A function to issue the first request to read the corresponding ccwc channel command word from the main memory in response to an input/output command from the CPU, and read/write the transmission/reception data specified by the CCW read from the main memory. A DMA control unit that performs DMA transfer with the main storage device is provided with a function of issuing a second request for performing the above-mentioned microprocessor.
Issue a third request to the system bus control unit to acquire the system bus, assuming that the priority of the request is equal to or higher than the priority of the second request, and the request indicated by the corresponding first or second request. It is characterized by having a function of executing processing using DMA.

(作用) 上記の構成によれば、マイクロプロセッサからの第1要
求(CCW読出し要求)はシステムバス制御部ではなく
てDMA制御部に与えられ、このD M A制御部にお
いて、マイクロプロセッサから同制御部に従来同様に与
えられる第2要求(送受信データ読出し/書込み要求)
との調停が行われる。DMA制御部においては、第1要
求の優先度は第2要求のそれと同等以上に扱われており
、したがって第1要求は、DMAによる送受信データ読
出し/書込みサイクルが繰返し行われている期間中であ
っても、DMA制御部によって速やかに選択され、第3
要求としてシステムバス制御部に与えられる。この第3
要求に応じ、システムバス制御部によりシステムバスが
取得されると、DMA制御部によってDMAによるCC
W読出し処理が行われる。一方、DMA制御部に第1要
求を発して同制御部にCCW続出し処理の制御を渡した
マイクロプロセッサは、要求した処理から解放されるた
め、他の処理、例えばCPUからの次の入出力命令の受
付は処理に進むことが可能となる。
(Operation) According to the above configuration, the first request (CCW read request) from the microprocessor is given to the DMA control unit instead of the system bus control unit, and in this DMA control unit, the first request (CCW read request) from the microprocessor is sent to the DMA control unit. 2nd request (transmission/reception data read/write request) given to the unit in the same way as before
Mediation will be held. In the DMA control unit, the priority of the first request is treated as being equal to or higher than that of the second request. Therefore, the first request is not processed during the period when the DMA transmit/receive data read/write cycle is repeated. Even if the third
It is given to the system bus controller as a request. This third
When the system bus control unit acquires the system bus in response to a request, the DMA control unit performs CC control using the DMA.
W read processing is performed. On the other hand, the microprocessor that issued the first request to the DMA control unit and passed control of the CCW successive processing to the same control unit is released from the requested process, so it can perform other processes, such as the next input/output from the CPU. Upon reception of the command, it is possible to proceed to processing.

(実施例) 第1図はこの発明のチャネル装置を有する計算機システ
ムの一実施例を示すブロック構成図である。同図におい
て、11はシステムの中枢を成すCPU (中央処理装
置)、12は各種プログラムおよびデータの格納等に供
される主記憶装置である。
(Embodiment) FIG. 1 is a block diagram showing an embodiment of a computer system having a channel device of the present invention. In the figure, 11 is a CPU (Central Processing Unit) that forms the core of the system, and 12 is a main storage device used to store various programs and data.

13はチャネル装置、14はチャネル装置13に接続さ
れた人出力制御装置である。チャネル装置13にはチャ
ネルが、入出力制御装置14にはサブチャネルが、それ
ぞれ割付けられている。チャネル装置13はCPUII
から発行される入出力命令に応じて主記憶装置12から
入出力オペレーション情報であるCCW(チャネルコマ
ンド語)を読出して解読し、該当する入出力制御装置1
4の起動・データ転送を行う機能を有する。また入出力
制御装置14は、チャネル装置皇3の指示に基づき、図
示せぬ入出力機器との入出力動作およびチャネル装置1
3への入出力割込みを発行する機能を有する。チャネル
装置13には複数の入出力制御装置14が接続されてい
る。
13 is a channel device, and 14 is a human output control device connected to the channel device 13. Channels are assigned to the channel device 13, and subchannels are assigned to the input/output control device 14, respectively. Channel device 13 is CPU II
In response to an input/output command issued from the main storage device 12, CCW (channel command word), which is input/output operation information, is read out and decoded, and the corresponding input/output control device 1
It has the function of starting 4 and transferring data. In addition, the input/output control device 14 performs input/output operations with input/output devices (not shown) and the channel device 1 based on instructions from the channel device 3.
It has the function of issuing input/output interrupts to 3. A plurality of input/output control devices 14 are connected to the channel device 13 .

CP U IL主記憶装置12およびチャネル装置13
は、コントロール、アドレス、データの各バスから成る
システムバス15によって相互接続されている。
CPU IL main storage device 12 and channel device 13
are interconnected by a system bus 15 consisting of control, address, and data buses.

なお、システムバス15には、チャネル装置13以外に
も同様のチャネル装置が接続されているものとする。
It is assumed that similar channel devices other than the channel device 13 are connected to the system bus 15.

チャネル装置13は、装置全体を制御するマイクロプロ
セッサ21.マイクロプロセッサ21の動作に必要な制
御用のマイクロプログラム並びに送受信データの格納に
供されるメモリ(以下、ローカルメモリと称する)22
、およびコントロール、アドレス、データの各バスから
成るマイクロプロセッサ21のバス(以下、ローカルバ
スと称する)23を有している。またチャネル装置13
は、送受信データの読出し/書込み要求(DMA転送要
求)を最優先要求としてシステムバス15の取得に関ス
る制御を行うシステムバス制御部24、およびDMA制
御部25を有している。DMA制御部25は、マイクロ
プロセッサ21からのCCW読出し要求を受取るボート
25aと、マイクロプロセッサ21からの送受信データ
の読出し/書込み要求を受取るボート25bを持ってお
り、ボート25a、 25bに与えられる要求に対しア
ービトレーシヨン(調停)を行い、決定した要求をシス
テムバス制御部24に出力してバス取得処理を行い、D
MA制御によるCCW読出しまたはデータ転送を行うよ
うになっている。
The channel device 13 includes a microprocessor 21. which controls the entire device. A memory (hereinafter referred to as local memory) 22 used to store control microprograms and transmitted/received data necessary for the operation of the microprocessor 21
, and a microprocessor 21 bus (hereinafter referred to as local bus) 23 consisting of control, address, and data buses. Also, the channel device 13
has a system bus control unit 24 and a DMA control unit 25 that perform control related to acquisition of the system bus 15, giving top priority to requests for reading/writing transmitted and received data (DMA transfer requests). The DMA control unit 25 has a boat 25a that receives a CCW read request from the microprocessor 21 and a boat 25b that receives a read/write request for transmitted/received data from the microprocessor 21. Arbitration is performed on the D, and the determined request is output to the system bus control unit 24 to perform bus acquisition processing.
CCW reading or data transfer is performed under MA control.

またチャネル装置13は、CPUIIから発行された入
出力命令中のサブチャネル指定部分(サブチャネル番号
)およびCCW先頭アドレス(主記憶装置12上のCC
Wの格納先の先頭アドレス)をスタックするための(先
入れ先出し方式の)スタックレジスタ2B、主記憶装置
12から読出すべきCCWのアドレスを指定するための
CCWアドレスレジスタ27、および主記憶装置12か
ら読出されたCCWを保持するためのCCWデータレジ
スタ28を有している。チャネル装置13は更に、主記
憶装置12に対する送受信データの読出し/書込み先の
アドレスを指定するカウンタ内蔵のデータアドレスレジ
スタ29、主記憶装置12に書込むデータ(受信データ
)を保持するためのライトデータレジスタ30、および
主記憶装置12から読出されたデータ(送信データ)を
保持するためのリードデータレジスタ81を有している
In addition, the channel device 13 uses the subchannel specification part (subchannel number) in the input/output command issued from the CPU II and the CCW start address (CCW on the main storage device 12).
A stack register 2B (first-in, first-out system) for stacking (the first address of the storage destination of W), a CCW address register 27 for specifying the address of the CCW to be read from the main memory 12, and a CCW address register 27 for specifying the address of the CCW to be read from the main memory 12. It has a CCW data register 28 for holding the CCW. The channel device 13 further includes a data address register 29 with a built-in counter that specifies the read/write destination address of transmitted/received data to the main memory 12, and a write data register 29 for holding the data (received data) to be written to the main memory 12. It has a register 30 and a read data register 81 for holding data read from the main memory 12 (transmission data).

次に、第1図の構成の動作を説明する。Next, the operation of the configuration shown in FIG. 1 will be explained.

まず、チャネル装置13に割付けられたチャネル(のチ
ャネル番号)、並びに同装置13に接続されている成る
人出力制御装置14に割付けられたサブチャネル(のサ
ブチャネル番号)を指定する入出力命令が、CPUII
からシステムバス15上に発行されたものとする。この
場合、入出力命令中のサブチャネル番号およびCCW先
頭アドレスは、同命令中のチャネル番号で指定されたチ
ャネル装置13内のスタックレジスタ26にスタックさ
れ、マイクロプロセッサ21に割込みが入る。これによ
りマイクロプロセッサ21は上記入出力命令の受付は処
理を行い、今回スタックされた(サブチャネル番号およ
び)CCW先頭アドレスがスタックレジスタ26の先頭
情報となる場合には、即ち上記の割込み時にスタックレ
ジスタ26にスタックされたCCWアドレスが次に実行
すべきCCW読出しのためのアドレスであるならば、ま
ずスタックレジスタ26からCCW先頭アドレスを取出
し、同アドレスをローカルバス23経由でCCWアドレ
スレジスタ27に設定する。次にマイクロプロセッサ2
1は、DMA制御部25のボート25aにCCW読出し
要求を出力し、DMA制御部25内のCCW読出1.要
求処理を開始させる。これに対し、スタックレジスタ2
6に既に他のCCWアドレスがスタックされているなら
ば、マイクロプロセッサ21は上記の処理を控える。
First, an input/output command is issued that specifies the channel (channel number) assigned to the channel device 13 and the subchannel (subchannel number) assigned to the human output control device 14 connected to the channel device 13. , CPUII
It is assumed that the information is issued on the system bus 15 from In this case, the subchannel number and CCW start address in the input/output instruction are stacked in the stack register 26 in the channel device 13 specified by the channel number in the instruction, and an interrupt is generated in the microprocessor 21. As a result, the microprocessor 21 processes the reception of the above input/output command, and if the currently stacked (subchannel number and) CCW start address becomes the start information of the stack register 26, that is, the stack register at the time of the above interrupt. If the CCW address stacked in 26 is the address for the next CCW readout to be executed, first take out the CCW start address from the stack register 26 and set the same address in the CCW address register 27 via the local bus 23. . Next, microprocessor 2
1 outputs a CCW read request to the boat 25a of the DMA control unit 25, and the CCW read request 1.1 in the DMA control unit 25 is executed. Start request processing. In contrast, stack register 2
If another CCW address is already stacked at 6, the microprocessor 21 refrains from the above processing.

DMA制御部25は、ポート25aにマイクロプロセッ
サ21からCCW読出し要求が出力されると、他ボート
25bに与えられる送受信データの読出し/i1込み要
求とのアービトレーションを行う。ここでは、ボート2
5a側の要求の方が優先度が高く設定されており、DM
A制御部25はポート25aに与えられたCCW読出し
要求を選択することになる。この場合、DMA制御部2
5はシステムバス制御部24に対してCCW=出しのた
めのシステムバス取得要求を出す。一方マイクロプロセ
ッサ21は、DMA制御部25にCCW続出し要求を出
した後は、同要求が実行されるか或は待たされるかに無
関係に、要求したCCW続出しに関する処理から解放さ
れる。このためマイクロプロセッサ21は、要求したC
CW読出しが待たされたとしても他の処理を行うことが
でき、CPUから更に次の入出力命令が発行された場合
には同命令の受付は処理に進むことができる。
When a CCW read request is output from the microprocessor 21 to the port 25a, the DMA control unit 25 arbitrates with a request for reading/i1 input of transmitted and received data given to another boat 25b. Here, boat 2
Requests from 5a side are set with higher priority, and DM
The A control unit 25 selects the CCW read request applied to the port 25a. In this case, the DMA control unit 2
5 issues a system bus acquisition request to the system bus control unit 24 to issue CCW=. On the other hand, after the microprocessor 21 issues a CCW continuation request to the DMA control unit 25, it is released from processing related to the requested CCW continuation, regardless of whether the request is executed or awaited. Therefore, the microprocessor 21
Even if the CW reading is made to wait, other processing can be performed, and if the CPU issues the next input/output command, the reception of the command can proceed to the processing.

さて、システムバス制御部24はシステムバス15の使
用状況を監視しており、上記のようにDMA制御部25
から要求(CCW読出し要求)が出されると、システム
バス15が開放され次第、システムバス15を取得する
。ここでは、CCW読出し要求および送受信データの読
出し/書込み要求(DMA転送要求)は、いずれもDM
A制御部25からシステムバス制御部24に出力される
ため、両要求が並行してシステムバス制御部24に出力
されることはない。したがって、DMA制御部25から
のCCW続出し要求はシステムバス制御部24で必ず受
付けられる。システムバス制御部24はD M A制御
部25からの要求を受付けてシステムバス15を取得す
ると、DMA制御部25に対してその旨を通知すると共
に、この例のようにCCW読出し要求の場合には、同要
求およびCCWアドレスレジスタ27に設定されている
アドレスをシステムバス15を介して主記憶装置12へ
送出する。このCCW読出し要求およびアドレス送出の
結果、主記憶装置12から対応するCCWが読出される
。主記憶装置12から読出されたCCWはシステムバス
15を介してチャネル装置13に転送され、同装置13
内のCCWデータレジスタ28に保持される。
Now, the system bus control section 24 monitors the usage status of the system bus 15, and as mentioned above, the DMA control section 25
When a request (CCW read request) is issued, the system bus 15 is acquired as soon as the system bus 15 is released. Here, both the CCW read request and the transmit/receive data read/write request (DMA transfer request) are
Since the request is output from the A control unit 25 to the system bus control unit 24, both requests are not output to the system bus control unit 24 in parallel. Therefore, the system bus control section 24 always accepts the CCW continuous output request from the DMA control section 25. When the system bus control unit 24 receives a request from the DMA control unit 25 and acquires the system bus 15, it notifies the DMA control unit 25 of this fact, and in the case of a CCW read request as in this example. sends the request and the address set in the CCW address register 27 to the main storage device 12 via the system bus 15. As a result of this CCW read request and address sending, the corresponding CCW is read from main storage device 12. The CCW read from the main storage device 12 is transferred to the channel device 13 via the system bus 15, and
The data is held in the CCW data register 28 within the CCW data register 28.

マイクロプロセッサ21は、CCW読出し要求に対応し
て主記憶装置12からCCWが転送されると、このCC
WをCCWデータレジスタ28からローカルバス23を
介して取込んで解読する。そしてマイクロプロセッサ2
1は、CCW解読結果に応じ、CCWによって示されて
いる動作を、スタックレジスタ26にスタックされてい
る先頭の情報中のサブチャネル番号が割付けられた入出
力制御装置14に対して開始させ、同情報をスタックレ
ジスタ2Bから除去する。このときマイクロプロセッサ
21は、解読したCCWによって主記憶装置12と入出
力制御装置14との間の送受信データの読出し/書込み
動作で且つDMAによるデータ転送が指定されているな
らば、主記憶装置12への受信データの書込み動作のと
きは、データアドレスレジスタ29にアドレスを、ライ
トデータレジスタ30にはローカルメモリ22に格納さ
れている入出力制御装置14からの受信データをセット
し、DMA制御部25のボート25bに受信データの書
込み要求を出力する。またマイクロプロセッサ21は、
主記憶装置12からの送信データの読出し動作のときは
、データアドレスレジスタ29へのアドレスセット動作
だけを行い、DMA制御部25のボート25bに送信デ
ータの読出し要求を出力する。
When the CCW is transferred from the main storage device 12 in response to the CCW read request, the microprocessor 21 reads the CCW.
W is fetched from the CCW data register 28 via the local bus 23 and decoded. and microprocessor 2
1 causes the input/output control device 14 to which the subchannel number in the first information stacked in the stack register 26 is assigned to start the operation indicated by the CCW in accordance with the CCW decoding result, and Remove information from stack register 2B. At this time, if the decoded CCW specifies a read/write operation of transmission/reception data between the main storage device 12 and the input/output control device 14 and a data transfer using DMA, the microprocessor 21 transfers data to the main storage device 12. When writing received data to the DMA controller 25, the address is set in the data address register 29, the received data from the input/output controller 14 stored in the local memory 22 is set in the write data register 30, and the DMA controller 25 A write request for the received data is output to the boat 25b. In addition, the microprocessor 21
When reading transmission data from the main storage device 12, only the address setting operation to the data address register 29 is performed, and a request for reading transmission data is output to the port 25b of the DMA control unit 25.

マイクロプロセッサ21は以上の処理を終了すると、ス
タックレジスタ2Bが空きか否かを調べ、空きでなけれ
ば、同レジスタ2Bにスタックされている先頭の情報中
のCCW先頭アドレスを取出し、同アドレスをローカル
バス23経由でCCWアドレスレジスタ27に設定する
。次にマイクロプロセッサ2■は、DMA制御部25の
ボート25aにCCW読出し要求を出力し、DMA制御
部25内のCCW読出し要求処理を開始させる。
When the microprocessor 21 completes the above processing, it checks whether the stack register 2B is empty or not. If it is not empty, it extracts the CCW start address from the top information stacked in the register 2B and stores the same address locally. It is set in the CCW address register 27 via the bus 23. Next, the microprocessor 22 outputs a CCW read request to the boat 25a of the DMA control section 25, and causes the DMA control section 25 to start CCW read request processing.

DMA制御部25は、主記憶装置12との間の送受信デ
ータの読出し/書込み要求がマイクロプロセッサ21か
らボート25bに与えられると、他ボート25aに与え
られるCCW読出し要求とのアービトレーションを行う
。そしてDMA制御部25は、送受信データの読出し/
書込み要求(送信データの読出し要求、または受信デー
タの書込み要求)を選択した場合にはシステムバス制御
部24に対してシステムバス取得要求を出す。なお、D
MA制御部25においては、上記のようにボート25b
に送受信データの読出し/書込み要求が与えられた場合
には、同要求に対応する一連のデータ転送(DMAデー
タ転送)が終了するまでは、同要求が与えられているも
のとして読出し/書込み要求処理を行う。
When the microprocessor 21 gives the boat 25b a request to read/write data transmitted/received to/from the main storage device 12, the DMA control section 25 arbitrates with a CCW read request given to another boat 25a. The DMA control unit 25 then reads/receives the transmitted/received data.
When a write request (a request to read transmitted data or a request to write received data) is selected, a system bus acquisition request is issued to the system bus control unit 24. In addition, D
In the MA control unit 25, as described above, the boat 25b
If a read/write request for transmitted/received data is given, the read/write request is processed as if the request had been given until a series of data transfers (DMA data transfers) corresponding to the request are completed. I do.

システムバス制御部24はDMA制御部25からシステ
ムバス取得要求が出されると、システムバス15が開放
され次第、システムバス15を取得し、その旨の応答を
D M A @御部25に返す。そしてシステムバス制
御部24は、受信データの書込み時には、データアドレ
スレジスタ29に保持されているアドレスと、ライトデ
ータレジスタ30に保持されている受信データをシステ
ムバス15を介して主記憶装置12に送出する。これに
より、ライトデータレジスタ30からのデータがデータ
アドレスレジスタ29の指定する主記憶装置12のアド
レスに書込まれ、データアドレスレジスタ29の内容が
カウントアツプされる。これに対して送信データの読出
し時には、システムバス制御部24はデータアドレスレ
ジスタ29に保持されているアドレスだけをシステムバ
ス15を介して主記憶装置12に送出する。これにより
、データアドレスレジスタ29の指定するアドレスのデ
ータが主記憶装置12から読出される。
When the system bus control section 24 receives a system bus acquisition request from the DMA control section 25, it acquires the system bus 15 as soon as the system bus 15 is released, and returns a response to that effect to the DMA control section 25. When writing received data, the system bus control unit 24 sends the address held in the data address register 29 and the received data held in the write data register 30 to the main storage device 12 via the system bus 15. do. As a result, the data from the write data register 30 is written to the address of the main storage device 12 specified by the data address register 29, and the contents of the data address register 29 are counted up. On the other hand, when reading transmission data, the system bus control section 24 sends only the address held in the data address register 29 to the main storage device 12 via the system bus 15. As a result, the data at the address specified by the data address register 29 is read from the main storage device 12.

主記憶装置12から読出されたデータはシステムバス1
5を介してチャネル装置13に転送され、同装置13内
のり−ドデータレジスタ31に保持される。リードデー
タレジスタ31に保持されたデータ(主記憶装置12か
ら読出された受信データ)は、ローカルメモリ22に一
時格納される。
The data read from the main memory 12 is stored on the system bus 1.
5 to the channel device 13 and held in the read data register 31 within the device 13. The data held in the read data register 31 (received data read from the main storage device 12) is temporarily stored in the local memory 22.

さて、以上のようにして送信データの読出しまたは受信
データの書込みサイクルが繰返し行われている期間(D
MA転送中)に、マイクロプロセッサ21からDMA制
御部25のボート25aに次の入出力命令に対応するC
CW読出し要求が出された場合、DMA制御部25は実
行中のDMA転送のための送受信データの読出し/書込
み要求処理とのアービトレーションを行う。この場合、
DMA制御部25は優先度の高いCCW読出し要求を選
択し、同要求をシステムバス制御部24に出力する。
Now, the period (D
During MA transfer), the microprocessor 21 sends a C corresponding to the next input/output command to the port 25a of the DMA control unit 25.
When a CW read request is issued, the DMA control unit 25 arbitrates with the read/write request processing of transmitted/received data for the DMA transfer being executed. in this case,
The DMA control unit 25 selects a CCW read request with a high priority and outputs the same request to the system bus control unit 24.

以降の動作は前記した通りである。The subsequent operations are as described above.

なお、前記実施例では、DMA制御部25において、C
CW読出し要求の方が送受信データ読出し/書込み要求
より常に高優先度に設定されているものとして説明した
が、1回の要求出力毎に優先度の高低を切替え、結果的
に両要求の優先度を同レベルとして扱うようにしてもよ
い。
Note that in the above embodiment, in the DMA control section 25, the C
Although we have explained that the CW read request is always set to a higher priority than the transmitted/received data read/write request, the priority is switched between high and low for each request output, and as a result, the priority of both requests is may be treated as the same level.

[発明の効果] 以上詳述したようにこの発明によれば、CCW読出し要
求処理と送受信データ読出し/書込み要求処理との調停
が、前者の優先度を後者と同等以上としてDMA制御部
において行われ、この調停で選択された要求がDMA制
御部からシステムバス制御部に出され、システムバスが
取得できると対応する処理がDMAにより行われるので
、マイクロプロセッサがCCW読出し要求を発した場合
のCCW読出し処理が高速となる。また、マイクロプロ
セッサは、CCW読出し要求をDMA制御部に発してそ
の要求処理をDMA制御部に委ねるので、他の処理、例
えば次の入出力命令の受付は処理に進むことができ、チ
ャネル装置の使用効率が向上する。この効果は、入出力
命令が連続的に発行される可能性が高いシステム、例え
ばチャネル装置に接続される入出力制御装置の数が多い
システムはど著しくなる。
[Effects of the Invention] As described in detail above, according to the present invention, arbitration between the CCW read request process and the transmitted/received data read/write request process is performed in the DMA control unit with the priority of the former being equal to or higher than that of the latter. The request selected in this arbitration is sent from the DMA control unit to the system bus control unit, and when the system bus is acquired, the corresponding processing is performed by the DMA. Therefore, when the microprocessor issues a CCW read request, the CCW read Processing becomes faster. In addition, the microprocessor issues a CCW read request to the DMA control unit and entrusts the request processing to the DMA control unit, so that other processing, such as reception of the next input/output command, can proceed to the processing, and the channel device Improved usage efficiency. This effect becomes more pronounced in systems where there is a high possibility that input/output commands will be issued continuously, for example, in systems where there are a large number of input/output control devices connected to a channel device.

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

第1図はこの発明の一実施例に係るチャネル装置のブロ
ック構成図である。 11・・・CPU、12・・・主記憶装置、13・・・
チャネル装置、14・・・人出力制御装置、15・・・
システムバス、21・・マイクロプロセッサ、22・・
・ローカルメモリ、23・・・ローカルバス、24・・
・システムバス制御部、25・・・DMA制御部、26
・・・スタックレジスタ、27CCWアドレスレジスタ
、28・・・CCWデータレジスタ。 出願人代理人 弁理士 鈴江武彦
FIG. 1 is a block diagram of a channel device according to an embodiment of the present invention. 11... CPU, 12... Main storage device, 13...
Channel device, 14...Person output control device, 15...
System bus, 21...Microprocessor, 22...
・Local memory, 23...Local bus, 24...
- System bus control unit, 25...DMA control unit, 26
...Stack register, 27CCW address register, 28...CCW data register. Applicant's agent Patent attorney Takehiko Suzue

Claims (1)

【特許請求の範囲】 CPUから与えられた入出力命令に応じて入出力オペレ
ーション情報であるチャネルコマンド語を主記憶装置か
らシステムバスを介して読出して解読し、その解読結果
に応じて自装置に接続されている入出力制御装置の起動
および同装置と上記主記憶装置との間のデータ転送を制
御するチャネル装置において、 上記チャネル装置全体を制御するマイクロプロセッサで
あって、上記CPUからの入出力命令に応じて対応する
上記チャネルコマンド語を上記主記憶装置から読出すた
めの第1要求を発すると共に、上記主記憶装置から読出
された上記チャネルコマンド語の指定する送受信データ
の読出し/書込みを行うための第2要求を発するマイク
ロプロセッサと、 このマイクロプロセッサから発せられる上記第1および
第2要求の調停を行って上記システムバスを取得するた
めの第3要求を発すると共に、対応する第1または第2
要求の示す要求処理をDMA(ダイレクト・メモリ・ア
クセス)によって実行するDMA制御手段と、 このDMA制御手段から発せられる上記第3要求に応じ
てシステムバス取得の制御を行うシステムバス制御手段
とを具備し、 上記DMA制御手段は上記第1要求の優先度を上記第2
要求の優先度と同等以上に扱うことを特徴とするチャネ
ル装置。
[Claims] A channel command word, which is input/output operation information, is read from the main storage device via the system bus in response to an input/output command given from the CPU, and is decoded, and the command is sent to the own device according to the decoding result. In a channel device that controls activation of a connected input/output control device and data transfer between the device and the main storage device, a microprocessor that controls the entire channel device and controls input/output from the CPU. Issues a first request to read the corresponding channel command word from the main memory in accordance with the command, and reads/writes transmission/reception data specified by the channel command word read from the main memory. a microprocessor that issues a second request to acquire the system bus; and a microprocessor that arbitrates between the first and second requests issued from the microprocessor to issue a third request to acquire the system bus, and a corresponding first or second request. 2
A DMA control means for executing request processing indicated by a request by DMA (direct memory access), and a system bus control means for controlling system bus acquisition in response to the third request issued from the DMA control means. and the DMA control means sets the priority of the first request to the priority of the second request.
A channel device characterized by treating requests with the same or higher priority.
JP10872089A 1989-04-27 1989-04-27 Channel device Pending JPH02287657A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10872089A JPH02287657A (en) 1989-04-27 1989-04-27 Channel device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10872089A JPH02287657A (en) 1989-04-27 1989-04-27 Channel device

Publications (1)

Publication Number Publication Date
JPH02287657A true JPH02287657A (en) 1990-11-27

Family

ID=14491853

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10872089A Pending JPH02287657A (en) 1989-04-27 1989-04-27 Channel device

Country Status (1)

Country Link
JP (1) JPH02287657A (en)

Similar Documents

Publication Publication Date Title
EP0166272A2 (en) Processor bus access
JP3055917B2 (en) Data transfer control device
US6782439B2 (en) Bus system and execution scheduling method for access commands thereof
US5805841A (en) Symmetric parallel multi-processing bus architeture
JPH02287657A (en) Channel device
EP1193605B1 (en) Apparatus and method for the transfer of signal groups between digital signal processors in a digital signal processing unit
JPH08278939A (en) Method and device for data transfer
JPH09218859A (en) Multiprocessor control system
JPS61250758A (en) Communication controller
JPH05314061A (en) Bus interface control system
JPH02224048A (en) Information processor
JPS6143369A (en) Multi-processor system
JPH0375959A (en) Data transfer device for multiprocessor
JP2000181880A (en) Data transfer system
JPS6148747B2 (en)
JPH05216808A (en) Data processor
JPH08221106A (en) Programmable controller
JPS63163952A (en) Data transfer system
JPH01248264A (en) System for controlling contention of system bus
JPH0460257B2 (en)
JPH1115792A (en) Multi-microprocessor system
JPS63279359A (en) Data transfer device for multi-cpu
JPH01206446A (en) Common bus control system
JPH11134288A (en) Bus controller
JPS62145345A (en) Control system for direct memory access interval