JPH08241264A - Option device and information processor connected therewith - Google Patents

Option device and information processor connected therewith

Info

Publication number
JPH08241264A
JPH08241264A JP7046892A JP4689295A JPH08241264A JP H08241264 A JPH08241264 A JP H08241264A JP 7046892 A JP7046892 A JP 7046892A JP 4689295 A JP4689295 A JP 4689295A JP H08241264 A JPH08241264 A JP H08241264A
Authority
JP
Japan
Prior art keywords
state
bus
bit
instruction
address
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.)
Withdrawn
Application number
JP7046892A
Other languages
Japanese (ja)
Inventor
Satoshi Oobaka
聡 大波加
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 JP7046892A priority Critical patent/JPH08241264A/en
Publication of JPH08241264A publication Critical patent/JPH08241264A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE: To automatically set addresses not to overlap one on another on address space when plural option devices are mounted, regarding the mechanism of automatically assigning the address on the address space of the bus of an information processor to the option device mounted on the bus. CONSTITUTION: This option device has a discrimination information holding means 1 holding values different from the other, an object bit designation means 2 designating a bit to be the check object of discrimination information and changing the bit after the check, a discrimination information check means 3 checking one bit of the discrimination information according to the instruction from a bus, performing a response if the value thereof is a preliminarily fixed value and performing a control so as to make a check a temporary stoppage state if not so, and a state control means 4 performing controls to a check so as to recover it from the temporary stoppage state to an operation state according to the instruction from the bus, transfer it from the temporary stoppage state to the stoppage state in which an instruction except a release instruction can not be accepted or return it to the operation state from the stoppage state.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、パソコン、ワークステ
ーション等の情報処理装置のバスに搭載するオプション
装置(通常、カード形状である)に、バスのアドレス空
間上のアドレスを自動的に割り付ける機構に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is a mechanism for automatically assigning an address in a bus address space to an optional device (usually a card shape) mounted on a bus of an information processing device such as a personal computer or a workstation. Regarding

【0002】オプション装置のアドレス設定は、古くは
オプション装置上のスイッチで行っていたが、近年は、
EEPROM等の不揮発性メモリを用意し、その内容を
ソフトウェアにより書き込むことにより設定する方式
(ソフト設定方式)が普通になった。従って、オプショ
ン装置に添付されたアドレス設定用ソフトウェアを介す
ることによって、使用者はパソコン等のキーボード・デ
ィスプレイから設定情報を(通常、設定可能な範囲には
制約があるが)設定することができる。
Address setting of an optional device has been done by a switch on the optional device in the past, but in recent years,
A method of setting a non-volatile memory such as an EEPROM and the like by writing the content by software (software setting method) has become common. Therefore, the user can set the setting information (usually, the settable range is limited) from the keyboard / display of the personal computer or the like through the address setting software attached to the option device.

【0003】しかし、パソコンでよく使われるISAバ
スのように、各スロットに物理的な識別手段をもたない
バスに、オプション装置を搭載するときのアドレス割り
付けは、面倒であり間違いも多く、オプション装置搭載
時のトラブルの元になりやすい。
However, address allocation when installing an optional device on a bus that does not have a physical identification means in each slot, such as the ISA bus often used in personal computers, is troublesome and error-prone. It is easy to cause trouble when installing the device.

【0004】[0004]

【従来の技術】図3にアドレス割り付け説明図を示す。
情報処理装置のバスに接続されたオプション装置は、他
の装置(一般に本体、プロセサである)から制御指示や
動作モードの指定を受け取り、定められた動作を行い、
結果を返すというような動作を行う。他の装置が制御指
示を与える場合には、一般に、オプション装置内にある
「制御レジスタ」に書き込むことにより行われる。「制
御レジスタ」は複数あり、バスのアドレス空間上のある
範囲を割り付けられる。その先頭アドレスをベースアド
レスレジスタが保持する。なお、「制御レジスタ」はバ
スから見たときに、レジスタであるかのように見えるも
のであって、実際にレジスタで構成されているとは限ら
ない。例えば「制御レジスタ」の大部分はメモリ上にあ
り、マイクロプロセサによるプログラムの制御により、
バスへの対応をしている場合がある。また、制御レジス
タの内容は共通のものとオプション装置の種類によって
異なるものとがある。
2. Description of the Related Art FIG. 3 shows an explanatory diagram of address allocation.
The optional device connected to the bus of the information processing device receives control instructions and operation mode designations from other devices (generally, the main body and processor) and performs predetermined operations.
It operates like returning a result. When another device gives a control instruction, it is generally performed by writing in a "control register" in the optional device. There are a plurality of "control registers", and a range in the address space of the bus can be assigned. The base address register holds the start address. It should be noted that the "control register" looks like a register when viewed from the bus, and is not necessarily configured by the register. For example, most of the "control register" is in memory, and by the control of the program by the microprocessor,
You may be dealing with a bus. Further, the contents of the control register may be common or different depending on the type of optional device.

