JPS6382536A - Channel device - Google Patents

Channel device

Info

Publication number
JPS6382536A
JPS6382536A JP22727986A JP22727986A JPS6382536A JP S6382536 A JPS6382536 A JP S6382536A JP 22727986 A JP22727986 A JP 22727986A JP 22727986 A JP22727986 A JP 22727986A JP S6382536 A JPS6382536 A JP S6382536A
Authority
JP
Japan
Prior art keywords
subchannel
input
output
information
channel
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
JP22727986A
Other languages
Japanese (ja)
Inventor
Takashi Kosaka
高阪 敬史
Junichi Kihara
淳一 木原
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 JP22727986A priority Critical patent/JPS6382536A/en
Publication of JPS6382536A publication Critical patent/JPS6382536A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/12Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
    • G06F13/122Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware performs an I/O function other than control of data transfer

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Abstract

PURPOSE:To independently carry out plural sub-channel input and output controls by referring to a sub-channel information area in a sub-channel memory and controlling a channel to require no management for the busy state of the channel. CONSTITUTION:Input and output starting instructions outputted to a channel device 10 from a CPU includes function information indicating a processor communication, an input and output instruction type code, a channel number, a sub-channel number and a sub-channel control information address, which are respectively set to input and output registers 21, 22, 23. A sequence circuit 31 sets a memory address corresponding to the sub-channel number to a register 32 based on the function information. Then, response information indicating that the input and output starting instruction is received is set to the register 23 and the information is transferred to the CPU through a system bus 14. Thereby, the input and output starting instruction from the CPU can be received even during the process of other input and output starting instructions.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、複数のサブチャネルの入出力制御を行なう
チャネル装置に係り、特にCPUからの入出力起動命令
に対する処理方式に関する。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Application Field) The present invention relates to a channel device that performs input/output control of a plurality of subchannels, and particularly relates to a processing method for an input/output activation command from a CPU. .

