JPH0424733B2 - - Google Patents

Info

Publication number
JPH0424733B2
JPH0424733B2 JP59168163A JP16816384A JPH0424733B2 JP H0424733 B2 JPH0424733 B2 JP H0424733B2 JP 59168163 A JP59168163 A JP 59168163A JP 16816384 A JP16816384 A JP 16816384A JP H0424733 B2 JPH0424733 B2 JP H0424733B2
Authority
JP
Japan
Prior art keywords
command
input
processing unit
central processing
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP59168163A
Other languages
Japanese (ja)
Other versions
JPS6146545A (en
Inventor
Katsumi Oonishi
Juji Oinaga
Nobuyuki Kikuchi
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP16816384A priority Critical patent/JPS6146545A/en
Publication of JPS6146545A publication Critical patent/JPS6146545A/en
Publication of JPH0424733B2 publication Critical patent/JPH0424733B2/ja
Granted 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)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は計算機システムの中央処理装置で実行
される入出力命令に基づく指令情報を、チヤネル
制御装置に転送するための制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a control system for transferring command information based on input/output commands executed by a central processing unit of a computer system to a channel control device.

多くの計算機システムの周辺装置は、1又は複
数のサブチヤネルを制御するチヤネル制御装置を
経て、計算機システム本体部の中央処理装置及び
主記憶装置に接続される。
The peripheral devices of many computer systems are connected to the central processing unit and main storage of the main body of the computer system via a channel control device that controls one or more subchannels.

チヤネル制御装置は、中央処理装置で実行され
る入出力命令によつて構成される制御情報を受領
して、該制御情報に指定されたサブチヤネルのデ
ータ入出力等の制御を実行する。
The channel control device receives control information constituted by input/output instructions executed by the central processing unit, and executes control such as data input/output of the subchannel specified by the control information.

〔従来の技術〕[Conventional technology]

第2図は計算機システムの一例の構成図であ
り、2台の中央処理装置(以下においてCPUと
いう)1、2台のチヤネル制御装置(以下におい
てCHPという)2及び主記憶装置3が、システ
ム制御装置4に接続されている。
Figure 2 is a configuration diagram of an example of a computer system, in which two central processing units (hereinafter referred to as CPUs) 1, two channel control units (hereinafter referred to as CHP) 2, and a main storage device 3 control the system. It is connected to device 4.

CHP2は各サブチヤネルの制御に必要な情報
を保持しているが、それらの情報は、例えば主記
憶装置の一部の記憶領域を利用して記憶する。
The CHP 2 holds information necessary for controlling each subchannel, and this information is stored using, for example, a part of the storage area of the main storage device.

そのような領域は例えばI/Oシステム領域と
呼ばれ、CPU1で実行されるプログラムからは
直接アクセスすることができない、いわゆるハー
ドウエア領域として固定的にCHP2に割り当て
られる。
Such an area is called, for example, an I/O system area, and is fixedly allocated to the CHP 2 as a so-called hardware area that cannot be accessed directly from a program executed by the CPU 1.

システム制御装置4はCPU1及びCHP2から
主記憶装置3へのアクセスを制御し、又CPU1
相互間、CPU1とCHP2間、CHP2相互間等の
情報交換を制御する。
The system control device 4 controls access to the main storage device 3 from the CPU 1 and CHP 2, and
Controls information exchange between each other, between CPU1 and CHP2, between CHP2, etc.

CPU1で実行されるプログラムにおいて、周
辺装置に関するデータ転送、その他の制御を必要
とするときは、CHP2に所要の指令情報を送る
ために入出力命令を発行する。
When a program executed by the CPU 1 requires data transfer or other control regarding peripheral devices, an input/output command is issued to send the required command information to the CHP 2.

入出力命令に属する命令には、周辺装置の動作
の起動等をCHP2に指令するための、スタート
I/O(SIO及びSIOF)命令を代表例として、各
種の命令があるが、それらの命令は従来以下に説
明するようにして実行された。
There are various types of commands that belong to input/output commands, with the typical example being the start I/O (SIO and SIOF) command, which instructs the CHP2 to start the operation of peripheral devices. Conventionally, this has been performed as described below.

即ち、例えばSIOF命令を発行するときは、そ
の前にプログラムは周辺装置の動作等を規定する
コマンド制御語(以下においてCCWという)を
主記憶装置3に準備し、その記憶アドレスを、主
記憶装置の特定記憶アドレスにあるコマンドアド
レス語(以下においてCAWという)に格納した
後、SIOF命令を発行する。
That is, for example, when issuing a SIOF command, the program prepares a command control word (hereinafter referred to as CCW) that specifies the operation of a peripheral device in the main memory 3, and stores its memory address in the main memory. After storing the command address word (hereinafter referred to as CAW) at a specific storage address, the SIOF command is issued.