【0005】個々の制御レジスタはバスからベースアド
レス+αでアドレスを指定し、読み出し/書込み、また
はその両方を行うことができる。オプション装置はバス
のアドレスを監視し、ベースアドレスレジスタの内容と
比較して自分の範囲であれば、制御レジスタへのアクセ
スを認める。従って、複数存在するオプション装置のア
ドレスは図3のA0,A1,〜,A4 のように、それぞれ重なら
ないように設定しなければならない。
Each control register can be addressed by the base address + α from the bus and read / write, or both. The optional device monitors the address of the bus and compares it with the contents of the base address register to grant access to the control register if it is within its range. Therefore, the addresses of a plurality of optional devices must be set so that they do not overlap, like A0, A1, ..., A4 in FIG.

【0006】なお、ベースアドレスレジスタそのもの
も「制御レジスタ」の1つであり、割り付け範囲内のア
ドレスに存在する。従って、ベースアドレスレジスタ
に、元の値とは違う値を書き込むと、その後はアドレス
空間の割り付けを変更したことになる。
The base address register itself is also one of the "control registers" and exists at an address within the allocation range. Therefore, when a value different from the original value is written in the base address register, the allocation of the address space is changed thereafter.

【0007】従って、新たにオプション装置を追加する
場合には、既に存在するオプション装置のアドレス設定
と重ならないようにした設定アドレスを、新たなオプシ
ョン装置のベースアドレスレジスタに書き込む必要があ
る。
Therefore, when a new option device is added, it is necessary to write a set address that does not overlap the address setting of the existing option device into the base address register of the new option device.

【0008】[0008]

【発明が解決しようとする課題】オプション装置には、
通常、アドレスのデフォルト値として、あらかじめ決め
られた値をベースアドレスレジスタに書き込んである。
従って、購入時には同じ値に設定されているため、この
値が既に存在する同種のオプション装置のアドレスと一
致し易いし、同種のオプション装置を同時に複数搭載す
るときは全て同じである。この場合、一方または全部の
ベースアドレスレジスタの内容を異なる値に設定しなお
さなければならない。このとき、同じアドレスの複数の
オプション装置を装着した状態でその内の一つのオプシ
ョン装置のみに指示を与えることはできないため、オプ
ション装置を抜き差ししてオプション装置を1枚ずつ別
々に装着して設定しなくてはならないという問題があ
る。
The optional device includes the following:
Normally, a predetermined value is written in the base address register as the default value of the address.
Therefore, since the same value is set at the time of purchase, this value easily matches the address of the existing optional device of the same type, and is the same when a plurality of optional devices of the same type are simultaneously installed. In this case, the contents of one or all base address registers must be reset to different values. At this time, it is not possible to give instructions to only one of the optional devices with multiple optional devices with the same address installed, so the optional devices can be removed and inserted, and the optional devices can be installed separately one by one. There is a problem that you have to do it.

【0009】本発明は、同種のオプション装置を複数搭
載したときにそれらを見分け、自動的にアドレス空間上
で重ならないようにアドレス設定することを目的として
いる。
An object of the present invention is to identify a plurality of option devices of the same type when they are mounted, and to automatically set addresses so that they do not overlap in the address space.

【0010】[0010]

【課題を解決するための手段】本発明は、情報処理装置
のバスに接続されて動作するオプション装置に以下の手
段をもつ。
The present invention has the following means in an option device which operates by being connected to a bus of an information processing device.

【0011】他のオプション装置とは異なる値を保持
する、所定ビットからなる識別情報保持手段。この識別
情報は個々のオプション装置に唯一の値である。
Identification information holding means consisting of a predetermined bit, which holds a value different from that of other optional devices. This identification information is unique to each optional device.

【0012】識別情報のチェック対象となるビットを
指定し、チェック後、対象ビットの指定を変更する、対
象ビット指定手段。通常、初期状態においてはチェック
する対象ビットは最下位桁(または最上位桁)になって
いる。また、チェック後、指定対象を1ビット上位(ま
たは下位)の桁に変更する。
Target bit designation means for designating a bit to be checked in the identification information, and changing the designation of the target bit after checking. Normally, in the initial state, the target bit to be checked is the least significant digit (or most significant digit). Further, after the check, the designated object is changed to the one-bit upper (or lower) digit.

【0013】バスからの指示に応じて、対象ビット指
定手段の指定する識別情報のビットをチェックし、あら
かじめ定められた値であればバスに対して応答し、そう
でなければ応答せずに、それ以後チェック指示は受け付
けない一時停止状態になるように制御する、識別情報チ
ェック手段。
According to the instruction from the bus, the bit of the identification information designated by the target bit designating means is checked, and if it is a predetermined value, it responds to the bus, otherwise it does not respond, Identification information checking means for controlling so that the check instruction is not accepted thereafter so as to be in a temporary stop state.

