JPH09179817A - Bus access system - Google Patents

Bus access system

Info

Publication number
JPH09179817A
JPH09179817A JP33948695A JP33948695A JPH09179817A JP H09179817 A JPH09179817 A JP H09179817A JP 33948695 A JP33948695 A JP 33948695A JP 33948695 A JP33948695 A JP 33948695A JP H09179817 A JPH09179817 A JP H09179817A
Authority
JP
Japan
Prior art keywords
bus
signal
common bus
acquisition
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP33948695A
Other languages
Japanese (ja)
Inventor
Yoshinori Hayashimoto
吉則 林元
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.)
NEC Saitama Ltd
Original Assignee
NEC Saitama 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 NEC Saitama Ltd filed Critical NEC Saitama Ltd
Priority to JP33948695A priority Critical patent/JPH09179817A/en
Publication of JPH09179817A publication Critical patent/JPH09179817A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To improve the use efficiency of a control means for a common bus and a master module. SOLUTION: The control means 1 outputs a bus use right request signal. A 1st timer means 4 outputs a bus use right request quitting signal a predetermined time after the said signal is received. An arbitrating means 2 receiving the bus use right request signal waits for a bus state signal to be OFF, outputs a bus request signal and a bus acquisition signal when the bus state signal turns OFF, and quits arbitrating the common bus 40 on receiving the bus use right request quitting signal during the wait. The control means 1 accesses a slave modules 20-2N when receiving the bus acquisition signal and quits a bus accessing process when receiving the bus use right request quitting signal. A 2nd timer means 3 starts clocking the time on receiving the bus acquisition signal and outputs a bus access quitting signal a predetermined time later. The control means 1 quits the bus access when receiving the quitting signal and ends the bus accessing signal normally when receiving answers from slave modules 20-2N.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はバスアクセス方式に
関し、特に複数のモジュールを有するシステムにおける
バスアクセス方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bus access method, and more particularly to a bus access method in a system having a plurality of modules.

【0002】[0002]

【従来の技術】従来、この種のバスアクセス方式は、共
通のバスに接続された複数のモジュールを有するシステ
ムにおいて前記各々のモジュールがバスのアクセスを効
率良く行うために用いられている。
2. Description of the Related Art Conventionally, this type of bus access method has been used in a system having a plurality of modules connected to a common bus so that each of the modules can efficiently access the bus.

【0003】この従来のバスアクセス方式の一例を示す
ブロック図である図4を参照すると、従来の方式は、共
通バス40に接続されたスレーブモジュール20からス
レーブモジュール2Nと、前記共通バス40とこの共通
バス40の獲得を要求する信号を伝えるバス要求線30
とに接続され前記共通バス40の使用を望むときに前記
共通バス40の獲得を要求する信号を前記バス要求線3
0に出力して前記共通バス40を獲得し前記複数のスレ
ーブモジュールのうち一つのスレーブモジュールに対し
前記共通バス40を介してアクセスするマスタモジュー
ル80からマスタモジュール8Nとを備え、前記マスタ
モジュール80からマスタモジュール8Nは、前記共通
バス40の使用権を要求するバス使用権要求信号を出力
しこの要求により前記共通バス40が獲得された場合に
は、このバスを介して前記複数のスレーブモジュールの
うち一つのスレーブモジュールに対してアクセスする制
御を行う制御部5と、前記制御部5から前記バス使用権
要求信号を受け、他の前記マスタモジュールとの間で前
記共通バス40の獲得の調停を行う調停部6と、前記制
御部5から前記バス使用権要求信号を受け、この信号を
受けてから時間の計測を開始しこの計測した時間が予め
定めた時間を経過したときにタイムアップ信号を出力す
るタイマ部7と、を有する構成である。
Referring to FIG. 4, which is a block diagram showing an example of this conventional bus access system, in the conventional system, a slave module 20 to a slave module 2N connected to a common bus 40, the common bus 40 and the common bus 40 are connected. Bus request line 30 for transmitting a signal requesting acquisition of common bus 40
Is connected to the bus request line 3 for requesting acquisition of the common bus 40 when the use of the common bus 40 is desired.
0 to 0 to obtain the common bus 40 and to access one slave module of the plurality of slave modules via the common bus 40 to a master module 8N. The master module 8N outputs a bus usage right request signal for requesting the usage right of the common bus 40, and when the common bus 40 is acquired by this request, the master module 8N selects one of the slave modules via the bus. A control unit 5 that controls access to one slave module, and receives the bus usage right request signal from the control unit 5, and arbitrates acquisition of the common bus 40 with another master module. The bus right request signal is received from the arbitration unit 6 and the control unit 5, and the time elapses after the signal is received. A timer unit 7 for outputting a time-up signal when the measured time started measuring has passed a predetermined time, a configuration having a.

【0004】前記調停部6による調停の方法は、共通バ
ス40の獲得を要求する信号を先に出力したマスタモジ
ュールに共通バス40を獲得させるようにし、また、複
数のマスタモジュールから同時に共通バス40の獲得を
要求する信号が出力された場合には予め定めた共通バス
40の獲得の優先順位に従いこの優先順位の高いマスタ
モジュールに共通バス40を獲得させるようにしてい
る。
The arbitration method by the arbitration unit 6 causes the master module that has previously output a signal requesting acquisition of the common bus 40 to acquire the common bus 40, and also allows a plurality of master modules to simultaneously acquire the common bus 40. When a signal requesting acquisition of the common bus 40 is output, the master module having the higher priority order acquires the common bus 40 in accordance with a predetermined priority order of acquisition of the common bus 40.