CPU1ではSIOF命令の実行において、第4図
のタイミング図に示すように、I/O要求信号1
0として、該命令のオペレーシヨンコード及びオ
ペランドで指定されるサブチヤネルアドレス(周
辺装置アドレス)を含む指令情報を、システム制
御装置4へ送る。
In the CPU 1, when executing the SIOF instruction, as shown in the timing diagram of Fig. 4, the I/O request signal 1
0, and sends command information including the operation code of the command and the subchannel address (peripheral device address) specified by the operand to the system control device 4.

システム制御装置4はCHPを選択して、制御
信号、発信元のCPU番号、と共に入出力制御情
報をCHP2へ情報11として示すタイミングに
おいて中継する。
The system control device 4 selects the CHP and relays the input/output control information together with the control signal and the source CPU number to the CHP 2 at the timing shown as information 11.

CHP2はCPU番号で定まる特定記憶アドレス
のCAWを読み出して、CCWアドレス等をI/O
システム領域に格納し、その他の一連の処理を時
間12の間に実行する。その後、結果の条件コード
(以下においてCCという)と共に終了信号13を
返すので、システム制御装置4は発信元CPU1
へ、情報14としてそれを中継する。
CHP2 reads the CAW of a specific memory address determined by the CPU number and I/Os the CCW address etc.
It is stored in the system area and a series of other processes are executed during time 12. After that, the end signal 13 is returned together with the resulting condition code (hereinafter referred to as CC), so the system control device 4
, and relays it as information 14.

CPU1はCCを所定のレジスタにセツトして命
令の実行を完了する。
The CPU 1 sets CC in a predetermined register and completes the execution of the instruction.

〔発明が解決しようとする問題点〕 前記の説明で明らかなように、入出力命令の実
行のために第4図に時刻15から16までの期間にわ
たつてCPU1は占用されることになる。
[Problems to be Solved by the Invention] As is clear from the above explanation, the CPU 1 is occupied for the period from time 15 to time 16 in FIG. 4 to execute input/output instructions.

この期間には装置間の情報転送を含むので、比
較的長い時間を要するという問題があり、CPU
1の高速化とともに、益々その問題が拡大される
傾向になつている。
This period includes information transfer between devices, so there is a problem that it takes a relatively long time.
As the speed of 1.1 increases, this problem tends to become more widespread.

〔問題点を解決するための手段〕 前記の問題点は、中央処理装置と、チヤネル制
御装置と、主記憶装置とを有し、 該チヤネル制御装置は、該中央処理装置で実行
される入出力命令に基づく指令情報を受信して、
該指令情報で指定されるサブチヤネルについて指
定の処理を実行し、 該主記憶装置は、該中央処理装置及び該チヤネ
ル制御装置からアクセスするよう接続され、所定
のI/Oシステム領域に、該サブチヤネルの制御
情報を保持する計算機システムにおいて、 該チヤネル制御装置には、1個以上のバツフア
と、上記中央処理装置から転送される該指令情報
を該チヤネル制御装置内の処理状態とは独立に空
きの該バツフアに受信する手段と、該バツフアの
全てに空きがない状態を中央処理装置に通知する
手段を設け、 該中央処理装置は、該入出力命令を実行する場
合には、該通知手段を参照して該バツフアに空き
がないと判定したときは該命令の実行を中止また
は待ち状態とし、 該バツフアに空きがあると判定したときは、当
該入出力命令で指定される該サブチヤネルの該
I/Oシステム領域に保持する該制御情報より該
サブチヤネルの状態を識別し、 該サブチヤネルが指令実行が不可能である状態
の場合は、該中央処理装置は入出力命令の実行を
中止し、 該サブチヤネルが指令実行可能である状態の場
合は、該中央処理装置は当該サブチヤネルを制御
するための所定の情報をI/Oシステム領域に格
納した後で、該指令情報を該チヤネル制御装置の
バツフアに転送し、 該入出力命令が該チヤネル制御装置による入出
力処理の実行と中央処理装置の命令の実行とが非
同期に行われる命令である場合には、該指令情報
の転送の完了によつて該入出力命令の実行を完了
したことを認識することを特徴とする本発明の入
出力制御方法によつて解決される。
[Means for solving the problem] The above problem has a central processing unit, a channel control unit, and a main storage device, and the channel control unit has an input/output function executed by the central processing unit. Receive command information based on the command,
A specified process is executed for the subchannel specified by the command information, and the main storage device is connected to be accessed by the central processing unit and the channel control device, and the main storage device is connected to the central processing unit and the channel control device, and stores the information of the subchannel in a predetermined I/O system area. In a computer system that retains control information, the channel control device has one or more buffers, and the command information transferred from the central processing unit is stored in an empty buffer independently of the processing state within the channel control device. means for receiving data on a buffer, and means for notifying a central processing unit that all of the buffers are full, and the central processing unit refers to the notifying means when executing the input/output command. When it is determined that there is no space in the buffer, the execution of the instruction is stopped or placed in a waiting state, and when it is determined that there is space in the buffer, the I/O of the subchannel specified by the input/output instruction is executed. The state of the subchannel is identified from the control information held in the system area, and if the subchannel is in a state where it is impossible to execute the command, the central processing unit stops executing the input/output command, and the subchannel executes the command. If the state is executable, the central processing unit stores predetermined information for controlling the subchannel in the I/O system area, and then transfers the command information to the buffer of the channel control device; If the input/output command is an instruction in which the execution of input/output processing by the channel control device and the execution of the command by the central processing unit are performed asynchronously, the input/output command is executed upon completion of the transfer of the command information. This problem is solved by the input/output control method of the present invention, which is characterized by recognizing that the execution of the problem has been completed.

