JPH0816535A - Cpu system - Google Patents

Cpu system

Info

Publication number
JPH0816535A
JPH0816535A JP14356294A JP14356294A JPH0816535A JP H0816535 A JPH0816535 A JP H0816535A JP 14356294 A JP14356294 A JP 14356294A JP 14356294 A JP14356294 A JP 14356294A JP H0816535 A JPH0816535 A JP H0816535A
Authority
JP
Japan
Prior art keywords
cpu
data
shared memory
transmission
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP14356294A
Other languages
Japanese (ja)
Inventor
Kazuyoshi Matsuno
和義 松野
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP14356294A priority Critical patent/JPH0816535A/en
Publication of JPH0816535A publication Critical patent/JPH0816535A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To transmit data at a high speed by connecting plural CPUs to a common bus and transmitting data between CPUs. CONSTITUTION:In the CPU system which has plural CPUs la to In connected to a common bus 2 for transmission of data (DT) and address data and performs the inter-CPU communication to transmit DT from desired one of these CPUs to another CPU, a shared memory (MEM) 4 connected to the common bus 2 and a decoding means (DEC) which decodes the write address to the MEN 4 to generate an interrupt signal to the CPU corresponding to a preliminarily set address (ADD) at the time of the write to a specific address area are provided, and each CPU 1 is provided with the function which writes transmission object data in a transmission data storage area (A1) or the MEM 4 at the time of data transmission, the function which accesses a specific ADD area on the MEM determined correspondingly to the CPU or the transmission destination to write a flag at the time of the end of write, and the function which accesses the Al of the MEM 4 to read in DT at the time of receiving the interrupt signal from the DEC.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は共通のバスで接続される
複数のCPU間のデータ伝送方式を改良したCPUシス
テムに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a CPU system having an improved data transmission system between a plurality of CPUs connected by a common bus.

【0002】[0002]

【従来の技術】一般にCPU(プロセッサ)間でデータ
伝送を行うようにするには、それぞれのCPUにSIO
(シリアル通信入出力装置)を持たせ、送信側のCPU
からのパラレルデータを当該送信側のCPUにおけるS
IOによりシリアルに変換して出力し、受信側では当該
受信側のSIOによりシリアルデータを受信し、ここで
パラレルデータに変換して受信側のCPUに取り込ませ
る、と云った方式で行う。
2. Description of the Related Art Generally, in order to perform data transmission between CPUs (processors), SIOs must be provided to the respective CPUs.
(Serial communication input / output device), CPU on the transmission side
Parallel data from the S in the CPU on the transmitting side.
This is performed by a method in which the IO is converted to serial and output, and the receiving side receives serial data by the receiving SIO, converts the serial data into parallel data, and loads the parallel data into the receiving CPU.

【0003】しかしながら、この方法によると、通信対
象となるCPUの個数分だけ、各CPUにSIOポート
が必要となるので、この方式を実施しようとするために
は、消費電力や実装面積などの問題があり、従ってあま
り多くのCPUと通信することは困難であり、また、送
信する側のCPUでは複数のSIOを制御しなければな
らないことから、CPUの負荷が重くなる等の不具合が
ある。
However, according to this method, SIO ports are required for each CPU as many as the number of CPUs to be communicated. Therefore, in order to implement this method, there are problems such as power consumption and mounting area. Therefore, it is difficult to communicate with a large number of CPUs, and the CPU on the transmitting side must control a plurality of SIOs.

【0004】この不具合を解決するべく、各CPUから
共通にアクセスできる共有メモリを設けるようにする方
式もある。この共有メモリ方式では送信側のCPUによ
り伝送したいデータをこの共有メモリに書き込み、他の
各CPUではこの共有メモを読み出し操作してデータを
取り込むようにする。
In order to solve this problem, there is also a system in which a shared memory that can be commonly accessed by each CPU is provided. In this shared memory method, data to be transmitted is written in the shared memory by the CPU on the transmission side, and the other CPUs read the shared memo to take in the data.

【0005】しかしながら、この共有メモリ方式におい
ては、共有メモリからデータを取り込む場合、各CPU
からはポーリングにより読みにゆくので、どうしても時
間的な遅れが避けられないことから、リアルタイムに伝
送する必要のあるデータの通信には向かない等の問題が
あった。
However, in this shared memory system, when data is fetched from the shared memory, each CPU
There is a problem in that it is not suitable for communication of data that needs to be transmitted in real time, since it is inevitable that a time delay will occur because it will be read by polling.

【0006】[0006]

【発明が解決しようとする課題】上述した如く、SIO
による方式ではCPUに対して1対1の通信路を設ける
必要があるため、シリアル通信制御を実施するためのシ
リアルコントローラが多数(通信路数分)必要になり、
従って、システムの消費電力が増大し、また、実装面積
も増大する他、CPUの負荷が大きいと云う問題があ
る。
As described above, the SIO
In the method described above, since it is necessary to provide a one-to-one communication path to the CPU, a large number of serial controllers (for the number of communication paths) for performing serial communication control are required.
Therefore, there are problems that the power consumption of the system is increased, the mounting area is increased, and the load of the CPU is large.

【0007】また、共有メモリによる授受方式では共有
メモリの読み出しにあたっては、ポーリングを行うの
で、読出しの要求が発生してからの時間遅れが避けられ
ないため、リアルタイムのデータ伝送を行うことができ
ないと云う問題がある。
Further, in the transfer method using the shared memory, since polling is performed when reading the shared memory, a time delay after the request for reading is inevitable, so that real-time data transmission cannot be performed. There is a problem to say.

【0008】そこで、この発明の目的とするところは、
低消費電力化と省スペース化を図ることができ、また、
CPUの負荷を大きくすることなく、しかも、リアルタ
イムでデータ伝送ができるようにしたCPUシステムを
提供することにある。
Therefore, the object of the present invention is to
Low power consumption and space saving can be achieved.
An object of the present invention is to provide a CPU system capable of transmitting data in real time without increasing the load on the CPU.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するた
め、本発明は次のように構成する。すなわち、データお
よびアドレス・データを伝送する共通のバスに、複数の
CPUを接続し、これらCPUのうちの所望のCPUか
ら他のCPUにデータを伝送するCPU間通信を実施す
るCPUシステムにおいて、前記共通のバスに接続され
る共有メモリを設け、また、各CPUからこの共有メモ
リへのアクセス要求を調停して一つにアクセス権を与え
る調停手段と、この共有メモリに対する書き込みアドレ
スをデコードして特定アドレス領域に対する書き込みの
時に予め設定したアドレス対応のCPUに対する割り込
み信号を発生するデコード手段とを設けると共に、前記
CPUには、データ伝送時には前記調停手段に共有メモ
リのアクセス要求をすると共に、調停手段からアクセス
権が与えられると伝送するデータを共有メモリの伝送デ
ータ格納領域に書き込む機能と、この書き込みを終える
と伝送先のCPUに対応して定めた共有メモリの特定ア
ドレス領域をアクセスしてフラグを書き込む機能と、デ
コード手段から割り込み信号を受けると前記調停手段に
共有メモリのアクセス要求をすると共に、調停手段から
アクセス権が与えられると共有メモリの前記伝送データ
格納領域をアクセスしてデータを読み込む機能とを設け
て構成する。
In order to achieve the above object, the present invention is configured as follows. That is, in a CPU system that connects a plurality of CPUs to a common bus that transmits data and address data, and performs inter-CPU communication that transmits data from a desired CPU among these CPUs to another CPU, A shared memory connected to a common bus is provided, and arbitration means for arbitrating access requests to the shared memory from each CPU to give one access right, and a write address for this shared memory are decoded and specified. Decoding means for generating an interrupt signal to a CPU corresponding to a preset address at the time of writing to the address area is provided, and the CPU makes an access request to the arbitration means to the arbitration means at the time of data transmission, and the arbitration means Transmission of data to be transmitted when access is given to shared memory A function of writing to a data storage area, a function of writing a flag by accessing a specific address area of a shared memory defined corresponding to the CPU of the transmission destination when the writing is completed, and the arbitration when an interrupt signal is received from the decoding means. And a function of requesting access to the shared memory to the means and accessing the transmission data storage area of the shared memory to read data when the access right is given from the arbitration means.