【0014】この場合のバスからの指示は、通常、識別
情報チェックコマンドとして与えられる。 バスからの指示に応じて、一時停止状態から動作状態
に復帰し、あるいは一時停止状態から解除指示以外は受
け付けない停止状態に移行し、あるいは停止状態から動
作状態にもどるように制御する、状態制御手段。
The instruction from the bus in this case is usually given as an identification information check command. In response to an instruction from the bus, it returns from the suspended state to the operating state, or shifts from the suspended state to the stopped state that does not accept any instruction other than the release instruction, or controls to return from the stopped state to the operating state. means.

【0015】通常、この場合のバスからの指示は、各
々、復帰コマンド、停止コマンド、解除コマンドとして
与えられる。本発明の情報処理装置(のアドレス設定機
構)は、以上の手段をもつオプション装置に対して、以
下の操作を行う手段をもつ。
Normally, the instructions from the bus in this case are given as a return command, a stop command, and a release command, respectively. The information processing apparatus (the address setting mechanism thereof) of the present invention has means for performing the following operations on the option device having the above means.

【0016】バスを介して、識別情報を1桁ずつチェ
ックすることを指示する、識別情報チェック指示手段。 それに対して応答があれば、一時停止状態にある装置
は停止状態に移行するように指示し、応答がなければ、
一時停止状態にある装置は動作状態に復帰するように指
示する、復帰・停止指示手段。
Identification information check instruction means for instructing to check the identification information digit by digit via the bus. If there is a response to it, the device in the suspended state instructs to shift to the stopped state, and if there is no response,
Return / stop instruction means for instructing the device in the suspended state to return to the operating state.

【0017】停止状態から動作状態にもどるよう指示
する解除指示手段。
Release instruction means for instructing to return from the stopped state to the operating state.

【0018】[0018]

【作用】情報処理装置(のアドレス設定機構)は、バス
を介したオプション装置へ、通常、識別情報チェック、
復帰、停止、解除の各指示を、コマンドの形で与える。
個々のオプション装置は識別情報チェック指示に応じ
て、動作状態にあればそのときの対象ビットをチェック
し、定められた値(例えば、‘0’)であるか否かによ
って応答をするか、応答しないで一時停止状態になるか
を決める。もともと一時停止状態、停止状態であれば反
応しない。
The information processing device (the address setting mechanism thereof) normally sends the identification information check to the option device via the bus.
Give instructions for return, stop, and release in the form of commands.
In response to the identification information check instruction, each optional device checks the target bit at that time if it is in the operating state, and responds depending on whether it is a predetermined value (eg, “0”) Do not decide whether to be in a pause state. Originally, it does not react if it is in a suspended state or a stopped state.

【0019】初期状態では、同種のオプション装置のア
ドレスは同じであるから、複数あれば、指示は複数のオ
プション装置に伝えられる。識別情報チェックコマンド
に対して、複数あるオプション装置の全てまたは一部が
応答する場合、全てが応答しない場合がある。
In the initial state, the addresses of the same type of optional devices are the same, so if there are multiple options, the instruction is transmitted to the multiple optional devices. When all or some of a plurality of optional devices respond to the identification information check command, all of them may not respond.

【0020】応答があった場合、情報処理装置(のアド
レス設定機構)は停止コマンドを発行してから識別情報
チェックコマンドを再び発行する。このときチェックさ
れる識別情報のビットは先のビットとは異なる。また、
前回応答しなかったオプション装置は停止コマンドによ
って一時停止状態から停止状態になっているので、チェ
ック自体を行わず、反応しない。
When there is a response, the information processing apparatus (the address setting mechanism thereof) issues the stop command and then issues the identification information check command again. The bit of the identification information checked at this time is different from the previous bit. Also,
The optional device that did not respond the previous time has changed from the suspended state to the stopped state by the stop command, so the check itself is not performed and it does not respond.

【0021】応答がない場合、オプション装置は対象ビ
ットが定められた値でないので一時停止状態になった
か、もともと停止状態であるかのいずれかである。これ
らに対して復帰コマンドを発行すると一時停止状態のも
のは動作状態に復帰する。
If there is no response, the option device is either in a suspended state or originally in a suspended state because the target bit is not a predetermined value. When a return command is issued to these, those in the suspended state return to the operating state.

【0022】このようにして繰り返し識別情報チェック
コマンドを発行して、全ビットをチェックしたとき、応
答するものはただ1つしかない状態にできる。従って、
この段階でアドレス設定を行えば、その1つのオプショ
ン装置だけに設定することができる。
In this way, when the identification information check command is repeatedly issued to check all the bits, only one responding device can be set. Therefore,
If the address is set at this stage, it can be set only for the one optional device.

