JPH04308955A - Multiprocessor device - Google Patents

Multiprocessor device

Info

Publication number
JPH04308955A
JPH04308955A JP7289191A JP7289191A JPH04308955A JP H04308955 A JPH04308955 A JP H04308955A JP 7289191 A JP7289191 A JP 7289191A JP 7289191 A JP7289191 A JP 7289191A JP H04308955 A JPH04308955 A JP H04308955A
Authority
JP
Japan
Prior art keywords
shared bus
slave
processor
slave processors
interrupt signal
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
JP7289191A
Other languages
Japanese (ja)
Inventor
Kotaro Hirai
平井 孝太郎
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP7289191A priority Critical patent/JPH04308955A/en
Publication of JPH04308955A publication Critical patent/JPH04308955A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Bus Control (AREA)

Abstract

PURPOSE:To utilize equally and validly a shared bus without any competition even when a slave processor which doesn't make a request for occupying the shared bus exists. CONSTITUTION:This device is equipped with a shared bus 4 with which a master processor 1 and plural slave processors 21-23 are connected with, slave processors 21-23 which output a request signal 6 for occupying the shared bus 4, master processor 1 which recognizes the number of the slave processors which make the request for occupying the shared bus 4 by the request signal 6, and outputs an interruption signal 5 for a time required for occupying the shared bus 4 by the recognized number of slave processors, and delay means 31-33 which delay the interruption signal 5 for the time required for occupying the shared bus 4 by one slave processor according to the request signal.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、マルチプロセッサ装置
に係わり、特に複数のスレーブプロセッサが共有バスを
同時にアクセスした場合、各スレーブプロセッサが平等
かつ有効的に共有バスを専有できるようにしたマルチプ
ロセッサ装置に関する。
FIELD OF INDUSTRIAL APPLICATION The present invention relates to a multiprocessor device, and particularly to a multiprocessor device that allows each slave processor to monopolize a shared bus equally and effectively when a plurality of slave processors access the shared bus at the same time. Regarding equipment.

【0002】0002

【従来の技術】近年、ワークステーション等のシステム
の高性能化のためにマイクロプロッセサを複数個使用す
るマルチプロセッサシステムの構成をとるものが主流に
なってきている。この種のマルチプロセッサ装置におい
て、複数のスレーブプロセッサが同時に共有バスをアク
セスする場合に対して、平等に共有バスを使用できるよ
うにバス調停回路が設けられている。その一例として、
特開平2−68649号公報に示すような構成がある。 以下、その構成について図4および図5を参照しながら
説明する。ここで説明するマルチプロセッサ装置のスレ
ーブプロセッサ数は3つと仮定する。
2. Description of the Related Art In recent years, in order to improve the performance of systems such as workstations, multiprocessor systems using a plurality of microprocessors have become mainstream. In this type of multiprocessor device, a bus arbitration circuit is provided so that when a plurality of slave processors access the shared bus at the same time, they can use the shared bus equally. As an example,
There is a configuration as shown in Japanese Unexamined Patent Publication No. 2-68649. The configuration will be described below with reference to FIGS. 4 and 5. It is assumed that the number of slave processors in the multiprocessor device described here is three.

【0003】図4に示すように、マルチプロセッサ装置
は、一定時間毎に割り込み信号5を出力するタイマ8と
、共有RAM7を内蔵し、割り込み信号5を入力とする
マスタプロセッサ1と、割り込み信号5を遅延させる遅
延手段31〜33を内蔵したスレーブプロセッサ21〜
23と、マスタプロセッサ1及びスレーブプロセッサ2
1〜23に接続する共有バス4から構成される。以上の
ように構成されたマルチプロセッサ装置について、以下
その動作を説明する。
As shown in FIG. 4, the multiprocessor device includes a timer 8 that outputs an interrupt signal 5 at regular intervals, a master processor 1 that includes a shared RAM 7 and receives the interrupt signal 5 as input, and a master processor 1 that receives the interrupt signal 5 as input. Slave processors 21 to 33 having built-in delay means 31 to 33 for delaying
23, master processor 1 and slave processor 2
It consists of a shared bus 4 connected to nodes 1 to 23. The operation of the multiprocessor device configured as described above will be described below.

