JPH10154124A - Microprocessor and multiprocessor system - Google Patents

Microprocessor and multiprocessor system

Info

Publication number
JPH10154124A
JPH10154124A JP31323996A JP31323996A JPH10154124A JP H10154124 A JPH10154124 A JP H10154124A JP 31323996 A JP31323996 A JP 31323996A JP 31323996 A JP31323996 A JP 31323996A JP H10154124 A JPH10154124 A JP H10154124A
Authority
JP
Japan
Prior art keywords
bus
control information
bus right
master
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP31323996A
Other languages
Japanese (ja)
Other versions
JP3795978B2 (en
Inventor
Koji Koshido
孝司 越戸
Yutaka Yoshida
吉田  裕
Takanori Shimura
隆則 志村
Norio Nakagawa
典夫 中川
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP31323996A priority Critical patent/JP3795978B2/en
Publication of JPH10154124A publication Critical patent/JPH10154124A/en
Application granted granted Critical
Publication of JP3795978B2 publication Critical patent/JP3795978B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide a microprocessor which has the degree of freedom to the acquisition and release of a bus right which are performed by handshake. SOLUTION: When a microprocessor 1 is assigned to a master processor in a multiprocessor system, and when bus right release permission control information (BREQEN) is initialized to an inactive state by system reset, etc., a bus arbitrating circuit 20 nullifies a bus right release request that is externally asserted by a bus right release request signal (BREQ) arid maintains bus right release permission control information in an inactive state until required processing that is accompanied with an external bus access is completed. Thereby, it is possible to maintain a bus right independently of an external bus release request.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、外部に対するバス
権の獲得と解放をハンドシェークで制御する機能を備え
たマイクロプロセッサに係り、特にバス権の解放に対し
て自由度を持たせる技術に関し、例えば、シンクロナス
DRAMのような初期化を必要とする共有資源が共通バ
スに接続されたマルチプロセッサシステムにおいて、前
記共有資源が初期化される前に不当にアクセスされるの
を禁止するのに適用して有効な技術に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microprocessor having a function of controlling acquisition and release of a bus right to the outside by a handshake, and more particularly to a technique for giving a degree of freedom to release a bus right. In a multiprocessor system in which a shared resource requiring initialization, such as a synchronous DRAM, is connected to a common bus, the present invention is applied to prohibit unauthorized access before the shared resource is initialized. And effective technology.

【0002】[0002]

【従来の技術】マルチプロセッサシステムにおいて夫々
のマイクロプロセッサが共有資源をアクセスするための
バス占有権の移動に関しては、一つのマイクロプロセッ
サがマスタプロセッサとされ、初期的にバス権を獲得す
る。残りのマイクロプロセッサはスレーブプロセッサと
され、必要に応じてマスタプロセッサからバス権を獲得
する。このとき、スレーブプロセッサのバス権要求の優
先度はマスタ側のバス権よりも高く設定されている。こ
のため、マスタプロセッサは、スレーブプロセッサから
バス権の要求があれば、マスタプロセッサのバスサイク
ル終了後直ちに、バス権を解放するようになっている。
例えばシステムリセットが行われると、マスタプロセッ
サが初期的にバス権を獲得する。マスタプロセッサは、
スレーブプロセッサから供給されるバス権要求信号がア
サートされると、マスタプロセッサのバスサイクル終了
後直ちに、バス権を解放し、バス権承認信号をアサート
する。スレーブプロセッサは、バス権承認信号がアサー
トされることによってバス権の解放を認識して、バスサ
イクルを起動する。スレーブプロセッサは、バス権を獲
得しているとき、バス承認信号がネゲートされることに
よって、マスタプロセッサからのバス権要求を認識し、
スレーブプロセッサのバスサイクル終了後、バス権を解
放して、バス権要求信号をネゲートする。これによって
マスタプロセッサは再度バス権を獲得する。
2. Description of the Related Art In a multiprocessor system, with respect to transfer of a bus occupation right for each microprocessor to access a shared resource, one microprocessor is set as a master processor and initially acquires the bus right. The remaining microprocessors are slave processors, and acquire the bus right from the master processor as needed. At this time, the priority of the bus right request from the slave processor is set higher than the bus right on the master side. Therefore, when the master processor requests a bus right from a slave processor, the master processor releases the bus right immediately after the end of the bus cycle of the master processor.
For example, when a system reset is performed, the master processor initially acquires the bus right. The master processor
When the bus right request signal supplied from the slave processor is asserted, the bus right is released immediately after the end of the bus cycle of the master processor, and the bus right acknowledge signal is asserted. The slave processor recognizes the release of the bus right by asserting the bus right acknowledge signal, and starts a bus cycle. When acquiring the bus right, the slave processor recognizes the bus right request from the master processor by negating the bus acknowledge signal,
After the bus cycle of the slave processor is completed, the bus right is released and the bus right request signal is negated. As a result, the master processor acquires the bus right again.

【0003】尚、マルチプロセッサシステムについて記
載された文献の例としては昭和60年12月25日に株
式会社オーム社発行の「マイクロコンピュータハンドブ
ック」第674頁及び第675頁がある。
An example of a document describing a multiprocessor system is “Microcomputer Handbook”, pp. 674 and 675, issued by Ohm Co., Ltd. on December 25, 1985.

【0004】[0004]

【発明が解決しようとする課題】上述のハンドシェーク
によるバス権の獲得と解放の制御では、マイクロプロセ
ッサはバス権の解放に関して自由度を持たない。マスタ
プロセッサはスレーブプロセッサからバス権解放要求が
あれば即座にバス権を解放しなければならず、スレーブ
プロセッサはマスタマスタプロセッサからのバス権解放
の承認が撤回されると即座にバス権をマスタプロセッサ
に解放しなければならない。したがって、マイクロプロ
セッサはスレーブ又はマスタの何れであっても、所定の
処理を完了するまでの間、バスを占有し続けることがで
きない場合がある。すなわち、バス権の解放に関し自由
度がない。このため、データ処理の高速化、データ処理
の信頼性という観点から、バスを介してあるまとまった
処理を一連に行わなければならないようなシステム用途
では支障があった。
In controlling the acquisition and release of the bus right by the handshake described above, the microprocessor has no degree of freedom in releasing the bus right. The master processor must release the bus right upon receiving a bus release request from the slave processor, and the slave processor immediately releases the bus right when the approval of the bus release from the master processor is withdrawn. Must be released. Therefore, the microprocessor may not be able to continue to occupy the bus until it completes the predetermined process, whether it is a slave or a master. That is, there is no degree of freedom in releasing the bus right. For this reason, from the viewpoint of speeding up data processing and reliability of data processing, there has been a problem in system applications that require a series of certain processes via a bus.

【0005】例えば、上記のようなマルチプロセッサシ
ステムにおいて、共通バスに接続された共有資源は、動
作に当たって初期化を要するものと要しないものがあ
る。初期化を必要としない共有資源としてはSRAM
(Static Random Access Memory)やDRAM(Dynamic
Random Access Memory)などがある。初期化を必要と
する共有資源には、シンクロナスDRAMなどがある。
シンクロナスDRAMにおいては、バースト長やレイテ
ンシ等が初期設定されて始めて正常動作可能にされる。
For example, in the above-described multiprocessor system, some of the shared resources connected to the common bus require initialization for operation and some do not. SRAM is a shared resource that does not require initialization
(Static Random Access Memory) and DRAM (Dynamic
Random Access Memory). Examples of the shared resources that require initialization include a synchronous DRAM.
In a synchronous DRAM, normal operation is enabled only after the burst length, latency, and the like are initialized.

【0006】初期化を要しない共有資源に関しては、マ
スタプロセッサとスレーブプロセッサは夫々の動作プロ
グラムに従ってハンドシェークでバス権の獲得及び解放
を行えば、双方のプロセッサは共に当該共有資源を正常
にアクセスできる。
With respect to the shared resources that do not require initialization, if the master processor and the slave processor acquire and release the bus right by handshaking according to their respective operation programs, both processors can normally access the shared resources.

【0007】これに対し、複数のプロセッサが初期化を
要する資源を共有する場合、スレーブプロセッサは、マ
スタプロセッサがそのような共有資源の初期設定を完了
する前であっても、マスタプロセッサにバス権の要求を
発行する事ができる。マスタプロセッサは、スレーブプ
ロセッサからのバス権の要求に対して直ちにバス権を解
放することになり、これによってスレーブプロセッサが
初期化未完了の共有資源をアクセスすると、その正常動
作を保証することはできない。
On the other hand, when a plurality of processors share a resource requiring initialization, the slave processor gives the master processor a bus right even before the master processor completes the initialization of such a shared resource. Can be issued. The master processor immediately releases the bus right in response to a request for the bus right from the slave processor, so that when the slave processor accesses the uninitialized shared resource, its normal operation cannot be guaranteed. .

【0008】この問題には、ハンドシェークによるバス
権の獲得と解放に対して自由度を持たせることが一つの
解決策になる、ということが本発明者によって明らかに
された。従来のマクロプロセッサはその解決策が考慮さ
れていなかった。その場合には、マルチプロセッサシス
テム上、マイクロプロセッサの外部に特別な回路を用意
して対処することが必要になると考えられる。公知では
ないが、例えば、共有資源の初期化をマスタプロセッサ
が行う場合、システムリセットに際して、スレーブプロ
セッサに対するリセット信号のネゲートをマスタプロセ
ッサによる初期化完了後に行うようにする外部回路を設
けて対処することができる。また、初期化を要する共有
資源に対する初期化完了フラグを設け、マスタプロセッ
サは初期化完了後にそのフラグをセットし、スレーブプ
ロセッサはそのフラグのセット状態を確認してからアク
セスを開始する様にして対処出来る。或いは、リセット
直後にスレーブプロセッサを待機状態に制御し、マスタ
プロセッサによる初期化動作完了後に、スレーブプロセ
ッサの待機状態を解除するための割り込み信号の発生回
路を設けて対処したりすることができると考えられる。
[0008] It has been clarified by the present inventors that one solution to this problem is to have a degree of freedom in acquiring and releasing the bus right by handshaking. Conventional macroprocessors did not consider the solution. In such a case, it is considered necessary to prepare a special circuit outside the microprocessor on the multiprocessor system. Although it is not publicly known, for example, when the master processor initializes the shared resources, it is necessary to provide an external circuit that negates the reset signal for the slave processor after the initialization is completed by the master processor when performing a system reset. Can be. Also, an initialization completion flag is provided for shared resources that require initialization, the master processor sets the flag after initialization is completed, and the slave processor checks the flag setting state before starting access. I can do it. Alternatively, it can be considered that the slave processor can be controlled to be in a standby state immediately after the reset, and after the initialization operation by the master processor is completed, an interrupt signal generating circuit for releasing the standby state of the slave processor can be provided. Can be

【0009】しかしながら、何れの場合にも、システム
上で特別な外部回路を構成しなければならず、また、ソ
フトウェア的にも処理が複雑化することが予想される。
However, in any case, a special external circuit must be configured on the system, and the processing is expected to be complicated in terms of software.

【0010】本発明の目的は、ハンドシェークによるバ
ス権の獲得と解放に対して自由度を持たせることができ
るマイクロプロセッサを提供することにある。特にその
ような自由度はCPUの動作プログラムで制御できるよ
うにする。
It is an object of the present invention to provide a microprocessor which can have a degree of freedom in acquiring and releasing a bus right by handshaking. In particular, such a degree of freedom can be controlled by an operation program of the CPU.

【0011】本発明の別の目的は、外部周辺回路の初期
化を担うときその初期化を完了するまで外部からのバス
権要求を無視できるマイクロプロセッサを提供すること
にある。
Another object of the present invention is to provide a microprocessor capable of ignoring an external bus right request until the initialization of an external peripheral circuit is completed.

【0012】本発明の更に別の目的は、初期化を要する
共有資源の初期化完了前に当該共有資源が任意にアクセ
スされて誤動作を生ずる虞を排除することができ、しか
もそのためにシステム上で特別な外部回路を構成した
り、ソフトウェア的にも処理を複雑化しなくても済むよ
うにできるマルチプロセッサシステムを提供することに
ある。
Still another object of the present invention is to eliminate the possibility that a shared resource requiring initialization is arbitrarily accessed before the completion of the initialization to cause a malfunction. It is an object of the present invention to provide a multiprocessor system which does not need to configure a special external circuit or complicate processing by software.

【0013】本発明の前記並びにその他の目的と新規な
特徴は本明細書の記述及び添付図面から明らかになるで
あろう。
The above and other objects and novel features of the present invention will become apparent from the description of the present specification and the accompanying drawings.

【0014】[0014]

【課題を解決するための手段】本願において開示される
発明のうち代表的なものの概要を簡単に説明すれば下記
の通りである。
The following is a brief description of an outline of a typical invention among the inventions disclosed in the present application.

【0015】ハンドシェークによるバス権の獲得と解放
に関する自由度をマイクロプロセッサに持たせるという
観点による第1のマイクロプロセッサは、フェッチした
命令を実行するCPUを半導体基板に含み、このマイク
ロプロセッサの動作モードが初期的にバス権を有するマ
スタモードか、必要に応じてバス権を獲得するスレーブ
モードかを決定するためのマスタ・スレーブモード制御
情報が設定される第1の記憶手段と、前記CPUによっ
て書き換え可能にバス権解放許可制御情報が初期設定さ
れる第2の記憶手段と、前記マスタ・スレーブモード制
御情報によってマスタモードが設定された状態におい
て、前記第2の記憶手段に設定された前記バス権解放許
可制御情報が非活性状態のとき、当該バス権解放許可制
御情報が活性状態に反転されるまで外部からのバス権解
放要求信号のアサートによるバス権解放要求を無効化す
るバス調停手段と有する。
[0015] The first microprocessor, which is provided with a degree of freedom regarding acquisition and release of a bus right by handshaking, includes a CPU for executing a fetched instruction on a semiconductor substrate, and the operation mode of the microprocessor is set as follows. First storage means in which master / slave mode control information for initially determining a master mode having the bus right or a slave mode for acquiring the bus right is set, and rewritable by the CPU A second storage unit in which the bus right release permission control information is initially set, and the bus right release set in the second storage unit when a master mode is set by the master / slave mode control information. When the permission control information is in an inactive state, the bus right release permission control information is inverted to an active state. Bus arbitration means for invalidating a bus right release request by asserting a bus right release request signal from the outside until the bus right release request signal is asserted.

【0016】このマイクロプロセッサがマルチプロセッ
サシステムにおけるマスタプロセッサに割り当てられる
とき、システムリセット等によってバス権解放許可制御
情報が非活性状態に初期化されると、バス調停手段は外
部からのバス権解放要求信号のアサートによるバス権解
放要求を無効化するから、外部バスアクセスを伴う所要
の処理を完了するまで、バス権解放許可制御情報を非活
性状態に維持することによって、外部からのバス解放要
求とは無関係にバス権を維持することができる。即ち、
マイクロプロセッサは、ハンドシェークによるバス権の
獲得と解放に対して自由度を持つことができる。しか
も、バス権解放許可制御情報が格納される第2の記憶手
段は内蔵CPUがアクセスして書き換え可能であるか
ら、そのような自由度はCPUの動作プログラムで制御
できる。
When the microprocessor is assigned to a master processor in a multiprocessor system and the bus release permission control information is initialized to an inactive state due to a system reset or the like, the bus arbitration means issues an external bus release request. Since the bus right release request due to the assertion of the signal is invalidated, the bus right release permission control information is maintained in an inactive state until the required processing involving the external bus access is completed, so that an external bus release request can be satisfied. Can maintain the bus right independently. That is,
The microprocessor can have a degree of freedom in acquiring and releasing the bus right by handshaking. In addition, the second storage means for storing the bus right release permission control information can be accessed and rewritten by the built-in CPU. Therefore, such a degree of freedom can be controlled by the operation program of the CPU.

【0017】バス権を維持する期間において、マイクロ
プロセッサは例えば、マルチプロセッサシステムにおい
て初期化動作を要する共有資源としての周辺回路の初期
化を完了する。完了後、CPUがバス権解放許可制御情
報を活性状態に反転することにより、バス調停手段は外
部からのバス権解放要求信号のアサートに応じてバス権
を解放する。このように、前記マイクロプロセッサは、
外部周辺回路の初期化を担うときその初期化を完了する
まで外部からのバス権要求を無視できるから、初期化を
要する共有資源の初期化完了前に当該共有資源が任意に
アクセスされて誤動作を生ずる虞を排除することがで
き、しかもそのためにシステム上で特別な外部回路を構
成したり、ソフトウェア的にも複雑な処理を行わなくて
も済む。
In the period during which the bus right is maintained, the microprocessor completes the initialization of a peripheral circuit as a shared resource requiring an initialization operation in a multiprocessor system, for example. After the completion, the CPU reverses the bus right release permission control information to the active state, so that the bus arbitration unit releases the bus right in response to the assertion of the bus right release request signal from the outside. As described above, the microprocessor includes:
When performing the initialization of an external peripheral circuit, the external bus request can be ignored until the initialization is completed. The possibility of occurrence can be eliminated, and for this purpose, it is not necessary to configure a special external circuit on the system or perform complicated processing in terms of software.

【0018】マスタモードが設定されるマイクロプロセ
ッサのリセット動作直後におけるそのような初期化動作
を考慮すると、マイクロプロセッサの使い勝手の点にお
いて、前記第1の記憶手段はマイクロプロセッサのリセ
ット動作に応じてマスタ・スレーブモード制御情報が初
期設定され、前記第2の記憶手段は、マスタ・スレーブ
制御情報によるマスタモードの設定に呼応して、非活性
状態のバス権解放許可制御情報が初期設定されるもので
あることが望ましい。
Considering such an initialization operation immediately after the reset operation of the microprocessor in which the master mode is set, the first storage means stores the master data in response to the reset operation of the microprocessor in terms of usability of the microprocessor. Slave mode control information is initialized, and the second storage means initializes inactive bus right release permission control information in response to the setting of the master mode by the master / slave control information. Desirably.

【0019】ハンドシェークによるバス権の獲得と解放
に関する自由度をマイクロプロセッサに持たせるという
観点による別の第2のマイクロプロセッサは、スレーブ
モードが設定された状態において、前記第2の記憶手段
に設定された前記バス権解放許可制御情報が活性状態の
とき、当該バス権解放許可制御情報が非活性状態に反転
されるまで外部からのバス権解放承認信号のネゲートに
よるバス権解放要求を無効化するバス調停手段を採用す
る。
Another second microprocessor from the viewpoint that the microprocessor has a degree of freedom regarding acquisition and release of the bus right by handshaking is set in the second storage means in a state where the slave mode is set. When the bus release permission control information is active, the bus that invalidates a bus release request by negating an external bus release approval signal until the bus release permission control information is inverted to an inactive state. Adopt arbitration means.

【0020】このマイクロプロセッサによれば、当該マ
イクロプロセッサがマルチプロセッサシステムにおける
スレーブプロセッサに割り当てられるとき、そのバス調
停手段はマスタプロセッサにバス権解放要求信号をアサ
ートすると、それに応答するバス権解放承認信号がマス
タプロセッサからアサートされることによってバス権を
獲得できる。このスレーブプロセッサはシステムリセッ
ト等によってバス権解放許可制御情報は活性状態に初期
化されているから、前記の様にして一旦バス権を獲得し
たとき、そのバス調停手段は外部(マスタプロセッサ)
からのバス権解放承認信号のネゲートによるバス権解放
要求を無効化でき、外部バスアクセスを伴う所要の処理
を完了するまで、バス権解放許可制御情報を活性状態に
維持することによって、マスタプロセッサからのバス承
認信号のネゲート状態とは無関係にバス権を維持するこ
とができる。即ち、このマイクロプロセッサは、ハンド
シェークによるバス権の獲得と解放に対して自由度を持
つことができる。しかも、バス権解放許可制御情報が格
納される第1の記憶手段は内蔵CPUがアクセスして書
き換え可能であるから、そのような自由度はCPUの動
作プログラムで制御できる。
According to this microprocessor, when the microprocessor is assigned to a slave processor in a multiprocessor system, when the bus arbitration means asserts a bus right release request signal to the master processor, the bus right release acknowledge signal responds thereto. Is asserted by the master processor to acquire the bus right. In this slave processor, the bus right release permission control information is initialized to an active state by a system reset or the like. Therefore, once the bus right is acquired as described above, the bus arbitration means is external (master processor).
Bus release request by negating the bus release acknowledge signal from the master processor by maintaining the bus release permission control information in an active state until the required processing involving external bus access is completed. Bus right can be maintained regardless of the negation state of the bus acknowledge signal. That is, this microprocessor can have a degree of freedom in acquiring and releasing the bus right by handshaking. In addition, since the first storage means in which the bus right release permission control information is stored can be accessed and rewritten by the built-in CPU, such a degree of freedom can be controlled by an operation program of the CPU.

【0021】スレーブモードが設定されるマイクロプロ
セッサのリセット動作直後においてもマスタプロセッサ
からバス権を獲得して一定期間バスアクセスを伴った初
期化動作が必要になる場合に対処することを考慮する
と、マイクロプロセッサの使い勝手の点において、前記
第1の記憶手段はマイクロプロセッサのリセット動作に
応じてマスタ・スレーブモード制御情報が初期設定さ
れ、前記第2の記憶手段はマスタ・スレーブ制御情報に
よるスレーブモードの設定に呼応して活性状態のバス権
解放許可制御情報が初期設定されるものであることが望
ましい。
Considering the case where the bus right is acquired from the master processor immediately after the reset operation of the microprocessor in which the slave mode is set and the initialization operation accompanied by the bus access is required for a certain period is taken into consideration, In terms of the usability of the processor, the first storage means has master / slave mode control information initialized in response to a reset operation of the microprocessor, and the second storage means has a slave mode setting based on master / slave control information. It is desirable that the active bus right release permission control information is initialized in response to the request.

【0022】ハンドシェークによるバス権の獲得と解放
に関する自由度をマイクロプロセッサに持たせるという
観点による更に別の第3のマイクロプロセッサは、上記
第1のマイクロプロセッサが有するバス調停手段と第2の
マイクロプロセッサが有するバス調停手段の双方を備え
るものである。そのようなマイクロプロセッサは、マス
タ又はスレーブの何れに利用されても、バス権の獲得と
解放に関する自由度を持つことができる。
Still another third microprocessor from the viewpoint that the microprocessor has a degree of freedom regarding acquisition and release of a bus right by handshaking is a bus arbitration means of the first microprocessor and a second microprocessor. Has both bus arbitration means. Such a microprocessor, whether used as a master or a slave, has the freedom to acquire and release the bus.

【0023】[0023]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

〔マイクロプロセッサ〕図1には本発明の一例に係るマ
イクロプロセッサのブロック図が示される。同図に示さ
れるマイクロプロセッサ1は、32ビットRISC(Red
uced Instruction Set Computer)アーキテクチャを有
し、16ビット固定長命令を実行する。
[Microprocessor] FIG. 1 is a block diagram showing a microprocessor according to an example of the present invention. The microprocessor 1 shown in FIG. 1 is a 32-bit RISC (Red
uced Instruction Set Computer) architecture and executes 16-bit fixed-length instructions.

【0024】このマイクロプロセッサ1は、浮動小数点
ユニット2を有する。さらに、マイクロプロセッサ1は
中央処理装置(CPU)3を有し、このCPU3は整数
を処理する能力を持つ整数ユニットとされる。前記CP
U3は32ビットデータバス4を介して前記浮動小数点
ユニット2に結合されている。CPU3及び浮動小数点
ユニット2は命令バス5を介して命令キャッシュユニッ
ト6から命令を取り込む。命令アドレスはCPU3から
命令キャッシュユニット6に与えられる。データキャッ
シュユニット7は、前記データバス4に接続され、デー
タアドレスバス8を介してCPU3からデータアドレス
が供給される。前記データキャッシュユニット7及び命
令キャッシュユニット6は、夫々図示を省略するキャッ
シュコントローラ及びキャッシュメモリを備えている。
前記命令キャッシュユニット6及びデータキャッシュユ
ニット7はデータ信号やコントロール信号を含むキャッ
シュバス13を介してバスコントローラ9に接続され
る。命令キャッシュユニット6におけるキャッシュミス
等に起因する外部アクセスのための命令アドレスは前記
バスコントローラ9に与えられる。また、データキャッ
シュユニット7におけるキャッシュミス等に起因する外
部アクセスのためのデータアドレスは前記バスコントロ
ーラ9に与えられる。バスコントローラ9はそれら命令
アドレス又はデータアドレスに従って、代表的に図示さ
れたアドレス出力端子31に結合されたアドレスバス3
3及びデータ入出力端子30に結合されたデータバス3
2を介して外部メモリなどをアクセスするための外部バ
スサイクルを起動する。また、バスコントローラ9には
タイマやシリアルコミュニケーションインタフェースコ
ントローラ等の周辺回路10が周辺バス11を介して接
続されている。図1に示されるマイクロプロセッサは、
単結晶シリコンのような1個の半導体基板に形成されて
いる。
The microprocessor 1 has a floating point unit 2. Further, the microprocessor 1 has a central processing unit (CPU) 3, which is an integer unit capable of processing integers. The CP
U3 is coupled to the floating point unit 2 via a 32-bit data bus 4. The CPU 3 and the floating point unit 2 fetch an instruction from the instruction cache unit 6 via the instruction bus 5. The instruction address is provided from the CPU 3 to the instruction cache unit 6. The data cache unit 7 is connected to the data bus 4, and receives a data address from the CPU 3 via the data address bus 8. The data cache unit 7 and the instruction cache unit 6 include a cache controller and a cache memory, respectively, which are not shown.
The instruction cache unit 6 and the data cache unit 7 are connected to a bus controller 9 via a cache bus 13 including a data signal and a control signal. An instruction address for external access caused by a cache miss or the like in the instruction cache unit 6 is given to the bus controller 9. A data address for an external access due to a cache miss or the like in the data cache unit 7 is given to the bus controller 9. The bus controller 9 responds to the instruction address or the data address by using an address bus 3 coupled to an address output terminal 31 shown in FIG.
3 and a data bus 3 coupled to the data input / output terminal 30
2 to start an external bus cycle for accessing an external memory or the like. A peripheral circuit 10 such as a timer and a serial communication interface controller is connected to the bus controller 9 via a peripheral bus 11. The microprocessor shown in FIG.
It is formed on one semiconductor substrate such as single crystal silicon.

【0025】前記浮動小数点ユニット(以下単にFPU
とも称する)2は浮動小数点処理のためにメモリからデ
ータ又は命令を要求することになる。前記FPU2は、
データキャッシュユニット7のキャッシュメモリにデー
タをストアし又は当該キャッシュメモリからデータを獲
得するためのメモリアドレシング能力を持っていない。
これは、FPU2のメモリ・アドレシング回路の必要性
を取り除くことによってチップ面積を節約するためであ
る。それに代えて、CPU3はFPU2に代わってキャ
ッシュメモリなどをアドレシングする機能を有する。し
たがって、FPU2若しくは浮動小数点命令は、CPU
3と同様の強力なアドレシングモードをサポートする必
要はなく、その機能を全てCPU3が負担する。CPU
3はFPU2のためにメモリからデータのフェッチを行
うだけでなく、CPU3はまた、FPU2のために浮動
小数点命令を含む全ての命令をメモリからフェッチす
る。命令はCPU3とFPU2の双方に取り込まれてデ
コードされる。CPU3は、デコードした命令がCPU
命令である場合にはそれによって指示される整数処理を
実行する。また、CPU3は、デコードした命令がFP
U命令である場合には、FPU2に代わって実行すべき
アドレシング処理などを行う。FPU2は、デコードし
た命令がFPU命令である場合にはそれによって指示さ
れる浮動小数点処理を実行する。また、FPU2は、デ
コードした命令がCPU命令である場合にはその命令を
無視する。
The floating point unit (hereinafter simply referred to as FPU
2) will request data or instructions from memory for floating point processing. The FPU 2 comprises:
It does not have a memory addressing capability for storing data in the cache memory of the data cache unit 7 or acquiring data from the cache memory.
This is to save chip area by eliminating the need for the memory addressing circuit of FPU2. Instead, the CPU 3 has a function of addressing a cache memory or the like instead of the FPU 2. Therefore, FPU2 or floating point instructions
It is not necessary to support the same powerful addressing mode as that of the CPU 3, and the CPU 3 bears all the functions. CPU
3 not only fetches data from memory for FPU2, but CPU3 also fetches all instructions from memory for FPU2, including floating point instructions. The instruction is taken into both the CPU 3 and the FPU 2 and decoded. The CPU 3 outputs the decoded instruction to the CPU
If it is an instruction, it executes the integer processing indicated by the instruction. Further, the CPU 3 determines that the decoded instruction is FP
If the instruction is a U instruction, an addressing process to be executed in place of the FPU 2 is performed. When the decoded instruction is an FPU instruction, the FPU 2 executes a floating point process indicated by the instruction. When the decoded instruction is a CPU instruction, the FPU 2 ignores the instruction.

【0026】マイクロプロセッサ1は、当該マイクロプ
ロセッサ1の動作モードが初期的にバス権を有するマス
タモードか、必要に応じてバス権を獲得するスレーブモ
ードかを決定するためのマスタ・スレーブモード制御情
報MSMDが設定されるレジスタ22を有する。マスタ
・スレーブモード制御情報MSMDはモード信号MDの
状態によって決定される。モード信号MDはリセット信
号RESETに所定の変化が与えられてリセット動作が
指示されたとき有意とされ、リセット動作の一環とし
て、マスタモードかスレーブモードかが決定される。図
1において34はモード信号MDの入力端子、35はリ
セット信号RESETの入力端子である。
The microprocessor 1 has master / slave mode control information for determining whether the operation mode of the microprocessor 1 is a master mode having an initial bus right or a slave mode for acquiring a bus right as required. It has a register 22 in which MSMD is set. Master / slave mode control information MSMD is determined by the state of mode signal MD. The mode signal MD is made significant when a predetermined change is given to the reset signal RESET and a reset operation is instructed, and as a part of the reset operation, the master mode or the slave mode is determined. In FIG. 1, reference numeral 34 denotes an input terminal of the mode signal MD, and reference numeral 35 denotes an input terminal of the reset signal RESET.

【0027】図1に示されるマイクロプロセッサ1はバ
ス権の獲得と解放をハンドシェークで制御する機能を備
える。そのためにバス調停回路20を有する。バス調停
回路20は、バス権解放要求信号BREQのインタフェ
ース端子32とバス権解放承認信号BACKのインタフ
ェース端子33に結合されている。
The microprocessor 1 shown in FIG. 1 has a function of controlling acquisition and release of a bus right by handshake. For this purpose, a bus arbitration circuit 20 is provided. The bus arbitration circuit 20 is connected to an interface terminal 32 of the bus right release request signal BREQ and an interface terminal 33 of the bus right release acknowledge signal BACK.

【0028】マスタモードにおいてバス調停回路20
は、外部からバス権解放要求信号BREQが供給され、
外部にバス権解放承認信号BACKを出力する。このと
きバス調停回路20は、バス権解放要求信号BREQが
アサートされると、現在実行中のバスサイクルを完了さ
せた後にバス権を解放し、バス権解放承認信号BACK
をアサートする。バス権を獲得する場合には、バス権解
放承認信号BACKをネゲートして外部にバス権解放を
要求し、これに応答して外部から返されるバス権解放要
求信号BREQがネゲートされるのを待ってバス権を獲
得する。
In the master mode, the bus arbitration circuit 20
Is supplied with a bus right release request signal BREQ from outside,
The bus right release acknowledge signal BACK is output to the outside. At this time, when the bus right release request signal BREQ is asserted, the bus arbitration circuit 20 releases the bus right after completing the currently executed bus cycle, and releases the bus right release acknowledge signal BACK.
Assert When acquiring the bus right, the bus right release acknowledge signal BACK is negated to request the bus right release externally, and in response to this, the system waits until the bus right release request signal BREQ returned from the outside is negated. To get the bus right.

【0029】スレーブモードにおいてバス調停回路20
は、外部からバス権解放承認信号BACKが供給され、
外部にバス権解放要求信号BREQを出力する。このと
きバス調停回路20は、バス権を獲得する場合にはバス
権解放要求信号BREQを外部にアサートし、これに応
答して外部から返されるバス権解放承認信号BACKが
アサートされるのを待ってバス権を獲得することができ
る。バス権解放承認信号BACKがネゲートされると、
現在実行中のバスサイクルを完了させた後にバス権を解
放し、バス権解放要求信号BREQをネゲートする。
In the slave mode, the bus arbitration circuit 20
Receives a bus right release acknowledge signal BACK from outside,
The bus right release request signal BREQ is output to the outside. At this time, when acquiring the bus right, the bus arbitration circuit 20 asserts the bus right release request signal BREQ to the outside and waits for the bus right release acknowledge signal BACK returned from the outside in response to the assertion. You can get the bus right. When the bus right release acknowledge signal BACK is negated,
After completing the currently executed bus cycle, the bus right is released and the bus right release request signal BREQ is negated.

【0030】バス権解放状態においてバスコントローラ
9は外部アドレスバス33に接続される出力端子31
と、外部データバス32に結合されるデータ入出力端子
30とを夫々高出力インピーダンス状態に制御する。
In the bus release state, the bus controller 9 is connected to the output terminal 31 connected to the external address bus 33.
And the data input / output terminal 30 coupled to the external data bus 32 are controlled to a high output impedance state.

【0031】特にマイクロプロセッサ1は、前記信号B
REQ,BACKによるバス権の獲得及び解放に関する
ハンドシェーク制御に自由度を持たせるために、バス権
解放許可制御情報BREQENを格納するレジスタ21
を有する。このレジスタ21はCPU3によってアクセ
ス可能にされたコントロールレジスタの一種である。
In particular, the microprocessor 1 controls the signal B
A register 21 for storing bus right release permission control information BREQEN in order to allow a degree of freedom in handshake control regarding acquisition and release of a bus right by REQ and BACK.
Having. This register 21 is a type of control register made accessible by the CPU 3.

【0032】マスタモードにおいて前記バス調停回路2
0は、前記バス権解放許可制御情報BREQENが非活
性状態にされているとき、前記バス権解放要求信号BR
EQのアサートによるバス権解放要求を無効化する。即
ち、このマイクロプロセッサ1がマルチプロセッサシス
テムにおけるマスタプロセッサに割り当てられるとき、
バス権解放許可制御情報BREQENが非活性状態に初
期化されると、バス調停回路20は外部からのバス権解
放要求信号BREQのアサートによるバス権解放要求を
無効化する。したがって、マスタモードが設定されたマ
イクロプロセッサ1は、外部バスアクセスを伴う所要の
処理を完了するまで、バス権解放許可制御情報BREQ
ENを非活性状態に維持することによって、外部からの
バス権解放要求信号BREQのアサート状態とは無関係
にバス権を維持することができる。即ち、マイクロプロ
セッサ1は、ハンドシェークによるバス権の獲得と解放
に対して自由度を持つことができる。しかも、バス権解
放許可制御情報BREQENが格納されるレジスタ21
は内蔵CPU3がアクセスして書き換え可能であるか
ら、そのような自由度はCPU3の動作プログラムで制
御できる。
In the master mode, the bus arbitration circuit 2
0 is the bus release request signal BR when the bus release permission control information BREQEN is inactive.
The bus right release request by the assertion of the EQ is invalidated. That is, when the microprocessor 1 is assigned to a master processor in a multiprocessor system,
When the bus right release control information BREQEN is initialized to an inactive state, the bus arbitration circuit 20 invalidates a bus right release request by asserting the bus right release request signal BREQ from outside. Therefore, the microprocessor 1 in which the master mode is set keeps the bus right release permission control information BREQ until the required processing involving the external bus access is completed.
By keeping EN inactive, the bus right can be maintained irrespective of the externally asserted state of the bus right release request signal BREQ. That is, the microprocessor 1 can have a degree of freedom in acquiring and releasing the bus right by handshaking. Moreover, the register 21 storing the bus right release permission control information BREQEN
Can be accessed and rewritten by the built-in CPU 3, such a degree of freedom can be controlled by an operation program of the CPU 3.

【0033】スレーブモードにおいて前記バス調停回路
20は、前記バス権解放許可制御情報BREQENが活
性状態にされているとき、前記バス権解放承認信号BA
CKのネゲートによるバス権解放要求を無効化する。即
ち、このマイクロプロセッサ1がマルチプロセッサシス
テムにおけるスレーブプロセッサに割り当てられると
き、そのバス調停回路20はマスタプロセッサにバス権
解放要求信号BREQをアサートすると、それに応答す
るバス権解放承認信号BACKがマスタプロセッサから
アサートされることによってバス権を獲得できる。この
スレーブモードが設定されたマイクロプロセッサ1にお
いてバス権解放許可制御情報BREQENが活性状態に
されていると、前記の様にして一旦バス権を獲得したと
き、そのバス調停回路20が外部(マスタプロセッサ)
からのバス権解放承認信号BACKのネゲートによるバ
ス権解放要求を無効化できる。これによって、当該マイ
クロプロセッサ1は、外部バスアクセスを伴う所要の処
理を完了するまで、バス権解放許可制御情報BREQE
Nを活性状態に維持することによって、マスタプロセッ
サからのバス権解放承認信号BACKのネゲート状態と
は無関係にバス権を維持することができる。したがっ
て、このマイクロプロセッサ1は、スレーブモードにお
いても、ハンドシェークによるバス権の獲得と解放に対
して自由度を持つことができる。しかも、バス権解放許
可制御情報BREQENが格納されるレジスタ21は内
蔵CPU3がアクセスして書き換え可能であるから、そ
のような自由度はCPU3の動作プログラムで制御でき
る。
In the slave mode, when the bus right release permission control information BREQEN is activated, the bus arbitration circuit 20 outputs the bus right release approval signal BA.
Invalidates a bus right release request by negation of CK. That is, when the microprocessor 1 is assigned to a slave processor in a multiprocessor system, the bus arbitration circuit 20 asserts the bus right release request signal BREQ to the master processor, and sends a bus right release acknowledge signal BACK in response thereto from the master processor. The bus right can be acquired by being asserted. When the bus right release permission control information BREQEN is activated in the microprocessor 1 in which the slave mode is set, when the bus right is once acquired as described above, the bus arbitration circuit 20 is connected to the external (master processor). )
, The bus right release request by negating the bus right release acknowledge signal BACK can be invalidated. As a result, the microprocessor 1 performs the bus right release permission control information BREQE until the required processing involving the external bus access is completed.
By maintaining N in the active state, the bus right can be maintained regardless of the negation state of the bus right release acknowledge signal BACK from the master processor. Therefore, even in the slave mode, the microprocessor 1 can have a degree of freedom in acquiring and releasing the bus right by handshaking. Moreover, the register 21 in which the bus right release permission control information BREQEN is stored can be accessed and rewritten by the built-in CPU 3, and such a degree of freedom can be controlled by the operation program of the CPU 3.

