JPH04105156A - Common bus register controller - Google Patents

Common bus register controller

Info

Publication number
JPH04105156A
JPH04105156A JP22327590A JP22327590A JPH04105156A JP H04105156 A JPH04105156 A JP H04105156A JP 22327590 A JP22327590 A JP 22327590A JP 22327590 A JP22327590 A JP 22327590A JP H04105156 A JPH04105156 A JP H04105156A
Authority
JP
Japan
Prior art keywords
input
control device
register
output
data
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
JP22327590A
Other languages
Japanese (ja)
Inventor
Atsushi Yoshioka
敦史 吉岡
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 JP22327590A priority Critical patent/JPH04105156A/en
Publication of JPH04105156A publication Critical patent/JPH04105156A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Bus Control (AREA)

Abstract

PURPOSE:To improve the processing efficiency of a common bus register controller by stopping the operation of a microprocessor contained in an input/output controller when a conflict occurs between a register write request received from a processor and that received from the input/output controller. CONSTITUTION:When a conflict occurs between the register write request received from a processor 10 and that received from an input/output controller 30, a halt signal HALT is given to a microprocessor 32 so that the microprocessor 32 stops its operation. Meanwhile the data are written into a control register 31 from the processor 10. When the HALT state is released after the write of data is through with the processor 10, the microprocessor 32 writes its own data into the register 31. As a result, the processing efficiency is improved even when a conflict occurs with the access given to the register 31.

Description

【発明の詳細な説明】 [概要] 共通バスを介してプロセッサと複数の入出力制御装置が
接続されたシステムにおける共通バスレジスタ制御装置
に関し、 チャネル制御装置と入出力制御装置からの制御レジスタ
へのアクセス要求が競合した時の処理を効率的に行うこ
とを目的とし、 共通バスを介してプロセッサと複数の入出力制御装置と
が接続されたシステムにおいて、前記入出力制御装置は
その内部に設けた制御レジスタにプロセッサ及び入出力
制御装置から書込まれる制御データに従ってプロセッサ
と入出力制御装置とのインタフェースをとると共に、入
出力制御装置内にプロセッサと入出力制御装置がらの制
御レジスタへのアクセス要求が競合したことを検出する
衝突検出回路を設け、プロセッサと入出力制御装置から
のアクセス要求が競合したことを検出したら、前記衝突
検出回路から入出力制御装置内のマイクロプロセッサの
動作を停止させる停止信号(HALT信号)を出力する
ように構成する。
[Detailed Description of the Invention] [Summary] Regarding a common bus register control device in a system in which a processor and a plurality of input/output control devices are connected via a common bus, the present invention relates to a common bus register control device in which a processor and a plurality of input/output control devices are connected to a control register from a channel control device and an input/output control device. In a system in which a processor and a plurality of input/output control devices are connected via a common bus, the input/output control device is installed inside the system for the purpose of efficiently processing when access requests conflict. The interface between the processor and the input/output control device is established according to the control data written from the processor and the input/output control device to the control register, and the access request to the control registers of the processor and the input/output control device is sent in the input/output control device. A collision detection circuit is provided to detect a conflict, and when a conflict between access requests from the processor and the input/output control device is detected, a stop signal is sent from the collision detection circuit to stop the operation of the microprocessor in the input/output control device. (HALT signal).

[産業上の利用分野] 本発明は共通バスを介してプロセッサと複数の入出力制
御装置か接続されたシステムにおける共通バスレジスタ
制御装置に関する。
[Field of Industrial Application] The present invention relates to a common bus register control device in a system in which a processor and a plurality of input/output control devices are connected via a common bus.

共通バスを介してプロセッサと複数の入出力制御装置が
接続されたシステムにおいては、両者間のインタフェー
スは入出力制御装置内に設けた制御レジスタによって行
う場合か多い。この種のシステムでは、制御レジスタへ
のアクセス要求が競合した時の処理をとのように行うか
が問題となる。
In a system in which a processor and a plurality of input/output control devices are connected via a common bus, the interface between the two is often performed by a control register provided in the input/output control device. In this type of system, the problem is how to handle conflicting access requests to the control register.

[従来の技術] 第5図は従来システムの構成例を示すブロック図である
。図において、10はプロセッサ(CP)で中央制御装
置(CC)1.チャネル制御装置(CHC)2及び主記
憶装置(MM)3より構成されている。20はプロセッ
サ10(実際にはプロセッサ10内のチャネル制御装置
12)と接続される共通バス(Cバス)である。30は
共通バス20と接続された複数の入出力制御装置(10
C)で、共通バス20にいもづる式に接続されている。
[Prior Art] FIG. 5 is a block diagram showing an example of the configuration of a conventional system. In the figure, 10 is a processor (CP) and a central controller (CC) 1. It is composed of a channel control device (CHC) 2 and a main memory device (MM) 3. 20 is a common bus (C bus) connected to the processor 10 (actually, the channel control device 12 within the processor 10). 30 is a plurality of input/output control devices (10
C) and is connected to the common bus 20 in a similar manner.

