[go: up one dir, main page]

JPH08180027A - Arbitration circuit - Google Patents

Arbitration circuit

Info

Publication number
JPH08180027A
JPH08180027A JP6335738A JP33573894A JPH08180027A JP H08180027 A JPH08180027 A JP H08180027A JP 6335738 A JP6335738 A JP 6335738A JP 33573894 A JP33573894 A JP 33573894A JP H08180027 A JPH08180027 A JP H08180027A
Authority
JP
Japan
Prior art keywords
access
memory
bus
signal
processor
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
JP6335738A
Other languages
Japanese (ja)
Other versions
JP3240863B2 (en
Inventor
Takaya Kobori
隆哉 小堀
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.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP33573894A priority Critical patent/JP3240863B2/en
Publication of JPH08180027A publication Critical patent/JPH08180027A/en
Application granted granted Critical
Publication of JP3240863B2 publication Critical patent/JP3240863B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

(57)【要約】 【目的】 競合時のウエイト時間を短縮してシステムの
処理効率を改善する。 【構成】 低速のMPU2から共有のメモリ10へのメ
モリ選択信号bが出力されてアクセス要求されると、M
PU2のアクセスタイミングに合わせて、調停回路7が
メモリ制御信号eをメモリ10へ送るとともに、リード
アクセスの場合はラッチ回路21へメモリアクセス許可
信号gを、ライトアクセスの場合はバッファ回路22へ
メモリアクセス許可信号hを送る。ラッチ回路21はメ
モリ10からバス11上に出力されたリードデータをい
ったん保持してからMPU2側のバス4へ転送する。バ
ッファ回路22はMPU2からバス4上に送られたライ
トデータをバス11上に転送する。
(57) [Summary] [Purpose] To reduce the wait time during competition and improve the processing efficiency of the system. [Configuration] When a low-speed MPU 2 outputs a memory selection signal b to the shared memory 10 and an access request is made, M
The arbitration circuit 7 sends the memory control signal e to the memory 10 in accordance with the access timing of the PU 2, and at the time of read access, the memory access permission signal g is sent to the latch circuit 21 and to the buffer circuit 22 in the case of write access. Send the permission signal h. The latch circuit 21 temporarily holds the read data output from the memory 10 onto the bus 11 and then transfers the read data to the bus 4 on the MPU 2 side. The buffer circuit 22 transfers the write data sent from the MPU 2 onto the bus 4 onto the bus 11.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、アクセス速度の異なる
2個のプロセッサをメモリ、バス等の共有資源と接続す
る場合に用いられる調停回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an arbitration circuit used when two processors having different access speeds are connected to a shared resource such as a memory or a bus.

【0002】[0002]

【従来の技術】従来、アクセス速度の異なる2個のプロ
セッサをメモリ、バス等の共有資源と接続する場合に用
いられる調停回路には、以下の2つの方式がある。 (1)専用の要求信号(リクエスト信号)と許可信号
(アクノリッジ信号)により制御する方式 これは、複数のプロセッサを共通のデータバス、アドレ
スバス上にそれぞれ接続し、共有資源も同様にバス上に
接続しておき、通常は、1つの主となるプロセッサ(以
下、主プロセッサ)がバスおよび共有資源を使用してい
る。他のプロセッサがバスおよび共有資源を使用しよう
とする場合は、主プロセッサに対して要求信号(リクエ
スト信号)を出力する。それに対して、主プロセッサ
は、自己の処理中の動作が終了し、バスの使用権を譲渡
することが可能な状態であれば、許可信号(アクノリッ
ジ信号)を返すとともに、アドレスバス、データバス等
をハイインピーダンスにする。許可信号を受けたプロセ
ッサはバスの使用が認められたことによりバスを使用し
て必要なアクセス処理を行う。
2. Description of the Related Art Conventionally, there are the following two types of arbitration circuits used when connecting two processors having different access speeds to a shared resource such as a memory and a bus. (1) Method of controlling by dedicated request signal (request signal) and permission signal (acknowledge signal) This is to connect a plurality of processors on a common data bus and address bus respectively, and share resources on the bus as well. Normally, one main processor (hereinafter, main processor) uses the bus and the shared resource after being connected. When another processor wants to use the bus and the shared resource, it outputs a request signal (request signal) to the main processor. On the other hand, the main processor returns an enable signal (acknowledge signal) and sends an address bus, data bus, etc. when the operation during its own processing is completed and the right to use the bus can be transferred. To high impedance. The processor that has received the permission signal performs the necessary access processing using the bus because the use of the bus is recognized.

【0003】(2)応答信号(レディ信号)により制御
する方式 これは複数のプロセッサをそれぞれ独立したバスに接続
し、共有資源も独立したバス上に接続しておき、さらに
プロセッサが接続された各バスと共有資源が接続された
バスとの間にバッファ回路を設置する。各プロセッサが
共有資源をアクセスするには、バッファ回路の機能をア
クセス時のみイネーブル状態として、論理的にプロセッ
サのバスと共有資源のバスを接続することにより行われ
る。また、複数のプロセッサが同時に、共有資源をアク
セスしようとした場合、通常は先にアクセスを開始した
プロセッサからアクセスを開始し、後からアクセスを開
始しようとしたプロセッサは、プロセッサに入力される
応答信号(レディ信号)をインアクティブ にする等に
よりウエイト状態としておき、先にアクセスを開始した
プロセッサのアクセスが完了後に、ウエイト状態を解除
してアクセスを実行させる。
(2) Method of controlling by response signal (ready signal) In this method, a plurality of processors are connected to independent buses, shared resources are also connected on independent buses, and further each processor is connected. A buffer circuit is installed between the bus and the bus to which the shared resource is connected. Each processor accesses the shared resource by enabling the function of the buffer circuit only during access and logically connecting the bus of the processor and the bus of the shared resource. In addition, when multiple processors try to access the shared resource at the same time, the processor that started the access normally starts the access, and the processor that tries to start the access later starts the response signal input to the processor. The (ready signal) is made inactive by setting it in a wait state, and after the access of the processor that started the access is completed, the wait state is released and the access is executed.

【0004】図4は、後者の方式を用いた従来例の構成
を示すブロック図であり、図5はその動作を示すタイミ
ングチャートである。この従来例は、図に示されるよう
に、高速のマイクロプロセッサ(MPU)1と低速のマ
イクロプロセッサ(MPU)2とがそれぞれ専用のMP
U側のデータバス3、4を介して、アドレスデコーダ
5、6およびトランシーバ回路8、9に接続されてい
る。トランシーバ回路8、9はデータバス11を介して
共有のメモリ10に接続されている。さらに、これらM
PU1、アドレスデコーダ5、6、トランシーバ回路
8、9、メモリ10は、それぞれ信号線を介して、調停
回路7に接続されている。
FIG. 4 is a block diagram showing a configuration of a conventional example using the latter method, and FIG. 5 is a timing chart showing its operation. In this conventional example, as shown in the figure, a high-speed microprocessor (MPU) 1 and a low-speed microprocessor (MPU) 2 are dedicated MPs.
It is connected to the address decoders 5 and 6 and the transceiver circuits 8 and 9 via the U-side data buses 3 and 4. The transceiver circuits 8 and 9 are connected to a shared memory 10 via a data bus 11. Furthermore, these M
The PU 1, the address decoders 5 and 6, the transceiver circuits 8 and 9, and the memory 10 are connected to the arbitration circuit 7 via signal lines, respectively.

【0005】この調停回路7の動作は、図5に示すよう
に、アドレスデコーダ5、6を介してMPU1、MPU
2から送られてくるメモリ選択信号a,bを、それぞれ
のシステムクロックの立ち上がりエッジで監視し、先に
信号を検出した方に使用権を与える。なお、メモリ選択
信号a,bが全く同時に送られた場合は、信号bを優先
してMPU2に使用権を与える。また、MPU1および
MPU2によるメモリ10へのアクセスが競合すると、
低速なMPU2のアクセス期間中(時刻t1〜t2)
は、MPU1からアクセス要求があってもウエイト状態
となる。ここで、図の右側部分のアクセス競合時に示さ
れるように、MPU2のアクセス開始がMPU1のアク
セス開始よりも1クロックだけ早い場合がワーストケー
スとなり、MPU1は最長の待ち時間(時刻t3〜t
4)となる。この間、図示例では、ウエイトステートT
1wが14個挿入される。
As shown in FIG. 5, the operation of the arbitration circuit 7 includes MPU1 and MPU via address decoders 5 and 6, respectively.
The memory selection signals a and b sent from 2 are monitored at the rising edges of the respective system clocks, and the right of use is given to the one who has detected the signal first. When the memory selection signals a and b are sent at exactly the same time, the signal b is given priority and the usage right is given to the MPU 2. Further, when the access to the memory 10 by the MPU1 and MPU2 competes with each other,
During access period of low-speed MPU2 (time t1 to t2)
Becomes a wait state even if an access request is issued from the MPU 1. Here, as shown at the time of access conflict in the right part of the figure, the worst case is when the access start of MPU2 is earlier than the access start of MPU1 by one clock, and the MPU1 has the longest waiting time (time t3 to t).
4). Meanwhile, in the illustrated example, the wait state T
14 1w are inserted.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、これら
の従来の方式には、それぞれ次のような問題があった。 (1)前者の要求信号/許可信号方式では、共有のバス
を主プロセッサが明け渡して他のプロセッサに使用させ
るため、その間、主プロセッサはバスおよび共有資源の
使用ができない。また、要求信号/許可信号を用いてバ
スを明け渡す手続きにも余分な時間が必要となり、その
分、処理能力が低下するという問題があった。 (2)後者の応答信号制御による方式では、先取り優先
方式であるため、一方のプロセッサの処理速度が他方に
比べて特に遅いと、遅いプロセッサのアクセス時間が長
くなり、その間に、高速のプロセッサがアクセスを開始
しようとしても、長時間待たされてしまい、高速プロセ
ッサの性能が充分に発揮されないという問題があった。
これは、まさに図5におけるワーストケースの場合であ
る。
However, each of these conventional methods has the following problems. (1) In the former request signal / permission signal system, the main processor yields the shared bus and allows the other processors to use it, during which time the main processor cannot use the bus and shared resources. Further, there is a problem that extra time is required for the procedure for surrendering the bus using the request signal / permission signal, and the processing capacity is reduced accordingly. (2) The latter method of controlling the response signal is a preemptive priority method. Therefore, if the processing speed of one processor is particularly slower than that of the other, the access time of the slow processor becomes long, and in the meantime, a high speed processor Even if the access is started, there is a problem that the high-speed processor does not exhibit its full performance because it has to wait for a long time.
This is exactly the worst case case in FIG.