【0034】特にこの例では、リセット動作で決定され
るマイクロプロセッサ1の動作モードがマスタモードか
スレーブモードかに応じて、前記バス権解放許可制御情
報BREQENがレジスタ21に初期設定される。即
ち、リセット動作において前記レジスタ22に設定され
るマスタ・スレーブモード制御情報MSMDがマスタモ
ードを示す場合、レジスタ21にはバス権解放許可制御
情報BREQENが非活性状態に初期設定される。した
がって、マスタモードが設定されるマイクロプロセッサ
1は、リセット直後、バス権解放許可制御情報BREQ
ENを活性状態に書き換えるまで、スレーブプロセッサ
にバス権を解放することなくバスアクセスを伴う一定の
処理を完結させることができる。そのような処理として
は、具体例については後述するが、マルチプロセッサシ
ステムの共有資源等に対する全体的な初期設定動作であ
り、初期設定動作が完了される前に、スレーブプロセッ
サが共有資源をアクセスして誤動作するような事態を簡
単に防止することができる。
In particular, in this example, the bus right release permission control information BREQEN is initialized in the register 21 according to whether the operation mode of the microprocessor 1 determined by the reset operation is the master mode or the slave mode. That is, when the master / slave mode control information MSMD set in the register 22 indicates the master mode in the reset operation, the bus right release permission control information BREQEN is initially set in the register 21 to the inactive state. Therefore, immediately after the reset, the microprocessor 1 in which the master mode is set, releases the bus right release permission control information BREQ.
Until EN is rewritten to the active state, a certain process involving bus access can be completed without releasing the bus right to the slave processor. Such a process is a general initialization operation for a shared resource or the like of a multiprocessor system, which will be described later in a specific example. The slave processor accesses the shared resource before the initialization operation is completed. This can easily prevent a malfunction from occurring.