40は各入出力制御装置30と接続される入出力装置(
10)である。入出力装置40としては、例えばフロッ
ピーディスク装置(FD)や磁気テープ装置(MT)等
が用いられる。入出力制御装置30は入出力装置40と
共通バス20との間に介在してそのインタフェースをと
っている。具体的には、入出力制御装置30はその内部
に設けた制御レジスタ31にプロセッサ10及び入出力
制御装置30から書込まれる制御データに従ってプロセ
ッサ10と入出力制御装置30とのインタフェースをと
るようになっている。
40 is an input/output device (
10). As the input/output device 40, for example, a floppy disk device (FD) or a magnetic tape device (MT) is used. The input/output control device 30 is interposed between the input/output device 40 and the common bus 20 to provide an interface therebetween. Specifically, the input/output control device 30 interfaces the processor 10 and the input/output control device 30 according to control data written from the processor 10 and the input/output control device 30 to a control register 31 provided therein. It has become.

このように構成されたシステムにおいて、例えばCC1
1からある入出力装置40に対してデータ転送を行って
データの書込み(ライト)を行う場合について考える。
In a system configured in this way, for example, CC1
Consider a case where data is transferred from 1 to an input/output device 40 and data is written.

この場合には、CCIIがある入出力制御装置30の制
御レジスタ31に、データ長、転送すべきデータを格納
している主記憶装置13上のアドレス、データ転送の方
向(入出力装置40にデータを送るのか、入出力装置4
0からデータを受取るのか)等を書込む。
In this case, in the control register 31 of the input/output control device 30 where the CCII is located, the data length, the address on the main storage device 13 storing the data to be transferred, the direction of data transfer (the data in the input/output device 40 Is it sent to input/output device 4?
whether to receive data from 0), etc.

第6図は制御レジスタ31の構成例を示す図である。D
SR(データ・ステータス・レジスタ)には入出力制御
装置30に関する情報が格納され、MAR(メモリ◆ア
ドレス・レジスタ)にはブタ転送時の主記憶装置13上
の開始アドレスが格納され、BCR(バイト・カウント
・レジスタ)にはデータ転送量のバイト数が格納され、
CMR(コマンド・レジスタ)にはCC]]から入出力
制御装置30に対するリード/ライトの指示が格納され
る。CC11から制御レジスタ31に前記したような情
報か書込まれると、CC11は入出力制御装置30を起
動する。
FIG. 6 is a diagram showing an example of the configuration of the control register 31. D
The SR (data status register) stores information regarding the input/output control device 30, the MAR (memory address register) stores the start address on the main storage device 13 at the time of pig transfer, and the BCR (byte・Count register) stores the number of bytes of data transfer,
The CMR (command register) stores read/write instructions from the CC] to the input/output control device 30. When the above information is written from the CC 11 to the control register 31, the CC 11 starts the input/output control device 30.

入出力制御装置30は、CCIコからの動作要求を受け
ると、制御レジスタ31に書込まれている内容に従い、
MM13からのデータ転送を行う。
When the input/output control device 30 receives an operation request from the CCI, the input/output control device 30 performs the operation according to the contents written in the control register 31.
Transfers data from MM13.

つまり、MM13からのデータを読出して入出力装置4
0に送る。データ転送が終了したら、入出力制御装置3
0が制御レジスタ31に所定のブタを書込み、CCII
に対して処理の終了を通知する。このように、従来のシ
ステムでは、共通バス20における動作は制御レジスタ
31を介して行われる。
In other words, the data from the MM13 is read and the input/output device 4
Send to 0. Once the data transfer is complete, input/output control device 3
0 writes a predetermined pig to the control register 31, CCII
Notify the end of processing. Thus, in conventional systems, operations on common bus 20 are performed via control registers 31.