【0010】[0010]

【作用】本発明は各CPUから共通にアクセスできる共
有メモリを有し、この共有メモリ内に各CPUに対して
割り込みを発生するエリアを設けてある。各々のCPU
は他のCPUにデータを伝送したい時、共有メモリに対
するアクセス権を取得し、伝送すべきデータを共有メモ
リ内の伝送データ格納領域に書き込み、伝送したいCP
Uに割り当てられている共有メモリ内の割り込み発生エ
リアに任意データを書き込む。共有メモリは割り込み発
生エリアをデコードするデコード手段を有しており、こ
のエリアにアクセスがあった場合はデコード手段は該当
CPUに割り込みをかける。これはデコード手段から各
CPUに個別に割り込み線が張られており、この個別に
張られた割り込み線のうちの伝送先該当のCPUに対す
る割り込み線をアクティブにする。割り込みが入ったC
PUは共有メモリ内の伝送データ格納領域からデータを
読み出して取り込む。
The present invention has a shared memory that can be commonly accessed by each CPU, and an area for generating an interrupt to each CPU is provided in this shared memory. Each CPU
Wants to transmit data to another CPU, acquires the access right to the shared memory, writes the data to be transmitted to the transmission data storage area in the shared memory, and transmits the CP
Write arbitrary data to the interrupt generation area in the shared memory assigned to U. The shared memory has a decoding means for decoding the interrupt generation area, and when the area is accessed, the decoding means interrupts the corresponding CPU. This is because an interrupt line is individually provided from the decoding means to each CPU, and the interrupt line to the CPU corresponding to the transmission destination is activated among the individually provided interrupt lines. Interrupted C
The PU reads and fetches data from the transmission data storage area in the shared memory.

【0011】このように、本発明ではデータ伝送用に共
有メモリを用い、また、共有メモリには伝送先のCPU
別に強制割り込みを与えるための割り込みエリアを設け
てあり、共有メモリに伝送デ−タを書き込むと共に強制
割り込みエリアのうち、伝送先対応のエリアをアクセス
することにより伝送先CPUへの割り込み発生を行うよ
うにし、この伝送先CPUに割り込み処理による共有メ
モリ内伝送データの読み込みを行うようにしているの
で、リアルタイムな情報伝送ができる。また、共有メモ
リを介しているので、CPUはシリアル伝送やポーリン
グ等の伝送制御等を行う必要がなく、負荷の軽減ができ
る。
As described above, in the present invention, the shared memory is used for data transmission, and the shared memory is the CPU of the transmission destination.
Separately, an interrupt area for giving a forced interrupt is provided, and the transmission data is written in the shared memory, and an area corresponding to the transmission destination in the forced interruption area is accessed to generate an interrupt to the transmission destination CPU. Further, since the transmission data in the shared memory is read by the interrupt processing to the transmission destination CPU, real-time information transmission can be performed. Further, since the shared memory is used, the CPU does not need to perform transmission control such as serial transmission and polling, and the load can be reduced.

【0012】[0012]

【実施例】本発明は、バスを介して接続される複数のC
PU間のデータ伝送を行うCPUシステムにおいて、各
CPUから共通にアクセスできるメモリを持ち、このメ
モリ内の任意のエリアに割り込み発生用番地を設定し、
データ伝送する場合に、CPU間の通信がリアルタイム
に行えるようにするもので、以下、本発明の実施例を図
面を参照して説明する。
BEST MODE FOR CARRYING OUT THE INVENTION The present invention relates to a plurality of Cs connected via a bus.
In a CPU system that transmits data between PUs, each CPU has a memory that can be accessed in common, and an interrupt generation address is set in an arbitrary area in this memory.
When data is transmitted, communication between CPUs can be performed in real time, and an embodiment of the present invention will be described below with reference to the drawings.

【0013】図1は本発明の一実施例を示す全体構成の
ブロック図であって、11 〜1n はそれぞれプロセッサ
(CPU)を登載した独立のCPU基板、2はCPUバ
ス、3は割り込み信号線、4は共有メモリ基板である。
FIG. 1 is a block diagram of an overall configuration showing an embodiment of the present invention. Reference numerals 11 to 1 n are independent CPU boards on which processors (CPUs) are mounted, 2 is a CPU bus, and 3 is an interrupt. Signal lines 4 are shared memory substrates.

【0014】CPUバス2は複数ビット分のデータバス
及び複数本のコントロールバス及び複数ビット分のアド
レスバスから構成されており、このCPUバス2に各C
PU基板11 〜1n および共有メモリ基板4はそのバス
を接続されている。
The CPU bus 2 is composed of a data bus for a plurality of bits, a plurality of control buses, and an address bus for a plurality of bits.
The PU boards 1 1 to 1 n and the shared memory board 4 are connected to the buses.

【0015】共有メモリ基板4は各CPU基板11 〜1
n のCPUが共有するメモリを搭載した基板であり、C
PUバス2により接続されていることにより、いずれの
CPU基板11 〜1n 上のCPUからもアクセス可能で
ある。
The shared memory board 4 is one of the CPU boards 1 1 to 1
It is a board that has a memory shared by n CPUs, and is C
By being connected by PU bus 2, it is also accessible from any CPU CPU substrate 1 1 on to 1 n.

【0016】割り込み信号線3は各CPU基板11 〜1
n から共有メモリ基板4に接続される制御線であり、各
CPU基板11 〜1n のCPUから割り込み要求を伝達
するための線であって、この割り込み信号線3は各CP
U基板11 〜1n 毎に独立して配される。なお、本発明
で使用しているCPUは例えば、32ビットCPUや、
64ビットCPUなどの高速高性能のプロセッサであ
り、近年では安価で入手が容易であって、処理を高速で
実施できる。
The interrupt signal line 3 is connected to each of the CPU boards 1 1 to 1
n is a control line connected to the shared memory board 4 and is a line for transmitting an interrupt request from the CPUs of the CPU boards 1 1 to 1 n.
It arranged independently of U substrate 1 1 each to 1 n. The CPU used in the present invention is, for example, a 32-bit CPU,
It is a high-speed and high-performance processor such as a 64-bit CPU, which is inexpensive and easily available in recent years and can perform processing at high speed.

【0017】本システムでは、CPU基板11 〜1n
うち、所望のあるCPU基板1n のCPUから所望の他
のCPU基板1n-1 のCPU 7にデータ伝送するには
共有メモリ基板4における共有メモリに対してCPU基
板1n のCPU 7からCPUバス2を介して伝送すべ
きデータを書き込み、次に共有メモリにおける伝送先の
CPU基板1n-1 のCPU 7への書き込みが割り当て
られたエリアにアクセスする。これにより、共有メモリ
基板4より該当CPU基板に該当するCPUに割り込み
要求がかかる。
[0017] In this system, of the CPU board 1 1 to 1 n, the data transmitted to the CPU board 1 n other CPU board 1 n-1 of the CPU 7 from the CPU desired that desired shared memory substrate 4 The data to be transmitted from the CPU 7 of the CPU board 1 n via the CPU bus 2 is written to the shared memory in, and then the writing to the CPU 7 of the destination CPU board 1 n-1 in the shared memory is assigned. Access the area. As a result, an interrupt request is issued from the shared memory board 4 to the CPU corresponding to the corresponding CPU board.

【0018】割り込みを受けたCPU基板1n-1 のCP
U 7は共有メモリ基板4上の共有メモリの所定エリア
に対してデータの読み取りを実施することにより、CP
U基板1n のCPUからCPU基板1n-1 のCPU 7
へのデータ伝送が完了する仕組みである。
CP of CPU board 1 n-1 which received interrupt
The U 7 reads the data from a predetermined area of the shared memory on the shared memory substrate 4 to obtain the CP.
CPU of U board 1 n to CPU 7 of CPU board 1 n-1
Is a mechanism for completing the data transmission to.