【0035】また、リセット動作において前記レジスタ
22に設定されるマスタ・スレーブモード制御情報MS
MDがスレーブモードを示す場合、レジスタ21にはバ
ス権解放許可制御情報BREQENが活性状態に初期設
定される。したがって、スレーブモードが設定されるマ
イクロプロセッサ1は、リセット直後、マスタプロセッ
サから一旦バス権を獲得した後は、バス権解放許可制御
情報BREQENを非活性状態に書き換えるまで、マス
タプロセッサにバス権を解放することなくバスアクセス
を伴う一定の処理を完結させることができる。
In the reset operation, the master / slave mode control information MS set in the register 22 is set.
When the MD indicates the slave mode, the bus right release permission control information BREQEN is initially set in the register 21 to the active state. Therefore, the microprocessor 1, in which the slave mode is set, immediately acquires the bus right from the master processor immediately after the reset, and then releases the bus right to the master processor until the bus right release permission control information BREQEN is rewritten to the inactive state. A certain process involving a bus access can be completed without performing.

【0036】〔マルチプロセッサシステム〕図2には図
1に示されるマイクロプロセッサを2個用いたマルチプ
ロセッサシステムのブロック図が示される。図2におい
てマスタプロセッサ1mはマスタモードが設定されるマ
イクロプロセッサ1であり、スレーブプロセッサ1sは
スレーブモードが設定されるマイクロプロセッサ1であ
る。図2において40で示されるものはモード信号MD
m,MDsの発生回路である。MDmはマスタプロセッ
サ1mにマスタモードを設定するためのモード信号であ
り、MDsはスレーブプロセッサ1sにスレーブモード
を設定するためのモード信号である。モード信号発生回
路40は例えばプルアップ回路及びプルダウン回路によ
って簡単に構成されている。21m,22mはマスタプ
ロセッサ1mにおいて前記バス権解放許可制御情報BR
EQEN,マスタ・スレーブモード制御情報MSMDが
設定される前記レジスタ21,22である。21s,2
2sはスレーブプロセッサ1sにおいて前記バス権解放
許可制御情報BREQEN,マスタ・スレーブモード制
御情報MSMDが設定される前記レジスタ21,22で
ある。20mはマスタプロセッサ1mのバス調停回路2
0、20sはスレーブプロセッサ1sのバス調停回路2
0である。マスタプロセッサ1mのバス調停回路20m
は、バス権解放要求信号BREQを入力し、バス権解放
承認信号BACKを出力する。スレーブプロセッサ1s
のバス調停回路20sはバス権解放要求信号BREQを
出力し、バス権解放承認信号BACKを入力する。
[Multiprocessor System] FIG. 2 is a block diagram of a multiprocessor system using two microprocessors shown in FIG. In FIG. 2, a master processor 1m is a microprocessor 1 in which a master mode is set, and a slave processor 1s is a microprocessor 1 in which a slave mode is set. In FIG. 2, reference numeral 40 denotes a mode signal MD.
m, MDs. MDm is a mode signal for setting the master mode in the master processor 1m, and MDs is a mode signal for setting the slave mode in the slave processor 1s. The mode signal generating circuit 40 is simply constituted by, for example, a pull-up circuit and a pull-down circuit. 21m and 22m correspond to the bus release permission control information BR in the master processor 1m.
The registers 21 and 22 in which EQEN and master / slave mode control information MSMD are set. 21s, 2
2s are registers 21 and 22 in which the bus right release permission control information BREQEN and master / slave mode control information MSMD are set in the slave processor 1s. 20m is the bus arbitration circuit 2 of the master processor 1m
0 and 20 s are bus arbitration circuits 2 of the slave processor 1 s
0. Bus arbitration circuit 20m of master processor 1m
Receives a bus right release request signal BREQ and outputs a bus right release acknowledge signal BACK. Slave processor 1s
The bus arbitration circuit 20s outputs the bus right release request signal BREQ and inputs the bus right release acknowledge signal BACK.

【0037】図2において44で示されるものは共通バ
スとしてのアドレスバス33、データバス32及び図示
を省略するコントロールバスに結合されたシンクロナス
DRAMである。このシンクロナスDRAM44は双方
のマイクロプロセッサ1m,1sの共有資源とされ、例
えば、ワーク領域若しくはデータの一次記憶領域として
利用されるメインメモリである。
In FIG. 2, reference numeral 44 denotes a synchronous DRAM coupled to an address bus 33, a data bus 32, and a control bus (not shown) as a common bus. The synchronous DRAM 44 is used as a shared resource of the microprocessors 1m and 1s, and is, for example, a main memory used as a work area or a primary storage area for data.

【0038】図2において42,43はマスタプロセッ
サ1mのローカルアドレスバス,ローカルデータバスで
あり、そこには、ブートメモリ41が接続されている。
ブートメモリ41は、図2に示されるマルチプロセッサ
システムを初期設定するための初期化プログラムが格納
され、その初期化プログラムには、前記シンクロナスD
RAM44を初期設置するための初期化プログラムも含
まれている。例えばシンクロナスDRAM44は、バー
スト長やバーストタイプ、CASレイテンシなどが設定
されるモードレジスタを含み、ブートメモリ41の初期
化プログラムはそのようなモードレジスタの初期設定を
行うための動作プログラムである。図2のマルチプロセ
ッサシステムに最適な初期設定が行われないままシンク
ロナスDRAM44のメモリセルがアクセスされる場合
には誤動作若しくはデータエラーを生ずる場合もある。
これを考慮すれば、システムリセット後、スレーブプロ
セッサ1sは、マスタプロセッサ1mが初期化動作を完
了させた後にシンクロナスDRAM44をアクセスする
ことが望ましい。
In FIG. 2, reference numerals 42 and 43 denote a local address bus and a local data bus of the master processor 1m, to which a boot memory 41 is connected.
The boot memory 41 stores an initialization program for initializing the multiprocessor system shown in FIG. 2, and the initialization program includes the synchronous D
An initialization program for initially installing the RAM 44 is also included. For example, the synchronous DRAM 44 includes a mode register in which a burst length, a burst type, a CAS latency, and the like are set, and an initialization program of the boot memory 41 is an operation program for initializing such a mode register. If the memory cell of the synchronous DRAM 44 is accessed without performing the optimal initialization for the multiprocessor system of FIG. 2, a malfunction or a data error may occur.
Considering this, it is desirable that after the system reset, the slave processor 1s accesses the synchronous DRAM 44 after the master processor 1m completes the initialization operation.

【0039】図3にはリセットからその直後におけるマ
スタプロセッサ1mの動作フローチャート、図4にはリ
セットからその直後におけるスレーブプロセッサ1sの
動作フローチャートが示される。
FIG. 3 is a flowchart showing the operation of the master processor 1m immediately after the reset, and FIG. 4 is a flowchart showing the operation of the slave processor 1s immediately after the reset.

【0040】リセット信号が入力されると、マスタプロ
セッサ1mはモード信号MDmに従ってマスタモードを
指示するマスタ・スレーブ制御情報MSMDがレジスタ
21mに初期設定され、且つ、非活性状態のバス権解放
許可制御情報BREQENがレジスタ22mに初期設定
される(M1)。これによってマスタプロセッサ1mに
はマスタモードが設定され、且つバス調停回路20m
は、バス権解放許可制御情報BREQENが活性状態に
書き換えられるまで、バス権解放要求信号BREQのア
サートによるバス権解放要求を無視する。その後、マス
タプロセッサ1mはブートメモリ41をアクセスしてシ
ンクロナスDRAM44に代表される共有資源の初期設
定を行う(M2,M3)。
When the reset signal is input, the master processor 1m initializes the master / slave control information MSMD instructing the master mode in the register 21m according to the mode signal MDm, and sets the inactive bus right release permission control information in the register 21m. BREQEN is initialized in the register 22m (M1). As a result, the master mode is set in the master processor 1m, and the bus arbitration circuit 20m
Ignores the bus right release request by asserting the bus right release request signal BREQ until the bus right release permission control information BREQEN is rewritten to the active state. Thereafter, the master processor 1m accesses the boot memory 41 and performs initialization of the shared resources represented by the synchronous DRAM 44 (M2, M3).

【0041】一方スレーブプロセッサ1sは、リセット
信号が入力されると、モード信号MDsに従ってスレー
ブモードを指示するマスタ・スレーブ制御情報MSMD
がレジスタ21sに初期設定され、且つ、活性状態のバ
ス権解放許可制御信号BREQENがレジスタ22sに
初期設定される(S1)。これによってスレーブプロセ
ッサ1sにはスレーブモードが設定され、且つバス調停
回路20sは、バス権解放許可制御情報BREQENが
非活性状態に書き換えられるまで、バス権解放承認信号
BREQのネゲートによるバス権解放要求を無視する。
この状態はスレーブプロセッサ1sがバス権を獲得した
場合に実効がある。例えばスレーブプロセッサ1sはリ
セット後、シンクロナスDRAM44をアクセスするた
めにマスタプロセッサ1mに対してバス権解放要求信号
BREQをアサートし(S2)、マスタプロセッサ1m
からのバス権解放承認信号BACKがアサートされるの
を待つ(S3)。
On the other hand, when the reset signal is input, the slave processor 1s receives the master / slave control information MSMD instructing the slave mode in accordance with the mode signal MDs.
Is initialized in the register 21s, and the active bus right release permission control signal BREQEN is initialized in the register 22s (S1). As a result, the slave mode is set in the slave processor 1s, and the bus arbitration circuit 20s issues a bus right release request by negating the bus right release approval signal BREQ until the bus right release permission control information BREQEN is rewritten to an inactive state. ignore.
This state is effective when the slave processor 1s acquires the bus right. For example, after resetting, the slave processor 1s asserts the bus right release request signal BREQ to the master processor 1m to access the synchronous DRAM 44 (S2), and the master processor 1m
It waits until the bus right release acknowledge signal BACK is asserted (S3).

【0042】マスタプロセッサ1mが共有資源の初期化
を完了すると、マスタプロセッサ1mのCPUはバス権
解放許可制御情報BREQENを活性状態に書き換える
(M4)。そして、マスタプロセッサ1mは、スレーブ
プロセッサ1sからのバス権解放要求信号BREQがア
サートされていることを検出すると(M5)、バス権解
放承認信号BACKをアサートして、バス権を解放す
る。
When the master processor 1m completes the initialization of the shared resource, the CPU of the master processor 1m rewrites the bus release permission control information BREQEN to an active state (M4). When detecting that the bus right release request signal BREQ from the slave processor 1s is asserted (M5), the master processor 1m asserts the bus right release acknowledge signal BACK to release the bus right.

【0043】これによって、スレーブプロセッサ1sは
ステップS3にてバス権解放承認信号BACKのアサー
トを検出することによって,バス権を獲得し、シンクロ
ナスDRAM44をアクセスすることができる。このと
き、既にシンクロナスDRAM44の初期化は完了され
ているので、スレーブプロセッサ1sによるアクセスに
よって誤動作を生じない。
As a result, the slave processor 1 s acquires the bus right by detecting the assertion of the bus right release acknowledge signal BACK in step S 3, and can access the synchronous DRAM 44. At this time, since the initialization of the synchronous DRAM 44 has already been completed, no malfunction occurs due to the access by the slave processor 1s.

【0044】このとき、スレーブプロセッサ1sのバス
権解放許可制御情報BREQENは活性状態にされてい
るので、スレーブプロセッサ1sのCPUがその情報を
反転するまで、バス調停回路20sはバス権解放承認信
号BACKのネゲートによるマスタプロセッサ1mから
のバス権解放要求を無視して、シンクロナスDRAM4
4のアクセスを継続することができる。
At this time, since the bus right release permission control information BREQEN of the slave processor 1s is in the active state, the bus arbitration circuit 20s causes the bus right release acknowledge signal BACK until the CPU of the slave processor 1s inverts the information. Ignoring the bus right release request from the master processor 1m due to negation of the synchronous DRAM 4
4 can be continued.

【0045】図5には図1のマイクロプロセッサ1をマ
スタプロセッサ1mとし、スレーブプロセッサとして別の
マイクロプロセッサ50を用いたマルチプロセッサシス
テムのブロック図が示される。マイクロプロセッサ50
にもバス調停回路51を有する。このバス調停回路51
は、バス権解放許可制御情報BREQENに従った制御
機能を有しない点が前記バス調停回路20と相違してい
る。マイクロプロセッサ50は、バス権解放要求信号B
REQを出力し、バス権解放承認信号BACKを入力す
ることによってスレーブプロセッサとして動作される。
このようなシステム構成においても、マスタプロセッサ
1mは前記同様に、バス権の獲得と解放に自由度がある
から、シンクロナスDRAMに対する初期化を完了する
までスレーブプロセッサ50にバス権を解放しなくても
済む。
FIG. 5 is a block diagram of a multiprocessor system using the microprocessor 1 of FIG. 1 as a master processor 1m and another microprocessor 50 as a slave processor. Microprocessor 50
Also has a bus arbitration circuit 51. This bus arbitration circuit 51
Is different from the bus arbitration circuit 20 in that it does not have a control function according to the bus right release permission control information BREQEN. The microprocessor 50 outputs a bus right release request signal B
By outputting REQ and inputting the bus right release acknowledge signal BACK, it operates as a slave processor.
Even in such a system configuration, the master processor 1m has a degree of freedom in acquiring and releasing the bus right as described above, so that the master processor 1m does not release the bus right to the slave processor 50 until the initialization of the synchronous DRAM is completed. I'm done.

【0046】図6には図1のマイクロプロセッサ1をス
レーブプロセッサ1sとし、マスタプロセッサとして別
のマイクロプロセッサ50を用いたマルチプロセッサシ
ステムのブロック図が示される。マイクロプロセッサ5
0にもバス調停回路51を有する。このバス調停回路5
1は、バス権解放許可制御情報BREQENに従った制
御機能を有しない点が前記バス調停回路20と相違して
いる。マイクロプロセッサ50は、バス権解放要求信号
BREQを入力し、バス権解放承認信号BACKを出力
することによってマスタプロセッサとして動作される。
このようなシステム構成においても、スレーブプロセッ
サ1sは前記同様に、バス権の獲得と解放に自由度があ
るから、マスタプロセッサ50からのバス権解放用要求
を一定期間無視して、バスアクセスを伴い一連の処理を
連続して実行出来る自由度を得ることができる。図6の
例では、共通バス32,33には初期化を要しないDR
AM52が共有資源の一例として図示されている。
FIG. 6 is a block diagram of a multiprocessor system using the microprocessor 1 of FIG. 1 as a slave processor 1s and another microprocessor 50 as a master processor. Microprocessor 5
0 also has a bus arbitration circuit 51. This bus arbitration circuit 5
1 differs from the bus arbitration circuit 20 in that it does not have a control function according to the bus right release permission control information BREQEN. The microprocessor 50 operates as a master processor by inputting the bus right release request signal BREQ and outputting a bus right release acknowledge signal BACK.
Even in such a system configuration, the slave processor 1s has a degree of freedom in acquiring and releasing the bus right, as described above, so that the slave processor 1s ignores the bus right release request from the master processor 50 for a certain period of time and involves the bus access. It is possible to obtain a degree of freedom in which a series of processes can be continuously executed. In the example of FIG. 6, DRs that do not require initialization are
The AM 52 is shown as an example of a shared resource.

【0047】図7には更に別のマイクロプロプロセッサ
を用いたマルチプロセッサシステムの一例が示される。
同図に示されるマイクロプロセッサ60は、フェッチし
た命令を実行するCPU61を半導体基板に含み、この
マイクロプロセッサの動作モードが初期的にバス権を有
するマスタモードか、必要に応じてバス権を獲得するス
レーブモードかを決定するためのマスタ・スレーブモー
ド制御情報MSMDが設定されるレジスタ62と、前記
レジスタ62に対するマスタ・スレーブモード制御情報
MSMDをリセット動作時に初期的に決定するためのモ
ード信号MDの入力端子と、バス調停回路63とを有す
る。バス調停回路63は、バス権解放許可制御情報BR
EQENによる制御機能を除いた、ハンドシェークによ
るバス権要求と解放の制御機能を有する。更に、バス調
停回路63は、前記レジスタ62に初期的に設定される
マスタ・スレーブモード制御情報MSMDがマスタモー
ドを示す場合には、リセット後にCPUの動作プログラ
ムに従って1回だけ外部へのバス権解放承認信号にハイ
レベル、ローレベル、ハイレベルのような一連の変化を
生じさせ、また、前記レジスタ62に初期的に設定され
るマスタ・スレーブモード制御情報MSMDがスレーブ
モードを示す場合には、リセット後、外部からのバス権
承認信号BACKが前記ハイレベル、ローレベル、ハイ
レベルのような一連の変化を生じたことを検出して初め
て、バス権要求信号BREQによるバス権の要求が可能
になるという機能を備えている。マスタモードが設定さ
れたマイクロプロセッサ60(マスタプロセッサ)は、
シンクロナスDRAM44のような初期化を要する共有
資源の初期化を完了するまで、スレーブモードが設定さ
れたマイクロプロセッサ60(スレーブプロセッサ)に
バス権を解放しない自由度を得ることができる。
FIG. 7 shows an example of a multiprocessor system using still another microprocessor.
The microprocessor 60 shown in the figure includes a CPU 61 for executing a fetched instruction on a semiconductor substrate, and the operation mode of the microprocessor is initially a master mode having a bus right or acquires a bus right as necessary. A register 62 in which master / slave mode control information MSMD for determining the slave mode is set, and a mode signal MD for initially determining the master / slave mode control information MSMD for the register 62 at the time of resetting operation It has a terminal and a bus arbitration circuit 63. The bus arbitration circuit 63 transmits the bus right release permission control information BR
It has a bus right request and release control function by handshaking, excluding the EQEN control function. Further, when the master / slave mode control information MSMD initially set in the register 62 indicates the master mode, the bus arbitration circuit 63 releases the bus right to the outside only once after reset according to the operation program of the CPU. A series of changes such as a high level, a low level, and a high level are caused in the acknowledge signal. When the master / slave mode control information MSMD initially set in the register 62 indicates the slave mode, the reset is performed. After that, it is possible to request the bus right by the bus right request signal BREQ only after detecting that the series of changes such as the high level, the low level, and the high level has occurred in the bus right acknowledge signal BACK from the outside. It has a function called. The microprocessor 60 (master processor) in which the master mode is set,
Until the initialization of a shared resource such as the synchronous DRAM 44 requiring initialization is completed, the degree of freedom that the bus right is not released to the microprocessor 60 (slave processor) in which the slave mode is set can be obtained.

【0048】以上本発明者によってなされた発明を実施
形態に基づいて具体的に説明したが、本発明はそれに限
定されるものではなく、その要旨を逸脱しない範囲にお
いて種々変更可能であることは言うまでもない。
Although the invention made by the present inventor has been specifically described based on the embodiment, it is needless to say that the present invention is not limited to the embodiment and can be variously modified without departing from the gist of the invention. No.

【0049】例えば、バス権解放許可制御情報BREQ
ENやマスタ・スレーブモード制御情報MSMDを格納
するレジスタ21,22はバスコントローラに内蔵され
ることに限定されず、その配置はマイクロプロセッサの
どこでもよい。また、上記実施例ではモード信号やリセ
ット信号がバスコントローラに直接入力されてレジスタ
21,22を初期設定するような図面を示したが、それ
ら信号は、マイクロプロセッサのモード制御ロジックに
供給され、そこで生成された内部制御信号によってレジ
スタ21,22の初期設定を行うようにすることも可能
である。また、マイクロプロセッサの内蔵機能モジュー
ルやその接続配置構成は図1の例に限定されず、適宜変
更可能である。また、マイクロプロセッサにおけるバス
権獲得及び解放に対する自由度は、図1のマイクロプロ
セッサ1ではマスタモードとスレーブモードの双方で得
られるようになっているが、マスタモード又はスレーブ
モードの何れか一方だけで得られるようにバス調停回路
を構成することも可能である。また、マルチプロセッサ
システムに含まれるマイクロプロセッサの数は2個に限
定されず、3個以上であってもよい。また、バス権を獲
得出来るスレーブとしてDMAC(Direct Memory Acce
ss Controller)等を共通バスに接続することも当然可
能である。スレーブが複数存在する場合には、例えば、
スレーブ相互間のバス調停のための外部回路を利用し
て、バス権解放要求信号とバス権解放承認信号とをマス
タプロセッサとの間でやりとりすることになる。本発明
は、少なくとも、ハンドシェークでバス権の要求と解放
を行う機能を備えた条件のものに広く適用することがで
きる。
For example, bus right release permission control information BREQ
The registers 21 and 22 storing the EN and the master / slave mode control information MSMD are not limited to being built in the bus controller, and may be arranged anywhere in the microprocessor. In the above embodiment, the mode signal and the reset signal are directly input to the bus controller to initialize the registers 21 and 22. However, these signals are supplied to the mode control logic of the microprocessor, where the signals are supplied. It is also possible to initialize the registers 21 and 22 by the generated internal control signal. Further, the built-in function modules of the microprocessor and the connection arrangement are not limited to the example of FIG. 1 and can be changed as appropriate. The degree of freedom for acquiring and releasing the bus right in the microprocessor can be obtained in both the master mode and the slave mode in the microprocessor 1 of FIG. 1, but only in one of the master mode and the slave mode. It is also possible to configure the bus arbitration circuit so as to obtain it. Further, the number of microprocessors included in the multiprocessor system is not limited to two, and may be three or more. Also, as a slave that can acquire the bus right, DMAC (Direct Memory Acce
It is of course possible to connect an ss Controller) to the common bus. If there are multiple slaves, for example,
By utilizing an external circuit for bus arbitration between slaves, a bus release request signal and a bus release acknowledgment signal are exchanged with the master processor. INDUSTRIAL APPLICABILITY The present invention can be widely applied to at least a condition having a function of requesting and releasing a bus right in a handshake.

【0050】[0050]

【発明の効果】本願において開示される発明のうち代表
的なものによって得られる効果を簡単に説明すれば下記
の通りである。
The effects obtained by typical ones of the inventions disclosed in the present application will be briefly described as follows.

【0051】すなわち、ハンドシェークによるバス権の
獲得と解放に対してマクロプロセッサに自由度を持たせ
ることができる。特にそのような自由度はマイクロプロ
セッサ内蔵のCPUの動作プログラムで制御できる。
That is, the microprocessor can have a degree of freedom in acquiring and releasing the bus right by handshaking. In particular, such a degree of freedom can be controlled by an operation program of a CPU having a built-in microprocessor.

【0052】マイクロプロセッサが外部周辺回路の初期
化を担うとき、その初期化を完了するまで外部からのバ
ス権要求を無視できる。
When the microprocessor is responsible for the initialization of the external peripheral circuit, it can ignore the external bus request until the initialization is completed.

【0053】上記マイクロプロセッサを適用したマルチ
プロセッサシステムは、初期化を要する共有資源の初期
化完了前に当該共有資源が任意にアクセスされて誤動作
を生ずる虞を排除することができ、しかもそのためにシ
ステム上で特別な外部回路を構成したり、ソフトウェア
的にも処理を複雑化しなくても済むようにできる。
A multiprocessor system to which the above-mentioned microprocessor is applied can eliminate the possibility that the shared resource which is required to be initialized is arbitrarily accessed before the initialization is completed, thereby causing a malfunction. It is not necessary to configure a special external circuit on the above or to complicate the processing by software.

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

【図1】本発明の一例に係るマイクロプロセッサのブロ
ック図である。
FIG. 1 is a block diagram of a microprocessor according to an example of the present invention.

【図2】図1に示されるマイクロプロセッサを2個用い
たマルチプロセッサシステムのブロック図である。
FIG. 2 is a block diagram of a multiprocessor system using two microprocessors shown in FIG.

【図3】図2のマルチプロセッサシステムにおいてリセ
ットからその直後におけるマスタプロセッサの一例動作
フローチャートである。
3 is an example operation flowchart of a master processor immediately after reset in the multiprocessor system of FIG. 2;

【図4】図2のマルチプロセッサシステムにおいてリセ
ットからその直後におけるスレーブプロセッサの一例動
作フローチャートである。
4 is an example operation flowchart of a slave processor immediately after reset in the multiprocessor system of FIG. 2;

【図5】図1のマイクロプロセッサをマスタプロセッサ
とし、スレーブプロセッサとして別のマイクロプロセッ
サを用いたマルチプロセッサシステムのブロック図であ
る。
5 is a block diagram of a multiprocessor system using the microprocessor of FIG. 1 as a master processor and another microprocessor as a slave processor.

【図6】図1のマイクロプロセッサをスレーブプロセッ
サとし、マスタプロセッサとして別のマイクロプロセッ
サを用いたマルチプロセッサシステムのブロック図であ
る。
FIG. 6 is a block diagram of a multiprocessor system using the microprocessor of FIG. 1 as a slave processor and another microprocessor as a master processor.

【図7】図1とは別のマイクロプロプロセッサを用いた
マルチプロセッサシステムの一例ブロック図である。
FIG. 7 is a block diagram showing an example of a multiprocessor system using a microprocessor different from that of FIG. 1;

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

1 マイクロプロセッサ 3 CPU 9 バスコントローラ 20 バス調停回路 21 レジスタ BREQEN バス権解放許可制御情報 22 レジスタ MSMD マスタ・スレーブモード制御情報 RESET リセット信号 MD モード信号 BREQ バス権解放要求信号 BACK バス権解放承認信号 40 モード信号発生回路 41 ブートメモリ 44 シンクロナスDRAM Reference Signs List 1 microprocessor 3 CPU 9 bus controller 20 bus arbitration circuit 21 register BREQEN bus right release permission control information 22 register MSMD master / slave mode control information RESET reset signal MD mode signal BREQ bus right release request signal BACK bus right release approval signal 40 mode Signal generation circuit 41 Boot memory 44 Synchronous DRAM

───────────────────────────────────────────────────── フロントページの続き (72)発明者 中川 典夫 東京都小平市上水本町五丁目20番1号 株 式会社日立製作所半導体事業部内 ──────────────────────────────────────────────────の Continuing on the front page (72) Inventor Norio Nakagawa 5-2-1, Josuihonmachi, Kodaira-shi, Tokyo In the semiconductor division of Hitachi, Ltd.

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 フェッチした命令を実行するCPUを半
導体基板に含むマイクロプロセッサであって、このマイ
クロプロセッサの動作モードが初期的にバス権を有する
マスタモードか、必要に応じてバス権を獲得するスレー
ブモードかを決定するためのマスタ・スレーブモード制
御情報が設定される第1の記憶手段と、前記CPUによ
って書き換え可能にバス権解放許可制御情報が初期設定
される第2の記憶手段と、前記マスタ・スレーブモード
制御情報によってマスタモードが設定された状態におい
て、前記第2の記憶手段に設定された前記バス権解放許
可制御情報が非活性状態のとき、当該バス権解放許可制
御情報が活性状態に反転されるまで外部からのバス権解
放要求信号のアサートによるバス権解放要求を無効化す
るバス調停手段と、を有して成るものであることを特徴
とするマイクロプロセッサ。
1. A microprocessor including a CPU for executing a fetched instruction on a semiconductor substrate, wherein an operation mode of the microprocessor is initially a master mode having a bus right or acquiring a bus right as necessary. First storage means in which master / slave mode control information for determining the slave mode is set; second storage means in which bus right release permission control information is initialized to be rewritable by the CPU; In a state where the master mode is set by the master / slave mode control information, when the bus right release permission control information set in the second storage means is in an inactive state, the bus right release permission control information is in an active state. Bus arbitration means for invalidating a bus right release request by asserting a bus right release request signal from outside until inverted. A microprocessor comprising: a microprocessor;
【請求項2】 前記第1の記憶手段はマイクロプロセッ
サのリセット動作に応じてマスタ・スレーブモード制御
情報が初期設定され、前記第2の記憶手段は、マスタ・
スレーブ制御情報によるマスタモードの設定に呼応して
非活性状態のバス権解放許可制御情報が初期設定される
ものであることを特徴とする請求項1記載のマイクロプ
ロセッサ。
2. The first storage means has master / slave mode control information initialized in response to a reset operation of a microprocessor, and the second storage means has a master / slave mode control information.
2. The microprocessor according to claim 1, wherein the inactive bus right release permission control information is initialized in response to the setting of the master mode by the slave control information.
【請求項3】 フェッチした命令を実行するCPUを半
導体基板に含むマイクロプロセッサであって、このマイ
クロプロセッサの動作モードが初期的にバス権を有する
マスタモードか、必要に応じてバス権を獲得するスレー
ブモードかを決定するためのマスタ・スレーブモード制
御情報が設定される第1の記憶手段と、前記CPUによ
って書き換え可能にバス権解放許可制御情報が初期設定
される第2の記憶手段と、前記マスタ・スレーブモード
制御情報によってスレーブモードが設定された状態にお
いて、前記第2の記憶手段に設定された前記バス権解放
許可制御情報が活性状態のとき、当該バス権解放許可制
御情報が非活性状態に反転されるまで外部からのバス権
解放承認信号のネゲートによるバス権解放要求を無効化
するバス調停手段と、を有して成るものであることを特
徴とするマイクロプロセッサ。
3. A microprocessor including a CPU for executing a fetched instruction on a semiconductor substrate, wherein the operation mode of the microprocessor is a master mode having an initial bus right or a bus right is acquired as necessary. First storage means in which master / slave mode control information for determining the slave mode is set; second storage means in which bus right release permission control information is initialized to be rewritable by the CPU; In a state where the slave mode is set by the master / slave mode control information, when the bus right release permission control information set in the second storage means is in an active state, the bus right release permission control information is in an inactive state. Bus arbitration means for invalidating a bus right release request from negating an external bus right release acknowledge signal until inverted. A microprocessor, comprising: a microprocessor;
【請求項4】 前記第1の記憶手段はマイクロプロセッ
サのリセット動作に応じてマスタ・スレーブモード制御
情報が初期設定され、前記第2の記憶手段は、マスタ・
スレーブ制御情報によるスレーブモードの設定に呼応し
て活性状態のバス権解放許可制御情報が初期設定される
ものであることを特徴とする請求項2記載のマイクロプ
ロセッサ。
4. The first storage means has master / slave mode control information initialized in response to a reset operation of a microprocessor, and the second storage means has master / slave mode control information.
3. The microprocessor according to claim 2, wherein the active bus right release permission control information is initialized in response to the setting of the slave mode by the slave control information.
【請求項5】 フェッチした命令を実行するCPUを半
導体基板に含むマイクロプロセッサであって、このマイ
クロプロセッサの動作モードが初期的にバス権を有する
マスタモードか、必要に応じてバス権を獲得するスレー
ブモードかを決定するためのマスタ・スレーブモード制
御情報が設定される第1の記憶手段と、前記CPUによ
って書き換え可能にバス権解放許可制御情報が初期設定
される第2の記憶手段と、前記マスタ・スレーブモード
制御情報によってマスタモードが設定された状態におい
て前記第2の記憶手段に設定された前記バス権解放許可
制御情報が非活性状態のとき当該バス権解放許可制御情
報が活性状態に反転されるまで外部からのバス権解放要
求信号のアサートによるバス権解放要求を無効化し、ま
た、前記マスタ・スレーブモード制御情報によってスレ
ーブモードが設定された状態において前記第2の記憶手
段に設定された前記バス権解放許可制御情報が活性状態
のとき当該バス権解放許可制御情報が非活性状態に反転
されるまで外部からのバス権解放承認信号のネゲートに
よるバス権解放要求を無効化するバス調停手段と、を有
して成るものであることを特徴とするマイクロプロセッ
サ。
5. A microprocessor including a CPU for executing a fetched instruction on a semiconductor substrate, wherein an operation mode of the microprocessor is initially a master mode having a bus right or acquiring a bus right as necessary. First storage means in which master / slave mode control information for determining the slave mode is set; second storage means in which bus right release permission control information is initialized to be rewritable by the CPU; When the bus right release permission control information set in the second storage means is in an inactive state in a state where the master mode is set by the master / slave mode control information, the bus right release permission control information is inverted to an active state. Until the bus release request signal is asserted by the external device until the bus release request signal is asserted. When the bus right release permission control information set in the second storage means is in the active state in a state where the slave mode is set by the slave mode control information, the bus right release permission control information is inverted to the inactive state. A bus arbitration means for invalidating a bus right release request by negating an external bus right release approval signal.
【請求項6】 前記第1の記憶手段はマイクロプロセッ
サのリセット動作に応じてモード信号に従いマスタ・ス
レーブモード制御情報が初期設定され、前記第2の記憶
手段は、マスタ・スレーブ制御情報によるマスタモード
の設定に呼応して非活性状態のバス権解放許可制御情報
が初期設定され、マスタ・スレーブ制御情報によるスレ
ーブモードの設定に呼応して活性状態のバス権解放許可
制御情報が初期設定されるものであることを特徴とする
請求項5記載のマイクロプロセッサ。
6. The first storage means initializes master / slave mode control information according to a mode signal in response to a reset operation of a microprocessor, and the second storage means stores a master mode based on master / slave control information. The inactive bus right release permission control information is initialized in response to the setting of (1), and the active bus right release permission control information is initialized in response to the setting of the slave mode by the master / slave control information. The microprocessor according to claim 5, wherein
【請求項7】 請求項6記載の複数個のマイクロプロセ
ッサと、それらマイクロプロセッサが共通結合されるバ
スと、当該バスに結合され初期化動作が必要とされる周
辺回路と、前記複数個のマイクロプロセッサの何れか一
つのマイクロプロセッサにマスタモードを設定し、残り
のマイクロプロセッサにスレーブモードを設定するモー
ド信号の発生手段と、前記周辺回路を初期設定するため
に前記マスタモードが設定されるマイクロプロセッサに
よって実行される動作プログラムを格納するメモリと、
を備えて成るものであることを特徴とするマルチプロセ
ッサシステム。
7. A plurality of microprocessors according to claim 6, a bus commonly connected to the microprocessors, a peripheral circuit connected to the bus and requiring an initialization operation, and the plurality of microprocessors. A mode signal generating means for setting a master mode for any one of the processors and setting a slave mode for the remaining microprocessors, and a microprocessor for setting the master mode to initialize the peripheral circuits A memory for storing an operation program executed by the
A multiprocessor system characterized by comprising:
【請求項8】 フェッチした命令を実行するCPUを半
導体基板に含むマイクロプロセッサであって、このマイ
クロプロセッサの動作モードが初期的にバス権を有する
マスタモードか、必要に応じてバス権を獲得するスレー
ブモードかを決定するためのマスタ・スレーブモード制
御情報が設定される第1の記憶手段と、前記第1の記憶手
段に設定すべきマスタ・スレーブモード制御情報をリセ
ット動作時に初期的に決定するためのモード端子と、前
記第1の記憶手段に初期的に設定されるマスタ・スレー
ブモード制御情報がマスタモードを示す場合にバス権解
放許可制御情報が非活性状態に初期設定され、設定され
たバス権解放許可制御情報がCPUによって書き換え可
能な第2の記憶手段と、マスタモードのときは外部から
のバス権解放要求信号を入力すると共に外部へのバス権
解放承認信号を出力し、スレーブモードのときはバス権
解放要求信号を外部に出力すると共に外部からのバス権
解放承認信号を入力し、マスタモードのときに前記バス
権解放許可制御情報が非活性状態にされている場合には
外部からの前記バス権解放要求信号のアサートによるバ
ス権解放要求を無効化するバス調停手段と、を含んで成
るものであることを特徴とするマイクロプロセッサ。
8. A microprocessor including a CPU for executing a fetched instruction on a semiconductor substrate, wherein the operation mode of the microprocessor is initially a master mode having a bus right or acquiring a bus right as necessary. First storage means in which master / slave mode control information for determining whether the mode is the slave mode is set, and master / slave mode control information to be set in the first storage means is initially determined during a reset operation. A mode terminal for, and when the master / slave mode control information initially set in the first storage means indicates the master mode, the bus right release permission control information is initially set to an inactive state and set. Second storage means in which the bus right release permission control information can be rewritten by the CPU, and a bus right release request signal from an external device in the master mode. Inputs a bus release approval signal to the outside and outputs a bus release approval signal to the outside. In the slave mode, outputs a bus release request signal to the outside and inputs an external bus release approval signal. Bus arbitration means for invalidating a bus right release request by asserting the bus right release request signal from outside when the right release permission control information is in an inactive state. Microprocessor characterized.
【請求項9】 フェッチした命令を実行するCPUを半
導体基板に含むマイクロプロセッサであって、このマイ
クロプロセッサの動作モードが初期的にバス権を有する
マスタモードか、必要に応じてバス権を獲得するスレー
ブモードかを決定するためのマスタ・スレーブモード制
御情報が設定される第1の記憶手段と、前記第1の記憶手
段に設定すべきマスタ・スレーブモード制御情報をリセ
ット動作時に初期的に決定するためのモード端子と、前
記第1の記憶手段に初期的に設定されるマスタ・スレー
ブモード制御情報がスレーブモードを示す場合にバス権
解放許可制御情報が活性状態に初期設定され、設定され
たバス権解放許可制御情報がCPUによって書き換え可
能な第2の記憶手段と、マスタモードのときは外部から
のバス権解放要求信号を入力すると共に外部へのバス権
解放承認信号を出力し、スレーブモードのときは外部か
らのバス権解放承認信号を入力すると共に外部へのバス
権解放要求信号を出力し、スレーブモードのときに前記
バス権解放許可制御情報が活性状態の場合には外部から
の前記バス権解放承認信号のネゲートに拘わらず現在獲
得しているバス権を維持するバス調停手段と、を含んで
成るものであることを特徴とするマイクロプロセッサ。
9. A microprocessor including a CPU for executing a fetched instruction on a semiconductor substrate, wherein the operation mode of the microprocessor is initially a master mode having a bus right or acquiring a bus right as necessary. First storage means in which master / slave mode control information for determining whether the mode is the slave mode is set, and master / slave mode control information to be set in the first storage means is initially determined during a reset operation. A mode terminal for setting the bus right release permission control information to an active state when the master / slave mode control information initially set in the first storage means indicates a slave mode; A second storage unit whose right release permission control information can be rewritten by the CPU, and a bus right release request signal from an external device in the master mode. The bus right release acknowledge signal is output to the outside and the bus right release acknowledge signal is output to the outside.In the slave mode, an external bus right release acknowledge signal is input and the bus right release request signal is output to the outside. Bus arbitration means for maintaining the currently acquired bus right regardless of whether the bus right release approval signal is negated from the outside when the bus right release permission control information is active. A microprocessor.
【請求項10】 請求項6記載の複数個のマイクロプロ
セッサと、それらマイクロプロセッサが共通結合される
バスと、当該バスに結合され初期化動作を必要とする周
辺回路と、前記複数個のマイクロプロセッサが並列的に
リセットされるとき、何れか一つのマイクロプロセッサ
にマスタモードを設定し、残りのマイクロプロセッサに
スレーブモードを設定するモード信号の発生手段と、前
記周辺回路を初期設定するために前記マスタモードが設
定されるマイクロプロセッサが実行するための動作プロ
グラムを格納するメモリと、を備えて成るものであるこ
とを特徴とするマルチプロセッサシステム。
10. A plurality of microprocessors according to claim 6, a bus commonly connected to the microprocessors, a peripheral circuit connected to the bus and requiring an initialization operation, and the plurality of microprocessors. Are reset in parallel, a mode signal generating means for setting a master mode to any one of the microprocessors and setting a slave mode to the remaining microprocessors, and the master for initializing the peripheral circuits. A memory for storing an operation program to be executed by a microprocessor in which a mode is set, the multiprocessor system comprising:
JP31323996A 1996-11-25 1996-11-25 Microprocessor and multiprocessor system Expired - Fee Related JP3795978B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31323996A JP3795978B2 (en) 1996-11-25 1996-11-25 Microprocessor and multiprocessor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31323996A JP3795978B2 (en) 1996-11-25 1996-11-25 Microprocessor and multiprocessor system

Publications (2)

Publication Number Publication Date
JPH10154124A true JPH10154124A (en) 1998-06-09
JP3795978B2 JP3795978B2 (en) 2006-07-12

Family

ID=18038798

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31323996A Expired - Fee Related JP3795978B2 (en) 1996-11-25 1996-11-25 Microprocessor and multiprocessor system

Country Status (1)

Country Link
JP (1) JP3795978B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007026033A (en) * 2005-07-15 2007-02-01 Fujitsu Ltd Semiconductor device and automatic decision method for operation mode of semiconductor device
CN112486740A (en) * 2020-11-27 2021-03-12 苏州浪潮智能科技有限公司 Master-slave relationship confirmation method and system among multiple controllers and related device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007026033A (en) * 2005-07-15 2007-02-01 Fujitsu Ltd Semiconductor device and automatic decision method for operation mode of semiconductor device
CN112486740A (en) * 2020-11-27 2021-03-12 苏州浪潮智能科技有限公司 Master-slave relationship confirmation method and system among multiple controllers and related device
CN112486740B (en) * 2020-11-27 2023-01-10 苏州浪潮智能科技有限公司 Master-slave relationship confirmation method and system among multiple controllers and related device

Also Published As

Publication number Publication date
JP3795978B2 (en) 2006-07-12

Similar Documents

Publication Publication Date Title
KR0185966B1 (en) Method and apparatus for independently resetting processors and cache controllers in multiple processor system
US4270167A (en) Apparatus and method for cooperative and concurrent coprocessing of digital information
US6463529B1 (en) Processor based system with system wide reset and partial system reset capabilities
US5642489A (en) Bridge between two buses of a computer system with a direct memory access controller with accessible registers to support power management
US5870602A (en) Multi-processor system with system wide reset and partial system reset capabilities
US7581054B2 (en) Data processing system
US6513094B1 (en) ROM/DRAM data bus sharing with write buffer and read prefetch activity
JP3136257B2 (en) Computer memory interface device
WO1996000940A1 (en) Pci to isa interrupt protocol converter and selection mechanism
US5553268A (en) Memory operations priority scheme for microprocessors
JPH10187642A (en) Microprocessor and multiprocessor system
US6490638B1 (en) General purpose bus with programmable timing
US5546567A (en) System for limiting change in bus clock frequency to duration of I/O operation upon completion signal
JPH05324348A (en) Single chip microcomputer
US6516378B1 (en) Microprocessor for controlling busses
US7310717B2 (en) Data transfer control unit with selectable transfer unit size
JP3795978B2 (en) Microprocessor and multiprocessor system
CN112181879B (en) APB interface module for DMA controller, DMA controller and chip
KR960003065B1 (en) Information processing apparatus
JP3323341B2 (en) Emulation processor and emulator equipped with it
JP3077807B2 (en) Microcomputer system
US20030041276A1 (en) Semiconductor device allowing control of clock supply to processor on a clock cycle basis
JP2001236305A (en) Semiconductor integrated circuit and data processor
JPS63298555A (en) Shared memory control system
JPH05242008A (en) Data processor

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050804

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050823

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051021

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060404

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060414

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090421

Year of fee payment: 3

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100421

Year of fee payment: 4

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100421

Year of fee payment: 4

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110421

Year of fee payment: 5

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110421

Year of fee payment: 5

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110421

Year of fee payment: 5

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120421

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120421

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130421

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140421

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees