JPH0444148A - Address assigning device - Google Patents

Address assigning device

Info

Publication number
JPH0444148A
JPH0444148A JP2152080A JP15208090A JPH0444148A JP H0444148 A JPH0444148 A JP H0444148A JP 2152080 A JP2152080 A JP 2152080A JP 15208090 A JP15208090 A JP 15208090A JP H0444148 A JPH0444148 A JP H0444148A
Authority
JP
Japan
Prior art keywords
enable
write
signal
input terminal
bus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2152080A
Other languages
Japanese (ja)
Other versions
JPH077372B2 (en
Inventor
Kazu Hanawa
塙 和
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.)
Tektronix Japan Ltd
Original Assignee
Sony Tektronix Corp
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 Sony Tektronix Corp filed Critical Sony Tektronix Corp
Priority to JP2152080A priority Critical patent/JPH077372B2/en
Publication of JPH0444148A publication Critical patent/JPH0444148A/en
Publication of JPH077372B2 publication Critical patent/JPH077372B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Memory System (AREA)

Abstract

PURPOSE:To attain the assignment of addresses to the peripheral devices from a central controller by writing successively the addresses into the storage means of the peripheral devices of plural stages connected to the central controller via a bus. CONSTITUTION:A central controller 14 outputs a write signal and a write enable signal to its own write output terminal and enable output terminal respectively and at the same time outputs a data signal to a bus 13. Each of peripheral devices 16 - 22 receives a write signal through a write input terminal in a valid period of the write enable signal received through an enable input terminal and then writes the data signal received from the bus 13 into each of storage means 16a - 22a respectively. At the same time, the write enable signal received through the enable input terminal is transmitted through the enable output terminal. Therefore the write enable signal passes successively through the enable input terminal and the enable output terminal of each of devices 16 - 22. Thus the contents of the data signals written into the means 16a - 22a of the devices 16 - 22 are used as the addresses of these devices 16 - 22.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、中央制御装置にバスを介して接続された複数
段の周辺装置の各々に、中央制御装置によりアドレスを
割り当てるアドレス割当て装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an address assignment device in which an address is assigned by a central controller to each of a plurality of stages of peripheral devices connected to the central controller via a bus.

[従来の技術] 第4図は、従来のアドレス割当て装置の構成を示すブロ
ック図である。中央制御装置2にバス12を介して複数
の周辺装置4〜10が接続されている。なお、バス12
は、アドレス・バス、データ・バスを含むだけでなく、
その他の信号2例えば、デコード信号やコントロール信
号を伝送するためのバスを全て含んでいるものとする。
[Prior Art] FIG. 4 is a block diagram showing the configuration of a conventional address assignment device. A plurality of peripheral devices 4 to 10 are connected to the central control device 2 via a bus 12. In addition, bus 12
includes address bus, data bus as well as
Other signals 2 For example, it is assumed that all buses for transmitting decode signals and control signals are included.

このような構成では、中央制御装置2からバス12を介
して各周辺装置4〜10の各々を個別に制御するために
、中央制御装置2から、各周辺装置4〜10に対してア
ドレスを割り当てなければならない。
In such a configuration, in order to individually control each of the peripheral devices 4 to 10 from the central control device 2 via the bus 12, addresses are assigned from the central control device 2 to each of the peripheral devices 4 to 10. There must be.

周辺装置4〜10に対するアドレスの割当ては、例えば
、以下に示す方法が行われている。即ち、各周辺装置4
〜10の各々に、デイツプ・スイッチ(DSW)4a〜
10aを設け、これらに夫々異なる値を設定する。周辺
装置4〜10は、DSW4a〜10aに設定された値と
、中央制御装置2からのアドレス・デコード信号とを比
較する。
For example, the following method is used to allocate addresses to the peripheral devices 4 to 10. That is, each peripheral device 4
~10, dip switch (DSW) 4a~
10a, and set different values to these. The peripheral devices 4-10 compare the values set in the DSWs 4a-10a with the address decode signal from the central controller 2.

上記DSW4aNIOaの設定値と、アドレス・デコー
ド信号とが対応した場合にのみ、その対応した当該周辺
装置へ中央制御装置2がアクセスできるようにする。つ
まり、周辺装置4axlOaのDSW4a〜10aの設
定値に応じて、アドレスが割当てられるのである。
Only when the setting value of the DSW 4aNIOa corresponds to the address decode signal, the central control unit 2 is allowed to access the corresponding peripheral device. In other words, addresses are assigned according to the setting values of the DSWs 4a to 10a of the peripheral device 4axlOa.

[発明が解決しようとする課題] しかし、上述した従来のアドレス割当て方法では、次の
問題があった。即ち、デイツプ・スイッチを操作者がい
ちいち設定しなければならないため、設定操作が煩雑で
あり、このため、設定ミスが避けられない。
[Problems to be Solved by the Invention] However, the conventional address allocation method described above has the following problems. That is, since the operator must set the dip switch one by one, the setting operation is complicated, and therefore, setting errors are inevitable.

なお、上述した方法とは別に、周辺装置に対するアドレ
ス割当て方法が、以下のように提案されている。それは
、例えば、VMEバス等のマルチパスを使用した方法で
あり、各バスの規格として定められているものである。
Note that, apart from the above-mentioned method, the following method of allocating addresses to peripheral devices has been proposed. For example, this is a method using a multipath such as a VME bus, and is defined as a standard for each bus.