【0019】このようにするために、本システムでは次
のように構成する。詳細を説明する。図2はCPU基板
n (n =1,2,3,4,…)と共有メモリ基板4の
接続を示す構成の概略図であり、5はアドレスデコー
ダ、6は共有メモリ、7はCPU、8はバスアービタで
ある。
In order to do this, the system is constructed as follows. Details will be described. FIG. 2 is a schematic diagram of a configuration showing the connection between the CPU substrate 1 n (n = 1, 2, 3, 4, ...) And the shared memory substrate 4, 5 is an address decoder, 6 is a shared memory, 7 is a CPU, 8 is a bus arbiter.

【0020】これらのうち、共有メモリ6は少なくとも
所定の容量のアドレス空間を有するデータの読み/書き
可能なメモリであり、そのアドレス空間は図5に示すよ
うに、伝送データを書き込み、引き渡すための伝送デー
タエリアと、伝送元の各CPU基板11 〜1n 別に伝送
先の各CPU基板11 〜1n が予めアドレス対応に割り
付けられた伝送先指定フラグ領域(割り込み先フラグ領
域)とに分けてある。
Of these, the shared memory 6 is a data readable / writable memory having an address space of at least a predetermined capacity, and the address space is for writing and delivering transmission data as shown in FIG. divided into a transmission data area, the transmission source of the transmission destination specifying flag area each CPU board 1 1 to 1 n of the CPU board 1 1 to 1 n separate transmission destination is allocated in advance the address corresponding to the (interrupt destination flag area) There is.

【0021】アドレスデコーダ5はCPUバス2におけ
るアドレス・バスを入力側に接続され、出力側は複数の
端子を有していて入力アドレス・データに応じて予め設
定された所定の出力端子に信号出力する(出力端子をア
クティブにする)回路であり、出力端子は各CPU基板
1 〜1n のうち、それぞれ対応するCPU基板11
n に繋がる割り込み信号線に接続される。
The address decoder 5 is connected to the input side of the address bus in the CPU bus 2 and has a plurality of terminals on the output side, and outputs a signal to a predetermined output terminal preset according to the input address data. (The output terminals are activated), and the output terminals are the corresponding CPU boards 1 1 to 1 out of the CPU boards 1 1 to 1 n.
It is connected to the interrupt signal line connected to 1 n .

【0022】すなわち、アドレスデコーダ5はCPUバ
ス2におけるアドレス・バスに、前記伝送先指定フラグ
領域(割り込み先フラグ領域)がアクセスされるアドレ
ス・データが現われた時、対応するCPU基板11 〜1
n の割り込み信号線接続端子をアクティブにするよう
に、そのアドレス・データをデコードする機能を有して
おり、このアクティブになった割り込み信号線接続端子
の出力は割り込み信号INTとして対応するCPU基板
1 〜1n のCPUの割り込み信号端子に与えられる構
成である。
[0022] That is, the address decoder 5 to the address bus of the CPU bus 2, when the transmission destination designation flag region (interrupt destination flag area) is the address data to be accessed has appeared, corresponding CPU board 1 1 to 1
It has a function of decoding the address data so that the n interrupt signal line connection terminal is activated, and the output of the activated interrupt signal line connection terminal is the corresponding CPU board 1 as the interrupt signal INT. The configuration is such that it is applied to the interrupt signal terminals of the CPUs 1 to 1 n .

【0023】従って、共有メモリ6の前記伝送先指定フ
ラグ領域がアクセスされる時は、アクセスされる領域対
応のCPU基板のCPUに対する割り込みがかかるよう
になり、割り込みがかかると共有メモリ6の伝送データ
書き込み領域を、この割り込みによる処理により読出す
割り込み処理プログラムを持たせておくことにより、自
動的に伝送先のCPU基板のCPUに共有メモリ6の伝
送データ書き込み領域を読み出させて取り込ませること
ができるようにしている。
Therefore, when the transmission destination designation flag area of the shared memory 6 is accessed, the CPU of the CPU board corresponding to the accessed area is interrupted, and when the interrupt occurs, the transmission data of the shared memory 6 is interrupted. By providing the write area with an interrupt processing program for reading by the processing by this interrupt, the CPU of the CPU board of the transmission destination can be made to automatically read and take in the transmission data write area of the shared memory 6. I am able to do it.

【0024】バスアービタ8はバス・リクエストの要求
に対して調停をするものであり、このバスアービタ8に
はその入力側に各CPU基板11 〜1n からのバスリク
エスト線BRがそれぞれ接続されており、対応するバス
リクエスト線BRを介して各CPU基板11 〜1n から
出力されたバスリクエスト信号を受けるとその中の一つ
のCPU基板11 (〜1n )からのバスリクエストにつ
いてリクエストを受付け、当該CPU基板11 (〜1
n )にCPUバス2のアクセス権を与えるべく、当該C
PU基板11 (〜1n )対応のバスグラント信号線BR
をアクティブにする機能を有する。
The bus arbiter 8 arbitrates for a request for a bus request, and the bus arbiter 8 is connected to the bus request line BR from each of the CPU boards 1 1 to 1 n on its input side. , When a bus request signal output from each of the CPU boards 1 1 to 1 n is received via the corresponding bus request line BR, the request for the bus request from one of the CPU boards 1 1 (to 1 n ) is accepted. , The CPU board 1 1 (to 1
n ) to give the CPU bus 2 access right,
Bus board signal line BR corresponding to PU substrate 1 1 (to 1 n ).
Has the function of activating.

【0025】図3は各CPU基板11 〜1n 側の構成例
であり、いずれのCPU基板11 〜1n も基本的にはこ
の図3の構成を有している。図3における9はチップセ
レクト回路、10はバスリクエスト回路、11はACK
コントロール回路である。
FIG. 3 is a configuration example of each CPU board 1 1 to 1 n-side, the one of the CPU board 1 1 to 1 n also basically has the configuration of FIG. In FIG. 3, 9 is a chip select circuit, 10 is a bus request circuit, and 11 is an ACK.
It is a control circuit.

【0026】上記チップセレクト回路9は自CPU基板
上のCPU 7の出力アドレスが、予め設定されたアド
レスを示すとき、チップセレクト信号を出力するもので
あり、バス・リクエスト回路10はこのチップセレクト
信号を受けてアクティブ状態になり、CPU 7のアド
レス・ストローブ端子(AS)出力及びデータ・ストロ
ーブ端子(DS)出力に応じてバス・リクエスト信号B
Rを出力する回路である。
The chip select circuit 9 outputs a chip select signal when the output address of the CPU 7 on its own CPU board indicates a preset address, and the bus request circuit 10 outputs this chip select signal. In response to the output of the address strobe terminal (AS) and the output of the data strobe terminal (DS) of the CPU 7, the bus request signal B is received.
This is a circuit that outputs R.

【0027】なお、アドレス・ストローブ端子(AS)
の信号出力はCPU 7よりアドレス・データが出力状
態であることを知らせる当該CPU 7の状態信号であ
り、また、データ・ストローブ端子(DS)の信号出力
は当該CPU 7からデータが出力状態であることを知
らせる当該CPU 7の状態信号である。
Address strobe terminal (AS)
Is a status signal of the CPU 7 indicating that the address data is output from the CPU 7, and the signal output of the data strobe terminal (DS) is a data output status of the CPU 7. This is a status signal of the CPU 7 for notifying that.

【0028】従って、アドレス・ストローブ端子(A
S)の信号出力があるときはCPU7よりアドレス・デ
ータが出力されていてアドレス・データを取り込み可能
であることを当該CPU 7が知らせており、また、デ
ータ・ストローブ端子(DS)の信号出力があるときは
当該CPU 7からデータが出力されていてデータを取
り込み可能であることを当該CPU 7が知らせてい
る。
Therefore, the address strobe terminal (A
When the signal S) is output, the CPU 7 has notified that the address data is being output from the CPU 7 and that the address data can be fetched, and the signal output of the data strobe terminal (DS) is At some time, the CPU 7 informs that the data is being output from the CPU 7 and the data can be fetched.