【0007】(3)同じく、後者の応答信号制御による
方式では、競合が発生した場合、要求の遅かったプロセ
ッサのアクセス時間を延長させてウエイト状態にする必
要があり、アクセス時間を変化させる手段を持たないプ
ロセッサには適用できないという制限があった。 本発明は上記問題点を解決するためになされたもので、
その目的とするところは、競合発生時に高速のプロセッ
サの待ち時間を短くして、システム全体のアクセスに関
する処理効率を向上させるとともに、低速のプロセッサ
にアクセス時間が固定式のプロセッサを用いることこと
ができる調停回路を提供することにある。
(3) Similarly, in the latter method based on response signal control, when contention occurs, it is necessary to extend the access time of the processor with a slow request to put it in the wait state. There was a restriction that it could not be applied to processors that do not have it. The present invention has been made to solve the above problems,
The purpose is to shorten the waiting time of the high-speed processor when contention occurs, improve the processing efficiency related to the access of the entire system, and use a processor with a fixed access time for the low-speed processor. To provide an arbitration circuit.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するため
に、第1の発明は、アクセス速度が互いに異なる2個の
プロセッサとこれら両プロセッサにバス接続された共有
メモリとの間にあって、一方のプロセッサから共有メモ
リに対するメモリ選択信号が出力されると、共有メモリ
に対してアクセスを許可するための制御信号を送信する
とともにアクセス要求プロセッサと共有メモリとを接続
するデータバス上に設置されているトランシーバ回路に
対してデータ転送の許可信号を送る調停回路において、
低速のプロセッサ側のトランシーバ回路として、共有メ
モリからデータバス上に送出されたリードデータをいっ
たん保持してから低速のプロセッサ側へ転送するラッチ
回路および低速のプロセッサからデータバス上に送出さ
れたライトデータを共有メモリ側へ転送するバッファ回
路をデータバス上に互いに並列に設置するとともに、低
速のプロセッサから共有メモリへメモリ選択信号が出力
されてアクセスが要求されると、低速のプロセッサのア
クセスタイミングに合わせ、共有メモリに対してアクセ
スを許可するための制御信号を送信するとともにリード
アクセスの場合はラッチ回路へ、ライトアクセスの場合
はバッファ回路へそれぞれデータ転送の許可信号を送る
手段を備えたことを特徴とする。
In order to achieve the above object, a first aspect of the present invention is provided between two processors having different access speeds from each other and a shared memory bus-connected to the two processors. When the memory selection signal for the shared memory is output from the processor, the transceiver transmits a control signal for permitting access to the shared memory and is installed on the data bus connecting the access request processor and the shared memory. In the arbitration circuit that sends a data transfer permission signal to the circuit,
As a transceiver circuit on the low-speed processor side, a latch circuit that holds read data sent from the shared memory on the data bus and then transfers it to the low-speed processor side, and write data sent on the data bus from the low-speed processor The buffer circuits that transfer the data to the shared memory side are installed in parallel on the data bus. A means for transmitting a control signal for permitting access to the shared memory and transmitting a permission signal for data transfer to the latch circuit in the case of read access and to the buffer circuit in the case of write access. And

