JP2001022710A - System with multiple bus controllers - Google Patents
System with multiple bus controllersInfo
- Publication number
- JP2001022710A JP2001022710A JP11196211A JP19621199A JP2001022710A JP 2001022710 A JP2001022710 A JP 2001022710A JP 11196211 A JP11196211 A JP 11196211A JP 19621199 A JP19621199 A JP 19621199A JP 2001022710 A JP2001022710 A JP 2001022710A
- Authority
- JP
- Japan
- Prior art keywords
- bus
- processor
- memory
- access
- control device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Multi Processors (AREA)
Abstract
(57)【要約】
【課題】プロセッサ間のデータ転送を効率よく行うこと
が可能なシステムを提供すること。
【解決手段】バス制御装置30は、プロセッサ1を接続
するためのプロセッサバス2と、メモリを接続するため
のメモリバス12と、複数のプロセッサ1を相互に接続
する共通バス4と、複数のプロセッサ1が共通バス4を
介して接続されたときプロセッサ1夫々がバス制御装置
30夫々のメモリバス12に接続されたメモリ3の空間
を共有するための回路31〜40とを具備する。
(57) [Problem] To provide a system capable of efficiently performing data transfer between processors. A bus control device includes a processor bus for connecting a processor, a memory bus for connecting a memory, a common bus for interconnecting a plurality of processors, and a plurality of processors. Each of the processors 1 includes circuits 31 to 40 for sharing the space of the memory 3 connected to the memory bus 12 of each of the bus controllers 30 when the processors 1 are connected via the common bus 4.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、複数のバス制御装
置を有するシステムに関し、特に、複数のプロセッサを
同一バス上に接続し各プロセッサ間で高い信頼性の下で
データ転送を行う、電子計算機、電子機器、電気機器を
はじめとするシステムに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system having a plurality of bus controllers, and more particularly, to an electronic computer which connects a plurality of processors on the same bus and transfers data between the processors with high reliability. And systems related to electronic devices and electric devices.
【0002】[0002]
【従来の技術】従来、複数のプロセッサを共通バスに接
続するシステムは、一般に、図11に示すような共有メ
モリ方式が用いられている。これは、複数のプロセッサ
1間で1つのメモリ5を共有する方式であり、プロセッ
サ1はプロセッサバス2を介してバス制御装置3に接続
され、各プロセッサ1に対応するバス制御装置3は共通
バス4を介してメモリ5に接続されている。実装形態に
よってはアドレスがインターリーブされた複数メモリが
配置されることがあるが、この場合でも本質的には単一
メモリである。2. Description of the Related Art Conventionally, a system for connecting a plurality of processors to a common bus generally uses a shared memory system as shown in FIG. This is a system in which one memory 5 is shared among a plurality of processors 1. The processor 1 is connected to a bus controller 3 via a processor bus 2, and the bus controller 3 corresponding to each processor 1 4 is connected to a memory 5. Depending on the implementation, a plurality of memories with interleaved addresses may be arranged, but even in this case it is essentially a single memory.
【0003】また、この種の複数のプロセッサを共通バ
スに接続するシステムでは、システム内部のプロセッサ
バス及び共通バスのクロックは同期している必要がある
が、従来、図12に示すように、クロック回路6からの
クロック信号は、各プロセッサ1に対応した逓倍回路7
を通して、各プロセッサ1に与えられ、これにより、同
期クロック方式にて複数のプロセッサ1は共通バス4に
て接続されるようになっている。In a system in which a plurality of processors of this type are connected to a common bus, the clocks of the processor bus and the common bus in the system need to be synchronized. Conventionally, as shown in FIG. The clock signal from the circuit 6 is supplied to a multiplication circuit 7 corresponding to each processor 1.
, The plurality of processors 1 are connected by a common bus 4 in a synchronous clock system.
【0004】さらに、この種の複数のプロセッサを共通
バスに接続するシステムで、図13に示すように、各プ
ロセッサ1のシステム内識別番号を認識するためには、
外部から識別番号生成回路8を設け、これにより識別番
号を符号化した信号をそれぞれのプロセッサ1、又はバ
ス制御装置3に与える必要があった。Further, in a system in which a plurality of processors of this kind are connected to a common bus, as shown in FIG.
It is necessary to provide an identification number generation circuit 8 from the outside, and to provide a signal obtained by encoding the identification number to each processor 1 or the bus control device 3.
【0005】また、この種の複数のプロセッサを共通バ
スに接続するシステムで、プロセッサバスの形態は、図
14に示すように、例えば、A型プロセッサ1Aに対
し、バス制御装置3にはA専用インターフェース3Aを
設け、B型プロセッサ1Bに対し、バス制御装置3には
B専用インターフェース3Bを設けるとように特定のプ
ロセッサに対する専用インターフェースを設けるもので
あるか、又は図15に示すように、プロセッサ1を接続
回路9を用い、スタティックメモリなどの汎用インター
フェース型のインターフェース3Cを有するバス制御回
路3に接続するものであった。In this type of system in which a plurality of processors are connected to a common bus, the form of the processor bus is, for example, as shown in FIG. An interface 3A is provided, and a dedicated interface for a specific processor is provided for the B-type processor 1B such that the B control device 3 is provided with the B-dedicated interface 3B, or as shown in FIG. Is connected to a bus control circuit 3 having a general-purpose interface type interface 3C such as a static memory using a connection circuit 9.
【0006】さらに図16に示すように、この種の複数
のプロセッサを共通バスに接続するシステムでは、デー
タ転送中にバスに異常が発生し、応答信号がプロセッサ
バス2に対して一定時間帰らなかった場合には、外部に
て、タイムアウトを監視し、バス制御装置3にリセット
を与えるタイマ回路10及びリセット信号生成回路11
が必要であった。Further, as shown in FIG. 16, in a system in which a plurality of processors of this type are connected to a common bus, an error occurs in the bus during data transfer, and a response signal does not return to the processor bus 2 for a predetermined time. In this case, a timer circuit 10 and a reset signal generation circuit 11 which externally monitor a timeout and reset the bus control device 3 are provided.
Was needed.
【0007】また図17に示すように、従来、この種の
複数のプロセッサを共通バスに接続するシステムでは、
プロセッサからアクセスする自メモリ領域の空間アドレ
スを指定するレジスタ(内部メモリアドレスレジスタ)
14と、バス制御装置を経由して他のプロセッサに接続
されたバス制御装置下のメモリ空間アドレスを指定する
レジスタ(外部へのメモリアドレスレジスタ)15と、
他のバス制御装置から自メモリ空間に対してアクセスさ
れるメモリ空間アドレスを指定するレジスタ(外部から
のメモリアドレスレジスタ)16とはそれぞれ別個に存
在していた。As shown in FIG. 17, in a conventional system in which a plurality of processors of this kind are connected to a common bus,
Register that specifies the space address of the local memory area accessed by the processor (internal memory address register)
A register (an external memory address register) 15 for designating a memory space address under the bus controller connected to another processor via the bus controller;
A register (external memory address register) 16 that specifies a memory space address accessed from another bus control device to its own memory space exists separately.
【0008】さらに従来、この種の複数のプロセッサを
共通バスに接続するシステムでは、図18に示すよう
に、プロセッサ1を介することなくバス制御装置3間の
メモリを転送するためには、共通バス4に例えばDMA
制御器17を付加し、一度、DMA制御器17が転送元
のバス制御装置3下のメモリ13を読み出し、その後、
転送先のバス制御装置3下のメモリ13に書き込むとい
う操作が必要であった。Conventionally, in a system in which a plurality of processors of this kind are connected to a common bus, as shown in FIG. 18, in order to transfer a memory between the bus controllers 3 without passing through the processor 1, a common bus is required. For example, DMA in 4
A controller 17 is added, and once the DMA controller 17 reads out the memory 13 under the transfer source bus controller 3,
An operation of writing to the memory 13 under the transfer destination bus control device 3 was required.
【0009】[0009]
【発明が解決しようとする課題】しかし、図11乃至図
18に示す従来の方式では、以下に述べる問題点があ
る。すなわち、図11に示す方式の場合、複数のプロセ
ッサ1に対してメモリ5が単一でか存在しなかった。こ
の場合、あるプロセッサ1からのデータ転送は一度、共
通バス4上の共有メモリ5を介して行なわれる。転送元
のプロセッサ1から共通バス4上のメモリ5にデータが
書かれ、その後に転送先のプロセッサ1が共通バス4上
のメモリ5からデータを読み出すことにより、1単位の
転送が行われる。この場合1単位の転送につき共通バス
4のアクセスは2回行なわれ、データ転送に多くの時間
を必要とする問題がある。However, the conventional methods shown in FIGS. 11 to 18 have the following problems. In other words, in the case of the method shown in FIG. In this case, data transfer from a certain processor 1 is performed once via a shared memory 5 on a common bus 4. Data is written from the transfer source processor 1 to the memory 5 on the common bus 4, and thereafter, the transfer destination processor 1 reads out the data from the memory 5 on the common bus 4, thereby performing one-unit transfer. In this case, access to the common bus 4 is performed twice for one unit transfer, and there is a problem that much time is required for data transfer.
【0010】また、図11に示す方式では、システムで
一つのメモリ5を所有するため、このメモリ5に致命的
な欠陥が生じた場合、全てのプロセッサ1間のデータ転
送が不能となり、プロセッサ間通信が中断してしまう問
題がある。。In the method shown in FIG. 11, since one memory 5 is owned by the system, if a fatal defect occurs in this memory 5, data transfer between all processors 1 becomes impossible, and There is a problem that communication is interrupted. .
【0011】図12に示す方式の場合、共通バス4のク
ロック及びプロセッサバス2は同期し、またプロセッサ
バス2及び共通バス4は同一の周波数クロックで設定さ
れたり、さらにプロセッサバス2の周波数を整数で除算
した周波数で共通バス4のクロックが設定される場合が
あった。これら、いずれの場合も、クロック位相は同期
している必要があり、共通バス4を介して複数のプロセ
ッサ1を結合する場合には、全てのプロセッサバス2の
クロックは誤差のない、位相の均一な周波数で実装しな
ければならない。In the case of the system shown in FIG. 12, the clock of the common bus 4 and the processor bus 2 are synchronized, the processor bus 2 and the common bus 4 are set with the same frequency clock, and the frequency of the processor bus 2 is set to an integer. In some cases, the clock of the common bus 4 is set at the frequency divided by (1). In any of these cases, the clock phase must be synchronized. When a plurality of processors 1 are connected via the common bus 4, the clocks of all the processor buses 2 have no error and have a uniform phase. Must be implemented at different frequencies.
【0012】このような回路を実現するためには、共通
バス4のクロックを元に、外部に逓倍回路7を実装し
て、プロセッサバス2のクロックを作成する必要があ
り、実装上、コスト上の問題が生じた。In order to realize such a circuit, it is necessary to externally mount a multiplying circuit 7 based on the clock of the common bus 4 and create a clock for the processor bus 2. The problem arose.
【0013】図13に示す方式の場合、各プロセッサ1
のシステム内識別番号を認識するためには、識別番号生
成回路8を設け、外部から識別番号を符号化した信号を
それぞれのプロセッサ1又はバス制御装置3に与える必
要があるため、通常の転送に係わる信号の他に、識別番
号用の信号線が各プロセッサ1又は各プロセッサ1に接
続されたバス制御装置3に必要となり、実装上又はコス
ト上の問題が生じた。In the case of the system shown in FIG.
In order to recognize the in-system identification number, it is necessary to provide an identification number generation circuit 8 and provide a signal obtained by encoding the identification number from the outside to each processor 1 or the bus control device 3. In addition to the related signals, a signal line for an identification number is required for each processor 1 or the bus control device 3 connected to each processor 1, resulting in mounting or cost problems.
【0014】図14,図15に示す方式の場合、バス制
御装置3のプロセッサバス2が専用インターフェース3
Aであるとすると、複数の種類のプロセッサ1を実装す
るためにそれぞれプロセッサバス2のインターフェース
の異なるバス制御装置3を用意しなければならず、コス
ト上の問題が生じた。また、バス制御装置のプロセッサ
バスが汎用インターフェース3Cであるとすると、プロ
セッサバス2と汎用インターフェース3Cを接続するた
めの接続回路9が必要となり、実装上、コスト上の問題
が生じた。In the case of the system shown in FIGS. 14 and 15, the processor bus 2 of the bus controller 3
In the case of A, a bus controller 3 having a different interface of the processor bus 2 must be prepared in order to mount a plurality of types of processors 1, resulting in a cost problem. Further, when the processor bus of the bus control device is the general-purpose interface 3C, a connection circuit 9 for connecting the processor bus 2 and the general-purpose interface 3C is required, which causes problems in mounting and cost.
【0015】図16に示す方式の場合、共通バスのアク
セスに対して異常を検出するためにはタイマ回路10及
びリセット信号生成回路11等の外部回路が必要とな
り、回路実装上の制約が生じる場合があった。また、タ
イムアウト検出後のリセットは、バス制御装置3のすべ
ての機能をリセットしてしまうため、本来、タイムアウ
トによってリセットを行う必要のない部分もリセットし
てしまう可能性があった。In the case of the method shown in FIG. 16, an external circuit such as a timer circuit 10 and a reset signal generating circuit 11 is required to detect an abnormality in access to the common bus, and there is a restriction on circuit mounting. was there. Further, since resetting after the detection of the timeout resets all functions of the bus control device 3, there is a possibility that a portion that does not need to be reset due to a timeout may be reset.
【0016】図17に示す方式の場合、プロセッサ1か
らアクセスする自メモリ領域の空間アドレスを指定する
レジスタ14と、バス制御装置3を経由して他のプロセ
ッサ1に接続されたバス制御装置3下のメモリ空間アド
レスを指定するレジスタ15と、他のバス制御装置3か
ら自メモリ空間に対してアクセスされるメモリ空間アド
レスを指定するレジスタ16はそれぞれに別個に存在す
るため、回路実装上問題が生じることがあった。またこ
れらのレジスタのアドレス設定に食い違いが生じると、
プロセッサ間のメモリ参照ができなくなってしまう可能
性があった。In the case of the system shown in FIG. 17, a register 14 for specifying a space address of its own memory area accessed from the processor 1 and a bus control device 3 connected to another processor 1 via the bus control device 3 Register 15 for designating a memory space address of the memory device and a register 16 for designating a memory space address accessed from another bus control device 3 to its own memory space exist separately. There was something. Also, if there is a discrepancy in the address setting of these registers,
There was a possibility that memory reference between processors could not be performed.
【0017】図18に示す場合、共通バス4上にデータ
転送制御を行うためのDMA制御器17が必要となり、
それを外部回路で実現しなければならず、実装上、コス
ト上の問題が生じた。また、この方式で実現した場合
は、1単位の転送において共通バスのアクセスは転送元
からDMA制御器17に対して、DMA制御器17から
転送先に対しての書き込みの計2回必要となり、効率的
なデータ転送が行われない問題があった。In the case shown in FIG. 18, a DMA controller 17 for controlling data transfer on the common bus 4 is required.
This has to be realized by an external circuit, which causes mounting and cost problems. In addition, in the case of realization by this method, access to the common bus in one unit transfer requires a total of two times of writing from the transfer source to the DMA controller 17 and writing from the DMA controller 17 to the transfer destination. There was a problem that efficient data transfer was not performed.
【0018】本発明の第1の目的は、プロセッサバス−
メモリバス間の転送速度が共通バス−メモリバス間の転
送速度より高速であることを利用し、各プロセッサに接
続されたバス制御装置のメモリバスに分散してメモリを
配置することで、プロセッサ間で必要なデータ転送速度
を上げることが可能なシステムを提供することにある。A first object of the present invention is to provide a processor bus.
Utilizing that the transfer speed between the memory buses is higher than the transfer speed between the common bus and the memory bus, the memory is distributed and arranged on the memory buses of the bus control device connected to each processor, so that the It is an object of the present invention to provide a system capable of increasing a required data transfer speed.
【0019】また、各バス制御装置に分散してメモリを
配置するために1ケ所のメモリに致命的な欠陥が生じて
も、該メモリに関わらないプロセッサ間での通信を継続
することを可能にし、もって耐故障性の高いプロセッサ
間通信を実現するシステムを提供することにある。Further, since the memories are distributed to the respective bus controllers, even if a fatal defect occurs in one memory, communication between processors irrespective of the memory can be continued. Accordingly, it is an object of the present invention to provide a system for realizing communication between processors having high fault tolerance.
【0020】本発明の第2の目的は、共通バス上の各プ
ロセッサのクロックに相違があっても正常にデータが転
送ができ、逓倍回路なしでもプロセッサ間通信を実現す
ることを可能とするシステムを提供することにある。A second object of the present invention is to provide a system capable of normally transferring data even if there is a difference between clocks of respective processors on a common bus and realizing inter-processor communication without a multiplication circuit. Is to provide.
【0021】本発明の第3の目的は、識別番号等の付加
信号を必要とすること無く、各プロセッサのシステム内
識別番号を取得することが可能なシステムを提供するこ
とにある。A third object of the present invention is to provide a system capable of acquiring an in-system identification number of each processor without requiring an additional signal such as an identification number.
【0022】本発明の第4の目的は、専用インターフェ
ースを持った個別のバス制御装置を用意すること無く、
また、外部に接続回路を容易すること無く、複数の種類
のプロセッサと接続できるようにしたシステムを提供す
ることにある。A fourth object of the present invention is to prepare a separate bus control device having a dedicated interface,
It is another object of the present invention to provide a system which can be connected to a plurality of types of processors without external connection circuits.
【0023】本発明の第5の目的は、共通バスのアクセ
スに対して異常が発生した場合でも、外部回路を必要と
することなく、必要最小限な内部回路をリセットし、早
急にバス制御装置としての動作の回復を行うことが可能
なシステムを提供することにある。A fifth object of the present invention is to reset a minimum necessary internal circuit without requiring an external circuit even if an abnormality occurs in access to a common bus, and to quickly reset the bus control device. It is an object of the present invention to provide a system capable of recovering the operation as the above.
【0024】本発明の第6の目的は、複数のレジスタを
1本化することにより、回路実装性を向上させ、且つア
ドレスの食い違いによりメモリ参照に不具合が生じるこ
とを削減することが可能なシステムを提供することにあ
る。A sixth object of the present invention is to provide a system capable of improving the circuit mountability by unifying a plurality of registers, and reducing the occurrence of a failure in memory reference due to a mismatch of addresses. Is to provide.
【0025】本発明の第7の目的は、プロセッサを介さ
ないバス制御装置のメモリ間の転送を行う場合におい
て、外部回路を必要とせず、且つ共通バスの転送が1回
のみで完了させ、効率よくデータ転送を行うことが可能
なシステムを提供することにある。A seventh object of the present invention is to eliminate the need for an external circuit when performing transfer between memories of a bus control device without using a processor, and to complete transfer of a common bus only once, thereby improving efficiency. An object of the present invention is to provide a system capable of performing data transfer well.
【0026】[0026]
【課題を解決するための手段】本発明の請求項1にかか
る発明は、複数のバス制御装置を有するシステムにおい
て、前記バス制御装置は、プロセッサを接続するための
プロセッサバスと、メモリを接続するためのメモリバス
と、複数のプロセッサを相互に接続する共通バスと、前
記複数のプロセッサが共通バスを介して接続されたとき
前記プロセッサ夫々が前記バス制御装置夫々のメモリバ
スに接続された前記メモリの空間を共有するための手段
とを具備することを特徴とする。According to a first aspect of the present invention, in a system having a plurality of bus controllers, the bus controller connects a processor bus for connecting a processor to a memory. A memory bus for connecting a plurality of processors to each other, and the memory wherein each of the processors is connected to a memory bus of the bus control device when the plurality of processors are connected via the common bus. And means for sharing the space.
【0027】請求項2にかかる発明は、請求項1に係る
発明における前記バス制御装置が、前記プロセッサから
前記メモリに対するアクセス要求と、前記共通バスに対
する非同期のマスタアクセス要求とを行うための先入れ
先出しメモリ回路を更に具備するができる。According to a second aspect of the present invention, there is provided a first-in-first-out memory according to the first aspect, wherein the bus control device makes an access request to the memory from the processor and an asynchronous master access request to the common bus. A circuit can be further provided.
【0028】請求項3にかかる発明は、請求項1に係る
発明における前記バス制御装置が、前記プロセッサから
のアクセスを前記共通バスを介する外部アクセスと、前
記共通バスを介さない内部アクセスとを実施するための
手段を更に具備することを特徴とする請求項1記載のシ
ステム。According to a third aspect of the present invention, in the first aspect of the present invention, the bus control device executes an external access through the common bus from the processor and an internal access without the common bus through the common bus. The system of claim 1, further comprising means for performing:
【0029】請求項4にかかる発明は、請求項1に係る
発明における前記バス制御装置が、複数のプロセッサイ
ンターフェース及びマルチプレクサを更に具備すること
を特徴とする請求項1記載のシステム。A fourth aspect of the present invention is the system according to the first aspect, wherein the bus control device according to the first aspect of the present invention further comprises a plurality of processor interfaces and a multiplexer.
【0030】請求項5にかかる発明は、請求項1に係る
発明における前記バス制御装置が、内部タイマ、内部状
態遷移回路及びプロセッサに対する応答回路を有し、該
応答回路は、前記内部タイマ及び前記内部状態遷移回路
をリセットする手段を具備することを特徴とする請求項
1記載のシステム。According to a fifth aspect of the present invention, in the first aspect of the present invention, the bus control device includes an internal timer, an internal state transition circuit, and a response circuit to the processor, wherein the response circuit includes the internal timer and the processor. The system of claim 1, further comprising means for resetting an internal state transition circuit.
【0031】請求項6にかかる発明は、請求項1に係る
発明における前記バス制御装置が、前記プロセッサから
アクセスする自メモリ領域の空間アドレスを指定するレ
ジスタ機能と、自バス制御装置を経由して他のバス制御
装置下のメモリ空間アドレスを指定するレジスタ機能
と、他のバス制御装置から自メモリ空間に対してアクセ
スされるメモリ空間アドレスを指定するレジスタ機能と
を担う1つのレジスタを具備することを特徴とする請求
項1記載のシステム。According to a sixth aspect of the present invention, in the first aspect of the present invention, the bus control device is provided with a register function for designating a space address of a local memory area accessed by the processor and a local bus control device. One register having a register function of designating a memory space address under another bus control device and a register function of designating a memory space address accessed from another bus control device to its own memory space The system of claim 1, wherein:
【0032】請求項7にかかる発明は、請求項1に係る
発明における前記バス制御装置が、データ転送手段を更
に具備することを特徴とする請求項1記載のシステム。[0032] The invention according to claim 7 is the system according to claim 1, wherein the bus control device according to the invention according to claim 1 further comprises a data transfer unit.
【0033】[0033]
【発明の実施の形態】以下本発明の実施形態について図
面を参照して説明する。Embodiments of the present invention will be described below with reference to the drawings.
【0034】(第1の実施形態)図1〜図3を参照して
本発明の第1の実施形態のシステムを説明する。図1に
示すように、第1の実施形態のバス制御装置30は、プ
ロセッサバス2、メモリバス12、共通バス4の3ポー
トで構成され、図3に示すように、共通バス4上に複数
のバス制御装置30(30―1,30―2)が分散され
て接続されている。(First Embodiment) A system according to a first embodiment of the present invention will be described with reference to FIGS. As shown in FIG. 1, the bus control device 30 according to the first embodiment includes three ports of a processor bus 2, a memory bus 12, and a common bus 4. As shown in FIG. Bus control devices 30 (30-1 and 30-2) are distributed and connected.
【0035】また、各バス制御装置30のメモリバス1
2にはメモリ13が接続されている。プロセッサバス2
に接続されたプロセッサ1からは、自メモリ13に対し
てのアクセス、他のバス制御装置30下のメモリ13の
マスタアクセスを行うことができるようになっている。The memory bus 1 of each bus control device 30
A memory 13 is connected to 2. Processor bus 2
Can access the own memory 13 and perform master access to the memory 13 under the other bus control device 30.
【0036】さらに、一のバス制御装置30は、スレー
ブアクセスとして、他のバス制御装置30からのマスタ
アクセスに対して、自メモリ13のアクセスに応答する
ことができるようになっている。Further, one bus control device 30 can respond to a master access from another bus control device 30 as an access to its own memory 13 as a slave access.
【0037】バス制御装置30の基本機能は、図2に示
される。すなわち、基本アクセスは以下のように3種類
ある。先ず、プロセッサ1からメモリ3に対するアクセ
スが自メモリアクセスである。プロセッサ1から共通バ
ス4に対するアクセスがマスタアクセスである。なお、
共通バス4に対するマスタアクセスは、共通バス4の所
有権獲得の処理などが必要なため、自メモリアクセスと
比べて一般的にかなり遅い。他のバス制御装置30から
自メモリ3に対してアクセスされるアクセスがスレーブ
メモリアクセスである。The basic functions of the bus control device 30 are shown in FIG. That is, there are three types of basic access as follows. First, the access from the processor 1 to the memory 3 is its own memory access. An access from the processor 1 to the common bus 4 is a master access. In addition,
Master access to the common bus 4 is generally much slower than its own memory access because it requires processing to acquire ownership of the common bus 4 and the like. An access accessed from another bus control device 30 to the own memory 3 is a slave memory access.
【0038】ここで、バス制御装置の詳細な構成を、図
1を参照して説明する。すなわち、図示しないプロセッ
サからのアクセスは、プロセッサバス2を介してプロセ
ッサインターフェース31にて処理される。このプロセ
ッサからのアクセスのうちメモリアドレスレジスタ38
で示されたアドレスについては、メモリバス12に接続
された図示しないメモリをアクセスする。第2アドレス
デコード回路32−2は、プロセッサからのアクセスが
メモリアドレスレジスタ38で指定されたアドレスかど
うか判定する。Here, a detailed configuration of the bus control device will be described with reference to FIG. That is, access from a processor (not shown) is processed by the processor interface 31 via the processor bus 2. The memory address register 38 of the access from this processor
With respect to the address indicated by, a memory (not shown) connected to the memory bus 12 is accessed. The second address decode circuit 32-2 determines whether the access from the processor is the address specified by the memory address register 38.
【0039】プロセッサからのアクセスのうち、マスタ
アドレスレジスタ34で示されたアドレスについては、
共通バス4に対してアクセスが発生する。第1アドレス
デコード回路32−1は、プロセッサからのアクセス
が、マスタアドレスレジスタ34で指定されたアドレス
かどうか判定する。プロセッサからのアドレスを共通バ
ス4へ出力する際に、アドレス変換を行う回路としてア
ドレス変換回路33が設けられている。アドレス変換回
路33によりアドレス変換されたアクセスは、共通バス
マスタインターフェース35により共通バス4に出力さ
れる。Of the accesses from the processor, for the address indicated by the master address register 34,
Access to the common bus 4 occurs. The first address decode circuit 32-1 determines whether the access from the processor is the address specified by the master address register 34. An address conversion circuit 33 is provided as a circuit for performing address conversion when an address from the processor is output to the common bus 4. The access converted by the address conversion circuit 33 is output to the common bus 4 by the common bus master interface 35.
【0040】共通バス4上の他のバス制御装置30から
のアクセス(スレーブアクセス)に応答するのが共通バ
ススレーブインターフェース36である。共通バススレ
ーブインターフェース36は、スレーブアクセスのうち
スレーブアドレスレジスタ37で指定されたアドレス
を、自メモリに対するアクセスとみなし、それ以外のア
クセスには応答しないようにする。第3アドレスデコー
ド回路32−3は、共通バス4からのアクセスアドレス
が、スレーブアドレスレジスタ37で指定されたアドレ
スかどうか判定する。The common bus slave interface 36 responds to an access (slave access) from another bus control device 30 on the common bus 4. The common bus slave interface 36 regards the address specified by the slave address register 37 in the slave access as an access to its own memory, and does not respond to other accesses. The third address decode circuit 32-3 determines whether the access address from the common bus 4 is an address specified by the slave address register 37.
【0041】プロセッサ1からの自メモリアクセスと、
共通バス4からのスレーブアクセスは同時に発生する可
能性があるため、調停回路39により調停を行う。調停
回路39により優先度の高いアクセスが判定され、メモ
リバスインターフェース40を介してメモリバス12上
のメモリにアクセスが行なわれる。Memory access from the processor 1;
Since there is a possibility that the slave access from the common bus 4 may occur at the same time, the arbitration circuit 39 performs arbitration. The arbitration circuit 39 determines an access with a high priority, and accesses the memory on the memory bus 12 via the memory bus interface 40.
【0042】図3には、共通バス4上に配置された2つ
のバス制御装置30―1,30―2及びプロセッサ1の
データ転送動作が示されている。まず第1プロセッサ1
−1はマスタアクセスを発生させ共通バス4に対してデ
ータの書き込みを行う。この時のアクセスアドレスが第
2バス制御装置30−2のスレーブアドレスレジスタと
一致すると、第2バス制御装置30−2ではスレーブア
クセス動作が行なわれ、第2メモリ13−2にプロセッ
サ1からのデータが書き込まれる。その後、第2プロセ
ッサ11−4が自メモリアクセスを行い第2メモリ13
―2からのデータを読み込むことにより転送が行われ
る。FIG. 3 shows the data transfer operation of the processor 1 and the two bus controllers 30-1 and 30-2 arranged on the common bus 4. First, the first processor 1
-1 generates a master access and writes data to the common bus 4. If the access address at this time matches the slave address register of the second bus control device 30-2, the second bus control device 30-2 performs a slave access operation and stores the data from the processor 1 in the second memory 13-2. Is written. After that, the second processor 11-4 accesses its own memory and
Transfer is performed by reading the data from -2.
【0043】このように、本実施形態におけるプロセッ
サ(1―1,1―2)間のデータ転送は、転送元の自メ
モリにデータを書き込み、転送先のプロセッサがマスタ
アクセスによって共通バス4を経由して転送元のメモリ
を読み出すことによって行われるか、又は転送元がマス
タアクセスによって共通バス4を経由して転送先のメモ
リにデータを書き込み、転送先のプロセッサ1が自メモ
リアクセスによって書き込まれたデータを読み出すこと
によって行われる。As described above, in the data transfer between the processors (1-1, 1-2) in the present embodiment, the data is written in its own memory at the transfer source, and the processor at the transfer destination passes through the common bus 4 by master access. Or by reading the memory of the transfer source, or the transfer source writes data to the transfer destination memory via the common bus 4 by the master access, and the transfer destination processor 1 writes the data by the own memory access. This is performed by reading data.
【0044】また共通バス4を経由しない自メモリアク
セスは、共通バス使用権獲得のためのオーバーヘッドが
無いため、共通バス4を経由したマスタアクセス、スレ
ーブアクセスと比べて高速に動作することができる。The memory access without passing through the common bus 4 has no overhead for acquiring the right to use the common bus, and therefore can operate at a higher speed than the master access and the slave access via the common bus 4.
【0045】(第2の実施形態)第2の実施形態に係る
バス制御装置を、図1と同一部分には同一符号を付した
図4を参照して説明する。第2の実施形態に係るバス制
御装置の基本的な構成及び動作は図1に示す第1の実施
形態に係るバス制御装置と同様であり、ここでは相違点
を説明する。図示しないプロセッサからのマスタアクセ
スは、アドレス変換回路33によりアドレス変換が行な
われ、その後に第1先入れ先出しメモリ41−1に格納
される。共通バスマスタインターフェース35は第1先
入れ先出しメモリ41−1の中を調べ、アクセスが格納
されている場合は、マスタアクセスを行う。プロセッサ
からの自メモリアクセスも同様に第2アドレスデコード
回路32−2によりアドレスデコードが行なわれた後に
第2先入れ先出しメモリ41−2に格納される。メモリ
アクセスの調停回路39は、第2先入れ先出しメモリ4
1−2の中を調べ、アクセスが格納されている場合には
調停処理を行う。(Second Embodiment) A bus control apparatus according to a second embodiment will be described with reference to FIG. 4 in which the same parts as those in FIG. The basic configuration and operation of the bus control device according to the second embodiment are the same as those of the bus control device according to the first embodiment shown in FIG. 1, and the differences will be described here. For master access from a processor (not shown), address conversion is performed by the address conversion circuit 33, and thereafter, the master access is stored in the first first-in first-out memory 41-1. The common bus master interface 35 checks the inside of the first first-in first-out memory 41-1 and performs a master access if the access is stored. Similarly, the own memory access from the processor is stored in the second first-in first-out memory 41-2 after the address decoding is performed by the second address decode circuit 32-2. The arbitration circuit 39 for the memory access includes the second first-in first-out memory 4
It examines 1-2, and if access is stored, performs arbitration processing.
【0046】このように、プロセッサから自メモリに対
するアクセスは一旦先入れ先出しメモリ32−1,32
−2を経由してから行われる。自メモリへの書き込みに
おいては第2先入れ先出しメモリ41−2に書き込み要
求データが順次書き込まれる。データが第2先入れ先出
しメモリ41−2に書き込まれたことを検出すると、調
停回路39は、プロセッサからの書き込み要求と、共通
バススレーブインターフェース36からのデータアクセ
ス要求との調停を行い、優先度の高い方からメモリアク
セスが行われる。この調停及びメモリバスアクセスは共
通バス4のクロックに同期して行う。第2先入れ先出し
メモリ41−2は非同期で動作するため、第2先入れ先
出しメモリ41−2の入力側は共通バスのクロックに同
期して動作する必要がない。As described above, the access from the processor to its own memory is temporarily made on a first-in first-out memory
-2. In writing to the own memory, write request data is sequentially written to the second first-in first-out memory 41-2. Upon detecting that the data has been written to the second first-in first-out memory 41-2, the arbitration circuit 39 arbitrates between the write request from the processor and the data access request from the common bus slave interface 36, and has a high priority. Side performs memory access. The arbitration and the memory bus access are performed in synchronization with the clock of the common bus 4. Since the second first-in first-out memory 41-2 operates asynchronously, the input side of the second first-in-first-out memory 41-2 does not need to operate in synchronization with the clock of the common bus.
【0047】また同様にプロセッサから共通バス4に対
するマスタアクセスは一度第1先入れ先出しメモリ41
−1を経由して行なわれる。Similarly, the master access from the processor to the common bus 4 is once performed by the first first-in first-out memory 41.
Via -1.
【0048】以上の2つの先入れ先出しメモリ41−
1,41−2によって、プロセッサバス側のクロック
と、共通バス側のクロックは全く独立して供給すること
が可能となり、同期している必要が無くなる。The above two first-in first-out memories 41-
According to 1, 41-2, the clock on the processor bus side and the clock on the common bus side can be supplied completely independently, and there is no need to be synchronized.
【0049】(第3の実施形態)第3の実施形態に係る
バス制御装置を、図1と同一部分には同一符号を付した
図5を参照して説明する。第2の実施形態に係るバス制
御装置の基本的な構成及び動作は、図1に示す第1の実
施形態に係るバス制御装置と同様であり、ここでは異な
る部分を説明する。即ち、本実施形態では、バス制御装
置30―2の中に内部レジスタ43を設けている。内部
レジスタ43は共通バス4からのアクセスが行なわれ、
且つレジスタ選択信号が真になった場合にのみアクセス
が可能である。同時アクセス比較回路42を経由した、
図示しないプロセッサからのマスタアクセスが行なわ
れ、且つ共通バス4からの内部レジスタに対するスレー
ブアクセスが同時に行われたどうかを判定する。同時に
両アクセスが行なわれた場合はプロセッサインターフェ
ース31に通知する。(Third Embodiment) A bus control device according to a third embodiment will be described with reference to FIG. 5 in which the same parts as those in FIG. The basic configuration and operation of the bus control device according to the second embodiment are the same as those of the bus control device according to the first embodiment shown in FIG. 1, and different portions will be described here. That is, in the present embodiment, the internal register 43 is provided in the bus control device 30-2. The internal register 43 is accessed from the common bus 4 and
Access is possible only when the register selection signal becomes true. Via the simultaneous access comparison circuit 42,
It is determined whether a master access from a processor (not shown) is performed and a slave access from the common bus 4 to an internal register is performed simultaneously. If both accesses are made at the same time, the processor interface 31 is notified.
【0050】本実施形態では、バス制御装置30―2内
の特定の内部レジスタをアクセスする際に共通バスを一
度経由してアクセスできる構成を設けている。すなわ
ち、共通バス4からのアドレス入力及び選択信号の接続
関係を図6に示す。特定のメモリ範囲を内部レジスタア
クセス用に確保する。アドレス線が32ビット(A31
〜A0)で実装されており、アドレスFFFF0000
(H)〜FFFFFFFF(H)までを内部レジスタ用
に確保したとする。この時上位16ビット(A31〜A
16)はアドレス指定のために必要であるが、下位16
ビット(A15〜A0)は任意に使用可能である。In this embodiment, a structure is provided in which a specific internal register in the bus control device 30-2 can be accessed once via a common bus. That is, FIG. 6 shows the connection relationship between the address input from the common bus 4 and the selection signal. Reserve a specific memory range for accessing internal registers. The address line is 32 bits (A31
~ A0) and the address FFFF0000
Assume that (H) to FFFFFFFF (H) are reserved for internal registers. At this time, the upper 16 bits (A31 to A
16) is necessary for addressing, but the lower 16
The bits (A15 to A0) can be used arbitrarily.
【0051】ここで、自由に使用できる16本のアドレ
ス線を1本ずつそれぞれのデバイスの選択信号入力に接
続しておく。図6では、A15がデバイス0の選択信号
入力に、A14がデバイス1に…というように接続され
ている。各プロセッサ及びバス制御装置30―2はどれ
かのデバイス番号が割り当てられる。各プロセッサは、
内部レジスタをアクセスするために、順次この接続され
たアドレス線が1になるようにアドレスをスキャンして
いく。Here, 16 freely usable address lines are connected one by one to the selection signal input of each device. In FIG. 6, A15 is connected to the selection signal input of device 0, A14 is connected to device 1, and so on. Each processor and bus control device 30-2 is assigned any device number. Each processor:
In order to access the internal register, addresses are sequentially scanned so that the connected address line becomes 1.
【0052】次に、デバイス1のプロセッサがA15が
1になるアドレス=FFFF8000(H)で内部レジ
スタをアクセスした場合のことを考える。デバイス1の
バス制御装置では、レジスタ選択信号=A15=0
(偽)となり内部のレジスタはアクセスすることができ
ない。バス制御装置30―2の内部では、マスタアクセ
スは発生するが、内部レジスタ43に対するスレーブア
クセスは発生しない。この時同時アクセス比較回路42
はマスタアクセスのみ真になったとみなし、当該デバイ
ス番号(デバイス1)は自デバイスの番号ではないと認
識する。Next, consider the case where the processor of the device 1 accesses the internal register at the address where A15 becomes 1 = FFFF8000 (H). In the bus control device of the device 1, the register selection signal = A15 = 0
(False) and the internal registers cannot be accessed. Although a master access occurs inside the bus control device 30-2, a slave access to the internal register 43 does not occur. At this time, the simultaneous access comparison circuit 42
Deems that only the master access has become true, and recognizes that the device number (device 1) is not the own device number.
【0053】次に、デバイス1のプロセッサがA14が
1になるアドレス=FFFF4000(H)で内部レジ
スタをアクセスした場合のことを考える。デバイス1の
バス制御装置ではレジスタ選択信号=A14=1(真)
となり内部のレジスタはアクセスすることが出来る。バ
ス制御装置の内部では、マスタアクセス及び内部レジス
タに対するスレーブアクセスが同時に発生する。この
時、同時アクセス比較回路42はマスタアクセス、スレ
ーブアクセスとも真になったとみなし、当該デバイス番
号(デバイス1)が自デバイスの番号であると認識す
る。Next, consider the case where the processor of the device 1 accesses the internal register at the address where A14 becomes 1 = FFFF4000 (H). In the bus controller of the device 1, the register selection signal = A14 = 1 (true)
And the internal registers can be accessed. Inside the bus controller, a master access and a slave access to an internal register occur simultaneously. At this time, the simultaneous access comparison circuit 42 considers that both the master access and the slave access have become true, and recognizes that the device number (device 1) is the number of the own device.
【0054】このように、順次A15〜A0の各ビット
を1にしたアドレスにてレジスタをアクセスし、同時ア
クセス比較回路42の結果をスキャンすることにより、
自デバイスの識別番号(デバイス番号)を認識すること
が可能となる。As described above, the register is sequentially accessed by the address in which each of the bits A15 to A0 is set to 1, and the result of the simultaneous access comparison circuit 42 is scanned, whereby
It is possible to recognize the identification number (device number) of the own device.
【0055】第4の実施形態に係るバス制御装置を、図
1と同一部分には同一符号を付した図7を参照して説明
する。第4の実施形態に係るバス制御装置の基本的な構
成及び動作は、図1に示す第1の実施形態に係るバス制
御装置と同様であり、ここでは異なる部分を説明する。
即ち、本実施形態において、プロセッサバス2に接続さ
れるプロセッサインターフェースは、プロセッサの種類
に応じて複数用意される。図示しないA形式プロセッサ
に対応するプロセッサインターフェースとしてプロセッ
サA用インターフェース44、図示しないB形式プロセ
ッサに対応するプロセッサインターフェースとしてプロ
セッサB用インターフェース45が設けられる。実際に
プロセッサバスに接続するプロセッサの種類は、プロセ
ッサ種別選択信号を通して外部から入力される。この選
択信号をもとにマルチプレクサ46が、バス制御装置3
0―3の内部回路に接続されるプロセッサインターフェ
ース(44又は45)を選択するようになっている。A bus control device according to the fourth embodiment will be described with reference to FIG. 7, in which the same parts as those in FIG. The basic configuration and operation of the bus control device according to the fourth embodiment are the same as those of the bus control device according to the first embodiment shown in FIG. 1, and different portions will be described here.
That is, in the present embodiment, a plurality of processor interfaces connected to the processor bus 2 are prepared according to the type of the processor. An interface 44 for processor A is provided as a processor interface corresponding to an A-type processor (not shown), and an interface 45 for processor B is provided as a processor interface corresponding to a B-type processor (not shown). The type of processor actually connected to the processor bus is externally input through a processor type selection signal. Based on this selection signal, the multiplexer 46 switches the bus control device 3
The processor interface (44 or 45) connected to the internal circuit 0-3 is selected.
【0056】本実施形態は、バス制御装置30―3に接
続されるプロセッサの形式が多様なものであることを前
提としている。バス制御装置30―3の内部には異なる
種々のプロセッサに対応するプロセッサインターフェー
ス44,45が用意されている。この場合、プロセッサ
バス2に接続されるピンは、各プロセッサ用インターフ
ェース間で共用を行う。プロセッサバス2に接続される
プロセッサの種別を特定するため、外部からプロセッサ
種別選択信号を与える。このプロセッサ種別選択信号に
より、実際にバス制御装置30―3のプロセッサバス2
に接続されたプロセッサに対応するプロセッサインター
フェース44,45をマルチプレクサ46により択一選
択を行い、バス制御装置30―3の内部回路へ供給を行
う。This embodiment is based on the premise that the types of processors connected to the bus control device 30-3 are various. Processor interfaces 44 and 45 corresponding to various different processors are prepared inside the bus control device 30-3. In this case, the pins connected to the processor bus 2 are shared between the processor interfaces. In order to specify the type of the processor connected to the processor bus 2, an external processor type selection signal is provided. By this processor type selection signal, the processor bus 2 of the bus controller 30-3 is actually
The processor 46 selects one of the processor interfaces 44 and 45 corresponding to the processor connected to the bus controller 30-3, and supplies it to the internal circuit of the bus controller 30-3.
【0057】(第5の実施形態)第5の実施形態に係る
バス制御装置を、図1と同一部分には同一符号を付した
図8を参照して説明する。第5の実施形態に係るバス制
御装置の基本的な構成及び動作は、図1に示す第1の実
施形態に係るバス制御装置と同様であり、ここでは異な
る部分を説明する。(Fifth Embodiment) A bus control device according to a fifth embodiment will be described with reference to FIG. 8 in which the same parts as those in FIG. The basic configuration and operation of the bus control device according to the fifth embodiment are the same as those of the bus control device according to the first embodiment shown in FIG. 1, and different portions will be described here.
【0058】本実施形態では、アクセス時間タイマ47
を設け、プロセッサ1からの共通バス4に対するマスタ
アクセスが開始すると、当該アクセス時間タイマ47が
計時を開始する。マスタアクセスが終了したことを示す
信号を共通バスマスタインターフェース35から受け取
ると、アクセス時間タイマ47は計時を終了する。In the present embodiment, the access time timer 47
When the master access from the processor 1 to the common bus 4 starts, the access time timer 47 starts counting time. When a signal indicating that the master access has been completed is received from the common bus master interface 35, the access time timer 47 stops counting time.
【0059】しかし、このアクセス時間タイマ47は、
計時を始めてからある一定時間経過しても計時終了しな
い場合には、リセット回路48に対してリセット要求を
発行する。リセット回路48はマスタアクセスに関わる
回路に対してリセット要求を行う。However, this access time timer 47
If the timer does not end within a certain period of time after the start of the timer, a reset request is issued to the reset circuit 48. The reset circuit 48 issues a reset request to a circuit related to master access.
【0060】具体的には、プロセッサインターフェース
31と共通バスマスタインターフェース35に対してリ
セットを発行し、マスタアクセスを中断させ、マスタア
クセス開始前の状態にバス制御装置30―4の状態を戻
す。More specifically, a reset is issued to the processor interface 31 and the common bus master interface 35 to interrupt the master access and return the state of the bus control device 30-4 to the state before the start of the master access.
【0061】本実施形態の構成にあって、バス異常が発
生するのは、プロセッサ1から共通バス4に対するマス
タアクセスの場合である。マスタアクセスが行なわれた
場合にはプロセッサインターフェース31により共通マ
スタインターフェース35に対してマスタアクセス開始
信号が真となる。このマスタアクセス開始信号によりア
クセス時間タイマ47が計時を開始する。通常、正常に
共通バス4に対するアクセスが終了すると、共通バスマ
スタインターフェース35からマスタアクセス終了信号
が真となって応答される。アクセス時間タイマ47はこ
の信号が真になることにより停止する。In the configuration of the present embodiment, a bus error occurs when a master access from the processor 1 to the common bus 4 occurs. When the master access is performed, the master access start signal to the common master interface 35 by the processor interface 31 becomes true. The access time timer 47 starts counting time in response to the master access start signal. Normally, when the access to the common bus 4 ends normally, a master access end signal becomes true from the common bus master interface 35 to respond. The access time timer 47 stops when this signal becomes true.
【0062】しかし、正常に共通バスに対するアクセス
が終了しない場合には、マスタアクセス終了信号が真と
ならない。アクセス時間タイマがスタートしてある一定
時間、タイマ47が停止しないと共通バス4に対するア
クセスで異常があったとみなし、リセット回路48に対
してリセット要求を行う。However, if the access to the common bus does not end normally, the master access end signal does not become true. If the timer 47 does not stop for a certain period of time when the access time timer is started, it is considered that there is an abnormality in the access to the common bus 4 and a reset request is made to the reset circuit 48.
【0063】リセット回路48は、共通バス4に対する
マスタアクセスに関わる回路に対してのみアクセスのリ
セットを行う。図8の構成においては、プロセッサイン
ターフェース及31び共通バスマスタインターフェース
35に対してリセットが行なわれる。The reset circuit 48 resets access only to circuits related to master access to the common bus 4. In the configuration shown in FIG. 8, the processor interface 31 and the common bus master interface 35 are reset.
【0064】(第6の実施形態)第6の実施形態に係る
バス制御装置を、図1と同一部分には同一符号を付した
図9を参照して説明する。第6の実施形態に係るバス制
御装置の基本的な構成及び動作は、図1に示す第1の実
施形態に係るバス制御装置と同様であり、ここでは異な
る部分を説明する。(Sixth Embodiment) A bus control device according to a sixth embodiment will be described with reference to FIG. 9, in which the same parts as those in FIG. The basic configuration and operation of the bus control device according to the sixth embodiment are the same as those of the bus control device according to the first embodiment shown in FIG. 1, and different portions will be described here.
【0065】図9は、図1における、プロセッサバス2
のアドレスにおいて自メモリに対するアクセスアドレス
を指定するメモリアドレスレジスタ38、プロセッサバ
ス2のアドレスにおいて共通バスに対するアクセスアド
レスを指定するマスタアクセスレジスタ34、共通バス
4のアドレスにおいて自メモリに対するアクセスアドレ
スを指定するスレーブアドレスレジスタ37の3つのレ
ジスタをスレーブメモリを、アドレスレジスタ49に集
約した構成としている。FIG. 9 shows the processor bus 2 in FIG.
The memory address register 38 specifies an access address to the own memory at the address of the master, the master access register 34 specifies the access address to the common bus at the address of the processor bus 2, and the slave specifies the access address to the own memory at the address of the common bus 4. The three registers of the address register 37 are configured such that slave memories are integrated into an address register 49.
【0066】また、図9に示すバス制御装置では、以下
の規則を適用する。In the bus control device shown in FIG. 9, the following rules are applied.
【0067】第1に、アドレス変換は行わない(マスタ
アクセスの際の共通バスへのアドレスはプロセッサアド
レスそのままとする。)。First, no address conversion is performed (the address on the common bus at the time of master access is left as the processor address).
【0068】第2に、図1でのスレーブアドレスレジス
タ37とメモリアドレスレジスタ38の値を同一にして
アドレスレジスタ49に格納する。Second, the values of the slave address register 37 and the memory address register 38 in FIG.
【0069】第3に、マスタアクセスレジスタ34の値
はアドレスレジスタ49の一部をマスクした値を用いる
(共通バスに対するマスタアクセスを行う際のアドレス
空間が16MBの場合)、メモリアドレスレジスタ38
に16MBをマスクした値を用いる。Third, as the value of the master access register 34, a value obtained by masking a part of the address register 49 is used (when the address space for performing the master access to the common bus is 16 MB).
The value obtained by masking 16 MB is used.
【0070】例を挙げて説明する。バス制御装置30―
5のメモリバス12のアドレス幅が1MB、共通バスに
対する空間が16MBとする。This will be described with reference to an example. Bus control device 30-
The address width of the memory bus 12 is 1 MB and the space for the common bus is 16 MB.
【0071】アドレスレジスタが12400000
(H)の場合、上記の三つの規則から本来のメモリアド
レスレジスタ38の値は12400000(H)とな
る。プロセッサアドレスで12400000(H)〜1
24FFFFF(H)は自メモリに対するアドレスとな
る。Address register is 12400000
In the case of (H), the original value of the memory address register 38 is 12400000 (H) from the above three rules. 12400000 (H) to 1 in processor address
24FFFFFF (H) is an address for the own memory.
【0072】本来のスレーブアドレスレジスタ37の値
も同様に12400000(H)となり、共通バス4か
らのメモリに対するアドレス12400000(H)〜
124FFFFF(H)までの1MBは自メモリに対す
るアドレスとなる。Similarly, the original value of the slave address register 37 becomes 12400000 (H), and the address from the common bus 4 to the memory from the address 12400000 (H) to
1 MB up to 124FFFFF (H) is an address for the own memory.
【0073】本来のマスタアドレスレジスタ34の値は
アドレスレジスタの値を16MB(00FFFFFF
(H))でマスクするため、12000000(H)と
なる。プロセッサアドレスで12000000(H)か
らの16MBは共通バス4に対するマスタアクセスとな
る。但しこのアドレスのうち12400000(H)か
らの1MBは自メモリに対するアクセスアドレスとなる
ため除外され、実際に共通バスにはバスアクセスが発生
しない。The original value of the master address register 34 is set to the value of the address register by 16 MB (00FFFFFF).
(H)), so that it becomes 12000000 (H). The 16 MB from 12000000 (H) in the processor address becomes a master access to the common bus 4. However, of these addresses, 1 MB from 12400000 (H) is excluded because it is an access address to the own memory, and no bus access actually occurs on the common bus.
【0074】このように、レジスタアドレス34,3
7,38をアクセスレジスタ49に1本化することによ
り明確且つ、簡素な回路にてバス制御装置30―5が実
現できる。As described above, the register addresses 34, 3
By integrating 7, 38 into one access register 49, the bus control device 30-5 can be realized with a clear and simple circuit.
【0075】(第7の実施形態)第7の実施形態に係る
バス制御装置を、図1と同一部分には同一符号を付した
図10を参照して説明する。第7の実施形態に係るバス
制御装置の基本的な構成及び動作は、図1に示す第1の
実施形態に係るバス制御装置と同様であり、ここでは異
なる部分を説明する。(Seventh Embodiment) A bus control device according to a seventh embodiment will be described with reference to FIG. 10 in which the same parts as those in FIG. The basic configuration and operation of the bus control device according to the seventh embodiment are the same as those of the bus control device according to the first embodiment shown in FIG. 1, and different portions will be described here.
【0076】本実施形態では、共通バス4に対するメモ
リアクセスは、図示しないプロセッサからのマスタアク
セスの他にバスアクセス生成回路52からも発生するこ
とができる。このバスアクセス生成回路52は、予め転
送カウンタ18−1で示されたアドレスのデータに対し
アクセスを行うことができる。バスアクセス生成回路5
2によるアクセスが終了すると転送カウンタ51は1加
算される。バスアクセス生成回路52により読み込まれ
たデータ及び書き込まれるデータは、バッファメモリ5
0に格納される。In this embodiment, the memory access to the common bus 4 can be generated from the bus access generation circuit 52 in addition to the master access from the processor (not shown). The bus access generation circuit 52 can access data at an address previously indicated by the transfer counter 18-1. Bus access generation circuit 5
When the access by 2 is completed, the transfer counter 51 is incremented by one. The data read and written by the bus access generation circuit 52 are stored in the buffer memory 5.
0 is stored.
【0077】バッファメモリ50のデータは、第1調停
回路39−1を通してメモリバス12にアクセスするこ
とができる。メモリバス12へのアクセスはプロセッサ
からの自メモリアクセス、共通バス4からのスレーブア
クセス及びバッファメモリ50を経由したバスアクセス
生成回路52からのアクセスの3種類が同時に発生する
可能性があるため、第1調停回路39―1は3入力とな
る。また、共通バス4のマスタアクセスは、プロセッサ
からのマスタアクセスの他にバスアクセス生成回路52
によるマスタアクセスが同時に発生する可能性があるた
め第2調停回路39−2を用いて優先度判定を行う。The data in the buffer memory 50 can access the memory bus 12 through the first arbitration circuit 39-1. Since the access to the memory bus 12 may occur at the same time as three types of access: the own memory access from the processor, the slave access from the common bus 4 and the access from the bus access generation circuit 52 via the buffer memory 50, One arbitration circuit 39-1 has three inputs. The master access to the common bus 4 is performed by a bus access generation circuit 52 in addition to the master access from the processor.
Therefore, the priority determination is performed using the second arbitration circuit 39-2 because there is a possibility that the master access by the arbitration will occur at the same time.
【0078】本実施形態のバス制御装置30―6では、
通常のプロセッサからのマスタアクセスの他にもバス制
御装置30―6に内蔵されたバスアクセス生成回路52
等の転送制御回路により、自動的にプロセッサとは独立
して共通バス4とメモリとの間の転送を行うことができ
る。In the bus control device 30-6 of this embodiment,
In addition to the master access from the normal processor, a bus access generation circuit 52 built in the bus control device 30-6
And the like, the transfer between the common bus 4 and the memory can be automatically performed independently of the processor.
【0079】この転送機能が有効になった場合の動作例
を示す。転送カウンタ51で示された番地をバスアクセ
ス生成回路52が共通バス4に対してアクセスを行う。
共通バス4からメモリへの転送の場合には、共通バス4
に対しての読み出しを行う。共通バス4へのアクセス
は、バスアクセス回路52からのアクセス及びプロセッ
サからのアクセスが同時に発生する可能性があるため第
2調停回路39−2で調停を行う。An example of the operation when the transfer function is enabled will be described. The bus access generation circuit 52 accesses the address indicated by the transfer counter 51 to the common bus 4.
In the case of transfer from the common bus 4 to the memory, the common bus 4
Is read. The access to the common bus 4 is arbitrated by the second arbitration circuit 39-2 because the access from the bus access circuit 52 and the access from the processor may occur simultaneously.
【0080】バスアクセス回路52からのアクセスが共
通バス4に対して行なわれ、共通バス4を経由してデー
タが読み出されると、バッファメモリ50に格納され
る。一度、バッファメモリ50に格納されたデータは、
自メモリに書き込むことができるが、バッファメモリ5
0からのアクセスの他にもメモリアクセスはプロセッサ
からの自メモリアクセス、共通バス4からのスレーブア
クセスが同時に発生する可能性があるため、第1調停回
路39−1を経由してアクセスが行なわれる。Access from the bus access circuit 52 is made to the common bus 4, and when data is read via the common bus 4, the data is stored in the buffer memory 50. Once the data stored in the buffer memory 50 is
Although it is possible to write to its own memory, buffer memory 5
In addition to the access from 0, the memory access may be performed via the first arbitration circuit 39-1 because the own memory access from the processor and the slave access from the common bus 4 may occur simultaneously. .
【0081】なお、バッファメモリ50に格納された時
点で、転送カウンタ51を1加算して次の共通バス4に
対するアクセスを開始することができるため、見かけ上
共通バス4からの読み出しと、メモリへの書き込みは同
時に行うことができ、性能の高いデータ転送が実現でき
る。Since the transfer counter 51 is incremented by one at the time when the data is stored in the buffer memory 50, the access to the next common bus 4 can be started. Can be performed simultaneously, and high-performance data transfer can be realized.
【0082】[0082]
【発明の効果】請求項1の発明においては、共通バスに
複数のバス制御装置によって接続されたメモリにより、
共通バス上のデータ転送が1回のみでプロセッサ間のデ
ータ転送が実現できる。また、共有メモリ方式のように
集中したメモリ資源を配置しないため、1ケ所のメモリ
の故障があっても、すべてのデータ転送が不能となるこ
とがなく、耐故障性の高いデータ転送が実現できる。ま
たメモリを分散して配置することによりバス制御装置に
よって接続された複数のプロセッサ間の対照性及び独立
性を高めることができる。According to the first aspect of the present invention, a memory connected to a common bus by a plurality of bus control devices is provided.
Data transfer between processors can be realized by performing only one data transfer on the common bus. In addition, since concentrated memory resources are not arranged unlike the shared memory system, even if one memory fails, all data transfer is not disabled, and data transfer with high fault tolerance can be realized. In addition, by distributing the memory, the contrast and independence between the plurality of processors connected by the bus control device can be improved.
【0083】請求項2の発明においては、内部で先入れ
先出しメモリを使用することにより、プロセッサバスの
クロックと共通バスのクロックが独立していても(非同
期でも)バス制御装置は動作することがある。これによ
り、外部にプロセッサバスからのクロックの逓倍回路な
どを必要とすること無く、コスト及び実装的に利点が生
じる。また、プロセッサバスのクロックが自由に選択で
きるため、バス制御装置に接続できるプロセッサの選択
範囲が広がり、システムに柔軟性を持たせることができ
る。According to the second aspect of the present invention, by using a first-in first-out memory internally, the bus controller may operate even if the clock of the processor bus and the clock of the common bus are independent (asynchronously). As a result, there is no need for an external circuit for multiplying the clock from the processor bus, and advantages in cost and mounting are obtained. Further, since the clock of the processor bus can be freely selected, the selection range of the processors that can be connected to the bus control device is widened, and the system can have flexibility.
【0084】請求項3の発明においては、外部から専用
の認識番号入力回路を必要とせずに、プロセッサのデバ
イス番号を認識させることができるため、コスト及び実
装的にメリットが生じる。またバス制御装置の端子の数
を増やすこと無く共通バスに接続することができるた
め、バス制御装置の小型化などが可能となる。According to the third aspect of the present invention, the device number of the processor can be recognized without requiring a dedicated identification number input circuit from the outside, so that there are advantages in cost and mounting. In addition, since the bus controller can be connected to the common bus without increasing the number of terminals, the bus controller can be downsized.
【0085】請求項4の発明においては、プロセッサ専
用のバス制御装置を個別に使用するために無く、またプ
ロセッサを接続するための外部回路を必要とすること無
くプロセッサをプロセッサバスに接続できるため、コス
ト及び実装メリットが向上する。According to the fourth aspect of the present invention, the processor can be connected to the processor bus without using a dedicated bus control device for the processor and without requiring an external circuit for connecting the processor. Cost and mounting benefits are improved.
【0086】請求項5の発明においては、共通バスに対
するアクセスの異常検出が外部回路を必要とすること無
く実現できるためコスト及び実装メリットが向上する。
また、異常発生時のリセットが必要な回路だけ行なわれ
るため、バス制御装置の初期化をすべて最初から行う必
要がなく、異常発生時の処理のソフトウェアの簡素化が
実現できる。According to the fifth aspect of the present invention, since the detection of an abnormality in access to the common bus can be realized without requiring an external circuit, the cost and mounting advantages are improved.
Further, since only the circuits that need to be reset when an error occurs are performed, it is not necessary to initialize the bus control device from the beginning, and simplification of software for processing when an error occurs can be realized.
【0087】請求項6の発明においては、アクセスレジ
スタを1本化したため、バス制御装置の回路が簡易にな
り、コスト及び実装メリットが向上する。また、アドレ
スの設定ミスによる誤動作が発生しにくくなるため、ア
ドレスレジスタ設定のためのソフトフェアの簡素化、シ
ステムの信頼性向上が実現できる。According to the sixth aspect of the present invention, since the access register is integrated into one, the circuit of the bus control device is simplified, and the cost and mounting advantages are improved. In addition, since a malfunction due to an address setting error hardly occurs, simplification of software for setting an address register and improvement in system reliability can be realized.
【0088】請求項7の発明においては、外部にDMA
回路を実装すること無くバス制御装置間のメモリのデー
タ転送が実現できるコスト及び実装上のメリットが向上
する。また、1単位の転送が外部DMA回路の実装に比
べ1回の共通バス転送で完了するため効率が高い高速な
データ転送が実現できる。According to the seventh aspect of the present invention, the DMA
The cost and the merit in mounting which can realize the data transfer of the memory between the bus control devices without mounting the circuit are improved. In addition, since one-unit transfer is completed by one common bus transfer as compared with the mounting of the external DMA circuit, high-efficiency and high-speed data transfer can be realized.
【図1】本発明の第1の実施形態におけるバス制御装置
の内部構成を示す図。FIG. 1 is a diagram showing an internal configuration of a bus control device according to a first embodiment of the present invention.
【図2】同の実施形態におけるバス制御装置の単体基本
動作例を示す図。FIG. 2 is an exemplary diagram showing an example of a basic operation of the bus control device according to the first embodiment;
【図3】同の実施形態におけるバス制御装置のシステム
動作例を示す図。FIG. 3 is an exemplary diagram showing a system operation example of the bus control device according to the embodiment;
【図4】本発明の第2の実施形態におけるバス制御装置
の内部構成を示す図。FIG. 4 is a diagram showing an internal configuration of a bus control device according to a second embodiment of the present invention.
【図5】本発明の第3の実施形態におけるバス制御装置
の内部構成を示す図。FIG. 5 is a diagram showing an internal configuration of a bus control device according to a third embodiment of the present invention.
【図6】同の実施形態における識別番号認識のためのア
ドレス入力方式及び選択信号入力方式を示す図。FIG. 6 is an exemplary view showing an address input method and a selection signal input method for identification number recognition in the embodiment.
【図7】本発明の第4の実施形態におけるバス制御装置
の内部構成を示す図。FIG. 7 is a diagram showing an internal configuration of a bus control device according to a fourth embodiment of the present invention.
【図8】本発明の第5の実施形態におけるバス制御装置
の内部構成を示す図。FIG. 8 is a diagram showing an internal configuration of a bus control device according to a fifth embodiment of the present invention.
【図9】本発明の第6の実施形態におけるバス制御装置
の内部構成を示す図。FIG. 9 is a diagram illustrating an internal configuration of a bus control device according to a sixth embodiment of the present invention.
【図10】本発明の第7の実施形態におけるバス制御装
置の内部構成を示す図。FIG. 10 is a diagram showing an internal configuration of a bus control device according to a seventh embodiment of the present invention.
【図11】従来の共有メモリ方式による複数プロセッサ
接続の構成例を示す図。FIG. 11 is a diagram showing a configuration example of a connection between a plurality of processors according to a conventional shared memory system.
【図12】従来のクロック同期方式による構成例を示す
図。FIG. 12 is a diagram showing a configuration example according to a conventional clock synchronization method.
【図13】従来における識別番号の生成方式を示す図。FIG. 13 is a diagram showing a conventional identification number generation method.
【図14】従来における専用インターフェースを用いた
プロセッサインターフェースの構成例を示す図。FIG. 14 is a diagram showing a configuration example of a processor interface using a dedicated interface in the related art.
【図15】従来における汎用インターフェースを用いた
プロセッサインターフェースの構成例を示す図。FIG. 15 is a diagram showing a configuration example of a processor interface using a conventional general-purpose interface.
【図16】従来におけるタイムアウト検出回路の例を示
す図。FIG. 16 is a diagram showing an example of a conventional timeout detection circuit.
【図17】従来におけるアドレスレジスタ分離のための
構成例を示す図。FIG. 17 is a diagram showing an example of a conventional configuration for address register separation.
【図18】従来における外部DMA方式の例を示す図。FIG. 18 is a diagram showing an example of a conventional external DMA system.
1…プロセッサ 2…プロセッサバス 4…共通バス 30,30―1,30―2,30―3,30―4,30
―5,30―6…バス制御装置 31…プロセッサインターフェース 32―1,32―1…アドレスデコード回路 33…アドレス変換回路 34…マスタアドレスレジスタ 35…共通バスマスタインターフェース 36…共通バススレーブインターフェース 37…スレーブアドレスレジスタ 38…メモリアドレスレジスタ 39…調停回路 40…メモリバスインターフェース。DESCRIPTION OF SYMBOLS 1 ... Processor 2 ... Processor bus 4 ... Common bus 30, 30-1, 30-2, 30-3, 30-4, 30
-5, 30-6-Bus control device 31-Processor interface 32-1, 32-1-Address decode circuit 33-Address conversion circuit 34-Master address register 35-Common bus master interface 36-Common bus slave interface 37-Slave address Register 38: Memory address register 39: Arbitration circuit 40: Memory bus interface.
Claims (7)
おいて、 前記バス制御装置は、プロセッサを接続するためのプロ
セッサバスと、メモリを接続するためのメモリバスと、
前記複数のプロセッサを相互に接続する共通バスと、前
記複数のプロセッサが共通バスを介して接続されたとき
前記プロセッサ夫々が前記バス制御装置夫々のメモリバ
スに接続された前記メモリの空間を共有するための手段
とを具備することを特徴とするシステム。1. A system having a plurality of bus controllers, the bus controller comprising: a processor bus for connecting a processor; a memory bus for connecting a memory;
A common bus connecting the plurality of processors to each other, and when the plurality of processors are connected via the common bus, each of the processors shares a space of the memory connected to a memory bus of the bus control device. And a means for:
ら前記メモリに対するアクセス要求と、前記共通バスに
対する非同期のマスタアクセス要求とを実行するための
先入れ先出しメモリ回路を更に具備することを特徴とす
る請求項1記載のシステム。2. The bus controller according to claim 1, further comprising a first-in first-out memory circuit for executing an access request to the memory from the processor and an asynchronous master access request to the common bus. The system of claim 1.
した前記プロセッサからの外部アクセスと、前記共通バ
スを介さない前記プロセッサからの内部アクセスとを実
行するための手段を更に具備することを特徴とする請求
項1記載のシステム。3. The bus control device further comprises means for executing external access from the processor via the common bus and internal access from the processor via no common bus. The system of claim 1, wherein the system comprises:
インターフェース及びマルチプレクサを更に具備するこ
とを特徴とする請求項1記載のシステム。4. The system of claim 1, wherein said bus controller further comprises a plurality of processor interfaces and a multiplexer.
状態遷移回路及びプロセッサに対する応答回路を有し、
該応答回路は、前記内部タイマ及び前記内部状態遷移回
路をリセットする手段を具備することを特徴とする請求
項1記載のシステム。5. The bus control device includes an internal timer, an internal state transition circuit, and a response circuit to a processor.
The system of claim 1, wherein said response circuit comprises means for resetting said internal timer and said internal state transition circuit.
らアクセスする自メモリ領域の空間アドレスを指定する
レジスタ機能と、自バス制御装置を経由して他のバス制
御装置下のメモリ空間アドレスを指定するレジスタ機能
と、他のバス制御装置から自メモリ空間に対してアクセ
スされるメモリ空間アドレスを指定するレジスタ機能と
を担う1つのレジスタを具備することを特徴とする請求
項1記載のシステム。6. The bus control device has a register function of designating a space address of its own memory area accessed by the processor, and designates a memory space address under another bus control device via its own bus control device. 2. The system according to claim 1, further comprising one register having a register function and a register function of designating a memory space address accessed from another bus control device to its own memory space.
更に具備することを特徴とする請求項1記載のシステ
ム。7. The system according to claim 1, wherein said bus control device further comprises a data transfer unit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11196211A JP2001022710A (en) | 1999-07-09 | 1999-07-09 | System with multiple bus controllers |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11196211A JP2001022710A (en) | 1999-07-09 | 1999-07-09 | System with multiple bus controllers |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2001022710A true JP2001022710A (en) | 2001-01-26 |
Family
ID=16354061
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP11196211A Pending JP2001022710A (en) | 1999-07-09 | 1999-07-09 | System with multiple bus controllers |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2001022710A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2004079573A1 (en) * | 2003-03-04 | 2004-09-16 | Fujitsu Limited | Multi-processor system |
| US7757062B2 (en) | 2006-03-13 | 2010-07-13 | Panasonic Corporation | Semiconductor integrated circuit apparatus |
-
1999
- 1999-07-09 JP JP11196211A patent/JP2001022710A/en active Pending
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2004079573A1 (en) * | 2003-03-04 | 2004-09-16 | Fujitsu Limited | Multi-processor system |
| JPWO2004079573A1 (en) * | 2003-03-04 | 2006-06-08 | 富士通株式会社 | Multiprocessor system |
| US7757062B2 (en) | 2006-03-13 | 2010-07-13 | Panasonic Corporation | Semiconductor integrated circuit apparatus |
| US8086814B2 (en) | 2006-03-13 | 2011-12-27 | Panasonic Corporation | Semiconductor integrated circuit apparatus |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6526469B1 (en) | Bus architecture employing varying width uni-directional command bus | |
| US4935868A (en) | Multiple port bus interface controller with slave bus | |
| US6557069B1 (en) | Processor-memory bus architecture for supporting multiple processors | |
| US6295568B1 (en) | Method and system for supporting multiple local buses operating at different frequencies | |
| EP1422626B1 (en) | Multi-core communications module, data communications system incorporating a multi-core communications module, and data communications process | |
| US5218690A (en) | Vme-multibus ii interface adapter for protocol conversion and for monitoring and discriminating accesses on the multibus ii system bus | |
| EP1667024B1 (en) | Memory based cross compare for cross checked systems | |
| US5754802A (en) | Increasing data transfer efficiency for a read operation in a non-split transaction bus environment by substituting a write operation for the read operation | |
| US4969089A (en) | Method of operating a computer system and a multiprocessor system employing such method | |
| JP2001022710A (en) | System with multiple bus controllers | |
| KR960005395B1 (en) | Minimum contention processor and system bus system | |
| JPH04350753A (en) | Workstation having direct memory access controller and interface device for data channel | |
| JP3620173B2 (en) | Address conversion circuit and multiprocessor system | |
| JPH0478902A (en) | Bus controller | |
| JPH0973429A (en) | Computer system and control circuit between buses | |
| JPH0562384B2 (en) | ||
| JPH09223103A (en) | Information processing system | |
| JPS5845116B2 (en) | Duplex storage device | |
| JP2632049B2 (en) | Multiprocessor system | |
| KR100191242B1 (en) | Data transmission device | |
| JPH08180027A (en) | Arbitration circuit | |
| JPS5844426Y2 (en) | Inter-processor information transfer device | |
| US20050080960A1 (en) | Bus configuration circuit | |
| JPH07109599B2 (en) | Information transfer device for processing system | |
| JPH02211571A (en) | Information processor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050715 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050726 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050926 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20060228 |