【0029】また、ACKコントロール回路11はバス
リクエスト回路10から与えられるバスリクエスト信号
BRと、バスアービタ8のバスグラント(BG)線によ
り与えられるバスグラント信号、及び後述するバスタイ
ムアウト監視回路12からデータ転送完了の状態の時に
出力されて与えられるデータアクノリッジ(DTAC
K)信号(このDTACK信号は例えば、非同期転送の
ため、データ転送サイクルを完了させる応答信号であ
る)、および共有メモリ基板4からのバス・エラー(B
ERR)信号を入力とし、データ・アクノリッジ(DT
ACK)信号を出力する回路であり、バス・リクエスト
信号BRとバスグラント(BG)線にがアクティブ状態
で、データアクノリッジ(DTACK)信号がアクノリ
ッジ(認可)状態であり、バス・エラー(BERR)信
号がないとき、データアクノリッジ信号を出力してCP
U 7のデータアクノリッジ(DTACK)端子に信号
を与え、また、バス・エラー(BERR)信号があると
き、CPU 7のバス・エラー(BERR)端子に信号
を与える機能を有するもので、データの読み書きが可能
な状態であるか否かをCPU 7に知らせるための回路
である。
The ACK control circuit 11 transfers data from the bus request signal BR provided by the bus request circuit 10, the bus grant signal provided by the bus grant (BG) line of the bus arbiter 8, and the bus timeout monitoring circuit 12 described later. Data acknowledge (DTAC) which is output and given in the completion state
K) signal (this DTACK signal is, for example, a response signal that completes a data transfer cycle due to asynchronous transfer), and a bus error (B
ERR signal as input and data acknowledge (DT)
ACK) signal output circuit, the bus request signal BR and the bus grant (BG) line are in the active state, the data acknowledge (DTACK) signal is in the acknowledge (approval) state, and the bus error (BERR) signal When there is no signal, a data acknowledge signal is output and CP
It has a function of giving a signal to the data acknowledge (DTACK) terminal of U 7 and also giving a signal to the bus error (BERR) terminal of the CPU 7 when there is a bus error (BERR) signal. This is a circuit for informing the CPU 7 of whether or not the state is possible.

【0030】図4は共有メモリ基板4の構成を示すブロ
ック図である。図に示すように、共有メモリ基板4はア
ドレス・バス及びデータ・バスに接続されるリード/ラ
イト可能なランダム・アクセス・メモリによる所要容量
の共有メモリ6と、各CPU基板1n のバス・リクエス
ト回路10から個別に導かれたバス・リクエスト信号B
R出力線が接続され、これら各バス・リクエスト信号B
R出力線からのバス・リクエスト信号BRを受けて同時
にアクセスがされることのないように一つに、バスのア
クセス権を与えるためのバス・グラント信号BGをその
アクセス権を与えたCPU基板1n のバス・グラント信
号線に与え、バスアクセスの競合が生じないように調停
を行う回路である。
FIG. 4 is a block diagram showing the structure of the shared memory substrate 4. As shown in the figure, the shared memory board 4 is a shared memory 6 of a required capacity by a readable / writable random access memory connected to an address bus and a data bus, and a bus request for each CPU board 1 n. Bus request signal B individually derived from the circuit 10
R output line is connected to each of these bus request signals B
The CPU board 1 which has given the access right to the bus grant signal BG for giving the access right to the bus so that the bus request signal BR from the R output line is not simultaneously accessed. It is a circuit that applies arbitration to the n bus grant signal line and performs arbitration so as to prevent contention of bus access.

【0031】また、アドレスデコーダ5は前述したよう
に、アドレスバスのアドレスデータを取り込み、アドレ
スデコードしてそのアドレスデータが特定のアドレスを
示すとき、対応するCPU基板11 〜1n のCPUに対
する割り込み信号INTを発生する回路であり、この特
定アドレスとしては後述する共有メモリ6内の割り込み
エリア対応に割り込み信号発生先を設定してある。
Further, as described above, the address decoder 5 fetches the address data on the address bus, decodes the address, and when the address data indicates a specific address, interrupts the CPU of the corresponding CPU boards 1 1 to 1 n. This is a circuit for generating the signal INT, and as this specific address, an interrupt signal generation destination is set corresponding to an interrupt area in the shared memory 6 described later.

【0032】バスタイムアウト監視回路12はバスに対
するアクセス権の時間制限を行うための回路であり、ア
クセス権を得たCPUのアドレス・ストローブ端子(A
S)からのアドレス・ストローブ信号またはデータ・ス
トローブ端子(DS)からのデータ・ストローブ信号を
受けてから所定の時間経過するとバス・エラー信号(B
ERR)を出力し、各CPU基板11 〜1n のACKコ
ントロール回路11に与え、アクセス権の終了をバス・
エラーとして知らせる回路である。尚、バスタイムアウ
ト監視回路12はデータ転送完了の状態の時にデータア
クノリッジ(DTACK)信号を出力する。
The bus time-out monitoring circuit 12 is a circuit for limiting the time of the access right to the bus. The address strobe terminal (A
S) and the address strobe signal or the data strobe signal from the data strobe terminal (DS), a bus error signal (B
ERR) is output to the ACK control circuit 11 of each of the CPU boards 1 1 to 1 n to terminate the access right by the bus.
This is a circuit to notify as an error. The bus timeout monitoring circuit 12 outputs a data acknowledge (DTACK) signal when the data transfer is completed.

【0033】共有メモリ6内のアドレス空間割付け状態
を図5を参照して少し詳しく触れておく。図に示すよう
に、共有メモリ6はアドレス空間を伝送データ書き込み
領域と、各CPU基板11 〜1n 毎に割り込みのフラグ
を立てる(書き込む)ためのフラグ領域に予め領域分け
して特定領域に割り当ててある。
The address space allocation state in the shared memory 6 will be described in some detail with reference to FIG. As shown, the shared memory 6 and transmits the data write area of address space, a flag of the interrupt to the CPU board 1 1 each to 1 n (written) to a specific region in advance divided into regions in the flag area for I have been assigned.

【0034】共有メモリ6はアドレス空間のうち、例え
ば、アドレスが“01”,“02”,“03”,“0
4”,〜“10”までの領域は、伝送元のCPUとして
CPU基板1n のCPUが他のCPU基板のCPUに伝
送する場合の伝送先のフラグを立てるための領域であ
り、アドレスが“01”の領域を用いる場合は伝送元の
CPU基板1n のCPUから伝送先のCPU基板11
CPUへの伝送を示し、アドレスが“02”の領域を用
いる場合は伝送元のCPU基板1n のCPUから伝送先
のCPU基板12 のCPUへの伝送を示す。
The shared memory 6 has, for example, addresses "01", "02", "03", "0" in the address space.
Areas 4 "to" 10 "are areas for setting a transmission destination flag when the CPU of the CPU substrate 1 n as a transmission source CPU transmits to a CPU of another CPU substrate, and the address is" 01 "when using an area represents the transmission to the transmission destination of the CPU board 1 1 CPU from a transmission source CPU board 1 n of the CPU, the address is" CPU board of the transmission source when using an area of 02 "1 from n of the CPU indicating the transmission to the transmission destination of the CPU board 1 2 of the CPU.

【0035】また、アドレスが“11”,“12”,
“13”,“14”,〜“20”までの領域は、伝送元
のCPUとしてCPU基板1n-1 のCPUが他のCPU
基板のCPUに伝送する場合の伝送先のフラグを立てる
ための領域であり、アドレスが“11”の領域を用いる
場合は伝送元のCPU基板1n-1 からCPU基板11
CPUへの伝送を示し、アドレスが“12”の領域を用
いる場合は伝送元のCPU基板1n-1 からCPU基板1
2 のCPUへの伝送を示すと云った具合である。
The addresses are "11", "12",
In the areas "13", "14", and "20", the CPU of the CPU board 1n-1 is the other CPU as the transmission source CPU.
An area for make a destination flags when transmitting to the substrate of the CPU, the transmission from the CPU board 1 n-1 of the transmission source in the case of using the area of the address "11" to the CPU board 1 1 CPU When the area of which the address is “12” is used, the CPU board 1 n-1 of the transmission source to the CPU board 1
That is, it indicates transmission to the second CPU.