【0023】この後は解除コマンドを発行し、まだアド
レス設定をしてないオプション装置を初期状態(動作状
態)にもどし、前述の操作を繰り返すことにより、1つ
ずつ異なるアドレスに設定することができる。
After this, a cancel command is issued to return the option device to which the address has not yet been set to the initial state (operating state), and by repeating the above operation, it is possible to set different addresses one by one. .

【0024】[0024]

【実施例】図1は本発明の実施例の構成図であり、本発
明をオプション装置の1つ、LANカードに適用した例
を示す。LANカード10a 〜10c は、情報処理装置のバ
ス30に搭載され、他のオプション装置(図示してない)
と同様に本体装置20の指示によって動作する。
1 is a block diagram of an embodiment of the present invention, showing an example in which the present invention is applied to one of optional equipment, a LAN card. The LAN cards 10a to 10c are mounted on the bus 30 of the information processing device, and other optional devices (not shown)
Similarly to the above, it operates according to an instruction from the main body device 20.

【0025】LANカード10はマイクロプロセサ11とメ
モリ12、アドレスバッファレジスタ13、データバッファ
レジスタ14その他が内部バスに接続されて構成されてい
る。「制御レジスタ」およびその他の制御用レジスタの
大部分がメモリ12上に構成されており、マイクロプロセ
サ11の制御によりプログラム的に操作される。バス30上
のアドレスデータが変化するとその内容をアドレスバッ
ファ13に取込み、マイクロプロセサ11に割り込み等によ
り通知する。マイクロプロセサ11は、アドレスをチェッ
クし、自分の制御レジスタのいずれかを指定しているな
らデータバッファ14を介してバス30と指定された制御レ
ジスタとの間でデータを受け渡す。
The LAN card 10 is constructed by connecting a microprocessor 11, a memory 12, an address buffer register 13, a data buffer register 14 and others to an internal bus. Most of the "control register" and other control registers are formed on the memory 12 and are operated programmatically by the control of the microprocessor 11. When the address data on the bus 30 changes, the contents are taken into the address buffer 13 and notified to the microprocessor 11 by an interrupt or the like. The microprocessor 11 checks the address and passes data between the bus 30 and the designated control register via the data buffer 14 if it has designated one of its control registers.

【0026】メモリの一部はEEPROM等の不揮発性
素子でできており、ベースアドレスレジスタ5と識別情
報保持レジスタ1とを保持する。現在のLANカードに
はMACグローバルアドレス(以下、『MACアドレ
ス』とする)という世界に1つしかない16進数12桁
のアドレスを与えることができる。これはIEEE(ア
メリカ電気電子技術者境界)規格として定められたもの
で、メーカはIEEEに申請・登録することにより一定
範囲のアドレスを得、その中で自社製品に対して一意に
割り当てることができる。このアドレスはLANの世界
での区別のためのもので、規格を守る限り、同じ値のM
ACアドレス(バス上のアドレスとは全く異なるもので
ある)をもつ他のLANカードは存在しない。本実施例
ではこれを識別情報として利用して個々のオプション装
置を区別し、バス上のアドレスを決定しようとするもの
である。
A part of the memory is made of a non-volatile element such as an EEPROM and holds the base address register 5 and the identification information holding register 1. The current LAN card can be given a MAC global address (hereinafter referred to as "MAC address"), which is the only one in the world and has a hexadecimal 12-digit address. This is defined as the IEEE (American Electrical and Electronic Engineers Boundary) standard, and manufacturers can obtain a certain range of addresses by applying and registering with IEEE, and uniquely assign it to their products. . This address is for distinction in the world of LAN, and the same value of M
No other LAN card has an AC address (which is quite different from the address on the bus). In the present embodiment, this is used as identification information to distinguish each optional device and determine the address on the bus.

【0027】他に、識別情報保持レジスタ1のビットを
指定する対象ビット指定レジスタ2、識別情報チェック
手段(プログラム)3、状態制御手段(プログラム)
4、特殊コマンドレジスタ6、およびその他の制御レジ
スタ群7がある。本発明に関係のないその他の制御レジ
スタ群7については言及しない。
Besides, a target bit designation register 2 for designating a bit of the identification information holding register 1, identification information check means (program) 3, state control means (program)
4, special command register 6, and other control register group 7. Other control register groups 7 not related to the present invention will not be mentioned.

【0028】本体装置20はプロセサ21とメモリ22他より
成り、識別情報チェック指示手段31、復帰・停止指示手
段32、解除指示手段33を有するアドレス設定機構プログ
ラムを動作させる。
The main unit 20 is composed of a processor 21, a memory 22, etc., and operates an address setting mechanism program having an identification information check instruction means 31, a return / stop instruction means 32, and a release instruction means 33.