(従来の技術) この種のチャネル装置は、CPIJから1つの入出力起
動命令を渡されると、その入出力起動命令処理(即ち、
CPUからの入出力起動命令を受付け、その命令で指定
されている主記憶の領域からサブチャネル制御情報を取
込む処理)を実施するようになっている。しかし、従来
のチャネル装置では、1つの入出力起動命令処理の実行
期間に別の入出力起動命令がCPUから渡された場合、
実行中の命令処理に関する情報が失われてしまう恐れが
あった。そこで、従来のチャネル装置は、1つの入出力
起動命令処理の実行期間は、他の入出力起動命令が受付
けられないチャネル状態、即ちチャネルビジー状態とな
るように構成されていた。このため、チャネル装置が入
出力起動命令処理を実行中は、CPUからの新たな入出
力起動命令は受付けられず、CPUからみた場合複数の
入出力制御が完全に独立制御とならない問題があった。
(Prior Art) When this type of channel device receives one input/output activation command from CPIJ, it processes the input/output activation command (i.e.,
It accepts an input/output activation command from the CPU and executes a process of fetching subchannel control information from the main memory area specified by the command. However, in conventional channel devices, if another input/output activation command is passed from the CPU during the execution period of one input/output activation command processing,
There was a risk that information regarding the instruction processing being executed would be lost. Therefore, conventional channel devices are configured such that during the execution period of one input/output activation command process, the channel state is such that no other input/output activation commands are accepted, that is, the channel is in a busy state. For this reason, while the channel device is executing input/output activation command processing, new input/output activation commands are not accepted from the CPU, and there is a problem in which multiple input/output controls are not completely independent from the CPU's perspective. .

言替えれば、CPtJは、本来は独立の入出力制御をチ
ャネル装置の制御下でしか管理できない問題があった。
In other words, CPtJ has the problem that originally independent input/output control can only be managed under the control of the channel device.

(発明が解決しようとする問題点) 上記のように、従来のチャネル装置では、チャネルビジ
ー状態の管理が必要であるため、複数の入出力制御を独
立に実行することができなかった。
(Problems to be Solved by the Invention) As described above, in the conventional channel device, it is necessary to manage the channel busy state, and therefore it is not possible to independently execute multiple input/output controls.

この発明は上記事情に鑑みてなされたものでその目的は
、チャネルビジー状態の管理を不要にでき、複数のサブ
チャネルの入出力制御が独立に行なえるチャネル装置を
提供することにある。
The present invention has been made in view of the above circumstances, and an object thereof is to provide a channel device that can eliminate the need for channel busy state management and can independently perform input/output control of a plurality of subchannels.

[発明の構成] (問題点を解決するための手段と作用)この発明では、
サブチャネル単位で割当てられた独立のサブチャネル情
報領域を有するサブチャネルメモリと、このサブチャネ
ルメモリのアドレスを指定する第1および第2アドレス
レジスタと、シーケンス制御回路と、先入れ先出し方式
のバッファメモリと、マイクロプロセッサとが設けられ
る。シーケンス制御回路は、サブチャネル番号とサブチ
ャネル制御情報アドレスとを含むCPUからの入出力起
動命令を受けるとそのサブチャネル番号を第1アドレス
レジスタにセットし、この第1アドレスレジスタの指定
するサブチャネルメモリ内サブチャネル情報領域にサブ
チャネル番号およびサブチャネル制御情報アドレスを含
むサブチャネル情報を書込み、CPUに入出力起動命令
受付は応答を返す。また上記サブチャネル番号は、サブ
チャネルメモリへのサブチャネル情報書込みが行なわれ
る毎にバッファメモリに格納され、その都度このバッフ
ァメモリからマイクロプロセッサに割込みが入る。マイ
クロプロセッサは、この割込みを受付けると、バッファ
メモリからサブチャネル番号を取出して第2アドレスレ
ジスタにセットし、この第2アドレスレジスタの指定す
るサブチャネルメモリ内サブチャネル情報領域を参照し
て対応するサブチャネルの入出力制御を行なう。上記の
構成によれば、サブチャネル入出力制御のためのマイク
ロプロセッサの動作中にCPUから他の入出力起動命令
が発行されても、サブチャネル内の対象サブチャネル情
報領域が異なり、しかもこの情報領域へのサブチャネル
情報書込みはシーケンス制御回路によりマイクロプロセ
ッサから独立に行なわれため、この命令を受付けること
が可能となる。
[Structure of the invention] (Means and effects for solving the problem) In this invention,
a subchannel memory having an independent subchannel information area allocated for each subchannel, first and second address registers for specifying addresses of the subchannel memory, a sequence control circuit, and a first-in, first-out buffer memory; A microprocessor is provided. When the sequence control circuit receives an input/output activation command from the CPU that includes a subchannel number and a subchannel control information address, the sequence control circuit sets the subchannel number in a first address register, and selects the subchannel specified by the first address register. Subchannel information including a subchannel number and a subchannel control information address is written in the subchannel information area in the memory, and a response is returned to the CPU when receiving an input/output activation command. The subchannel number is stored in the buffer memory each time subchannel information is written to the subchannel memory, and an interrupt is generated from the buffer memory to the microprocessor each time. When the microprocessor receives this interrupt, it retrieves the subchannel number from the buffer memory, sets it in the second address register, refers to the subchannel information area in the subchannel memory specified by the second address register, and selects the corresponding subchannel number. Performs channel input/output control. According to the above configuration, even if another input/output activation command is issued from the CPU during operation of the microprocessor for subchannel input/output control, the target subchannel information area within the subchannel is different, and this information Since writing of subchannel information to the area is performed by the sequence control circuit independently of the microprocessor, this instruction can be accepted.

(実施例) 第1図はこの発明の一実施例に係るチャネル装置のブロ
ック構成を示す。同図において、10はチャネル装置で
ある。チャネル装置10は、制御バス11、アドレスバ
ス12およびデータバス13から成るシステムバス14
に接続されている。このシステムバス14には、図示せ
ぬCPIJ1主記憶なども接続されている。
(Embodiment) FIG. 1 shows a block configuration of a channel device according to an embodiment of the present invention. In the figure, 10 is a channel device. The channel device 10 has a system bus 14 consisting of a control bus 11, an address bus 12 and a data bus 13.
It is connected to the. The system bus 14 is also connected to a CPIJ1 main memory (not shown).

チャネル装置10において、21は制御バス11との間
の情報入出力に供される双方向の入出力レジスタCl0
R)、22はアドレスバス12との間の情報入出力に供
される双方向の入出力レジスタ(10R)、23はアド
レスバス12どの間の情報入出力に供される双方向の入
出力レジスタ(IOR)である。入出力レジスタ22.
23は、内部バス24に接続されている。この内部バス
24には、サブチャネルメモリ25のデータ入出力ボー
トDが接続されている。
In the channel device 10, 21 is a bidirectional input/output register Cl0 used for inputting/outputting information to/from the control bus 11.
R), 22 is a bidirectional input/output register (10R) used for inputting and outputting information between the address bus 12, and 23 is a bidirectional input/output register used for inputting and outputting information between the address bus 12. (IOR). Input/output register 22.
23 is connected to an internal bus 24. A data input/output port D of a subchannel memory 25 is connected to this internal bus 24 .