このような方法では、周辺装置に対するアドレス割当て
を自動的に行うため、上述した欠点は解消される。しか
し、この方法を実現するためには、当然、規格に定めら
れたバスを使用しなければならない。しかも、中央制御
装置が周辺装置を識別するために、複雑なハードウェア
を個々の周辺装置側に設けなければならないという欠点
があった。
In such a method, the above-mentioned drawbacks are eliminated because addresses are automatically assigned to peripheral devices. However, in order to implement this method, it is naturally necessary to use a bus specified by the standard. Moreover, in order for the central control unit to identify the peripheral devices, complicated hardware must be installed on each peripheral device.

従って、本発明の目的の1つは、デイツプ・スイッチを
設定する等の人手による操作を必要とせずに、中央制御
装置から周辺装置へのアドレス割当てができるアドレス
割当て装置を提供することである。また、本発明の他の
目的は、アドレス割当て動作のために必要なハードウェ
ア及びその制御手順が単純なアドレス割当て装置を提供
することである。
SUMMARY OF THE INVENTION Accordingly, one object of the present invention is to provide an address assignment device that allows addresses to be assigned from a central controller to peripheral devices without requiring manual operations such as setting dip switches. Another object of the present invention is to provide an address assignment device that requires simple hardware and control procedures for address assignment operations.

[課題を解決するための手段] 本発明のアドレス割当て装置では、中央制御装置は、書
込み出力端子及びイネーブル出力端子を有する。周辺装
置の各々は、中央制御装置の書込み出力端子に共通に接
続された書込み入力端子、イネーブル入力端子、イネー
ブル出力端子及び記憶手段を夫々有する。初段の周辺装
置のイネーブル入力端子は、中央制御装置のイネーブル
出力端子に接続され、次段以降の周辺装置の各々のイネ
ーブル入力端子は、前段の周辺装置のイネーブル出力端
子に接続される。
[Means for Solving the Problems] In the address assignment device of the present invention, the central control unit has a write output terminal and an enable output terminal. Each of the peripheral devices has a write input terminal, an enable input terminal, an enable output terminal, and a storage means, respectively, commonly connected to the write output terminal of the central controller. The enable input terminal of the first stage peripheral device is connected to the enable output terminal of the central controller, and the enable input terminal of each subsequent stage peripheral device is connected to the enable output terminal of the previous stage peripheral device.

[作用] 本発明のアドレス割当て装置によれば、中央制御装置は
、その中央制御装置の書込み出力端子及びイネーブル出
力端子に書込み信号及び書込みイネーブル信号を夫々出
力すると共に、バスにデータ信号を出力する。周辺装置
の各々は、イネーブル入力端子からの書込みイネーブル
信号の有効期間中に書込み入力端子からの書込み信号を
受けると、バスからのデータ信号を記憶手段に書込み、
イネーブル入力端子からの書込みイネーブル信号をイネ
ーブル出力端子に通過させる。従って、書込みイネーブ
ル信号は、順次、周辺装置の各々のイネーブル入力端子
及びイネーブル出力端子を通過する。この結果、各周辺
装置の記憶手段の各々に書き込まれたデータ信号の内容
がその周辺装置のアドレスとなる。
[Operation] According to the address assignment device of the present invention, the central control unit outputs a write signal and a write enable signal to the write output terminal and enable output terminal of the central control unit, respectively, and outputs a data signal to the bus. . When each of the peripheral devices receives a write signal from the write input terminal during a valid period of the write enable signal from the enable input terminal, each of the peripheral devices writes the data signal from the bus to the storage means;
A write enable signal from the enable input terminal is passed to the enable output terminal. Accordingly, the write enable signal passes sequentially through the enable input and enable output terminals of each peripheral device. As a result, the content of the data signal written in each of the storage means of each peripheral device becomes the address of that peripheral device.

[実施例] 次に、本発明のアドレス割当て装置に関わる実施例を図
面を参照して説明する。
[Embodiment] Next, an embodiment related to the address assignment device of the present invention will be described with reference to the drawings.

第1図は、本発明のアドレス割当て装置の構成を示すブ
ロック図である。このアドレス割当て装置は、中央制御
装置14にバス13を介して接続された複数段の周辺装
置16. 18. 20. 22の各々に、中央制御装
置14によりアドレスを割り当てる。バス13は、アド
レス信号、データ信号、アドレス・デコード信号、及び
その他の制御信号を伝送するためのものである。なお、
本明細書において、各信号名の前に付した「/」は、当
該信号がアクティブ・ロウの信号であることを表す。中
央制御装置14は、書込み出力端子30、イネーブル出
力端子40を有している。中央制御装置14は、書込み
出力端子30及びイネーブル出力端子40に書込み信号
/A書込みイネーブル信号/Elを夫々出力する。また
、これと共に、各周辺装置16〜22に割り当てるアド
レスを表すデータ信号をバス13に出力する。周辺装置
16〜22の各々は、以下の端子を夫々有している。
FIG. 1 is a block diagram showing the configuration of an address assignment device according to the present invention. This address assignment device comprises a plurality of stages of peripheral devices 16 . connected to a central control device 14 via a bus 13 . 18. 20. 22 is assigned an address by the central controller 14. Bus 13 is for transmitting address signals, data signals, address decode signals, and other control signals. In addition,
In this specification, the "/" prefix to each signal name indicates that the signal is an active low signal. The central controller 14 has a write output terminal 30 and an enable output terminal 40. The central controller 14 outputs a write signal /A write enable signal /El to a write output terminal 30 and an enable output terminal 40, respectively. At the same time, a data signal representing an address to be assigned to each peripheral device 16 to 22 is output to the bus 13. Each of the peripheral devices 16 to 22 has the following terminals.