第7図は入出力制御装置30の従来構成例を示すブロッ
ク図である。第5図と同一のものは、同一の符号を付し
て示す。図において、32は入出力制御装置30の全体
の動作制御を行うマイクロプロセッサ、33はチャネル
制御装置(CHC)12からのレジスタ書込み要求と入
出力制御装置30からのレジスタ書込み要求か同時に発
生した時、チャネル制御装置12側を優先させるCHC
優先回路、34は共通バス20からのCHCデータと入
出力制御装置30からのデータを受けてセレクト信号に
よりいずれか一方をセレクトするセレクタである。該セ
レクタ34の出力が制御レジスタ31に入り、書込まれ
るようになっている。
FIG. 7 is a block diagram showing a conventional configuration example of the input/output control device 30. Components that are the same as those in FIG. 5 are designated by the same reference numerals. In the figure, 32 is a microprocessor that controls the overall operation of the input/output control device 30, and 33 is a register write request from the channel control device (CHC) 12 and a register write request from the input/output control device 30 that occur simultaneously. , CHC that gives priority to the channel control device 12 side
The priority circuit 34 is a selector that receives CHC data from the common bus 20 and data from the input/output control device 30 and selects either one using a select signal. The output of the selector 34 enters the control register 31 and is written therein.

セレクト信号としては、CHC優先回路33の出力が用
いられる。そして、制御レジスタ31の出力はマイクロ
プロセッサ32及び共通バス20の両方に接続されてい
る。このように構成された回路の動作を説明すれば、以
下のとおりである。
The output of the CHC priority circuit 33 is used as the select signal. The output of control register 31 is then connected to both microprocessor 32 and common bus 20. The operation of the circuit configured as described above will be explained as follows.

先ず、チャネル制御装置12と入出力制御装置30の制
御レジスタ30へのアクセス競合か起きない場合におい
て、チャネル制御装置12側からレジスタ書込み要求か
起きたものとする。この時、CHC優先回路33は、チ
ャネル制御装置12からのレジスタ書込み要求であるこ
とを認識すると、セレクタ34にセレクト信号を送り、
CHC側データをセレトクさせる。この結果、チャネル
制御装置12の出力データはセレクタ34を介して制御
レジスタ31に書込まれる。
First, it is assumed that a register write request is issued from the channel control device 12 side when there is no access conflict between the channel control device 12 and the input/output control device 30 to the control register 30 . At this time, when the CHC priority circuit 33 recognizes that it is a register write request from the channel control device 12, it sends a select signal to the selector 34,
Select CHC side data. As a result, the output data of the channel control device 12 is written to the control register 31 via the selector 34.

一方、入出力制御装置30側から(具体的にはマイクロ
プロセッサ32から)レジスタ書込み要求が起きたもの
とする。この時、CHC優先回路33は、入出力制御装
置30からのレジスタ書込み要求であることを認識する
と、セレクタ34にセレクト信号を送り、入出力制御装
置側30データをセレトクさせる。この結果、入出力制
御装置データはセレクタ34を介して制御レジスタ31
に書込まれる。
On the other hand, it is assumed that a register write request is issued from the input/output control device 30 side (specifically, from the microprocessor 32). At this time, when the CHC priority circuit 33 recognizes that it is a register write request from the input/output control device 30, it sends a select signal to the selector 34 to select data on the input/output control device side 30. As a result, the input/output control device data is passed through the selector 34 to the control register 31.
written to.

ここで、若しチャネル制御装置12及び入出力制御装置
30の両方から同時にレジスタ書込み要求が発生したも
のとすると、CHC優先回路33はチャネル制御装置1
2からのレジスタ書込み要求を優先させる。この結果、
セレクタ34はCHC優先回路33からのセレクト信号
によりチャネル制御装置12からのデータをセレクトし
、制御レジスタ31に書込む。この結果、入出力制御装
置30からのレジスタ書込み要求は無視される。
Here, if register write requests are generated from both the channel control device 12 and the input/output control device 30 at the same time, the CHC priority circuit 33
Give priority to register write requests from 2. As a result,
The selector 34 selects data from the channel control device 12 based on the select signal from the CHC priority circuit 33 and writes it into the control register 31. As a result, the register write request from the input/output control device 30 is ignored.

[発明が解決しようとする課題] 前述したように、制御レジスタ31には、チャネル制御
装置12及び入出力制御装置30の両方から書込み/読
出しが行われる。従って、この制御レジスタ31にチャ
ネル制御装置12及び入出力制御装置30の両方から書
込み(書込み衝突)が起こる場合がある。このような制
御レジスタ31へのアクセス要求が競合した場合、従来
はチャネル制御装置12からのアクセスを優先させてい
るため、入出力制御装置30からの書込みは無視される
[Problems to be Solved by the Invention] As described above, writing/reading is performed on the control register 31 from both the channel control device 12 and the input/output control device 30. Therefore, writing to this control register 31 may occur from both the channel control device 12 and the input/output control device 30 (write conflict). When such access requests to the control register 31 conflict, conventionally the access from the channel control device 12 is given priority, so the write from the input/output control device 30 is ignored.