サブチャネルメモリ25のメモリ領域は、第2図に示す
ように、複数の領域(サブチャネル情報領域と呼ぶ) 
26−0〜26−mに分割される。サブチャネル情報領
域26−i (i−Q〜m)は、番号がiのサブチャネ
ル#1の入出力制御に必要となる情報(サブチャネル情
報と呼ぶ)を格納するのに用いられるもので、チャネル
装置10に割当てられたチャネル番号が設定されるフィ
ールド27a1サブチヤネル#iに割当てられた番号(
サブチャネル番号〉が設定されるフィールド27b、サ
ブチャネル#iの入出力制御に必要な情報(サブチャネ
ル制御情報と呼ぶ)の主記憶内格納先アドレス(サブチ
ャネル制御情報アドレスと呼ぶ)が設定されるフィール
ド27C1サブチヤネル#1に関する入出力制御中であ
ることを示すフラグ(F)が設定されるフィールド27
d、およびサブチャネル1lill陣情報が設定される
フィールド27eを有している。なお、この実施例では
、チャネル装置10に物理的に接続されている入出力装
置、セツション、1つの端末の送信1能、受信機能など
が、チャネル装置10の入出力制御の対象となるサブチ
ャネルとして定義されている。
As shown in FIG. 2, the memory area of the subchannel memory 25 includes a plurality of areas (referred to as subchannel information areas).
It is divided into 26-0 to 26-m. The subchannel information area 26-i (i-Q to m) is used to store information (referred to as subchannel information) necessary for input/output control of subchannel #1 with number i, Field 27a1 in which the channel number assigned to the channel device 10 is set; the number assigned to subchannel #i (
The field 27b in which the subchannel number> is set, and the storage address in the main memory (referred to as the subchannel control information address) of information necessary for input/output control of subchannel #i (referred to as the subchannel control information) is set. Field 27C1 Field 27 in which a flag (F) indicating that input/output control regarding subchannel #1 is being set
d, and a field 27e in which subchannel 1lill group information is set. In this embodiment, input/output devices, sessions, transmission capabilities, reception functions, etc. of one terminal that are physically connected to the channel device 10 are subchannels that are subject to input/output control of the channel device 10. is defined as.

再び第1図を参照すると、31はサブチャネルメモリ2
5に対する入出力およびシステムバス手順を実行するシ
ーケンス制御回路である。シーケンス制御回路31は入
出力レジスタ21および内部バス24に接続されると共
に、アドレスレジスタ(AR)32、アドレスライン3
3を介してサブチャネルメモリ25のアドレスボートA
に接続されている。アドレスライン33および内部バス
24には、第3図に示すように入出力命令の種別(例え
ば入出力起動を指示する命令、入出力動作の停止を指示
する命令等)を示すコード(入出力命令種別コード)お
よびサブチャネル番号を一時格納するFIFO(ファー
スト・イン・ファースト・アウト)バッファ34の入力
が接続されている。このFIFOバッファ34は、上記
の情報を格納する毎にその旨を示す信号を割込みライン
35に出力するようになっている。この割込みライン3
5には、チャネル装置10の中心を成しCPUから要求
された入出力制御を行なうマイクロプロセッサ36が接
続されている。
Referring again to FIG. 1, 31 is the subchannel memory 2.
5 is a sequence control circuit that executes input/output and system bus procedures for 5. The sequence control circuit 31 is connected to the input/output register 21 and the internal bus 24, as well as an address register (AR) 32 and an address line 3.
3 to address port A of subchannel memory 25.
It is connected to the. As shown in FIG. 3, the address line 33 and internal bus 24 contain codes (input/output It is connected to the input of a FIFO (first in first out) buffer 34 that temporarily stores the type code) and subchannel number. The FIFO buffer 34 is configured to output a signal to the interrupt line 35 each time the above information is stored. This interrupt line 3
5 is connected to a microprocessor 36 which forms the core of the channel device 10 and performs input/output control requested by the CPU.