【0004】タイマ8は一定時間毎に割り込み信号5を
出力し、マスタプロセッサ1及びスレーブプロセッサ2
1〜23に供給される。マスタプロセッサ1は、この割
り込み信号5によってデータを共有RAM7に書き込む
。各スレーブプロセッサ21〜23が共有RAM7のデ
ータを読み込む場合、各スレーブプロセッサ21〜23
が共有バス4を専有する時間はある程度決っており、こ
の時間を前もって求めておき、その時間分間隔をおいて
割り込み信号5が到達するように、遅延手段31〜33
の遅延時間を設定する。すなわち図5に示すように、遅
延手段31の遅延時間をT1(=0)、遅延手段の遅延
時間32をT2、遅延手段33の遅延時間をT3とすれ
ば、共有バス4の使用状態は各スレーブプロセッサ21
〜23は競合することなしに平等にバス使用権を獲得す
る。
[0004] The timer 8 outputs an interrupt signal 5 at regular intervals, and outputs an interrupt signal 5 to the master processor 1 and slave processor 2.
1 to 23. Master processor 1 writes data to shared RAM 7 in response to this interrupt signal 5. When each slave processor 21 to 23 reads data from the shared RAM 7, each slave processor 21 to 23
The time during which the shared bus 4 is occupied by the common bus 4 is determined to some extent, and this time is determined in advance, and the delay means 31 to 33 are set so that the interrupt signal 5 arrives at intervals of that time.
Set the delay time. That is, as shown in FIG. 5, if the delay time of the delay means 31 is T1 (=0), the delay time 32 of the delay means is T2, and the delay time of the delay means 33 is T3, the usage state of the shared bus 4 is slave processor 21
23 equally acquire the right to use the bus without competing.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、このよ
うなマルチプロセッサ装置の構成では、スレーブプロセ
ッサが共有バス4の専有を要求しない場合でも、常にす
べてのスレーブプロセッサに対して平等にバス使用権を
与えるため、どのスレーブプロセッサも共有バスを使用
しない無駄な時間が生じるという問題点を有している。
[Problem to be Solved by the Invention] However, in such a configuration of a multiprocessor device, even if a slave processor does not request exclusive use of the shared bus 4, the right to use the bus is always given equally to all slave processors. Therefore, there is a problem in that there is wasted time when none of the slave processors uses the shared bus.

【0006】そこで、本発明は上記の課題を解決するも
ので、共有バスを平等かつ有効的に専有できるようにし
たマルチプロセッサ装置を提供することを目的とする。
SUMMARY OF THE INVENTION Accordingly, the present invention is intended to solve the above-mentioned problems, and an object thereof is to provide a multiprocessor device that can equally and effectively monopolize a shared bus.

【0007】[0007]

【課題を解決するための手段】本発明のマルチプロセッ
サ装置は、マスタプロセッサと複数のスレーブプロセッ
サが接続される共有バスと、この共有バスを専有するた
めのリクエスト信号を出力するスレーブプロセッサと、
このリクエスト信号により前記共有バスの専有を要求す
る前記スレーブプロセッサの数を認識すると共に、認識
された数のスレーブプロセッサが前記共有バスを専有す
るのに必要な時間分の割り込み信号を出力するマスタプ
ロセッサと、前記割り込み信号を前記リクエスト信号の
状態により1つのスレーブプロセッサが前記共有バスを
専有するのに必要な時間分遅延させる遅延手段とを備え
た構成を採用するものである。
[Means for Solving the Problems] A multiprocessor device of the present invention includes: a shared bus to which a master processor and a plurality of slave processors are connected; a slave processor that outputs a request signal for exclusive use of the shared bus;
A master processor that recognizes the number of slave processors requesting exclusive use of the shared bus based on this request signal, and outputs an interrupt signal for the time necessary for the recognized number of slave processors to exclusive use of the shared bus. and a delay means for delaying the interrupt signal by the time necessary for one slave processor to monopolize the shared bus depending on the state of the request signal.

