JPS62247443A - Channel control system - Google Patents

Channel control system

Info

Publication number
JPS62247443A
JPS62247443A JP6366386A JP6366386A JPS62247443A JP S62247443 A JPS62247443 A JP S62247443A JP 6366386 A JP6366386 A JP 6366386A JP 6366386 A JP6366386 A JP 6366386A JP S62247443 A JPS62247443 A JP S62247443A
Authority
JP
Japan
Prior art keywords
channel
processing
microprocessor
control unit
request
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.)
Granted
Application number
JP6366386A
Other languages
Japanese (ja)
Other versions
JPH054703B2 (en
Inventor
Seiichi Shimizu
誠一 清水
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 JP6366386A priority Critical patent/JPS62247443A/en
Publication of JPS62247443A publication Critical patent/JPS62247443A/en
Publication of JPH054703B2 publication Critical patent/JPH054703B2/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)

Abstract

PURPOSE:To avoid such a case where a microprocessor is occupied by a single channel only and to secure the highly efficient channel processing, by producing a request for the processing to be carried out successively when a process of a microprogram is through and rearranging the priority between the processing requests of other channels and the using right of the microprocessor. CONSTITUTION:A common control part 6 includes the 1st microprocessor 8 and the 2nd microprocessor 9 is provided to an individual control part 7. The part 7 reads cyclically the control information on each channel out of a memory means 11 and replaces them. When the selecting permission is designated by the processor 8, a priority deciding circuit 13 selects one of those processing requests stored in the request registers 12-0, 12-1, 12-2... according to the priority and outputs the selected request.

Description

【発明の詳細な説明】 〔概要〕 複数のチャネルを共通に制御するマイクロプロセッサに
おいて、各チャネルの処理単位を細分化し、各チャネル
の処理の機会均等を図るために、マイクロプログラムの
一つの処理終了時に、続いて行うべき処理の要求を発行
できるようにして、他のチャネルの処理要求とマイクロ
プロセッサの使用権に関する優先順位を取り直すことに
より一つのチャネルがマイクロプロセッサを独占使用す
ることを避け、効率の良いチャネル処理を行うようにし
たものである。
[Detailed Description of the Invention] [Summary] In a microprocessor that commonly controls a plurality of channels, in order to subdivide the processing unit of each channel and to ensure equal processing opportunities for each channel, it is possible to Occasionally, requests for subsequent processing can be issued, and processing requests from other channels can be re-prioritized with respect to the right to use the microprocessor, thereby preventing one channel from monopolizing the microprocessor and improving efficiency. It is designed to perform good channel processing.

〔産業上の利用分野〕[Industrial application field]

本発明は、一般の計算機システムにおけるチャネル処理
装置内のマイクロプロセッサへの割込み処理方式に関わ
り、特に複数のチャネルを共通に平等に制御する必要の
あるマイクロプロセッサの起動方式に関するものである
The present invention relates to an interrupt processing method for a microprocessor in a channel processing device in a general computer system, and more particularly to a startup method for a microprocessor that requires common and equal control of a plurality of channels.

〔従来の技術〕[Conventional technology]

第7図はチャネル処理装置を有する一般的な計算機シス
テムの構成を示す図である。第7図において、1は中央
処理装置、2はチャネル処理装置、3は主記憶装置、4
は記憶制御装置、CHはチャネル、10は入出力装置を
それぞれ示している。
FIG. 7 is a diagram showing the configuration of a general computer system having a channel processing device. In FIG. 7, 1 is a central processing unit, 2 is a channel processing unit, 3 is a main storage unit, and 4 is a main storage unit.
indicates a storage control device, CH indicates a channel, and 10 indicates an input/output device.

チャネル処理装置2は、従来、各個別チャネルCHを制
御するチャネル・モードと、中央処理装置1からの■0
命令を制御するCPUモードの二つのモードからなるマ
イクロプロセッサである。
Conventionally, the channel processing device 2 has a channel mode for controlling each individual channel CH, and a
It is a microprocessor that has two modes: a CPU mode that controls instructions.

CPUモードからチャネル・モードへの切り替えは、I
O命令発行時にチャネル番号に対応するレジスタに10
命令が発行された旨の指示を出して置くとチャネルが都
合が良い時に割込み要求を発行してチャネル・モードに
切り替わる場合と、一般にサイクル・スチールと呼ばれ
、データ転送要求が発生してチャネル・モードに切り替
わる場合の二通りの場合がある。チャネル・モードから
CPUモードの切り替えは、■0命令が終了しチャネル
処理装置2が次のIO命令が発行されるのを待つ場合か
、サイクル・スチールが終了した場合になる。
To switch from CPU mode to channel mode, use I
When the O instruction is issued, 10 is written to the register corresponding to the channel number.
There are two cases in which the channel issues an interrupt request and switches to channel mode when an instruction is issued, and another case in which a data transfer request occurs and the channel switches to channel mode, which is generally called a cycle steal. There are two cases in which the mode may be switched. The switching from the channel mode to the CPU mode occurs when the channel processing device 2 waits for the next IO instruction to be issued after the 0 instruction is completed, or when the cycle steal ends.