即ち、中央制御装置14の書込み出力端子30に共通に
接続された書込み入力端子32. 34. 36.38
、イネーブル入力端子42. 44. 46゜48、及
びイネーブル出力端子50. 52. 54゜56であ
る。また、周辺装置16〜22は、中央制御装置14が
周辺装置16〜22に割り当てたアドレスを記憶するた
めの記憶手段16a〜22aを有している。初段の周辺
装置16のイネーブル入力端子42は、中央制御装置1
4のイネーブル出力端子40に接続されている。また、
次段以降の周辺装置18,20.22の各々のイネーブ
ル入力端子44,46.48は、前段の周辺装置のイネ
ーブル出力端子50,52.54に夫々接続されている
That is, a write input terminal 32 .commonly connected to a write output terminal 30 of the central controller 14 . 34. 36.38
, enable input terminal 42. 44. 46°48, and enable output terminal 50. 52. It is 54°56. Further, the peripheral devices 16-22 have storage means 16a-22a for storing addresses assigned to the peripheral devices 16-22 by the central control device 14. The enable input terminal 42 of the first-stage peripheral device 16 is connected to the central controller 1.
It is connected to the enable output terminal 40 of No. 4. Also,
The enable input terminals 44, 46.48 of the peripheral devices 18, 20.22 in the subsequent stages are respectively connected to the enable output terminals 50, 52.54 of the peripheral devices in the previous stage.

次に、このようにして構成されたアドレス割当て装置の
動作について説明する。
Next, the operation of the address assignment device configured in this manner will be explained.

まず、周辺装置16は、イネーブル入力端子42からの
書込みイネーブル信号/Elの有効期間中に書込み入力
端子32からの書込み信号/Aを受けると、中央制御装
置14からバス13を介して出力されたデータ信号を記
憶手段16aに書込む。このデータ信号の内容が、当該
周辺装置16のアドレスとなる。更に、周辺装置16は
、上記アドレスの書込みと共に、イネーブル入力端子4
2からの書込みイネーブル信号/Elをイネーブル出力
端子50に通過させる。通過した信号を書込みイネーブ
ル信号/E2とする。この書込みイネーブル信号/E2
は、次段の周辺装置18のイネーブル入力端子44に与
える。次に、周辺装置18は、上述と同様の書込み動作
を行う。即ち、周辺装置18は、イネーブル入力端子4
4からの書込みイネーブル信号/E2の有効期間中に書
込み入力端子34からの書込み信号/Aを受けると、中
央制御装置14からバス13を介して出力されたデータ
信号を記憶手段18aに書込む。このデータ信号の内容
が、当該周辺装置18のアドレスとなる。更に、周辺装
置18は、上記アドレスの書込みと共に、イネーブル入
力端子44からの書込みイネーブル信号/E2をイネー
ブル出力端子52に通過させる。通過した信号を書込み
イネーブル信号/E3とする。この書込みイネーブル信
号/E3は、次段の周辺装置20のイネーブル入力端子
46に与える。以下、同様のアドレス割り当て動作を行
うことにより、イネーブル信号/E4、/E5が、夫々
周辺装置20.22から出力されると共に、周辺装置2
2まで、順次、アドレスが割り当てられる。
First, when the peripheral device 16 receives the write signal /A from the write input terminal 32 during the valid period of the write enable signal /El from the enable input terminal 42, the peripheral device 16 receives the write signal /A from the central controller 14 via the bus 13. The data signal is written into the storage means 16a. The content of this data signal becomes the address of the peripheral device 16. Further, the peripheral device 16 writes the address and also writes the enable input terminal 4.
The write enable signal /El from 2 is passed to the enable output terminal 50. The signal that has passed is defined as a write enable signal /E2. This write enable signal /E2
is applied to the enable input terminal 44 of the peripheral device 18 at the next stage. Peripheral device 18 then performs a write operation similar to that described above. That is, the peripheral device 18 is connected to the enable input terminal 4.
When the write signal /A from the write input terminal 34 is received during the valid period of the write enable signal /E2 from the central controller 14, the data signal outputted from the central controller 14 via the bus 13 is written into the storage means 18a. The content of this data signal becomes the address of the peripheral device 18. Further, the peripheral device 18 passes the write enable signal /E2 from the enable input terminal 44 to the enable output terminal 52 while writing the address. The passed signal is designated as a write enable signal /E3. This write enable signal /E3 is applied to the enable input terminal 46 of the peripheral device 20 at the next stage. Thereafter, by performing similar address allocation operations, enable signals /E4 and /E5 are output from peripheral devices 20 and 22, respectively, and enable signals /E4 and /E5 are output from peripheral devices 20 and 22, respectively.
Addresses are sequentially assigned up to 2.

次に、中央制御装置14及び周辺装置16〜22の動作
について、第2図に示す回路図、及びこれに対応する第
3図のタイムチャートを参照して、詳細に説明する。
Next, the operations of the central control device 14 and the peripheral devices 16 to 22 will be described in detail with reference to the circuit diagram shown in FIG. 2 and the corresponding time chart shown in FIG. 3.