【0005】また、前記タイマ部7に予め設定した時間
は、前記調停部6による前記共通バス40の調停に掛か
る平均的な時間と前記制御部5による前記スレーブモジ
ュールに対するアクセスの制御に掛かる平均的な時間と
を合計した時間よりも大きな時間である。
The time preset in the timer unit 7 is an average time required for the arbitration unit 6 to arbitrate the common bus 40 and an average time required for the control unit 5 to control access to the slave module. It is a time that is larger than the total time.

【0006】次に、動作を説明する。Next, the operation will be described.

【0007】前記マスタモジュール80が前記複数のス
レーブモジュールのうち一つのスレーブモジュールに対
してアクセスを望むとき、前記制御部5は、前記バス使
用権要求信号を出力する。前記タイマ部7は、このバス
使用権要求信号を受け時間の計測を開始する。また、前
記調停部6は、前記制御部5からの前記バス使用権要求
信号を受け、前記バス要求線30を介して他の前記マス
タモジュールとの間で前記共通バス40の獲得の調停を
行い、前記共通バス40を獲得し前記バス獲得信号を出
力する。前記制御部5は、前記バス獲得信号を入力し、
前記複数のスレーブモジュールのうち一つのスレーブモ
ジュールにアクセスし、このアクセスに対する前記スレ
ーブモジュールからの応答を得て前記スレーブモジュー
ルへのアクセスを終了させる。
When the master module 80 desires to access one slave module of the plurality of slave modules, the controller 5 outputs the bus use right request signal. The timer unit 7 receives the bus use right request signal and starts measuring time. Further, the arbitration unit 6 receives the bus use right request signal from the control unit 5 and arbitrates acquisition of the common bus 40 with another master module via the bus request line 30. , Acquires the common bus 40 and outputs the bus acquisition signal. The control unit 5 inputs the bus acquisition signal,
One slave module of the plurality of slave modules is accessed, and a response from the slave module to this access is obtained to terminate the access to the slave module.

【0008】一方、前記制御部5は、前記バス使用権要
求信号を出力してから前記スレーブモジュールからの応
答を受けるまでの間に前記タイマ部7からタイムアップ
信号を受けた場合には、バスアクセスエラーとし前記共
通バス40の使用権の要求または前記スレーブモジュー
ルに対してのアクセスの制御を中止する。
On the other hand, when the control unit 5 receives the time-up signal from the timer unit 7 between the time when the bus usage right request signal is output and the time when the response from the slave module is received, As an access error, the request for the right to use the common bus 40 or the control of access to the slave module is stopped.

【0009】[0009]

【発明が解決しようとする課題】上述した従来のバスア
クセス方式によると、前記調停部6の調停方法により前
記共通バス40を獲得するため、共通バス獲得の優先順
位の低いマスタモジュールは、このモジュールより優先
順位の高いマスタモジュールと同時に共通バスの獲得を
要求する信号を出力した場合には、この優先順位の高い
モジュールに共通バス40を獲得されるため、このモジ
ュールが共通バス40を解放するまで共通バス40の獲
得を待つことになる。さらに、前記優先順位の低いマス
タモジュールは、前記共通バス40を待つ状態のときに
自己のモジュールより優先順位の高いマスタモジュール
が共通バス40の獲得待ち状態に入ると、前記共通バス
40が解放されてもこの自己のモジュールより優先順位
の高いモジュールがこの共通バス40を獲得するため前
記待ち状態を継続することになる。一方、前記タイマ部
7は前記制御部5からの前記バス使用権要求信号の入力
と同時に時間の計測を開始しているので、優先順位の低
い前記マスタモジュールがようやく前記待ち状態から解
放され前記共通バス40を獲得して、スレーブモジュー
ルにアクセスしたとしても、前記タイマ部7の時間計測
が進みこのタイマ部7がタイムアップ間際の場合には前
記スレーブモジュールにアクセスした直後にタイムアッ
プし、前記スレーブモジュールが前記マスタモジュール
からのアクセスに対する応答をするまえにバスアクセス
エラーとなるため、前記共通バス40の使用を放棄せざ
るを得ない。このような場合には、前記マスタモジュー
ルは再度前記共通バス40を獲得し前記スレーブモジュ
ールをアクセスすることになるため、前記共通バス40
の使用効率が悪化するという問題がある。
According to the above-mentioned conventional bus access method, since the common bus 40 is acquired by the arbitration method of the arbitration unit 6, the master module having a low priority order of common bus acquisition is When a signal requesting acquisition of the common bus is output at the same time as the master module having the higher priority, the common bus 40 is acquired by the module having the higher priority, and therefore, until this module releases the common bus 40. It will wait for the acquisition of the common bus 40. Further, when the master module having a lower priority enters the acquisition waiting state for the common bus 40 when a master module having a higher priority than its own module is waiting for the common bus 40, the common bus 40 is released. Even so, the module having a higher priority than its own module acquires the common bus 40, and thus the waiting state is continued. On the other hand, since the timer unit 7 starts measuring time simultaneously with the input of the bus use right request signal from the control unit 5, the master module with lower priority is finally released from the waiting state and the common Even if the bus 40 is acquired and the slave module is accessed, if the time measurement of the timer unit 7 progresses and the timer unit 7 is about to time up, the time is raised immediately after accessing the slave module and the slave Since the bus access error occurs before the module responds to the access from the master module, the use of the common bus 40 must be abandoned. In such a case, the master module acquires the common bus 40 again and accesses the slave module.
There is a problem that the use efficiency of is deteriorated.