〔解決しようとする問題点〕[Problem to be solved]

ところで最近は、チャネル数の増大と、それに伴う処理
の高効率化の要求があり、従来のサイクル・スチール方
式の改善が必要となってきたが、上述のような従来方式
は下記のような欠点を有しているので、高効率化要求に
応えることが出来ない。
Recently, however, there has been an increase in the number of channels and a corresponding demand for higher processing efficiency, which has created a need for improvements to the conventional cycle-stealing method.However, the conventional method described above has the following drawbacks. Therefore, it is not possible to meet the demand for higher efficiency.

(a)1チヤネルのサイクル・スチール処理時間が長い
ので他チャネルの処理が待たされる。
(a) Since the cycle steal processing time for one channel is long, the processing of other channels is forced to wait.

(b)10命令発行時にチャネルが都合の良い時に割込
んで(るまで待つこと及び次の10命令発行を待つこと
はサイクル・スチール処理に入り難くする要因である。
(b) Interrupting the channel at a convenient time when issuing 10 instructions and waiting until the next 10 instructions are issued are factors that make it difficult to enter cycle steal processing.

本発明は、上記の欠点を除去するものであうで、IO命
令処理と■0命令以外の処理を平等に行い得ると共に、
1チヤネルの処理時間を短縮できるようになったチャネ
ル制御方式を提供することを目的としている。
The present invention is intended to eliminate the above-mentioned drawbacks, and is capable of equally processing IO commands and (1) processing other than 0 commands, and
The purpose of this invention is to provide a channel control method that can shorten the processing time for one channel.

(問題を解決するための手段〕 本発明の基本的な考え方は、下記に示すように■ 1チ
ヤネルのマイクロプログラム処理単位を細分化する。
(Means for Solving the Problems) The basic idea of the present invention is as follows: (1) Subdividing the microprogram processing unit of one channel.

■ 10命令発行待ち及び■0命令実行待ちのマイクロ
プログラムのループを解消する。
■ Eliminate the microprogram loop of waiting for 10 instructions to be issued and ■ waiting for 0 instructions to be executed.

ように、マイクロプロセッサの制御を行おうと言うもの
である。そのために本発明は、 チャネル処理装置内に、チャネル個別の制御情報を記憶
しておく記憶手段と、該制御情報をチャネル番号順に循
環的に且つ個別に制御する個別制御部と、個別制御部に
よって記憶手段から取り出された各種処理要求をチャネ
ル番号順に要求の内容毎に実行の優先順位を決定する優
先順位決定回路と、優先順位決定後にマイクロプログラ
ム実行のために上記記憶手段から該制御B情報を読出す
手段と、マイクロプログラム実行終了に時処理要求を上
記記憶手段に書込む手段とを用意し、(alto命令発
行時には、中央処理装置からマイクロプロセッサを経由
することなく、直接個別制御部に通知し、個別制御部は
、10命令以外の処理と同様にマイクロプログラム実行
要求を発行する。
The idea is to control the microprocessor. To this end, the present invention includes a storage means for storing control information for each channel in a channel processing device, an individual control unit that cyclically and individually controls the control information in the order of channel numbers, and an individual control unit. a priority determination circuit that determines the priority of execution of various processing requests retrieved from the storage means for each request content in order of channel number; and after determining the priority, the control B information is received from the storage means for microprogram execution. A readout means and a means for writing a time processing request into the storage means upon completion of microprogram execution are provided. However, the individual control unit issues a microprogram execution request in the same way as processing other than 10 instructions.

(b)  従来なら連続して処理したような一連のマイ
クロプログラムを細分化し、他チャネルの処理のために
一旦終了する。且つ終了時に、続いて行うべきマイクロ
プログラムの処理要求を個別制御部に通知し、個別制御
部は、他の処理と同様にマイクロプログラム実行要求を
発行する。
(b) A series of microprograms that would conventionally be processed continuously is divided into parts and temporarily terminated for processing on other channels. At the end of the process, the individual control unit is notified of a microprogram processing request to be performed subsequently, and the individual control unit issues a microprogram execution request in the same way as other processes.

と言うものである。That is what it says.

第1図は本発明が適用されるチャネル処理装置の概要を
示す図である。第1図において、4′はMCUインタフ
ェース制御部、5は総括プロセッサ、6はチャネル共通
制御部、7は個別制御部、8は第1のマイクロプロセッ
サ、9は第2のマイクロプロセッサ、10はチャ、ネル
をそれぞれ示している。図示の例では、チャネル処理装
置2は16台のチャネル10を持っているが、共通制御
部6と個別制御部7の組の4個を総括プロセッサ5に接
続することにより最大64個のチャネル10を制御する
ことが出来る。チャネル処理装置2は、総括プロセッサ
5、チャネル共通制御部6、個別制御部7を有している
。共通制御部6には第1のマイクロプロセッサ8が設け
られ、個別制御部7には第2のマイクロプロセッサ9が
設けられている。総括プロセッサ5は、命令の実行と解
読(対CPU)、サブチャネルのロード/ストア(対M
CU)、10割込み(対CPU)などを行うものである
。共通制御n部6の第1のマイクロプロセッサ8は、1
0命令の解析と実行、サブチャネルのロード/ストア、
主記憶装置3との間のデータ転送、CCW(チャネル指
令語)の続出し、10割込み等の機能を有している。個
別制御部7の第2のマイクロプロセッサ9は、主にIO
ゼインフェースのシーケンス制御を行う機能、IOゼイ
ンフェースのタグ・イン信号のオン/オフを見てタグ・
アウト信号のオン/オフを行う機能、更にはIOゼイン
フェースのステータス解析を行う機能等を有している。
FIG. 1 is a diagram showing an outline of a channel processing device to which the present invention is applied. In FIG. 1, 4' is an MCU interface control section, 5 is a general processor, 6 is a channel common control section, 7 is an individual control section, 8 is a first microprocessor, 9 is a second microprocessor, and 10 is a channel control section. , respectively. In the illustrated example, the channel processing device 2 has 16 channels 10, but by connecting four sets of the common control unit 6 and the individual control units 7 to the general processor 5, the number of channels 10 can be increased to a maximum of 64. can be controlled. The channel processing device 2 includes a general processor 5, a channel common control section 6, and an individual control section 7. The common control section 6 is provided with a first microprocessor 8, and the individual control section 7 is provided with a second microprocessor 9. The general processor 5 executes and decodes instructions (for the CPU), loads/stores subchannels (for the M
CU), 10 interrupts (to the CPU), etc. The first microprocessor 8 of the common control unit 6 is
0 instruction analysis and execution, subchannel load/store,
It has functions such as data transfer with the main storage device 3, successive output of CCW (channel command word), and 10 interrupts. The second microprocessor 9 of the individual control unit 7 mainly handles IO
A function to perform sequence control of the zein interface, and check the on/off of the tag in signal of the IO zein interface.
It has a function to turn on/off the out signal, and further a function to analyze the status of the IO interface.

第2図はチャネル個別の制御情報を格納しておく記憶手
段の構成を示す図である。第2図において、11は記憶
手段を示している。記憶手段11には、機番Oのチャネ
ルの制御情報1機番lのチャネルの制御情報、・・・2
機番Fのチャネルの制御情報が格納される。個別制御部
7では、各チャネルの制御情報を循環的に記憶手段11
から読出して更新している。即ち、個別制御部7は、例
えば#0サイクルで記憶手段11内の機番Oのチャネル
制′4n情報を読出し、次のサイクルで判定処理を行い
、次のサイクルで古き込みを行い、#1サイクルで記憶
手段ll内の機番lのチャネル制御情報を読出し、次の
サイクルで判定処理を行い、次のサイクルで書き込みを
行い、#Fサイクルで記憶手段ll内の機番Fのチャネ
ル制御情報を読出し、次のサイクルで判定処理を行い、
次のサイクルで書き込みを行い、#0サイクルで再び記
憶手段11内の機番Oのチャネル制御情報を読出し、次
のサイクルで判定処理を行い、次のサイクルで書き込み
を行う。共通制御部6は、必要な時に記憶手段11の制
御情報を読み出し、処理終了時に結果を記憶手段11に
書き込む。
FIG. 2 is a diagram showing the configuration of a storage means for storing control information for each channel. In FIG. 2, 11 indicates a storage means. The storage means 11 stores control information for the channel of machine number O, control information for the channel of machine number l, . . . 2
Control information for the channel of machine number F is stored. In the individual control unit 7, the control information of each channel is stored in the storage means 11 cyclically.
It is read from and updated. That is, the individual control unit 7 reads the channel control '4n information of the machine number O in the storage means 11 in the #0 cycle, performs the determination process in the next cycle, performs the old input in the next cycle, and The channel control information of the machine number I in the storage means 11 is read out in a cycle, the determination process is performed in the next cycle, the channel control information of the machine number F in the storage means 11 is read out in the #F cycle, and the channel control information of the machine number F in the storage means 11 is read out in the #F cycle. is read out, judgment processing is performed in the next cycle,
Writing is performed in the next cycle, channel control information of machine number O in the storage means 11 is read out again in cycle #0, determination processing is performed in the next cycle, and writing is performed in the next cycle. The common control unit 6 reads the control information from the storage means 11 when necessary, and writes the result to the storage means 11 when processing is completed.

記憶手段11の中にはマイクロプログラム実行要求(第
1のマイクロプロセッサ8の)が含まれる。以下、マイ
クロプログラムと言った場合には、第1のマイクロプロ
セッサ8のマイクロプログラムを指す。このマイクロプ
ログラム実行要求には、以下に示すものがある。
The storage means 11 contains microprogram execution requests (of the first microprocessor 8). Hereinafter, the term microprogram refers to the microprogram of the first microprocessor 8. These microprogram execution requests include the following.

i、ro命令の実行と解読 2、 サブチャネルのロード/ストア 3、主記憶装置との間のデータ転送 4、 チャネル指令語の読出し 5.10割込み チャネル個別の制御情報を格納しておく記憶手段11の
内には、チャネル番号に同期して循環的に制御する個別
制御部7のみが続出し/書込みが出来る制御レジスタと
、共通制御部6及び個別制御部7の両方から読出し/書
込みが出来る制御レジスタとがある。便宜上、前者を制
御レジスタと呼び、後者をスタック・レジスタと呼ぶ。
Execution and decoding of i and ro instructions 2 Load/store subchannels 3 Transfer data to and from main memory 4 Read channel command words 5.10 Storage means for storing control information for each interrupt channel 11 includes a control register that can be read/written only by the individual control unit 7 that performs cyclic control in synchronization with the channel number, and a control register that can be read/written by both the common control unit 6 and the individual control unit 7. There is a control register. For convenience, the former will be referred to as control registers and the latter as stack registers.

第3図はスタック・レジスタに格納されているチャネル
個別の制御情報の一部のフォーマットを示す図である。
FIG. 3 is a diagram showing the format of part of the channel-specific control information stored in the stack register.

第3図において、MM RE(IUEST C0DEは
マイクロプログラムからマイクロプログラム自身への処
理実行要求の内容を示すコードであり、MMRQはMI
CROTO旧CROl18QUESTの略であってマイ
クロブログラム力)らマイクロプログラム自身への処理
実行要求があることを示すものであり、MOPはMIC
RO0PERATIONの略であってMMRQに関する
処理実行中であることを示す。MOPをオンにセントす
るのは個別制御部7である。このときMMRQをオフに
セットする。IOPは100PRATIONの略であっ
て■0命令に関する処理実行中であることを示す。
In FIG. 3, MM RE (IUEST C0DE is a code indicating the content of a process execution request from a microprogram to the micro program itself, and MMRQ is an MI
CROTO (formerly CROl18QUEST) indicates that there is a request for processing from the microprogram itself to the microprogram itself, and MOP is an abbreviation for MIC.
It is an abbreviation for RO0PERATION and indicates that processing related to MMRQ is being executed. It is the individual control unit 7 that turns on the MOP. At this time, MMRQ is set to off. IOP is an abbreviation for 100PRATION, and indicates that a process related to the 0 instruction is being executed.

10Pをオンにセットするのは個別制御部7である。It is the individual control unit 7 that sets 10P on.

マイクロプログラムの指示により、IOPはオフにセッ
トされる。DOPはDATA 0PRATIONの略で
あってデータ転送に関する処理実行中であることを示す
。DOPをオンにセントするのは個別制御部7である。
The IOP is set off as directed by the microprogram. DOP is an abbreviation for DATA 0PRATION and indicates that processing related to data transfer is being executed. It is the individual control unit 7 that turns on the DOP.

マイクロプログラムの指示によりDOPはオフにセット
される。
The DOP is set off as directed by the microprogram.

第4図は制御レジスタに格納されているチャネル個別の
制御情報の一部のフォーマットを示す図である。第4図
において、10 REQUEST C0DEはIO命令
コードであり、IOR口は10 RBQUESTの略で
あってIO命令処理実行要求があることを示す。DAT
A REQUST C0DEはデータ転送に関する処理
実行要求の内容(例えば、16バイト・ストアであるこ
と等)を示す。DRQはデータ転送に関する処理要求が
発生したことを示す。DRQをオンにセットするのは個
別制御部7である。 l0R(1は優先順位決定時にオ
フにセットされ、同時にIOPがオンにセントされる。
FIG. 4 is a diagram showing the format of part of the channel-specific control information stored in the control register. In FIG. 4, 10 REQUEST C0DE is an IO instruction code, and IOR port stands for 10 RBQUEST, indicating that there is an IO instruction processing execution request. DAT
A REQUST C0DE indicates the content of the processing execution request regarding data transfer (for example, 16-byte store, etc.). DRQ indicates that a processing request regarding data transfer has occurred. It is the individual control unit 7 that sets DRQ on. l0R(1 is set off during priority determination and at the same time IOP is sent on.

同様に、DRQは優先順位決定時にオフにセットされ、
同時にDOPがオンにセットされる。
Similarly, DRQ is set off during prioritization;
At the same time, DOP is set on.

第5図は個別制御部よって取り出された各種処理要求が
優先順位決定回路を経由してマイクロプロセッサ制御回
路にチャネル番号と共に処理要求コードが伝達されるま
でを示す図である。第5図において、12−1 (i=
0.1.2・・・)は要求レジスタ、13は優先順位決
定回路、14は第1のマイクロプロセッサ制御回路をそ
れぞれ示している。要求レジスタ12−0はMMRQに
割当てられ、要求レジスタ12−1はl0RQに割当て
られ、要求レジスタ12−2はDRQに割当てられる。
FIG. 5 is a diagram illustrating how various processing requests taken out by the individual control unit are transmitted to the microprocessor control circuit through the priority order determining circuit, until the channel number and processing request code are transmitted. In Figure 5, 12-1 (i=
0.1.2...) are request registers, 13 is a priority determination circuit, and 14 is a first microprocessor control circuit. Request register 12-0 is assigned to MMRQ, request register 12-1 is assigned to 10RQ, and request register 12-2 is assigned to DRQ.

■は要求レジスタに格納されている処理要求が有効なこ
とを表している。各要求レジスタ12−0.12−1.
12−2.・・・には、チャネル番号と処理要求コード
REQ C0DEが格納される。要求レジスタ内のチャ
ネル機番はその要求が何れのチャネルに関するものであ
るかを示している。優先順位決定回路13は、第1のマ
イクロプロセッサ8によって選択許可が指定されると、
要求レジスタ12−0゜12−1.12−2.・・・に
格納されている処理要求の中から優先順位に従って1個
を選択し、選択された要求を出力する。優先順位決定回
路13からの出力は、チャネル機番とRBQ C0DE
 MODIFIERから構成されている。REQ C0
DE MODIFIERは、要求種別の大分類(MMR
Qやl0RQ、口RQ等)とRHQ C0DEよりなる
ものと考えてよい。優先順位決定回路13の出力は、第
1のマイクロプロセッサ制御回路14に入力される。第
1のマイクロプロセッサ制御回路14は、第1のマイク
ロプロセッサ8の制御記憶に対するアドレス等を生成す
るものと考えてよい。第1のマイクロプロセッサ8は処
理要求を処理すると、選択許可を優先順位決定回路13
に与える。
■ indicates that the processing request stored in the request register is valid. Each request register 12-0.12-1.
12-2. ... stores the channel number and processing request code REQ C0DE. The channel number in the request register indicates which channel the request relates to. When selection permission is specified by the first microprocessor 8, the priority determination circuit 13
Request register 12-0°12-1.12-2. . . . selects one request from among the processing requests stored in . . . according to the priority order, and outputs the selected request. The output from the priority determination circuit 13 is the channel number and RBQ C0DE.
It is composed of MODIFIER. REQ C0
DE MODIFIER is a major classification of request types (MMR
Q, l0RQ, mouth RQ, etc.) and RHQ C0DE. The output of the priority determination circuit 13 is input to the first microprocessor control circuit 14. The first microprocessor control circuit 14 may be considered to generate an address and the like for the control memory of the first microprocessor 8. When the first microprocessor 8 processes the processing request, the first microprocessor 8 issues selection permission to the priority determining circuit 13.
give to

上述のように個別制御部7は、機番Nで定まるタイミン
グで機番Nのスタック・レジスタ及び制御レジスタを読
み出すが、処理要求がある場合には該当する要求レジス
タが空であることを条件にして、当該処理要求を該当す
る要求レジスタに書き込む。もし空でなければ、機番N
のチャネルに割当てられている次のタイミングまで待た
される。
As mentioned above, the individual control unit 7 reads the stack register and control register of the machine number N at the timing determined by the machine number N, but when there is a processing request, it reads out the stack register and control register of the machine number N, provided that the corresponding request register is empty. and writes the processing request to the corresponding request register. If not empty, aircraft number N
Waits until the next timing assigned to the channel.

第6図は第2のマイクロプロセッサ9の1実施例構成を
示す図である。第6図において、15は第2のマイクロ
プロセッサ制御記憶、16は制御記憶アドレス・レジス
タ、17はセレクタ、18はアドレス保持用のシフトレ
ジスタ、19は制御記憶データ・レジスタ、20はタグ
アウト・レジスタ、21はタグイン・レジスタ、22は
第2のマイクロプロセッサ制御回路、23、は書込レジ
スタをそれぞれ示している。アドレス・レジスタ16は
制御記憶15のアドレスを指定するものである。制御記
憶15からの読出しが行われた後、アドレス・レジスタ
16の内容は更新され、シフトレジスタ18の右端に入
力される。シフトレジスタ18は15個のレジスタ要素
を有している。アドレス・レジスタ16に格納されてい
るアドレスが機番Nのチャネルを制御するためのマイク
ロ・オーダの記憶場所を指定しているとすると、シフト
レジスタ18の左端のレジスタ要素に格納されているア
ドレスは機番N+1のチャネルを制御するためのマイク
ロ・オーダの記憶場所を指定しており、その次のレジス
タ要素に格納されているアドレスは機番N+2のチャネ
ルを制御するためのマイクロ・オーダの記jlJ場所を
指定している。以下、同様である。シフトレジスタ18
の内容はlサイクル毎に左方向にシフトされることは言
うまでもない。セレクタ17は、選択指示18号の値に
従って上側入力又は下側入力の何れか一方を選択し、選
択したアドレスをアドレス・レジスタ16に入力する。
FIG. 6 is a diagram showing the configuration of one embodiment of the second microprocessor 9. In FIG. 6, 15 is a second microprocessor control memory, 16 is a control memory address register, 17 is a selector, 18 is a shift register for holding addresses, 19 is a control memory data register, and 20 is a tagout register. , 21 is a tag-in register, 22 is a second microprocessor control circuit, and 23 is a write register. Address register 16 specifies the address of control memory 15. After reading from control store 15, the contents of address register 16 are updated and input to the right end of shift register 18. Shift register 18 has 15 register elements. Assuming that the address stored in the address register 16 specifies the storage location of the micro-order for controlling the channel of machine number N, the address stored in the leftmost register element of the shift register 18 is It specifies the storage location of the micro order for controlling the channel of machine number N+1, and the address stored in the next register element is the memory location of the micro order for controlling the channel of machine number N+2. Specifies the location. The same applies hereafter. shift register 18
It goes without saying that the contents of are shifted to the left every l cycles. The selector 17 selects either the upper input or the lower input according to the value of selection instruction No. 18, and inputs the selected address to the address register 16.

上側入力にはシフトレジスタ18の左端のレジスタ要素
が接続されており、下側入力には第2のマイクロプロセ
ッサ制御1回路22によって生成されたアドレスが供給
される。制御記憶15から読出されたマイクロ・オーダ
は制御記憶データ・レジスタ19に格納される。制御記
憶データ・レジスタ19の内容によって、個別制御部7
の各部の制御や記憶手段11に対するデータ書込み等が
行われる。第2のマイクロプロセッサ制御回路22は、
マイクロプロセッサ8からの処理要求を処理するための
マイクロプログラムの先頭アドレスを生成したり、タグ
イン・レジスタ21の内容に従って制御記憶アドレスを
更新する等の制御を行うものである。書込レジスタ23
には、記tα手段11に書込まれるデータがセットされ
る。
The leftmost register element of the shift register 18 is connected to the upper input, and the address generated by the second microprocessor control 1 circuit 22 is supplied to the lower input. Micro orders read from control store 15 are stored in control store data register 19. Depending on the contents of the control storage data register 19, the individual control unit 7
Control of each part of the controller, data writing to the storage means 11, etc. are performed. The second microprocessor control circuit 22
It performs controls such as generating the start address of a microprogram for processing processing requests from the microprocessor 8 and updating control storage addresses according to the contents of the tag-in register 21. Write register 23
The data to be written in the writing tα means 11 is set in .

中央処理装置1が入出力命令を送る場合には、以下のよ
うな動作をする。
When the central processing unit 1 sends an input/output command, it operates as follows.

(a)  先ず中央処理装置1が総括プロセッサ5及び
信号線lを介して個別制御部7に、入出力命令を実行出
来るか否かを問い合わせる。
(a) First, the central processing unit 1 inquires of the individual control unit 7 via the general processor 5 and the signal line 1 whether or not the input/output command can be executed.

fb)  個別制御部7は例えば記憶手段11における
機番Oの制御情報域を、#Oサイクルで読み出し、次の
サイクルで判定処理を行い、次のサイルで書き込みを行
っているが、この判定処理サイクル中に上記の問い合わ
せが来ていると、OKか否かを判定し、OKならばチャ
ネル共通制御部6に[IO命令コード、10アドレス、
CCWの先頭アドレス」を読み出すように指示する。こ
の指示は、所定の10 RHQUEST C0DIE及
びl0REQを記憶手段11における機番Oの制御レジ
スタに書き込むことによって行われる。この際、要求レ
ジスタ12−1が空きであれば、直ちにこの処理要求は
要求レジスタ12−1にセットされる。
fb) The individual control unit 7 reads, for example, the control information area of the machine number O in the storage means 11 in the #O cycle, performs determination processing in the next cycle, and writes in the next cycle. If the above inquiry is received during the cycle, it is determined whether or not it is OK, and if it is OK, it is sent to the channel common control unit 6 with [IO instruction code, 10 address,
Instructs to read the "start address of CCW". This instruction is performed by writing predetermined 10 RHQUEST CODIE and l0REQ into the control register of machine number O in the storage means 11. At this time, if the request register 12-1 is empty, this processing request is immediately set in the request register 12-1.

(C1チャネル共通制御部6は、上記処理要求に従って
To命令を読み出して来る。
(The C1 channel common control unit 6 reads the To command in accordance with the above processing request.

(d)  チャネル共通制御部6は命令の種類の解析及
びCCWの読み出し後、個別制御部7にコマンドを伝え
る。
(d) After analyzing the type of command and reading the CCW, the channel common control unit 6 transmits the command to the individual control unit 7.

MM REQUEST COD[!及びMMRQは例え
ば次のような場合に、スタック・レジスタに格納される
。第1のマイクロプロセッサ8がエラー処理に長時間か
かるような場合に、例えば全体のエラー処理をA。
MM REQUEST COD[! and MMRQ are stored in the stack register in the following cases, for example. For example, when the first microprocessor 8 takes a long time to process an error, the entire error process is performed by A.

B、C,Dの部分に分割し、部分エラー処理Aが終了し
た時に部分エラー処理Bを要求するMM REQUES
T C0DE及びMMRQをスタック・レジスタに書き
込み、部分エラー処理Bが終了した時に部分エラー処理
Cを要求すルMM REQUEST C0DE及びMM
RQをスタック・レジスタに書き込み、部分エラー処理
Cが終了した時に部分エラー処理りを要求する聞REQ
LIEST C0DE及びMMRQを該当するチャネル
機番のスタック・レジスタに書き込む。
MM REQUES which divides into parts B, C, and D and requests partial error processing B when partial error processing A is completed.
T Write C0DE and MMRQ to the stack register and request partial error handling C when partial error handling B is completed MM REQUEST C0DE and MM
REQ to write RQ to the stack register and request partial error handling when partial error handling C is completed.
Write LIEST C0DE and MMRQ to the stack register of the corresponding channel machine number.

また1、第1のマイクロプロセッサ8がCCWフエフチ
処理を行っていると想定する。CCWは、指令コード、
Pctフラグを含むフラグ類、データ長及びデータ・ア
ドレス等から構成されているが、個別制御部7に直接必
要な部分は指令コード、データ長及びデータ・アドレス
であるから、CCWフェッチ処理を、CCWを主記憶か
らフェッチして指令コード、データ長及びデータ・アド
レスを個別制御部7に送る処理と、Pct処理とに分割
する。第1のマイクロプロセッサ8は、ccwを主記憶
からフェッチして指令コード1、データ長及びデータ・
アドレスを個別制御部7に送る処理を行った後、Pct
フラグがオンであれば、PCI処理を要求するMM R
EQUEST C0DB及びMMRQを該当するチャネ
ル機番のスタック・レジスタに書き込む。
Further, 1. It is assumed that the first microprocessor 8 is performing CCW feed processing. CCW is the command code,
It consists of flags including the Pct flag, data length, data address, etc., but the parts directly required by the individual control unit 7 are the command code, data length, and data address. The process is divided into a process of fetching the command code, data length, and data address from the main memory and sending the command code, data length, and data address to the individual control unit 7, and a Pct process. The first microprocessor 8 fetches the ccw from the main memory and includes the command code 1, the data length, and the data.
After performing the process of sending the address to the individual control unit 7, Pct
If the flag is on, MMR requests PCI processing.
Write EQUEST C0DB and MMRQ to the stack register of the corresponding channel machine number.

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

以上の説明から明らかなように、本発明によれば、チャ
ネル共通制御部のマイクロプログラムの走行モードは、
CPUモードとチャネル・モードとに分かれるのではな
く、IO命令処理とIO命令以外の処理について平等に
なり、且つ1チヤネルの処理時間を短縮できる。
As is clear from the above description, according to the present invention, the running mode of the microprogram of the channel common control section is
Instead of being divided into CPU mode and channel mode, IO command processing and processing other than IO commands are made equal, and the processing time for one channel can be shortened.

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

第1図は本発明が適用されるチャネル処理装置の概要を
示す図、第2図はチャネル個別の制御情報を格納してお
く記憶手段の構成を示す図、第3図はスタック・レジス
タに格納されるチャネル個別の制御情報の一部のフォー
マットを示す図、第4図は制御レジスタに格納されるチ
ャネル個別の制御情報の一部のフォーマットを示す図、
第5図は個別制御部によって取り出された各種処理要求
が優先順位決定回路を経由して第1のマイクロプロセッ
サ制御回路にチャネル番号と共に処理コードが伝達する
までを示した図、第6図は第2のマイクロプロセッサの
1実施例構成を示す図、第7図はチャネル処理装置を有
する一般的な計算機システムの構成を示す図である。 1・・・中央処理装置、2・・・チャネル処理装置、3
・・・主記憶装置、4・・・記憶制御装置、5・・・総
括プロセッサ、6・・・チャネル共通制御部、7・・・
個別制御部、8・・・第1のマイクロプロセッサ、9・
・・第2のマイクロプロセッサ、10・・・チャネル、
11・・・記憶手段、12・・・要求レジスタ、13・
・・優先順位決定回路、14・・・第1のマイクロプロ
セッサ制御回路、15・・・第2のマイクロプロセッサ
の制御記憶、16・・・制御記憶アドレス・レジスタ、
17・・・セレクタ、18・・・アドレス保持用のシフ
トレジスタ、19・・・制御記憶データ・レジスタ、2
0・・・タグアウト・レジスタ、21・・・タグイン・
レジスタ、22・・・第2のマイクロプロセッサ制御回
路。
Fig. 1 is a diagram showing an overview of a channel processing device to which the present invention is applied, Fig. 2 is a diagram showing the configuration of a storage means for storing control information for each channel, and Fig. 3 is a diagram showing the structure of a storage means for storing control information for each channel. FIG. 4 is a diagram showing the format of part of the channel-specific control information stored in the control register;
FIG. 5 is a diagram showing how various processing requests taken out by the individual control unit are transmitted to the first microprocessor control circuit along with the channel number through the priority determining circuit, and FIG. FIG. 7 is a diagram showing the configuration of an embodiment of the microprocessor No. 2, and FIG. 7 is a diagram showing the configuration of a general computer system having a channel processing device. 1... Central processing unit, 2... Channel processing unit, 3
...Main storage device, 4.Storage control device, 5.General processor, 6.Channel common control unit, 7..
Individual control unit, 8... first microprocessor, 9.
... second microprocessor, 10... channels,
11... Storage means, 12... Request register, 13.
... Priority determination circuit, 14... First microprocessor control circuit, 15... Control memory of second microprocessor, 16... Control memory address register,
17... Selector, 18... Shift register for holding address, 19... Control storage data register, 2
0...Tag-out register, 21...Tag-in register
Register, 22... second microprocessor control circuit.

Claims (1)

【特許請求の範囲】 一般の計算機システムにおけるチャネル処理装置におい
て、 複数のチャネルを共通に制御するマイクロプロセッサ(
8)を含むチャネル共通制御部(6)と、各チャネルの
処理をチャネル番号順に循環的に且つ個別に制御する個
別制御部(7)と、 チャネル共通制御部(6)から個別制御部(7)へ制御
情報を伝達すると共に個別制御部(7)からチャネル共
通制御部(6)へ制御情報を伝達するための制御情報伝
達手段(11)と、 個別制御部(7)によって制御情報伝達手段(11)か
ら取り出された各種処理要求をチャネル番号順に且つ要
求の内容毎に実行の優先順位を決定する優先順位決定回
路(13)とを具備し、 一連のチャネル処理のためのチャネル共通制御部(6)
のマイクロプグラムの処理単位を細分化し、細分化され
たマイクロプログラムの一つの処理終了時に、続いて行
うべき処理要求を制御情報伝達手段(11)に書き込み
、個別制御部から発生する各種処理要求とのマイクロプ
ロセッサ使用権に関する優先順位を取り直すことを特徴
とするチャネル制御方式。
[Claims] In a channel processing device in a general computer system, a microprocessor (
a channel common control unit (6) including a channel common control unit (6), an individual control unit (7) that controls processing of each channel cyclically and individually in order of channel number, and a channel common control unit (6) to an individual control unit (7); ), and a control information transmitting means (11) for transmitting control information from the individual control section (7) to the channel common control section (6); A channel common control unit for a series of channel processing, comprising a priority determination circuit (13) that determines the priority of execution of various processing requests taken out from (11) in order of channel number and for each request content. (6)
The processing unit of the microprogram is subdivided, and when the processing of one of the subdivided microprograms is completed, a processing request to be performed next is written to the control information transmission means (11), and various processing requests generated from the individual control unit and A channel control method characterized by re-prioritizing microprocessor usage rights.
JP6366386A 1986-03-20 1986-03-20 Channel control system Granted JPS62247443A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6366386A JPS62247443A (en) 1986-03-20 1986-03-20 Channel control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6366386A JPS62247443A (en) 1986-03-20 1986-03-20 Channel control system

Publications (2)

Publication Number Publication Date
JPS62247443A true JPS62247443A (en) 1987-10-28
JPH054703B2 JPH054703B2 (en) 1993-01-20

Family

ID=13235807

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6366386A Granted JPS62247443A (en) 1986-03-20 1986-03-20 Channel control system

Country Status (1)

Country Link
JP (1) JPS62247443A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5920031A (en) * 1982-07-23 1984-02-01 Nec Corp Data transfer device
JPS59172030A (en) * 1983-03-22 1984-09-28 Fujitsu Ltd Data channel control system
JPS59189430A (en) * 1983-04-13 1984-10-27 Nec Corp Interruption controlling system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5920031A (en) * 1982-07-23 1984-02-01 Nec Corp Data transfer device
JPS59172030A (en) * 1983-03-22 1984-09-28 Fujitsu Ltd Data channel control system
JPS59189430A (en) * 1983-04-13 1984-10-27 Nec Corp Interruption controlling system

Also Published As

Publication number Publication date
JPH054703B2 (en) 1993-01-20

Similar Documents

Publication Publication Date Title
KR960006503B1 (en) Method and apparatus for interleaving multiple-channel dma operation
US6820187B2 (en) Multiprocessor system and control method thereof
US7716391B2 (en) Data transfer apparatus, data transfer method, and program
JPH06266649A (en) Transfer method of data through plurality of data channel and circuit architecture thereof
JPH02227763A (en) Data transfer control system
JP2504512B2 (en) DMA controller
JPH02230455A (en) Interruption control system for external memory device
JPS62247443A (en) Channel control system
JP4451010B2 (en) Programmable controller
EP1193607B1 (en) Apparatus and method for the exchange of signal groups between a plurality of components in a digital signal processor having a direct memory access controller
JPH02252044A (en) Coprocessor and data transfer control system
EP1193606B1 (en) Apparatus and method for a host port interface unit in a digital signal processing unit
JPH0425581B2 (en)
JPH06301632A (en) Dma control device and its control method
JPH0944463A (en) Data transfer controller and data transfer method using this
JPH05334233A (en) Data transferring device
JPS622349B2 (en)
JPS6148747B2 (en)
JPS6375954A (en) Channel control system
JPH0424733B2 (en)
JPS6143369A (en) Multi-processor system
JPS63216136A (en) Multi-language processing system
JPH0431419B2 (en)
JPH0492936A (en) Memory access controller
JPH0236454A (en) Control system for bus between main storage controllers