【0009】第2の発明は、第1の発明において、低速
のプロセッサからメモリ選択信号が出力された後に高速
のプロセッサのシステムクロックを所定数カウントした
タイミングでアクセス許可制御信号およびデータ転送許
可信号を発生することを特徴とする。
According to a second aspect of the present invention, in the first aspect, the access permission control signal and the data transfer permission signal are set at a timing when a predetermined number of system clocks of the high speed processor are counted after the memory selection signal is output from the low speed processor. It is characterized by occurring.

【0010】[0010]

【作用】第1の発明においては、低速のプロセッサから
共有メモリへメモリ選択信号が出力されてアクセス要求
されると、低速のプロセッサのアクセスタイミングに合
わせて、アクセスを許可するための制御信号が共有メモ
リへ送信されると同時に、リードアクセスの場合はラッ
チ回路へ、ライトアクセスの場合はバッファ回路へそれ
ぞれデータ転送の許可信号が送られる。データ転送の許
可信号を送られたラッチ回路では、共有メモリからデー
タバス上に送出されたリードデータがいったん保持され
てから低速のプロセッサ側へ転送されて読み込まれる。
同様にデータ転送の許可信号を送られたバッファ回路を
介して、低速のプロセッサからデータバス上に送出され
たライトデータが共有メモリ側へ転送されて書き込まれ
る。
According to the first aspect of the present invention, when the memory selection signal is output from the low speed processor to the shared memory and an access request is made, the control signal for permitting access is shared in synchronization with the access timing of the low speed processor. Simultaneously with the transmission to the memory, a data transfer permission signal is sent to the latch circuit for read access and to the buffer circuit for write access. In the latch circuit to which the data transfer permission signal is sent, the read data sent from the shared memory onto the data bus is once held and then transferred to the low-speed processor side for reading.
Similarly, the write data sent from the low-speed processor onto the data bus is transferred to the shared memory side and written via the buffer circuit to which the data transfer permission signal is sent.

【0011】第2の発明においては、低速のプロセッサ
からメモリ選択信号が出力された後に高速のプロセッサ
のシステムクロックを所定数カウントし、それにもとづ
いてアクセス許可制御信号およびデータ転送許可信号が
発生する。
In the second aspect of the invention, after the memory selection signal is output from the low speed processor, the system clock of the high speed processor is counted by a predetermined number, and the access permission control signal and the data transfer permission signal are generated based on the count.

【0012】[0012]

【実施例】以下、図に沿って本発明の実施例を説明す
る。図1は本発明が適用されるシステムの構成を示すブ
ロック図であり、図2はその動作を示すタイミングチャ
ートである。このシステムは、図示されるように、アク
セス速度の異なる2つのマイクロプロセッサと、これら
に共有されるメモリとから構成される。すなわち、高速
のマイクロプロセッサ(MPU)1はバス3を介して、
アドレスデコーダ5およびトランシーバ回路8に接続さ
れる。トランシーバ回路8は、バス11を介して、共有
のメモリ10に接続されている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a system to which the present invention is applied, and FIG. 2 is a timing chart showing its operation. As shown in the figure, this system is composed of two microprocessors having different access speeds and a memory shared by them. That is, the high speed microprocessor (MPU) 1
It is connected to the address decoder 5 and the transceiver circuit 8. The transceiver circuit 8 is connected to the shared memory 10 via the bus 11.

【0013】低速のマイクロプロセッサ(MPU)2は
バス4を介して、アドレスデコーダ6およびラッチ回路
21、バッファ回路22に接続される。ラッチ回路2
1、バッファ回路22は、バス11を介して、メモリ1
0に接続されている。なお、バス3、4、11は、それ
ぞれデータバスとアドレスバスから構成される。また、
アドレスデコーダ5、6は、MPU1、2からバス3、
4へそれぞれ出力されたアドレスをデコードしてメモリ
選択信号a,bを生成し、調停回路7へ送る。調停回路
7は、メモリ選択信号a,bが入力されると、調停を行
い、いずれか一方のMPUに排他的に使用権を与える。
The low speed microprocessor (MPU) 2 is connected to an address decoder 6, a latch circuit 21 and a buffer circuit 22 via a bus 4. Latch circuit 2
1, the buffer circuit 22 is connected to the memory 1 via the bus 11.
Connected to 0. The buses 3, 4, 11 are each composed of a data bus and an address bus. Also,
The address decoders 5 and 6 are connected from the MPUs 1 and 2 to the bus 3,
The addresses output to 4 are decoded to generate memory selection signals a and b, which are sent to the arbitration circuit 7. When the memory selection signals a and b are input, the arbitration circuit 7 arbitrates and gives the exclusive right to either one of the MPUs.

【0014】ここで、MPU1、2は、図2に示される
ように、それぞれのシステムクロックの4個分の時間に
よりリードまたはライトのアクセスサイクルが構成され
る。この実施例では、MPU1がクロックサイクルT1
1,T12,T13,T14 により、MPU2がT21,T22,T23,
T24により、それぞれのアクセスサイクルが構成され
る。ここで高速のMPU1は低速のMPU2の4倍のア
クセス速度であるため、MPU2の1アクセスサイクル
は、MPU1のシステムクロックの16個分の長さとな
る。
Here, as shown in FIG. 2, the MPUs 1 and 2 form a read or write access cycle by the time corresponding to four system clocks. In this embodiment, the MPU1 has clock cycle T1.
1, T12, T13, T14, MPU2 is T21, T22, T23,
Each access cycle is constituted by T24. Since the high-speed MPU1 has an access speed four times that of the low-speed MPU2, one access cycle of the MPU2 has a length corresponding to 16 system clocks of the MPU1.