〔作用〕[Effect]

入出力命令の実行のためにCPU1が保留され
る時間の大部分を占める、第4図の時間12の期間
に、CHP2で行われる処理は入出力命令の種類
によつて一般に異なるが、大別して2種類の型が
ある。
During the period of time 12 in Figure 4, which occupies most of the time when CPU 1 is held on hold for the execution of input/output instructions, the processing performed by CHP 2 generally differs depending on the type of input/output instruction, but can be roughly divided into There are two types.

第1の型の命令はSIOF命令その他のように、
この時点では該命令に基づく制御情報がCHP2
に転送されるのみで、その実行はCPU1の命令
の実行と非同期に行われてよいものである。
The first type of instructions, like the SIOF instruction and others, are
At this point, the control information based on the command is CHP2
The execution may be performed asynchronously with the execution of instructions by the CPU 1.

第2の型はSIO命令等のように、時間12の期間
において、コマンド転送等周辺装置との情報授受
が行われ、その結果が得られた時点で命令を完了
する、いわゆる同期型のものである。
The second type is a so-called synchronous type, such as an SIO instruction, in which information such as command transfer is exchanged with a peripheral device during a period of time 12, and the instruction is completed when the result is obtained. be.

従つて、CPU1から受信する指令情報の保持
を目的とするバツフアをCHP2に設け、第1の
型の命令の場合には、該バツフアに指令情報を転
送完了すれば入出力命令の実行完了とすることに
すれば、CHP2が他の処理を実行中であつても、
CPU1は入出力命令の実行を終わることができ
る。
Therefore, a buffer is provided in the CHP 2 for the purpose of holding the command information received from the CPU 1, and in the case of the first type of command, execution of the input/output command is completed when the command information is transferred to the buffer. In other words, even if CHP2 is executing other processing,
CPU1 can finish executing the input/output instruction.

この場合に、例えば指令情報を転送する前に、
CPU1がI/Oシステム領域の所要サブチヤネ
ルの情報を参照して、該サブチヤネルが指令実行
可能な状態か否かを判定し、可能の場合はCAW
にあるCCW記憶アドレスその他の制御情報を該
サブチヤネルの領域に格納する。
In this case, for example, before transferring command information,
CPU1 refers to the information of the required subchannel in the I/O system area, determines whether the subchannel is in a state where the command can be executed, and if possible, CAW
The CCW storage address and other control information located in the subchannel are stored in the area of the subchannel.

その結果と、指令情報転送結果に基づいてCC
の発生もCPU1自身で行うことができる。
CC based on the result and the command information transfer result.
can also be generated by the CPU 1 itself.

なお、CPU1が上記制御情報をサブチヤネル
の領域に格納するのは、従来技術のようにCHP
2が該処理を実行するものとした場合、CPU1
が所定の指令情報の転送を以て入出力命令を完了
したと認識して次の処理に移行すると、CHP2
の処理以前に上記制御情報を更新してしまうおそ
れがあるため、このことを防止するためである。
Note that the CPU 1 stores the above control information in the subchannel area by CHP as in the conventional technology.
If CPU 2 executes the process, CPU1
When CHP2 recognizes that the input/output command has been completed by transferring the specified command information and moves on to the next process, CHP2
This is to prevent this from happening, since there is a risk that the control information will be updated before the process.