一方、入出力制御装置30内のマイクロプロセッサ32
は、自己のレジスタ書込み要求とチャネル制御装置12
とのレジスタ書込み要求アクセスが競合しているかどう
か分からない。そこで、レジスタ書込み要求を出したら
、データが書込まれたかどうかその都度制御レジスタ3
1の内容を見にいかなければならなかった。そして、書
込まれていない場合、書込まれるまで書込み動作を行い
、チエツクを繰返す必要があった。マイクロプロセッサ
を用いた入出力制御装置の場合、これらの動作はファー
ムウェアで行われるが、制御レジスタ31への書込みを
行う度に書込みとチエツクという一連のルーチンが必要
となり、時間的な効率が悪かった。
On the other hand, the microprocessor 32 in the input/output control device 30
own register write request and channel control unit 12
I don't know if there is a conflict with the register write request access. Therefore, when a register write request is issued, the control register 3 is checked each time whether data has been written.
I had to go see the contents of 1. If the data has not been written, it is necessary to perform the write operation and repeat the check until the data is written. In the case of an input/output control device using a microprocessor, these operations are performed by firmware, but a series of write and check routines are required every time a write is made to the control register 31, which is inefficient in terms of time. .

本発明はこのような課題に鑑みてなされたものであって
、チャネル制御装置と入出力制御装置からの制御レジス
タへのアクセス要求か競合した時の処理を効率的に行う
ことができる共通バスレジスタ制御装置を提供すること
を目的としている。
The present invention has been made in view of the above-mentioned problems, and provides a common bus register that can efficiently process when there is conflict between access requests to a control register from a channel control device and an input/output control device. The purpose is to provide a control device.

[課題を解決するための手段] 第1図は本発明の原理ブロック図である。第5図、第7
図と同一のものは、同一の符号を付して示す。図におい
て、10は第5図と同じプロセッサてCCl1.、チャ
ネル制御装置12及び主記憶装置13を含んで構成され
ている。31は入出力制御装置30内に設けられた制御
レジスタ、32はマイクロプロセッサである。35は入
出力制御装置30内に設けられた衝突検出回路で、プロ
セッサ10と入出力制御装置30からの制御レノスタ3
1へのアクセス要求が競合したことを検出するものであ
る。この衝突検出回路35の出力でマイクロプロセッサ
32の動作を停止させるようになっている。つまり、衝
突検出回路35の出力は、マイクロプロセッサ32に対
してHALT信号として働くようになっている。40は
該入出力制御装置30と接続される入出力装置(10装
置)である。
[Means for Solving the Problems] FIG. 1 is a block diagram of the principle of the present invention. Figures 5 and 7
Components that are the same as those in the figures are designated by the same reference numerals. In the figure, 10 is the same processor as in FIG. 5, CCl1. , a channel control device 12 and a main storage device 13. 31 is a control register provided in the input/output control device 30, and 32 is a microprocessor. 35 is a collision detection circuit provided in the input/output control device 30, which connects the processor 10 and the control reno star 3 from the input/output control device 30.
This is to detect that there is a conflict of access requests to 1. The output of the collision detection circuit 35 is used to stop the operation of the microprocessor 32. In other words, the output of the collision detection circuit 35 serves as a HALT signal to the microprocessor 32. 40 is an input/output device (10 devices) connected to the input/output control device 30.

[作用] プロセッサ10側からのレジスタ書込み要求(実際には
チャネル制御装置]2からのレジスタ書込み要求)と入
出力制御装置30からのレジスタ書込み要求(実際には
マイクロプロセッサ32からのレジスタ書込み要求)が
競合したことを検出すると、マイクロプロセッサ32に
停止ト信号(HALT信号)を与えてその動作を停」I
さぜる。
[Operation] Register write request from the processor 10 side (actually a register write request from the channel control device] 2) and register write request from the input/output control device 30 (actually a register write request from the microprocessor 32) When it detects that there is a conflict, it gives a stop signal (HALT signal) to the microprocessor 32 to stop its operation.
Stir.

この間にプロセッサ10側からの制御レジスタ31への
データ書込みを行う。そして、ブロモ、す10側のデー
タ書込みか終了したら、衝突検出回路35はマイクロプ
ロセッサ32へ印加していたHALT信号を解除する。
During this time, data is written to the control register 31 from the processor 10 side. Then, when data writing on the side of the computer 10 is completed, the collision detection circuit 35 releases the HALT signal applied to the microprocessor 32.