【0015】このMPU1のリード動作では、サイクル
T14の後縁でバス3上のデータを読み込み、ライト動作
ではサイクルT13,T14 でバス3上にデータを出力す
る。同様に、MPU2のリード動作では、サイクルT24
の後縁でバス4上のデータを読み込み、ライト動作では
サイクルT23,T24でバス4上にデータを出力する。ま
た、メモリ10は、MPU1のシステムクロック3個分
の時間以内でリードまたはライトされる。
In the read operation of the MPU 1, the data on the bus 3 is read at the trailing edge of the cycle T14, and in the write operation, the data is output on the bus 3 in the cycles T13 and T14. Similarly, in the read operation of MPU2, cycle T24
The data on the bus 4 is read at the trailing edge, and the data is output on the bus 4 in cycles T23 and T24 in the write operation. Further, the memory 10 is read or written within the time corresponding to three system clocks of the MPU 1.

【0016】次に、MPU1のアクセスについて詳述す
る。メモリ選択信号aが調停回路7に入力されて、MP
U1がメモリ10の使用権を得た場合は、調停回路7か
らデータ転送許可信号であるところのメモリアクセス許
可信号cがトランシーバ回路8へ送られる。同様に、レ
ディ信号fがMPU1へ、メモリ制御信号eがメモリ1
0へそれぞれ送られる。このメモリアクセス許可信号c
は、トランシーバ回路8の方向を指定して、バス3とバ
ス11間のデータ転送を許可するものである。すなわ
ち、リードの場合にはバス11からバス3へデータが転
送され、ライトの場合にはバス3からバス11へデータ
が転送される。
Next, the access of the MPU 1 will be described in detail. The memory selection signal a is input to the arbitration circuit 7 and MP
When U1 obtains the right to use the memory 10, the arbitration circuit 7 sends a memory access permission signal c, which is a data transfer permission signal, to the transceiver circuit 8. Similarly, the ready signal f is sent to the MPU 1 and the memory control signal e is sent to the memory 1
Sent to 0 respectively. This memory access permission signal c
Specifies the direction of the transceiver circuit 8 and permits data transfer between the bus 3 and the bus 11. That is, in the case of read, the data is transferred from the bus 11 to the bus 3, and in the case of write, the data is transferred from the bus 3 to the bus 11.

【0017】また、レディ信号fはMPU1のアクセス
を終結させるための信号であり、調停の結果がMPU1
をウエイトさせる場合はインアクティブにされるが、M
PU1のアクセスが可能な場合はアクティブにされる。
なお、メモリ制御信号eは、メモリ10へバス11上の
データを書き込ませたり、またはデータをバス11上へ
出力させるための信号である。
The ready signal f is a signal for terminating the access of the MPU1 and the result of the arbitration is the MPU1.
If you want to wait for
It is activated when PU1 can be accessed.
The memory control signal e is a signal for writing data on the bus 11 to the memory 10 or outputting data on the bus 11.

【0018】同様に、メモリ選択信号bが調停回路7に
入力されて、MPU2がメモリ10の使用権を得た場合
は、調停回路7からメモリ10へメモリ制御信号eが送
られるとともに、リードの場合にはラッチ回路21へ、
データ転送許可信号であるところのメモリアクセス許可
信号gが、ライトの場合にはバッファ回路22へデータ
転送許可信号であるところのメモリアクセス許可信号h
がそれぞれ送られる。ラッチ回路21へメモリアクセス
許可信号gが送られると、メモリ10からバス11上に
出力されたリードデータがいったんラッチ回路21に保
持されてからバス3側へ送られてMPU2に読み込まれ
る。また、バッファ回路22へメモリアクセス許可信号
hが送られると、MPU2からバス3上に送出されたラ
イトデータがバッファ回路22を介してバス11側へ送
られメモリ10へ書き込まれる。
Similarly, when the memory selection signal b is input to the arbitration circuit 7 and the MPU 2 obtains the right to use the memory 10, the arbitration circuit 7 sends the memory control signal e to the memory 10 and reads it. In the case, to the latch circuit 21,
When the memory access permission signal g which is a data transfer permission signal is a write, the memory access permission signal h which is a data transfer permission signal to the buffer circuit 22 is written.
Are sent respectively. When the memory access permission signal g is sent to the latch circuit 21, the read data output from the memory 10 onto the bus 11 is once held in the latch circuit 21, sent to the bus 3 side, and read into the MPU 2. When the memory access permission signal h is sent to the buffer circuit 22, the write data sent from the MPU 2 onto the bus 3 is sent to the bus 11 side via the buffer circuit 22 and written in the memory 10.