これらのCPU1の処理も、CHP2が他の処理
を実行中に並行できるので、従来実質的には遊ん
でいたCPU1の時間を効率よく利用できる。
Since these processes of the CPU 1 can be performed in parallel while the CHP 2 is executing other processes, the time of the CPU 1, which was essentially idle in the past, can be used efficiently.

以上のように、SIOF命令等の入出力命令の実
行で、バツフアさえ空いていればチヤネル制御装
置の処理中でも、待ち合わせる必要が無くなるこ
とと、指令情報をチヤネル制御装置に転送する前
にI/Oシステム領域の処理を中央処理装置で行
い、チヤネル制御装置で指令受信後に行なう必要
が無くなることになるので、命令実行時間を短縮
し、システムの総合的性能を向上する結果とな
る。
As described above, when executing an input/output command such as a SIOF command, there is no need to wait even during channel control device processing as long as the buffer is free, and I/O Processing in the system area is performed by the central processing unit, and there is no need for the channel control unit to perform the processing after receiving the command, resulting in a reduction in command execution time and an improvement in the overall performance of the system.

〔実施例〕〔Example〕

第1図aは本発明の一実施例構成の詳細ブロツ
ク図、第1図bはこの実施例における入出力命令
実行のタイミング図である。
FIG. 1a is a detailed block diagram of the configuration of an embodiment of the present invention, and FIG. 1b is a timing diagram of input/output command execution in this embodiment.

CPU1は入出力命令の実行において、後述の
ようにCHP2から送られるバツフア・フル信号
を見て、CHP2の指令情報受信バツフアに空き
があると判定した場合には処理を進める。
When executing an input/output command, the CPU 1 looks at a buffer full signal sent from the CHP 2 as described later, and if it determines that there is space in the command information receiving buffer of the CHP 2, it proceeds with the process.

その場合には、まず入出力命令のオペランドで
指定されるサブチヤネルアドレスによつて、I/
Oシステム領域の該サブチヤネルの領域にアクセ
スして、サブチヤネルの状態を検査し、サブチヤ
ネルが指令を実行可能な状態でなければ、例えば
この段階で、所定のCCをセツトして命令実行を
終わる等の処理に分岐する。
In that case, first, the I/O
Access the area of the subchannel in the O system area, check the status of the subchannel, and if the subchannel is not in a state where the command can be executed, for example, at this stage, set a predetermined CC and finish the command execution. Branch to processing.

指令を実行可能な状態であれば、固定の記憶ア
ドレスにあるCAWを読み出し、その内容である、
CCW記憶アドレス、記憶保護キー値その他を
I/Oシステム領域に書込む前処理(第1図bの
50)を行つた後、指令情報の転送を開始する。
If the command is executable, read the CAW at a fixed storage address and read its contents,
After performing preprocessing (50 in FIG. 1b) of writing the CCW storage address, storage protection key value, etc. to the I/O system area, the transfer of command information is started.

CPU1はアドレスバス20に指令情報と要求
種別とを乗せてシステム制御装置4のレジスタ2
1、22へ転送する(第1図bの51)。
The CPU 1 loads the command information and request type onto the address bus 20 and sends it to the register 2 of the system control device 4.
1, 22 (51 in Figure 1b).

レジスタ22の要求種別は主記憶装置3への読
出し/書込み及びI/O要求等の別であつて、今
の場合はI/O要求の表示とする。
The request type in the register 22 is different from read/write to the main memory 3, I/O request, etc., and in this case, the I/O request is displayed.

レジスタ21の指令情報は例えば第3図の構成
を有し、オペレーシヨンコード部60にはSIOF
等の入出力命令のオペレーシヨンコード、サブチ
ヤネルアドレス部61には前記の前処理で使用し
た、サブチヤネルアドレスが置かれ、制御部62
にはその他の制御情報が必要な場合に置かれる。
The command information in the register 21 has, for example, the configuration shown in FIG.
The operation code of input/output commands such as
is placed when other control information is required.

なお、図中の下部の数字は指令情報の構成の一
例を示すためのビツト位置番号である。この例に
おいてはビツト位置0から31までの32ビツトで指
令情報が構成される。
Note that the numbers at the bottom of the figure are bit position numbers showing an example of the structure of command information. In this example, the command information is composed of 32 bits from bit positions 0 to 31.