【0029】同じアドレスを設定した複数のカード10a,
10b,10c があるとき、バス30上でそのアドレスを指定す
ると複数のカード10a,10b,10c が同時に応答する。従っ
て、このままその内部の情報を読もうとしても、正常に
読み出すことができない。また、それぞれに異なる内容
を書き込むこともできない。
A plurality of cards 10a having the same address set,
When there are 10b and 10c, when the address is specified on the bus 30, a plurality of cards 10a, 10b and 10c simultaneously respond. Therefore, even if the internal information is read as it is, it cannot be read normally. Also, different contents cannot be written in each.

【0030】本実施例のカード10a,10b,10c は、バス30
を介してプロセサ21から与えられた特殊コマンドを解読
・実行する機能をもつ。特殊コマンドは、識別情報チェ
ックコマンド、復帰コマンド、停止コマンド、解除コマ
ンドの形で与えられる。これらのコマンドは、プロセサ
21がアドレス空間上の定められたレジスタ(図3に示し
た特殊コマンドレジスタ)に書き込むことにより指示
する。これはアドレスバッファ13、データバッファ14を
経由し、メモリ12上の特殊コマンドレジスタ6に書き込
まれる。
The cards 10a, 10b, 10c of this embodiment are the bus 30
It has the function of decoding and executing the special command given from the processor 21 via. The special command is given in the form of an identification information check command, a return command, a stop command, and a release command. These commands
21 designates by writing in a specified register (special command register shown in FIG. 3) in the address space. This is written in the special command register 6 on the memory 12 via the address buffer 13 and the data buffer 14.

【0031】以下、図1および、図2の動作説明フロー
チャートを参照して本発明の実施例の動作を説明する。
本体装置20がバス30を介して識別情報チェックコマンド
を与える(P1,S1) たびに、同じアドレスの各カード10a,
10b,10c は、対象ビット指定レジスタ2で指定されたM
ACアドレスのビット(対象ビット:初期状態では最下
位ビット)を見て(S2)、‘0’であれば応答し(S3)、
‘1’であれば応答しないで一時停止状態になる(S4)。
この対応は、逆に‘1’であれば応答し、‘0’であれ
ば無応答であるようにしてもよい。
The operation of the embodiment of the present invention will be described below with reference to the operation explanation flow charts of FIG. 1 and FIG.
Every time the main unit 20 gives an identification information check command via the bus 30 (P1, S1), each card 10a,
10b and 10c are M designated by the target bit designation register 2
Look at the bit (target bit: least significant bit in the initial state) of the AC address (S2), and if it is '0', respond (S3),
If it is "1", it does not respond and enters a pause state (S4).
On the contrary, this correspondence may be such that if it is "1", it responds, and if it is "0", it does not respond.

【0032】この後、対象ビット指定レジスタ2の内容
を歩進させ(S5)、対象ビットを1つ隣(上位)のビット
に変更する。なお、対象ビット変更コマンドを設けてそ
の指示に従って対象ビットを変更するようにしてもよ
い。
After that, the contents of the target bit designation register 2 are incremented (S5) and the target bit is changed to the next (upper) bit. The target bit change command may be provided and the target bit may be changed according to the instruction.

【0033】識別情報チェックコマンドに対して、どれ
かが応答すれば(複数個でもよい。ただしこの段階では
区別はできない)、本体装置20は停止コマンドを発行す
る(P3)。このコマンドがでると、一時停止状態のカード
(応答しなかったカード)は停止状態となり(S7,S10)、
その後は解除コマンド以外には反応しなくなる。仮に全
カードの対象ビットが‘1’であれば、どのカードも応
答しないので、本体装置20はタイムアウト等により検出
する(P2)。このとき本体装置20は、復帰コマンドを発行
する(P4)。このコマンドにより、一時停止状態のカード
は再び動作状態になり(S7,S8) 、識別情報チェック・コ
マンドに反応するようになる。
If any of the identification information check commands responds (there may be a plurality, but it cannot be distinguished at this stage), the main body device 20 issues a stop command (P3). When this command is issued, the card in the suspended state (card that did not respond) is in the stopped state (S7, S10),
After that, it responds only to the release command. If the target bit of all the cards is "1", no card responds, and the main body device 20 detects the timeout or the like (P2). At this time, the main body device 20 issues a return command (P4). By this command, the card in the suspended state is activated again (S7, S8), and responds to the identification information check command.

【0034】再び識別情報チェック・コマンドを与える
と(P1)、カードはMACアドレスの1つ上位のビットを
対象ビットとしてチェックする。以下、前述したと同様
の動作を行う。
When the identification information check command is given again (P1), the card checks the bit one higher than the MAC address as the target bit. Hereinafter, the same operation as described above is performed.