【0008】[0008]

【作用】本発明は上記した構成により、共有バスの専有
を要求するスレーブプロセッサのみに遅延手段で遅延さ
せた割り込み信号を与えるので、平等かつ有効的に共有
バスを専有できる。
According to the present invention, with the above-described configuration, an interrupt signal delayed by the delay means is given only to the slave processor requesting exclusive use of the shared bus, so that the shared bus can be equally and effectively occupied.

【0009】[0009]

【実施例】本発明の実施例について図面を参照して説明
する。ただし、本実施例のマルチプロセッサ装置のスレ
ーブプロセッサの数は3つと仮定する。
Embodiments Examples of the present invention will be described with reference to the drawings. However, it is assumed that the number of slave processors in the multiprocessor device of this embodiment is three.

【0010】本発明の一実施例のブロック図を図1に示
す。図1において、本実施例のマルチプロセッサ装置は
、マスタプロセッサ1と複数のスレーブプロセッサ21
〜23が接続されている共有バス4と、共有バス4を専
有するためのリクエスト信号6を出力するスレーブプロ
セッサ21〜23と、リクエスト信号6により共有バス
4の専有を要求するスレーブプロセッサの数を認識する
と共に、認識された数のスレーブプロセッサが共有バス
4を専有するのに必要な時間分の割り込み信号5を出力
するマスタプロセッサ1と、割り込み信号5をリクエス
ト信号の状態により1つのスレーブプロセッサが共有バ
ス4を専有するのに必要な時間分割り込み信号5を遅延
させ、スレーブプロセッサに対応した数の遅延手段31
〜33から構成される。ただし他の要素(例えばROM
,FPU等)は図示していない。またaは前段からの割
り込み信号5、bはリクエスト信号6、cはスレーブプ
ロセッサへの割り込む信号、dは後段への割り込み信号
を示す。
A block diagram of one embodiment of the present invention is shown in FIG. In FIG. 1, the multiprocessor device of this embodiment includes a master processor 1 and a plurality of slave processors 21.
- 23 are connected, slave processors 21 to 23 that output a request signal 6 for exclusive use of the shared bus 4, and the number of slave processors that request exclusive use of the shared bus 4 using the request signal 6. The master processor 1 recognizes the shared bus 4 and outputs the interrupt signal 5 for the time required for the recognized number of slave processors to monopolize the shared bus 4, and the interrupt signal 5 is sent to one slave processor depending on the state of the request signal. Delay means 31 whose number corresponds to the slave processors delay the time-divided interrupt signal 5 necessary to monopolize the shared bus 4.
It consists of ~33. However, other elements (e.g. ROM
, FPU, etc.) are not shown. Also, a indicates an interrupt signal 5 from the previous stage, b a request signal 6, c an interrupt signal to the slave processor, and d an interrupt signal to the subsequent stage.

【0011】ここで用いる遅延手段31〜33の一実施
例を図2に示す。遅延手段31〜33において、ラッチ
24がリクエスト信号cの状態を記憶し、リクエスト信
号cがハイの時、前段からの割り込み信号aを遅延回路
25で遅延させ、対応するスレーブプロセッサにスレー
ブプロセッサへの割り込む信号cを与え、同一信号を後
段へ与える。また、リクエスト信号cがローの時、前段
からの割り込み信号aは遅延回路25を介さずに後段へ
与え、対応するスレーブプロセッサにはローレベルの割
り込む信号cを与える。
An embodiment of the delay means 31 to 33 used here is shown in FIG. In the delay means 31 to 33, the latch 24 stores the state of the request signal c, and when the request signal c is high, the interrupt signal a from the previous stage is delayed by the delay circuit 25, and the corresponding slave processor is sent to the slave processor. An interrupt signal c is given, and the same signal is given to the subsequent stage. Further, when the request signal c is low, the interrupt signal a from the previous stage is given to the next stage without going through the delay circuit 25, and the corresponding slave processor is given the low level interrupt signal c.