第2図は、本発明の一実施例における周辺装置の一部分
を示す回路図である。なお、第一2図において、第1図
に相当する部分には同一の符号を付している。バッファ
60は、書込みイネーブル信号/Elが有効時にイネー
ブルとなって、書込み信号/Aをアンド・ゲート66に
与える。バス13と、周辺装置16内部のデータ・バス
BDとの間の信号の授受は、バス・バッファ62を介し
て行われる。バス・バッファ62は、後述のマルチプレ
クサ74の出力端子Qからの出力信号が有効になった時
にイネーブルされて、データの授受が可能となる。バッ
ファ64には、バス13上のデータのうちの4ビット分
のデータが入力する。書込みイネーブル信号/Elによ
り、バッファ64がイネーブルされると、バッファ64
を通過した4ビツトのデータは、レジスタ68の入力端
子D1〜D4に与えられる。これらのデータは、アンド
・ゲート66を通過した書込み信号/Aの立ち」二がリ
エッジで、4ビツトのレジスタ68に取り込まれて、そ
の出力端子01〜の4にアクティブ・ロウで出力される
。なお、このレジスタ68は、第1図の記憶手段16a
に相当するものである。
FIG. 2 is a circuit diagram showing a portion of a peripheral device in an embodiment of the present invention. In FIG. 12, parts corresponding to those in FIG. 1 are given the same reference numerals. Buffer 60 is enabled when write enable signal /El is valid and provides write signal /A to AND gate 66 . Signals are exchanged between the bus 13 and the data bus BD inside the peripheral device 16 via the bus buffer 62. The bus buffer 62 is enabled when an output signal from an output terminal Q of a multiplexer 74, which will be described later, becomes valid, and data can be exchanged. Four bits of data of the data on the bus 13 is input to the buffer 64 . When the buffer 64 is enabled by the write enable signal /El, the buffer 64
The 4-bit data passed through is applied to input terminals D1 to D4 of register 68. These data are taken into the 4-bit register 68 at the rising edge of the write signal /A which has passed through the AND gate 66, and are output as active low to its output terminals 01-4. Note that this register 68 is similar to the storage means 16a in FIG.
This corresponds to

周辺装置16のアドレスは、3ビツトのデータとして、
レジスタ68に格納される。レジスタ68に書き込まれ
る残りの1ビツトのデータは、レジスタ68にアドレス
が書き込まれたか、否かを示す書込み完了信号として使
用する。この書込み完了信号については、後で説明する
。また、レジスタ68から出力された4ビツトのデータ
は、バッファ76を通過して周辺装置16内のデータ・
バスBDに出力される。また、レジスタ68から出力さ
れた3ビツトのアドレス・データの各々は、マルチプレ
クサ74の制御入力端子C1−03に与えられる。この
アドレス・データに従って、マルチプレクサ74は、そ
の入力端子D3〜D6に印加された4個のデコード信号
DSI〜DS4の中から1個を選択して、出力端子Qに
出力する。
The address of the peripheral device 16 is expressed as 3-bit data.
It is stored in register 68. The remaining 1-bit data written to register 68 is used as a write completion signal indicating whether an address has been written to register 68 or not. This write completion signal will be explained later. Furthermore, the 4-bit data output from the register 68 passes through the buffer 76 and is stored as data in the peripheral device 16.
It is output to bus BD. Further, each of the 3-bit address data output from the register 68 is applied to the control input terminal C1-03 of the multiplexer 74. According to this address data, multiplexer 74 selects one of the four decode signals DSI-DS4 applied to its input terminals D3-D6 and outputs it to output terminal Q.

この出力端子Qに出力される信号が有効(rLJ)にな
ったとき、中央制御装置14から周辺装置16が選択さ
れたことになる。マルチプレクサ74の出ツノ端子Qか
ら出力される信号により、上述のバス・バッファ62が
イネーブルとなる。従って、周辺装置16の内部のデー
タ・バスBDと、バス13との間で、データの授受が行
われ、即ち、周辺装置16が選択されることになる。マ
ルチプレクサ74の出力信号によりイネーブルされるデ
コーダ78は、中央制御装置14から、バス13及び周
辺装置16内のアドレス・バスBAを介して与えられる
アドレス信号を受ける。デコーダ78は、受けたアドレ
ス信号をデコードして、周辺装置16内の各素子2例え
ば、バッファ、メモリ。
When the signal output to the output terminal Q becomes valid (rLJ), it means that the peripheral device 16 has been selected by the central controller 14. The signal output from the output terminal Q of the multiplexer 74 enables the bus buffer 62 described above. Therefore, data is exchanged between the internal data bus BD of the peripheral device 16 and the bus 13, that is, the peripheral device 16 is selected. A decoder 78, enabled by the output signal of multiplexer 74, receives address signals provided from central controller 14 via bus 13 and address bus BA in peripheral device 16. The decoder 78 decodes the received address signal to each element 2 in the peripheral device 16, such as a buffer or a memory.

その他の素子等をイネーブルするイネーブル信号を出ノ
Jしたり、その他の制御信号を出力したりする。即ち、
周辺装置内の素子の各々に対して、アドレスが割り当て
られている。なお、周辺装置16内のデータ・バスBD
と同様に、周辺装置16内のアドレス・バスBAは、図
示しないバス・バッファを介してバス13に接続されて
いる。また、これらバス・バッファは、3ステート・バ
ッファであるため、イネーブル信号の他にも制御信号を
必要する。しかし、本実施例では、動作上関連がないの
で、上記制御信号を省略している。
It outputs enable signals that enable other elements, etc., and outputs other control signals. That is,
Each of the elements within the peripheral device is assigned an address. Note that the data bus BD in the peripheral device 16
Similarly, address bus BA in peripheral device 16 is connected to bus 13 via a bus buffer (not shown). Furthermore, since these bus buffers are three-state buffers, they require control signals in addition to enable signals. However, in this embodiment, the above-mentioned control signal is omitted because it has no operational relevance.