【0035】以上の処理をMACアドレスのビット数回
だけ繰り返すと、最後には動作状態にあるカードは1つ
だけとなる。この状態では、(全てのビットを処理した
後に最後に残った)カードに対して通常のバス動作をさ
せることができる。従って、このカードのベースアドレ
スレジスタ5に書込みを行い(P6)、反応しなくなった他
のカードとは違うアドレスに設定を変更する。これで、
このカードは他のカードと分離された。
When the above-mentioned processing is repeated for the number of bits of the MAC address, only one card is in operation at the end. In this state, the card (the last one left after processing all the bits) can be put into normal bus operation. Therefore, the base address register 5 of this card is written (P6), and the setting is changed to an address different from that of other cards that have stopped responding. with this,
This card was separated from other cards.

【0036】他のカード(アドレスを変更してないカー
ド)に対して解除コマンドを発行すると(P7)、それらは
初期状態にもどる。それらのカードに対しては再び最初
(P1)から同様の操作をすることにより、次々に一意のア
ドレスを与えることができる。
When a cancel command is issued to another card (card whose address has not been changed) (P7), they return to the initial state. Again for those cards first
By performing the same operation from (P1), unique addresses can be given one after another.

【0037】これらの処理の具体例を以下に説明する。
この例では、3枚のカードのMACアドレスが以下のも
のであるとする。 カード10a のMAC アト゛レス(ヒ゛ット列) 00・・・・101110110101 カード10b のMAC アト゛レス(ヒ゛ット列) 00・・・・101110101001 カード10c のMAC アト゛レス(ヒ゛ット列) 00・・・・101110011001 1.識別情報チェックコマンド発行。(初期状態では対
象ビットは最下位ビットである。) 識別情報チェックコマンドを受けると、各カードは最下
位ビットを調べる。 ⇒ 全てのカードが‘1’なので一時停止状態になり、
どれも応答しない。 2.応答がないのでタイムアウトを検出。復帰コマンド
発行。
Specific examples of these processes will be described below.
In this example, the MAC addresses of the three cards are as follows. Card 10a MAC address (bit row) 00 ... 101110110101 Card 10b MAC address (bit row) 00. Issue identification information check command. (In the initial state, the target bit is the least significant bit.) When receiving the identification information check command, each card checks the least significant bit. ⇒Because all the cards are '1', they are in a suspended state,
None respond. 2. Timeout is detected because there is no response. Issue a return command.

【0038】⇒ 各カードは動作状態にもどる。 3.識別情報チェックコマンド発行。(各カードはすで
に対象ビットを1ビット上位に変更している。) ⇒各カードは下位から2ビット目を調べる。
⇒ Each card returns to the operating state. 3. Issue identification information check command. (Each card has already changed the target bit to 1 bit higher.) ⇒ Each card checks the second bit from the lower bit.

【0039】⇒ 全てのカードが‘0’なので応答す
る。 4.応答があったので停止コマンドを発行。(⇒ 一時
停止状態のカードがないので特に変化はない。) 5.識別情報チェックコマンド発行。
=> All cards are '0', so respond. 4. Since there was a response, a stop command was issued. (⇒ There is no card in a suspended state, so there is no particular change.) Issue identification information check command.

【0040】⇒ 各カードは下位から3ビット目を調べ
る。() ⇒ カード10a は‘1’なので一時停止状態になる。 ⇒ カード10b 、10c は‘0’なので応答する。 6.応答があるので、停止コマンド発行。
⇒ Each card checks the third bit from the lower order. () ⇒ Card 10a is "1", so it is suspended. => Cards 10b and 10c respond because they are '0'. 6. Since there is a response, issue a stop command.

【0041】⇒ 一時停止状態にあるカード10a は停止
状態になる。 7.識別情報チェックコマンド発行。 ⇒ 全て(カード10b 、10c )‘1’なので一時停止状
態になり応答しない。() (カード10a はすでに停止状態にあるので、‘0’でも
反応しない) 8.タイムアウトを検出し、復帰コマンドを発行。
⇒ The card 10a in the suspended state is in the suspended state. 7. Issue identification information check command. ⇒ All (cards 10b, 10c) are '1', so they are in a suspended state and do not respond. () (Card 10a is already in a stopped state, so it does not respond even if it is '0') 8. Detects a timeout and issues a return command.

【0042】⇒ カード10b 、10c は動作状態にもど
る。(カード10a は停止状態にあるので、このとき動作
状態とはならない) 9.識別情報チェックコマンド発行。
⇒ The cards 10b and 10c return to the operating state. (Because the card 10a is in the stopped state, it does not enter the operating state at this time.) Issue identification information check command.

【0043】⇒ カード10c は‘1’なので一時停止に
なる。 10.応答がある(カード10b )ので、停止コマンドを発
行。 ⇒ カード10c は停止状態になる。
⇒ Since the card 10c is "1", it is temporarily stopped. Ten. Since there is a response (card 10b), issue a stop command. ⇒ Card 10c is stopped.