【0036】次に上記構成の本システムの作用を説明す
る。まずあるCPU基板1n-1 のCPUが他のCPU基
板1n-2 のCPUにデータを伝送する例を説明する。C
PU基板1n-1 のCPUがCPU基板1n-2 のCPUに
データ伝送する必要が生じると、図2のCPU基板1
n-1 のCPUは共有メモリ基板4に対して、データを転
送することになる。その際にCPU基板1n-1 のCPU
はCPUバス2のアクセス権を取得する必要があり、C
PU基板1n-1 のCPU 7はバス・リクエスト信号を
発生する。すなわち、CPU基板1n-1 は図3に示す構
成を有しており、共有メモリ基板4における共有メモリ
6内の伝送データ書き込み領域のアドレス・データと、
伝送すべきデータをCPU基板1n-1 内のCPU 7よ
り発生するが、このとき、当該CPU 7はアドレス・
データ発生のタイミイングでアドレス・ストローブ信号
(AS)を発生し、伝送すべきデータ発生のタイミイン
グでデータ・ストローブ信号(DS)を発生する。
Next, the operation of the present system having the above configuration will be described. First, an example in which the CPU of one CPU board 1 n-1 transmits data to the CPU of another CPU board 1 n-2 will be described. C
When the CPU of the PU board 1 n-1 needs to transmit data to the CPU of the CPU board 1 n-2 , the CPU board 1 n of FIG.
The n−1 CPU transfers data to the shared memory substrate 4. At that time, CPU of CPU board 1 n-1
Needs to obtain the access right of the CPU bus 2, and C
The CPU 7 of the PU board 1 n-1 generates a bus request signal. That is, the CPU substrate 1 n-1 has the configuration shown in FIG. 3, and the address data of the transmission data writing area in the shared memory 6 in the shared memory substrate 4 and
The data to be transmitted is generated by the CPU 7 in the CPU board 1 n-1 .
An address strobe signal (AS) is generated by timing of data generation, and a data strobe signal (DS) is generated by timing of data generation to be transmitted.

【0037】そして、上記伝送データ書き込み領域のア
ドレス・データ発生時に、チップセレクト回路9はチッ
プセレクト信号を発生し、バスリクエスト回路10に与
える。これにより、バスリクエスト回路10は動作可能
な状態になる。
Then, when the address / data in the transmission data write area is generated, the chip select circuit 9 generates a chip select signal and supplies it to the bus request circuit 10. As a result, the bus request circuit 10 becomes operable.

【0038】また、前記アドレス・ストローブ信号(A
S)、データ・ストローブ信号(DS)はバスリクエス
ト回路10に与えられ、当該バスリクエスト回路10は
この信号を受けるとその出力線であるバス・リクエスト
(BR)線をアクティブにする。
The address strobe signal (A
S), the data strobe signal (DS) is given to the bus request circuit 10, and when the bus request circuit 10 receives this signal, the bus request circuit (BR) which is its output line is activated.

【0039】各CPU基板11 〜1n からのバス・リク
エスト(BR)線は図4に示すように共有メモリ基板4
のバスアービタ8の入力側に接続されており、CPU基
板1n-1 からのバス・リクエスト信号は当該バスアービ
タ8に入力されてここで調停される。そして、この調停
の結果、CPUバス2のアクセスが可能な状態であれ
ば、バスアービタ8はCPU基板1n-1 に対するバスグ
ラント線(BG)をアクティブにしてCPU基板1n-1
に返す。
The bus request (BR) lines from the CPU boards 1 1 to 1 n are shared memory board 4 as shown in FIG.
Connected to the input side of the bus arbiter 8 and the bus request signal from the CPU board 1n-1 is input to the bus arbiter 8 and arbitrated there. As a result of this arbitration, if ready for access CPU bus 2, arbiter 8 CPU board 1 and the bus grant line to the CPU board 1 n-1 a (BG) to activate the n-1
Return to.

【0040】このようにしてバスアービタ8はCPU基
板からバス・リクエストがあった時、CPUバス2のア
クセスが可能ならばそのバス・リクエストがあったCP
U基板対応のバスグラント線(BG)をアクティブこと
により知らせる。
In this way, when the bus arbiter 8 receives a bus request from the CPU board, if the CPU bus 2 can be accessed, the CP requesting the bus request will be issued.
Notify by activating the bus grant line (BG) for U board.

【0041】バスグラント線(BG)がアクティブにな
ったCPU基板1n-1 ではアクセス権を獲得したことに
なり、アクセス権を持ったCPU基板1n-1 のCPU
7はアドレス・データおよび伝送すべきデータをCPU
バス2に順に出力し、かつ、書き込み信号を出力して共
有メモリ基板4に対する書き込みのためのアクセスを行
い、共有メモリ基板4上の共有メモリ6に伝送したいデ
ータを転送する(書き込む)。
The CPU board 1 n-1 in which the bus grant line (BG) has become active has acquired the access right, and thus the CPU of the CPU board 1 n-1 having the access right.
7 is a CPU for address data and data to be transmitted
The data is sequentially output to the bus 2 and a write signal is output to access the shared memory substrate 4 for writing, and the data to be transmitted is transferred (written) to the shared memory 6 on the shared memory substrate 4.

【0042】転送(書き込み)が終わったCPU基板1
n-1 は、図5の割り込みエリアテーブルに従い、転送先
(割り込み先)のエリアにフラグを立てる。すなわち、
共有メモリ6におけるデータ転送先のCPU基板1n-2
対応のアドレス領域にフラグを立てる。
CPU board 1 after transfer (writing)
n-1 sets a flag in the transfer destination (interrupt destination) area according to the interrupt area table of FIG. That is,
CPU board 1 n-2 of the data transfer destination in the shared memory 6
Flag the corresponding address area.

【0043】共有メモリ6における当該転送先(割り込
み先)エリア内へのアクセスは共有メモリ基板4に設け
られた図4のアドレスデコーダ5により常時監視されて
おり、当該転送先(割り込み先)エリア内へのアクセス
が生じたことによって、アドレス・デコーダ5はその該
当CPU基板1n-2 の接続されている割り込み信号線を
アクティブにする(CPU基板1n-2 への割り込み信号
INT発生)。
Access to the transfer destination (interrupt destination) area in the shared memory 6 is constantly monitored by the address decoder 5 of FIG. 4 provided on the shared memory substrate 4, and the access to the transfer destination (interrupt destination) area is performed. When the access to the CPU board 1 n-2 occurs, the address decoder 5 activates the interrupt signal line connected to the corresponding CPU board 1 n-2 (generation of the interrupt signal INT to the CPU board 1 n-2 ).

【0044】このアドレス・デコーダ5のCPU基板1
n-2 への接続がなされた割り込み信号線がアクティブに
なったことにより、転送先CPU基板であるCPU基板
n-2 に転送先データのあることを知らせる。割り込み
信号INTにより割り込みを受けたCPU基板1n-2 の
CPU 7は割り込み処理を開始し、初めに自己のCP
Uバス2のアクセス権を取得するためにバス・リクエス
ト信号を発生する。
CPU board 1 of this address decoder 5
The activation of the interrupt signal line connected to n-2 informs the CPU board 1 n-2 which is the transfer destination CPU board that there is transfer destination data. The CPU 7 of the CPU board 1n-2, which has been interrupted by the interrupt signal INT, starts interrupt processing, and first, its own CP.
A bus request signal is generated to acquire the access right of the U bus 2.