次に、第3図のタイムチャートを参照して、第2図の回
路動作を説明する。
Next, the operation of the circuit shown in FIG. 2 will be explained with reference to the time chart shown in FIG.

まず、中央制御装置14は、イネーブル入力端子42へ
の書込みイネーブル信号/Elを有効(「LJ)にする
(第3図(A))。この結果、バッファ60及びバッフ
ァ64がイネーブルされると共に、アンド・ゲート72
の入力端子の一方が「L」となる。次に、周辺装置16
に割り当てるアドレスを示すデータ信号をバス13に出
力する。従って、そのデータ信号は、バッファ64を通
過して、レジスタ68の入力端子に与えられる。
First, the central controller 14 enables the write enable signal /El to the enable input terminal 42 ("LJ") (FIG. 3(A)).As a result, the buffers 60 and 64 are enabled, and and gate 72
One of the input terminals becomes "L". Next, the peripheral device 16
A data signal indicating an address to be assigned to the bus 13 is output to the bus 13. Therefore, the data signal passes through buffer 64 and is applied to the input terminal of register 68.

そのアドレス信号が確定した後(第3図(C))、中央
制御装置14は、書込み信号/Aを出力する(第3図(
B))。この書込み信号/Aは、イネーブル状態のバッ
ファ60及びアンド・ゲート66を通過して、レジスタ
68のクロック入力端子に印加される。この結果、書込
み信号/Aの立ち上がりエツジで、レジスタ68の入力
端子D1〜D4に印加されているデータは、レジスタ6
8に書き込まれる。なお、この書込み動作前に行われる
初期設定により、レジスタ68はリセットされており、
レジスタ68の出力端子Ql−Q4は、予め、全てrH
J状態になっている。このため、上記書込み動作により
、レジスタ68のデータ入力端子D1〜D3には、上述
したようなアドレスを示すデータ信号が出力することに
なる。なお、レジスタ68の出力端子Q4から、書込み
動作が完了したことを示す書込み完了信号/Bを出力さ
せるために、データ入力端子D4には、 r HJの信
号が与えられる。従って、書込み動作の前後で、レジス
タ68の出力端子Q4の状態は、 rHJからrLJに
変化する。即ち、書込み完了信号/Bの状態が、 「1
1」ならば、書込み前を示しており、rLJならば、書
込み後を示している。この書込み完了信号/Bは、アン
ド・ゲート72の入力端子に至る。従って、アンド・ゲ
ート72の出力信号、即ち、書込みイネーブル信号/E
2は、書込み完了信号/Bが有効(「L」)になると同
時に、有効(「L」)になる(第3図(D))。この書
込みイネーブル信号/E2は、イネーブル出力端子50
を通過して、次段の周辺装置18のイネーブル入力端子
44に与えられる。また、上記書込み完了信号/Bは、
インバータ70を介してアンド・ゲート66に至る。即
ち、書込み完了信号/Bが有効(rLJ)になると、ア
ンド・ゲート66は閉状態となるため、それ以降、バッ
ファ60を介して入力してくる書込み信号/Aの通過を
禁止する。このため、レジスタ68に対する再書込みは
、禁止されることになる。
After the address signal is determined (FIG. 3(C)), the central controller 14 outputs the write signal /A (FIG. 3(C)).
B)). This write signal /A passes through enabled buffer 60 and AND gate 66 and is applied to the clock input terminal of register 68. As a result, at the rising edge of the write signal /A, the data being applied to the input terminals D1 to D4 of the register 68 is
8 is written. Note that the register 68 has been reset by the initial settings performed before this write operation.
The output terminals Ql-Q4 of the register 68 are all rH in advance.
It is in J state. Therefore, as a result of the write operation, a data signal indicating the address as described above is output to the data input terminals D1 to D3 of the register 68. Note that in order to cause the output terminal Q4 of the register 68 to output a write completion signal /B indicating that the write operation has been completed, a signal rHJ is applied to the data input terminal D4. Therefore, before and after the write operation, the state of the output terminal Q4 of the register 68 changes from rHJ to rLJ. That is, the state of the write completion signal /B is "1".
1'' indicates before writing, and rLJ indicates after writing. This write completion signal /B reaches the input terminal of AND gate 72. Therefore, the output signal of AND gate 72, i.e., the write enable signal /E
2 becomes valid (``L'') at the same time that the write completion signal /B becomes valid (``L'') (FIG. 3(D)). This write enable signal /E2 is applied to the enable output terminal 50.
, and is applied to the enable input terminal 44 of the peripheral device 18 at the next stage. In addition, the write completion signal /B is
It reaches AND gate 66 via inverter 70 . That is, when the write completion signal /B becomes valid (rLJ), the AND gate 66 is closed, so that the write signal /A inputted through the buffer 60 is prohibited from passing through from then on. Therefore, rewriting to register 68 is prohibited.

このような動作が行われた結果、周辺装置16にアドレ
スが割当てられる。更に、上述と同様の動作が、順次、
周辺装置18,20.22で行われる。その結果、第3
図(E)、  (F)、  (G)に示すように、書込
みイネーブル信号/E3゜/E4./E5が、周辺装置
18,20.22のイネーブル出力端子52,54.5
6から出力される。これらの動作については、繰り返し
になるので、その説明を省略する。
As a result of such operations, an address is assigned to the peripheral device 16. Furthermore, the same operation as above is performed sequentially.
This is done in the peripheral devices 18, 20.22. As a result, the third
As shown in Figures (E), (F), and (G), the write enable signal /E3°/E4. /E5 is the enable output terminal 52, 54.5 of the peripheral device 18, 20.22.
It is output from 6. Since these operations will be repeated, their explanation will be omitted.