【0019】また、調停回路7では、MPU2のアクセ
ス要求を基準として競合の調停が行われる。つまり、図
2に示されるように、MPU2がデータをリードするタ
イミングはサイクルT24の後縁であり、ライトするタイ
ミングはサイクルT23,T24であるから、サイクルT21,
T22の期間は余分な時間となり、この間に、メモリ制御
信号eおよびメモリアクセス許可信号g、hを先行して
も無意味である。そこで、メモリ選択信号bが入力され
たタイミングから、MPU1のシステムクロックをカウ
ントし、10クロック目から3クロックの期間だけ、メ
モリ制御信号eとメモリアクセス許可信号gまたはhを
出力するようにして、バス(メモリバス)の占有時間
を、時刻t1〜t2間の必要最小限の時間にした。
In the arbitration circuit 7, arbitration of contention is performed based on the access request from the MPU 2. That is, as shown in FIG. 2, the MPU 2 reads the data at the trailing edge of the cycle T24 and the write timings at the cycles T23 and T24.
The period of T22 is an extra time, and it is meaningless to precede the memory control signal e and the memory access permission signals g and h during this period. Therefore, the system clock of the MPU 1 is counted from the timing when the memory selection signal b is input, and the memory control signal e and the memory access permission signal g or h are output for a period of 3 clocks from the 10th clock, The occupied time of the bus (memory bus) is set to the minimum required time between times t1 and t2.

【0020】またさらに、MPU2がデータをリードす
る場合はサイクルT24の最後までバス4上にデータが存
在する必要があるため、その間はラッチ回路21がデー
タを保持してバス4上に出力する。その結果、MPU2
のアクセス中にMPU1からアクセス要求があればMP
U1を待機させる。また、MPU2のアクセス要求中に
MPU1からのアクセス要求があった場合、MPU2の
アクセス開始までに余裕があれば先にMPU1にアクセ
スを行わせ、アクセス開始までに余裕がなければMPU
1を待機させる。
Further, when the MPU 2 reads the data, the data needs to be present on the bus 4 until the end of the cycle T24. Therefore, the latch circuit 21 holds the data and outputs it on the bus 4 during that period. As a result, MPU2
If there is an access request from MPU1 while accessing
Put U1 on standby. Further, when there is an access request from MPU1 during the access request of MPU2, if there is a margin before the access start of MPU2, MPU1 is accessed first, and if there is no margin before the access start, MPU1
Wait 1

【0021】それにより、MPU2にはウエイトがなく
なってレディ信号の入力が不要となり、MPU2として
アクセス時間を固定したタイプのマイクロプロセッサの
使用が可能になる。なお、図5の従来例に示したワース
トケースと同一条件の競合が、図2の右側部分のアクセ
ス競合の場合として示してあり、この実施例ではMPU
2に対してアクセス要求がなされた後であっても、MP
U1が待機することなく先にアクセスを行う。
As a result, the MPU 2 has no wait and the input of the ready signal becomes unnecessary, and it becomes possible to use a microprocessor of the type having a fixed access time as the MPU 2. It should be noted that contention under the same conditions as the worst case shown in the conventional example of FIG. 5 is shown as a case of access contention on the right side of FIG.
MP even after the access request is made to
U1 accesses first without waiting.

【0022】図3は、この実施例の競合におけるワース
トケースを示す。最初にMPU2からメモリ選択信号b
が出力されると、MPU1のシステムクロックをカウン
トし、8個のクロックをカウントした時刻t1に、MP
U1からメモリ選択信号aが出力される。しかし、この
時点ではMPU2がアクセスを開始する10個目のクロ
ックパルスまでに2クロック分の時間しか残っていない
ため、3クロック分の時間が必要なMPU1のアクセス
は不可能である。そこで、MPU1へのレディ信号fを
インアクティブにして、MPU2のメモリ使用が終了す
る時刻t2までMPU1をウエイト状態にする。このと
きのウエイトステートT1Wは5クロック分の長さとな
り、図5の従来例のワーストケースに比べて半分以下の
時間となる。
FIG. 3 shows the worst case in the competition of this embodiment. First, memory selection signal b from MPU2
Is output, the system clock of MPU1 is counted, and at time t1 when eight clocks are counted, MP
The memory selection signal a is output from U1. However, at this point, only the time of 2 clocks remains until the 10th clock pulse at which the MPU 2 starts the access, and therefore the access of MPU 1 which requires the time of 3 clocks is impossible. Therefore, the ready signal f to the MPU1 is made inactive, and the MPU1 is placed in the wait state until time t2 when the memory use of the MPU2 ends. The wait state T1W at this time has a length of 5 clocks, which is less than half the time compared to the worst case of the conventional example of FIG.

【0023】このように、本発明の実施例では、高速の
MPU1と低速のMPU2とが競合するシステムにおい
て、高速のMPU1のウエイト時間を短くしたことによ
り、MPU1の処理能力の低下をおさえることができ
る。なお、本発明の実施例では、高速MPU1と低速M
PU2と共有のメモリ10の調停について適用したが、
バスシステムやネットワーク等の共有資源についても同
様に適用可能である。
As described above, in the embodiment of the present invention, in the system in which the high-speed MPU1 and the low-speed MPU2 compete with each other, the wait time of the high-speed MPU1 is shortened, so that the processing capacity of the MPU1 can be suppressed. it can. In the embodiment of the present invention, the high speed MPU 1 and the low speed M
I applied the arbitration of the shared memory 10 with PU2,
The same can be applied to shared resources such as bus systems and networks.