【0012】次に、本実施例の動作について図3を用い
て説明する。スレーブプロセッサ21及び23が共有バ
ス4の専有を要求した場合を仮定する。この時、スレー
ブプロセッサ21及び23は、マスタプロセッサ1に対
してリクエスト信号6を出力する。リクエスト信号6は
、各スレーブプロセッサに対応した遅延手段31〜33
にも出力されている。リクエスト信号6を受け取ったマ
スタプロセッサ1は、公知のデコード手段を用いてこの
リクエスト信号6の状態により、共有バス4の専有を要
求したスレーブプロセッサの数を認識する。これと同時
に、この認識された数のスレーブプロセッサが共有バス
4を専有するのに必要な時間分の割り込み信号5を出力
する。即ち割り込み信号5の間隔を認識されたスレーブ
プロセッサ数だけ空ける。
Next, the operation of this embodiment will be explained using FIG. 3. Assume that slave processors 21 and 23 request exclusive use of shared bus 4. At this time, the slave processors 21 and 23 output the request signal 6 to the master processor 1. The request signal 6 is sent to delay means 31 to 33 corresponding to each slave processor.
It is also output. Upon receiving the request signal 6, the master processor 1 uses a known decoding means to recognize the number of slave processors that have requested exclusive use of the shared bus 4 from the state of the request signal 6. At the same time, interrupt signals 5 are output for the time required for the recognized number of slave processors to monopolize the shared bus 4. That is, the interval between interrupt signals 5 is set equal to the number of recognized slave processors.

【0013】まず、スレーブプロセッサ21は、共有バ
ス4の専有を要求しているので遅延手段31は割込み信
号5をT1(遅延手段31〜33の遅延時間)だけ遅延
したものをスレーブプロセッサ21に出力し共有バス4
を専有させると同時に、次段の遅延手段32にも遅延さ
せた割り込み信号5を出力する。
First, since the slave processor 21 requests exclusive use of the shared bus 4, the delay means 31 outputs the interrupt signal 5 delayed by T1 (the delay time of the delay means 31 to 33) to the slave processor 21. shared bus 4
At the same time, the delayed interrupt signal 5 is also output to the delay means 32 at the next stage.

【0014】次にスレーブプロセッサ22は共有バス4
の専有を要求していないので、遅延手段32はスレーブ
プロセッサ22には割り込み信号5を出力せず、また次
段の遅延手段33には入力された割り込み信号5をその
まま遅延させずに出力する。
Next, the slave processor 22 uses the shared bus 4.
Therefore, the delay means 32 does not output the interrupt signal 5 to the slave processor 22, and outputs the input interrupt signal 5 to the next stage delay means 33 without delay.

【0015】次に共有バス4の専有を要求しているスレ
ーブプロセッサ23は割込み信号5をT1だけ遅延した
ものをスレーブプロセッサ23に出力し共有バス4を専
有させれば、共有バス4を競合せずに専有できる。
Next, the slave processor 23 requesting exclusive use of the shared bus 4 outputs the interrupt signal 5 delayed by T1 to the slave processor 23 and makes the shared bus 4 exclusive. You can own it without having to use it.