【0045】すなわち、CPU基板1n-2 も図3に示す
構成を有しており、割り込み信号INTによる割り込み
処理を開始すると、共有メモリ基板4の上記転送データ
が書き込まれたアドレス領域を示すアドレス・データと
CPUバス2からのデータを読み込む読み込み信号とを
CPU基板1n-2 内のCPU 7より発生するが、この
とき、当該CPU 7はアドレス・データ発生のタイミ
イングでアドレス・ストローブ信号(AS)を発生し、
伝送すべきデータ発生のタイミイングでデータ・ストロ
ーブ信号(DS)を発生する。
That is, the CPU substrate 1 n-2 also has the configuration shown in FIG. 3, and when the interrupt processing by the interrupt signal INT is started, the address indicating the address area of the shared memory substrate 4 in which the transfer data is written is written. A data and a read signal for reading the data from the CPU bus 2 are generated from the CPU 7 in the CPU board 1 n-2 . At this time, the CPU 7 uses the address strobe signal (AS) by timing the generation of the address data. ) Occurs,
A data strobe signal (DS) is generated by timing the generation of data to be transmitted.

【0046】これらアドレス・ストローブ信号(A
S)、データ・ストローブ信号(DS)はバスリクエス
ト回路10に与えられ、当該バスリクエスト回路10は
この信号を受けるとその出力線であるバス・リクエスト
(BR)線をアクティブにする。
These address strobe signals (A
S), the data strobe signal (DS) is given to the bus request circuit 10, and when the bus request circuit 10 receives this signal, the bus request circuit (BR) which is its output line is activated.

【0047】各CPU基板11 〜1n からのバス・リク
エスト(BR)線は図4に示すように共有メモリ基板4
のバスアービタ8の入力側に接続されており、CPU基
板1n-2 からのバス・リクエスト信号は当該バスアービ
タ8に入力されてここで調停される。そして、この調停
の結果、CPUバス2のアクセスが可能な状態であれ
ば、バスアービタ8はCPU基板1n-2 に対するバスグ
ラント線(BG)をアクティブにしてCPU基板1n-2
に返す。
The bus request (BR) lines from the CPU boards 1 1 to 1 n are shared memory board 4 as shown in FIG.
Connected to the input side of the bus arbiter 8 and the bus request signal from the CPU board 1 n-2 is input to the bus arbiter 8 and arbitrated there. As a result of this arbitration, if ready for access CPU bus 2, the bus arbiter 8 CPU board 1 n-2 CPU board 1 and the bus grant line (BG) active against n-2
Return to.

【0048】バスグラント線(BG)がアクティブにな
ったCPU基板1n-2 ではアクセス権を獲得したことに
なり、アクセス権を持ったCPU基板1n-2 のCPU
7は共有メモリ6に対して上記伝送データの書き込まれ
たアドレスをアクセスするためのアドレス・データを順
次、読出し信号と共に出力し、共有メモリ6から読み出
されてCPUバス2に順に出力されてくる伝送すべきデ
ータを取り込む。
The CPU board 1 n-2 in which the bus grant line (BG) is activated has acquired the access right, and the CPU of the CPU board 1 n-2 having the access right is acquired.
Reference numeral 7 sequentially outputs address data for accessing the address in which the transmission data is written to the shared memory 6, together with a read signal, and is read from the shared memory 6 and sequentially output to the CPU bus 2. Capture the data to be transmitted.

【0049】このようにして、伝送したいデータが発生
した時は予め定めた共有メモリ6の伝送データ書き込み
領域に書き込むと共に、共有メモリ6における予め定め
た転送先CPU対応のアドレスにフラグを立てるように
し、このフラグを立てる際の共有メモリ6のアクセスに
よるアドレス・データを利用してアドレス・デコーダに
よりその転送先CPUに対する割り込み信号を発生する
ようにし、割り込み信号を受けた転送先CPUでは割り
込み処理により、共有メモリ6の伝送データ書き込み領
域をアクセスしてデータを読出し、取り込むようにし
た。
In this way, when the data to be transmitted is generated, it is written in the transmission data writing area of the predetermined shared memory 6 and a flag is set in the address corresponding to the predetermined transfer destination CPU in the shared memory 6. , An address decoder is used to generate an interrupt signal for the transfer destination CPU by using the address data obtained by accessing the shared memory 6 when this flag is set, and the transfer destination CPU receiving the interrupt signal performs interrupt processing. The transmission data writing area of the shared memory 6 is accessed to read and fetch data.

【0050】この結果、CPU間の通信は共有メモリ6
の伝送データ書き込み領域への書き込みと、共有メモリ
6上に定めた転送先CPU対応の領域へのフラグ設定に
より、当該転送先CPUに割り込み処理がかかり、ただ
ちに当該転送先CPUに共有メモリ6の伝送データ書き
込み領域を読取り動作させるだけで、完了することにな
り、シリアル通信制御の場合のように、通信回線毎の通
信制御回路は不要であり、その分、各CPU基板は回路
の実装面積が縮減でき、また、消費電力が軽減される
他、各通信制御回路の制御が必要なくなるのでCPUに
おけるソフトウェアの負担が大幅に軽減される。
As a result, the communication between the CPUs is performed by the shared memory 6
Of the shared memory 6 is immediately transmitted to the transfer destination CPU by writing to the transfer data writing area and setting a flag in the area corresponding to the transfer destination CPU defined on the shared memory 6. This is completed only by reading the data writing area, and unlike the case of serial communication control, a communication control circuit for each communication line is unnecessary, and the circuit mounting area of each CPU board is reduced accordingly. In addition to reducing power consumption, it is not necessary to control each communication control circuit, which significantly reduces the load of software on the CPU.

【0051】また、データ伝送には共有メモリに対する
書き込みや読出しの割り込み処理で済むため、ポーリン
グのような長い制御時間が必要になると云った事態は発
生せず、特に近年のように、32ビットマイクロプロセ
ッサ(CPU)や64ビットマイクロプロセッサ(CP
U)のように、動作が極めて高速で、長いデータ長のデ
ータを容易に扱えるプロセッサの利用が容易であること
から、CPU負荷が軽減されることによる相乗効果によ
り、リアルタイムなデータ転送が可能となる。
Further, since data transmission only requires interrupt processing for writing and reading to and from the shared memory, there is no need for a long control time such as polling. In particular, as in recent years, 32-bit micro Processor (CPU) or 64-bit microprocessor (CP
As described in U), it is easy to use a processor that operates at an extremely high speed and that can easily handle data with a long data length. Therefore, real-time data transfer is possible due to the synergistic effect of reducing the CPU load. Become.

【0052】なお、本発明は上述した実施例に限定する
ことなく、その要旨を変更しない範囲内で適宜変形して
実施し得るものであり、上記実施例は伝送すべきデータ
を共有メモリ内に書き込み、伝送したいCPUに割り当
てられている共有メモリ内の割り込み発生エリアにフラ
グを書き込むことで伝送先のCPUに割り込みをデコー
ダから発生するようにしたが、割り込み発生エリアにフ
ラグを書き込むことは必ずしも必要ではなく、割り込み
発生エリアをアクセスできれば良いことから、フラグの
代わりに任意データを書き込むようにしたり、割り込み
発生エリアを読出すような手法でも差支えない。このよ
うにしても、デコーダ5は伝送側のCPUより共有メモ
リの割り込み発生エリアのアクセスに伴うアドレス・デ
ータをデコードし、このエリアにアクセスがあった場合
に該当CPUに個別に張られた割り込み線をアクティブ
にして割り込みを発生させ、割り込みが入ったCPUは
共有メモリ内データを読み出すことができる。
The present invention is not limited to the above-described embodiments, and can be carried out by appropriately modifying it within the scope not changing the gist thereof. In the above-mentioned embodiments, the data to be transmitted is stored in the shared memory. An interrupt is generated from the decoder to the CPU of the transmission destination by writing the flag in the interrupt generation area in the shared memory assigned to the CPU to be written and transmitted, but it is not always necessary to write the flag in the interrupt generation area. Instead, it is sufficient if the interrupt generation area can be accessed. Therefore, a method of writing arbitrary data instead of the flag or reading the interrupt generation area may be used. Even in this case, the decoder 5 decodes the address data associated with the access of the interrupt generation area of the shared memory from the transmitting side CPU, and when the area is accessed, the interrupt line individually provided to the corresponding CPU Is activated to generate an interrupt, and the CPU having the interrupt can read the data in the shared memory.