【0044】以下、同様の操作を最上位ビットまで繰り
返すことにより、動作状態にあるカードは1つだけ(カ
ード10b )とすることができる。 11.このとき、バスの標準的な操作により、ベースアド
レスレジスタを書き直せば、動作可能なカードのアドレ
ス空間上の割り付け位置は別のものになる。
Thereafter, the same operation is repeated up to the most significant bit so that only one card (card 10b) is in the operating state. 11. At this time, if the base address register is rewritten by standard operation of the bus, the allocation position in the address space of the operable card becomes different.

【0045】アドレスの値は、そのカードに許されてい
る範囲内で(一般に、ハードウェア、ソフトウェア上の
制約がある)、既設のカードのアドレス領域と重ならな
いようにする。 12.そして、解除コマンドにより初期状態に戻す。
The address value should not overlap with the address area of an existing card within the range allowed for the card (generally, due to hardware and software restrictions). 12. Then, it is returned to the initial state by the release command.

【0046】これ以後、同様の操作を行えば、カード10
c をカード10a から分離することができる。(カード10
b は、既に別のアドレスになっているので対象外であ
る。) 本実施例のLANカードでは識別情報としてMACアド
レスを利用したが、このような情報が得られない種類の
カードにおいては、製造番号等のシリアル番号を識別情
報として書き込んでおくようにすればよい。なお、この
場合、識別情報をカードの種類にかかわらず(LANカ
ードも含めて)同じ形式で同じ場所に設定し、アドレス
設定の場所も同じにしておけば、アドレス設定用のプロ
グラムの構成を容易にすることができる。
If the same operation is performed thereafter, the card 10
c can be separated from the card 10a. (Card 10
b is excluded because it already has a different address. Although the MAC address is used as the identification information in the LAN card of the present embodiment, the serial number such as the serial number may be written as the identification information in the type of card for which such information cannot be obtained. . In this case, if the identification information is set to the same location in the same format (including LAN cards) regardless of the card type and the address setting location is the same, the configuration of the address setting program is easy. Can be

【0047】[0047]

【発明の効果】以上説明したように、本発明によれば、
同種のオプション装置等で同じアドレス設定のしてある
ものがバス上に複数ある場合でも、自動的に異なるアド
レス空間に割り付けることができる。従ってオプション
装置の抜き指しをせずにアドレス設定を自動的に行うこ
とができる。
As described above, according to the present invention,
Even if there are a plurality of optional devices of the same type having the same address setting on the bus, they can be automatically assigned to different address spaces. Therefore, the address setting can be automatically performed without pointing out the optional device.

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

【図1】 実施例の構成図FIG. 1 is a configuration diagram of an embodiment.

【図2】 動作説明フローチャート[Fig. 2] Operation explanation flowchart

【図3】 アドレス割り付け説明図[Figure 3] Address allocation explanatory diagram

【符号の説明】[Explanation of symbols]

1 識別情報保持手段 2 対象ビット指定手段 3 識別情報チェック手段 4 状態制御手段 5 ベースアドレスレジスタ 6 特殊コマンドレジスタ 7 その他の制御レジスタ群 10a,10b,10c オプション装置(LANカード) 11 マイクロプロセサ 12 メモリ 13 アドレスバッファレジスタ 14 データバッ
ファレジスタ 20 本体装置 21 プロセサ 22 メモリ 31 識別情報チェック手段 32 復帰・停止指示手段 33 解除指示手段
1 identification information holding means 2 target bit designating means 3 identification information checking means 4 state control means 5 base address register 6 special command register 7 other control register group 10a, 10b, 10c option device (LAN card) 11 microprocessor 12 memory 13 Address buffer register 14 Data buffer register 20 Main unit 21 Processor 22 Memory 31 Identification information check means 32 Return / stop instruction means 33 Release instruction means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 情報処理装置のバスに接続されて動作す
るオプション装置であって、以下の手段をもつもの。 他のオプション装置とは異なる値を保持する、所定ビ
ットからなる識別情報保持手段。 識別情報のチェック対象となるビットを指定し、チェ
ック後、対象ビットの指定を変更する、対象ビット指定
手段。 バスからの指示に応じて、対象ビット指定手段の指定
する識別情報のビットをチェックし、 結果があらかじめ定められた値であればバスに対して応
答し、 そうでなければ応答せずに、それ以後チェック指示は受
け付けない一時停止状態になるように制御する、識別情
報チェック手段。 バスからの指示に応じて、一時停止状態から動作状態
に復帰し、あるいは一時停止状態から解除指示以外は受
け付けない停止状態に移行し、あるいは停止状態から動
作状態にもどるように制御する、状態制御手段。
1. An optional device which is connected to a bus of an information processing device to operate and has the following means. An identification information holding unit having a predetermined bit, which holds a value different from those of other optional devices. Target bit designation means for designating a bit to be checked for identification information, and changing the designation of the target bit after the check. In response to the instruction from the bus, the bit of the identification information designated by the target bit designating means is checked, and if the result is a predetermined value, it responds to the bus, otherwise it does not respond and Identification information checking means for controlling so that a check instruction is not accepted thereafter so as to be in a suspended state. In response to an instruction from the bus, it returns from the suspended state to the operating state, or shifts from the suspended state to the stopped state that does not accept any instruction other than the release instruction, or controls to return from the stopped state to the operating state. means.
【請求項2】 請求項1に記載のオプション装置に対し
て、以下の操作を行う手段をもつ、情報処理装置。 識別情報の1ビットをチェックすることを指示する手
段。 その指示に対して応答の有無を判定し、応答があれ
ば、一時停止状態にある装置は停止状態に移行するよう
に指示し、応答がなければ、一時停止状態にある装置は
動作状態に復帰するように指示する手段。 停止状態から動作状態にもどるよう指示する手段。
2. An information processing apparatus having means for performing the following operations with respect to the option device according to claim 1. Means for instructing to check 1 bit of identification information. Whether or not there is a response to the instruction, if there is a response, the device in the suspended state is instructed to shift to the suspended state, and if there is no response, the device in the suspended state returns to the operating state. Means to instruct you to do. A means to instruct to return from the stopped state to the operating state.
JP7046892A 1995-03-07 1995-03-07 Option device and information processor connected therewith Withdrawn JPH08241264A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7046892A JPH08241264A (en) 1995-03-07 1995-03-07 Option device and information processor connected therewith

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7046892A JPH08241264A (en) 1995-03-07 1995-03-07 Option device and information processor connected therewith

Publications (1)

Publication Number Publication Date
JPH08241264A true JPH08241264A (en) 1996-09-17

Family

ID=12760020

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7046892A Withdrawn JPH08241264A (en) 1995-03-07 1995-03-07 Option device and information processor connected therewith

Country Status (1)

Country Link
JP (1) JPH08241264A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100707323B1 (en) * 1999-05-28 2007-04-13 소니 가부시끼 가이샤 Information processing apparatus and method, and recording medium
JP2015510375A (en) * 2012-03-14 2015-04-02 ローベルト ボッシュ ゲゼルシャフト ミット ベシュレンクテル ハフツング How to drive a network
JP2016115338A (en) * 2014-12-12 2016-06-23 インテル コーポレイション Device, system and method for allocating identifiers to components of control system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100707323B1 (en) * 1999-05-28 2007-04-13 소니 가부시끼 가이샤 Information processing apparatus and method, and recording medium
JP2015510375A (en) * 2012-03-14 2015-04-02 ローベルト ボッシュ ゲゼルシャフト ミット ベシュレンクテル ハフツング How to drive a network
JP2016115338A (en) * 2014-12-12 2016-06-23 インテル コーポレイション Device, system and method for allocating identifiers to components of control system
US9602464B2 (en) 2014-12-12 2017-03-21 Intel Corporation Apparatus, system and method for allocating identifiers to components of a control system

Similar Documents

Publication Publication Date Title
US5878238A (en) Technique for supporting semi-compliant PCI devices behind a PCI-to-PCI bridge
US5428748A (en) Method and apparatus for automatically configuring a computer peripheral
US5072411A (en) Computer system which can operate in a plurality of display modes
JP2525997B2 (en) I / O interrupt subclass recognition method
US5553245A (en) Automatic configuration of multiple peripheral interface subsystems in a computer system
JP2547654B2 (en) Data processing device
JPH09244987A (en) Computer system, pc card controller, and method for controlling data input and output transfer in computer system having plural pc card controllers
JPH02267634A (en) Interrupt system
US6212587B1 (en) Device proxy agent for hiding computing devices on a computer bus
EP0098172B1 (en) Register control processing system
US5781796A (en) System for automatic configuration of I/O base address without configuration program using readout data on common bus by responding device
US6546483B1 (en) Method and apparatus for configuring a device assigned to a fixed address space
JPH08241264A (en) Option device and information processor connected therewith
EP1146421B1 (en) Removable electronic device to enhance the functionality of a main processor and control method therefor
US5343557A (en) Workstation controller with full screen write mode and partial screen write mode
US5668936A (en) Printer for exclusively selecting a host apparatus and a command system for use with the selected host apparatus
US5375236A (en) Down line-loading start control system
JP3649178B2 (en) Information processing device
US6314482B1 (en) Method and system for indexing adapters within a data processing system
JP3613274B2 (en) Information processing device
KR940011048B1 (en) Method of and device for addressing extended memory
JPH0934726A (en) Interruption control method
KR19990032037A (en) Isa System with Plug and Play Capability of Multiple Logic Units
JP3117253B2 (en) Computer system
JPH07248927A (en) Input/output emulation circuit and data checking circuit

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20020507