システム制御装置4では、選択回路23によつ
て、所定の優先順により、同時に発生する要求の
うちの1つを選択して、その要求情報を受信し、
アドレスパイプライン24に入力する。
In the system control device 4, the selection circuit 23 selects one of the requests occurring simultaneously according to a predetermined priority order, and receives the request information,
input to address pipeline 24;

アドレスパイプライン24には前記の3種の指
令情報が、要求種別及び発信元CPU番号と共に、
受け付け順に入力され、それらの情報はいわゆる
パイプラインを構成するレジスタをシフトし、各
要求種別に応じて制御に使われる。
The three types of command information mentioned above are stored in the address pipeline 24 along with the request type and source CPU number.
The information is input in the order in which it is received, and the information is used to shift registers that make up a so-called pipeline and is used for control according to each request type.

I/O要求の場合には、該要求種別を検出して
パイプラインの途中の適当なステージにおいてチ
ヤネル選択回路25へ指令情報及び発信元CPU
番号がコピーされる。
In the case of an I/O request, the request type is detected and the command information and the source CPU are sent to the channel selection circuit 25 at an appropriate stage in the pipeline.
The number will be copied.

チヤネル選択回路25は指令情報のサブチヤネ
ルアドレス部(第3図の61)の一部によつて
CHP2を決定し、該CHP2のレジスタ26へ指
令情報、レジスタ27へCPU番号を転送する
(第1図bの52)。
The channel selection circuit 25 is configured by a part of the subchannel address part (61 in FIG. 3) of the command information.
The CHP2 is determined, and the command information is transferred to the register 26 of the CHP2, and the CPU number is transferred to the register 27 (52 in FIG. 1b).

レジスタ26の指令情報は各CPUに対応して
設けられるバツフアレジスタ35−1又は35−
2に格納される。
The command information in the register 26 is stored in a buffer register 35-1 or 35- provided corresponding to each CPU.
2.

制御部29はバツフアレジスタ26,27に指
令情報等が設定されると、直ちにCPU番号をシ
ステム制御装置4のレジスタ30に、受信確認信
号をラツチ31にセツトする。
When the command information and the like are set in the buffer registers 26 and 27, the control section 29 immediately sets the CPU number in the register 30 of the system control device 4 and sets the reception confirmation signal in the latch 31.

システム制御装置4では選択回路32でレジス
タ30に設定されたCPU番号のCPUを選択して、
該CPU向けのラツチ33に受信確認信号をセツ
トすることにより、該CPUへ受信確認信号を転
送する(第1図bの53)。
In the system control device 4, the selection circuit 32 selects the CPU with the CPU number set in the register 30,
By setting the reception confirmation signal in the latch 33 for the CPU, the reception confirmation signal is transferred to the CPU (53 in FIG. 1b).

同時にCHP2の制御部29は、システム制御
装置4のバツフア・フル信号ラツチ34−1又は
34−2もセツトする。
At the same time, the controller 29 of the CHP 2 also sets the buffer full signal latch 34-1 or 34-2 of the system controller 4.

このバツフア・フル信号ラツチ34−1又は3
4−2は各CHPに対応して、各CPU用のバツフ
アレジスタ35−1、35−2が使用中であるこ
とを表示するように設けられ、制御部29が処理
部28から、バツフアレジスタ35−1又は35
−2の空きを通知されることによつて、リセツト
するまで保持される。
This buffer full signal latch 34-1 or 3
4-2 is provided corresponding to each CHP to indicate that the buffer registers 35-1 and 35-2 for each CPU are in use, and the control unit 29 receives the buffer registers from the processing unit 28. Register 35-1 or 35
-2 is held until it is reset.

バツフア・フル信号ラツチ34−1、34−2
の信号は各CPUに対する信号の論理和によつて
ラツチ36をセツトすることにより、該CPUへ
のバツフア・フル信号を転送する。従つて、各
CPU1は全CHP2における自CPU用のバツフア
レジスタ35−1又は35−2がすべて空きの場
合に、バツフア・フル信号のオフ状態を検出する
ことになる。
Buffer full signal latch 34-1, 34-2
The signal for each CPU transfers the buffer full signal to that CPU by setting latch 36 by ORing the signals for that CPU. Therefore, each
The CPU 1 detects the OFF state of the buffer full signal when all of the buffer registers 35-1 or 35-2 for its own CPU in all CHPs 2 are empty.