【0053】また、例えば、共有メモリ6内はアドレス
空間を伝送データ書き込み領域と、各CPU基板11
n 毎に割り込みのフラグを立てる(書き込む)ための
フラグ領域に予め領域分けしてあるから、強制割り込み
エリア外の割り込みエリアを新たに設けて緊急性のない
データの伝送にはここにフラグを立て、各CPU基板1
1 〜1n のCPUでは当該割り込みエリアにおける自己
に対するフラグ領域のフラグの状態を見て共有メモリ6
内の伝送データを任意に取り込んで来るような構成とす
ることも可能である。これは、フラグ領域のデータビッ
ト数が多数ビット分あるので、ビット位置を変えてフラ
グを立てるように伝送側のCPUに書き込み制御すると
共に、リアルタイムに渡す必要がない情報を書き込んで
おく領域を定めて任意に取り込ませるような場合に利用
可能である。
Further, for example, in the shared memory 6, an address space is used as a transmission data writing area, and each of the CPU boards 11 .
The flag area for setting (writing) an interrupt flag for every 1 n is divided into areas in advance, so that a new interrupt area outside the forced interrupt area is provided and the flag is set here for non-urgent data transmission. Stand, each CPU board 1
In the CPUs 1 to 1 n , the shared memory 6 is checked by checking the flag state of the flag area for itself in the interrupt area.
It is also possible to adopt a configuration in which the transmission data in the inside is taken in arbitrarily. This is because the number of data bits in the flag area is many, so write control is performed by the CPU on the transmission side so that the bit position is changed to set a flag, and an area for writing information that does not need to be passed in real time is defined. It can be used in the case where it can be arbitrarily taken in by the user.

【0054】[0054]

【発明の効果】以上、詳述したように本発明は複数のC
PU間でデータの伝送をリアルタイムで実施できるよう
にするために、各CPUから共通にアクセスできる共有
メモリを設けると共に、この共有メモリ内に各CPUに
対して割り込みを発生するエリアを設け、CPU間の通
信は共有メモリの伝送データ書き込み領域への書き込み
と、共有メモリ上に定めた転送先CPU対応の領域への
アクセスにより、当該転送先CPUに割り込み処理がか
かり、この割り込み処理により、ただちに当該転送先C
PUに共有メモリの伝送データ書き込み領域を読取り動
作させることで、データ伝送が完了することになり、シ
リアル通信制御の場合のように、通信回線毎の通信制御
回路は不要で、その分、各CPU基板は回路の実装面積
が縮減でき、また、消費電力が軽減される他、各通信制
御回路の制御が必要なくなるのでCPUにおけるソフト
ウェアの負担が大幅に軽減される等の特徴が得られる。
As described above in detail, the present invention has a plurality of Cs.
In order to enable data transmission between PUs in real time, a shared memory that can be commonly accessed by each CPU is provided, and an area for generating an interrupt for each CPU is provided in this shared memory. In the communication of, the transfer destination CPU is interrupted by writing to the transfer data writing area of the shared memory and accessing the area corresponding to the transfer destination CPU defined in the shared memory, and the transfer processing immediately causes the transfer. Destination C
By causing the PU to read the transmission data writing area of the shared memory, the data transmission is completed, and unlike the case of serial communication control, a communication control circuit for each communication line is not required, and each CPU is correspondingly required. The board can reduce the circuit mounting area, reduce power consumption, and eliminate the need for control of each communication control circuit, thereby significantly reducing the load of software on the CPU.

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

【図1】本発明の実施例を説明するための図であって、
本発明の一実施例における概略的なシステム構成を示す
ブロック図。
FIG. 1 is a diagram for explaining an embodiment of the present invention,
FIG. 1 is a block diagram showing a schematic system configuration in an embodiment of the present invention.

【図2】本発明の実施例を説明するための図であって、
本発明システムのCPU基板1n (n =1,2,3,
4,…)と共有メモリ基板4の接続を示す概略図。
FIG. 2 is a diagram for explaining an embodiment of the present invention,
CPU board 1 n (n = 1, 2, 3, 3 of the system of the present invention
4, ...) And the schematic diagram showing the connection between the shared memory substrate 4.

【図3】本発明の実施例を説明するための図であって、
本発明システムの各CPU基板11 〜1n 側の構成例を
示すブロック図。
FIG. 3 is a diagram for explaining an embodiment of the present invention,
Block diagram illustrating a configuration example of each CPU board 1 1 to 1 n-side of the present invention system.

【図4】本発明の実施例を説明するための図であって、
本発明システムの共有メモリ基板4の構成を示すブロッ
ク図。
FIG. 4 is a diagram for explaining an embodiment of the present invention,
The block diagram which shows the structure of the shared memory board | substrate 4 of this invention system.

【図5】本発明の実施例を説明するための図であって、
共有メモリのアドレス空間の割付け状況を示す図。
FIG. 5 is a diagram for explaining an embodiment of the present invention,
The figure which shows the allocation condition of the address space of shared memory.

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

