JPS6382535A - Channel device - Google Patents

Channel device

Info

Publication number
JPS6382535A
JPS6382535A JP22727886A JP22727886A JPS6382535A JP S6382535 A JPS6382535 A JP S6382535A JP 22727886 A JP22727886 A JP 22727886A JP 22727886 A JP22727886 A JP 22727886A JP S6382535 A JPS6382535 A JP S6382535A
Authority
JP
Japan
Prior art keywords
subchannel
input
information
output
main memory
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
JP22727886A
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 JP22727886A priority Critical patent/JPS6382535A/en
Publication of JPS6382535A publication Critical patent/JPS6382535A/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 a main memory access according to a sub-channel control in plural input and output controls by performing the main memory access through a sub-channel information area in a sub-channel memory. CONSTITUTION:Input and output starting instructions outputted to a channel device 10 from a CPU includes a 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 control 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 instruction is received is set to the register 23 and the information is transferred to the CPU through a system bus 14.

Description

【発明の詳細な説明】 [発明の目的J (産業上の利用分野) この発明は、複数のサブチャネルの入出力制御を行なう
チャネル装置に係り、特にサブチャネル制御に伴う主記
憶アクセス方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Objective of the Invention J (Field of Industrial Application) The present invention relates to a channel device that performs input/output control of a plurality of subchannels, and particularly relates to a main memory access method associated with subchannel control.

(従来の技術) この種のチャネル装置は、CPUから1つの入出力起動
命令を渡されると、その入出力起動命令処理(即ち、C
PUからの入出力起動命令を受付け、その命令で指定さ
れている主記憶の領域からサブチャネル制御情報を取込
む処理)を実施するようになっている。さて、従来のチ
ャネル装置は、チャネル下の入出力制御が複数あり多重
制御が必要であっても、サブチャネル制御に伴う主記憶
アクセスは、各サブチャネルに共通のアドレスレジスタ
、データレジスタをチャネル装置内マイクロプロセッサ
がセットすることにより実行されていた。このため、C
PUからの入出力命令によるサブチャネル制御情報(チ
ャネル制t11語)等の主記憶アクセスも、多重制御の
ための排他等をマイクロプロセッサ′がとって実行しな
ければならず、複数の入出力制御の独立性に欠ける問題
があった。
(Prior Art) When this type of channel device is given one input/output activation command from the CPU, it processes the input/output activation command (i.e., the
It accepts an input/output activation command from the PU and executes a process of fetching subchannel control information from the main memory area specified by the command. Now, in conventional channel devices, even though there are multiple input/output controls under the channel and multiplex control is required, main memory access accompanying subchannel control is performed by using address registers and data registers common to each subchannel in the channel device. It was executed by setting the internal microprocessor. For this reason, C
Access to main memory such as subchannel control information (channel control t11 words) by input/output commands from the PU must also be executed by the microprocessor' with exclusion for multiplex control, and multiple input/output controls are required. There was a problem of lack of independence.

また、サブチャネル制御情報のアクセスにあっては、マ
イクロプロセッサは、入出力制御(サブチャネル制御)
の単位で入出力起動命令の解読後に毎回アドレスレジス
タセット等を実施しなければならず、入出力起動制御の
応答性に悪影響を及ぼす問題もあった。
In addition, when accessing subchannel control information, the microprocessor performs input/output control (subchannel control).
Address registers must be set every time after decoding an input/output activation command in units of 1 to 1000, which poses a problem that adversely affects the responsiveness of input/output activation control.

(発明が解決しようとする問題点) 上記したように、従来のチャネル装置では、サブチャネ
ル制御に伴う主記憶アクセスが各サブチャネルに共通の
アドレスレジスタを用いてマイクロプロセッサにより行
なわれていたため、複数の入出力制御の独立性に欠け、
且つ入出力起動制御の高速応答性にも欠ける問題があっ
た。
(Problems to be Solved by the Invention) As described above, in conventional channel devices, main memory access accompanying subchannel control is performed by a microprocessor using an address register common to each subchannel. lacks independence of input/output control,
In addition, there was a problem in that the input/output activation control lacked high-speed responsiveness.

この発明は上記事情に鑑みてなされたものでその目的は
、サブチャネル制御に伴うサブチャネル毎の主記憶アク
セスが独立に行なえ、且つ入出力起動制御の高速応答性
に富むチャネル装置を提供することにある。
The present invention has been made in view of the above circumstances, and its purpose is to provide a channel device that can perform main memory access independently for each subchannel associated with subchannel control, and is highly responsive to input/output activation control. It is in.

[発明の構成コ (問題点を解決するための手段と作用)この発明では、
サブチャネル単位で割当てられた独立のサブチャネル情
報領域を有するサブチャネルメモリと、このサブチャネ
ルメモリのアドレスを指定する第1および第2アドレス
レジスタと、シーケンス制御回路と、マイクロプロセッ
サとが設けられる。マイクロプロセッサは、サブチャネ
ル入出力制御に伴う主記憶アクセスが必要な場合には、
入出力制御対象サブチャネルを指定するサブチャネル番
号を第1アドレスレジスタにセットし、この第1アドレ
スレジスタの指定するサブチャネルメモリ内サブチャネ
ル情報領域にサブチャネル制御に関する情報の主記憶内
格納先アドレスを含む主記憶アクセス情報を書込み、主
記憶アクセス要求を発する。シーケンス制御回路は、マ
イクロプロセッサから主記憶アクセス要求が発せられる
と、マイクロプロセッサによりサブチャネルメモリ内サ
ブチャネル情報領域に書込まれた主記憶アクセス情報を
用い、マイクロプロセッサに代えて主記憶アクセスを行
なう。またシーケンス制御回路は、CPLIからの入出
力起動命令により入出力制御内容を記述したサブチャネ
ル制御情報の読出しが必要な場合には、入出力制御対象
サブチャネルを指定するサブチャネル番号を第2アドレ
スレジスタにセットし、この第2アドレスレジスタの指
定するサブチャネルメモリ内サブチャネル情報領域にサ
ブチャネル制御情報の主記憶内格納先アドレスを含む主
記憶アクセス情報を書込み、その書込み情報を用いて主
記憶アクセスを行なう。上記の構成によれば、サブチャ
ネル毎に用意されたサブチャネルメモリ内サブチャネル
情報領域を介して主記憶アクセスが行なえるので、主記
憶アクセスの独立性が向上し、しかもサブチャネル制御
情報等の読出しのための主記憶アクセスはシーケンス制
御回路が代行するので高速応答性に富む。
[Configuration of the invention (Means and actions 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 microprocessor are provided. When the microprocessor requires main memory access for subchannel input/output control,
The subchannel number that specifies the subchannel to be input/output controlled is set in the first address register, and the storage destination address in the main memory of information related to subchannel control is set in the subchannel information area in the subchannel memory specified by this first address register. , and issues a main memory access request. When a main memory access request is issued from the microprocessor, the sequence control circuit performs main memory access on behalf of the microprocessor using main memory access information written by the microprocessor to the subchannel information area in the subchannel memory. . In addition, when it is necessary to read subchannel control information that describes input/output control contents by an input/output start command from the CPLI, the sequence control circuit sends a subchannel number specifying the input/output control target subchannel to a second address. The main memory access information including the storage address of the subchannel control information in the main memory is written to the subchannel information area in the subchannel memory specified by this second address register, and the written information is used to access the main memory. Perform access. According to the above configuration, main memory access can be performed via the subchannel information area in the subchannel memory prepared for each subchannel, so independence of main memory access is improved, and subchannel control information, etc. Since the main memory access for reading is performed by the sequence control circuit, high-speed response is achieved.

(実施例) 第1図はこの発明の一実施例に係るチャネル装置のブロ
ック構成を示す。同図において、10はチャネル装置で
ある。チャネル装置10は、制御バス11、アドレスバ
ス12およびデータバス13から成るシステムバス14
に接続されている。このシステムバス14には、図示せ
ぬcpu、主記憶なども接続されている。
(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. A CPU, main memory, etc. (not shown) are also connected to the system bus 14.

チャネル装置10において、21は制御バス11との間
の情報入出力に供される双方向の入出力レジスタ(IO
R)、22はアドレスバス12との間の情報入出力に供
される双方向の入出力レジスタ<IOR>、23はアド
レスバス12との間の情報入出力に供される双方向の入
出力レジスタ(IOR)である。入出力レジスタ22.
23は、内部バス24に接続されている。この内部バス
24には、サブチャネルメモリ25のデータ入出力ボー
トDが接続されている。
In the channel device 10, 21 is a bidirectional input/output register (IO
R), 22 is a bidirectional input/output register <IOR> used for information input/output with the address bus 12, and 23 is a bidirectional input/output register used for information input/output with the address bus 12. It is a register (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 =○〜m)は、番号が1のサブチャ
ネル#iの入出力制御に必要となる情報(サブチャネル
情報と呼ぶ)を格納するのに用いられるもので、チャネ
ル装置10に割当てられたチャネル番号が設定されるフ
ィールド27a、サブチャネル#iに割当てられた番号
(サブチャネル番号)が設定されるフィールド27b1
サブチヤネル#iの入出力制御情報(サブチャネル制御
情報と呼ぶ)の主記憶内格納先アドレス(サブチャネル
制御情報アドレスと呼ぶ)が設定されるフィールド27
c、サブチャネル#lに関する入出力制御中であること
を示すフラグ(F)が設定されるフィールド27d1サ
ブチヤネル#iの入出力制御に伴う主記憶アクセスに必
要な情報(主記憶アクセス情報)が設定されるフィール
ド27e1およびこの主記憶アクセス情報をもとに主記
憶から読出された情報(主記憶情報)が設定されるフィ
ールド27fを有している。上記フィールド27eに設
定される主記憶アクセス情報は、主記憶アクセスの種別
(リードアクセス/ライトアクセスの区別、フルワード
アクセス/ハーフワードアクセス等の区別など)を示す
制御情報、アドレス情報およびデータ(ライトアクセス
の場合)を含んでいる。なお、この実施例では、チャネ
ル装置10に物理的に接続されている入出力装置、セツ
ション、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 = ○ to m) is used to store information (referred to as subchannel information) necessary for input/output control of subchannel #i with number 1, Field 27a in which the channel number assigned to the channel device 10 is set; field 27b1 in which the number assigned to subchannel #i (subchannel number) is set;
Field 27 where the storage address in the main memory (referred to as subchannel control information address) of input/output control information (referred to as subchannel control information) of subchannel #i is set.
c. Field 27d1 where a flag (F) indicating that input/output control is in progress for subchannel #l is set; information necessary for main memory access associated with input/output control of subchannel #i (main memory access information) is set; The main memory access information has a field 27e1 and a field 27f in which information read from the main memory (main memory information) is set based on the main memory access information. The main memory access information set in the field 27e includes control information indicating the type of main memory access (distinction between read access/write access, distinction between fullword access/halfword access, etc.), address information, and data (write access). (in case of access). In this embodiment, input/output devices, sessions, transmitting functions, receiving functions of one terminal, etc. that are physically connected to the channel device 10 are treated as subchannels subject to input/output control of the channel device 10. Defined.

再び第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, and is connected to the address register (AR>32, 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 33A and the internal bus 24 are connected to codes (input/output The input of a FIFO (first-in-first-out) buffer 34 for temporarily storing an instruction type code) and a subchannel number is connected. 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の入力が接続されて
いる。このアドレスレジスタ38の出力はアドレスライ
ン33に接続されている。また、マイクロプロセッサバ
ス37には、主としてサブチャネルメモリ25とマイク
ロプロセッサ36との間の情報入出力に供される双方向
の入出力レジスタ(IOR)39の一方の入出力ボート
が接続されている。この入出力レジスタ39の他方の入
出力ボートは、サブチャネルメモリ25のデータ入出力
ボートDおよび内部バス24に接続されている。また、
マイクロプロセッサ36は、制御ライン40によりシー
ケンス制御回路31と接続されている。
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 are connected to a bus 37 of the microprocessor 36 (hereinafter referred to as the microprocessor bus). The output of this address register 38 is connected to the address line 33. Further, one input/output port of a bidirectional input/output register (IOR) 39 is connected to the microprocessor bus 37, and 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. Also,
Microprocessor 36 is connected to sequence control circuit 31 by control line 40 .

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

今、CPUからシステムバス14上にi=1のサブチャ
ネル#iを対象とする入出力起動命令(サブチャネル入
出力起動命令)が出力されたものとする。この入出力起
動命令は、プロセッサ通信(ここではCPUからチャネ
ル装置10への通信)であることを示すファンクション
情報、入出力起動命令であることを示す入出力命令種別
コード、チャネル番号、サブチャネル番号(ここでは1
)およびサブチャネル制御情報アドレスを含んでいる。
It is now assumed that an input/output activation instruction (subchannel input/output activation instruction) targeting subchannel #i with i=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 (here, communication from the CPU to the channel device 10), an input/output instruction type code indicating that it is an input/output activation instruction, a channel number, and a subchannel number. (here 1
) and 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上の入出力命令種別コード、
チャネル番号およびサブチャネル番号it入出力レジス
タ22に、そしてデータバス13上のチャネル制御情報
アドレスは入出力レジスタ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 it input/output register 22 are routed, and the channel control information address on the data bus 13 is routed to the input/output register 23, respectively.

もしアドレスバス12からのチャネル番号が、チャネル
装r1110を指定している場合には、図示せぬチャネ
ル番号デコーダからの入力イネーブル信号により、ファ
ンクション情報は入出力レジスタ21に、入出力命令種
別コード、チャネル番号およびサブチャネル番号は入出
力レジスタ22に、そしてチャネル制御情報アドレスは
入出力レジスタ23に、それぞれセットされる。
If the channel number from the address bus 12 specifies the channel device r1110, 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−11のサイズが2nバイトであるもの
とすると、サブチャネル番号とnビットデータ(各ビッ
トは110”)との連結情報であり、サブチャネル番号
はサブチャネルメモリ25内サブチヤネル情報領域26
−1を指定する上位アドレスを、nビットデータはサブ
チャネル情報領域26−1内オフセツトを指定 ・する
下位アドレスを示す。シーケンス制御回路31は、この
下位アドレスを順にインクリメントすることにより、入
出力レジスタ22にセットされている情報中のチャネル
番号、サブチャネル番号をサブチャネルメモリ25のサ
ブチャネル情報領域26−1(ここでは1−1)のフィ
ールド27a、 27bに、入出力レジスタ23にセッ
トされているサブチャネル制御情報アドレスをフィール
ド27cに、そして論理“1111のフラグ(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-11 is 2n bytes, the address set in this address register 32 is a concatenation of the subchannel number and n-bit data (each bit is 110"). information, and the subchannel number is stored in the subchannel information area 26 in the subchannel memory 25.
The n-bit data indicates an upper address that specifies -1, and 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), the subchannel control information address set in the input/output register 23 is written in the field 27c, and the flag (F) of logic "1111" is written in the field 27d.

次にシーケンス制御回路31は、入出力レジスタ22に
セットされている情報中の入出力種別コードが入出力起
動命令を示していることから、CPUからの入出力起動
命令を受付けたことを示す応答情報を入出力レジスタ2
3にセットすると共に入出力レジスタ21にCPUへの
通信であることを示すファンクション情報を設定し、シ
ステムバス14を介しCPUへの情報転送を行なう。即
ちシーケンス制御回路31は、サブチャネルメモリ25
のサブチャネル情報領域26−1への(サブチャネル#
iに関する)サブチャネル情報書込みを行なうと、c 
p−uに入出力起動命令受付は応答を返す。
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
(subchannel #) to the subchannel information area 26-1 of
When writing subchannel information (related to i), c
The input/output activation command reception returns a response to p-u.

シーケンス制御回路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 output from the buffer 34. This signal is provided to microprocessor 36 via interrupt line 35, thereby causing an interrupt to microprocessor 36.

さて、シーケンス制御回路31は、FIFO34への上
記した情報セットを行なうと、以下に述べるように主記
憶からのサブチャネル制御情報の読出しを行なう。即ち
シーケンス制御回路31は、まずサブチャネルメモリ2
5内のサブチャネル情報領域2B−i (ここでは1=
1)のフィールド27cからサブチャネル制御情報アド
レスを読出す。そしてシーケンス制御回路31は、この
サブチャネル制御情報アドレスを含む主記憶アクセス情
報を生成し、サブチャネルメモリ25内のサブチャネル
情報領域26−1のフィールド27eに書込む。次にシ
ーケンス制御回路31は、このフィールド27eに書込
んだ主記憶アクセス情報をサブチャネルメモリ25から
読出し、内部バス24、入出力レジスタ22.23を介
して主記憶に転送することにより、主記憶アクセス情報
中のサブチャネル制御情報アドレスの指定する主記憶内
領域をアクセスする。これにより、シーケンス制御回路
31はサブチャネル#1用のサブチャネル制御情報を主
記憶から読出す。このサブチャネル制御情報は、システ
ムバス14の例えばデータバス13を介してチャネル装
置10に転送され、入出力レジスタ23にセットされる
。シーケンス制御回路31は、入出力レジスタ23にセ
ットされた主記憶からのサブチャネル#i用サブチャネ
ル制御情報を、サブチャネルメモリ25のサブチャネル
情報領域26−1のフィールド27fに書込む。以上が
、サブチャネルメモリ25内のサブチャネル情報領域2
6−1のフィールド27eの情報(主記憶アクセス情報
)を用いたシーケンス制御回路31自身の要因による主
記憶アクセスである。
Now, after the sequence control circuit 31 has set the above information to the FIFO 34, it reads the subchannel control information from the main memory as described below. That is, the sequence control circuit 31 first controls the subchannel memory 2.
5 subchannel information area 2B-i (here 1=
1) Read the subchannel control information address from field 27c. Then, sequence control circuit 31 generates main memory access information including this subchannel control information address, and writes it into field 27e of subchannel information area 26-1 in subchannel memory 25. Next, the sequence control circuit 31 reads the main memory access information written in this field 27e from the subchannel memory 25, and transfers it to the main memory via the internal bus 24 and the input/output registers 22,23. Accesses the area in main memory specified by the subchannel control information address in the access information. Thereby, sequence control circuit 31 reads subchannel control information for subchannel #1 from the main memory. This subchannel control information is transferred to the channel device 10 via the system bus 14, for example, the data bus 13, and is set in the input/output register 23. Sequence control circuit 31 writes subchannel control information for subchannel #i from the main memory set in input/output register 23 to field 27f of subchannel information area 26-1 of subchannel memory 25. The above is the subchannel information area 2 in the subchannel memory 25.
This is a main memory access caused by the sequence control circuit 31 itself using the information in the field 27e of 6-1 (main memory access information).

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

まずマイクロプロセッサ36は、サブチャネルメモリ2
5におけるサブチャネル#1用サブチャネル情報領域2
6−1のフィールド27fの先頭アドレスをアドレスレ
ジスタ38にセットする。このアドレスは、サブチャネ
ル情報領域26−1を指定するためのサブチャネル#i
のサブチャネル番号と、フィールド27fの先頭位置を
指定するためのサブチャネル情報領域26−1内オフセ
ツト(nビット)との連結情報から成る。そしてマイク
ロプロセッサ36は、アドレスレジスタ38の下位アド
レス(nビットのサブチャネル情報領域26−1内オフ
セツト)をインクリメントしながら、サブチャネルメモ
リ25に対する読出しを行なう。これにより、サブチャ
ネルメモリ25のサブチャネル情報領域26−1のフィ
ールド27fからサブチャネル#iに関するサブチャネ
ル制御情報が順次読出される。マイクロプロセッサ36
は、サブチャネルメモリ25から読出されたサブチャネ
ル制御情報を入出力レジスタ39、マイクロプロセッサ
バス31を介して内部メモリ(図示せず)に取込む。そ
してマイクロプロセッサ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 27f of 6-1 is set in the address register 38. This address is the subchannel #i for specifying the subchannel information area 26-1.
It consists of concatenated information of the subchannel number of , and an offset (n bits) within the subchannel information area 26-1 for specifying the starting position of the field 27f. 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 27f 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 31. The microprocessor 36 then performs input/output control of the subchannel #i according to the acquired subchannel control information.

上記したように、この実施例によれば、入出力起動命令
の解読と同命令の実行に必要なサブチャネル制御情報の
読出しがシーケンス制御回路31により自動的に行なわ
れ、マイクロプロセッサ36はシーケンス制御回路31
によるサブチャネル制御情報読出しの間に対応するサブ
チャネル制御のための準備を行なえるので、入出力起動
制御の高速応答が可能となる。
As described above, according to this embodiment, the sequence control circuit 31 automatically decodes the input/output activation command and reads out the subchannel control information necessary for executing the command, and the microprocessor 36 performs sequence control. circuit 31
Since preparation for corresponding subchannel control can be made while subchannel control information is read by , high-speed response of input/output activation control is possible.

さて、サブチャネルメモリ25から取込んだサブチャネ
ル制御情報が、サブチャネル#iの入出力制御に必要な
セットアツプ動作を指定するコマンドと、そのセットア
ツプのためのパラメータが格納されている主記憶内領域
先アドレスを有しているものとする。この場合マイクロ
プロセッサ36は、上記のパラメータを主記憶から得る
ために、以下に述べる主記憶アクセス情報書込みを行な
う。
Now, the subchannel control information taken in from the subchannel memory 25 is transferred to the main memory in which the command specifying the setup operation necessary for input/output control of subchannel #i and the parameters for the setup are stored. It is assumed that it has an inner area destination address. In this case, the microprocessor 36 performs main memory access information writing described below in order to obtain the above parameters from the main memory.

まずマイクロプロセッサ36は、サブチャネルメモリ2
5のサブチャネル情報領域26−1のフィールド27e
の先頭アドレス(即ちサブチャネル#iのサブチャネル
番号とサブチャネル情報領域26−1内フイールド27
eの先頭位置を示すnビットのオフセットアドレスとの
連結アドレス)をアドレスレジスタ38にセットすると
共に、主記憶アクセス情報の先頭ワードを入出力レジス
タ39にセットし、入出力レジスタ39の内容をアドレ
スレジスタ38の指定するサブチャネルメモリ25内領
域(ここではサブチャネル情報領域26−1のフィール
ド27eの先頭位置)に書込む。次にマイクロプロセッ
サ36は、アドレスレジヌク38の下位アドレス(nビ
ットのサブチャネル情報領域2G−1内オフセツト)を
インクリメントすると共に、入出力レジスタ39に主記
憶アクセス情報の次の1ワードをセットし、上記したサ
ブチャネルメモリ25への書込み動作を行なう。マイク
ロプロセッサ36は、上記の1込みを繰返して、サブチ
ャネル情報領域26−i (ここでは1=1)のフィー
ルド27eへの主記憶アクセス情報書込みを終了すると
、シーケンス制御回路31に対し制御ライン40を介し
て主記憶アクセスを要求する。
First, the microprocessor 36 stores the subchannel memory 2
Field 27e of subchannel information area 26-1 of No. 5
(i.e., the subchannel number of subchannel #i and the field 27 in the subchannel information area 26-1)
The concatenated address with the n-bit offset address that indicates the start position of 38 (in this case, the starting position of field 27e of subchannel information area 26-1). Next, the microprocessor 36 increments the lower address (n-bit offset within the subchannel information area 2G-1) of the address register 38 and sets the next word of main memory access information in the input/output register 39. , performs the write operation to the sub-channel memory 25 described above. When the microprocessor 36 repeats the above-mentioned 1-setting and finishes writing the main memory access information to the field 27e of the subchannel information area 26-i (here 1=1), the microprocessor 36 sends the control line 40 to the sequence control circuit 31. requests main memory access via

シーケンス制御回路31は、マイクロプロセッサ36か
らの主記憶アクセス要求を受けると、まずサブチャネル
メモリ25のサブチャネル情報領域26−1内フイール
ド27eの先頭位置を示すオフセットアドレス(この値
は、サブチャネルメモリ25のどのサブチャネル情報領
域のフィールド27eについても共通である)をアドレ
スレジスタ32の下位アドレスフィールド(nビット)
にセットする。次にシーケンス制御回路31は、そのと
きのアドレスレジスタ38の上位アドレス(即ちサブチ
ャネル#1のサブチャネル番号)とアドレスレジスタ3
2の下位アドレス(即ちサブチャネル情報領域26−1
内フイールド27eの先頭位置を示すオフセットアドレ
ス)を用い、この下位アドレスを順次インクリメントし
ながらサブチャネルメモリ25をリードアクセスし、サ
ブチャネル情報領域26−1のフィールド27eにマイ
クロプロセッサ36により書込まれていた主記憶アクセ
ス情報を読出す。次にシーケンス制御回路31は、サブ
チャネルメモリ25から読出した主記憶アクセス情報を
用いて主記憶アクセスを行ない、同情報中のアドレス情
報の指定する主記憶内領域から対応するデータ(ここで
はセットアツプ用のパラメータ)を読取る。そしてシー
ケンス制御回路31は、マイクロプロセッサ36からの
要求に応じて主記憶から読取ったデータをサブチャネル
メモリ25内のサブチャネル情報領域26−1のフィー
ルド27fに書込む。
When the sequence control circuit 31 receives a main memory access request from the microprocessor 36, the sequence control circuit 31 first addresses an offset address indicating the start position of the field 27e in the subchannel information area 26-1 of the subchannel memory 25 (this value is stored in the subchannel memory 25). (common to field 27e of any subchannel information area of 25) is set to the lower address field (n bits) of address register 32.
Set to . Next, the sequence control circuit 31 outputs the upper address of the address register 38 at that time (i.e., the subchannel number of subchannel #1) and the address register 3
2 lower address (i.e. subchannel information area 26-1
The sub-channel memory 25 is read accessed using the offset address indicating the start position of the inner field 27e, while sequentially incrementing this lower address, and the information written by the microprocessor 36 in the field 27e of the sub-channel information area 26-1 is accessed. Read main memory access information. Next, the sequence control circuit 31 accesses the main memory using the main memory access information read from the subchannel memory 25, and accesses the corresponding data (here, set-up) from the area in the main memory specified by the address information in the information. parameters). Then, sequence control circuit 31 writes the data read from the main memory into field 27f of subchannel information area 26-1 in subchannel memory 25 in response to a request from microprocessor 36.

マイクロプロセッサ3Gは、シーケンス制御回路31か
らのステータス通知等により主記憶アクセス〈主記憶リ
ードアクセス)の終了を知ると、サブチャネル情報領域
26−1のフィールド27fに書込まれたデータ(主記
憶情報)を入出力レジスタ39、マイクロプロセッサバ
ス37を介して読取り、内部メモリにセットする。そし
てマイクロプロセッサ36は、この内部メモリにセット
したデータ(ここではサブチャネル#1の入出力制御に
伴うセットアツプ動作に必要なパラメータ)を用いるこ
とにより、サブチャネル#iの入出力制御を実行するこ
とができる。
When the microprocessor 3G learns of the end of the main memory access (main memory read access) from the status notification etc. from the sequence control circuit 31, the microprocessor 3G reads the data (main memory information) written in the field 27f of the subchannel information area 26-1. ) is read via the input/output register 39 and microprocessor bus 37 and set in the internal memory. Then, the microprocessor 36 executes input/output control of subchannel #i by using the data set in this internal memory (here, parameters necessary for the setup operation associated with input/output control of subchannel #1). be able to.

さて、マイクロプロセッサ36がサブチャネル#iの入
出力制御実行中に、他のサブチャネル#jを対象とする
入出力起動命令がCPtJから発行されたものとする。
Now, it is assumed that while the microprocessor 36 is executing input/output control of subchannel #i, an input/output activation command targeting another subchannel #j is issued from CPtJ.

このサブチャネル#jに関するサブチャネル情報領域は
、サブチャネル#iのそれとは異なる。このため、サブ
チャネル#Jに関するサブチャネル情報は、シーケンス
制御回路31により、サブチャネル#1を対象とする入
出力起動命令の場合と同様にして、サブチャネル#1の
サブチャネル情報を消滅させることなくサブチャネルメ
モリ25に確実に書込まれる。即ちチャネル装置10は
、入出力起動命令処理中であってもCPUからの別の入
出力起動命令を受付けることができる。
The subchannel information area for this subchannel #j is different from that for subchannel #i. Therefore, the subchannel information regarding subchannel #J is deleted by the sequence control circuit 31 in the same manner as in the case of the input/output activation command targeting subchannel #1. The data is reliably written to the subchannel memory 25 without any errors. That is, the channel device 10 can accept another input/output activation command from the CPU even while processing the input/output activation command.

なお、サブチャネル情報領域26−i (たとえば1−
1)内のフラグ(F)は、同領域内のサブチャネル制御
情報アドレスの指定するサブチャネル制御情報に従う入
出力制御がすべて終了するとリセットされる。
Note that the subchannel information area 26-i (for example, 1-
The flag (F) in 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からの入出力起動命令に伴うサブチャネル制御
情報等の読出しのための主記憶アクセスが、シーケンス
制御回路によりマイクロプロセッサから独立に行なえる
ので、その間マイクロプロセッサは対応する入出力制御
の準備が行なえ、したがって入出力起動制御の高速応答
が可能となる。
[Effects of the Invention] As detailed above, according to the present invention, main memory access can be performed via the subchannel information area in the subchannel memory prepared for each subchannel. Increased access independence. In addition, main memory access for reading subchannel control information, etc. in response to an input/output activation command from the CPU can be performed independently from the microprocessor by the sequence control circuit, so the microprocessor prepares for corresponding input/output control during this time. Therefore, high-speed response of input/output activation control is possible.

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

第1図はこの発明の一実施例に係るチャネル装置のブロ
ック構成図、第2図は第1図に示すサブチャネルメモリ
25に割付けられるサブチャネル情報領域を説明する図
、第3図は第1図に示すFIFOバッファ34に書込ま
れる情報の構造を示す図である。 10・・・チャネル装置、14・・・システムバス、2
1.22゜23、39・・・入出力レジスタ(10R)
 、25・・・サブチャネルメモリ、26−0〜26−
m・・・サブチャネル情報領域、31・・・シーケンス
制御回路、32.38・・・アドレスレジスタ(AR)
、34・・・FIFOバッファ、35・・・割込みライ
ン、3G・・・マイクロプロセッサ、40・・・制御ラ
イン。 出願人代理人 弁理士 鈴 江 武 彦七εしεトノ4
116 第1図 第2図 りm−入出力4〜全1智)リコー1゛ ′:23 図
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...I/O register (10R)
, 25... subchannel memory, 26-0 to 26-
m...Subchannel information area, 31...Sequence control circuit, 32.38...Address register (AR)
, 34... FIFO buffer, 35... Interrupt line, 3G... Microprocessor, 40... Control line. Applicant's agent Patent attorney Takeshi Suzue Hikoshichi 4
116 Figure 1 Figure 2 Diagram m-Input/Output 4~All 1 intelligence) Ricoh 1': 23 Figure

Claims (1)

【特許請求の範囲】[Claims] サブチャネル単位で割当てられた独立の領域であって該
当サブチャネルを示すサブチャネル番号によりアドレス
指定可能なサブチャネル情報領域を有するサブチャネル
メモリと、このサブチャネルメモリのアドレスを指定す
る第1および第2アドレスレジスタと、サブチャネル入
出力制御に伴う主記憶アクセスのために入出力制御対象
サブチャネルを指定するサブチャネル番号を上記第1ア
ドレスレジスタにセットし、この第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 register and the subchannel number that specifies the subchannel to be input/output controlled for main memory access associated with subchannel input/output control, and set it in the first address register. The microprocessor that issues the main memory access request writes main memory access information including the storage destination address in the main memory of information related to subchannel control to the subchannel information area in the channel memory, and the above-mentioned process is performed in response to the main memory access request from this microprocessor. Main memory access is performed using the main memory access information written in the subchannel information area in the subchannel memory specified by the first register, and input/output start commands are received from the CPU and input/output control contents are executed. In order to read the described subchannel control information, a subchannel number specifying the input/output control target subchannel is set in the second address register, and the subchannel information area in the subchannel memory specified by the second address register is set. A channel device comprising: a sequence control circuit for writing main memory access information including a storage address in the main memory of the sub-channel control information into the main memory and accessing the main memory using the written information.
JP22727886A 1986-09-26 1986-09-26 Channel device Pending JPS6382535A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22727886A JPS6382535A (en) 1986-09-26 1986-09-26 Channel device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22727886A JPS6382535A (en) 1986-09-26 1986-09-26 Channel device

Publications (1)

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

Family

ID=16858311

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPS6382535A (en)

Similar Documents

Publication Publication Date Title
JP2001142842A (en) Dma handshake protocol
JPH07225727A (en) Computer system
JPH0332818B2 (en)
JP2002041449A (en) Bus system and method for controlling execution sequence of the bus system
JP2001333137A (en) Self-operating communication controller and self- operating communication control method
JPS6382535A (en) Channel device
KR20040045446A (en) Interfacing processors with external memory supporting burst mode
JP4793798B2 (en) Microcomputer
JPS63113749A (en) Channel device
JPH06131294A (en) Data transfer device
JPH1011387A (en) Information processor
JPH11252150A (en) Network connection device and network connection control method
JPS6382536A (en) Channel device
JP2002008382A (en) Memory write-in device
JP2580382B2 (en) High-speed I / O instruction method
JP2594611B2 (en) DMA transfer control device
JPH06250965A (en) Input/output controller
JPH10134013A (en) Multi-cpu system
JPH0425581B2 (en)
JP3207329B2 (en) Bus controller and bus transfer method
JPH01261766A (en) Data communication system
JPH0424852A (en) Multi-port access system
JPH0668019A (en) Dma controller
JPS6227846A (en) Input and output channel
JP2003316721A (en) Data transfer control device, data transfer device, and data transfer control method