JPH0831083B2 - Bus control method - Google Patents
Bus control methodInfo
- Publication number
- JPH0831083B2 JPH0831083B2 JP24546589A JP24546589A JPH0831083B2 JP H0831083 B2 JPH0831083 B2 JP H0831083B2 JP 24546589 A JP24546589 A JP 24546589A JP 24546589 A JP24546589 A JP 24546589A JP H0831083 B2 JPH0831083 B2 JP H0831083B2
- Authority
- JP
- Japan
- Prior art keywords
- bus
- slave
- master
- output
- clearing
- 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 - Fee Related
Links
- 238000000034 method Methods 0.000 title claims description 8
- 238000001514 detection method Methods 0.000 claims description 7
- 238000012790 confirmation Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Landscapes
- Bus Control (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、コンピュータなどのバスシステムにおける
バス制御方式に係り、特に、マスタによって管理される
一つのデータバスを、マスタおよび複数のスレーブによ
って共有するように構成したバスシステムにおけるバス
制御方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bus control method in a bus system such as a computer, and in particular, one data bus managed by a master is shared by a master and a plurality of slaves. The present invention relates to a bus control method in a bus system configured to do so.
例えばコンピュータのバスシステムにおいては、マス
タ基板(以下、マスタという)によって管理される一つ
のデータバスを、マスタおよび複数のスレーブ基板(以
下スレーブという)によって共有するとともに、前記デ
ータバスを時分割方式で利用するようにしたものがあ
る。For example, in a bus system of a computer, one data bus managed by a master board (hereinafter referred to as a master) is shared by a master and a plurality of slave boards (hereinafter referred to as slaves), and the data bus is time-shared. There are things I tried to use.
第3図は、このように構成されたバスシステムを概略
的に示すもので、MはデータバスDBを管理するマスタ、
S1〜Snはn個のスレーブで、これらマスタMおよびn個
のスレーブS1〜Snが一つのデータバスDBを共有してい
る。FIG. 3 schematically shows a bus system configured in this way, where M is a master for managing the data bus DB,
S 1 to S n are n slaves, and these master M and n slaves S 1 to S n share one data bus DB.
そして、このバスシステムにおいて、データバスDBを
時分割的に利用するため、従来、次のようにバスを制御
することによってバスの明渡しを行うようにしていた。In this bus system, in order to use the data bus DB in a time division manner, conventionally, the bus has been controlled by controlling the bus as follows.
すなわち、今、一つのスレーブS1がデータバスDBを使
用したい場合、バスの動作を停止しバスの開放を要求す
るバス停止要求信号(以下、BHOLDと表す)をマスタM
に対して送出する。このBHOLDを受け取ったマスタM
は、スレーブS1に対して、バスの動作を停止しバスを開
放したことを示すバス停止確認信号(以下、BHLDAと表
す)を送り返す。そして、スレーブS1は前記BHLDAを受
け取った時点でデータバスDBが明け渡されたことを知
り、データバスDBの使用を開放するのである。That is, when one slave S 1 wants to use the data bus DB, the master M sends a bus stop request signal (hereinafter, referred to as BHOLD) for stopping the bus operation and requesting the release of the bus.
Send to. Master M who received this BHOLD
Sends a bus stop confirmation signal (hereinafter, referred to as BHLDA) indicating that the bus operation is stopped and the bus is released, to the slave S 1 . Then, when the slave S 1 receives the BHLDA, it knows that the data bus DB has been surrendered, and releases the use of the data bus DB.
しかしながら、上記従来のバス制御方式においては、
複数のスレーブからバス明渡しの要求があった場合、各
スレーブS1〜Sn毎にBHOLD、BHLDAが必要となり、BHOL
D、BHLDAが一対しか用意されていないバスシステムにお
いては、複数のバス明渡しの要求に対応することができ
なかった。However, in the above conventional bus control method,
If multiple slaves request bus clearing, BHOLD and BHLDA are required for each slave S 1 to S n.
In a bus system in which only one pair of D and BHLDA was prepared, it was not possible to meet the demand for multiple bus passing.
本発明は、上述の事柄に留意してなされたもので、そ
の目的とするところは、従来の信号形態を保持しつつ、
複数のバス明渡しの要求に対応することができ、マスタ
によって管理される一つのデータバスをマスタおよび複
数のスレーブによって共有するように構成したバスシス
テムを、合理的に制御することができるバス制御方式を
提供することにある。The present invention has been made with the above matters in mind, and its object is to maintain the conventional signal form,
A bus control capable of responding to a plurality of bus passing requests and capable of rationally controlling a bus system configured to share one data bus managed by a master by a master and a plurality of slaves. To provide a method.
上述の目的を達成するため、本発明に係るバス制御方
式は、スレーブからのバス明渡し要求信号が出力される
バス明渡し要求信号ラインと、前記バス明渡し要求信号
のバス明渡し要求信号ラインへの出力に基づいてストロ
ーブ状態にされるバス明渡し先検出ストローブ信号ライ
ンと、前記マスタからのバス明渡し先決定ストローブ信
号が出力されるバス明渡し先決定ストローブ信号ライン
とを設けるとともに、各スレーブに対しそれぞれ固有の
スレーブIDコードを割り当て、前記スレーブからバス明
渡し要求信号が出力されたとき、前記マスタから出力さ
れるバス明渡し先決定ストローブ信号と合致するスレー
ブIDコードを有するスレーブからのバス停止要求信号に
基づいて前記マスタが該当スレーブにバス停止確認信号
を与えるようにしてある。In order to achieve the above object, the bus control method according to the present invention includes a bus clearing request signal line from which a bus clearing request signal from a slave is output, and a bus clearing request signal line of the bus clearing request signal. A bus clearing destination detection strobe signal line that is set to a strobe state based on the output to the master and a bus clearing destination determining strobe signal line that outputs the bus clearing destination determining strobe signal from the master. A slave ID code unique to each slave is assigned, and when a bus clearing request signal is output from the slave, the slave having a slave ID code that matches the bus clearing destination determination strobe signal output from the master is transmitted from the slave. Based on the bus stop request signal, the master sends a bus stop confirmation signal to the corresponding slave. It
上記構成によれば、従来のバスシステムにおける制御
信号に対して、バス明渡し要求信号、バス明渡し先検出
ストローブ信号およびバス明渡し先決定ストローブ信号
の3つの信号を加えるだけで、複数のスレーブからのバ
ス明渡し要求に対して、合理的に対処することができ、
また、既存のバスシステムをほとんど改造する必要がな
い。According to the above configuration, by adding the three signals of the bus clearing request signal, the bus clearing destination detection strobe signal, and the bus clearing destination determining strobe signal to the control signal in the conventional bus system, a plurality of slaves can be obtained. It is possible to reasonably deal with the bus passing request from
Also, there is almost no need to modify the existing bus system.
以下、本発明の一実施例を図面を参照しながら説明す
る。An embodiment of the present invention will be described below with reference to the drawings.
第1図は、本発明に係るバス制御方式を説明するため
のバスシステムの構成例を示し、この図において、Mは
マスタで、このマスタMおよびn個のスレーブS1〜Snに
共通のデータバスDBを管理する機能を備え、内部には、
スレーブIDコード入力回路1、バス明渡し先決定回路
2、スレーブIDコード出力回路3、スレーブIDコード入
出力コントロール回路4、BHOLD/BHLDAによるバス明渡
しコントロール回路5などを備えている。FIG. 1 shows a configuration example of a bus system for explaining the bus control system according to the present invention. In this figure, M is a master, which is common to the master M and n slaves S 1 to S n . It has a function to manage the data bus DB,
A slave ID code input circuit 1, a bus clearing destination determination circuit 2, a slave ID code output circuit 3, a slave ID code input / output control circuit 4, a bus clearing control circuit 5 by BHOLD / BHLDA, and the like are provided.
また、スレーブS1〜Snのそれぞれには、データバスに
おける相異なる1ビットの信号ビット(信号線)が割り
当てられている(これをIDコードという)とともに、例
えばバス明渡し要求信号(以下、BRQと表す)出力回路
6、スレーブIDコード出力回路7、スレーブIDコード入
力ラッチ回路8,BHOLD出力回路9、BHLDA入力回路10、ス
レーブIDコード設定回路11などがそれぞれ設けられてい
る。Further, each of the slaves S 1 to S n is assigned with a different 1-bit signal bit (signal line) in the data bus (this is called an ID code), and for example, a bus clearing request signal (hereinafter, An output circuit 6, referred to as BRQ), a slave ID code output circuit 7, a slave ID code input latch circuit 8, a BHOLD output circuit 9, a BHLDA input circuit 10, a slave ID code setting circuit 11 and the like are provided.
そして、12はBHOLD信号ライン、13はBHLDA信号ライ
ン、14はBRQ信号ライン、15はバス明渡し先検出ストロ
ーブ信号(以下、BPRという)ライン、16はバス明渡し
先決定ストローブ信号(以下、BPWという)ラインで、
これらの信号ライン12〜16は、前記データバスDBととも
にマザー基板(以下、マザーという)上に設けられてい
る。12 is a BHOLD signal line, 13 is a BHLDA signal line, 14 is a BRQ signal line, 15 is a bus clearing destination detection strobe signal (hereinafter, referred to as BPR) line, 16 is a bus clearing destination determination strobe signal (hereinafter, BPW) Line),
These signal lines 12 to 16 are provided on a mother board (hereinafter referred to as a mother) together with the data bus DB.
今、第1のスレーブS1と第2のスレーブS2(図外)に
おいて、その順序でバス明渡し要求が発生した場合につ
いて説明する。Now, a case will be described in which a bus clearing request occurs in the order in the first slave S 1 and the second slave S 2 (not shown).
スレーブ内でバス明渡し要求が発生すると、その信号
はBRQ出力回路6を経てBRQ信号ライン14に加えられる
が、BRQ出力回路6がオープンコレクタ形式のノット素
子で構成されているので、BRQ信号ライン14はローレベ
ルになる。なお、BRQはマザー上でワイヤードオアされ
ており、BRQはスレーブIDコード入出力コントロール回
路4を介してマスタMに入力される。When a bus clear request is generated in the slave, the signal is added to the BRQ signal line 14 via the BRQ output circuit 6, but since the BRQ output circuit 6 is composed of an open collector type knot element, the BRQ signal line is 14 goes low. The BRQ is wired-OR on the mother, and the BRQ is input to the master M via the slave ID code input / output control circuit 4.
そして、マスタMは、前記BRQを受けると、どのスレ
ーブがバス明渡し要求しているかを検出するため、デー
タバスDBを入力状態にするとともに、スレーブIDコード
入出力コントロール回路4を介してBPR信号ライン15
に、パルス状のBPR()を出力する。そして、各スレ
ーブS1〜Snは、BPR信号ライン15がローレベルの期間内
に、スレーブIDコード設定回路11を介して、それぞれに
固有のスレーブIDコード(データバスDBのいずれかのビ
ットに対応するローレベルの信号)をデータバスDBの1
ビットの信号ラインに出力する。When the master M receives the BRQ, it detects which slave is requesting the bus clearing, so that the master M sets the data bus DB to the input state and the BPR signal via the slave ID code input / output control circuit 4. Line 15
Then, the pulsed BPR () is output. Then, each of the slaves S 1 to S n has its own slave ID code (any one of the bits of the data bus DB is set via the slave ID code setting circuit 11 while the BPR signal line 15 is at a low level). Corresponding low level signal) 1 of data bus DB
Output to bit signal line.
マスタMは、BPRの立ち上がりエッジでデータバスDB
の内容を、スレーブIDコード入力回路1を介して取込
み、その中のローレベルとなっているビットによりバス
明渡し要求しているスレーブを検出する。例えば、デー
タバスDBのビット0が割り当てられたスレーブと、ビッ
ト2が割り当てられたスレーブが同時にBPQを要求した
場合、BPRによってデータバスDBに出力されたローレベ
ルの信号(この場合、ビット0と2がローレベルとな
る)によって、マスタMはどのスレーブがBRQを要求し
たかを特定することができる。まお、この場合、データ
バスDBは、プルアップなどによりBPRによってIDコード
が入力されないビットはハイレベルとなるように処理し
ておけばよい。The master M uses the data bus DB at the rising edge of BPR.
Is taken in through the slave ID code input circuit 1 and the low level bit in the slave ID code input circuit 1 detects the slave requesting the bus clearing. For example, when a slave to which bit 0 of the data bus DB is assigned and a slave to which bit 2 is assigned request BPQ at the same time, a low-level signal output to the data bus DB by the BPR (in this case, bit 0 and 2 goes low), the master M can specify which slave requested the BRQ. Also, in this case, the data bus DB may be processed so that the bits for which the ID code is not input by BPR due to pull-up or the like are at the high level.
そして、マスタMは、これらのスレーブのうちから一
つをバス明渡し先決定回路2によって選択し、選択した
スレーブに対応するスレーブIDコード(データバスのい
ずれかのビットに出力するローレベルの信号)をデータ
バスDBに出力すると同時に、スレーブIDコード入出力コ
ントロール回路4を介してBPW信号ライン16に対してパ
ルス状のBPW()を出力する。Then, the master M selects one of these slaves by the bus clearing destination determination circuit 2 and outputs a slave ID code (a low-level signal to be output to any bit of the data bus) corresponding to the selected slave. ) Is output to the data bus DB, and at the same time, a pulsed BPW () is output to the BPW signal line 16 via the slave ID code input / output control circuit 4.
各スレーブS1〜Snは、BPWの立ち上がりエッジでスレ
ーブIDコード入力ラッチ回路8に各スレーブS1〜Snに対
応するデータバスDBのビットの情報をラッチする。前記
スレーブIDコード入力ラッチ回路8には、BPR信号ライ
ン15がローレベルの期間内に、ローレベルのスレーブID
コードを出力したデータバスDBのビットと同じ信号線が
接続されており、マスタMが選択したスレーブであれ
ば、そのスレーブIDコード(ローレベル)をラッチでき
ることになる。Each slave S 1 to S n latches the bit information of the data bus DB corresponding to each slave S 1 to S n in the slave ID code input latch circuit 8 at the rising edge of BPW. The slave ID code input latch circuit 8 has a low level slave ID while the BPR signal line 15 is at a low level.
The same signal line as the bit of the data bus DB that outputs the code is connected, and if the slave selected by the master M, the slave ID code (low level) can be latched.
そして、自分に固有のスレーブIDコードをラッチした
スレーブは、バス使用権を獲得したものと認識して、BH
OLD出力回路9を介してBHOLD信号ライン12にローレベル
のBHOLDを出力して、マスタMにバス明渡し要求する。B
HOLD/BHLDAによるバス明渡しコントロール回路5を介し
て前記BHOLDを受け取ったマスタMは、データバスDBを
明け渡すとともに、前記回路5を介してBHLDAをローレ
ベルにする。前記スレーブは、BHLDAがローレベルにな
った時点からデータバスDBの使用を行うことができる。The slave that has latched its own slave ID code recognizes that it has acquired the bus use right, and
Low-level BHOLD is output to the BHOLD signal line 12 via the OLD output circuit 9 to request the master M to pass the bus. B
The master M, which has received the BHOLD via the bus clearing control circuit 5 by HOLD / BHLDA, clears the data bus DB and makes BHLDA low level via the circuit 5. The slave can use the data bus DB from the time when BHLDA becomes low level.
なお、バス使用権を獲得したスレーブがその権利を放
棄する場合、当該スレーブはBRQおよびBHOLDをハイレベ
ルにしてこれらを取り下げる。このとき、他のスレーブ
がBRQを出力(ローレベル)していれば、BRQはマザー上
でワイヤードオアされているため、マスタMに対しては
連続してバス明渡し要求されていることになり、上述の
手順でBPR,BPWによってバス明渡し要求しているスレー
ブを検出される。When the slave who has acquired the bus use right relinquishes the right, the slave sets BRQ and BHOLD to high level and withdraws them. At this time, if another slave outputs BRQ (low level), the BRQ is wired-or on the mother, so the master M is continuously requested to pass the bus. In the above procedure, the slave requesting the bus handoff is detected by BPR and BPW.
第2図は、例えば第1のスレーブS1と第2のスレーブ
S2からその順に、BRQ1{(a)参照}とBRQ2{(b)参
照}が出力されたときにおけるマスタMに入力されるる
BRQ{(c)参照}、マスタMから出力されるBPR
{(d)参照}およびBPW{(e)参照}、第1のスレ
ーブS1から出力されるBHOLD1{(f)参照}、第2のス
レーブS2から出力されるBHOLD2{(g)参照}、マスタ
Mに入力されるBHOLD{(h)参照}、マスタMから出
力されるBHLDA{(i)参照}、データバスDBにおける
スレーブIDコード{(j)参照}およびバス使用者
{(k)参照}をそれぞれ示すものである。FIG. 2 shows, for example, the first slave S 1 and the second slave S 1 .
BRQ 1 {see (a)} and BRQ 2 {see ((b)}) are sequentially input from S 2 to the master M when they are output.
BRQ {see (c)}, BPR output from master M
{See (d)} and BPW {see (e)}, BHOLD1 output from the first slave S 1 {see (f)}, BHOLD2 output from the second slave S 2 {see (g)} , BHOLD input to the master M (see (h)}, BHLDA output from the master M (see (i)}, slave ID code in the data bus DB {see (j)} and bus user {(k). Reference} respectively.
以上説明したように、本発明によれば、従来のバスシ
ステムにおける制御信号に対して、バス明渡し要求信
号、バス明渡し先検出ストローブ信号およびバス明渡し
先決定ストローブ信号の3つの信号を加えるだけで、従
来の信号形態を保持しつつ、複数のバス明渡しの要求に
対応することができ、マスタによって管理される一つの
データバスをマスタおよび複数のスレーブによって共有
するように構成したバスシステムを、合理的に制御する
ことができるようになった。As described above, according to the present invention, three signals of the bus clearing request signal, the bus clearing destination detection strobe signal, and the bus clearing destination determining strobe signal are added to the control signal in the conventional bus system. A bus system configured so that a single data bus managed by a master can be shared by a master and a plurality of slaves, while maintaining the conventional signal form, and being able to respond to a plurality of requests for bus passing. Can be controlled reasonably.
第1図は本発明に係るバス制御方式を説明するためのバ
スシステムの構成例を示す図、第2図は2つのスレーブ
からバス明渡し要求があった場合のタイムチャートであ
る。 第3図は従来技術を説明するための図である。 14……バス明渡し要求信号ライン、15……バス明渡し先
検出ストローブ信号ライン、16……バス明渡し先決定ス
トローブ信号ライン、M……マスタ、S1〜Sn……スレー
ブ、DB……データバス、BRQ……バス明渡し要求信号、B
PR……バス明渡し先検出ストローブ信号、BPW……バス
明渡し先決定ストローブ信号、BHOLD……バス停止要求
信号、BHLDA……バス停止確認信号。FIG. 1 is a diagram showing a configuration example of a bus system for explaining a bus control system according to the present invention, and FIG. 2 is a time chart when there is a bus clearing request from two slaves. FIG. 3 is a diagram for explaining a conventional technique. 14 ...... bus surrender request signal line, 15 ...... bus surrender destination detection strobe signal line, 16 ...... bus surrender destination determining strobe signal line, M ...... master, S 1 to S n ...... slave, DB ... … Data bus, BRQ… Bus clear request signal, B
PR: Bus clear destination detection strobe signal, BPW: Bus clear destination determination strobe signal, BHOLD: Bus stop request signal, BHLDA: Bus stop confirmation signal.
Claims (1)
スを、マスタおよび複数のスレーブによって共有するよ
うに構成したバスシステムにおいて、前記スレーブから
のバス明渡し要求信号が出力されるバス明渡し要求信号
ラインと、前記バス明渡し要求信号のバス明渡し要求信
号ラインへの出力に基づいてストローブ状態にされるバ
ス明渡し先検出ストローブ信号ラインと、前記マスタか
らのバス明渡し先決定ストローブ信号が出力されるバス
明渡し先決定ストローブ信号ラインとを設けるとととも
に、各スレーブに対しそれぞれ固有のスレーブIDコード
を割り当て、前記スレーブからバス明渡し要求信号が出
力されたとき、前記マスタから出力されるバス明渡し先
決定ストローブ信号と合致するスレーブIDコードを有す
るスレーブからのバス停止要求信号に基づいて前記マス
タが当該スレーブにバス停止確認信号を与えるようにし
たことを特徴とするバス制御方式。1. A bus clearing request signal for outputting a bus clearing request signal from the slave in a bus system configured to share one data bus managed by the master by the master and a plurality of slaves. A line, a bus clearing destination detection strobe signal line that is put into a strobe state based on the output of the bus clearing request signal to the bus clearing request signal line, and a bus clearing destination determination strobe signal from the master. A bus output destination determining strobe signal line is provided, and a unique slave ID code is assigned to each slave, and when the bus output request signal is output from the slave, the bus output from the master A slave from a slave whose slave ID code matches the destination strobe signal. A bus control method, wherein the master gives a bus stop confirmation signal to the slave based on a stop request signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP24546589A JPH0831083B2 (en) | 1989-09-20 | 1989-09-20 | Bus control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP24546589A JPH0831083B2 (en) | 1989-09-20 | 1989-09-20 | Bus control method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH03105656A JPH03105656A (en) | 1991-05-02 |
JPH0831083B2 true JPH0831083B2 (en) | 1996-03-27 |
Family
ID=17134066
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP24546589A Expired - Fee Related JPH0831083B2 (en) | 1989-09-20 | 1989-09-20 | Bus control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0831083B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5375230B2 (en) * | 2009-03-17 | 2013-12-25 | 株式会社Jvcケンウッド | Communication system and communication method |
-
1989
- 1989-09-20 JP JP24546589A patent/JPH0831083B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH03105656A (en) | 1991-05-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0476990A2 (en) | Dynamic bus arbitration | |
EP0329776A1 (en) | Method and apparatus for interconnecting busses in a multibus computer system | |
JPH1196090A (en) | I2c bus circuit and bus control method | |
US5473762A (en) | Method and system for pipelining bus requests | |
US5692135A (en) | Method and system for performing an asymmetric bus arbitration protocol within a data processing system | |
JPH04268938A (en) | Data processing apparatus and memory controller | |
JPH0831083B2 (en) | Bus control method | |
WO2022100311A1 (en) | Peci signal interconnection method and system for server, device, and medium | |
JPS5839331B2 (en) | Request selection method | |
US5557755A (en) | Method and system for improving bus utilization efficiency | |
US5398233A (en) | Method of resetting coupled modules and system using the method | |
JPS6095678A (en) | Multi-processor system | |
JPH05282242A (en) | Bus control system | |
CA1119274A (en) | Communications processor | |
JP2749417B2 (en) | Priority control circuit | |
JPS6046150A (en) | Data transmission control method in loop transmission system | |
JPS62226260A (en) | Asynchronous data bus interface | |
JPH09288608A (en) | File sharing controller in distributed processing system | |
US6073200A (en) | System having processor monitoring capability of an integrated circuits buried, internal bus for use with a plurality of internal masters and a method therefor | |
JPH0654913B2 (en) | Control method for linear transmission line | |
JPS59231952A (en) | Multiprocessor communication control method | |
JPS6072053A (en) | Machine number setting method | |
JPH04120129U (en) | Control device | |
JPS62129890A (en) | Electronic musical apparatus network system | |
JPH0754504B2 (en) | Bidirectional bus data transfer control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
LAPS | Cancellation because of no payment of annual fees |