1 〜1n …CPU基板 2…CPUバス 3…割り込み信号線 4…共有メモリ基板 5…アドレスデコーダ 6…共有メモリ 7…CPU 8…バスアービタ 9…チップセレクト回路 10…バスリクエスト回路 11…ACKコントロール回路。1 1 to 1 n ... CPU board 2 ... CPU bus 3 ... Interrupt signal line 4 ... Shared memory board 5 ... Address decoder 6 ... Shared memory 7 ... CPU 8 ... Bus arbiter 9 ... Chip select circuit 10 ... Bus request circuit 11 ... ACK control circuit.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 データおよびアドレス・データを伝送す
る共通のバスに、複数のCPUを接続し、これらCPU
のうちの所望のCPUから他のCPUにデータを伝送す
るCPU間通信を実施するCPUシステムにおいて、 前記共通のバスに接続される共有メモリを設け、また、
共有メモリに対する書き込みアドレスをデコードして特
定アドレス領域に対する書き込みの時に予め設定したア
ドレス対応のCPUに対する割り込み信号を発生するデ
コード手段とを設け、 また、前記各CPUには、データ伝送時に伝送対象のデ
ータを共有メモリの伝送データ格納領域に書き込む機能
と、この書き込みを終えると伝送先のCPUに対応して
定めた共有メモリの特定アドレス領域をアクセスする機
能と、デコード手段から割り込み信号を受けると共有メ
モリの前記伝送データ格納領域をアクセスしてデータを
読み込む機能とを設けて構成したことを特徴とするCP
Uシステム。
1. A plurality of CPUs are connected to a common bus for transmitting data and address data, and these CPUs are connected.
In a CPU system for performing inter-CPU communication for transmitting data from a desired CPU to another CPU, a shared memory connected to the common bus is provided, and
Decoding means for decoding a write address to the shared memory and generating an interrupt signal to a CPU corresponding to a preset address when writing to a specific address area is provided, and each CPU has data to be transmitted at the time of data transmission. To a transmission data storage area of the shared memory, a function of accessing a specific address area of the shared memory defined corresponding to the CPU of the transmission destination when the writing is finished, and a shared memory when the interrupt signal is received from the decoding means. And a function of reading the data by accessing the transmission data storage area of the CP.
U system.
【請求項2】 データおよびアドレス・データを伝送す
る共通のバスに、複数のCPUを接続し、これらCPU
のうちの所望のCPUから他のCPUにデータを伝送す
るCPU間通信を実施するCPUシステムにおいて、 前記共通のバスに接続される共有メモリを設け、また、
共有メモリに対する書き込みアドレスをデコードして特
定アドレス領域に対する書き込みの時に予め設定したア
ドレス対応のCPUに対する割り込み信号を発生するデ
コード手段とを設け、 また、前記各CPUには、データ伝送時に伝送対象のデ
ータを共有メモリの伝送データ格納領域に書き込む機能
と、この書き込みを終えると伝送先のCPUに対応して
定めた共有メモリの特定アドレス領域をアクセスしてフ
ラグを書き込む機能と、デコード手段から割り込み信号
を受けると共有メモリの前記伝送データ格納領域をアク
セスしてデータを読み込む機能とを設けて構成したこと
を特徴とするCPUシステム。
2. A plurality of CPUs are connected to a common bus for transmitting data and address data, and these CPUs are connected.
In a CPU system for performing inter-CPU communication for transmitting data from a desired CPU to another CPU, a shared memory connected to the common bus is provided, and
Decoding means for decoding a write address to the shared memory and generating an interrupt signal to a CPU corresponding to a preset address when writing to a specific address area is provided, and each CPU has data to be transmitted at the time of data transmission. To a transmission data storage area of the shared memory, a function of writing a flag by accessing a specific address area of the shared memory defined corresponding to the CPU of the transmission destination when the writing is completed, and an interrupt signal from the decoding means. A CPU system having a function of reading the data by accessing the transmission data storage area of the shared memory when receiving the data.
【請求項3】 データおよびアドレス・データを伝送す
る共通のバスに、複数のCPUを接続し、これらCPU
のうちの所望のCPUから他のCPUにデータを伝送す
るCPU間通信を実施するCPUシステムにおいて、 前記共通のバスに接続される共有メモリを設け、また、
各CPUからこの共有メモリへのアクセス要求を調停し
て一つにアクセス権を与える調停手段と、この共有メモ
リに対する書き込みアドレスをデコードして特定アドレ
ス領域に対する書き込みの時に予め設定したアドレス対
応のCPUに対する割り込み信号を発生するデコード手
段とを設けると共に、 前記CPUには、データ伝送時には前記調停手段に共有
メモリのアクセス要求をすると共に、調停手段からアク
セス権が与えられると伝送するデータを共有メモリの伝
送データ格納領域に書き込む機能と、この書き込みを終
えると伝送先のCPUに対応して定めた共有メモリの特
定アドレス領域をアクセスして任意データを書き込む機
能と、デコード手段から割り込み信号を受けると前記調
停手段に共有メモリのアクセス要求をすると共に、調停
手段からアクセス権が与えられると共有メモリの前記伝
送データ格納領域をアクセスしてデータを読み込む機能
とを設けて構成したことを特徴とするCPUシステム。
3. A plurality of CPUs are connected to a common bus for transmitting data and address data, and these CPUs are connected.
In a CPU system for performing inter-CPU communication for transmitting data from a desired CPU to another CPU, a shared memory connected to the common bus is provided, and
Arbitration means for arbitrating access requests to the shared memory from each CPU and giving access right to one, and for CPUs corresponding to preset addresses when decoding a write address for the shared memory and writing to a specific address area. Decoding means for generating an interrupt signal is provided, and the CPU requests the shared memory to access the arbitration means during data transmission, and transmits the data to be transmitted to the shared memory when the access right is given from the arbitration means. A function of writing data in the data storage area, a function of writing specific data by accessing a specific address area of the shared memory defined in correspondence with the CPU of the transmission destination when the writing is finished, and the arbitration upon receiving an interrupt signal from the decoding means. While requesting access to the shared memory to the means, A CPU system having a function of reading the data by accessing the transmission data storage area of the shared memory when the access right is given from the arbitration means.
【請求項4】 データおよびアドレス・データを伝送す
る共通のバスに、複数のCPUを接続し、これらCPU
のうちの所望のCPUから他のCPUにデータを伝送す
るCPU間通信を実施するCPUシステムにおいて、 前記共通のバスに接続される共有メモリを設け、また、
各CPUからこの共有メモリへのアクセス要求を調停し
て一つにアクセス権を与える調停手段と、この共有メモ
リに対する書き込みアドレスをデコードして特定アドレ
ス領域に対する書き込みの時に予め設定したアドレス対
応のCPUに対する割り込み信号を発生するデコード手
段とを設けると共に、 前記CPUには、データ伝送時には前記調停手段に共有
メモリのアクセス要求をすると共に、調停手段からアク
セス権が与えられると伝送するデータを共有メモリの伝
送データ格納領域に書き込む機能と、この書き込みを終
えると伝送先のCPUに対応して定めた共有メモリの特
定アドレス領域をアクセスしてフラグを書き込む機能
と、デコード手段から割り込み信号を受けると前記調停
手段に共有メモリのアクセス要求をすると共に、調停手
段からアクセス権が与えられると共有メモリの前記伝送
データ格納領域をアクセスしてデータを読み込む機能と
を設けて構成したことを特徴とするCPUシステム。
4. A plurality of CPUs are connected to a common bus for transmitting data and address data, and these CPUs are connected.
In a CPU system for performing inter-CPU communication for transmitting data from a desired CPU to another CPU, a shared memory connected to the common bus is provided, and
Arbitration means for arbitrating access requests to the shared memory from each CPU and giving access right to one, and for CPUs corresponding to preset addresses when decoding a write address for the shared memory and writing to a specific address area. Decoding means for generating an interrupt signal is provided, and the CPU requests the shared memory to access the arbitration means during data transmission, and transmits the data to be transmitted to the shared memory when the access right is given from the arbitration means. A function of writing to the data storage area, a function of writing a flag by accessing a specific address area of the shared memory defined corresponding to the CPU of the transmission destination when the writing is completed, and the arbitration means upon receiving an interrupt signal from the decoding means. Request for shared memory access and arbitration A CPU system having a function of accessing the transmission data storage area of the shared memory and reading data when an access right is given from the means.
JP14356294A 1994-06-24 1994-06-24 Cpu system Pending JPH0816535A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14356294A JPH0816535A (en) 1994-06-24 1994-06-24 Cpu system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14356294A JPH0816535A (en) 1994-06-24 1994-06-24 Cpu system

Publications (1)

Publication Number Publication Date
JPH0816535A true JPH0816535A (en) 1996-01-19

Family

ID=15341636

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14356294A Pending JPH0816535A (en) 1994-06-24 1994-06-24 Cpu system

Country Status (1)

Country Link
JP (1) JPH0816535A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853692A (en) * 2014-03-12 2014-06-11 四川九洲空管科技有限责任公司 Multiprocessor data communication method based on interrupt judgment mechanism

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853692A (en) * 2014-03-12 2014-06-11 四川九洲空管科技有限责任公司 Multiprocessor data communication method based on interrupt judgment mechanism

Similar Documents

Publication Publication Date Title
US5404464A (en) Bus control system and method that selectively generate an early address strobe
JP4008987B2 (en) Bus communication system, bus arbitration method, and data transfer method
US6014729A (en) Shared memory arbitration apparatus and method
US5682551A (en) System for checking the acceptance of I/O request to an interface using software visible instruction which provides a status signal and performs operations in response thereto
US5218690A (en) Vme-multibus ii interface adapter for protocol conversion and for monitoring and discriminating accesses on the multibus ii system bus
US5590299A (en) Multiprocessor system bus protocol for optimized accessing of interleaved storage modules
JP3136257B2 (en) Computer memory interface device
JPH05120129A (en) Multiplex-bank large-area memory card
CA2266076C (en) Bus interface control circuit
JPH10293744A (en) Pci bus system
US7581049B2 (en) Bus controller
US6959354B2 (en) Effective bus utilization using multiple bus interface circuits and arbitration logic circuit
JPH06231074A (en) Multiple access system for system bus
JP3455535B2 (en) Apparatus and method for performing bus processing
US5933613A (en) Computer system and inter-bus control circuit
JPS63175962A (en) Direct memory access controller
JPH0816535A (en) Cpu system
JP2618223B2 (en) Single chip microcomputer
US6009482A (en) Method and apparatus for enabling cache streaming
JPH04134551A (en) Method of informing second agent of necessity of service from first agent in bus for transferring data between a lurality of data processing agents
US5526494A (en) Bus controller
JPH0544238B2 (en)
JPH0227696B2 (en) JOHOSHORISOCHI
JP2004503871A (en) Direct memory access controller and method
JPH0973429A (en) Computer system and inter-bus control circuit