上述のように、アドレス割当て動作を行うことにより、
中央制御装置14からみたアドレス・マツプ上に、周辺
装置16〜22の各々を割り当てることができる。従っ
て、中央制御装置14からバス13を介して周辺装置1
6〜22へ、割り当てたアドレスに対応するアドレス・
デコード信号DSI〜DS4を与えることにより、所望
の周辺装置を選択することができ、且つ、選択した周辺
装置を個別に制御することができる。
As mentioned above, by performing the address assignment operation,
Each of the peripheral devices 16-22 can be assigned on an address map viewed from the central controller 14. Therefore, from the central control unit 14 via the bus 13 the peripheral device 1
From 6 to 22, enter the address corresponding to the assigned address.
By applying decode signals DSI to DS4, a desired peripheral device can be selected and the selected peripheral device can be individually controlled.

更に、上述のアドレス割当て動作が正確に行われたか、
否かを調べる場合は、以下のようにすればよい。即ち、
第1図でいえば、中央制御装置14から各周辺装置16
〜22に割り当てたアドレ+5− スが、各周辺装置16〜22の記憶手段16a〜22a
に格納されたことを確認すれば、アドレス割当て動作が
正確に行われたか、否かを確認できる。このことを第2
図を参照して説明する。即ち、選択する周辺装置のアド
レスに対応するアドレス・デコード信号DSL−DS4
を出力することにより、例えば、周辺装置16を選択す
る。これにより、マルチプレクサ74の出力端子Qの出
力信号は、 「L」となり、デコーダ78をイネーブル
する。このデコーダ78には、バス13からのアドレス
信号が入力している。レジスタ68の出力信号を受ける
バッファ76をイネーブルする信号をrLJにするよう
に、アドレス信号を設定する。
Furthermore, whether the above address allocation operation was performed correctly,
If you want to check whether this is the case, you can do the following. That is,
In FIG. 1, from the central control device 14 to each peripheral device 16
The addresses +5- assigned to 22 are stored in the storage means 16a to 22a of each peripheral device 16 to 22.
By confirming that the address has been stored in , it is possible to confirm whether or not the address assignment operation was performed correctly. This is the second
This will be explained with reference to the figures. That is, the address decode signal DSL-DS4 corresponding to the address of the peripheral device to be selected
For example, by outputting , the peripheral device 16 is selected. As a result, the output signal at the output terminal Q of the multiplexer 74 becomes "L", enabling the decoder 78. An address signal from the bus 13 is input to this decoder 78 . The address signal is set so that the signal that enables the buffer 76 that receives the output signal of the register 68 is rLJ.

これにより、レジスタ68に格納されているデータ、即
ち、周辺装置16に割当てたアドレスは、順次、バッフ
ァ76、周辺装置16内のデータ・バスBD、  及び
バス・バッファ62を経由してバス13に出力される。
As a result, the data stored in the register 68, that is, the address assigned to the peripheral device 16, is sequentially transferred to the bus 13 via the buffer 76, the data bus BD in the peripheral device 16, and the bus buffer 62. Output.

この結果、中央制御装W14は、周辺装置16に割り当
てたアドレスを読み取ることができる。このようにして
周辺装置16から読み出したアドレスと、初めに周辺装
置16に割り当てたアドレスとを比較することにより、
正確にアドレスの割当て動作が行われたか、否かを確認
することができる。従って、これと同様の動作を各周辺
装置18〜22に対して順次行うことにより、アドレス
割当て動作の確認ができる。
As a result, the central control unit W14 can read the address assigned to the peripheral device 16. By comparing the address read from the peripheral device 16 in this way with the address initially assigned to the peripheral device 16,
It is possible to confirm whether or not the address assignment operation was performed correctly. Therefore, by sequentially performing a similar operation to each of the peripheral devices 18 to 22, the address assignment operation can be confirmed.

上述のように、アドレスの割当ての確認を行うことによ
り、何台の周辺装置からアドレスを読み出したかという
ことを計数することは容易である。
As described above, by confirming address assignment, it is easy to count how many peripheral devices have read addresses.

このことを利用すれば、以下のような利点が生じる。即
ち、第1図の場合、4個の周辺装置16〜22のうち、
例えば、周辺装置20が接続されていなかったときを考
える。この場合、書込みイネーブル信号は、周辺装置1
8までは至る。しかし、次段に存在すべきイネーブル入
力端子46及びイネーブル出力端子54が存在しないの
で、書込みイネーブル信号は、周辺装置22に入力され
ない。
If this fact is utilized, the following advantages will arise. That is, in the case of FIG. 1, among the four peripheral devices 16 to 22,
For example, consider a case where the peripheral device 20 is not connected. In this case, the write enable signal is
It reaches up to 8. However, the write enable signal is not input to the peripheral device 22 because the enable input terminal 46 and the enable output terminal 54 that should be present in the next stage do not exist.