【0016】また、マスタプロセッサ1が認識したスレ
ーブプロセッサの数だけのサイクルが終了したら、マス
タプロセッサ1は、次のリクエスト信号6を再び受け取
り、共有バス4の専有を要求したスレーブプロセッサの
数を認識し、上記と同様の動作をする。ここで、1サイ
クルとは、1つのスレーブプロセッサが共有バスを専有
する時間と定義している。従って、共有バス4を専有を
要求したスレーブプロセッサ21及び23は競合するこ
となく専有している。また、共有バス4の専有を要求し
ないスレーブプロセッサ22には、共有バスの使用権を
与えておらず、有効に共有バスを利用している。
[0016] When the master processor 1 has completed as many cycles as the number of slave processors recognized by the master processor 1, the master processor 1 receives the next request signal 6 again and recognizes the number of slave processors that have requested exclusive use of the shared bus 4. and performs the same operation as above. Here, one cycle is defined as the time during which one slave processor exclusively uses the shared bus. Therefore, the slave processors 21 and 23 that requested exclusive use of the shared bus 4 do so without competing with each other. Furthermore, the slave processor 22 that does not request exclusive use of the shared bus 4 is not given the right to use the shared bus, and is effectively using the shared bus.

【0017】以上のように本実施例によれば、共有バス
4の専有を要求しているスレーブプロセッサのみに選択
的に遅延させた割り込み信号5を与えるようにしたので
、スレーブプロセッサは共有バス上の競合を起こすこと
なく、平等かつ有効的に共有バスを使用することができ
る。
As described above, according to this embodiment, the selectively delayed interrupt signal 5 is given only to the slave processor requesting exclusive use of the shared bus 4. The shared bus can be used equally and effectively without causing contention.

【0018】なお、本実施例ではスレーブプロセッサに
対応した数だけの遅延手段31〜33を用いたが、スレ
ーブプロセッサに対応した数だけの遅延手段を用いる必
要性はなく、例えば1つの遅延手段で構成しても良いこ
とは言うまでもない。
In this embodiment, as many delay means 31 to 33 as there are slave processors are used, but there is no need to use as many delay means as there are slave processors; for example, one delay means may be used. Needless to say, it may be configured.

【0019】[0019]

【発明の効果】以上説明したように本発明では、共有バ
スの専有を要求しているスレーブプロセッサのみに選択
的に遅延させた割り込み信号を与えるようにしたので、
スレーブプロセッサは共有バス上の競合を起こすことな
く、平等かつ有効的に共有バスを使用することができる
As explained above, in the present invention, a selectively delayed interrupt signal is given only to the slave processor requesting exclusive use of the shared bus.
Slave processors can use the shared bus equally and effectively without contention on the shared bus.

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

【図1】本発明の一実施例におけるマルチプロセッサ装
置のブロック図である。
FIG. 1 is a block diagram of a multiprocessor device in one embodiment of the present invention.

【図2】遅延手段の一実施例の回路図である。FIG. 2 is a circuit diagram of one embodiment of a delay means.

【図3】本発明のマルチプロセッサ装置の動作図である
FIG. 3 is an operational diagram of the multiprocessor device of the present invention.

【図4】従来例のマルチプロセッサ装置のブロック図で
ある。
FIG. 4 is a block diagram of a conventional multiprocessor device.

【図5】従来例のマルチプロセッサ装置の動作図である
FIG. 5 is an operational diagram of a conventional multiprocessor device.

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