CPU1ではレジスタ33で転送される受信確
認信号を受信すると、実行中の入出力命令が前記
の非同期型であれば、直ちに所定レジスタに所定
内容のCCをセツトして、命令の実行を完了する。
When the CPU 1 receives the reception confirmation signal transferred by the register 33, if the input/output instruction being executed is the above-mentioned asynchronous type, it immediately sets a CC with a predetermined content in a predetermined register and completes the execution of the instruction.

従つて、非同期型の入出力命令の実行において
は、第1図bの54に示す期間のみCHP1と
CHP2との結合が必要であり、CPU1はシステ
ム制御装置4よりバツフア・フル信号を受け取る
と次命令の処理を開始できる。
Therefore, in the execution of an asynchronous type input/output instruction, CHP1 and
A connection with the CHP 2 is required, and when the CPU 1 receives a buffer full signal from the system control device 4, it can start processing the next instruction.

また、実行中の入出力命令が前記の同期型であ
つた場合には、バツフア・フル信号を受取り、更
にCHP2からの処理終了信号を待つ。
If the input/output command being executed is the synchronous type described above, it receives a buffer full signal and waits for a processing end signal from the CHP2.

なお、CHP2内のバツフアレジスタ35−1,
35−2が使用中の場合は、バツフア・フル信号
がオンであるので、前述のとおりCPU1が実行
しようとする後続の命令が入出力命令であるとき
はバツフア・フル信号のオフを検出するまでは実
行することができない。
In addition, buffer register 35-1 in CHP2,
When 35-2 is in use, the buffer full signal is on, so if the subsequent instruction that CPU 1 attempts to execute is an input/output instruction as described above, the buffer full signal will not be executed until it detects that the buffer full signal is off. cannot be executed.

CHP2の処理部28は、処理が可能になつた
時、バツフアレジスタ35−1又は35−2の指
令情報を読み取つて従来の方式に準じた入出力制
御の処理を行う。但し、この場合において、
CAWの情報は既にCPU1によつてI/Oシステ
ム領域に転送されているので、従来のように
CHP2がCAWを読み出すことはない。
When processing becomes possible, the processing unit 28 of the CHP 2 reads the command information from the buffer register 35-1 or 35-2 and performs input/output control processing according to the conventional method. However, in this case,
CAW information has already been transferred to the I/O system area by CPU1, so
CHP2 never reads CAW.

処理部28はその場合に、まず読み出したバツ
フアレジスタ35−1又は35−2が空きになつ
たことを制御部29に通知するので、制御部29
は該当するバツフア・フル信号ラツチ34−1又
は34−2をリセツトする。
In that case, the processing section 28 first notifies the control section 29 that the buffer register 35-1 or 35-2 that has been read out has become empty.
resets the appropriate buffer full signal latch 34-1 or 34-2.

指令情報のオペレーシヨンコード部(第3図の
60)によつて定まるオペレーシヨンが非同期型
の場合には、前記のようにしてCPU1における
命令実行は完了するので、これ以上CHP2から
命令に対する応答は出さない。
If the operation determined by the operation code section (60 in Figure 3) of the command information is an asynchronous type, the instruction execution in the CPU 1 is completed as described above, and no further response to the instruction is required from the CHP 2. Not issued.

処理部28がオペレーシヨンが同期型であると
判定した場合には、指令情報に基づく制御(例え
ば、SIO命令の場合の周辺装置起動制御)が終わ
つた時点で、その制御の結果を示すCCを作成し
て、システム制御装置4のレジスタ37に転送す
る。同時に、入出力命令の発信元CPU番号をレ
ジスタ30に、処理終了信号をラツチ38に転送
する(第1図bの57)。
If the processing unit 28 determines that the operation is synchronous, when control based on command information (for example, peripheral device startup control in the case of an SIO command) is completed, a CC indicating the result of the control is sent. It is created and transferred to the register 37 of the system control device 4. At the same time, the source CPU number of the input/output command is transferred to the register 30, and the processing end signal is transferred to the latch 38 (57 in FIG. 1b).

CCと処理終了信号は選択回路32を経て、目
的のCPU向けのレジスタ39、ラツチ40に設
定されて、CPU1へ転送される(第1図bの5
5)。
The CC and processing end signals pass through the selection circuit 32, are set in the register 39 and latch 40 for the target CPU, and are transferred to the CPU 1 (5 in Figure 1b).
5).