マイクロプロセッサ36のバス(以下、マイクロプロセ
ッサバスと称する)37には、FIFOバッファ34の
出力、サブチャネルメモリ25のアドレスを指定するア
ドレスレジスタ(AR>38の入力が接続されている。
A bus 37 of the microprocessor 36 (hereinafter referred to as microprocessor bus) is connected to the output of the FIFO buffer 34 and the input of an address register (AR>38) that specifies the address of the subchannel memory 25.

このアドレスレジスタ38の出力はアドレスライン33
に接続されている。また、マイクロプロセッサバス37
には、主としてサブチャネルメモリ25とマイクロプロ
セッサ36との間の情報入出力に供される双方向の入出
力レジスタ(IOR)39の一方の入出力ボートが接続
されている。この入出力レジスタ39の他方の入出力ボ
ートは、サブチャネルメモリ25のデータ入出力ボート
Dおよび内部バス24に接続されている。
The output of this address register 38 is the address line 33.
It is connected to the. Also, the microprocessor bus 37
is connected to one input/output port of a bidirectional input/output register (IOR) 39, which is mainly used for inputting/outputting information between the subchannel memory 25 and the microprocessor 36. The other input/output port of input/output register 39 is connected to data input/output port D of subchannel memory 25 and internal bus 24.

次に、この発明の一実施例の動作を説明する。Next, the operation of one embodiment of the present invention will be explained.

今、CPUからシステムバス14上に1−1のサブチャ
ネル#iを対象とする入出力起動命令(サブチャネル入
出力起動命令)が出力されたものとする。この入出力起
動命令は、プロセッサ通信(ここではCP(Jからチャ
ネル装置10への通信)であることを示すファンクショ
ン情報、入出力起動命令であることを示す入出力命令種
別コード、チャネル番号、サブチャネル番号(ここでは
1)およびサブチャネル制御情報アドレスを含んでいる
It is now assumed that an input/output activation instruction (subchannel input/output activation instruction) targeting subchannel #i of 1-1 is output from the CPU onto the system bus 14. This input/output activation instruction includes function information indicating that it is processor communication (in this case, CP (communication from J to channel device 10)), an input/output instruction type code indicating that it is an input/output activation instruction, a channel number, a sub It includes a channel number (here 1) and a subchannel control information address.

この実施例では、上記の入出力起動命令のうち、ファン
クション情報はシステムバス14の制御バス11上に、
入出力命令種別コード、チャネル番号およびサブチャネ
ル番号はアドレスバス12上に、そしてチャネル制御情
報アドレスはデータバス13上に、それぞれ出力される
In this embodiment, among the above input/output activation instructions, function information is stored on the control bus 11 of the system bus 14.
The input/output instruction type code, channel number, and subchannel number are output onto the address bus 12, and the channel control information address is output onto the data bus 13, respectively.

制御バス11上のファンクション情報は入出力レジスタ
21に、アドレスバス12上の入出力命令種別コード、
チャネル番号およびサブチャネル番号は入出力レジスタ
22に、そしてデータバス13上のチャネル制御情報ア
ドレスは入出力レジスタ23に、それぞれ導かれる。も
しアドレスバス12からのチャネル番号が、チャネル装
H10を指定している場合には、図示せぬチャネル番号
デコーダからの入力イネーブル信号により、ファンクシ
ョン情報は入出力レジスタ21に、入出力命令種別コー
ド、チャネル番号およびサブチャネル番号は入出力レジ
スタ22に、そしてチャネル制御情報アドレスは入出力
レジスタ23に、それぞれセットされる。
The function information on the control bus 11 is stored in the input/output register 21, the input/output instruction type code on the address bus 12,
The channel number and subchannel number are guided to the input/output register 22, and the channel control information address on the data bus 13 is guided to the input/output register 23, respectively. If the channel number from the address bus 12 specifies the channel device H10, the function information is stored in the input/output register 21 by the input enable signal from the channel number decoder (not shown), including the input/output instruction type code, The channel number and subchannel number are set in the input/output register 22, and the channel control information address is set in the input/output register 23, respectively.

入出力レジスタ21にセットされたファンクション情報
はシーケンス制御回路31に供給される。シーケンス制
御回路31は、このファンクション情報によりCPUか
らの通信を認識すると、入出力レジスタ22から内部バ
ス24経由でサブチャネル番号を取込み、このサブチャ
ネル番号に対応したサブチャネルメモリアドレスをアド
レスレジスタ32にセットする。このアドレスレジスタ
32にセットされるアドレスは、サブチャネル情報領域
26−0〜26−mのサイズが2nバイトであるものと
すると、サブチャネル番号とnビットデータ(各ビット
は“0″)との連結情報であり、サブチャネル番号はサ
ブチャネルメモリ25内サブチヤネル情報領域26−1
を指定する上位アドレスを、nビットデータはサブチャ
ネル情報領域26−1内オフセツトを指定する下位アド
レスを示す。シーケンス制御回路31は、この下位アド
レスを順にインクリメントすることにより、入出力レジ
スタ22にセットされている情報中のチャネル番号、サ
ブチャネル番号をサブチャネルメモリ25のサブチャネ
ル情報領域26−1(ここでは1−1)のフィールド2
7a、27bニ、入出力レジスタ23にセットされてい
るサブチャネル制御情報アドレスをフィールド27Gに
、そして論理“1”のフラグ(F)をフィールド27d
に、それぞれ書込む。
The function information set in the input/output register 21 is supplied to the sequence control circuit 31. When the sequence control circuit 31 recognizes communication from the CPU based on this function information, it takes in the subchannel number from the input/output register 22 via the internal bus 24 and stores the subchannel memory address corresponding to this subchannel number in the address register 32. set. Assuming that the size of the subchannel information areas 26-0 to 26-m is 2n bytes, the address set in this address register 32 is a combination of the subchannel number and n-bit data (each bit is "0"). This is connection information, and the subchannel number is stored in the subchannel information area 26-1 in the subchannel memory 25.
The n-bit data indicates a lower address that specifies an offset within the subchannel information area 26-1. By sequentially incrementing the lower addresses, the sequence control circuit 31 converts the channel number and subchannel number in the information set in the input/output register 22 into the subchannel information area 26-1 of the subchannel memory 25 (here, 1-1) field 2
7a, 27b D, the subchannel control information address set in the input/output register 23 is placed in the field 27G, and the flag (F) of logic "1" is placed in the field 27d.
Write each.

次にシーケンス制御回路31は、入出力レジスタ22に
セットされている情報中の入出力種別コードが入出力起
動命令を示していることから、CPUからの入出力起動
命令を受付けたことを示す応答情報を入出力レジスタ2
3にセットすると共に入出力レジスタ21にCPUへの
通信であることを示すファンクション情報を設定し、シ
ステムバス14を介しCPUへの情報転送を行なう。即
ちシーケンス制御回路31は、サブチャネルメモリ25
のサブチャネル情報領ti!26−iへの(サブチャネ
ル#iに関する)サブチャネル情報書込みを行なうと、
CPUに入出力起動命令受付は応答を返す。
Next, since the input/output type code in the information set in the input/output register 22 indicates an input/output activation instruction, the sequence control circuit 31 responds with a response indicating that it has accepted the input/output activation instruction from the CPU. Information input/output register 2
3, and also sets function information indicating that communication is to the CPU in the input/output register 21, and transfers information to the CPU via the system bus 14. That is, the sequence control circuit 31 controls the subchannel memory 25
's sub-channel information area ti! When writing subchannel information (related to subchannel #i) to 26-i,
When receiving an input/output activation command, a response is returned to the CPU.

シーケンス制御回路31は、CPUに応答を返すと、入
出力レジスタ22にセットされている情報中の入出力種
別コードとアドレスレジスタ32から出力されているサ
ブチャネルメモリアドレスの上位アドレスであるサブチ
ャネル番号とを、FIFOバッファ34にセットする。
When the sequence control circuit 31 returns a response to the CPU, it inputs the input/output type code in the information set in the input/output register 22 and the subchannel number which is the upper address of the subchannel memory address output from the address register 32. are set in the FIFO buffer 34.

このFIFOバッファ34への情報セットが行なわれる
と、その旨を示す信号が同バッフ?34から出力される
。この信号は、割込みライン35を介してマイクロプロ
セッサ36に供給され、これによりマイクロプロセッサ
36に割込みが入る。
When information is set to this FIFO buffer 34, a signal indicating this is set to the FIFO buffer 34. It is output from 34. This signal is provided to microprocessor 36 via interrupt line 35, thereby causing an interrupt to microprocessor 36.

さて、シーケンス制御回路31は、FIFO34への上
記した情報セットを行なうと、サブチャネルメモリ25
内のサブチャネル情報領域26−i(ここでは1−1)
のフィールド27cからサブチャネル制御情報アドレス
を読出し、内部バス24を介して入出力レジスタ22に
セットする。次にシーケンス制御回路31は、入出力レ
ジスタ22にセットしたサブチャネル制御情報アドレス
を用いて図示せぬ主記憶をアクセスし、一種のCCW(
チャネル制御11flりであるサブチャネル制御情報(
サブチャネル#1用)を読出す。このサブチャネル制御
情報は、システムバス14の例えばデータバス13を介
してチャネル装置10に転送され、入出力レジスタ23
にセットされる。シーケンス制御回路31は、入出力レ
ジスタ23にセットされた主記憶からのサブチャネル#
i用サブチャネル制御情報を、サブチャネルメモリ25
のサブチャネル情報領域26−1のフィールド27eに
書込む。
Now, when the sequence control circuit 31 sets the above information to the FIFO 34, the subchannel memory 25
subchannel information area 26-i (here 1-1) within
The subchannel control information address is read from the field 27c and set in the input/output register 22 via the internal bus 24. Next, the sequence control circuit 31 accesses the main memory (not shown) using the subchannel control information address set in the input/output register 22, and uses a type of CCW (
Channel control 11fl subchannel control information (
(for subchannel #1). This subchannel control information is transferred to the channel device 10 via the system bus 14, for example, the data bus 13, and is transferred to the input/output register 23.
is set to The sequence control circuit 31 receives the subchannel # from the main memory set in the input/output register 23.
The subchannel control information for i is stored in the subchannel memory 25.
is written in the field 27e of the subchannel information area 26-1.

−・方、マイクロプロセッサ36は、割込みライン35
からの割込みを検出すると、サブチャネルメモリ25へ
のサブチャネル情報書込みを判断し、FIFOバッファ
34にセットされた入出力種別コードおよびサブチャネ
ル番号をマイクロプロセッサバス37経由で取込む。そ
してマイクロプロセッサ36は、FIFOバッファ34
から取込んだサブチャネル番号で示されるサブチャネル
#1(ここでは1−1)の入出力制御用のタスクを稼働
可能状態に設定する。即ちマイクロプロセッサ36は、
サブチャネル#iに関する処理(ここでは入出力制御)
の準備を行なう。これにより、他のサブチャネルに対応
するタスクが稼働状態になければ、サブチャネル#1に
対応するタスクに従うサブチャネル#1の入出力制御が
開始される。また、稼働可能状態のタスクが他にもあれ
ば、その優先順位に従って入出力1ffJIOが行なわ
れる。なお、この入出力制御に際しては、以下に述べる
サブチャネル制御情報読出しが行なわれる。
- On the other hand, the microprocessor 36 interrupts the interrupt line 35.
When an interrupt is detected, it is determined whether to write subchannel information to the subchannel memory 25, and the input/output type code and subchannel number set in the FIFO buffer 34 are taken in via the microprocessor bus 37. The microprocessor 36 then stores the FIFO buffer 34
The task for input/output control of subchannel #1 (1-1 in this case) indicated by the subchannel number imported from is set to an operational state. That is, the microprocessor 36
Processing related to subchannel #i (input/output control here)
Make preparations. As a result, if the tasks corresponding to other subchannels are not in the active state, input/output control of subchannel #1 is started according to the task corresponding to subchannel #1. Furthermore, if there are other tasks in the ready state, input/output 1ffJIO is performed according to their priority. Note that during this input/output control, subchannel control information reading described below is performed.

まずマイクロプロセッサ36は、サブチャネルメモリ2
5におけるサブチャネル#1用サブチャネル情報領域2
6−1のフィールド27eの先頭アドレスをアドレスレ
ジスタ38にセットする。このアドレスは、サブチャネ
ル情報領域26−1を指定するためのサブチャネル#i
のサブチャネル番号と、フィールド27eの先頭位置を
指定するためのサブチャネル情報領域26−1内オフセ
ツト(nビット)との連結情報から成る。そしてマイク
ロプロセッサ36は、アドレスレジスタ38の下位アド
レス(nビットのサブチャネル情報領域26−1内オフ
セツト)をインクリメントしながら、サブチャネルメモ
リ25に対する読出しを行なう。これにより、サブチャ
ネルメモリ25のサブチャネル情報領域26−1のフィ
ールド27eからサブチャネル#iに関するサブチャネ
ル制御情報が順次読出される。マイクロプロセッサ36
は、サブチャネルメモリ25から読出されたサブチャネ
ル制御情報を入出力レジスタ39、マイクロプロセッサ
バス37を介して内部メモリ(図示せず)に取込む。そ
してマイクロプロセッサ36は、この取込んだサブチャ
ネル制御情報に従ってサブチャネル#iの入出力制御を
行なう。
First, the microprocessor 36 stores the subchannel memory 2
Subchannel information area 2 for subchannel #1 in 5
The start address of the field 27e of 6-1 is set in the address register 38. This address is the subchannel #i for specifying the subchannel information area 26-1.
The field 27e consists of concatenated information of the subchannel number and an offset (n bits) within the subchannel information area 26-1 for specifying the starting position of the field 27e. Then, microprocessor 36 reads data from subchannel memory 25 while incrementing the lower address (n-bit offset within subchannel information area 26-1) of address register 38. As a result, subchannel control information regarding subchannel #i is sequentially read from field 27e of subchannel information area 26-1 of subchannel memory 25. microprocessor 36
takes in the subchannel control information read from the subchannel memory 25 into an internal memory (not shown) via the input/output register 39 and the microprocessor bus 37. The microprocessor 36 then performs input/output control of the subchannel #i according to the acquired subchannel control information.

以上のマイクロプロセッサ36の動作中に、CPUから
他のサブチャネル#jを対象とする入出力起動命令が発
行されたものとする。このサブチャネル#jに関するサ
ブチャネル情報領域は、サブチャネル#1のそれとは異
なる。このため、サブチャネル#jに関するサブチャネ
ル情報は、シーケンス制御回路31により、サブチャネ
ル#iを対象とする入出力起動命令の場合と同様にして
、サブチャネル#1に関するサブチャネル情報を消滅さ
せることなく、サブチャネルメモリ25に確実に書込ま
れる。しかも、この書込みは、シーケンス制御回路31
によりマイクロプロセッサ36から独立に行なわれる。
Assume that during the above operation of the microprocessor 36, the CPU issues an input/output activation command targeting another subchannel #j. The subchannel information area for this subchannel #j is different from that for subchannel #1. Therefore, the sequence control circuit 31 eliminates the subchannel information regarding subchannel #j from the subchannel information regarding subchannel #1 in the same manner as in the case of the input/output activation command targeting subchannel #i. The data is written to the subchannel memory 25 without fail. Moreover, this writing is performed by the sequence control circuit 31.
This is done independently from the microprocessor 36.

したがってチャネル装H10は、チャネルビジー状態の
管理を行なう必要はなく、常時CPUからの入出力起動
命令を受付けることができる。なお、サブチャネル情1
1領域26−i (たとえば1−1)内のフラグ(F)
は、同領域内のサブチャネル制御情報アドレスの指定す
るサブチャネル制御情報に従う入出力制御がすべて終了
するとリセットされる。
Therefore, the channel device H10 does not need to manage the channel busy state and can always accept input/output activation commands from the CPU. In addition, sub channel information 1
Flag (F) in 1 area 26-i (for example 1-1)
is reset when all input/output control according to the subchannel control information specified by the subchannel control information address in the same area is completed.

[発明の効果] 以上詳述したようにこの発明によれば、CPUからの入
出力起動命令の受付けが他の入出力起動命令処理中であ
っても行なえるので、チャネルビジー状態の管理が不要
となり、複数のサブチャネルの入出力制御が独立に行な
える。このため、幾つかのチャネルを統合化するような
場合でも、基本ソフトウェア(O8>をそのまま利用す
ることができる。
[Effects of the Invention] As detailed above, according to the present invention, an input/output activation command from the CPU can be accepted even when another input/output activation command is being processed, so there is no need to manage the channel busy state. Therefore, input/output control of multiple subchannels can be performed independently. Therefore, even if several channels are to be integrated, the basic software (O8>) can be used as is.

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

第1図はこの発明の一実施例に係るチャネル装置のブロ
ック構成図、第2図は第1図に示すサブチャネルメモリ
25に割付けられるサブチャネル情報領域を説明する図
、第3図は第1図に示すFIFOバッファ34に書込ま
れる情報の構造を示す図である。 10・・・チャネル装置、14・・・システムバス、2
1.22゜23、39・・・入出力レジスタ(IOR)
、25・・・サブチャネルメモリ、26〜0〜26−ト
・サブチャネル情報領域、31・・・シーケンス制御回
路、32.38・・・アドレスレジスタ(AR)、34
・・・FIFOバッファ、35・・・割込みライン、3
G・・・マイクロプロセッサ。 出願人代理人 弁理士 鈴江武彦 ンステムバス14 第2図
FIG. 1 is a block configuration diagram of a channel device according to an embodiment of the present invention, FIG. 2 is a diagram explaining a subchannel information area allocated to the subchannel memory 25 shown in FIG. 1, and FIG. FIG. 3 is a diagram showing the structure of information written to the FIFO buffer 34 shown in the figure. 10... Channel device, 14... System bus, 2
1.22゜23, 39...Input/output register (IOR)
, 25...Subchannel memory, 26-0-26-to subchannel information area, 31...Sequence control circuit, 32.38...Address register (AR), 34
...FIFO buffer, 35...Interrupt line, 3
G...Microprocessor. Applicant's agent Patent attorney Takehiko Suzue Stembus 14 Figure 2

Claims (1)

【特許請求の範囲】[Claims] サブチャネル単位で割当てられた独立の領域であって該
当サブチャネルを示すサブチャネル番号によりアドレス
指定可能なサブチャネル情報領域を有するサブチャネル
メモリと、このサブチャネルメモリのアドレスを指定す
る第1および第2アドレスレジスタと、入出力制御対象
サブチャネルを指定するサブチャネル番号並びに入出力
制御内容を記述したサブチャネル制御情報の主記憶内格
納先を示すサブチャネル制御情報アドレスを含むCPU
からの入出力起動命令を受けて上記サブチャネル番号を
上記第1アドレスレジスタにセットし、この第1アドレ
スレジスタの指定する上記サブチャネルメモリ内サブチ
ャネル情報領域に上記サブチャネル番号およびサブチャ
ネル制御情報アドレスを含むサブチャネル情報を書込ん
で上記CPUに入出力起動命令受付け応答を返すシーケ
ンス制御回路と、このシーケンス制御回路による上記サ
ブチャネルメモリへのサブチャネル情報書込みが行なわ
れる毎にこの情報中の上記サブチャネル番号を格納し、
その旨を示す所定信号を発生する先入れ先出し方式のバ
ッファメモリと、このバッファメモリからの上記所定信
号を割込み信号として受け同バッファメモリから上記サ
ブチャネル番号を取出して上記第2アドレスレジスタに
セットし、この第2アドレスレジスタの指定する上記サ
ブチャネルメモリ内サブチャネル情報領域を参照して対
応するサブチャネル制御を行なうマイクロプロセッサと
を具備することを特徴とするチャネル装置。
A subchannel memory having a subchannel information area that is an independent area allocated for each subchannel and that can be addressed by a subchannel number indicating the corresponding subchannel, and a first and second subchannel memory that specifies the address of this subchannel memory. 2 address registers, and a subchannel control information address that indicates the storage location in the main memory of subchannel control information that describes the subchannel number and input/output control contents that specify the subchannel to be input/output controlled.
The subchannel number is set in the first address register in response to an input/output activation command from A sequence control circuit that writes subchannel information including an address and returns an input/output activation command acceptance response to the CPU, and a sequence control circuit that writes subchannel information to the subchannel memory by this sequence control circuit. Store the above subchannel number,
A first-in, first-out buffer memory generates a predetermined signal indicating this, and receives the predetermined signal from this buffer memory as an interrupt signal, extracts the subchannel number from the buffer memory, sets it in the second address register, and receives the predetermined signal from the buffer memory as an interrupt signal. A channel device comprising: a microprocessor that refers to the subchannel information area in the subchannel memory specified by the second address register and controls the corresponding subchannel.
JP22727986A 1986-09-26 1986-09-26 Channel device Pending JPS6382536A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22727986A JPS6382536A (en) 1986-09-26 1986-09-26 Channel device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22727986A JPS6382536A (en) 1986-09-26 1986-09-26 Channel device

Publications (1)

Publication Number Publication Date
JPS6382536A true JPS6382536A (en) 1988-04-13

Family

ID=16858325

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22727986A Pending JPS6382536A (en) 1986-09-26 1986-09-26 Channel device

Country Status (1)

Country Link
JP (1) JPS6382536A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04110128A (en) * 1990-08-30 1992-04-10 Kinugawa Rubber Ind Co Ltd Structure of extrusion die

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04110128A (en) * 1990-08-30 1992-04-10 Kinugawa Rubber Ind Co Ltd Structure of extrusion die

Similar Documents

Publication Publication Date Title
US6954806B2 (en) Data transfer apparatus and method
JPH06266650A (en) Method and equipment for transferring data and interleaving device for data transfer
JPH06266649A (en) Transfer method of data through plurality of data channel and circuit architecture thereof
JPS62206658A (en) Memory controller
JPH0824320B2 (en) Method and device for buffer chaining in communication control device
US5901291A (en) Method and apparatus for maintaining message order in multi-user FIFO stacks
US6105080A (en) Host adapter DMA controller with automated host reply capability
US6687763B2 (en) ATAPI command receiving method
JPH07225727A (en) Computer system
US5961614A (en) System for data transfer through an I/O device using a memory access controller which receives and stores indication of a data status signal
EP1016973A1 (en) Communication dma device
US5432910A (en) Coupling apparatus and method for increasing the connection capability of a communication system
JPH0221619B2 (en)
US7350015B2 (en) Data transmission device
JPS6382536A (en) Channel device
JPH03127154A (en) Transfer control system
US7111301B1 (en) Request and completion queue load balancing
JP2000244585A (en) Bus interface circuit
JPS63113749A (en) Channel device
JPH0693685B2 (en) Frame selective reception method
JP2533886B2 (en) Data transfer method
JP3640976B2 (en) Data transfer control method
JP2781999B2 (en) Startup method of common data channel device in multiprocessor system
JPH1011387A (en) Information processor
JPS6245575B2 (en)