【0010】また、頻繁に共通バス40を使用するシス
テムの場合には前記共通バス40の使用頻度が多いた
め、前記マスタモジュールは、前記共通バス40の獲得
待ちの状態が続くことになる。しかし、この状態を中止
する手段は前記タイムアップ信号の発生のみしかなく、
前記共通バス40の獲得を途中で中止する制御ができな
いので、前記マスタモジュールは前記共通バス40の獲
得を単に待ち続けることになり、前記マスタモジュール
の制御部5の使用効率が低下するという問題がある。
In the case of a system which frequently uses the common bus 40, the common bus 40 is frequently used, so that the master module continues to wait for the acquisition of the common bus 40. However, the means for canceling this state is only the generation of the time-up signal,
Since it is not possible to control the acquisition of the common bus 40 midway, the master module simply keeps waiting for the acquisition of the common bus 40, which causes a problem that the efficiency of use of the control unit 5 of the master module decreases. is there.

【0011】本発明の目的はこのような従来の欠点を除
去するため、共通バスの使用効率が良く、かつ、マスタ
モジュールの制御部の使用効率が良いバスアクセス方式
を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a bus access method in which the common bus can be used efficiently and the control unit of the master module can be used efficiently in order to eliminate such conventional drawbacks.

【0012】[0012]

【課題を解決するための手段】本発明のバスアクセス方
式は、複数のモジュールが接続された共通バスを前記複
数のモジュールのうちの前記共通バスの使用を望む各々
のモジュールがそれぞれ前記共通バスの獲得を要求しこ
の要求により前記共通バスを獲得した前記モジュールが
前記共通バスを使用して他の前記モジュールに対してア
クセスするバスアクセス方式において、前記共通バスの
使用を望む前記モジュールは、前記共通バスの獲得を要
求してからこの共通バスを獲得するまで時間を計測し、
この計測した時間が予め定めた時間を経過した場合に第
一のタイムアップ信号を出力する第一のタイマ手段と、
前記共通バスを獲得してからこの獲得した前記共通バス
を使用して前記アクセスした他の前記モジュールからの
このアクセスに対する応答を受けるまで時間を計測し、
この計測した時間が予め定めた時間を経過した場合に第
二のタイムアップ信号を出力する第二のタイマ手段と、
を備えて構成されている。
According to the bus access method of the present invention, a common bus to which a plurality of modules are connected is connected to each of the modules desiring to use the common bus. In the bus access method in which the module requesting acquisition and the module that has acquired the common bus in response to this request uses the common bus to access another module, the module desiring to use the common bus is the common Measure the time from requesting bus acquisition to acquiring this common bus,
A first timer means for outputting a first time-up signal when the measured time exceeds a predetermined time,
Measuring the time from the acquisition of the common bus to the reception of a response to this access from the other module that has accessed using the acquired common bus,
Second timer means for outputting a second time-up signal when the measured time has passed a predetermined time,
It is provided with.

【0013】また、本発明のバスアクセス方式は、前記
共通バスに接続された前記複数のモジュールは、前記共
通バスの獲得を要求する信号を伝えるバス要求線に接続
され前記共通バスの使用を望むときに前記共通バスの獲
得を要求する信号を前記バス要求線に出力して前記共通
バスの使用権を獲得する複数のマスタモジュールと、前
記共通バスを獲得したマスタモジュールから前記共通バ
スを使用してアクセスされこのアクセスに対する応答を
出力する複数のスレーブモジュールと、により構成し、
かつ、前記マスタモジュールは、前記共通バスの獲得を
要求する信号を出力し、この信号を出力してから前記共
通バスを獲得するまでの間に予め定めた時間が経過した
ことを示す前記第一のタイムアップ信号を入力した場合
は、前記共通バスの獲得の要求を放棄し、前記共通バス
が獲得されたことを示すバス獲得信号を入力した場合
は、前記スレーブモジュールに前記共通バスを使用して
アクセスし、前記バス獲得信号を入力してから前記アク
セスしたスレーブモジュールより前記アクセスに対する
応答を受けるまでの間に予め定めた時間が経過したこと
を示す前記第二のタイムアップ信号を入力した場合は、
バスアクセスエラーとして前記スレーブモジュールへの
アクセスを終了させる制御手段と、前記制御手段から前
記共通バスの使用権を要求する信号を受け、前記バス要
求線を介して他の前記マスタモジュールとの間で前記共
通バスの獲得の調停を行い前記共通バスを獲得し前記バ
ス獲得信号を出力する調停手段と、前記共通バスの使用
権を要求する信号を受け、この信号を受けてから予め定
めた時間が経過したときに前記第一のタイムアップ信号
を出力する第一のタイマ手段と、前記バス獲得信号を受
け、この信号を受けてから予め定めた時間が経過したと
きに前記第二のタイムアップ信号を出力する第二のタイ
マ手段と、を備えて構成されている。
Further, in the bus access system of the present invention, the plurality of modules connected to the common bus are connected to a bus request line for transmitting a signal requesting acquisition of the common bus, and the use of the common bus is desired. Sometimes, a plurality of master modules that output a signal requesting acquisition of the common bus to the bus request line to acquire the right to use the common bus, and a master module that acquires the common bus use the common bus. Configured by a plurality of slave modules that are accessed and output a response to this access,
In addition, the master module outputs a signal requesting acquisition of the common bus, and the master module indicates that a predetermined time has elapsed between the output of this signal and the acquisition of the common bus. If the time-up signal is input, the request for acquisition of the common bus is abandoned, and if the bus acquisition signal indicating that the common bus is acquired is input, the common bus is used for the slave module. When the second time-up signal indicating that a predetermined time has elapsed from the time when the bus access signal is input and the time when the bus acquisition signal is input until the response to the access is received from the accessed slave module is input. Is
Between the control means for ending the access to the slave module as a bus access error and a signal requesting the right to use the common bus from the control means, and between the other master module via the bus request line. Arbitration means for arbitrating the acquisition of the common bus, acquiring the common bus and outputting the bus acquisition signal, and a signal requesting the right to use the common bus, and a predetermined time after receiving the signal. First timer means for outputting the first time-up signal when the time has elapsed, and the second time-up signal when a predetermined time has elapsed after receiving the bus acquisition signal and the signal And second timer means for outputting.