この結果、周辺装置22に対するアドレスの割当ては行
われない。次に、上述したアドレス割当ての確認をする
と、周辺装置18までのアドレスは読み出せるが、次段
以降のアドレスは読み出せない。従って、2個の周辺装
置16.18にしかアドレス割当てが行われていないこ
とが、中央制御装置14により認識される。従って、中
央制御装置14において、接続されるべき周辺装置の個
数と、アドレス割当てがなされた周辺装置の個数とを比
較すれば、所定数の周辺装置が正しく接続されているか
、否かを自動的に判定することができるという利点があ
る。
As a result, no address is assigned to the peripheral device 22. Next, when the above-mentioned address assignment is confirmed, the addresses up to the peripheral device 18 can be read, but the addresses from the next stage onward cannot be read. Therefore, it is recognized by the central control unit 14 that only two peripheral devices 16, 18 have been assigned addresses. Therefore, by comparing the number of peripheral devices to be connected and the number of peripheral devices to which addresses have been assigned in the central control unit 14, it can be automatically determined whether a predetermined number of peripheral devices are correctly connected. It has the advantage that it can be determined.

上述したように、本発明のアドレス割当て装置によれば
、中央制御装置14にバスを介して接続された複数段の
周辺装置16〜22の記憶手段16a〜22aの各々に
、順次、アドレスが書き込まれる。従って、デイツプ・
スイッチを設定する等の人手による操作を必要とせずに
、中央制御装置から周辺装置へのアドレス割当てを行う
ことができる。このため、従来と違って、デイツプ・ス
イッチの煩雑な設定操作を必要としない。また、デイツ
プ・スイッチの設定ミスによる誤動作を防止できるとい
った利点がある。
As described above, according to the address assignment device of the present invention, addresses are sequentially written into each of the storage means 16a to 22a of the plurality of peripheral devices 16 to 22 connected to the central controller 14 via a bus. It will be done. Therefore, deep
Addresses can be assigned from the central controller to the peripheral devices without requiring manual operations such as setting switches. Therefore, unlike the conventional method, there is no need for complicated setting operations of dip switches. Another advantage is that malfunctions due to incorrect settings of the dip switch can be prevented.

また、これらのアドレス割当て動作を実現するために必
要なハードウェアは、第2図の回路図に示すような単純
な構成により実現できる。また、そのハードウェアの制
御手順は、第3図のタイムチャートに示すように、簡単
である。
Further, the hardware necessary to realize these address assignment operations can be realized by a simple configuration as shown in the circuit diagram of FIG. Further, the hardware control procedure is simple, as shown in the time chart of FIG.

なお、第2図に示した実施例では、4ビツト構成のレジ
スタ68を使用している。4ビツトのうちの3ビツトは
、周辺装置に割当てるアドレスを格納するために使用し
た。この理由について説明する。2ビツト分あれば、4
種類のアドレスを表現することができるため、4台の周
辺装置16〜22に割り当てるアドレスを格納できるは
ずである。しかし、初期設定により、レジスタ68がリ
セットされた状態を別に示す必要がある。従って、レジ
スタ68で使用するビットを1ビツト増やして、3ビツ
ト分をアドレス格納のために使用しているのである。
In the embodiment shown in FIG. 2, a 4-bit register 68 is used. Three of the four bits were used to store addresses assigned to peripheral devices. The reason for this will be explained. If there are 2 bits, 4
Since different types of addresses can be expressed, it should be possible to store addresses to be assigned to the four peripheral devices 16-22. However, due to initial settings, it is necessary to separately indicate the state in which the register 68 is reset. Therefore, the number of bits used in register 68 is increased by one, and three bits are used for address storage.

以上本発明の好適実施例について説明したが、本発明は
ここに説明した実施例のみに限定されるものではなく、
本発明の要旨を逸脱することなく2〇− 必要に応じて種々の変形及び変更を実施し得ることは当
業者には明らかである。
Although preferred embodiments of the present invention have been described above, the present invention is not limited to the embodiments described herein.
It will be apparent to those skilled in the art that various modifications and changes can be made as necessary without departing from the spirit of the invention.

[発明の効果] 以」二説明したように、本発明のアドレス割当て装置に
よれば、中央制御装置にバスを介して接続された複数段
の周辺装置の記憶手段の各々に、順次、アドレスが書き
込まれる。従って、従来と違って、デイツプ・スイッチ
を設定する等の人手による操作を必要とせずに、中央制
御装置から周辺装置へのアドレス割当てを行うことがで
きる。このため、操作性が向上すると共に、デイツプ・
スイッチの設定ミスによる誤動作を防止できる利点があ
る。また、アドレス割当て動作を実現するために必要な
ハードウェア、及びその制御手順は、単純なものでよい
という効果がある。また、周辺装置に割り当てたアドレ
スを読出すことにより、アドレス割当てされた周辺装置
の個数を計数すれば、周辺装置が所定個数接続されてい
るか、否かを判別することができるという効果がある。
[Effects of the Invention] As explained below, according to the address assignment device of the present invention, addresses are sequentially assigned to each of the storage means of a plurality of stages of peripheral devices connected to a central control unit via a bus. written. Therefore, unlike the conventional art, addresses can be assigned from the central controller to the peripheral devices without requiring manual operations such as setting dip switches. This not only improves operability, but also improves the depth and depth.
This has the advantage of preventing malfunctions due to incorrect switch settings. Another advantage is that the hardware and control procedures needed to implement the address assignment operation can be simple. Furthermore, by reading out the addresses assigned to peripheral devices and counting the number of peripheral devices to which addresses have been assigned, it is possible to determine whether a predetermined number of peripheral devices are connected.

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