1  マスタプロセッサ 4  共有バス 5  割り込み信号 6  リクエスト信号 7  共有RAM 21〜23  スレーブプロセッサ 31〜33  遅延手段 1 Master processor 4 Shared bus 5 Interrupt signal 6 Request signal 7 Shared RAM 21-23 Slave processor 31-33 Delay means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】マスタプロセッサと複数のスレーブプロセ
ッサが接続される共有バスと、この共有バスを専有する
ためのリクエスト信号を出力するスレーブプロセッサと
、このリクエスト信号により前記共有バスの専有を要求
する前記スレーブプロセッサの数を認識すると共に、認
識された数のスレーブプロセッサが前記共有バスを専有
するのに必要な時間分の割り込み信号を出力するマスタ
プロセッサと、前記割り込み信号を前記リクエスト信号
の状態により1つのスレーブプロセッサが前記共有バス
を専有するのに必要な時間分遅延させる遅延手段とを備
えたマルチプロセッサ装置。
1. A shared bus to which a master processor and a plurality of slave processors are connected; a slave processor that outputs a request signal for exclusive use of the shared bus; and a slave processor that outputs a request signal for exclusive use of the shared bus; a master processor that recognizes the number of slave processors and outputs an interrupt signal for the time necessary for the recognized number of slave processors to monopolize the shared bus; A multiprocessor device comprising: delay means for delaying a time necessary for one slave processor to exclusively occupy the shared bus.
JP7289191A 1991-04-05 1991-04-05 Multiprocessor device Pending JPH04308955A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7289191A JPH04308955A (en) 1991-04-05 1991-04-05 Multiprocessor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7289191A JPH04308955A (en) 1991-04-05 1991-04-05 Multiprocessor device

Publications (1)

Publication Number Publication Date
JPH04308955A true JPH04308955A (en) 1992-10-30

Family

ID=13502428

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7289191A Pending JPH04308955A (en) 1991-04-05 1991-04-05 Multiprocessor device

Country Status (1)

Country Link
JP (1) JPH04308955A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006065776A (en) * 2004-08-30 2006-03-09 Hitachi Kokusai Electric Inc Software radio equipment
JP2009521055A (en) * 2005-12-23 2009-05-28 エヌエックスピー ビー ヴィ AV rendering peripheral device with double interrupt lines for alternating interrupts

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006065776A (en) * 2004-08-30 2006-03-09 Hitachi Kokusai Electric Inc Software radio equipment
JP4643205B2 (en) * 2004-08-30 2011-03-02 株式会社日立国際電気 Software defined radio
JP2009521055A (en) * 2005-12-23 2009-05-28 エヌエックスピー ビー ヴィ AV rendering peripheral device with double interrupt lines for alternating interrupts
US8484389B2 (en) 2005-12-23 2013-07-09 Entropic Communications, Inc. AV renderer peripheral with dual inerrupt lines for staggered interrupts

Similar Documents

Publication Publication Date Title
US20070067527A1 (en) Data transfer bus system connecting a plurality of bus masters
JPH04308955A (en) Multiprocessor device
US6105082A (en) Data processor used in a data transfer system which includes a detection circuit for detecting whether processor uses bus in a forthcoming cycle
CA2145553A1 (en) Multi-Processor System Including Priority Arbitrator for Arbitrating Request Issued from Processors
JPH02143363A (en) Common memory control system in multiprocessor
JP2004334361A (en) Multiport memory
JP2508039B2 (en) Arbiter circuit
JPS6019819B2 (en) Bus right control method
JP3667504B2 (en) Arbitration circuit
JPH0234062B2 (en) MARUCHIPUROSETSUSASHISUTEMUNIOKERUMEMORIAKUSESUSEIGYOHOSHIKI
JPS6252336B2 (en)
JPH05108476A (en) Main storage controller
JPS5936863A (en) Circuit for controlling access competition of common resource
JP2564321B2 (en) Bus control method
JPH02181855A (en) Bus priority decision circuit
JPH03137754A (en) Access control system for shared memory
JPH01175064A (en) Bus error detecting circuit
JPH08161257A (en) Common bus using right control system
JPS63247857A (en) Access arbitrating circuit
JPH04178869A (en) Interruption control device for multiprocessor system and its interruption communication method
JPH0648477B2 (en) Bus acquisition method in multiprocessor system
JPH01226060A (en) Data transfer system
JPH09231163A (en) Io bridge
JPH07311734A (en) Contention control method for common bus use
IE930466A1 (en) Computer priority system