マイクロプロセッサ32はHALT状態が解除されると
、自己のデータを制御レジスタ31に書込む。従って、
本発明によれば入出力制御装置30からの制御レジスタ
31へのデータ書込みか確実に保証されるので、書込み
動作の後のチエツク動作(データか書込まれたかどうか
のチエツク動作)は必要でなくなり、チャネル制御装置
(プロセッサ)と入出力制御装置からの制御レンスタへ
のアクセス要求か競合した時の処理を効率的に行うこと
かできる。
When the HALT state is released, the microprocessor 32 writes its own data into the control register 31. Therefore,
According to the present invention, writing of data to the control register 31 from the input/output control device 30 is reliably guaranteed, so a check operation after the write operation (checking whether data has been written) is no longer necessary. It is possible to efficiently process the conflicting requests for access to the control lane from the channel control device (processor) and the input/output control device.

[実施例] 以下、図面を参照して本発明の実施例を詳細に説明する
[Example] Hereinafter, an example of the present invention will be described in detail with reference to the drawings.

第2図は本発明で用いる入出力制御装置の構成例を示す
ブロック図である。第1図、第7図と同一のものは、同
一の符号を付して示す。図において、31は制御レジス
タで、プロセッサ10(第1図7第5図参照)及び入出
力制御装置30から書込まれる制御データに従ってプロ
セッサ10と入出力制御装置30とのインタフェースを
とるものである。
FIG. 2 is a block diagram showing a configuration example of an input/output control device used in the present invention. Components that are the same as those in FIGS. 1 and 7 are designated by the same reference numerals. In the figure, numeral 31 is a control register that interfaces between the processor 10 and the input/output control device 30 according to control data written from the processor 10 (see FIG. 1 and FIG. 5) and the input/output control device 30. .

32は入出力制御装置30の全体の制御動作を行うマイ
クロプロセッサ、33はチャネル制御装置12(第5図
参照)からのレジスタ書込み要求と、入出力制御装置3
0からのレジスタ書込み要求が競合した時、チャネル制
御装置12からのレジスタ書込み要求を優先させるCH
C優先回路、34はチャネル制御装置12からのデータ
とマイクロプロセッサ32(つまり、入出力制御装置3
0)からのデータを受けていずれか一方をセレクトする
セレクタである。該セレクタ34はCHC優先回路33
の出力をセレトク信号として受けている。
32 is a microprocessor that performs the overall control operation of the input/output control device 30; 33 is a microprocessor that handles register write requests from the channel control device 12 (see FIG. 5) and the input/output control device 3;
A CH that gives priority to a register write request from the channel control device 12 when register write requests from 0 conflict.
A C priority circuit, 34, transfers data from the channel controller 12 and the microprocessor 32 (i.e., input/output controller 3).
This is a selector that receives data from 0) and selects either one. The selector 34 is the CHC priority circuit 33
The output is received as a select signal.

35はチャネル制御装置12からのレジスタ書込み要求
とマイクロプロセッサ32からのレジスタ書込み要求が
発生した時入出力制御装置30内のマイクロプロセッサ
32の動作を停止させるHALT信号を出力する衝突検
出回路である。このように構成された回路の動作を説明
すれば、以下のとおりである。
A collision detection circuit 35 outputs a HALT signal to stop the operation of the microprocessor 32 in the input/output control device 30 when a register write request from the channel control device 12 and a register write request from the microprocessor 32 occur. The operation of the circuit configured as described above will be explained as follows.

先ず、チャネル制御装置12からのレジスタ書込み要求
とマイクロプロセッサ32からのレジスタ書込み要求か
競合しない場合の動、作について説明する。いま、CC
II(第5図参照)からある入出力装置40に対してデ
ータ転送を行ってデータの書込み(ライト)を行う場合
について考える。
First, a description will be given of the operation when there is no conflict between the register write request from the channel control device 12 and the register write request from the microprocessor 32. Now, CC
Let us consider a case where data is transferred from II (see FIG. 5) to a certain input/output device 40 and data is written.

この場合には、CCIIかある入出力制御装置30の制
御レジスタ31に、データ長、転送すべきデータを格納
している主記憶装置13上のアドレス、データ転送の方
向等を書込む。
In this case, the CCII writes the data length, the address on the main storage device 13 storing the data to be transferred, the direction of data transfer, etc. to the control register 31 of the input/output control device 30.

CC11から制御レジスタ3]に前記したような情報か
書込まれると、CCIIは入出力制御装置30を起動す
る。入出力制御装置30は、ccllからの動作要求を
受けると、制御レジスタ3]に書込まれている内容に従
い、MM13からのデータ転送を行う。つまり、MM1
3がらのデータを読出して入出力装置4oに送る。デー
タ転送か終了したら、入出力制御装置30が制御レジス
タ3]に所定のデータを書込み、ccllに対して処理
の終了を通知する。この処理の終了通知は、例えば割込
みにより行われる。つまり、マイクロプロセッサ32は
、制御レジスタ31の内容を更新する毎にプロセッサ1
0側に割込みでその旨を通知する。
When the above information is written from the CC 11 to the control register 3, the CCII starts the input/output control device 30. When the input/output control device 30 receives an operation request from the ccll, it transfers data from the MM 13 according to the contents written in the control register 3]. In other words, MM1
3 pieces of data are read out and sent to the input/output device 4o. When the data transfer is completed, the input/output control device 30 writes predetermined data into the control register 3 and notifies the ccll of the end of the process. The completion notification of this process is performed, for example, by an interrupt. In other words, the microprocessor 32 updates the processor 1 every time the contents of the control register 31 are updated.
The 0 side is notified of this by an interrupt.