第1図は、本発明のアドレス割当て装置の構成を示すブ
ロック図、第2図は、本発明の一実施例における周辺装
置の一部を示す回路図、第3図は、同実施例におけるア
ドレス割当て動作に対応するタイムチャート、第4図は
、従来のアドレス割当て装置の構成を示すブロック図で
ある。 13 : 14= 16〜22: 16a〜22 a: 68: バス 中央制御装置 周辺装置 記憶手段 レジスタ(記憶手段)
FIG. 1 is a block diagram showing the configuration of an address assignment device of the present invention, FIG. 2 is a circuit diagram showing a part of a peripheral device in an embodiment of the present invention, and FIG. 3 is an address allocation device in the same embodiment. FIG. 4, a time chart corresponding to the allocation operation, is a block diagram showing the configuration of a conventional address allocation device. 13: 14= 16-22: 16a-22 a: 68: Bus central controller peripheral device storage means register (storage means)

Claims (1)

【特許請求の範囲】 中央制御装置にバスを介して接続された複数段の周辺装
置の各々に、上記中央制御装置によりアドレスを割り当
てるアドレス割当て装置において、上記中央制御装置は
、書込み出力端子及びイネーブル出力端子を有し、これ
ら書込み出力端子及びイネーブル出力端子に書込み信号
及び書込みイネーブル信号を夫々出力すると共に、上記
バスにデータ信号を出力し、 上記周辺装置の各々は、上記中央制御装置の書込み出力
端子に共通に接続された書込み入力端子、イネーブル入
力端子、イネーブル出力端子及び記憶手段を夫々有し、 初段の上記周辺装置のイネーブル入力端子は、上記中央
制御装置のイネーブル出力端子に接続され、次段以降の
上記周辺装置の各々のイネーブル入力端子は、前段の上
記周辺装置のイネーブル出力端子に接続され、 上記周辺装置の各々は、上記イネーブル入力端子からの
上記書込みイネーブル信号の有効期間中に上記書込み入
力端子からの上記書込み信号を受けると、上記バスから
の上記データ信号を上記記憶手段に書込み、上記イネー
ブル入力端子からの上記書込みイネーブル信号を上記イ
ネーブル出力端子に通過させ、 上記周辺装置の各々の上記記憶手段に書き込まれた上記
データ信号の内容がその周辺装置のアドレスとなること
を特徴とするアドレス割当て装置。
[Scope of Claims] An address assignment device in which the central controller allocates an address to each of a plurality of stages of peripheral devices connected to the central controller via a bus, wherein the central controller has a write output terminal and an enable terminal. each of the peripheral devices outputs a write signal and a write enable signal to the write output terminal and the enable output terminal, respectively, and outputs a data signal to the bus, and each of the peripheral devices outputs a write output of the central controller. A write input terminal, an enable input terminal, an enable output terminal, and a storage means are respectively connected to the terminals in common, and the enable input terminal of the peripheral device in the first stage is connected to the enable output terminal of the central controller, and the enable input terminal of the peripheral device in the first stage is connected to the enable output terminal of the central controller, and The enable input terminal of each of the peripheral devices in the subsequent stage is connected to the enable output terminal of the peripheral device in the previous stage, and each of the peripheral devices receives the write enable signal from the enable input terminal during the validity period of the write enable signal from the enable input terminal. Upon receiving said write signal from said write input terminal, said data signal from said bus is written to said storage means, said write enable signal from said enable input terminal is passed to said enable output terminal, and each of said peripheral devices An address assignment device characterized in that the content of said data signal written in said storage means of said device becomes an address of said peripheral device.
JP2152080A 1990-06-11 1990-06-11 Address assignment device Expired - Lifetime JPH077372B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2152080A JPH077372B2 (en) 1990-06-11 1990-06-11 Address assignment device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2152080A JPH077372B2 (en) 1990-06-11 1990-06-11 Address assignment device

Publications (2)

Publication Number Publication Date
JPH0444148A true JPH0444148A (en) 1992-02-13
JPH077372B2 JPH077372B2 (en) 1995-01-30

Family

ID=15532617

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2152080A Expired - Lifetime JPH077372B2 (en) 1990-06-11 1990-06-11 Address assignment device

Country Status (1)

Country Link
JP (1) JPH077372B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021095387A1 (en) * 2019-11-13 2021-05-20 日本電産サーボ株式会社 Device driving apparatus and device driving system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01240957A (en) * 1988-03-23 1989-09-26 Yokogawa Electric Corp Information processor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01240957A (en) * 1988-03-23 1989-09-26 Yokogawa Electric Corp Information processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021095387A1 (en) * 2019-11-13 2021-05-20 日本電産サーボ株式会社 Device driving apparatus and device driving system

Also Published As

Publication number Publication date
JPH077372B2 (en) 1995-01-30

Similar Documents

Publication Publication Date Title
JPS6259822B2 (en)
JPH11513823A (en) Data error detection and correction for shared SRAM
JPH04363746A (en) Microcomputer system having dma function
US3768075A (en) Extensible microprogram store
JPS63116258A (en) Data processing system
JPH0444148A (en) Address assigning device
US20060206633A1 (en) System and method for DMA transfer
JPS6086642A (en) Setting system of memory control information
JPS5960488A (en) Data writing unit for color graphic memory
JPH02136921A (en) Register access system
JPH05166391A (en) Memory device
JPS6126700B2 (en)
KR960001096B1 (en) Booting drive system
JPH08249289A (en) Memory controller and its control method
JPS63197251A (en) Information processor
JPS6232818B2 (en)
JPH0431939A (en) External storage device
KR19980050038A (en) Interface chip and internal register access method of interface chip
JPH03257655A (en) Identification number applying system
JPH04319752A (en) System bus control system for information processor
JPH0520165A (en) System bus controller
JPH0554665A (en) Memory device and semiconductor device with built-in memory device
JPS63829B2 (en)
JPH01158545A (en) Control system for memory
JPH04109350A (en) Data write control device