【0014】[0014]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して説明する。
Next, embodiments of the present invention will be described with reference to the drawings.

【0015】図1は、本発明のバスアクセス方式の一つ
の実施の形態を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of the bus access system of the present invention.

【0016】図1に示す本実施の形態は、共通バス40
とこの共通バス40の獲得を要求するバス要求信号を伝
えるバス要求線30とに接続されたマスタモジュール1
0からマスタモジュール1Nと、前記共通バス40に接
続されこの共通バス40を獲得した前記マスタモジュー
ルから前記共通バス40を使用してアクセスされこのア
クセスに対する応答を出力するスレーブモジュール20
からスレーブモジュール2Nとにより構成し、かつ、前
記マスタモジュールは、バス使用権要求信号を出力しこ
の出力から前記共通バス40を獲得するまでの間に予め
定めた時間が経過したことを示す第一のタイムアップ信
号を入力した場合は、前記共通バス40の使用権の要求
を放棄し、前記共通バス40が獲得されたことを示すバ
ス獲得信号を入力した場合は、前記スレーブモジュール
にアクセスしこのアクセスを開始してから前記スレーブ
モジュールより応答を受けるまでの間に予め定めた時間
が経過したことを示す第二のタイムアップ信号を入力し
た場合は、バスアクセスエラーとして前記スレーブモジ
ュールへのアクセスを終了させる制御手段1と、前記制
御手段1から前記バス使用権要求信号を受け、前記バス
要求信号を前記バス要求線30に出力して他の前記マス
タモジュールとの間で前記共通バス40の獲得の調停を
行い前記共通バス40を獲得し前記バス獲得信号を出力
する調停手段2と、前記制御手段1から前記バス使用権
要求信号を受け、この信号を受けてから予め定めた時間
が経過したときに前記第一のタイムアップ信号であるバ
ス使用権要求中止信号を出力する第一のタイマ手段4
と、前記調停手段2から前記バス獲得信号を受け、この
信号を受けてから予め定めた時間が経過したときに前記
第二のタイムアップ信号であるバスアクセス中止信号を
出力する第二のタイマ手段3とにより構成されている。
The embodiment shown in FIG. 1 is a common bus 40.
And the master module 1 connected to the bus request line 30 for transmitting a bus request signal requesting acquisition of the common bus 40.
0 to a master module 1N and a slave module 20 connected to the common bus 40 and accessed from the master module that has acquired the common bus 40 using the common bus 40 and outputs a response to the access.
From the slave module 2N to the slave module 2N, and the master module outputs a bus use right request signal and indicates that a predetermined time elapses from the output to the acquisition of the common bus 40. When the time-up signal is input, the request for the right to use the common bus 40 is abandoned, and when the bus acquisition signal indicating that the common bus 40 is acquired is input, the slave module is accessed. If a second time-up signal indicating that a predetermined time has elapsed between the start of access and the reception of a response from the slave module is input, a bus access error occurs and the slave module is accessed. The control means 1 for terminating and the bus use right request signal from the control means 1 are received, and the bus request signal is sent to the bus. Arbitration means 2 for outputting to the request line 30 to arbitrate acquisition of the common bus 40 with another master module, acquire the common bus 40, and output the bus acquisition signal; and the control means 1. The first timer means 4 which receives the bus usage right request signal and outputs a bus usage right request cancel signal which is the first time-up signal when a predetermined time has elapsed after receiving the signal.
Second timer means for receiving the bus acquisition signal from the arbitration means 2 and outputting a bus access stop signal which is the second time-up signal when a predetermined time has elapsed after receiving the signal. 3 and 3.

【0017】次に、本発明のバスアクセス方式の動作を
図2および図3を参照して詳細に説明する。
Next, the operation of the bus access method of the present invention will be described in detail with reference to FIGS.

【0018】図2は、本実施の形態の動作の一例を示す
流れ図である。
FIG. 2 is a flow chart showing an example of the operation of this embodiment.