これに対し、チャネル制御装置12がらのレジスタ書込
み要求とマイクロプロセッサ32がらのレジスタ書込み
要求が競合したものとする。この時には、CHC優先回
路33がチャネル制御装置]2側からのレジスタ書込み
要求をセレクトすべく、セレクタ34にセレクト信号を
与える。この結果、制御レジスタ31には共通バス2o
を介して送られてくるチャネル制御装置12側からのデ
ータか書込まれる。
On the other hand, assume that there is a conflict between a register write request from the channel control device 12 and a register write request from the microprocessor 32. At this time, the CHC priority circuit 33 provides a select signal to the selector 34 to select the register write request from the channel control device]2 side. As a result, the control register 31 has the common bus 2o.
Data sent from the channel control device 12 side via the channel control device 12 is also written.

一方、衝突検出回路35は、チャネル制御装置12から
のレジスタ書込み要求とマイクロプロセッサ32からの
レジスタ書込み要求が競合したことを検出すると、マイ
クプロセッサ32に対する動作停止信号HALTを出力
する。この結果、マイクロプロセッサ32の制御レジス
タ31へのデータ書込みは行われない。この間に、チャ
ネル制御装置12からの制御レジスタ31へのデータ書
込みが終了すると、競合は解除される。競合か解除され
たら、衝突検出回路35はマイクロプロセッサ32への
動作停止信号HALTを解除する。
On the other hand, when the collision detection circuit 35 detects a conflict between the register write request from the channel control device 12 and the register write request from the microprocessor 32, it outputs an operation stop signal HALT to the microprocessor 32. As a result, no data is written to the control register 31 of the microprocessor 32. During this time, when data writing from the channel control device 12 to the control register 31 is completed, the conflict is canceled. When the conflict is resolved, the collision detection circuit 35 releases the operation stop signal HALT to the microprocessor 32.

マイクロプロセッサ32はHALTが解除されると、自
己のデータの制御レジスタ31への書込みを行う。この
ように、本発明によれば、マイクロプロセッサ32から
の制御レジスタ31への書込みか確実に保証されるから
、制御レジスタ31への書込みが行われたかどうかをチ
エツクするチエツク動作は不要になる。従って、チャネ
ル制御装置と入出力制御装置からの制御レジスタへのア
クセス要求が競合した時の処理を効率的に行うことかで
きる。
When the microprocessor 32 is released from HALT, it writes its own data to the control register 31. As described above, according to the present invention, since it is reliably guaranteed that the microprocessor 32 is writing to the control register 31, there is no need for a check operation to check whether writing to the control register 31 has been performed. Therefore, processing when access requests to the control register from the channel control device and the input/output control device conflict can be efficiently performed.

第3図は衝突検出回路35の具体的な例を示す図である
。G1は入出力制御装置30からの(具体的にはマイク
ロプロセッサ32からの)レジスタ書込み要求■と、C
HC(チャネル制御装置)12からのレジスタ書込み要
求■を受けるナントゲート、G2と03は2人力ナンド
ゲートでそれぞれの出力が他方の一方の入力にたすきか
けて人力され、RSフリップフロップを構成している。
FIG. 3 is a diagram showing a specific example of the collision detection circuit 35. G1 receives a register write request from the input/output control device 30 (specifically, from the microprocessor 32), and C
The NAND gates that receive the register write request from the HC (channel control unit) 12, G2 and 03, are two-man powered NAND gates, each output of which crosses over the input of the other to form an RS flip-flop. .

G2の他方の入力にはG1の出力が入り、G3の他方の
入力にはチャネル制御装置12からのレジスタ書込み要
求■が入っている。そして、G2の出力がHALT信号
■となる。このように構成された回路の動作を第4図の
タイムチャートを参照しながら説明すれば、以下のとお
りである。
The output of G1 is input to the other input of G2, and the register write request ■ from the channel control device 12 is input to the other input of G3. Then, the output of G2 becomes the HALT signal ■. The operation of the circuit configured as described above will be explained below with reference to the time chart of FIG.

