JPH0199149A - Bus ID automatic identification device - Google Patents
Bus ID automatic identification deviceInfo
- Publication number
- JPH0199149A JPH0199149A JP62257862A JP25786287A JPH0199149A JP H0199149 A JPH0199149 A JP H0199149A JP 62257862 A JP62257862 A JP 62257862A JP 25786287 A JP25786287 A JP 25786287A JP H0199149 A JPH0199149 A JP H0199149A
- Authority
- JP
- Japan
- Prior art keywords
- bus
- master device
- master
- self
- holding means
- 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
Links
- 238000000034 method Methods 0.000 claims description 7
- 239000003999 initiator Substances 0.000 description 11
- 238000012544 monitoring process Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 208000033748 Device issues Diseases 0.000 description 1
- 240000002853 Nelumbo nucifera Species 0.000 description 1
- 235000006508 Nelumbo nucifera Nutrition 0.000 description 1
- 235000006510 Nelumbo pentapetala Nutrition 0.000 description 1
- 238000011888 autopsy Methods 0.000 description 1
- 244000309466 calf Species 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000011179 visual inspection Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
- Bus Control (AREA)
Abstract
Description
【発明の詳細な説明】
[概要]
小型コンピュータ用の■/○インターフェイスであるs
cs iのバスシステムにおけるバスID番号自動識別
方式に関し、
バス獲得のフェーズと相手装置選択のフェーズのいずれ
においてバスID番号の重複があっても自動的に識別し
てID番号の変更を行うようにしたバスID自動識別方
式を提供することを目的とし、
データ線と制御線からなるバスに各々に固有のバスID
番号が付与された複数のマスタ装置と複数のスレーブ装
置が接続され、マスタ装置による該バスID番号を用い
たバス使用権の獲得のフェーズとその後に続く相手スレ
ーブ装置選択のフェーズとを経てバスを占有できるバス
システムにおけるバスrD自動識別方式において、マス
タ装置に自己ID番号保持手段とID番号変更手段およ
び他マスタID番号保持手段とを備え、マスタ装置はシ
ステムの立ち上がり時に設定スイッチのID番号を前記
自己ID番号保持手段に格納し、このマスタ装置がバス
を使用しない状態において、他のマスタ装置によるバス
獲得動作で使用された他マスタ装置のID番号を取り込
み、自己のID番号と照合して一敗すると自己のID番
号を前記変更手段により変更し、相手スレーブ装置選択
のフェーズの動作においてID番号の一敗があると、自
己ID番号を変更して選択を行うよう制御するよう構成
する。[Detailed Description of the Invention] [Summary] s is a ■/○ interface for small computers.
Regarding the bus ID number automatic identification method in the cs i bus system, even if there is a duplicate bus ID number in either the bus acquisition phase or the partner device selection phase, it will be automatically identified and the ID number will be changed. The purpose is to provide an automatic bus ID identification system that provides a unique bus ID for each bus consisting of data lines and control lines.
A plurality of numbered master devices and a plurality of slave devices are connected, and the bus is transferred through a phase in which the master device acquires the right to use the bus using the bus ID number, followed by a phase in which a partner slave device is selected. In a bus rD automatic identification method in a bus system that can be occupied, the master device is equipped with self-ID number holding means, ID number changing means, and other master ID number holding means, and the master device changes the ID number of the setting switch to the above when the system starts up. The ID number is stored in the own ID number holding means, and when this master device is not using the bus, it takes in the ID number of another master device that was used in the bus acquisition operation by another master device, and compares it with its own ID number. If the device loses, its own ID number is changed by the changing means, and if there is a loss in the ID number in the operation of the phase of selecting a partner slave device, the device is configured to change its own ID number and perform the selection.
[産業上の利用分野]
本発明は小型コンピュータ用のI10インターフェイス
であるS CS I (Small Computer
SystemIn terface)のバスシステム
におけるI D (Identifier:識別または
認識)番号自動識別方式に関する。[Industrial Application Field] The present invention is an I10 interface for small computers.
The present invention relates to an ID (Identifier) number automatic identification method in a bus system of System Interface.
R近、小型コンピュータ用の110インターフエイスと
して、8本(8ビツト)のデータライン、1本のパリテ
ィラインおよび9本の制御ラインを備えるSC3Iバス
が、高性能のインターフェイスとして知られるようにな
った。Recently, the SC3I bus, which has 8 data lines (8 bits), 1 parity line, and 9 control lines, became known as a high-performance 110 interface for small computers. .
このインターフェイスでは、バスに接続される装置は、
マスタ(またはイニシェーク)と称する命令を発生する
機能を有する装置と、スレーブ(またはクーゲット)と
称される他から命令を受は取って実行を行う装置、の合
わせて2種類の装置がある。このインターフェイスのバ
ス制御では、複数のマスタ装置によるバスの獲得時や、
バスを獲得したマスタ装置による相手スレーブ装置の選
択時には、予め各装置に対し付与されたバスID番号を
用いて優先順位を決定し、大きい番号の装置に優先櫓を
与える方式をとっている。With this interface, the devices connected to the bus are
There are two types of devices: a device called a master (or initiator) that has a function of generating instructions, and a device called a slave (or cuget) that receives and executes instructions from others. Bus control of this interface is useful when multiple master devices acquire the bus,
When a master device that has acquired a bus selects a slave device, priority is determined using bus ID numbers assigned to each device in advance, and priority is given to devices with higher numbers.
このようなバス制御システムにおいては、各装置に対し
てバスID番号の付与を行う際、またはハード的(スイ
ッチ等)に設定する際にうつかりして複数の装置に同じ
番号を設定する場合があり、そのような誤りを自動的に
識別して対処できることが望まれている。In such a bus control system, when assigning bus ID numbers to each device or when setting hardware (switches, etc.), the same number may be set to multiple devices by mistake. It would be desirable to be able to automatically identify and deal with such errors.
[従来の技術] 従来例の説明図を第3図に示す。[Conventional technology] An explanatory diagram of a conventional example is shown in FIG.
第3図の(A)には前記SC3Iのシステム構成が示さ
れ、図において、30.31は夫々マスタ装置であるイ
ニシエ−9(INTT) 、32〜34は夫々スレーブ
装置であるターゲット(TARG)、35はバスを表す
。バス35は、データラインがDB(データビット)0
〜DB7の8本とパリティラインおよび制御ラインとし
て、REQ (Request)、A CK (Ack
nowledge)、BSY(Busy)、S E L
(Selection)等の9本を備える。FIG. 3A shows the system configuration of the SC3I, and in the figure, 30 and 31 are initiators 9 (INTT), which are master devices, and targets (TARG) 32 to 34 are slave devices, respectively. , 35 represent a bus. The bus 35 has a data line of DB (data bit) 0.
~ REQ (Request), ACK (Ack) as 8 lines of DB7, parity line and control line.
knowledge), BSY (Busy), S E L
(Selection) etc.
イニシエータはターゲットに対して何らかの指令を与え
て動作を実行させたい時は、初めに、アービトレーショ
ン(獲得)フェーズにおいて、他のイニシェークとの競
合動作に勝たなければならない。When an initiator wants to give a certain command to a target to execute an operation, it must first win over competing operations with other initiators in the arbitration (acquisition) phase.
第3図の(B)に、イニシェーク30と31の両方から
バスを使用する要求が発生した場合のアービトレーショ
ン・フェーズの様子を示す。FIG. 3B shows the arbitration phase when requests to use the bus are generated from both inishes 30 and 31.
CB)において、イニシェーク30はバスをどの装置も
使っていない時(バス・フリー・フェーズ)に、バス要
求を表示する信号として制御線BSYに“1”を立て、
同時に自分のID番号7を示すためにデータラインのC
B7を1″にする。CB), when no device is using the bus (bus free phase), the inishke 30 sets "1" to the control line BSY as a signal indicating a bus request.
C on the data line to indicate your ID number 7 at the same time.
Set B7 to 1″.
他方、同じ時間にイニシェーク31でもハス要求が発生
すると、制御ラインBSYに“11を立て(既にイニシ
ェーク30から出ている場合はライン上の信号レベルに
変化はない)、同時に自己のID番号3を示すためデー
タラインのDB3に“1″を立てる。On the other hand, if a hash request occurs in inishake 31 at the same time, it sets "11" on control line BSY (if it has already come out from inishake 30, there is no change in the signal level on the line), and at the same time sets its own ID number 3. To indicate this, set "1" in the data line DB3.
最初にBSY信号が発生してから一定時間経過すると、
アービトレーションに参加した各イニシェーク30.3
1はデータラインを検索して、自分のID番号より大き
いID番号があるかどうかを調べて、自分が一番大きい
番号であることがわかると勝ったことになり、制御ライ
ンSELに“1”を出力すると共にBSY信号とID番
号7の“1”出力を“0”にする。そして、負けたイニ
シェークは自分のID番号の表示と制御ラインBSYへ
の出力を0″にする。When a certain period of time has passed since the first BSY signal was generated,
30.3 for each initiator that participated in the arbitration.
1 searches the data line to see if there is an ID number larger than its own ID number, and if it finds that it has the largest number, it means that it has won, and "1" is sent to the control line SEL. At the same time, the BSY signal and the "1" output of ID number 7 are set to "0". The losing initiator then sets the display of its own ID number and the output to the control line BSY to 0''.
このアービトレーション・フェーズにおいて、もし、イ
ニシェーク30と31が同一のID番号を保持していた
なら、両者ともバス使用権を獲得したものとして、夫々
が次のセレクション・フェーズに移行してエラー状態と
なり、結局両者ともにバスを利用することができなくな
る。In this arbitration phase, if inishes 30 and 31 hold the same ID number, it is assumed that both have acquired the right to use the bus, and each moves to the next selection phase and enters an error state. In the end, neither of them will be able to use the bus.
アービトレーションにおいて勝ったイニシェーク30は
、次にターゲットを選択するためにセレクション・フェ
ーズに移る。上記したように、アービトレーションの競
争で勝った時にイニシェーク30からSEL信号が発生
してセレクション・フェーズに移行し、その選択が成功
した例の様子を第3図の(C)に示す。The initiator 30 that wins the arbitration then moves to a selection phase to select a target. As described above, when the arbitration competition is won, the SEL signal is generated from the inishke 30 and the selection phase is entered, and an example in which the selection is successful is shown in FIG. 3(C).
図に示すように、イニシェーク30はこのフェーズにお
いて、自己のID番号7を表示するためDB7に“1″
を立てるのと同時に、指令を与えたい相手装置であるタ
ーゲット33 (ID番号1)を表示するためDBI
に“l”を立てる。As shown in the figure, in this phase, the inishke 30 writes “1” to the DB 7 to display its own ID number 7.
At the same time, use the DBI to display target 33 (ID number 1), which is the target device to which you want to issue commands.
Put an “l” on it.
バスに接続された各ターゲットは、SEL信号力び11
になっているセレクション・フェーズ中、BSY信号が
“0”になってから、自分のID番号が“1″になって
いる力)と゛うかを8用べ、もし自分の番号に“1”に
なっているとBSY信号を“1”にして、応答信号とす
る。Each target connected to the bus receives a SEL signal
During the selection phase when the BSY signal becomes "0", you can use 8 to determine if your ID number becomes "1". If so, the BSY signal is set to "1" and used as a response signal.
また、第3図の(D)にセレクションが不成功になった
例を示す。この場合、イニシェーク3゜から、自分のI
D番号としてDB7に“1”を立てると共に、相手のI
D番号として同じDB7に1″がたてられる。この場合
、各ターゲットは8本のデータラインDBO−DB7全
部を調べて、“1”が立っているラインが2木で、しか
も自分のID番号が立っていることが判別されると、そ
のターゲットは応答を返すが、(D)のようにID番号
が重複していると、ID番号の表示が1個しかないこと
が分かり、応答を返さない。ちなみに、3本のID番号
表示の場合も同じ。Furthermore, FIG. 3(D) shows an example in which the selection is unsuccessful. In this case, from initial shake 3°, your I
Set “1” in DB7 as the D number, and
1" is written in the same DB7 as the D number. In this case, each target checks all eight data lines DBO-DB7, and if the line with "1" written on it is 2 trees, and it is his own ID number. If it is determined that the target is set, the target will return a response, but if the ID numbers are duplicated as in (D), it will be found that only one ID number is displayed, and the target will not return a response. No. By the way, the same applies to the case where three ID numbers are displayed.
[発明が解決しようとする問題点]
従来例の説明においてのべたとおり、バス使用権の獲得
(アービトレーション)の場合は、複数のマスタ装置(
イニシエータ)の間でID1号が重複した場合は、それ
らの間でバス獲得が競合した時にはエラー状態となって
、結局バスを使用することが出来なくなるという問題が
ある。[Problems to be Solved by the Invention] As mentioned in the explanation of the conventional example, in the case of acquiring the right to use the bus (arbitration), multiple master devices (
If ID 1 is duplicated between two initiators, an error state will occur when there is competition for bus acquisition between them, and the problem is that the bus cannot be used after all.
また、相手スレーブ装置(ターゲット)選択(セレクシ
ョン)の動作でID番号の重複が生ずると、やはり選択
を行うことができなくなり、バスを使用できなくなると
いう問題がある。Furthermore, if duplication of ID numbers occurs in the operation of selecting a slave device (target) of the other party, there is a problem that selection cannot be performed and the bus cannot be used.
そして、従来のバスID番号は、基板のデイツプスイッ
チ、設定ピン、リレー(端末からの指示により動作する
)等によりセ・ノドされ、いわゆるハードスイッチによ
り構成されており、バスID番号が重複してもそれを検
出するのは、オペレータが目視することにより行われて
おり、バスID番号の重複を自動的に識別することは困
難であった。Conventional bus ID numbers are controlled by dip switches, setting pins, relays (operated according to instructions from the terminal), etc. on the circuit board, and are composed of so-called hard switches, which prevent bus ID numbers from being duplicated. However, this is detected by visual inspection by an operator, and it is difficult to automatically identify duplicate bus ID numbers.
本発明は、バス獲得のフェーズと相手装置選択のフェー
ズのいずれにおいてバスID番号の重複があっても自動
的に識別してID番号の変更を行うようにしたバスID
自動識別方式を提供することを目的とする。The present invention provides a bus ID that automatically identifies and changes the ID number even if there is a duplication of bus ID numbers in either the bus acquisition phase or the partner device selection phase.
The purpose is to provide an automatic identification method.
[問題点を解決するための手段] 本発明の原理的構成図を第1図に示す。[Means for solving problems] FIG. 1 shows a basic configuration diagram of the present invention.
図において、■はマスタ装置(イニシェーク)、10は
マスタ装置本体で例えばホストコンピュータ、11はバ
スアダプタ、12はバス獲得・選択手段、13はID制
御手段、14はID番号変更手段、15はバス不使用時
のバス監視手段、16は自己ID番号保持手段、17は
他マスタt D番号保持手段、18はスレーブrD番号
保持手段、19はハスID番号の設定スイッチ、2はバ
スを表す。In the figure, ■ is a master device (inishek), 10 is the main unit of the master device, such as a host computer, 11 is a bus adapter, 12 is a bus acquisition/selection means, 13 is an ID control means, 14 is an ID number change means, and 15 is a bus Bus monitoring means when not in use; 16, self ID number holding means; 17, other master tD number holding means; 18, slave rD number holding means; 19, a lotus ID number setting switch; and 2, the bus.
第1図のバス2には図示されないが他のマスタ装置およ
び複数のスレーブ装置(ターゲット)が接続されている
。Although not shown, other master devices and a plurality of slave devices (targets) are connected to the bus 2 in FIG. 1.
本発明は、マスタ装置の自己ID番号を可変に設定保持
する手段を設け、該マスタ装置がバスを不使用の時は、
他のマスタ装置によるバス獲得の動作を監視してその際
に使用したバスID番号を取込み、その番号と自己のI
D番号とが一致したら自己ID番号を変更し、該マスタ
装置がバス使用権を獲得した後相手スレーブ装置の選択
の際に自己ID番号と相手装置のID番号との一致を検
出したら同様に自己ID番号を変更するものである。The present invention provides means for variably setting and holding the self-ID number of the master device, and when the master device does not use the bus,
It monitors bus acquisition operations by other master devices, captures the bus ID number used at that time, and uses that number and its own ID.
If the master device matches the D number, it changes its own ID number, and after the master device acquires the right to use the bus, when it detects a match between its own ID number and the ID number of the other device when selecting the other slave device, it changes the self ID number in the same way. This is to change the ID number.
[作用コ
マスタ装置(イニシェーク)1の本体10はホストコン
ピュータのような処理装置であり、これに結合されてい
るバスアダプタ11はイニシェータ本体とバスとのイン
ターフェイスの機能を有する。[The main body 10 of the working master device (initiator) 1 is a processing device such as a host computer, and the bus adapter 11 connected thereto has the function of an interface between the initiator main body and the bus.
マスタ装置には手動で設定可能なバスID番号を設定す
るスイッチ19が設けられ、このスイッチ19の内容は
このマスタ装置の立ち上がり時(パワーオン時)に自己
ID番号保持手段16にセントされる。The master device is provided with a switch 19 for setting a manually settable bus ID number, and the contents of this switch 19 are sent to the self-ID number holding means 16 when the master device starts up (powers on).
マスタ装置本体からのバス獲得の指示がない場合は、ハ
ス監視手段15はバス2上で行われるバス獲得動作(制
御ラインにより判別する)を監視し、その時のID番号
(獲得動作ではマスタ装置のID番号が出力される)を
データラインから読込んで、他マスタID番号保持手段
17に格納し、ID制御手段13においてその番号を自
己ID番号保持手段16の内容と比較し、一致すると自
己ID番号をID変更手段14により変更して再び自己
ID番号保持手段16に格納する。なお、他ID番号保
持手段17はバス2に接続されたマスタ装置の数に応じ
て、保持容量を備える。(2台のマスタ装置が接続され
ている時は各マスタ装置は1個の他マスタID番号を保
持する)。If there is no bus acquisition instruction from the master device main body, the bus monitoring means 15 monitors the bus acquisition operation performed on the bus 2 (determined by the control line), and the ID number at that time (in the acquisition operation, the master device The ID number is output) is read from the data line and stored in the other master ID number holding means 17, and the ID control means 13 compares the number with the contents of the own ID number holding means 16. If they match, the own ID number is output. is changed by the ID changing means 14 and stored in the own ID number holding means 16 again. Note that the other ID number holding means 17 has a holding capacity corresponding to the number of master devices connected to the bus 2. (When two master devices are connected, each master device holds one other master ID number).
また、他マスタ装置がバス獲得フェーズから相手選択フ
ェーズに移行した時も、バス不使用中のマスタ装置はI
D番号の監視を行い、他マスタ装置がスレーブ装置を選
択する際のID番号(マスタ装置のID番号と相手スレ
ーブ装置のID番号が同時に出力される)を取込み、相
手ID番号をスレーブID番号保持手段18に格納する
。 このスレーブID番号についても、自己ID番号格
納手段16の内容と比較して、一致した場合は、自己I
D番号を変更手段14により変更する。Also, when another master device moves from the bus acquisition phase to the partner selection phase, the master device that is not using the bus will
Monitors the D number, captures the ID number used when another master device selects a slave device (the ID number of the master device and the ID number of the other slave device are output at the same time), and holds the other party's ID number as the slave ID number. The information is stored in the means 18. This slave ID number is also compared with the contents of the self-ID number storage means 16, and if they match, the self-ID number is
The D number is changed by the changing means 14.
このマスタW2本体10からバスアダプタ11に対しバ
ス獲得(アービトレーション)の指示が発生すると、バ
ス獲得・選択手段12からバス2に対し、自己のID番
号を自己ID番号保持手段16の内容に基づいて8本の
データビットラインの中の対応するビットラインに“1
”を立てるとともに制御ラインのBSYに“1”を立て
て要求を発する。When the master W2 body 10 issues a bus acquisition (arbitration) instruction to the bus adapter 11, the bus acquisition/selection means 12 instructs the bus 2 to assign its own ID number to the bus 2 based on the contents of the own ID number holding means 16. “1” is placed on the corresponding bit line among the 8 data bit lines.
” and sets the control line BSY to “1” to issue a request.
この時、他マスタ装置から同様にバス獲得の要求が発生
すると、データビットラインを調べて自分より優先権が
あるかどうかを検出する。この時、データビットが“1
゛であるラインにより他ID番号を検査して何れに優先
権があるかを検出する。At this time, when a similar request for bus acquisition is issued from another master device, the data bit line is checked to detect whether it has priority over itself. At this time, the data bit is “1”
The other ID numbers are checked using a certain line to detect which one has priority.
この場合、前記した監視動作により、互いに他のマスタ
装置のID番号を取り込んで、他のマスタID番号と自
己のID番号と一致する場合はその時に既に自己ID番
号を変更しであるので、この獲得フェーズにおいてID
番号の重複は起こらない。In this case, through the above-mentioned monitoring operation, each master device acquires the ID numbers of other master devices, and if the ID number of the other master device matches the own ID number, the self ID number has already been changed at that time. ID in the acquisition phase
No duplication of numbers will occur.
このマスタ装置がバス使用権を獲得して、引き続いて相
手スレーブ装置を選択(セレクション)に移行すると、
今度は相手スレーブ装置のID番号と自己[D番号との
一致を調べて、一致が検出されると、やはり自己ID番
号を変更する制御を実行する。When this master device acquires the right to use the bus and subsequently selects the other slave device,
This time, it is checked whether the ID number of the other slave device and the self [D number] match, and if a match is detected, control is executed to change the self ID number.
なお、番号を変更して、再度バス獲得・選択の動作を開
始しても、番号の重複があった場合、全てのID番号0
〜7の8個の[D番号)が使用されている場合は、ハー
ドエラーとなり、エラー出力が発生する。Even if you change the number and start the bus acquisition/selection operation again, if there is a duplicate number, all ID numbers 0
If eight [D numbers] from 7 to 7 are used, a hard error occurs and an error output occurs.
[実施例]
本発明の実施例の制御フローを第2図(al乃至第2図
(C1に示す。[Embodiment] The control flow of an embodiment of the present invention is shown in FIGS. 2(al) to 2(C1).
第2図(al乃至第2図(C1は第1図の基本構成にお
ける、バスアダプタ11のバス獲得・選択制御手段12
、バス監視手段15および■DIII御部13環部13
たバスアダプタの制御フローを示すものである。FIG. 2 (al to FIG. 2 (C1 is the bus acquisition/selection control means 12 of the bus adapter 11 in the basic configuration of FIG. 1)
, bus monitoring means 15 and ■DIII control section 13 ring section 13
This figure shows the control flow of the bus adapter.
第2図fatと第2図(blはマスタ装置がバスを使用
しない時に実行される制御フローであり、第2図(C1
はマスタ装置がバス獲得・選択の要求を起こした時の制
御フローを示す。Figure 2 fat and Figure 2 (bl) are the control flows executed when the master device does not use the bus, and Figure 2 (C1
shows the control flow when the master device issues a request for bus acquisition/selection.
第2図(Mlにおいて、マスタ装置がパワーオンする(
立ち上がる)と、イニシアライズが行われこの時ハード
的に設定されていたバスID番号が自己ID番番号レジ
ツク0 (第1図の自己ID番号保持手段16に対応)
にセットされる。なお、レジスタは図中Regと表示す
る。Figure 2 (In Ml, the master device is powered on (
(stands up), initialization is performed, and the bus ID number that was set in hardware at this time is set to self-ID number register 0 (corresponds to self-ID number holding means 16 in Figure 1).
is set to Note that the register is indicated as Reg in the figure.
次にバス2 (第1図参照)の制御ラインの状態を監視
(スキャン)して、バス獲得要求状態が発生したかどう
かを見て、発生した場合は、ID番号(データラインの
“1″が立っているビット線)を取込む(210,22
0)。Next, monitor (scan) the state of the control line of bus 2 (see Figure 1) to see if a bus acquisition request state has occurred. bit line) (210, 22
0).
そして、取込まれたID番号がすでに他マスタIDレジ
スタ21 (第1図の他マスタID番号保持手段に対応
)に登録されているかどうか調べ、未登録の場合これを
登録(または更新)し、次に、この他マスタIDレジス
タ21の内容と、自己■DD号レジスタ20の内容を比
較し、一致したら自己ID番番号レジツク0の数値から
1を引いて、その結果を自己ID番号レジスタ20に再
び格納する(260)。Then, it is checked whether the captured ID number has already been registered in the other master ID register 21 (corresponding to the other master ID number holding means in FIG. 1), and if it is not registered, it is registered (or updated), Next, compare the contents of the other master ID register 21 with the contents of the self ID number register 20, and if they match, subtract 1 from the value of the self ID number register 0, and store the result in the self ID number register 20. Store again (260).
この後第2図(blに移り、他マスタ装五からの選択(
セレクションフェーズ)があるか否かを制御ライン(S
EL)により調べ、ある場合はその時のデータラインに
出力されている2つのID番号を取り込む(280)。After this, move on to Figure 2 (bl) and select from other master equipment (
control line (S selection phase)
EL), and if there are any, the two ID numbers outputted to the data line at that time are taken in (280).
次にこの2つのID番号のうち一方はマスタID番号で
あるから、他マスタIDレジスタ21の内容と比較して
一致したらその番号を除いて、他方のID番号(スレー
ブ装置のID番号)を選択して、スレーブ(S 1 a
)TDD号テーブル22(第1図のスレーブID番号保
持手段18に対応)に格納する(300)。Next, since one of these two ID numbers is the master ID number, compare it with the contents of the other master ID registers 21, and if they match, remove that number and select the other ID number (the ID number of the slave device). and the slave (S 1 a
) is stored in the TDD number table 22 (corresponding to the slave ID number holding means 18 in FIG. 1) (300).
このテーブル22のスレーブID番号は次に自己【D番
号レジスタ20と比較されて、一致すると自己ID番号
レジスタの数値をマイナス1して再び同レジスタに格納
する。その後、自己のマスタ装置からバス獲得要求が発
生してなければ、元の第2図(alのステップ210に
もどり、発生した場合は第2図(C1の制御フローが開
始する。The slave ID number in this table 22 is then compared with the self-D number register 20, and if they match, the value in the self-ID number register is minus 1 and stored in the same register again. Thereafter, if a bus acquisition request is not generated from its own master device, the process returns to the original step 210 in FIG. 2 (al), and if a bus acquisition request is generated, the control flow in FIG. 2 (C1) is started.
第2図(C1において、このマスタ装置は自己ID番号
レジスタ20にその時セットされている番号でバス獲得
要求を出力する(410)。これによりバスが獲得され
ると、自己ID番号と相手スレーブ装置のID番号を出
力して選択動作を行う(430)。この選択動作が成功
した場合は、獲得したバスを使って、マスタ装置からそ
のスレーブ装置(ターゲット)に対しコマンドを転送し
て種々の処理を実行させる(460)。In FIG. 2 (C1), this master device outputs a bus acquisition request with the number set at that time in its own ID number register 20 (410). When the bus is acquired, the master device sends its own ID number and the other slave device. A selection operation is performed by outputting the ID number of the master device (430).If the selection operation is successful, the acquired bus is used to transfer commands from the master device to the slave device (target) and perform various processing. (460).
選択に失敗した場合は、バスを開放し、他の装置の使用
を可能にする一方、自己ID番号レジスタの内容と相手
スレーブ装置(選択に失敗した相手装置)のID番号と
を比べて一致した場合、相手ID番号をスレーブ(Sl
a)(D番号テーブル22に登録する。If the selection fails, the bus is released and other devices are allowed to use it, while the contents of the self ID number register are compared with the ID number of the other slave device (the other device for which the selection failed) to see if they match. If the slave ID number is
a) (Register in the D number table 22.
次に相手ID番号と一致していた自己ID番号をマイナ
ス1して再び自己ID番号レジスタへ格納する。Next, the own ID number that matched the other party's ID number is minus 1 and stored in the own ID number register again.
この後、変更された自己ID番号が過去に登録された複
数のスレーブID番号の何れかと一致するかどうかを調
べ(500)、一致しない場合さらに全番号が既に登録
されてしまったかどうかを調べて、登録済の場合はハー
ドエラーとして出力を発生し、登録済でない場合は変更
された自己ID番号レジスタの内容で再びバス獲得要求
の動作を行う。After this, it is checked whether the changed self-ID number matches any of the multiple slave ID numbers registered in the past (500), and if it does not match, it is further checked whether all the numbers have already been registered. , if it has been registered, an output is generated as a hard error, and if it has not been registered, the bus acquisition request operation is performed again using the changed contents of the self ID number register.
[発明の効果]
本発明によればバスに接続されたマスタ装置(イニシェ
ーク)またはスレーブ装置(ターゲット)の各バスID
番号の間に番号が重複するという設定ミスがあっても、
オペレータが介入しないでマスタ装置のバスID番号を
自動的に変更して、バス獲得・選択の動作を行うことが
できる。[Effects of the Invention] According to the present invention, each bus ID of a master device (initiator) or slave device (target) connected to a bus
Even if there is a setting error such as duplicate numbers between numbers,
Bus acquisition and selection operations can be performed by automatically changing the bus ID number of the master device without operator intervention.
第1図は本発明の基本的構成を示す図、第2図+a+乃
至第2図(C1は本発明の実施例の制御フローを示す図
、第3図は従来例の説明図である。
第1図中、
1:マスタ装置(イニシェーク)
10:マスタ装置本体
11;バスアダプタ
12:バス獲得・選択手段
13:ID制御手段
14:ID番号変更手段
15:バス監視手段
16:自己rD番号保持手段
17:他マスタID番号保持手段
18ニスレ一プID番号保持手段
19:バスID番号の設定スイッチ
2:バス
特許出願人 株式会社ピーエフニー
代 理 人 弁理士 長谷用 文廣(外2名)没
′m −
1臀
ぐ
精l1r3Iの央4も使し剖名却70−(11゛ス44
大用11〕第 2 (2)(b)
し −
〇 〇FIG. 1 is a diagram showing the basic configuration of the present invention, FIG. In Figure 1, 1: Master device (inishek) 10: Master device main body 11; Bus adapter 12: Bus acquisition/selection means 13: ID control means 14: ID number changing means 15: Bus monitoring means 16: Self rD number holding means 17: Other master ID number holding means 18 Nisle ID number holding means 19: Bus ID number setting switch 2: Bus patent applicant Pfn Co., Ltd. Agent Patent attorney Fumihiro Hase (two others) passed away - The center 4 of 1st calf 1r3I is also used, and the autopsy name is 70-(11゛ 44
Daiyo 11] Part 2 (2) (b) - 〇 〇
Claims (1)
各々に固有のバスID番号が付与された複数のマスタ装
置と複数のスレーブ装置が接続され、マスタ装置による
該バスID番号を用いたバス使用権の獲得のフェーズと
その後に続く相手スレーブ装置選択のフェーズとを経て
バスを占有できるバスシステムにおけるバスID自動識
別方式において、マスタ装置(1)に自己ID番号保持
手段(16)とID番号変更手段(14)および他マス
タID番号保持手段(17)とを備え、 マスタ装置(1)はシステムの立ち上がり時に設定スイ
ッチのID番号を前記自己ID番号保持手段(16)に
格納し、このマスタ装置(1)がバスを使用しない状態
において、他のマスタ装置によるバス獲得動作で使用さ
れた他マスタ装置のID番号を取り込み、自己のID番
号と照合して一致すると自己のID番号を前記変更手段
(14)により変更し、 相手スレーブ装置選択のフェーズの動作においてID番
号の一致があると、自己ID番号を変更して選択を行う
よう制御することを特徴とするバスID自動識別方式。[Claims] A plurality of master devices and a plurality of slave devices, each assigned a unique bus ID number, are connected to a bus consisting of a data line (110) and a control line (111), and the master device controls the bus. In a bus ID automatic identification method in a bus system in which a bus can be occupied through a phase of acquiring bus usage rights using an ID number and a subsequent phase of selecting a partner slave device, a master device (1) is provided with self-ID number holding means. (16), ID number changing means (14), and other master ID number holding means (17), the master device (1) transfers the ID number of the setting switch to the self ID number holding means (16) when the system is started up. When this master device (1) is not using the bus, it takes in the ID number of another master device used in the bus acquisition operation by another master device, checks it with its own ID number, and if it matches, the master device (1) The bus is characterized in that the ID number of the slave device is changed by the changing means (14), and when there is a match in the ID numbers in the operation of the phase of selecting the other slave device, control is performed such that the own ID number is changed and selection is made. ID automatic identification method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62257862A JPH0199149A (en) | 1987-10-13 | 1987-10-13 | Bus ID automatic identification device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62257862A JPH0199149A (en) | 1987-10-13 | 1987-10-13 | Bus ID automatic identification device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0199149A true JPH0199149A (en) | 1989-04-18 |
| JPH0461389B2 JPH0461389B2 (en) | 1992-09-30 |
Family
ID=17312203
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62257862A Granted JPH0199149A (en) | 1987-10-13 | 1987-10-13 | Bus ID automatic identification device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0199149A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH04140876A (en) * | 1990-10-02 | 1992-05-14 | Nec Corp | Data processing system |
-
1987
- 1987-10-13 JP JP62257862A patent/JPH0199149A/en active Granted
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH04140876A (en) * | 1990-10-02 | 1992-05-14 | Nec Corp | Data processing system |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0461389B2 (en) | 1992-09-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0534662B1 (en) | Bus-to-bus interface for preventing data incoherence in a multiple processor computer system | |
| JPH02267634A (en) | Interrupt system | |
| EP0421614B1 (en) | Computersystem having apparatus for improving the communication efficiency between a host processor and pheripheral devices connected by an SCSI bus | |
| JPH03212755A (en) | Inter-processor interrupt system | |
| US5787263A (en) | Method of an apparatus for controlling data transfer | |
| JPH0199149A (en) | Bus ID automatic identification device | |
| JP2005251188A (en) | Redundant path control apparatus and redundant path control method | |
| JPS5824812B2 (en) | I/O device management method | |
| JPH04230563A (en) | Bus control system | |
| JPS63208151A (en) | Interface between processor of digital data processing system and special instruction processor | |
| EP0860767B1 (en) | Disk control apparatus | |
| CN109358903A (en) | Data Access Device and Access Error Notification Method | |
| JP2800540B2 (en) | Panel monitoring method | |
| JPS6029141B2 (en) | coupling device | |
| JP2757054B2 (en) | Peripheral device usage confirmation method for information processing equipment | |
| JPH07182261A (en) | Information processor | |
| JP2000040057A (en) | Computer system, buffer controller and transferring method | |
| JP3006265B2 (en) | Information update synchronization device between hosts | |
| JPH02287663A (en) | Bus control system | |
| JPH0668011A (en) | Scsi interface device | |
| JPH02115960A (en) | Data processing system | |
| JP2755998B2 (en) | Data transfer device | |
| JPH0431947A (en) | Interface controller | |
| JP2621315B2 (en) | Information processing device | |
| JPH0290309A (en) | Control system for updating real-time timer register |