【0024】[0024]

【発明の効果】以上述べたように第1の発明によれば、
低速のプロセッサ側のトランシーバ回路としてラッチ回
路およびバッファ回路をデータバス上に互いに並列に設
置しておき、低速のプロセッサから共有メモリへメモリ
選択信号が出力されてアクセスが要求されると、低速の
プロセッサのアクセスタイミングに合わせて共有メモリ
へアクセスを許可するための制御信号が送信されるとと
もに、ラッチ回路またはバッファ回路のいずれかにデー
タ転送の許可信号が送られることにより、低速プロセッ
サのバス占有時間が短くなり、その分、高速プロセッサ
の待ち時間が短縮されて高速プロセッサの稼働効率が損
なわれることがなくなる。また、低速のプロセッサのア
クセスを優先した調停が行われることにより、低速のプ
ロセッサにはウエイトがなくなり、低速のプロセッサに
アクセス時間が固定されているプロセッサを用いること
が可能になる。
As described above, according to the first invention,
As a transceiver circuit on the low-speed processor side, a latch circuit and a buffer circuit are installed in parallel on the data bus, and when the low-speed processor outputs a memory selection signal to the shared memory to request access, the low-speed processor The control signal for permitting access to the shared memory is transmitted at the same access timing as the above, and the data transfer permission signal is sent to either the latch circuit or the buffer circuit. As a result, the waiting time of the high speed processor is shortened correspondingly, and the operating efficiency of the high speed processor is not impaired. Further, since the arbitration is performed by giving priority to the access of the low-speed processor, the low-speed processor has no wait, and the processor having the fixed access time can be used for the low-speed processor.

【0025】第2の発明によれば、高速のプロセッサの
システムクロックを所定数カウントしてアクセス許可制
御信号およびデータ転送許可信号を発生するため、高速
のプロセッサの動作タイミングを基準として両方のプロ
セッサのアクセスタイミングが制御されることにより、
さらにシステムの稼働効率が向上する。
According to the second aspect of the present invention, the system clocks of the high speed processors are counted by a predetermined number to generate the access permission control signal and the data transfer permission signal. By controlling the access timing,
Further, the operating efficiency of the system is improved.

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

【図1】本発明にかかる実施例の構成を示すブロック図
である。
FIG. 1 is a block diagram showing a configuration of an exemplary embodiment according to the present invention.

【図2】図1の動作を示すタイミングチャートである。FIG. 2 is a timing chart showing the operation of FIG.

【図3】実施例の競合におけるワーストケースを示すタ
イミングチャートである。
FIG. 3 is a timing chart showing a worst case in competition of the embodiment.

【図4】従来例の構成を示すブロック図である。FIG. 4 is a block diagram showing a configuration of a conventional example.

【図5】従来例のタイミングチャートである。FIG. 5 is a timing chart of a conventional example.

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