先ず、(a)に示すようにチャネル制御装置12からの
レジスタ書込み要求が発生し、次に入出力制御装置30
からのレジスタ書込み要求が(b)に示すように発生し
たものとする。この結果、ナントゲートG2の出力は(
c)に示すようにそれまでの“0“から“1”に立ち上
がる。このG2出力はマイクロプロセッサ32に停止信
号HALTとして入力され、HALTが1#の間はマイ
クロプロセッサ32はその動作を停止する。
First, as shown in (a), a register write request is generated from the channel control device 12, and then the input/output control device 30
It is assumed that a register write request from . . . occurs as shown in (b). As a result, the output of Nant gate G2 is (
As shown in c), it rises from "0" to "1". This G2 output is input to the microprocessor 32 as a stop signal HALT, and while HALT is 1#, the microprocessor 32 stops its operation.

この間にチャネル制御装置12からのデータが制御レジ
スタ31に書込まれ、書込み動作か終了すると、チャネ
ル制御装置12からの書込み要求は(a)に示すように
“0″に立下がる。この書込み要求が“0”に立下がる
と、ナントゲートG3の出力がそれまでの“O”から“
1”に立ち上がり、ナントゲートG2の出力は(C)に
示すように“1”から“0”に立下がる。この結果、H
ALT状態は解除され、マイクロプロセッサ32からの
制御レジスタ31へのデータ書込みが行われることにな
る。
During this time, data from the channel control device 12 is written to the control register 31, and when the write operation is completed, the write request from the channel control device 12 falls to "0" as shown in (a). When this write request falls to “0”, the output of Nant gate G3 changes from “O” to “0”.
1”, and the output of Nant gate G2 falls from “1” to “0” as shown in (C). As a result, H
The ALT state is released and data is written from the microprocessor 32 to the control register 31.