CPU1はそれらを受信して、CCを所定レジス
タに設定することにより、同期型の入出力命令の
実行を完了する。従つて、同期型の入出力命令の
場合には第1図bに56で示す期間、CPUと
CHPが結合している。
The CPU 1 receives them and sets CC in a predetermined register, thereby completing execution of the synchronous input/output instruction. Therefore, in the case of synchronous input/output instructions, the CPU and
CHP is combined.

以上の説明では、各CHPのバツフアレジスタ
35−1,35−2が各CPUに対して1個づつ
あるものとしたが、各CPUに対して2個以上設
け、又は複数のCPUに対して共通に複数個のバ
ツフアレジスタのプールを設けるようにしてもよ
く、それらは本実施例の変形として容易に構成す
ることができる。
In the above explanation, it is assumed that each CHP has one buffer register 35-1, 35-2 for each CPU, but it is assumed that two or more buffer registers are provided for each CPU, or for multiple CPUs. A plurality of buffer register pools may be provided in common, and these can be easily configured as a modification of this embodiment.

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

以上の説明から明らかなように本発明によれ
ば、入出力命令の実行によるCPUの保留時間を
短縮して、計算機システムの処理能力を向上する
という著しい工業的効果がある。
As is clear from the above description, the present invention has a significant industrial effect of reducing the CPU hold time due to the execution of input/output instructions and improving the processing capacity of the computer system.

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

第1図aは本発明一実施例の構成ブロツク図、
第1図bは本発明一実施例のタイミング図、第2
図は計算機システムの構成図、第3図は指令情報
の構成図、第4図は従来の入出力命令実行タイミ
ング図である。 図において、1は中央処理装置(CPU)、2は
チヤネル制御装置(CHP)、3は主記憶装置、4
はシステム制御装置、21,22,26,27は
レジスタ、23は選択回路、24はアドレスパイ
プライン、25はチヤネル選択回路、28は処理
部、29は制御部、32は選択回路、34−1,
34−2はバツフア・フル信号ラツチ、35−
1,35−2はバツフアレジスタを示す。
FIG. 1a is a block diagram of an embodiment of the present invention;
FIG. 1b is a timing diagram of one embodiment of the present invention;
3 is a configuration diagram of a computer system, FIG. 3 is a configuration diagram of command information, and FIG. 4 is a conventional input/output command execution timing diagram. In the figure, 1 is the central processing unit (CPU), 2 is the channel control unit (CHP), 3 is the main memory, and 4
21, 22, 26, 27 are registers, 23 is a selection circuit, 24 is an address pipeline, 25 is a channel selection circuit, 28 is a processing section, 29 is a control section, 32 is a selection circuit, 34-1 ,
34-2 is a buffer full signal latch, 35-
1, 35-2 indicates a buffer register.

Claims (1)

【特許請求の範囲】 1 中央処理装置と、チヤネル制御装置と、主記
憶装置とを有し、 該チヤネル制御装置は、該中央処理装置で実行
される入出力命令に基づく指令情報を受信して、
該指令情報で指定されるサブチヤネルについて指
定の処理を実行し、 該主記憶装置は、該中央処理装置及び該チヤネ
ル制御装置からアクセスするよう接続され、所定
のI/Oシステム領域に、該サブチヤネルの制御
情報を保持する計算機システムにおいて、 該チヤネル制御装置には、1個以上のバツフア
と、上記中央処理装置から転送される該指令情報
を該チヤネル制御装置内の処理状態とは独立に空
きの該バツフアに受信する手段と、該バツフアの
全てに空きがない状態を中央処理装置に通知する
手段を設け、 該中央処理装置は、該入出力命令を実行する場
合には、該通知手段を参照して該バツフアに空き
がないと判定したときは該命令の実行を中止また
は待ち状態とし、 該バツフアに空きがあると判定したときは、当
該入出力命令で指定される該サブチヤネルの該
I/Oシステム領域に保持する該制御情報より該
サブチヤネルの状態を識別し、 該サブチヤネルが指令実行が不可能である状態
の場合は、該中央処理装置は入出力命令の実行を
中止し、 該サブチヤネルが指令実行可能である状態の場
合は、該中央処理装置は当該サブチヤネルを制御
するための所定の情報をI/Oシステム領域に格
納した後で、該指令情報を該チヤネル制御装置の
バツフアに転送し、 該入出力命令が該チヤネル制御装置による入出
力処理の実行と中央処理装置の命令の実行とが非
同期に行われる命令である場合には、該指令情報
の転送の完了によつて該入出力命令の実行を完了
したことを認識することを特徴とする入出力命令
制御方法。
[Claims] 1. A central processing unit, a channel control device, and a main storage device, the channel control device receiving command information based on input/output commands executed by the central processing unit. ,
A specified process is executed for the subchannel specified by the command information, and the main storage device is connected to be accessed by the central processing unit and the channel control device, and the main storage device is connected to the central processing unit and the channel control device, and stores the information of the subchannel in a predetermined I/O system area. In a computer system that retains control information, the channel control device has one or more buffers, and the command information transferred from the central processing unit is stored in an empty buffer independently of the processing state within the channel control device. means for receiving data on a buffer, and means for notifying a central processing unit that all of the buffers are full, and the central processing unit refers to the notifying means when executing the input/output command. When it is determined that there is no space in the buffer, the execution of the instruction is stopped or placed in a waiting state, and when it is determined that there is space in the buffer, the I/O of the subchannel specified by the input/output instruction is executed. The state of the subchannel is identified from the control information held in the system area, and if the subchannel is in a state where it is impossible to execute the command, the central processing unit stops executing the input/output command, and the subchannel executes the command. If the state is executable, the central processing unit stores predetermined information for controlling the subchannel in the I/O system area, and then transfers the command information to the buffer of the channel control device; If the input/output command is an instruction in which the execution of input/output processing by the channel control device and the execution of the command by the central processing unit are performed asynchronously, the input/output command is executed upon completion of the transfer of the command information. An input/output command control method characterized by recognizing that execution of the input/output command has been completed.
JP16816384A 1984-08-11 1984-08-11 Input and output instruction control system Granted JPS6146545A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16816384A JPS6146545A (en) 1984-08-11 1984-08-11 Input and output instruction control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16816384A JPS6146545A (en) 1984-08-11 1984-08-11 Input and output instruction control system

Publications (2)

Publication Number Publication Date
JPS6146545A JPS6146545A (en) 1986-03-06
JPH0424733B2 true JPH0424733B2 (en) 1992-04-27

Family

ID=15862971

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16816384A Granted JPS6146545A (en) 1984-08-11 1984-08-11 Input and output instruction control system

Country Status (1)

Country Link
JP (1) JPS6146545A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5217002B2 (en) * 2004-07-05 2013-06-19 株式会社ナチュラレーザ・ワン Document crimping plate opening and closing device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5257743A (en) * 1975-11-07 1977-05-12 Hitachi Ltd Channel equipment
JPS52122066A (en) * 1976-04-06 1977-10-13 Kinsekisha Lab Ltd Device for judging frequency characteristics
JPS52144236A (en) * 1976-05-26 1977-12-01 Hitachi Ltd Information processing system
JPS58214930A (en) * 1982-06-08 1983-12-14 Nec Corp Data processor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5257743A (en) * 1975-11-07 1977-05-12 Hitachi Ltd Channel equipment
JPS52122066A (en) * 1976-04-06 1977-10-13 Kinsekisha Lab Ltd Device for judging frequency characteristics
JPS52144236A (en) * 1976-05-26 1977-12-01 Hitachi Ltd Information processing system
JPS58214930A (en) * 1982-06-08 1983-12-14 Nec Corp Data processor

Also Published As

Publication number Publication date
JPS6146545A (en) 1986-03-06

Similar Documents

Publication Publication Date Title
EP0166272B1 (en) Processor bus access
EP0464615B1 (en) Microcomputer equipped with DMA controller
KR910005997B1 (en) Apparatus and method for an operating system supervisor in a data processing system
US5371857A (en) Input/output interruption control system for a virtual machine
US5107416A (en) Arrangement for simultaneously dealing with transfer requests produced by central, arithmetic and input-output processors of a super computer
US6134642A (en) Direct memory access (DMA) data transfer requiring no processor DMA support
JPH0424733B2 (en)
US6085297A (en) Single-chip memory system including buffer
JP2522412B2 (en) Communication method between programmable controller and input / output device
JPH09218859A (en) Multiprocessor control system
JPH0321941B2 (en)
JPS63155254A (en) Information processor
JPH02183342A (en) Interruption controller
JPS60136853A (en) Data transfer system
JPH01302448A (en) Information processor
JPH07111711B2 (en) Processing end interrupt control system
JPS6215903B2 (en)
JPS61256421A (en) Initialization system for transfer buffer of auxiliary storage device
JPH0425581B2 (en)
JPS6267648A (en) Processing system for exclusive control instruction
JPH01316851A (en) Channel control system
JPS6223342B2 (en)
JPS63113658A (en) Interlock instruction control system
JPS6175942A (en) Disk cache control system
JPS6039265A (en) Data transfer system

Legal Events

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