JPH0120459B2 - - Google Patents

Info

Publication number
JPH0120459B2
JPH0120459B2 JP58226440A JP22644083A JPH0120459B2 JP H0120459 B2 JPH0120459 B2 JP H0120459B2 JP 58226440 A JP58226440 A JP 58226440A JP 22644083 A JP22644083 A JP 22644083A JP H0120459 B2 JPH0120459 B2 JP H0120459B2
Authority
JP
Japan
Prior art keywords
processor
slave
data
master processor
memory block
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.)
Expired
Application number
JP58226440A
Other languages
Japanese (ja)
Other versions
JPS60118967A (en
Inventor
Haruyoshi Kakya
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP58226440A priority Critical patent/JPS60118967A/en
Publication of JPS60118967A publication Critical patent/JPS60118967A/en
Publication of JPH0120459B2 publication Critical patent/JPH0120459B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication
    • G06F15/17Interprocessor communication using an input/output type connection, e.g. channel, I/O port

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multi Processors (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、それぞれ共通のシステムバスに接続
された複数のプロセツサを備えたマルチプロセツ
サシステムに関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a multiprocessor system having a plurality of processors each connected to a common system bus.

〔従来技術〕 従来、各種の電子機器ではシステムバスにマイ
クロコンピユータなどのプロセツサを複数個接続
し、システムバスに接続されている大容量メモリ
等の資源を相互に送受して高度で複雑な処理を実
現できるようにしたマルチプロセツサシステムを
用いたものがある。
[Prior Art] Conventionally, in various electronic devices, multiple processors such as microcomputers are connected to a system bus, and resources such as large-capacity memory connected to the system bus are mutually sent and received to perform advanced and complex processing. There is a system using a multiprocessor system that has made this possible.

ところが、従来のマルチプロセツサシステムで
は、各プロセツサからシステムバスに対する同時
アクセスを防止するためシステムバスの使用権を
バスアービタによつて管理する構成をとつている
ため、バスアービタが必ず必要となつて構成が複
雑化すると共に、システムバスの使用許可が決定
されるまでに複雑な条件を判断しなくてはならず
全体としてのスループツトが低下してしまうとい
う欠点があつた。
However, in conventional multiprocessor systems, the right to use the system bus is managed by a bus arbiter in order to prevent simultaneous access to the system bus from each processor. In addition to the complexity, complicated conditions must be determined before permission to use the system bus is determined, resulting in a reduction in overall throughput.

なお、従来では特開昭48−87741号公報に記載
された計算機システムのように周辺装置に二組の
バツフアメモリを設け、前記バツフアメモリを計
算機と周辺装置に交互に切り換えて接続し、デー
タを送ることにより、周辺装置のデータ要求に対
する周辺制御装置から計算機へのデータ要求が平
均的になるようにしたものがあり、また特開昭55
−115142号公報に記載されたデータ処理方式のよ
うに前処理部からのデータをフアーストインフア
ーストアウト方式に従つてメモリに交互に書き込
むと共に、後処理部に読み出すことにより、デー
タ処理時間のばらつきに基づくデータの脱落やス
リツプを防止するようにしたものがあり、さら
に、特開昭55−134442号公報に記載されたデータ
転送装置のように2面バツフアメモリの各面切り
換え周期毎に入力される信号の先頭部分を記憶す
るレジスト手段を設け、入力信号に引き続くデー
タをいずれか一方のバツフアメモリに書き込み、
該書き込まれたデータを読み出すに先立つてレジ
スト手段に記憶されたデータを読み出すことによ
り、バツフアメモリの面切り換え時に、完全にデ
ータを読み出すようにしたものもある。
Note that conventionally, as in the computer system described in Japanese Patent Application Laid-open No. 48-87741, two sets of buffer memories are provided in a peripheral device, and the buffer memories are alternately connected to the computer and the peripheral device to send data. There is a system in which data requests from a peripheral control device to a computer are averaged in response to data requests from peripheral devices.
- Like the data processing method described in Publication No. 115142, data from the pre-processing section is alternately written to the memory according to the first-in-first-out method, and read out to the post-processing section, thereby reducing the variation in data processing time. There is a data transfer device that prevents data from dropping or slipping based on 2-side buffer memory. A register means is provided for storing the leading part of the signal, and data subsequent to the input signal is written into one of the buffer memories.
In some devices, the data stored in the registration means is read out before reading out the written data, so that the data can be completely read out when changing the buffer memory surface.

しかしながら上述した特開昭48−87741号公報
の計算機システム、特開昭55−115142号公報のデ
ータ処理方式及び特開昭55−134442号公報のデー
タ転送装置は、マルチプロセツサシステムにおけ
るデータ送受を対象としたものではなく、上記各
従来例をマルチプロセツサシステムに利用しよう
とした場合には、バスアービタ等のバス調停のた
めの回路が必要となり、上述した欠点が生じる。
また、上記各従来例は、一方向のデータ送受に対
するものであり、双方向のデータ送受には不向き
であるという欠点もある。
However, the above-mentioned computer system of JP-A-48-87741, data processing method of JP-A-55-115142, and data transfer device of JP-A-55-134442 do not support data transmission and reception in a multiprocessor system. If one attempts to utilize the above-mentioned conventional examples in a multiprocessor system, a circuit for bus arbitration such as a bus arbiter will be required, resulting in the above-mentioned drawbacks.
Furthermore, each of the above conventional examples is for unidirectional data transmission and reception, and has the disadvantage that it is not suitable for bidirectional data transmission and reception.

〔発明の目的〕[Purpose of the invention]

本発明は、上記欠点に鑑みなされたものであつ
て、スループツトを低下させないで各プロセツサ
間の双方向のデータ送受を行うと共に、バスアー
ビタ等のバス調停のための回路を不要にして簡単
な回路構成で安価なマルチプロセツサシステムを
提供することを目的とする。
The present invention was devised in view of the above-mentioned drawbacks, and is capable of bidirectional data transmission and reception between processors without reducing throughput, and has a simple circuit configuration that eliminates the need for a circuit for bus arbitration such as a bus arbiter. The purpose is to provide an inexpensive multiprocessor system.

〔発明の構成〕[Structure of the invention]

本発明は、各プロセツサのうち1つをマスタプ
ロセツサとし、残余をスレイブプロセツサとし、
かつ2つのメモリブロツクを有するメモリを各ス
レイブプロセツサにそれぞれ対応して設け、各メ
モリのメモリブロツクをマスタプロセツサの制御
のもとにマスタプロセツサ側とスレイブプロセツ
サ側に選択的に切替えてマスタプロセツサと各ス
レイブプロセツサとの間のデータ送受を行うよう
にしたものである。
In the present invention, one of the processors is a master processor, the remaining processors are slave processors,
A memory having two memory blocks is provided corresponding to each slave processor, and the memory blocks of each memory are selectively switched to the master processor side and the slave processor side under the control of the master processor. Data is sent and received between the master processor and each slave processor.

〔実施例〕〔Example〕

第1図は本発明の一実施例を示すブロツク図で
あつて、システムバス1にはマスタプロセツサ
2、大容量メモリ3、複数のスレイブプロセツサ
4−1〜4−Nが接続されている。この場合、ス
レイブプロセツサ4−1〜4−Nには第2図に示
すように、スレイブCPU40、マスタプロセツ
サ2との間でコマンドの送受を行うインプツトレ
ジスタ41およびアウトプツトレジスタ42、2
つのメモリブロツクA,Bを有するランダムアク
セスメモリ(RAM)43とが設けられている。
FIG. 1 is a block diagram showing an embodiment of the present invention, in which a master processor 2, a large capacity memory 3, and a plurality of slave processors 4-1 to 4-N are connected to a system bus 1. . In this case, the slave processors 4-1 to 4-N have an input register 41 and an output register 42, 2 for sending and receiving commands between the slave CPU 40 and the master processor 2, as shown in FIG.
A random access memory (RAM) 43 having two memory blocks A and B is provided.

このような構成において、例えばスレイブプロ
セツサ4−1が図示しない外部装置からデータを
受け、このデータをマスタプロセツサ2に転送す
る場合について説明すると、この場合にはまずマ
スタプロセツサ2からスレイブプロセツサ4−1
のインプツトレジスタ41に対し外部装置からの
データ入力動作を指示するコマンドが設定され
る。これにより、スレイブCPU40は外部装置
からのデータ入力動作を実行し、この時入力した
データをRAM43のBメモリブロツクに順次記
憶させる。このようなデータ入力動作を繰返し行
つているうちにBメモリブロツクへの書込みアド
レスが最終アドレスに達すると、スレイブCPU
40はこのことを表すコマンドをアウトプツトレ
ジスタ42に書込み、マスタプロセツサ2に対し
て割込みをかける。
In such a configuration, for example, a case where the slave processor 4-1 receives data from an external device (not shown) and transfers this data to the master processor 2 will be explained. Setusa 4-1
A command for instructing the input register 41 to input data from an external device is set. As a result, the slave CPU 40 executes the data input operation from the external device, and sequentially stores the input data in the B memory block of the RAM 43. While repeating this data input operation, when the write address to the B memory block reaches the final address, the slave CPU
40 writes a command representing this to the output register 42 and interrupts the master processor 2.

すると、この間他の処理を実行していたマスタ
プロセツサ2はスレイブプロセツサ4−1からの
割込みによつてスレイブプロセツサ4−1におけ
るRAM43のBメモリブロツクが満杯状態にな
つたことを検知し、スレイブプロセツサ4−1に
対しAメモリブロツクに代えてBメモリブロツク
をシステムバス1に結合させるべく切替コマンド
を送出する。このメモリブロツクの切替コマンド
はインプツトレジスタ41を介してスレイブ
CPU40に与えられる。これにより、スレイブ
CPU40はRAM43に対し切替信号を与え、A
メモリブロツクに代えてBメモリブロツクをシス
テムバス1に結合させる。
Then, the master processor 2, which was executing other processing during this time, detects that the B memory block of the RAM 43 in the slave processor 4-1 has become full due to an interrupt from the slave processor 4-1. , sends a switching command to the slave processor 4-1 to connect the B memory block to the system bus 1 instead of the A memory block. This memory block switching command is sent to the slave via the input register 41.
given to the CPU 40. This allows the slave
The CPU 40 gives a switching signal to the RAM 43, and
A B memory block is coupled to the system bus 1 instead of the memory block.

この結果、今度はBメモリブロツクがマスタプ
ロセツサ2からアクセス可能となり、Bメモリブ
ロツクに記憶されたデータはマスタプロセツサ2
の読込み動作によりマスタプロセツサ2へ読込ま
れ、大容量メモリ3に書込まれる。
As a result, the B memory block can now be accessed from the master processor 2, and the data stored in the B memory block can be accessed by the master processor 2.
The data is read into the master processor 2 by the read operation and written into the large capacity memory 3.

次に、大容量メモリ3に記憶されたデータを例
えばスレイブプロセツサ4−Nに接続された外部
装置に出力する場合について説明すると、この場
合にはまず大容量メモリ3に記憶されたデータが
スレイブプロセツサ4−NにおけるRAM43の
Aメモリブロツクに書込まれる。
Next, we will explain the case where the data stored in the large capacity memory 3 is output to an external device connected to the slave processor 4-N, for example. In this case, first, the data stored in the large capacity memory 3 is It is written to memory block A of RAM 43 in processor 4-N.

次に、マスタプロセツサ2はスレイブプロセツ
サ4−Nに対しAメモリブロツクに代えてBメモ
リブロツクをシステムバス1に結合させるべく切
替コマンドを送出する。これにより、システムバ
ス1にはBメモリブロツクが結合され、マスタプ
ロセツサ2からの転送データを記憶したAメモリ
ブロツクはスレイブプロセツサ40のバスライン
に結合される。
Next, the master processor 2 sends a switching command to the slave processors 4-N to connect the B memory block to the system bus 1 instead of the A memory block. As a result, the B memory block is coupled to the system bus 1, and the A memory block storing transfer data from the master processor 2 is coupled to the bus line of the slave processor 40.

そこで、Aメモリブロツクに記憶されたデータ
を外部装置に出力すべくマスタプロセツサ2から
スレイブプロセツサ4−Nのインプツトレジスタ
41に対し外部装置に対するデータ出力動作を指
示するコマンドが設定される。これにより、スレ
イブCPU40はAメモリブロツクからデータを
順次読出して外部装置に対するデータ出力動作を
実行する。
Therefore, in order to output the data stored in the A memory block to the external device, a command is set from the master processor 2 to the input register 41 of the slave processor 4-N to instruct the data output operation to the external device. As a result, the slave CPU 40 sequentially reads data from the A memory block and executes a data output operation to an external device.

このようなデータ出力動作を繰返し行つている
うちにAメモリブロツクの読出しアドレスが最終
アドレスに達すると、スレイブCPU40はこの
ことを表すコマンドをアウトプツトレジスタ42
に書込み、マスタプロセツサ2に対して割込みを
かける。
When the read address of the A memory block reaches the final address while repeating such data output operation, the slave CPU 40 sends a command indicating this to the output register 42.
and interrupts the master processor 2.

すると、この間他の処理を実行していたマスタ
プロセツサ2はスレイブプロセツサ4−1からの
割込みによつてスレイブプロセツサ4−Nにおけ
るRAM43のAメモリブロツクが空状態になつ
たことを検知し、スレイブプロセツサ4−Nに対
しBメモリブロツクに代えてAメモリブロツクを
システムバス1に結合させるべく切替コマンドを
送出する。このメモリブロツクの切替コマンドは
インプツトレジスタ41を介してスレイブCPU
40に与えられる。これにより、スレイブCPU
40はRAM43に対し切替信号を与え、Bメモ
リブロツクに代えてAメモリブロツクをシステム
バス1に結合させる。
Then, the master processor 2, which was executing other processing during this time, detects that memory block A of the RAM 43 in the slave processor 4-N has become empty due to an interrupt from the slave processor 4-1. , sends a switching command to the slave processor 4-N to connect the A memory block to the system bus 1 instead of the B memory block. This memory block switching command is sent to the slave CPU via the input register 41.
given to 40. This allows the slave CPU
40 provides a switching signal to the RAM 43 to couple the A memory block to the system bus 1 instead of the B memory block.

このように、マスタプロセツサ2と各スレイブ
プロセツサ4−1〜4−Nとのデータ送受は
RAM43のメモリブロツクを交互に切換えるこ
とにより行われる。このため、マスタプロセツサ
2および各スレイブCPU40はメモリブロツク
の切替後はAメモリブロツクまたはBメモリブロ
ツクを独立して使用することができそれぞれの処
理を独立して実行できる。この結果、スループツ
トの低下を防ぐことができる。また、システムバ
ス1を使用するに際しての複雑な条件判断をする
必要がないため、バスアービタなどの回路が不要
となつて構成を簡単にできると共に、全体として
のスループツトを向上させることができる。ま
た、データ送受を行うためのマスタプロセツサ2
と各スレイブプロセツサ4−1〜4−Nとの通信
は割込み動作を基本としているためオーバヘツド
も小さいなどの利点がある。
In this way, data transmission and reception between the master processor 2 and each slave processor 4-1 to 4-N is performed.
This is done by alternately switching the memory blocks of the RAM 43. Therefore, after switching the memory blocks, the master processor 2 and each slave CPU 40 can independently use the A memory block or the B memory block and execute their respective processes independently. As a result, a decrease in throughput can be prevented. Furthermore, since it is not necessary to make complicated conditional judgments when using the system bus 1, a circuit such as a bus arbiter is not required, the configuration can be simplified, and the overall throughput can be improved. Also, a master processor 2 for transmitting and receiving data.
Since communication between the CPU and each slave processor 4-1 to 4-N is based on interrupt operations, there are advantages such as a small overhead.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明では、メモリブロ
ツクのデータ記憶の状態、すなわち上記メモリブ
ロツクへの書き込みアドレスが最終アドレスかど
うかに応じてマスタプロセツサに割り込みをか
け、上記割り込みに基づくマスタプロセツサの切
替え指示に応じてスレイブプロセツサがデータ記
憶のためのメモリブロツクを切替えるので、スル
ープツトを低下させないで各プロセツサ間の双方
向のデータ送受を行うと共に、バスアービタ等の
バス調停のための回路が不要になり、このため回
路構成を簡単にすることができるため、製作コス
トを低減することができる。
As explained above, in the present invention, an interrupt is issued to the master processor depending on the state of data storage in the memory block, that is, whether the write address to the memory block is the final address, and the master processor is activated based on the interrupt. Since the slave processor switches memory blocks for data storage in response to switching instructions, bidirectional data transmission and reception between each processor is possible without reducing throughput, and bus arbitration circuits such as a bus arbiter are not required. Therefore, since the circuit configuration can be simplified, manufacturing costs can be reduced.

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

第1図は本発明の一実施例を示す全体ブロツク
図、第2図はスレイブプロセツサの構成の一例を
示すブロツク図である。 1……システムバス、2……マスタプロセツ
サ、3……大容量メモリ、4−1〜4−N……ス
レイブプロセツサ、40……スレイブCPU、4
1……インプツトレジスタ、42……アウトプツ
トレジスタ、43……ランダムアクセスメモリ。
FIG. 1 is an overall block diagram showing one embodiment of the present invention, and FIG. 2 is a block diagram showing an example of the configuration of a slave processor. 1...System bus, 2...Master processor, 3...Large capacity memory, 4-1 to 4-N...Slave processor, 40...Slave CPU, 4
1...Input register, 42...Output register, 43...Random access memory.

Claims (1)

【特許請求の範囲】 1 マスタプロセツサと、少なくとも1つのスレ
イブプロセツサと、該スレイブプロセツサに対応
して設けられデータを順次記憶する2つのメモリ
ブロツクと、当該マスタプロセツサ、スレイブプ
ロセツサ及びメモリブロツクを接続するシステム
バスとを有し、前記マスタプロセツサと前記スレ
イブプロセツサとの間でデータの送受を行うマル
チプロセツサシステムにおいて、 前記スレイブプロセツサは前記メモリブロツク
のデータ記憶の状態を検知する手段と、 前記検知結果に応じて前記マスタプロセツサに
割り込みをかける手段と、 前記割り込みに基づく前記マスタプロセツサの
切替指示に応じてデータ記憶のためのメモリブロ
ツクを切り替える手段と を具え、前記マスタプロセツサと前記スレイブプ
ロセツサとの間で双方向のデータ送受を行うこと
を特徴とするマルチプロセツサシステム。
[Scope of Claims] 1. A master processor, at least one slave processor, two memory blocks provided corresponding to the slave processor and sequentially storing data, the master processor, the slave processor and In a multiprocessor system having a system bus connecting memory blocks and transmitting and receiving data between the master processor and the slave processor, the slave processor is configured to control the state of data storage in the memory block. means for detecting, means for interrupting the master processor according to the detection result, and means for switching memory blocks for data storage in response to a switching instruction of the master processor based on the interrupt, A multiprocessor system characterized in that bidirectional data transmission and reception is performed between the master processor and the slave processor.
JP58226440A 1983-11-30 1983-11-30 Multiprocessor system Granted JPS60118967A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58226440A JPS60118967A (en) 1983-11-30 1983-11-30 Multiprocessor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58226440A JPS60118967A (en) 1983-11-30 1983-11-30 Multiprocessor system

Publications (2)

Publication Number Publication Date
JPS60118967A JPS60118967A (en) 1985-06-26
JPH0120459B2 true JPH0120459B2 (en) 1989-04-17

Family

ID=16845138

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58226440A Granted JPS60118967A (en) 1983-11-30 1983-11-30 Multiprocessor system

Country Status (1)

Country Link
JP (1) JPS60118967A (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4887741A (en) * 1972-02-18 1973-11-17
JPS5926055B2 (en) * 1979-02-24 1984-06-23 富士通株式会社 Data processing method
JPS5857776B2 (en) * 1979-04-04 1983-12-21 株式会社日立製作所 data transfer device

Also Published As

Publication number Publication date
JPS60118967A (en) 1985-06-26

Similar Documents

Publication Publication Date Title
US5119480A (en) Bus master interface circuit with transparent preemption of a data transfer operation
JP2962787B2 (en) Communication control method
JPH0120459B2 (en)
JPH0343804A (en) Sequence controller
JP2522412B2 (en) Communication method between programmable controller and input / output device
JPS6368957A (en) Data transfer system in information processor
JPH09218859A (en) Multiprocessor control system
JP2000285087A (en) Method for data communication between nodes
JPS6130300B2 (en)
JPH039497B2 (en)
JPH0650494B2 (en) Data transfer method in input/output control device
JPH02120961A (en) Inter-memory data transfer system
JPH01316851A (en) Channel control system
JPH02211571A (en) Information processor
JPS60136853A (en) Data transfer system
JPH08137738A (en) Cpu arbitration circuit
JPH0375959A (en) Data transfer device for multiprocessor
JPH0573473A (en) Industrial computer system
JPH04357548A (en) multiprocessor
JPS61267161A (en) Multi-system data transfer device
JPS62145345A (en) Control system for direct memory access interval
JPH05210615A (en) Dma device
JPH036762A (en) Image memory direct access method
JPH0628305A (en) Data transfer controller for multiprocessor system
JPH0512219A (en) Process transferring system