[発明の効果〕 以上、詳細に説明したように、本発明によればチャネル
制御装置からのレジスタ書込み要求と入出力制御装置か
らのレジスタ書込み要求が競合した時に、入出力制御装
置内のマイクロプロセッサの動作を停止させることによ
り、先ずチャネル制御装置からの制御レジスタへのデー
タ書込みを行わせ、次にチャネル制御装置からの制御レ
ジスタへのデータ書込みか終了したらマイクロプロセッ
サのHALT状態を解除させ、人出ツノ制御装置からの
データ書込みを行なわせるようにすることにより、入出
力制御装置からの制御レジスタへのデータ書込みか保証
されるので、書込んだ後のチエツク動作が不要になり、
チャネル制御装置と入出力制御装置からの制御レジスタ
へのアクセス要求が競合した時の処理を効率的に行うこ
とかできる。
[Effects of the Invention] As described above in detail, according to the present invention, when a register write request from a channel control device and a register write request from an input/output control device conflict, the microprocessor in the input/output control device By stopping the operation of the microprocessor, data is first written to the control register from the channel control device, and then when the data writing from the channel control device to the control register is completed, the HALT state of the microprocessor is released. By allowing data to be written from the output control device, it is guaranteed that the data is written to the control register from the input/output control device, so there is no need for a check operation after writing.
Processing when access requests to the control register from the channel control device and the input/output control device conflict can be efficiently performed.

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

第1図は本発明の原理ブロック、 第2図は本発明で用いる入出力制御装置の構成例を示す
ブロック図、 第3図は衝突検出回路の具体的な例を示す図、第4図は
第3図回路の各部の動作を示すタイヌチャート、 第5図は従来システムの構成例を示すブロック図、 第6図は制御レジスタの構成例を示す図、第7図は入出
力制御装置の従来構成例を示すブロック図である。 第1図において、 10はプロセッサ、 20は共通バス、 30は入出力制御装置、 31は制御レジスタ、 32はマイクロプロセッサ、 35は衝突検出回路、 40は入出力装置である。
Fig. 1 is a basic block diagram of the present invention, Fig. 2 is a block diagram showing a configuration example of an input/output control device used in the present invention, Fig. 3 is a diagram showing a specific example of a collision detection circuit, and Fig. 4 is a block diagram showing a configuration example of an input/output control device used in the present invention. Figure 3 is a Tinu chart showing the operation of each part of the circuit, Figure 5 is a block diagram showing an example of the configuration of a conventional system, Figure 6 is a diagram showing an example of the configuration of a control register, and Figure 7 is a diagram of an input/output control device. FIG. 2 is a block diagram showing an example of a conventional configuration. In FIG. 1, 10 is a processor, 20 is a common bus, 30 is an input/output control device, 31 is a control register, 32 is a microprocessor, 35 is a collision detection circuit, and 40 is an input/output device.

Claims (1)

【特許請求の範囲】 (1)共通バス(20)を介してプロセッサ(10)と
複数の入出力制御装置(30)とが接続されたシステム
において、 前記入出力制御装置(30)はその内部に 設けた制御レジスタ(31)にプロセッサ (10)及び入出力制御装置(30)から書込まれる制
御データに従ってプロセッサ(10)と入出力制御装置
(30)とのインタフェースをとると共に、 入出力制御装置(30)内にプロセッサ (10)と入出力制御装置(30)からの制御レジスタ
(31)へのアクセス要求が競合したことを検出する衝
突検出回路(35)を設け、 プロセッサ(10)と入出力制御装置(3 0)からのアクセス要求が競合したことを検出したら、
前記衝突検出回路(35)から入出力制御装置(30)
内のマイクロプロセッサ(32)の動作を停止させる停
止信号(HALT信号)を出力するように構成したこと
を特徴とする共通バスレジスタ制御装置。 (2)マイクロプロセッサ(32)の動作停止中にプロ
セッサ(10)側からの制御レジスタ(31)へのデー
タ書込みが終了したら、前記マイクロプロセッサ(32
)のHALT状態を解除させて、入出力制御装置(30
)からのデータを制御レジスタ(31)に書込むように
したことを特徴とする請求項1記載の共通バスレジスタ
制御装置。
[Claims] (1) In a system in which a processor (10) and a plurality of input/output control devices (30) are connected via a common bus (20), the input/output control device (30) is Interfaces between the processor (10) and the input/output control device (30) according to control data written from the processor (10) and the input/output control device (30) to a control register (31) provided in the control register (31), and controls input/output. A collision detection circuit (35) is provided in the device (30) to detect conflicting requests for access to the control register (31) from the processor (10) and the input/output control device (30), When conflicting access requests from the input/output control device (30) are detected,
From the collision detection circuit (35) to the input/output control device (30)
A common bus register control device characterized in that it is configured to output a stop signal (HALT signal) for stopping the operation of a microprocessor (32) within the common bus register. (2) When the writing of data from the processor (10) side to the control register (31) is completed while the operation of the microprocessor (32) is stopped, the microprocessor (32)
) is released from the HALT state, and the input/output control device (30
2. The common bus register control device according to claim 1, wherein data from the common bus register (31) is written to the control register (31).
JP22327590A 1990-08-24 1990-08-24 Common bus register controller Pending JPH04105156A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22327590A JPH04105156A (en) 1990-08-24 1990-08-24 Common bus register controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22327590A JPH04105156A (en) 1990-08-24 1990-08-24 Common bus register controller

Publications (1)

Publication Number Publication Date
JPH04105156A true JPH04105156A (en) 1992-04-07

Family

ID=16795575

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22327590A Pending JPH04105156A (en) 1990-08-24 1990-08-24 Common bus register controller

Country Status (1)

Country Link
JP (1) JPH04105156A (en)

Similar Documents

Publication Publication Date Title
EP0258736B1 (en) Parallel computer with distributed shared memories and distributed task activating circuits
EP0166272B1 (en) Processor bus access
EP0189638B1 (en) Bus width adapter
KR100742718B1 (en) Transparent bridges connected between the first and second buses of a computer system, systems comprising the same and methods of bridging the first and second buses of a computer system
EP0141742A2 (en) Buffer system for input/output portion of digital data processing system
US5890012A (en) System for programming peripheral with address and direction information and sending the information through data bus or control line when DMA controller asserts data knowledge line
US5038275A (en) Status transfer structure within a data processing system with status read indication
WO1995006284B1 (en) Ata interface architecture employing state machines
JPH077327B2 (en) Data transfer method
US5905912A (en) System for implementing peripheral device bus mastering in a computer using a list processor for asserting and receiving control signals external to the DMA controller
CA1208802A (en) Apparatus and method for direct memory to peripheral and peripheral to memory data transfers
JP4642531B2 (en) Arbitration of data requests
US4814977A (en) Apparatus and method for direct memory to peripheral and peripheral to memory data transfers
JP2807010B2 (en) Tape drive control unit for interconnection between host computer and tape drive and method of operating the same
JPH04105156A (en) Common bus register controller
KR920002830B1 (en) Direct memory access controller
JPS58115565A (en) Data processor
KR920007949B1 (en) Peripheral controller
JPH05265947A (en) Scsi controller
JPH10283302A (en) Method and system for supplying data to bus connected to plural processors
JP2990800B2 (en) Interrupt processing device
JP2522412B2 (en) Communication method between programmable controller and input / output device
JP2622026B2 (en) Register writing control method in central processing unit
JPS6146545A (en) Input and output instruction control system
JPH0283779A (en) Instruction execution control system for vector processor