1 高速のマイクロプロセッサ(MPU) 2 低速のマイクロプロセッサ(MPU) 3、4 バス 5、6 アドレスデコーダ 7 調停回路 8 トランシーバ回路 10 メモリ 11 バス 21 ラッチ回路 22 バッファ回路 1 High-speed microprocessor (MPU) 2 Low-speed microprocessor (MPU) 3, 4 Bus 5, 6 Address decoder 7 Arbitration circuit 8 Transceiver circuit 10 Memory 11 Bus 21 Latch circuit 22 Buffer circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 アクセス速度が互いに異なる2個のプロ
セッサとこれら両プロセッサにバス接続された共有メモ
リとの間にあって、一方のプロセッサから共有メモリに
対するメモリ選択信号が出力されると、共有メモリに対
してアクセスを許可するための制御信号を送信するとと
もにアクセス要求プロセッサと共有メモリとを接続する
データバス上に設置されているトランシーバ回路に対し
てデータ転送の許可信号を送る調停回路において、 低速のプロセッサ側のトランシーバ回路として、共有メ
モリからデータバス上に送出されたリードデータをいっ
たん保持してから低速のプロセッサ側へ転送するラッチ
回路および低速のプロセッサからデータバス上に送出さ
れたライトデータを共有メモリ側へ転送するバッファ回
路をデータバス上に互いに並列に設置するとともに、 低速のプロセッサから共有メモリへメモリ選択信号が出
力されてアクセスが要求されると、低速のプロセッサの
アクセスタイミングに合わせ、共有メモリに対してアク
セスを許可するための制御信号を送信するとともにリー
ドアクセスの場合はラッチ回路へ、ライトアクセスの場
合はバッファ回路へそれぞれデータ転送の許可信号を送
る手段を備えたことを特徴とする調停回路。
1. When a memory selection signal for the shared memory is output from one processor between two processors having different access speeds and a shared memory bus-connected to both processors, the shared memory is notified to the shared memory. Arbitration circuit that transmits a control signal for permitting access by a processor and sends a permission signal for data transfer to a transceiver circuit installed on the data bus connecting the access request processor and the shared memory. As a transceiver circuit on the side, a latch circuit that temporarily holds the read data sent from the shared memory to the data bus and then transfers it to the low-speed processor side, and the write data sent from the low-speed processor to the data bus on the shared memory Side buffer circuits on the data bus. Parallel to each other, and when a memory selection signal is output from the low-speed processor to the shared memory and access is requested, a control signal for permitting access to the shared memory at the access timing of the low-speed processor. And an arbitration circuit for transmitting a data transfer permission signal to a latch circuit for read access and to a buffer circuit for write access.
【請求項2】 請求項1記載の調停回路において、低速
のプロセッサからメモリ選択信号が出力された後に高速
のプロセッサのシステムクロックを所定数カウントした
タイミングでアクセス許可制御信号およびデータ転送許
可信号を発生することを特徴とする調停回路。
2. The arbitration circuit according to claim 1, wherein the access permission control signal and the data transfer permission signal are generated at the timing when a predetermined number of system clocks of the high speed processor are counted after the memory selection signal is output from the low speed processor. An arbitration circuit characterized by:
JP33573894A 1994-12-21 1994-12-21 Arbitration circuit Expired - Fee Related JP3240863B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33573894A JP3240863B2 (en) 1994-12-21 1994-12-21 Arbitration circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33573894A JP3240863B2 (en) 1994-12-21 1994-12-21 Arbitration circuit

Publications (2)

Publication Number Publication Date
JPH08180027A true JPH08180027A (en) 1996-07-12
JP3240863B2 JP3240863B2 (en) 2001-12-25

Family

ID=18291928

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33573894A Expired - Fee Related JP3240863B2 (en) 1994-12-21 1994-12-21 Arbitration circuit

Country Status (1)

Country Link
JP (1) JP3240863B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005015386A1 (en) * 2003-08-07 2005-02-17 Matsushita Electric Industrial Co., Ltd. Processor integrated circuit and product development method using the processor integrated circuit
JP2011065667A (en) * 2010-11-08 2011-03-31 Renesas Electronics Corp Information processing system
US8429355B2 (en) 2004-12-06 2013-04-23 Renesas Electronics Corporation Information processor system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005015386A1 (en) * 2003-08-07 2005-02-17 Matsushita Electric Industrial Co., Ltd. Processor integrated circuit and product development method using the processor integrated circuit
US8429355B2 (en) 2004-12-06 2013-04-23 Renesas Electronics Corporation Information processor system
US8621158B2 (en) 2004-12-06 2013-12-31 Renesas Electronics Corporation Information processor system
JP2011065667A (en) * 2010-11-08 2011-03-31 Renesas Electronics Corp Information processing system

Also Published As

Publication number Publication date
JP3240863B2 (en) 2001-12-25

Similar Documents

Publication Publication Date Title
CA2050129C (en) Dynamic bus arbitration with grant sharing each cycle
US4449183A (en) Arbitration scheme for a multiported shared functional device for use in multiprocessing systems
US6173349B1 (en) Shared bus system with transaction and destination ID
US5293491A (en) Data processing system and memory controller for lock semaphore operations
JPH0652096A (en) Method and apparatus for executing arbitration of bus using arbiter in data processing system
US6282598B1 (en) PCI bus system wherein target latency information are transmitted along with a retry request
US5590299A (en) Multiprocessor system bus protocol for optimized accessing of interleaved storage modules
JP3240863B2 (en) Arbitration circuit
JPH0650496B2 (en) Method and apparatus for improving the performance of a central processing unit
JP2972491B2 (en) Bus control mechanism and computer system
JPH04134551A (en) Method of informing second agent of necessity of service from first agent in bus for transferring data between a lurality of data processing agents
KR100487218B1 (en) Apparatus and method for interfacing an on-chip bus
JPH10307787A (en) Buffer memory device
US6493775B2 (en) Control for timed access of devices to a system bus
JPS6341973A (en) Multi-processor system
KR100243868B1 (en) Arbiter logic in main computer system
JPH1139266A (en) Multiprocessor device
JPH11316736A (en) Processor and data processing device using the same
JP2001318906A (en) Multiprocessor device
JP3272890B2 (en) Memory access control circuit and output device
JPS6336543B2 (en)
JPH04225458A (en) Computer
JPH05265932A (en) Bus control system
JP2001331442A (en) System bus contention controller and system bus contention control system used for the same
JPH0635840A (en) Multiprocessor system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010918

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20081019

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20091019

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees