JPH09330291A - Bus use arbitration circuit - Google Patents

Bus use arbitration circuit

Info

Publication number
JPH09330291A
JPH09330291A JP8173000A JP17300096A JPH09330291A JP H09330291 A JPH09330291 A JP H09330291A JP 8173000 A JP8173000 A JP 8173000A JP 17300096 A JP17300096 A JP 17300096A JP H09330291 A JPH09330291 A JP H09330291A
Authority
JP
Japan
Prior art keywords
bus
priority
bus master
power consumption
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.)
Granted
Application number
JP8173000A
Other languages
Japanese (ja)
Other versions
JP3557507B2 (en
Inventor
Takeshi Ichikawa
武志 市川
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP17300096A priority Critical patent/JP3557507B2/en
Publication of JPH09330291A publication Critical patent/JPH09330291A/en
Application granted granted Critical
Publication of JP3557507B2 publication Critical patent/JP3557507B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Bus Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To optimize priority corresponding to system structure by selecting whether or not the preceding priority is to be succeeded. SOLUTION: When the priority of respective bus masters 2, 3 and 4 is set by a round robbin type arbitration method, a power saving mode (PSM) (operating clock stop mode) is started. Afterwards, when operation is started again, usually, an initial state is recovered and the preferential use is set in any specified bus master. When a preferential PSM select signal is outputted, however, the preceding state is held and the preferential use is applied to the bus master, which is made most preferential just before, as it is.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、プロセッサバスを
介して接続された複数のバスマスタと、これらのバスマ
スタのプロセッサバス使用権を調停するアービトレーシ
ョンモジュールとを備え、特にラウンドロビン式の調停
法を採用した場合の優先順位決定の最適化を図ったバス
使用権調停回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention comprises a plurality of bus masters connected via a processor bus and an arbitration module for arbitrating the processor bus usage right of these bus masters, and particularly adopts a round robin type arbitration method. The present invention relates to a bus right-of-use arbitration circuit that optimizes priority determination in the case of performing

【0002】[0002]

【従来の技術】複数のバスマスタがプロセッサバスに接
続されてこれを使用する場合、バス使用権の調停はアー
ビトレーションモジュールが行う。プロセッサバスの使
用要求を複数のバスマスタが同時に出力し、これらが競
合した場合、予め設定された優先順に使用許可が行われ
る。この優先順位は固定的なものと浮動的なものとがあ
る。後者の調停法としてラウンドロビン式調停法が知ら
れている。この方法では、複数のバスマスタに対しその
調停が公平になるように周期的に優先順位を変更する。
従って、ある時点で優先順位が1位になったバスマスタ
は次の時点で優先順位が最下位となり、順に優先順位が
繰り上がって、その後再び優先順位が1位に戻る。
2. Description of the Related Art When a plurality of bus masters are connected to a processor bus and used, the arbitration module arbitrates the bus use right. When a plurality of bus masters simultaneously output processor bus usage requests and they conflict with each other, usage permission is granted in a preset priority order. This priority can be fixed or floating. The round-robin arbitration method is known as the latter arbitration method. In this method, the priority order is periodically changed so that the arbitration is fair to a plurality of bus masters.
Therefore, the bus master, which has become the first priority at a certain time, becomes the lowest priority at the next time, the priority is raised in order, and then the priority returns to the first again.

【0003】一方、マイクロコンピュータを使用するシ
ステムでは、電源が入っていてもプロセッサを使用しな
いような場合には、システムの消費電力低減のため動作
クロックを停止することが行われる。この低消費電力モ
ードの開始にあたっては、予めシステム各部に低消費電
力モード信号が出力され、各部でこれに対応する処理が
なされる。バス使用権調停回路においても、このような
モードに移行するような場合には予め回路の初期化を行
う。従って、再び動作クロックの出力が開始されて正常
モードに移る場合には、初期状態から改めてバス使用権
の調停を開始する。即ち、初期状態では常にある一定の
バスマスタを最優先とし、その状態から順に優先順位を
変更する処理に進む。
On the other hand, in a system using a microcomputer, when the processor is not used even when the power is on, the operation clock is stopped to reduce the power consumption of the system. At the start of the low power consumption mode, a low power consumption mode signal is output to each part of the system in advance, and each part performs a corresponding process. Also in the bus right arbitration circuit, when the mode shifts to such a mode, the circuit is initialized in advance. Therefore, when the output of the operation clock is started again to shift to the normal mode, the arbitration of the bus use right is started again from the initial state. That is, in the initial state, a certain bus master is always given the highest priority, and the process proceeds to the process of changing the priority order from that state.

【0004】[0004]

【発明が解決しようとする課題】ところで、上記のよう
な従来のバス使用権調停回路には次のような解決すべき
課題があった。上記のように従来のラウンドロビン式調
停法では、システムが低消費電力モードに移行し、その
低消費電力モードを終了して再び動作を開始した場合
に、常に初期状態となって一定のバスマスタに最初に優
先権が与えられてしまう。しかしながら、例えばこの低
消費電力モードへ移行する直前に実行していた処理を最
優先に開始したい場合がある。そのとき、そのバスマス
タが最初に優先権を与えられるという保証はない。
The conventional bus use right arbitration circuit as described above has the following problems to be solved. As described above, in the conventional round robin arbitration method, when the system shifts to the low power consumption mode, exits the low power consumption mode, and restarts operation, it always becomes the initial state and becomes a constant bus master. First, priority is given. However, for example, there are cases where it is desired to start the processing that was being executed immediately before shifting to the low power consumption mode with the highest priority. There is then no guarantee that the bus master will be given priority first.

【0005】また、ラウンドロビン式調停法では、予め
定められた一定の順番に優先順位が周期的に変更され
る。この変更順位や変更される周期等も予め設定された
固定的なもので、例えば何らかの緊急性のある処理を特
定のバスマスタに実行させようとする場合に、必ずしも
そのバスマスタがその時点で優先順位を最優先に設定さ
れているとは限らない。このようなランドロビン式調停
法において、優先順位の設定を要求に応じて柔軟に切り
換えることのできる自由度が要求されている。
Further, in the round robin type arbitration method, the priority order is periodically changed in a predetermined order. The order of change and the cycle of change are also fixed in advance. For example, when an urgent process is to be executed by a specific bus master, that bus master does not necessarily set the priority at that time. It is not always set as the highest priority. In such a land-robin arbitration method, there is a demand for a degree of freedom that enables flexible setting of priority settings.

【0006】[0006]

【課題を解決するための手段】本発明は以上の点を解決
するため次の構成を採用する。 〈構成1〉プロセッサバスを介して接続された複数のバ
スマスタと、これらのバスマスタのプロセッサバス使用
権を調停するアービトレーションモジュールとを備え、
このアービトレーションモジュールは、ラウンドロビン
式に各バスマスタの優先順位付けを行うとともに、シス
テムが低消費電力モードに移行して、その低消費電力モ
ードを終了したとき、低消費電力モードへの移行直前の
優先順位付けを承継するか、常に一定のバスマスタに最
初に優先権を与えるかを判定する判定回路を設けたこと
を特徴とするバス使用権調停回路。
The present invention employs the following structure to solve the above problems. <Configuration 1> A plurality of bus masters connected via a processor bus and an arbitration module that arbitrates the processor bus use right of these bus masters are provided.
This arbitration module prioritizes bus masters in a round-robin fashion, and prioritizes the transition to the low power consumption mode when the system enters and exits the low power consumption mode. A bus right-of-use arbitration circuit provided with a determination circuit for determining whether to inherit the ranking or to always give priority to a certain bus master first.

【0007】〈説明〉プロセッサバスを使用してデータ
等のアクセスを行う場合には、各バスマスタは、アービ
トレーションモジュールに対して予めバス使用要求を行
う。バス使用要求が競合したときは、アービトレーショ
ンモジュールは、予め設定した優先順位に従って、該当
するバスマスタにプロセッサバスの使用許可を与える。
ラウンドロビン式の調停方法では、周期的に優先順位を
変更する。低消費電力モードは、プロセッサを使用して
いないとき、低消費電力状態にするために選択されるモ
ードである。この低消費電力モードに移行するとき、ア
ービトレーションモジュールは初期状態にリセットされ
るから、低消費電力モードを終了すると、常に一定のバ
スマスタに最初に優先権を与えるように動作する。
<Explanation> When accessing data and the like using the processor bus, each bus master makes a bus use request in advance to the arbitration module. When the bus use requests conflict with each other, the arbitration module gives the use permission of the processor bus to the corresponding bus master according to the preset priority order.
In the round-robin arbitration method, the priority is changed periodically. The low power consumption mode is a mode that is selected to enter the low power consumption state when the processor is not used. When shifting to the low power consumption mode, the arbitration module is reset to the initial state. Therefore, when the low power consumption mode ends, the arbitration module always operates to give priority to a certain bus master first.

【0008】判定回路は、指定に従って、低消費電力モ
ードへの移行直前の優先順位付けを承継するように、例
えばそのリセットを阻止する。これにより、低消費電力
モードへの移行後、引き続き直前の処理を継続したいシ
ステムや、常に改めて最初から処理を行いたいシステム
のいずれにも対応でき、優先順位付けの最適化が図れ
る。
The decision circuit, for example, prevents the reset so as to inherit the prioritization just before the transition to the low power consumption mode according to the designation. As a result, it is possible to support both the system that wants to continue the immediately preceding process after the transition to the low power consumption mode and the system that always wants to perform the process again from the beginning, and optimize the prioritization.

【0009】〈構成2〉プロセッサバスを介して接続さ
れた複数のバスマスタと、これらのバスマスタのプロセ
ッサバス使用権を調停するアービトレーションモジュー
ルとを備え、このアービトレーションモジュールは、ラ
ウンドロビン式に各バスマスタの優先順位付けを行うと
ともに、システムが低消費電力モードに移行して、その
低消費電力モードを終了したとき、最初に優先権を与え
るように指定されたバスマスタを判定する判定回路を設
けたことを特徴とするバス使用権調停回路。
<Structure 2> A plurality of bus masters connected via a processor bus and an arbitration module for arbitrating the processor bus use right of these bus masters are provided, and this arbitration module gives priority to each bus master in a round robin manner. In addition to performing ranking, when the system shifts to the low power consumption mode and ends the low power consumption mode, a determination circuit for determining the bus master designated to give priority first is provided. And a bus right arbitration circuit.

【0010】〈説明〉アービトレーションモジュールは
低消費電力モードを終了し、任意のバスマスタが指定さ
れているとき、そのバスマスタに最初に優先権を与え
る。このように自由な指定ができれば、優先順位付けの
いっそうの最適化が図れる。
<Explanation> The arbitration module ends the low power consumption mode, and when an arbitrary bus master is designated, the bus master is first given priority. If such free designation is possible, further optimization of the prioritization can be achieved.

【0011】〈構成3〉プロセッサバスを介して接続さ
れた複数のバスマスタと、これらのバスマスタのプロセ
ッサバス使用権を調停するアービトレーションモジュー
ルとを備え、このアービトレーションモジュールは、ラ
ウンドロビン式に各バスマスタの優先順位付けを行うと
ともに、所定の割り込み信号が入力したとき、予めその
割り込み信号に対応させて指定されたバスマスタに対し
て、優先権を与えることを特徴とするバス使用権調停回
路。
<Structure 3> A plurality of bus masters connected via a processor bus and an arbitration module for arbitrating the processor bus use right of these bus masters are provided, and this arbitration module gives priority to each bus master in a round robin manner. A bus use right arbitration circuit, which prioritizes a bus master designated in advance when a predetermined interrupt signal is input, while performing ranking.

【0012】〈説明〉ラウンドロビン式に各バスマスタ
に順番に優先権を与えて処理をすすめている場合に、例
えばシステムに重大な影響を与えるような事態を知らせ
る割り込みがあると、これまでの順番を無視しても、特
定のバスマスタに優先権を与えたい。そこで、アービト
レーションモジュールがその割り込み信号を受け入れ
て、優先順位を強制的に入れ換えるようにした。所定の
割り込み信号の原因は任意でよい。また、割り込み信号
が入力したら、どのバスマスタに優先権を与えるかは、
予め決めておく。割り込み信号線が複数あるときは、各
割り込み信号に対応させて優先権を与えるバスマスタを
指定しておけばよい。これにより、外部割り込みによっ
て、ラウンドロビン式の優先順位を任意に変更すること
ができ、制御の自由度が増大する。
<Explanation> When priority is given to each bus master in order in a round-robin manner and processing is performed, if there is an interrupt for notifying a situation that seriously affects the system, the previous order will be applied. I want to give priority to a specific bus master even if I ignore. Therefore, the arbitration module accepts the interrupt signal and forcibly switches the priority order. The cause of the predetermined interrupt signal may be arbitrary. Also, when an interrupt signal is input, which bus master is given priority is
Decide in advance. When there are a plurality of interrupt signal lines, it is sufficient to designate a bus master which gives priority to each interrupt signal. As a result, the priority of the round robin method can be arbitrarily changed by the external interrupt, and the degree of freedom of control is increased.

【0013】〈構成4〉構成3において、割り込み信号
を任意のタイミングでマスクするマスク回路を設けたこ
とを特徴とするバス使用権調停回路。
<Structure 4> A bus right arbitration circuit according to Structure 3, further comprising a mask circuit for masking an interrupt signal at an arbitrary timing.

【0014】〈説明〉割り込み信号による優先順位の変
更制御をすべき場合と、そうしないでよい場合とがあ
る。そこで、割り込み信号をアービトレーションモジュ
ール回路に入力するためのライン中にマスク回路を設け
て、自由に割り込み信号の無効化を図ることができるよ
うにした。こうして、様々なシステムに柔軟に対応でき
る。
<Explanation> In some cases, priority order change control by an interrupt signal should be performed, and in other cases, it may not be necessary. Therefore, a mask circuit is provided in the line for inputting the interrupt signal to the arbitration module circuit so that the interrupt signal can be invalidated freely. In this way, various systems can be flexibly dealt with.

【0015】[0015]

【発明の実施の形態】以下、本発明の実施の形態を具体
例を用いて説明する。 〈具体例1〉図1は、具体例1のバス使用権調停回路を
示すブロック図である。この回路は、アービトレーショ
ンモジュール1がプロセッサバス11に接続された複数
のバスマスタ2,3,4のバス使用権を調停するよう構
成されたものである。各バスマスタ2,3,4からは、
プロセッサバス要求信号(NAREQ)5,7,9がア
ービトレーションモジュール1に対して出力され、アー
ビトレーションモジュール1はいずれかのバスマスタに
対しプロセッサバス使用許可信号(NAACK)6また
は8または10を出力する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to specific examples. <First Specific Example> FIG. 1 is a block diagram showing a bus right-of-use arbitration circuit of a first specific example. This circuit is configured such that the arbitration module 1 arbitrates the bus use right of a plurality of bus masters 2, 3, 4 connected to the processor bus 11. From each bus master 2, 3, 4
Processor bus request signals (NAREQ) 5, 7, 9 are output to the arbitration module 1, and the arbitration module 1 outputs a processor bus use permission signal (NAACK) 6 or 8 or 10 to any bus master.

【0016】動作クロック(CLK)12はこれら全て
のモジュールに対し供給されている。また、アービトレ
ーションモジュール1には低消費電力モード信号(PS
M)13と、PSM優先セレクト信号(PSMSET)
15とが入力するように構成されている。このアービト
レーションモジュール1は、ラウンドロビン式の調停法
によりバスマスタ2,3,4に対するプロセッサバス1
1の使用権調停を行っている。また、動作クロック12
と低消費電力モード信号13、PSM優先セレクト信号
15はいずれも、図示しない上位のマイクロコントロー
ラから送られてくるものとする。
The operation clock (CLK) 12 is supplied to all of these modules. In addition, the arbitration module 1 has a low power consumption mode signal (PS
M) 13 and PSM priority select signal (PSMSET)
15 and 15 are configured to be input. The arbitration module 1 is a processor bus 1 for bus masters 2, 3 and 4 by a round robin type arbitration method.
1 is arbitrating the right of use. Also, the operation clock 12
It is assumed that the low power consumption mode signal 13 and the PSM priority select signal 15 are sent from a higher-order microcontroller (not shown).

【0017】図2には、具体例1のアービトレーション
モジュールの内部回路を示す。図1に示したアービトレ
ーションモジュール1は、この図に示すように判定回路
17及び制御回路14から構成されている。判定回路1
7には2個のフリップフロップ(F/F)31,32
と、オア回路33とが設けられている。各フリップフロ
ップ31,32は、いずれもD端子に入力した信号を1
クロックだけ保持し、Q端子に出力するよう構成されて
いる。この制御は動作クロック(CLK)12によって
行われる。なお、フリップフロップ32は低消費電力モ
ード信号13によって信号の出力を制御される。このた
めにこの信号をイネーブル端子ENに受け入れている。
オア回路33はフリップフロップ31の出力とフリップ
フロップ32の出力を受け入れて、これらをモード決定
信号(PSMOUT)16として制御回路14に向け出
力するよう構成されている。
FIG. 2 shows the internal circuit of the arbitration module of the first embodiment. The arbitration module 1 shown in FIG. 1 is composed of a determination circuit 17 and a control circuit 14 as shown in this figure. Judgment circuit 1
7 has two flip-flops (F / F) 31, 32
And an OR circuit 33 are provided. Each of the flip-flops 31 and 32 outputs the signal input to the D terminal to 1
Only the clock is held and output to the Q terminal. This control is performed by the operation clock (CLK) 12. The output of the flip-flop 32 is controlled by the low power consumption mode signal 13. For this reason, this signal is received at the enable terminal EN.
The OR circuit 33 is configured to receive the output of the flip-flop 31 and the output of the flip-flop 32 and output them as the mode determination signal (PSMOUT) 16 to the control circuit 14.

【0018】制御回路14の構成は従来のものとは変わ
るところはなく、動作クロック12を受け入れてそのタ
イミングでプロセッサバス要求信号5,7,9のいずれ
かに対する使用許可信号6,8,10を出力する構成と
なっている。この制御回路14は、モード決定信号16
が入力すると一旦調停動作を停止し、初期化を行って、
動作クロック12が再入力したときその初期状態から再
び調停を開始する。
The structure of the control circuit 14 is not different from that of the conventional one, that is, the operation clock 12 is received, and the use permission signals 6, 8, and 10 for the processor bus request signals 5, 7, and 9 are received at that timing. It is configured to output. The control circuit 14 controls the mode decision signal 16
When is input, the arbitration operation is temporarily stopped, initialization is performed,
When the operation clock 12 is input again, arbitration is started again from its initial state.

【0019】図3には、制御回路14の具体的な内部回
路を示す。この回路を簡単な機能ブロックで表すと、例
えば優先順位設定カウンタ35とゲート36,37,3
8とで構成される。図に示すように、プロセッサバス要
求信号5,7,9はそれぞれゲート36,37,38に
入力する。優先順位設定カウンタ35は、いずれかのバ
スマスタに優先権を与えるようにカウント値を定めてゲ
ート36,37,38に向けて出力する。例えば、バス
マスタ2に優先権が与えられる場合、ゲート36のみが
開放され、ゲート37,38は閉じたままとなる。その
結果、プロセッサバス要求信号5に応答してプロセッサ
バス信号許可信号6のみがアサートされる。優先順位設
定カウンタ35は所定のタイミングでカウントアップし
て優先順位を切り換える。低消費電力モードではモード
決定信号16が優先順位決定カウンタをリセットして初
期化する。
FIG. 3 shows a specific internal circuit of the control circuit 14. If this circuit is represented by a simple functional block, for example, a priority setting counter 35 and gates 36, 37, 3
8 and. As shown, processor bus request signals 5, 7, 9 are input to gates 36, 37, 38, respectively. The priority setting counter 35 determines a count value so as to give priority to one of the bus masters, and outputs it to the gates 36, 37 and 38. For example, when priority is given to the bus master 2, only the gate 36 is opened and the gates 37 and 38 remain closed. As a result, only the processor bus signal enable signal 6 is asserted in response to the processor bus request signal 5. The priority setting counter 35 counts up at a predetermined timing to switch the priority. In the low power consumption mode, the mode determination signal 16 resets and initializes the priority determination counter.

【0020】図4には、このようなラウンドロビン式の
基本的な調停法説明図を示す。この例では、バスマスタ
(BM)2,3,4に対し太い実線の矢印の順番で代わ
る代わる優先順位が与えられるものとする。即ち、通常
動作の際にはまずバスマスタ2に優先権が与えられ、そ
の後所定のタイミングでバスマスタ3、バスマスタ4と
いうように順に優先権が与えられ周期的に優先順位が切
り換えられる。ここで、例えばバスマスタ2がプロセッ
サバス使用権を持っていて、いったん低消費電力モード
に移行したとする。この場合に、上記のように初期化が
行われると、予め設定した初期状態ではバスマスタ2に
初めに優先権が与えられることから、動作再開後はその
ままバスマスタ2が優先権を持つ。一方、バスマスタ3
がプロセッサバス使用権を持っていて低消費電力モード
に移行した場合には、動作が再開されると優先権は初期
状態のバスマスタ2に移る。バスマスタ4がプロセッサ
バス使用権を持っていて低消費電力モードに移行した場
合にも優先権はバスマスタ2に戻って動作が再開され
る。
FIG. 4 shows an explanatory diagram of such a basic round robin arbitration method. In this example, it is assumed that the bus masters (BMs) 2, 3, and 4 are given alternate priorities in the order of thick solid arrows. That is, during the normal operation, the bus master 2 is first given the priority, and then the bus master 3 and the bus master 4 are given the priority at a predetermined timing, and the priority is switched periodically. Here, for example, it is assumed that the bus master 2 has the right to use the processor bus and once enters the low power consumption mode. In this case, if the initialization is performed as described above, the bus master 2 is given the priority right in the initial state set in advance, so that the bus master 2 has the priority right after the operation is restarted. On the other hand, bus master 3
Has the right to use the processor bus and shifts to the low power consumption mode, the priority shifts to the bus master 2 in the initial state when the operation is restarted. Even when the bus master 4 has the processor bus use right and shifts to the low power consumption mode, the priority is returned to the bus master 2 and the operation is restarted.

【0021】一方、具体例1の構成によれば、このよう
に常にバスマスタ2に対し優先権が戻る状態と、直前の
状態即ち低消費電力モードに移行する直前に優先権を持
っていたバスマスタが、動作再開後その優先権を承継す
るといった状態の選択が可能となる。
On the other hand, according to the configuration of the specific example 1, the state where the priority is always returned to the bus master 2 and the bus master which has the priority immediately before the transition to the immediately previous state, that is, the low power consumption mode, is performed. It is possible to select the status such that the priority is succeeded after the operation is restarted.

【0022】図5には、具体例1の優先順位変化説明図
を示す。図の(a)に示すように、通常動作時では優先
順位がBM2,BM3,BM4,BM2,BM3,BM
4というように変化するものとする。ここで、本発明に
おいては例えば(b)に示すように、BM4がプロセッ
サバス使用権を持っていて低消費電力モードに移行した
ときは、優先順位を非承継の場合には低消費電力モード
に移行したとき動作を再開すると、再びBM2,BM
3,BM4という優先順位の設定が行われる。一方、直
前の動作を承継する場合にはBM4,BM2,BM3と
いうように使用権が移り、低消費電力モードに移行して
動作を再開した場合、BM4に最初に優先権が与えられ
る。
FIG. 5 is an explanatory diagram of the priority order change of the first specific example. As shown in (a) of the figure, during normal operation, the priority order is BM2, BM3, BM4, BM2, BM3, BM.
4 and so on. Here, in the present invention, for example, as shown in (b), when the BM 4 has the processor bus use right and shifts to the low power consumption mode, when the priority order is not inherited, the low power consumption mode is set. When the operation is restarted at the time of the transition, BM2 and BM are restarted.
The priority order of 3, BM4 is set. On the other hand, when the immediately preceding operation is succeeded, the usage right is transferred to BM4, BM2, and BM3, and when the operation is restarted by shifting to the low power consumption mode, BM4 is first given the priority.

【0023】(c)はBM2がプロセッサバス使用権を
持っていて低消費電力モードに移行したときの順位変化
を示し、(d)はBM3がプロセッサバス使用権を持っ
ていて低消費電力モードに移行したときの順位変化を示
す。いずれの場合にも、低消費電力モードに移行し動作
を再開したときには、動作承継の場合、直前にプロセッ
サバス使用権を持っていたBM2やBM3が引き続いて
優先権を持つ。以上のような承継と非承継の動作は、P
SM優先セレクト信号15(図1)によって選択され
る。図2に示す判定回路17の具体的な動作を図6及び
図7を用いて説明する。
(C) shows the order change when the BM2 has the processor bus usage right and shifts to the low power consumption mode, and (d) shows the BM3 has the processor bus usage right and shifts to the low power consumption mode. Shows the ranking changes when transitioning. In either case, when the operation is resumed when the mode is changed to the low power consumption mode and the operation is succeeded, the BM2 and BM3 which have the right to use the processor bus immediately before have the priority. The operation of succession and non-succession as described above is
It is selected by the SM priority select signal 15 (FIG. 1). A specific operation of the determination circuit 17 shown in FIG. 2 will be described with reference to FIGS. 6 and 7.

【0024】図6は、優先順位非承継時の動作モードタ
イムチャートである。まず、図6(a)に示すように動
作クロック12が各モジュールに供給されているものと
する。ここで、時刻t1に低消費電力モード信号13が
アサートされたとする。なお、この低消費電力モード信
号13は“1”のとき通常状態、“0”のとき低消費電
力モード状態を示すものとする。
FIG. 6 is an operation mode time chart when priority is not inherited. First, it is assumed that the operation clock 12 is supplied to each module as shown in FIG. Here, it is assumed that the low power consumption mode signal 13 is asserted at time t1. The low power consumption mode signal 13 indicates a normal state when "1" and a low power consumption mode state when "0".

【0025】ここで、図6に示す状態では、(c)に示
すように、PSM優先セレクト信号15はローレベル
“0”に維持されたままである。この信号は“0”のと
きは優先順位非承継を指示し、“1”のときは優先順位
を直前の状態から承継する旨を指示する。時刻t1に低
消費電力モード信号13がアサートされ、図2に示すフ
リップフロップ31にゼロがセットされると、次のクロ
ックの立ち上がり時にフリップフロップ31から“0”
の信号がオア回路33に向けて出力される。一方、フリ
ップフロップ32のイネーブル端子ENには低消費電力
モード信号13が入力するから、既に“0”がセットさ
れたフリップフロップ32の出力が時刻t2のタイミン
グでオア回路33に向け出力される。この内容は“0”
である。その結果、モード決定信号16の内容は“0”
となって制御回路14に送り込まれる。これは当初から
低消費電力モード信号13を制御回路14に直接入力し
たのと同様の状態である。即ち、これによって制御回路
14はモード決定信号16の入力したタイミングで初期
化を行い、先に説明した通り、一定の、例えばバスマス
タ2を常に最優先にして動作を再開する。
Here, in the state shown in FIG. 6, the PSM priority select signal 15 remains at the low level "0" as shown in (c). When this signal is "0", it indicates that the priority order is not inherited, and when it is "1", it indicates that the priority order is to be inherited from the previous state. When the low power consumption mode signal 13 is asserted at time t1 and the flip-flop 31 shown in FIG. 2 is set to zero, the flip-flop 31 outputs “0” at the next clock rise.
Is output to the OR circuit 33. On the other hand, since the low power consumption mode signal 13 is input to the enable terminal EN of the flip-flop 32, the output of the flip-flop 32 in which "0" is already set is output to the OR circuit 33 at the timing of time t2. This content is "0"
It is. As a result, the content of the mode decision signal 16 is "0".
Is sent to the control circuit 14. This is the same state as when the low power consumption mode signal 13 was directly input to the control circuit 14 from the beginning. That is, thereby, the control circuit 14 initializes at the timing when the mode decision signal 16 is input, and as described above, the constant, for example, the bus master 2 is always given the highest priority and the operation is restarted.

【0026】図7は、優先順位承継時の動作タイムチャ
ートである。図7の(b)に示すように、時刻t2に低
消費電力モード信号13がアサートされる前に、(c)
に示すように時刻t1に予めPSM優先セレクト信号1
5が“0”から“1”にアサートされていると、図2に
示したフリップフロップ32に内容が“1”の信号が取
り込まれる。そして、時刻t2に低消費電力モード信号
13が“1”から“0”にアサートされると、フリップ
フロップ32の出力が許可され、次のタイミングの時刻
t3でフリップフロップ32の出力する内容が“1”の
信号がオア回路33に入力する。その結果、低消費電力
モード信号13がアサートされても、フリップフロップ
32の出力によってモード決定信号16の内容が“1”
のままにされる。即ち、モード決定信号16は、図7
(d)に示すように低消費電力モード信号13の内容に
関わらず“1”のままとなる。その結果、図2に示す制
御回路14は低消費電力モードへの移行を知らされず、
直前の優先順位を維持したまま動作を停止する。そし
て、動作再開時には直前の優先権を持っていたバスマス
タに再び優先権が与えられる。
FIG. 7 is an operation time chart when the priority order is succeeded. As shown in (b) of FIG. 7, before the low power consumption mode signal 13 is asserted at time t2, (c)
As shown in, at time t1, PSM priority select signal 1
When 5 is asserted from "0" to "1", the flip-flop 32 shown in FIG. 2 fetches the signal having the content "1". Then, when the low power consumption mode signal 13 is asserted from "1" to "0" at time t2, the output of the flip-flop 32 is permitted, and the content output from the flip-flop 32 at the time t3 at the next timing is ". The 1 ″ signal is input to the OR circuit 33. As a result, even if the low power consumption mode signal 13 is asserted, the content of the mode determination signal 16 is "1" due to the output of the flip-flop 32.
Left untouched. That is, the mode decision signal 16 is as shown in FIG.
As shown in (d), it remains "1" regardless of the content of the low power consumption mode signal 13. As a result, the control circuit 14 shown in FIG. 2 is not notified of the transition to the low power consumption mode,
The operation is stopped while maintaining the previous priority. Then, when the operation is resumed, the bus master, which had the previous right, is given the right again.

【0027】〈具体例1の効果〉以上のように、具体例
1に示したアービトレーションモジュール1の内部に低
消費電力信号モード信号とPSM優先セレクト信号とを
受け入れて、PSM優先セレクト信号の内容に応じてモ
ード決定信号を出力する判定回路17を設けたので、低
消費電力モードへ移行した際のバスマスタの優先順位を
そのモード移行前の状態を承継するか、予め設定された
一定のバスマスタに優先順位を設定するか自由に選択で
きる。これによって、システム制御の自由度が増し、動
作の最適化を行うことができる。
<Effects of Concrete Example 1> As described above, the low power consumption signal mode signal and the PSM priority select signal are received inside the arbitration module 1 shown in the concrete example 1, and the contents of the PSM priority select signal are changed. Since the determination circuit 17 that outputs the mode determination signal is provided in response, the priority order of the bus master at the time of the transition to the low power consumption mode is inherited from the state before the mode transition, or the preset constant bus master is given priority. You can freely set the ranking. As a result, the degree of freedom in system control is increased, and the operation can be optimized.

【0028】〈具体例2〉図8には、具体例2のバス使
用権調停回路を示す。この回路は、図1に示した具体例
1の回路に対し新たにバスマスタセレクト信号(REQ
SEL)18を入力するように構成したものである。こ
のバスマスタセレクト信号18は、低消費電力モードを
解除した際のバスマスタの優先順位を任意に指定するた
めの信号である。即ち、バスマスタセレクト信号18が
“0”のとき、例えばバスマスタ2の優先順位を1番に
し、“1”のときバスマスタ3の優先順位を1番にし、
“2”のときバスマスタ4の優先順位を1番にする。な
お、PSM優先セレクト信号15の役割は具体例1と同
様である。
<Specific Example 2> FIG. 8 shows a bus use right arbitration circuit of a specific example 2. This circuit is different from the circuit of the concrete example 1 shown in FIG. 1 in that a bus master select signal (REQ) is newly added.
SEL) 18 is input. The bus master select signal 18 is a signal for arbitrarily designating the priority order of the bus master when the low power consumption mode is released. That is, when the bus master select signal 18 is "0", for example, the priority order of the bus master 2 is 1, and when it is "1", the priority order of the bus master 3 is 1.
When it is "2", the priority of the bus master 4 is set to 1. The role of the PSM priority select signal 15 is the same as in the first specific example.