【0019】図3は、マスタモジュール10の調停手段
の調停動作を説明する図であり、この調停手段2は、前
記制御手段1からバス使用権要求信号を受け、前記マス
タモジュール11からマスタモジュール1Nのバス要求
信号の状態を示すバス状態信号がすべて”OFF”(こ
こで”OFF”はバス要求信号が出力されていないこと
を示す。同様に”ON”はバス要求信号が出力されてい
ることを示す)であることを確認してからバス要求線3
0にバス要求信号を出力し、この出力の後に前記バス状
態信号のうち予め定められた前記共通バス獲得の優先順
位がこのマスタモジュール10の優先順位より高いモジ
ュールの前記バス状態信号が”OFF”であることを再
度確認してから前記共通バス40を獲得したことを示す
バス獲得信号を前記制御手段1と前記第一のタイマ手段
4と前記第二のタイマ手段3とに出力するようにしてい
る。この図3では、マスタモジュール10を例にして説
明したが、他のマスタモジュールの調停手段2の調停動
作も同様である。
FIG. 3 is a diagram for explaining the arbitration operation of the arbitration means of the master module 10. The arbitration means 2 receives a bus use right request signal from the control means 1 and receives from the master module 11 a master module 1N. All bus status signals indicating the status of the bus request signal are “OFF” (here, “OFF” indicates that the bus request signal is not output. Similarly, “ON” indicates that the bus request signal is output. Bus request line 3 after confirming that
0, a bus request signal is output to 0, and after this output, the bus status signal of a module having a predetermined priority of the common bus acquisition out of the bus status signals higher than the priority of the master module 10 is “OFF”. Then, a bus acquisition signal indicating that the common bus 40 has been acquired is output to the control means 1, the first timer means 4 and the second timer means 3. There is. In FIG. 3, the master module 10 is described as an example, but the arbitration operation of the arbitration means 2 of another master module is similar.

【0020】図2において、前記共通バス40の使用を
望むマスタモジュールの前記制御手段1は、前記第一の
タイマ手段4と前記調停手段2とに前記バス使用権要求
信号を出力する(S1)。
In FIG. 2, the control means 1 of the master module desiring to use the common bus 40 outputs the bus use right request signal to the first timer means 4 and the arbitration means 2 (S1). .

【0021】前記第一のタイマ手段4は、この要求信号
を受け、時間の計測を開始し、この計測した時間が共通
バス40の調停に掛かる平均時間である5μsから10
μs好ましくは8μs等の予め定めた時間を経過するま
であるいは前記調停手段2から前記共通バス40を獲得
したことを示すバス獲得信号を受けるまで前記時間を計
測し、この時間を計測している間に、前記バス獲得信号
を受けた場合にはこの時間の計測を中止し(S2)、前
記計測した時間が前記予め定めた時間を経過した場合に
は、前記第一のタイムアップ信号である前記バス使用権
要求中止信号を前記制御手段1に出力する(S3)。
The first timer means 4 receives the request signal, starts measuring time, and the measured time is 5 μs to 10 μs which is the average time taken for arbitration of the common bus 40.
[mu] s, preferably 8 [mu] s or the like until a predetermined time elapses or until a bus acquisition signal indicating that the common bus 40 has been acquired is received from the arbitration means 2 and while measuring this time. When the bus acquisition signal is received, the measurement of the time is stopped (S2), and when the measured time exceeds the predetermined time, the time is the first time-up signal. A bus use right request cancel signal is output to the control means 1 (S3).

【0022】前記調停手段2は、図3に示したように前
記ステップ1(S1)で前記制御手段1から出力された
前記バス使用権要求信号を受けて起動し、前記バス要求
線30からバス状態信号を読み取りすべての状態信号
が”OFF”になるまで待ちこの待っている間に前記バ
ス使用権要求中止信号を受けた場合には前記共通バス4
0の調停を中止し(S4)、前記バス状態信号がすべ
て”OFF”の場合には、バス要求信号をバス要求線3
0を介して他のマスタモジュールに出力し(S5)、再
度前記バス状態信号を読み取り自己のマスタモジュール
より前記共通バス40獲得の優先順位が高いマスタモジ
ュールのバス状態信号を調べ(S6)、この調べた結果
が”OFF”を示す場合は共通バス40を獲得したこと
を示すバス獲得信号を前記制御部と前記第一のタイマ手
段4と前記第二のタイマ手段3とに出力し(S7)、前
記ステップ6(S6)で調べた結果が”ON”を示す場
合にはバス要求信号の出力を停止し(S8)、前記ステ
ップ4(S4)へ続けて制御を続行する。
As shown in FIG. 3, the arbitration means 2 is activated by receiving the bus use right request signal output from the control means 1 in the step 1 (S1), and starts the bus from the bus request line 30. Wait until all the status signals are read "OFF" after reading the status signals. If the bus usage right request cancel signal is received during this waiting time, the common bus 4
When the arbitration of 0 is stopped (S4) and all the bus status signals are "OFF", the bus request signal is sent to the bus request line 3
It is output to another master module via 0 (S5), the bus status signal is read again, and the bus status signal of the master module having a higher priority of acquisition of the common bus 40 than its own master module is checked (S6). If the check result indicates "OFF", a bus acquisition signal indicating that the common bus 40 has been acquired is output to the control unit, the first timer means 4 and the second timer means 3 (S7). If the result of the examination in step 6 (S6) indicates "ON", the output of the bus request signal is stopped (S8), and control is continued following step 4 (S4).

【0023】前記制御手段1は、前記ステップ3(S
3)で前記第一のタイマ手段4より出力されたバス使用
権要求中止信号かまたは前記ステップ7(S7)で前記
調停手段2より出力されたバス獲得信号を受けこの受け
た信号が何の信号かを調べ(S9)、この調べた結果が
バス獲得信号を示す場合は、このモジュールがアクセス
を望んだスレーブモジュールのアドレスとデータとを共
通バス40に出力し(S10)、前記ステップ9(S
9)で調べた結果がバス使用権要求中止信号を示す場合
はバス使用権要求中止信号を前記調停手段2に出力し
(S11)、バスアクセス処理を中止する。この中止と
なるようなときは、このシステムの共通バス40は高頻
度で使用されているので、前記共通バス40が獲得でき
る可能性は低く、前記バス使用権要求を続けて行うと前
記制御手段1の使用効率の悪化を招くため、前記バスア
クセス処理の中止から予め定めた時間経過後に前記ステ
ップ1(S1)からバスアクセス処理を再開させるよう
にし、この間前記制御手段1に他の処理を行わせるよう
にする。
The control means 1 controls the step 3 (S
In step 3), the bus use right request cancel signal output from the first timer means 4 or the bus acquisition signal output from the arbitration means 2 in step 7 (S7) is received. If the result of this check indicates a bus acquisition signal, the address and data of the slave module which this module desires to access are output to the common bus 40 (S10), and the step 9 (S9) is executed.
If the result checked in 9) indicates a bus use right request stop signal, the bus use right request stop signal is output to the arbitration means 2 (S11) and the bus access processing is stopped. If this is the case, the common bus 40 of this system is frequently used, so the possibility that the common bus 40 can be acquired is low, and if the bus use right request is made continuously, the control means will be executed. In order to cause the deterioration of the use efficiency of No. 1, the bus access processing is restarted from step 1 (S1) after a predetermined time has elapsed from the suspension of the bus access processing, and other processing is performed in the control means 1 during this time. I will let you.

【0024】前記第二のタイマ手段3は、前記ステップ
7(S7)で前記調停手段2より出力されたバス獲得信
号を受け、時間の計測を開始し、この計測した時間が前
記制御手段1による前記スレーブモジュールに対するア
クセスの制御に掛かる平均時間である5μsから10μ
s好ましくは8μs等の予め定めた時間を経過するまで
あるいは前記制御手段1からバスアクセスを終了したこ
とを示すバスアクセス終了信号を受けるまで前記時間を
計測し、この時間を計測している間に前記バスアクセス
終了信号を受けた場合には計測を中止し(S12)、前
記計測した時間が前記予め定めた時間を経過した場合に
は、前記第二のタイムアップ信号であるバスアクセスを
中止するバスアクセス中止信号を前記制御手段1に出力
する(S13)。
The second timer means 3 receives the bus acquisition signal output from the arbitration means 2 in step 7 (S7), starts time measurement, and the measured time is controlled by the control means 1. The average time required to control access to the slave module is 5 μs to 10 μs
s Preferably, the time is measured until a predetermined time such as 8 μs elapses or until a bus access end signal indicating that the bus access is ended is received from the control means 1, and while the time is being measured When the bus access end signal is received, the measurement is stopped (S12), and when the measured time exceeds the predetermined time, the bus access which is the second time-up signal is stopped. A bus access stop signal is output to the control means 1 (S13).

【0025】前記制御手段1は、このバスアクセス中止
信号かあるいは前記ステップ10(S10)でアクセス
した前記スレーブモジュールからの応答を受けこれが中
止信号か応答かを調べ(S14)、この調べた結果が中
止信号を示す場合は、バスアクセスを中止しバスアクセ
ス終了信号を前記調停手段2に出力し(S15)、バス
アクセスエラーとしてバスアクセス処理を終了する。ま
た、前記ステップ14(S14)で調べた結果が応答を
示す場合には、バスアクセス終了信号を前記調停手段2
に出力し(S16)、バスアクセス処理を正常終了す
る。
The control means 1 receives the bus access stop signal or the response from the slave module accessed in step 10 (S10) and checks whether this is a stop signal or a response (S14). If the signal indicates a stop signal, the bus access is stopped, a bus access end signal is output to the arbitration means 2 (S15), and the bus access processing ends as a bus access error. If the result of the examination in step 14 (S14) indicates a response, the bus access end signal is sent to the arbitration means 2.
(S16), and the bus access process ends normally.

【0026】前記調停手段2は、前記ステップ15(S
15)と前記ステップ16(S16)で前記制御手段1
から出力された前記バスアクセス終了信号を受け、前記
バス要求線30への前記バス要求信号の出力を停止する
(S17)。
The arbitration means 2 uses the step 15 (S
15) and the control means 1 in step 16 (S16).
Upon receiving the bus access end signal output from the bus request signal, the output of the bus request signal to the bus request line 30 is stopped (S17).

【0027】以上の説明では、第一のタイマ手段4と第
二のタイマ手段3との二つのタイマ手段を設けた例を示
したがこれらのタイマ手段は並列して動作しないので同
様の動作を一つのタイマ手段に行わせても良い
In the above description, an example in which the two timer means, that is, the first timer means 4 and the second timer means 3 are provided, is shown. However, since these timer means do not operate in parallel, the same operation is performed. It may be performed by one timer means.

【発明の効果】以上説明したように、本発明のバスアク
セス方式によれば、共通バス獲得の優先順位の高低に関
わらず、第二のタイマ手段3により共通バス40を獲得
してからバスアクセス処理を終了するまでの時間を計測
するので、共通バス獲得の優先順位の低いマスタモジュ
ールがバスを獲得しても、アクセスしたスレーブモジュ
ールが応答するまえにタイムアップすることが減少する
ため、共通バス40の使用効率が向上する。
As described above, according to the bus access method of the present invention, the second timer means 3 acquires the common bus 40 and then the bus access regardless of the priority of the common bus acquisition. Since the time until the processing is completed is measured, even if the master module with a low priority of common bus acquisition acquires the bus, the time up before the accessed slave module responds is reduced. The use efficiency of 40 is improved.

【0028】また、共通バス40を頻繁に使用するシス
テムのような前記共通バス40の獲得待ちの状態が続く
システムの場合にも、共通バス40の使用権を要求して
から共通バス40を獲得するまでの時間を測定する第一
のタイマ手段4のタイムアップまで共通バス40の獲得
を待ち、このタイムアップにより前記バスアクセス処理
を中止できるので、前記共通バス40使用権の獲得を単
に待ち続けることがなくなるため、マスタモジュールの
制御手段1の使用効率が向上する。
Also, in the case of a system such as a system which frequently uses the common bus 40, in which the waiting state of the common bus 40 continues, the right to use the common bus 40 is requested and then the common bus 40 is acquired. The acquisition of the common bus 40 is waited until the time of the first timer means 4 for measuring the time until it is reached, and the bus access processing can be stopped by this time up, so that the acquisition of the common bus 40 usage right is simply kept waiting. As a result, the use efficiency of the control means 1 of the master module is improved.

【0029】さらに、前記バスアクセス処理の中止から
予め定めた時間経過後にバスアクセス処理を再開させる
ようにしているので、前記マスタモジュールの制御手段
1の使用効率が向上する。
Further, since the bus access processing is restarted after a predetermined time has elapsed from the suspension of the bus access processing, the use efficiency of the control means 1 of the master module is improved.

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

【図1】本発明のバスアクセス方式の一つの実施の形態
を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a bus access system of the present invention.

【図2】本実施の形態の動作の一例を示す流れ図であ
る。
FIG. 2 is a flow chart showing an example of the operation of the present embodiment.

【図3】マスタモジュール10の調停手段の調停動作を
説明する図である。
FIG. 3 is a diagram illustrating an arbitration operation of an arbitration unit of a master module 10.

【図4】従来のバスアクセス方式の一例を示すブロック
図である。
FIG. 4 is a block diagram showing an example of a conventional bus access method.

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

1 制御手段 2 調停手段 3 第二のタイマ手段 4 第一のタイマ手段 5 制御部 6 調停部 7 タイマ部 10から1N マスタモジュール 20から2N スレーブモジュール 30 バス要求線 40 共通バス 80から8N マスタモジュール 1 Control Means 2 Arbitration Means 3 Second Timer Means 4 First Timer Means 5 Control Units 6 Arbitration Units 7 Timers 10 to 1N Master Modules 20 to 2N Slave Modules 30 Bus Request Lines 40 Common Buses 80 to 8N Master Modules

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数のモジュールが接続された共通バス
を前記複数のモジュールのうちの前記共通バスの使用を
望む各々のモジュールがそれぞれ前記共通バスの獲得を
要求しこの要求により前記共通バスを獲得した前記モジ
ュールが前記共通バスを使用して他の前記モジュールに
対してアクセスするバスアクセス方式において、 前記共通バスの使用を望む前記モジュールは、 前記共通バスの獲得を要求してからこの共通バスを獲得
するまで時間を計測し、この計測した時間が予め定めた
時間を経過した場合に第一のタイムアップ信号を出力す
る第一のタイマ手段と、 前記共通バスを獲得してからこの獲得した前記共通バス
を使用して前記アクセスした他の前記モジュールからの
このアクセスに対する応答を受けるまで時間を計測し、
この計測した時間が予め定めた時間を経過した場合に第
二のタイムアップ信号を出力する第二のタイマ手段と、 を備えたことを特徴とするバスアクセス方式。
1. A common bus to which a plurality of modules are connected, each module of the plurality of modules desiring to use the common bus requests acquisition of the common bus, and the common bus is acquired by this request. In the bus access method in which the module accesses the other module using the common bus, the module desiring to use the common bus requests the acquisition of the common bus before Measuring the time until acquisition, and first timer means for outputting a first time-up signal when the measured time has passed a predetermined time; and after acquiring the common bus Measuring the time to receive a response to this access from the other module that accessed using the common bus,
A bus access method comprising: a second timer unit that outputs a second time-up signal when the measured time exceeds a predetermined time.
【請求項2】 前記共通バスに接続された前記複数のモ
ジュールは、 前記共通バスの獲得を要求する信号を伝えるバス要求線
に接続され前記共通バスの使用を望むときに前記共通バ
スの獲得を要求する信号を前記バス要求線に出力して前
記共通バスの使用権を獲得する複数のマスタモジュール
と、 前記共通バスを獲得したマスタモジュールから前記共通
バスを使用してアクセスされこのアクセスに対する応答
を出力する複数のスレーブモジュールと、 により構成し、かつ、前記マスタモジュールは、 前記共通バスの獲得を要求する信号を出力し、この信号
を出力してから前記共通バスを獲得するまでの間に予め
定めた時間が経過したことを示す前記第一のタイムアッ
プ信号を入力した場合は、前記共通バスの獲得の要求を
放棄し、前記共通バスが獲得されたことを示すバス獲得
信号を入力した場合は、前記スレーブモジュールに前記
共通バスを使用してアクセスし、前記バス獲得信号を入
力してから前記アクセスしたスレーブモジュールより前
記アクセスに対する応答を受けるまでの間に予め定めた
時間が経過したことを示す前記第二のタイムアップ信号
を入力した場合は、バスアクセスエラーとして前記スレ
ーブモジュールへのアクセスを終了させる制御手段と、 前記制御手段から前記共通バスの使用権を要求する信号
を受け、前記バス要求線を介して他の前記マスタモジュ
ールとの間で前記共通バスの獲得の調停を行い前記共通
バスを獲得し前記バス獲得信号を出力する調停手段と、 前記共通バスの使用権を要求する信号を受け、この信号
を受けてから予め定めた時間が経過したときに前記第一
のタイムアップ信号を出力する第一のタイマ手段と、 前記バス獲得信号を受け、この信号を受けてから予め定
めた時間が経過したときに前記第二のタイムアップ信号
を出力する第二のタイマ手段と、 を備えたことを特徴とする請求項1記載のバスアクセス
方式。
2. The plurality of modules connected to the common bus are connected to a bus request line for transmitting a signal requesting acquisition of the common bus, and acquire the common bus when the use of the common bus is desired. A plurality of master modules that output a request signal to the bus request line to acquire the right to use the common bus, and a master module that has acquired the common bus are accessed using the common bus and a response to the access is sent. A plurality of slave modules for outputting, and the master module outputs a signal requesting acquisition of the common bus, and outputs the signal in advance and before acquiring the common bus. When the first time-up signal indicating that the predetermined time has elapsed is input, the request for acquisition of the common bus is abandoned and the common When a bus acquisition signal indicating that a bus has been acquired is input, the slave module is accessed using the common bus, and after the bus acquisition signal is input, the accessed slave module responds to the access. When the second time-up signal indicating that a predetermined time has elapsed before receiving is received, a control means for ending access to the slave module as a bus access error, and the control means Receiving a signal requesting the right to use the common bus, arbitrating the acquisition of the common bus with another master module via the bus request line, acquiring the common bus, and outputting the bus acquisition signal. And a signal requesting the right to use the common bus, and a predetermined time has elapsed since the signal was received. First timer means for outputting the first time-up signal when receiving the bus acquisition signal, and the second time-up signal when the predetermined time has elapsed after receiving the bus acquisition signal. The bus access method according to claim 1, further comprising: second timer means for outputting.
【請求項3】 前記制御手段は、前記第一のタイムアッ
プ信号を入力した場合にはこの信号を入力してから予め
定めた時間経過後に再び前記共通バスの使用権を要求す
る信号を出力するようにしたことを特徴とする請求項2
記載のバスアクセス方式。
3. The control means, when the first time-up signal is input, outputs a signal requesting the right to use the common bus again after a predetermined time has elapsed from the input of this signal. 3. The method according to claim 2, wherein
Bus access method described.
JP33948695A 1995-12-26 1995-12-26 Bus access system Pending JPH09179817A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33948695A JPH09179817A (en) 1995-12-26 1995-12-26 Bus access system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33948695A JPH09179817A (en) 1995-12-26 1995-12-26 Bus access system

Publications (1)

Publication Number Publication Date
JPH09179817A true JPH09179817A (en) 1997-07-11

Family

ID=18327927

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33948695A Pending JPH09179817A (en) 1995-12-26 1995-12-26 Bus access system

Country Status (1)

Country Link
JP (1) JPH09179817A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008250632A (en) * 2007-03-30 2008-10-16 Matsushita Electric Ind Co Ltd Data processing system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6132162A (en) * 1984-07-24 1986-02-14 Fuji Photo Film Co Ltd Competition preventing circuit of information transfer
JPH0454664A (en) * 1990-06-25 1992-02-21 Toyoda Mach Works Ltd Controller having plural cpus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6132162A (en) * 1984-07-24 1986-02-14 Fuji Photo Film Co Ltd Competition preventing circuit of information transfer
JPH0454664A (en) * 1990-06-25 1992-02-21 Toyoda Mach Works Ltd Controller having plural cpus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008250632A (en) * 2007-03-30 2008-10-16 Matsushita Electric Ind Co Ltd Data processing system

Similar Documents

Publication Publication Date Title
JP2986176B2 (en) Bus right control system and bus system
KR100708096B1 (en) Bus system and execution scheduling method for access commands thereof
JP2002055947A (en) System bus and its bus arbitrating method
JPH06231074A (en) Multiple access system for system bus
US5822549A (en) Computer system and bus controller for controlling access to a computer bus
JPH09179817A (en) Bus access system
JP2647035B2 (en) Bus control circuit
JPH0343804A (en) Sequence controller
JPH0962640A (en) Access control method for shared memory
JP3797049B2 (en) Communication device between control nodes
JPH06266657A (en) Information processor
JP3240863B2 (en) Arbitration circuit
JP5111940B2 (en) Information processing apparatus and access control method
KR950009071B1 (en) Data transmission control device of hipi-bus
JP2802091B2 (en) Interrupt vector control method
JPH03137754A (en) Access control system for shared memory
JPH09171496A (en) Data transfer control system
JP2837893B2 (en) Microcomputer device
JP3458439B2 (en) Information processing device
JPH06314231A (en) Shared memory access control method
JPH11232215A (en) Bus controller, bus master device and method for controlling bus control system
JPH04276845A (en) Bus arbitration circuit
JPH09160868A (en) Bus arbitration device and method therefor
JPH08314852A (en) Bus arbiter
JPH04106651A (en) Controller for system bus

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19980519