【0029】図9には、これを実現するための具体例2
のアービトレーションモジュール内部回路を示す。図に
示すように、この判定回路17には、具体例1の図2に
示した回路に対し新たにフリップフロップ34を追加し
ている。このフリップフロップ34にはバスマスタセレ
クト信号(REQSEL)18が入力する。また、この
フリップフロップ34のイネーブル端子ENには低消費
電力モード信号13が入力する。このフリップフロップ
34はバスマスタセレクト信号18を受け入れて低消費
電力モード信号13が“0”のとき、動作クロック12
のタイミングに合わせてQ端子から格納していた信号を
出力する。その出力はセレクト信号(REQOUT)1
9となって制御回路14に入力する。その他の結線は既
に説明した具体例1の場合と同様である。
FIG. 9 shows a specific example 2 for realizing this.
2 shows an internal circuit of the arbitration module of FIG. As shown in the figure, in the decision circuit 17, a flip-flop 34 is newly added to the circuit shown in FIG. The bus master select signal (REQSEL) 18 is input to the flip-flop 34. The low power consumption mode signal 13 is input to the enable terminal EN of the flip-flop 34. The flip-flop 34 receives the bus master select signal 18, and when the low power consumption mode signal 13 is "0", the operation clock 12
The stored signal is output from the Q terminal according to the timing. The output is the select signal (REQOUT) 1
It becomes 9 and is input to the control circuit 14. Other connections are the same as in the case of the specific example 1 already described.

【0030】図10に、具体例2の回路の動作タイムチ
ャートを示す。図の(a)は動作クロック12、(b)
は低消費電力モード信号13、(c)はPSM優先セレ
クト信号15、(d)はモード決定信号16、(e)は
バスマスタセレクト信号18、(f)はセレクト信号1
9、(g),(h),(i)はそれぞれバスマスタ2,
3,4のプロセッサバス要求信号、(j),(k),
(l)はバスマスタ2,3,4のプロセッサバス使用許
可信号を示す。
FIG. 10 shows an operation time chart of the circuit of the second specific example. In the figure, (a) is the operation clock 12, (b)
Is a low power consumption mode signal 13, (c) is a PSM priority select signal 15, (d) is a mode determination signal 16, (e) is a bus master select signal 18, and (f) is a select signal 1.
9, (g), (h) and (i) are the bus master 2 and
3, 4 processor bus request signals, (j), (k),
(L) shows the processor bus use permission signals of the bus masters 2, 3 and 4.

【0031】図に示すように、動作クロック12は時刻
t8において低消費電力モード信号により動作を停止
し、時刻t9から動作を再開する。PSM優先セレクト
信号15の内容は“1”のままとする。従って、低消費
電力モード信号13が時刻t4で“1”から“0”に切
り換わると、その1クロック後の時刻t5にモード決定
信号16が“1”から“0”に切り換わる。これは具体
例1で説明したのと同一の動作である。ここで、(e)
に示すように、バスマスタセレクト信号18の内容が時
刻t3に“0”から“1”に切り換わっている。
As shown in the figure, the operation clock 12 stops its operation at time t8 due to the low power consumption mode signal and resumes its operation at time t9. The content of the PSM priority select signal 15 remains "1". Therefore, when the low power consumption mode signal 13 switches from "1" to "0" at time t4, the mode determination signal 16 switches from "1" to "0" at time t5 one clock later. This is the same operation as described in the specific example 1. Here, (e)
As shown in, the content of the bus master select signal 18 is switched from "0" to "1" at time t3.

【0032】この信号は図9に示したフリップフロップ
34に格納されるが、低消費電力モード信号13が時刻
t4で“1”から“0”に切り換わるため、フリップフ
ロップ34の出力が可能になり、(f)のセレクト信号
19は時刻t5に“0”から“1”に切り換わる。ここ
で、例えば(g)に示すように、時刻t1にバスマスタ
2からのプロセッサバス要求信号5が停止し、これを受
けて時刻t2に(j)に示すように、プロセッサバス使
用許可信号6が“0”から“1”に切り換わった。これ
でバスマスタ2の処理は終了する。このとき、(i)に
示すように、バスマスタ4のプロセッサバス要求信号9
が“0”となっており、バス権要求中である。(h)に
示すように、バスマスタ3も同様にバス権要求中であ
る。
This signal is stored in the flip-flop 34 shown in FIG. 9, but since the low power consumption mode signal 13 switches from "1" to "0" at time t4, the output of the flip-flop 34 becomes possible. Then, the select signal 19 in (f) switches from "0" to "1" at time t5. Here, for example, as shown in (g), the processor bus request signal 5 from the bus master 2 is stopped at time t1, and in response to this, the processor bus use permission signal 6 is sent at time t2 as shown in (j). Switched from "0" to "1". This completes the processing of the bus master 2. At this time, as shown in (i), the processor bus request signal 9 of the bus master 4
Is "0" and the bus right is being requested. As shown in (h), the bus master 3 is also requesting the bus right.

【0033】このタイミングではバスマスタ3がバスマ
スタ4よりも優先順位が高いことから、(k)に示すよ
うに時刻t2にプロセッサバス使用許可信号8が“1”
から“0”になり、バスマスタ3に対しバスの使用許可
が与えられる。バスマスタ4は時刻t5でプロセッサバ
スの要求をいったん停止する。また、バスマスタ3は時
刻t6でバスの使用を開放し、その1クロック後、
(k)に示すように、プロセッサバス使用許可信号も
“0”から“1”に復帰する。こうして、低消費電力モ
ードに移行する。
At this timing, since the bus master 3 has a higher priority than the bus master 4, the processor bus use permission signal 8 is "1" at time t2 as shown in (k).
From "0", the bus master 3 is given permission to use the bus. The bus master 4 temporarily stops the request for the processor bus at time t5. Further, the bus master 3 releases the use of the bus at time t6, and one clock later,
As shown in (k), the processor bus use permission signal also returns from "0" to "1". Thus, the low power consumption mode is entered.

【0034】その後、時刻t9に低消費電力モード信号
13が“0”から“1”に立ち上がると、動作クロック
12の動作が開始する。ここで、(e)のようにバスマ
スタセレクト信号18の内容が“0”で、(f)のよう
にセレクト信号19の内容が“1”であるから、バスマ
スタ3の要求を最優先にする指定がなされる。図のよう
に、この時刻t9にバスマスタ2,3,4が一斉にバス
権要求を行った場合であっても、バスマスタ3の要求を
優先的に受け付けてプロセッサバス使用許可信号8が
“1”から“0”に切り換わる。
After that, when the low power consumption mode signal 13 rises from "0" to "1" at time t9, the operation of the operation clock 12 starts. Here, since the content of the bus master select signal 18 is "0" as in (e) and the content of the select signal 19 is "1" as in (f), it is specified that the request from the bus master 3 is given the highest priority. Is done. As shown in the figure, even if the bus masters 2, 3 and 4 simultaneously make a bus right request at time t9, the request from the bus master 3 is preferentially accepted and the processor bus use permission signal 8 is set to "1". To "0".

【0035】即ち、図9に示す回路によれば、判定回路
17のフリップフロップ34を除く部分で、具体例1に
説明したものと同様に、低消費電力モード移行前の状態
を承継する動作と承継しない動作の選択ができる。更
に、移行前の状態を承継しないとしても、初期設定で定
められたバスマスタ2に対し常に優先権を与えるように
するだけでなく、バスマスタセレクト信号18を切り換
えることによって、バスマスタ3に常に優先権を与える
よう設定することができる。また、バスマスタセレクト
信号18を2ビット構成にし、0,1,2という切換え
ができる構成にすれば、低消費電力モードを終了した場
合に、バスマスタ2に優先権を与える状態、バスマスタ
3に優先権を与える状態、バスマスタ4に優先権を与え
る状態のいずれかを自由に選択することができる。
That is, according to the circuit shown in FIG. 9, in the portion other than the flip-flop 34 of the determination circuit 17, the operation of inheriting the state before the transition to the low power consumption mode is performed as in the case of the concrete example 1. You can select the operation not to inherit. Further, even if the state before the transition is not succeeded, not only the bus master 2 defined in the initial setting is always given the priority right, but also the bus master select signal 18 is switched so that the bus master 3 is always given the priority right. Can be set to give. If the bus master select signal 18 has a 2-bit configuration and can be switched between 0, 1 and 2, when the low power consumption mode ends, the bus master 2 is given priority and the bus master 3 is given priority. Can be freely selected, or a state in which the bus master 4 is given priority can be freely selected.

【0036】図11には、このようなバスマスタセレク
ト信号を2ビット構成にした場合の具体例2の調停法説
明図を示す。この図に示した例は、いずれも低消費電力
モードに移行する前の状態を承継しない動作であるか
ら、PSM優先セレクト信号(PSMSET)15の内
容は全て“0”となっている。そして、この例ではバス
マスタセレクト信号(REQSEL)18が“0”のと
きは1つ前のバスマスタに(BM3→BM2)、“1”
のときは自分に(BM3→BM3)、“2”のときは次
のバスマスタに(BM3→BM4)優先権が移行するよ
うに設定している。
FIG. 11 is an explanatory diagram of the arbitration method of the specific example 2 when such a bus master select signal has a 2-bit configuration. In each of the examples shown in this figure, since the operation before the transition to the low power consumption mode is not succeeded, the contents of the PSM priority select signal (PSMSET) 15 are all "0". In this example, when the bus master select signal (REQSEL) 18 is "0", the previous bus master (BM3 → BM2) is changed to "1".
In the case of, the priority is transferred to itself (BM3 → BM3), and in the case of “2”, the priority is set to the next bus master (BM3 → BM4).

【0037】図12には、このような具体例2の優先順
位変化説明図を示した。(a)では、通常動作時でラウ
ンドロビン式によりバスマスタ2,3,4の順に優先権
が設定される。一方、(b)に示すように、バスマスタ
セレクト信号の内容を“0”に設定した場合に、バスマ
スタ3に優先権を与えた状態で低消費電力モードに移行
したときには、再び動作を開始するとバスマスタ2に優
先権が最初に与えられる。一方、(c)に示すように、
バスマスタセレクト信号18の内容が“1”の場合に
は、同じくバスマスタ3が優先権を得ている状態で低消
費電力モードに移ると、動作を再開したとき同一のバス
マスタ3に優先権が最初に与えられる。更に、(d)に
示すように、バスマスタセレクト信号18の内容が
“2”の場合には同様の状態で動作が再開されると、次
のバスマスタ4に最初に優先権が与えられる。このよう
な制御は、図3に示した優先順位設定カウンタ35の値
を動作再開時に指定した値だけカウントアップさせるこ
とにより実現する。
FIG. 12 is an explanatory diagram of the priority order change of the concrete example 2 as described above. In (a), the priority is set in the order of the bus masters 2, 3 and 4 by the round robin method in the normal operation. On the other hand, as shown in (b), when the content of the bus master select signal is set to "0" and the low power consumption mode is entered with the priority given to the bus master 3, when the operation is started again, 2 is given priority first. On the other hand, as shown in (c),
When the content of the bus master select signal 18 is "1", when the bus master 3 shifts to the low power consumption mode in the state where the bus master 3 has the priority right, when the operation is restarted, the priority right is given to the same bus master 3 first. Given. Further, as shown in (d), when the content of the bus master select signal 18 is "2" and the operation is restarted in the same state, the next bus master 4 is given the priority right first. Such control is realized by incrementing the value of the priority setting counter 35 shown in FIG. 3 by the value specified when the operation is restarted.

【0038】〈具体例2の効果〉以上のようにして、P
SM優先セレクト信号にバスマスタセレクト信号を加え
ることによって低消費電力モードに移行した後動作が再
開されるとき、任意のバスマスタに最初に優先権を与え
ることが可能になる。そして、上位のプロセッサからの
制御によってプログラマブルに任意に指定の切換えがで
きるため、システムの動作の自由度を拡大する。
<Effect of Concrete Example 2> As described above, P
When the operation is restarted after shifting to the low power consumption mode by adding the bus master select signal to the SM priority select signal, it becomes possible to first give priority to any bus master. Further, since the designated switching can be performed in a programmable manner under the control of the host processor, the degree of freedom of system operation is expanded.

【0039】〈具体例3〉図13には、具体例3のバス
使用権調停回路を示す。この例は図8を用いて説明した
具体例2の回路に対し更に割り込み信号(NMINT)
が入力する構成となっている。その他の部分は、具体例
1や具体例2の構成と変わるところはない。
<Specific Example 3> FIG. 13 shows a bus use right arbitration circuit of a specific example 3. In this example, an interrupt signal (NMINT) is added to the circuit of the concrete example 2 described with reference to FIG.
Is input. Other parts are the same as those of the first and second specific examples.

【0040】図14には、具体例3のアービトレーショ
ンモジュールの内部回路ブロック図を示す。この図に示
すように、具体例3では判定回路17の構成は具体例2
のものと全く同一である。そして、制御回路14に対し
割り込み信号(NMINT)20が入力する構成となっ
ている。この具体例は、既に説明した具体例1や具体例
2と同様に低消費電力モード信号13による低消費電力
モードへの切換えが可能な構成となっている。しかしな
がら、この具体例の目的は、ラウンドロビン式の調停方
法を実行している場合に、任意のタイミングで割り込み
信号20を制御回路14に入力し、予め設定された所定
のバスマスタに無条件に優先権を与えることを目的とし
ている。従って、必ずしも低消費電力モードへの移行が
なくてもこの具体例を実施することができる。なお、こ
の具体例では、具体例2を用いて説明したバスマスタセ
レクト信号18によるセレクト信号19の内容によっ
て、割り込み信号20が入力したときにどのバスマスタ
に優先権を与えるかを決定できるようにしている点に特
徴がある。
FIG. 14 shows an internal circuit block diagram of the arbitration module of the third specific example. As shown in this figure, in the third specific example, the configuration of the determination circuit 17 is the second specific example.
Is exactly the same as The interrupt signal (NMINT) 20 is input to the control circuit 14. This specific example has a configuration capable of switching to the low power consumption mode by the low power consumption mode signal 13 similarly to the specific examples 1 and 2 already described. However, the purpose of this example is to input the interrupt signal 20 to the control circuit 14 at an arbitrary timing when the round-robin arbitration method is executed, and unconditionally give priority to a predetermined bus master set in advance. The purpose is to give the right. Therefore, this specific example can be implemented without necessarily shifting to the low power consumption mode. In this specific example, which bus master is given priority when the interrupt signal 20 is input can be determined by the content of the select signal 19 by the bus master select signal 18 described in the specific example 2. The point is characteristic.

【0041】図15には、具体例3の回路の動作タイム
チャートを示す。(a)〜(h)は回路各部の信号で、
(a)は動作クロック12、(b)は割り込み信号2
0、(c),(d),(e)はプロセッサバス要求信号
5,7,9、(f),(g),(h)はプロセッサバス
使用許可信号6,8,10を示している。ここで、例え
ば時刻t1に全てのバスマスタ2,3,4からプロセッ
サバス要求信号5,7,9が同時に出力されたとする。
即ち、時刻t1にこれらの信号が同時に“1”から
“0”に切り換わる。この時点では、バスマスタ2に優
先権があるため、(f)に示すように1クロック後の時
刻t2にプロセッサバス使用許可信号が“1”から
“0”に切り換わる。
FIG. 15 shows an operation time chart of the circuit of the third specific example. (A) to (h) are signals of various parts of the circuit,
(A) is the operation clock 12, (b) is the interrupt signal 2
0, (c), (d) and (e) show processor bus request signals 5, 7, 9 and (f), (g) and (h) show processor bus use permission signals 6, 8 and 10. . Here, for example, it is assumed that the processor bus request signals 5, 7, 9 are simultaneously output from all the bus masters 2, 3, 4 at time t1.
That is, at time t1, these signals simultaneously switch from "1" to "0". At this point, the bus master 2 has priority, so that the processor bus use permission signal switches from "1" to "0" at time t2 one clock later, as shown in (f).

【0042】次に(c)に示すように、時刻t3にバス
マスタ2がバス権を開放すると、(f)のように時刻t
4にプロセッサバス使用許可信号6が“0”から“1”
に切り換わる。これと同時に(g)に示すように、プロ
セッサバス使用許可信号8が“1”から“0”に切り換
わってバスマスタ3に対しバス権を与える。その後、時
刻t5に割り込み信号が1クロックだけアサートされ
た。このとき、(c),(d),(e)に示すように、
全てのバスマスタ2,3,4が、プロセッサバス要求信
号5,7,9を出力しているものとする。ところが、割
り込み信号20の入力により予め指定されたバスマスタ
2に優先権が移るから、時刻t7に図の(f)に示すよ
うにプロセッサバス使用許可信号6が“1”から“0”
に切り換わる。こうして、バスマスタ2に対して強制的
にバスの使用許可が与えられる。その後時刻t8にバス
マスタ2がバス権を開放すると、再びこれまでの設定順
に時刻t9に示すようにバスマスタ4に対しバス権が与
えられる。なお、こうした制御は、図3に示した制御回
路の優先順位設定カウンタ35を割り込み信号によって
リセットすることにより実現する。
Next, as shown in (c), when the bus master 2 releases the bus right at time t3, as shown in (f), time t is reached.
4, the processor bus use permission signal 6 is changed from "0" to "1"
Switch to. At the same time, as shown in (g), the processor bus use permission signal 8 switches from "1" to "0" and gives the bus right to the bus master 3. After that, at time t5, the interrupt signal was asserted for only one clock. At this time, as shown in (c), (d), and (e),
It is assumed that all the bus masters 2, 3, 4 are outputting the processor bus request signals 5, 7, 9. However, since the priority is transferred to the bus master 2 designated in advance by the input of the interrupt signal 20, the processor bus use permission signal 6 is changed from "1" to "0" at time t7 as shown in (f) of the figure.
Switch to. In this way, the bus master 2 is forcibly given permission to use the bus. After that, when the bus master 2 releases the bus right at time t8, the bus right is given to the bus master 4 again as shown at time t9 in the previously set order. Note that such control is realized by resetting the priority setting counter 35 of the control circuit shown in FIG. 3 with an interrupt signal.

【0043】図16には、具体例3の調停法説明図を示
す。上記のように、この例では割り込みが発生した場合
には常にバスマスタ2に対し優先権が移るように制御さ
れる。即ち、図に示すように、いずれのバスマスタ2,
3,4が使用権を持っていた状態で割り込みが発生して
も常にバスマスタ2に対し使用権が移る。
FIG. 16 is an explanatory diagram of the arbitration method of the third specific example. As described above, in this example, the priority is controlled so that the bus master 2 is always given priority when an interrupt occurs. That is, as shown in FIG.
Even if an interrupt occurs while 3 and 4 have the usage right, the usage right is always transferred to the bus master 2.

【0044】図17には、具体例3の優先順位変化説明
図を示す。図の(a),(b),(c),(d)は、こ
れまで具体例1や具体例2で説明したのと同様の形式の
ものである。この例では、割り込みが発生すると、常に
バスマスタ2に対し優先権が移ることを示している。こ
れは、低消費電力モードの有無に関わりなく一定となっ
ている。ここで、例えば図14に示したバスマスタセレ
クト信号18やセレクト信号19の内容によって、具体
例2と同様にしてバスマスタ2以外のバスマスタ3やバ
スマスタ4に対し割り込み発生後最優先に優先権を与え
るといった制御も可能である。
FIG. 17 is an explanatory diagram of the priority order change of the third specific example. (A), (b), (c), and (d) in the figure are of the same format as described in the concrete example 1 and the concrete example 2 so far. This example shows that the priority is transferred to the bus master 2 whenever an interrupt occurs. This is constant regardless of the presence or absence of the low power consumption mode. Here, for example, according to the contents of the bus master select signal 18 and the select signal 19 shown in FIG. 14, the bus master 3 and the bus master 4 other than the bus master 2 are given the highest priority after the interrupt is generated in the same manner as in the second specific example. Control is also possible.

【0045】〈具体例3の効果〉以上説明したように、
具体例3によれば、アービトレーションモジュールの制
御回路14に割り込み信号を入力し、この割り込み信号
が入力したときは直ちに一定のバスマスタに対し優先権
を与えることができるので、例えばシステムにおいて重
要な割り込みが発生し、その割り込みについての処理を
いち早く行いたいような場合に、適切に対処し効率のよ
い処理を行うことができる。
<Effect of Concrete Example 3> As described above,
According to the third specific example, an interrupt signal is input to the control circuit 14 of the arbitration module, and when the interrupt signal is input, a certain bus master can be immediately given priority. When an interrupt occurs and it is desired to quickly process the interrupt, it is possible to appropriately deal with the problem and perform an efficient process.

【0046】〈具体例4〉図18には、具体例4のバス
使用権調停回路ブロック図を示した。この回路は、図1
3に示した具体例3の回路に対し割り込み判定信号(I
NTSET)21を入力している。その他の回路構成に
ついては具体例3の回路と全く同一である。
<Fourth Embodiment> FIG. 18 shows a block diagram of a bus use right arbitration circuit of a fourth embodiment. This circuit is
For the circuit of the concrete example 3 shown in FIG.
NTSET) 21 has been entered. The other circuit configuration is exactly the same as that of the third embodiment.

【0047】図19には、具体例4のアービトレーショ
ンモジュール内部回路を示す。この図において、具体例
3と異なる部分はマスク回路22を設けた点である。こ
のマスク回路22に割り込み信号(NMINT)20と
割り込み判定信号21とが入力するように構成されてい
る。この場合、割り込み判定信号21が“0”の場合に
は制御回路14に対し割り込みを伝えるために割り込み
セレクト信号(INTOUT)23を“0”にする。一
方、割り込み判定信号21が“1”の場合にはマスク回
路22によって割り込み信号20が遮断され、割り込み
セレクト信号23はハイレベルのままとなり、制御回路
14には割り込みが通知されない。
FIG. 19 shows an internal circuit of the arbitration module of the fourth specific example. In this figure, the difference from the third embodiment is that a mask circuit 22 is provided. An interrupt signal (NMINT) 20 and an interrupt determination signal 21 are input to the mask circuit 22. In this case, when the interrupt determination signal 21 is "0", the interrupt select signal (INTOUT) 23 is set to "0" to notify the control circuit 14 of the interrupt. On the other hand, when the interrupt determination signal 21 is “1”, the mask circuit 22 interrupts the interrupt signal 20, the interrupt select signal 23 remains at the high level, and the control circuit 14 is not notified of the interrupt.

【0048】即ち、割り込みが通知された状態では具体
例3と同様の動作をし、割り込みが通知されない状態で
は具体例2と同様の動作をする。もちろん、この具体例
も必ずしも低消費電力モード信号への移行は必要でな
い。即ち、割り込み信号を適宜遮断することによって必
要に応じて割り込み発生による強制的な優先順位の変更
を阻止したり、あるいは割り込みによる優先順位の切換
えを許可する。その他の回路構成及び動作は具体例3に
示したものと同様である。
That is, the operation similar to that in the concrete example 3 is performed in the state where the interrupt is notified, and the operation similar to that in the concrete example 2 is performed in the state where the interrupt is not notified. Of course, this specific example does not necessarily require the transition to the low power consumption mode signal. That is, by appropriately interrupting the interrupt signal, forcible change of the priority order due to the occurrence of the interrupt is prevented as necessary, or the priority order switching by the interrupt is permitted. Other circuit configurations and operations are similar to those shown in the third specific example.

【0049】図20には、具体例4の割り込み処理動作
タイムチャートを示す。図のように、(a)に動作クロ
ック12、(b)に割り込み判定信号21、(c)に割
り込み信号20、(d)に割り込みセレクト信号23を
表示し、その動作を示している。この図に示すように、
時刻t1に割り込み判定信号が“1”から“0”に切り
換えられアサートされると、時刻t2に割り込み信号2
0が入力し“1”から“0”に切り換わった場合に、割
り込みセレクト信号23も同時に“1”から“0”に切
り換わる。これによって、制御回路に対し割り込みの通
知が行われる。
FIG. 20 shows an interrupt processing operation time chart of the fourth specific example. As shown in the figure, the operation clock 12 is shown in (a), the interrupt determination signal 21 is shown in (b), the interrupt signal 20 is shown in (c), and the interrupt select signal 23 is shown in (d) to show the operation. As shown in this figure,
When the interrupt determination signal is switched from “1” to “0” and asserted at time t1, interrupt signal 2 is output at time t2.
When 0 is input and is switched from "1" to "0", the interrupt select signal 23 is also switched from "1" to "0" at the same time. As a result, the control circuit is notified of the interrupt.

【0050】図21には、割り込みマスク動作タイムチ
ャートを示す。ここには、上記の割り込み信号20がマ
スクされた場合の動作を示している。(a)〜(d)に
示す信号は図20に示したものと同様である。図におい
て、(b)に示す割り込み判定信号は“1”のレベルの
ままである。従って、(c)に示すように、時刻t1に
割り込み信号20が“1”から“0”に切り換わったと
しても、(d)に示すように、割り込みセレクト信号2
3に変化がない。従って、割り込み信号がマスクされ
る。
FIG. 21 shows an interrupt mask operation time chart. Here, the operation when the interrupt signal 20 is masked is shown. The signals shown in (a) to (d) are the same as those shown in FIG. In the figure, the interrupt determination signal shown in (b) remains at the level of "1". Therefore, even if the interrupt signal 20 is switched from "1" to "0" at time t1 as shown in (c), the interrupt select signal 2 is changed as shown in (d).
There is no change in 3. Therefore, the interrupt signal is masked.

【0051】〈具体例4の効果〉以上説明したように、
具体例4によれば、割り込み信号を任意のタイミングで
マスクすることができるため、割り込み信号による強制
的な優先順位の切換えと割り込み信号を用いない通常の
動作とを自由に選択することができる。
<Effect of Concrete Example 4> As described above,
According to the specific example 4, since the interrupt signal can be masked at an arbitrary timing, it is possible to freely select forcible priority order switching by the interrupt signal and normal operation not using the interrupt signal.

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

【図1】具体例1のバス使用権調停回路である。FIG. 1 is a bus usage right arbitration circuit according to a specific example 1;

【図2】具体例1のアービトレーションモジュール内部
回路である。
FIG. 2 is an internal circuit of an arbitration module of Specific Example 1.

【図3】制御回路のブロック図である。FIG. 3 is a block diagram of a control circuit.

【図4】ラウンドロビン式調停法説明図である。FIG. 4 is an explanatory diagram of a round robin type arbitration method.

【図5】具体例1の優先順位変化説明図である。FIG. 5 is an explanatory diagram of priority change according to the first specific example.

【図6】優先順位非承継時の動作タイムチャートであ
る。
FIG. 6 is an operation time chart when priority is not inherited.

【図7】優先順位承継時の動作タイムチャートである。FIG. 7 is an operation time chart when the priority order is succeeded.

【図8】具体例2のバス使用権調停回路である。FIG. 8 is a bus use right arbitration circuit according to a specific example 2;

【図9】具体例2のアービトレーションモジュール内部
回路である。
FIG. 9 is an internal circuit of an arbitration module of Concrete example 2.

【図10】具体例2の回路の動作タイムチャートであ
る。
FIG. 10 is an operation time chart of the circuit of the second specific example.

【図11】具体例2の調停法説明図である。FIG. 11 is an explanatory diagram of an arbitration method of specific example 2.

【図12】具体例2による優先順位変化説明図である。FIG. 12 is an explanatory diagram of priority change according to the second specific example.

【図13】具体例3のバス使用権調停回路である。FIG. 13 is a bus right-of-use arbitration circuit of the third specific example.

【図14】具体例3のアービトレーションモジュール内
部回路である。
FIG. 14 is an internal circuit of an arbitration module of Concrete Example 3.

【図15】具体例3の回路の動作タイムチャートであ
る。
FIG. 15 is an operation time chart of the circuit of the third specific example.

【図16】具体例3の調停法説明図である。16 is an explanatory diagram of an arbitration method of specific example 3. FIG.

【図17】具体例3による優先順位変化説明図である。FIG. 17 is an explanatory diagram of priority change according to the third specific example.

【図18】具体例4のバス使用権調停回路である。FIG. 18 is a bus right-of-use arbitration circuit of the fourth specific example.

【図19】具体例4のアービトレーションモジュール内
部回路である。
FIG. 19 is an internal circuit of an arbitration module of Concrete Example 4.

【図20】具体例4の回路の割り込み処理動作タイムチ
ャートである。
FIG. 20 is an interrupt processing operation time chart of the circuit of the fourth specific example.

【図21】具体例4の回路の割り込みマスク動作タイム
チャートである。
FIG. 21 is an interrupt mask operation time chart of the circuit of specific example 4;

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

1 アービトレーションモジュール 2,3,4 バスマスタ 5,7,9 プロセッサバス要求信号 6,8,10 プロセッサバス使用許可信号 11 プロセッサバス 12 動作クロック 13 低消費電力モード信号 15 PSM優先セレクト信号 1 Arbitration Module 2, 3, 4 Bus Master 5, 7, 9 Processor Bus Request Signal 6, 8, 10 Processor Bus Use Enable Signal 11 Processor Bus 12 Operation Clock 13 Low Power Consumption Mode Signal 15 PSM Priority Select Signal

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 プロセッサバスを介して接続された複数
のバスマスタと、 これらのバスマスタのプロセッサバス使用権を調停する
アービトレーションモジュールとを備え、 このアービトレーションモジュールは、 ラウンドロビン式に各バスマスタの優先順位付けを行う
とともに、 システムが低消費電力モードに移行して、その低消費電
力モードを終了したとき、 低消費電力モードへの移行直前の優先順位付けを承継す
るか、常に一定のバスマスタに最初に優先権を与えるか
を判定する判定回路を設けたことを特徴とするバス使用
権調停回路。
1. A plurality of bus masters connected via a processor bus, and an arbitration module that arbitrates the processor bus usage right of these bus masters, wherein the arbitration module prioritizes each bus master in a round robin manner. When the system enters the low power consumption mode and exits the low power consumption mode, it takes over the prioritization immediately before the transition to the low power consumption mode or always gives priority to a certain bus master first. A bus use right arbitration circuit, which is provided with a determination circuit for determining whether to give the right.
【請求項2】 プロセッサバスを介して接続された複数
のバスマスタと、 これらのバスマスタのプロセッサバス使用権を調停する
アービトレーションモジュールとを備え、 このアービトレーションモジュールは、 ラウンドロビン式に各バスマスタの優先順位付けを行う
とともに、 システムが低消費電力モードに移行して、その低消費電
力モードを終了したとき、 最初に優先権を与えるように指定されたバスマスタを判
定する判定回路を設けたことを特徴とするバス使用権調
停回路。
2. A plurality of bus masters connected via a processor bus, and an arbitration module for arbitrating processor bus usage rights of these bus masters, wherein the arbitration module prioritizes each bus master in a round-robin manner. In addition to the above, when the system shifts to the low power consumption mode and ends the low power consumption mode, a determination circuit for determining the bus master designated to give the priority right first is provided. Bus right arbitration circuit.
【請求項3】 プロセッサバスを介して接続された複数
のバスマスタと、 これらのバスマスタのプロセッサバス使用権を調停する
アービトレーションモジュールとを備え、 このアービトレーションモジュールは、 ラウンドロビン式に各バスマスタの優先順位付けを行う
とともに、 所定の割り込み信号が入力したとき、予めその割り込み
信号に対応させて指定されたバスマスタに対して、優先
権を与えることを特徴とするバス使用権調停回路。
3. A plurality of bus masters connected via a processor bus, and an arbitration module that arbitrates the processor bus use right of these bus masters, wherein the arbitration module prioritizes each bus master in a round robin manner. And a bus right arbitration circuit which, when a predetermined interrupt signal is input, gives priority to a bus master designated in advance corresponding to the interrupt signal.
【請求項4】 請求項3において、 割り込み信号を任意のタイミングでマスクするマスク回
路を設けたことを特徴とするバス使用権調停回路。
4. The bus use right arbitration circuit according to claim 3, further comprising a mask circuit for masking the interrupt signal at an arbitrary timing.
JP17300096A 1996-06-12 1996-06-12 Bus arbitration circuit Expired - Fee Related JP3557507B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17300096A JP3557507B2 (en) 1996-06-12 1996-06-12 Bus arbitration circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17300096A JP3557507B2 (en) 1996-06-12 1996-06-12 Bus arbitration circuit

Publications (2)

Publication Number Publication Date
JPH09330291A true JPH09330291A (en) 1997-12-22
JP3557507B2 JP3557507B2 (en) 2004-08-25

Family

ID=15952336

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17300096A Expired - Fee Related JP3557507B2 (en) 1996-06-12 1996-06-12 Bus arbitration circuit

Country Status (1)

Country Link
JP (1) JP3557507B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006045216A1 (en) * 2004-10-28 2006-05-04 Magima Digital Information Co., Ltd. An arbitrator and its arbitration method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006045216A1 (en) * 2004-10-28 2006-05-04 Magima Digital Information Co., Ltd. An arbitrator and its arbitration method
US7539806B2 (en) 2004-10-28 2009-05-26 Magima Digital Information Co. Ltd. Arbitrator and its arbitration method

Also Published As

Publication number Publication date
JP3557507B2 (en) 2004-08-25

Similar Documents

Publication Publication Date Title
US9285860B2 (en) Apparatus and methods employing variable clock gating hysteresis for a communications port
US7793025B2 (en) Hardware managed context sensitive interrupt priority level control
JP4485574B2 (en) Access control device, access control integrated circuit, and access control method
KR20040012964A (en) System and method for controlling bus arbitration during cache memory burst cycles
JP2003006143A (en) System, device and method of sharing bus
CN107533352B (en) Controlling transitions between standard and static states
CN105988400B (en) Microcontroller unit
US5974479A (en) System for executing, canceling, or suspending a DMA transfer based upon internal priority comparison between a DMA transfer and an interrupt request
EP1820109A2 (en) Time-based weighted round robin arbiter
CN110573989B (en) Dynamic arbitration method for real-time stream in multi-client system
JP2005092780A (en) Real time processor system and control method
JPH09330291A (en) Bus use arbitration circuit
US7000131B2 (en) Apparatus and method for assuming mastership of a bus
JPH10320349A (en) Processor and data transfer system using the processor
JP2005173859A (en) Memory access control circuit
US5799160A (en) Circuit and method for controlling bus arbitration
JP2635863B2 (en) Central processing unit
JPH05134980A (en) Bus system
JPH04250553A (en) Programmable controller
JPH05151143A (en) Interruption processing system for computer containing dma controller
JP2000076183A (en) Bus arbitration circuit
JP2007026367A (en) Multitask os for system lsi
JP2004348463A (en) Arbiter circuit
JPH06139076A (en) Interruption processor
JPH11175393A (en) Method and system for controlling common access to random access memory

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20031222

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040106

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040308

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: 20040330

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040428

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080528

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090528

Year of fee payment: 5

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

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

Free format text: PAYMENT UNTIL: 20090528

Year of fee payment: 5

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees