JPH04140873A - Microprocessor system - Google Patents

Microprocessor system

Info

Publication number
JPH04140873A
JPH04140873A JP26440690A JP26440690A JPH04140873A JP H04140873 A JPH04140873 A JP H04140873A JP 26440690 A JP26440690 A JP 26440690A JP 26440690 A JP26440690 A JP 26440690A JP H04140873 A JPH04140873 A JP H04140873A
Authority
JP
Japan
Prior art keywords
access
microprocessor
circuit
peripheral circuit
bus
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
JP26440690A
Other languages
Japanese (ja)
Inventor
Yuichi Kaneko
裕一 金子
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 IC Microcomputer Systems Co Ltd
Original Assignee
NEC IC Microcomputer Systems 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 NEC IC Microcomputer Systems Co Ltd filed Critical NEC IC Microcomputer Systems Co Ltd
Priority to JP26440690A priority Critical patent/JPH04140873A/en
Publication of JPH04140873A publication Critical patent/JPH04140873A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten a read/access time by providing an arbitration circuit which arbitrates the operations of both a surrounding circuit and a microprocessor, and switching circuit which connects and disconnects buses, and plural memories connected with the buses with the above mentioned switching circuit in between. CONSTITUTION:When the write/access of a microprocessor 1 and the write/ access of a surrounding circuit 2 are simultaneously generated, an arbitration circuit 4 turns the access of the processor 1 into a waiting state through an access controlling signal S2. At the same time, a switching circuit 6 is closed by a bus connection and disconnection controlling signal S3, and the access of the surrounding circuit 2 is executed by an access controlling signal S1. A bus 7 at that time is turned into one bus state connecting the processor 1 with a main memory 3, a submemory 5, and the circuit 2 by the switching circuit 6. After that, the circuit 4 closes the circuit 6 by the signal S3, and executes the access of the processor 1 through the signal S2. The bus 7 at that time is turned into one bus state connecting the processor 1 with the memory 3, memory 5, and circuit by the circuit 6.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はマイクロフロセッサーシステムに関し、特にア
クセスの競合を制御するマイクロプロセッサ−システム
に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microprocessor system, and more particularly to a microprocessor system that controls access contention.

〔従来の技術〕[Conventional technology]

従来、メモリに直接アクセスを9行なうマイクロフロセ
ッサーおよび周辺回路を持ったマイクロプロセッサ−シ
ステムは、マイクロフロセッサーのアクセスと周辺回路
のアクセスが同時に発生したとぎ、システムの構成上同
時に両方のアクセスを実行することができないため、ど
ちらかのアクセスを待機させ、他方のアクセスを実行し
ている。
Conventionally, in microprocessor systems that have a microprocessor and peripheral circuits that directly access memory, when the microprocessor access and the peripheral circuit access occur at the same time, the system configuration makes it impossible to execute both accesses at the same time. Since this is not possible, one of the accesses is made to wait and the other access is executed.

その後、アクセスの実行が終了すると、待機させていた
方のアクセスを実行するようにしている。
Thereafter, when the execution of the access is completed, the access that was kept on standby is executed.

第7図はかかる従来の一例を示すマイクロプロセッサ−
システムのブロック図である 第7図に示すように、従来のマイクロプロセッサ−シス
テムは、バス7に接続された一フィクロプロセッサー1
および周辺回路2と2 /<スフに接続されマイクロフ
ロセッサ−1および周辺回路2からアクセスされるメモ
リ3Aと、マイクロプロセッサ−1および周辺回路2か
らのアクセスをそれぞれアクセス制御信号S1およびS
2に基づき制御する調停回路4Aとから構成さhている
FIG. 7 shows an example of such a conventional microprocessor.
As shown in FIG. 7, which is a block diagram of the system, a conventional microprocessor system includes one microprocessor 1 connected to a bus 7.
and peripheral circuits 2 and 2 /< Memory 3A connected to the memory block and accessed from microprocessor 1 and peripheral circuit 2, and access control signals S1 and S for access from microprocessor 1 and peripheral circuit 2, respectively.
2, and an arbitration circuit 4A that performs control based on 2.

かかるマイクロフロセッサー1と周辺回路2が同時にメ
モリ3にアクセスしたときの動作は、4通りあり、以下
にこれらの動作を説明する。
There are four types of operations when the microprocessor 1 and the peripheral circuit 2 access the memory 3 at the same time, and these operations will be explained below.

第8図乃至第11図はそれぞれ第7図に示すシステムの
動作例を説明するための動作状態図である。
8 to 11 are operational state diagrams for explaining an example of the operation of the system shown in FIG. 7, respectively.

第8図に示すように、この動作状態はマイクロフロセッ
サー1のライトアクセスと周辺回路2のリードアクセス
とが同時に発生した場合である。
As shown in FIG. 8, this operating state is a case where a write access of the microprocessor 1 and a read access of the peripheral circuit 2 occur simultaneously.

この場合、調停回路4Aは最初にアクセス制御信号S2
を送出してマイクロプロセッサ−1のライトアクセスを
待機させる一方、アクセス制御信号S1を送出して周辺
回路2のリードアクセスを実行させる。しかる後、周辺
回路2のメモリアクセスが終了すると、調停回路4Aは
アクセス制御信号S1によりマイクロプロセッサ−1の
アクセスを実行する。尚、このときは周辺回路2が待機
状態になる。
In this case, the arbitration circuit 4A first receives the access control signal S2.
It sends out an access control signal S1 to make the microprocessor 1 wait for a write access, while sending out an access control signal S1 to make the peripheral circuit 2 execute a read access. Thereafter, when the memory access of the peripheral circuit 2 is completed, the arbitration circuit 4A executes the access of the microprocessor-1 using the access control signal S1. Note that at this time, the peripheral circuit 2 is in a standby state.

次に、第9図に示すように、この動作状態はマイクロプ
ロセッサ−1のライトアクセスと周辺回路2のライトア
クセスとが同時に発生した場合である。この場合、最初
に調停回路4Aはアクセス制御信号S2を介してマイク
ロフロセッサー1のアクセスを待機状態にしておき、ア
クセス制御信号S1を通して周辺回路2のアクセスを実
行させる。しかる後、調停回路4は制御信号S2を通し
てマイクロフロセッサー1のアクセスを実行する。
Next, as shown in FIG. 9, this operating state is a case where a write access by the microprocessor 1 and a write access by the peripheral circuit 2 occur simultaneously. In this case, the arbitration circuit 4A first puts the access of the microprocessor 1 in a standby state via the access control signal S2, and causes the access of the peripheral circuit 2 to be executed via the access control signal S1. Thereafter, the arbitration circuit 4 executes the access of the microprocessor 1 through the control signal S2.

次に、第10図に示すように、この動作状態はマイクロ
フロセッサー1のリードアクセスと周辺回路2のライト
アクセスとが同時に発生した場合である。この場合、最
初に調停回路4Aはアクセス制御信号S2を通してマイ
クロプロセッサ−1のアクセスを待機状態にする一方、
アクセス制御信号Slを通して周辺回路2のアクセスを
実行させる。しかる後、調停回路4Aはアクセス制御信
号S2を通してマイクロプロセッサ−1のアクセスを実
行する。
Next, as shown in FIG. 10, this operating state is a case where a read access of the microprocessor 1 and a write access of the peripheral circuit 2 occur simultaneously. In this case, first, the arbitration circuit 4A puts the access of the microprocessor-1 into a standby state through the access control signal S2, while
The access of the peripheral circuit 2 is executed through the access control signal Sl. Thereafter, the arbitration circuit 4A executes the access of the microprocessor-1 through the access control signal S2.

更に、第11図に示すように、この動作状態はマイクロ
フロセッサー1のリードアクセスと周辺回路2のリード
アクセスとが同時に発生したS合である。この場合、最
初に調停回路4Aはアクセス制御信号S2を通してマイ
クロフロセッサー1のアクセスを待機状態にするととも
に、アクセス制御信号S1を通して周辺回路2のアクセ
スを実行させる。しかる後、調停回路4Aはアクセス制
御信号S2を通してマイクロプロセッサ−1のアクセス
を実行する。
Furthermore, as shown in FIG. 11, this operating state is an S case in which read access to the microprocessor 1 and read access to the peripheral circuit 2 occur simultaneously. In this case, the arbitration circuit 4A first puts the access of the microprocessor 1 into a standby state through the access control signal S2, and causes the access of the peripheral circuit 2 to be executed through the access control signal S1. Thereafter, the arbitration circuit 4A executes the access of the microprocessor-1 through the access control signal S2.

要するに、従来のマイクロフロセッサーシステムは、マ
イクロプロセッサ−1と周辺回路2のメモリ3に対して
のアクセスが同時に発生したとき、マイクロフロセッサ
ー1のアクセスを周辺回路2のアクセスが終了するまで
待機させなければならないので、マイクロフロセッサー
1の実行速度が低下する。
In short, in the conventional microprocessor system, when accesses to the memory 3 by the microprocessor 1 and the peripheral circuit 2 occur simultaneously, the access by the microprocessor 1 must wait until the access by the peripheral circuit 2 is completed. Therefore, the execution speed of the microprocessor 1 decreases.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の周辺回路を有するマイクロフロセッサー
システムは、マイクロフロセッサーと周辺回路のアクセ
スが同時に発生すると、一方のアクセスは他方のアクセ
スが終了するまで待機させられる。従って、全体のリー
ド・アクセス時間が長くなり、待機させられた方の性能
が低下するという欠点がある。
In the above-described conventional microprocessor system having a peripheral circuit, when accesses of the microprocessor and the peripheral circuit occur simultaneously, one access is made to wait until the other access is completed. Therefore, there is a drawback that the overall read access time becomes longer and the performance of the side that is placed on standby deteriorates.

本発明の目的は、かかるマイクロプロセッサ−と周辺回
路とからのリード・アクセスが同時に発生しても、リー
ド・アクセス時間を長くすることなく性能も低下しない
マイクロプロセッサ−システムを提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a microprocessor system that does not increase read access time or degrade performance even when read accesses from the microprocessor and peripheral circuits occur simultaneously.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のマイクロプロセッサ−システムは、それぞれ第
一および第二のバスに接続されるマイクロプロセッサ−
および周辺回路と、前記第一および第二のバスにそれぞ
れ接続され且つ同じアドレス空間に配置される主メモリ
および副メモリと、前記第一および第二のバスの分離接
続を行う切替回路と、前記マイクロプロセッサ−および
前記周辺回路からのアクセス要求を受けとりアクセスの
制御を行なう調停回路とを備え、前記アクセス要求が前
記主メモリあるいは副メモリへの書き込みのときは前記
切替回路により前記第一および第二のバスを接続状態に
し、前記主メモリあるいは副メモリからの読み出しのと
きは前記第一および第二のバスを分離状態にするように
構成される。
The microprocessor system of the present invention includes microprocessor systems connected to first and second buses, respectively.
and a peripheral circuit, a main memory and a sub memory respectively connected to the first and second buses and arranged in the same address space, and a switching circuit for separately connecting the first and second buses; a microprocessor and an arbitration circuit that receives an access request from the peripheral circuit and controls access, and when the access request is for writing to the main memory or the sub memory, the switching circuit The first and second buses are connected to each other, and the first and second buses are separated when reading from the main memory or the sub memory.

〔実施例〕〔Example〕

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

第1図は本発明の一実施例を示すマイクロプロセッサ−
システムのブロック図である。
FIG. 1 shows a microprocessor illustrating an embodiment of the present invention.
FIG. 2 is a block diagram of the system.

第1図に示すように、本実施例は二つに分割されたバス
7と、それぞれのバス7に接続されるマイクロプロセッ
サ−1および周辺回路2と、それぞれのバス7に接続さ
れた主メモリ3および副メモリ5と、マイクロプロセッ
サ−1と周辺回路2のアクセス要求を受けるとバス7を
分離し且つマイクロプロセッサ−1と周辺回路2のアク
セス制御を行なう調停回路4と、調停回路4によりバス
7の分離接続を行う切替回路6とを有している。
As shown in FIG. 1, this embodiment has a bus 7 divided into two, a microprocessor 1 and a peripheral circuit 2 connected to each bus 7, and a main memory connected to each bus 7. 3 and secondary memory 5; and an arbitration circuit 4 which separates the bus 7 and controls access between the microprocessor 1 and the peripheral circuit 2 upon receiving an access request from the microprocessor 1 and the peripheral circuit 2; It has a switching circuit 6 for separating and connecting 7.

信号Slは周辺回路2のアクセスを制御する信号、信号
S2はマイクロフロセッサー1のアクセスを制御する信
号であり、さらに信号S3はバス7の分離接続を制御す
る信号である。しかも、副メモリ5は主メモリ3と同じ
アドレス空間に配置され、常に主メモリ3と同じデータ
を有している。更に、バス7が切替回路6により接続さ
れたときは、マイクロプロセッサ−1と主メモリ3と副
メモリ5および周辺回路2とを結ぶ一つのバスになり、
逆に切替回路6によりバス7が分離されたときは、マイ
クロプロセッサ−1と主メモリ3を結ぶバスと、周辺回
路2と副メモリ5を結ぶバスとの二つに分離される。
Signal Sl is a signal that controls access to peripheral circuit 2, signal S2 is a signal that controls access to microprocessor 1, and signal S3 is a signal that controls separate connection of bus 7. Moreover, the sub memory 5 is arranged in the same address space as the main memory 3 and always has the same data as the main memory 3. Furthermore, when the bus 7 is connected by the switching circuit 6, it becomes one bus connecting the microprocessor 1, the main memory 3, the sub memory 5, and the peripheral circuit 2.
Conversely, when the bus 7 is separated by the switching circuit 6, it is separated into two buses: one connecting the microprocessor 1 and the main memory 3, and the other bus connecting the peripheral circuit 2 and the sub memory 5.

本実施例では、マイク四プロセッサー1と周辺回路2と
のライト・アクセスは、主メモリ3および副メモリ5に
対して同時に行われる。また、マイクロフロセッサ−1
のリード・アクセスは主メモリ3に対してのみ行われ、
周辺回路2のリード・アクセスは副メモリ5に対しての
み行われる。
In this embodiment, write access by the microprocessor 1 and the peripheral circuit 2 is performed simultaneously on the main memory 3 and the sub memory 5. Also, Microflosser-1
Read access is performed only to main memory 3,
Read access by the peripheral circuit 2 is performed only to the sub memory 5.

マイクロフロセッサー1と周辺回路2が同時に主メモリ
3にアクセスしたときの動作は4通りあり、以下にこの
動作について説明する。
There are four types of operations when the microprocessor 1 and the peripheral circuit 2 access the main memory 3 at the same time, and these operations will be explained below.

第2図乃至第5図はそれぞれ第1図に示すシステムの動
作例を説明するための動作状態図である。
2 to 5 are operational state diagrams for explaining an example of the operation of the system shown in FIG. 1, respectively.

第2図に示すように、この動作状態はマイクロプロセッ
サ−1のライトアクセスと周辺回路2のリードアクセス
とが同時に発生した場合である。
As shown in FIG. 2, this operating state is a case where a write access by the microprocessor 1 and a read access by the peripheral circuit 2 occur simultaneously.

この場合、最初に調停回路4はアクセス制御信号S2を
通して、マイクロプロセッサ−1のアクセスを待機状態
にしておき、バス分離接続制御信号S3により切替回路
6を開けるとともに、アクセス制御信号S1を通して周
辺回路2のアクセスを実行させる。すなわち、バス7は
切替回路6により周辺回路2と副メモリ5を結ぶバスお
よびマイクロプロセッサ−1と主メモリ3を結ぶバスに
分離された状態になっている。しかる後、調停回路4は
バス分離接続制御信号S3により切替回路6を閉じると
ともに、アクセス制御信号S2を通してマイクロフロセ
ッサー1のアクセスを実行する。
In this case, first, the arbitration circuit 4 sends the access control signal S2 to put the microprocessor 1 in a standby state, opens the switching circuit 6 using the bus separation connection control signal S3, and sends the access control signal S1 to the peripheral circuit 1. access. That is, the bus 7 is separated by the switching circuit 6 into a bus connecting the peripheral circuit 2 and the sub memory 5 and a bus connecting the microprocessor 1 and the main memory 3. Thereafter, the arbitration circuit 4 closes the switching circuit 6 using the bus separation/connection control signal S3, and accesses the microprocessor 1 via the access control signal S2.

この時のバス7は、切替回路6によりマイクロプロセッ
サ−1と主メモリ3と副メモリ5と調停回路2とを結ぶ
一つのバスの状態になっている。
At this time, the bus 7 is in the state of one bus connecting the microprocessor 1, the main memory 3, the sub memory 5, and the arbitration circuit 2 by the switching circuit 6.

次に、第3図に示すように、この動作状態はマイクロプ
ロセッサ−1のライトアクセスと周辺回路2のライトア
クセスとが同時に発生した場合である。この場合、最初
に調停回路4はアクセス制御信号S2を通してマイクロ
プロセッサ−1のアクセスを待機状態にするとともに、
バス分離接続制御信号S3により切替回路6を閉じ、ア
クセス制御信号S1により周辺回路2のアクセスを実行
させる。この時のバス7は、切替回路6によりマイクロ
プロセッサ−1と主メモリ3と副メモリ5と周辺回路2
とを結ぶ一つのバスの状態になっている。しかる後、調
停回路4はバス分離接続制御信号S3により切替回路6
を閉じ、アクセス制御信号S2を通してマイクロフロセ
ッサー1のアクセスを実行する。この時のバス7は、切
替回路6によりマイクロフロセッサー1と主メモリ3と
副メモリ5と周辺回路2とを結ぶ一つのバスの状態にな
っている。
Next, as shown in FIG. 3, this operating state is a case where a write access by the microprocessor 1 and a write access by the peripheral circuit 2 occur simultaneously. In this case, the arbitration circuit 4 first puts the access of the microprocessor-1 into a standby state via the access control signal S2, and
The switching circuit 6 is closed by the bus separation connection control signal S3, and the peripheral circuit 2 is accessed by the access control signal S1. At this time, the bus 7 is connected to the microprocessor 1, the main memory 3, the sub memory 5, and the peripheral circuit 2 by the switching circuit 6.
There is now a single bus connecting the two. Thereafter, the arbitration circuit 4 switches the switching circuit 6 to the bus separation connection control signal S3.
is closed, and the microprocessor 1 is accessed through the access control signal S2. At this time, the bus 7 is in the state of one bus connecting the microprocessor 1, main memory 3, sub memory 5, and peripheral circuit 2 by the switching circuit 6.

次に、第4図に示すように、この動作状態はマイクロプ
ロセッサ−1のリードアクセスと周辺回路2のライトア
クセスとが同時に発生した場合である。この場合、最初
に調停回路4はアクセス制御信号S2を通してマイクロ
フロセッサー1のアクセスを待機状態にしておき、バス
分離接続制御信号S3により切替回路6を閉じるととも
にアクセス制御信号Slにより周辺回路2のアクセスを
実行させる。この時バス7は、切替回路6によりマイク
ロプロセッサ−1と主メモリ3と副メモリ5と周辺回路
2とを結ぶ一つのバスの状態になっている。しかる後、
調停回路4は切替回路6を開け、マイクロプロセッサ−
1のアクセスを実行する。この時のバス7は、切替回路
6により分離された状態になっている。
Next, as shown in FIG. 4, this operating state is a case where a read access by the microprocessor 1 and a write access by the peripheral circuit 2 occur simultaneously. In this case, the arbitration circuit 4 first puts the access of the microprocessor 1 in a standby state through the access control signal S2, closes the switching circuit 6 with the bus separation connection control signal S3, and stops the access of the peripheral circuit 2 with the access control signal Sl. Let it run. At this time, the bus 7 is in the state of one bus connecting the microprocessor 1, the main memory 3, the sub memory 5, and the peripheral circuit 2 by the switching circuit 6. After that,
The arbitration circuit 4 opens the switching circuit 6 and the microprocessor
1 access is executed. At this time, the bus 7 is separated by the switching circuit 6.

最後1・こ、第5図に示すように、この動作状態はマ・
イクロフロセッサ−1のリードアクセスと周辺回路2の
リードアクセスとが同時に発生した場合である。この場
合、調停回路4は切替回路6を開け、アクセス制御信号
Sl、S2それぞれにより−rイクo−jロセッナー1
と周辺回路2のアクセスを同時に実行させることが6来
る。この時バス7は、切替回路6により分離された状態
になっている。このため、アクセス回数は一回になる。
Finally, 1. As shown in Figure 5, this operating state is
This is a case where read access to microprocessor 1 and read access to peripheral circuit 2 occur simultaneously. In this case, the arbitration circuit 4 opens the switching circuit 6 and uses the access control signals Sl and S2 to set -r, o-j, and
It is now possible to execute the accesses of the peripheral circuit 2 and the peripheral circuit 2 simultaneously. At this time, the bus 7 is separated by the switching circuit 6. Therefore, the number of accesses is one.

上述したように、本実施例のマイクロプロセッサ−シス
テムは、マイクロフロセッサー1と周辺回路2のリード
アクセスが同時に発生した場合、どちらも待機させずに
アクセスすることが可能になる。
As described above, in the microprocessor system of this embodiment, when read access to the microprocessor 1 and the peripheral circuit 2 occurs simultaneously, the access can be made without making either of them wait.

第6図は第1図に示す調停回路の具体的構成図である。FIG. 6 is a specific configuration diagram of the arbitration circuit shown in FIG. 1.

第6図に示すように、この調停回路は論理積回路(AN
Dゲート)A1〜A6と、論理積出力反転回路(NAN
Dゲート)Nl−N3と、論理反転回路(インバータ)
Il、I2と、論理和回路(0’Rゲート)01〜o3
と、D型7 jJ ツブフロップ回路FFI〜FF3と
から構成さハている。
As shown in FIG. 6, this arbitration circuit is an AND circuit (AN
D gate) A1 to A6 and AND output inverting circuit (NAN
D gate) Nl-N3 and logic inversion circuit (inverter)
Il, I2, and OR circuit (0'R gate) 01 to o3
and D-type 7 jJ block flop circuits FFI to FF3.

この調停回路は、周辺回路2がアクセス要求を1−だ場
合アクティブ(アクティブH工GH)になるPREQ信
号と周辺回路2がリード・アクセス要求をした場合アク
ティブになるP RE A D信号と周辺回路2がライ
ト・アクセス要求をした場合アクティブになるPWRI
TE信号と調停回路4が周辺回路2のアクセスを許可し
た場合にアクティブになるPAK信号とを含んだアクセ
ス制御信号S1と、7フイクロプロセツサー1がアクセ
ス要求をした場合にアクティブになるMREQ信号とマ
イクロプロセッサ−1がリード・アクセス要求をした場
合にアクティブになるMRITE信号とマイクロフロセ
ッサー1がライト・アクセス要求をした場合アクティブ
になるMREAD信号と調停回路4がマイクロフロセッ
サー1のアクセスを許可した場合アクティブになるMA
K信号とを含んだアクセス制御信号S2と、マイクロプ
ロセッサ−1および周辺回路2のどちらがかライト・ア
クセスを実行する場合アクティブになるCLO8E信号
を含んだバス分離接続制御信号s3とが入出力される。
This arbitration circuit consists of a PREQ signal that becomes active (active GH) when the peripheral circuit 2 makes an access request of 1-, a PRE A D signal that becomes active when the peripheral circuit 2 makes a read access request, and the peripheral circuit. PWRI that becomes active when 2 makes a write access request.
An access control signal S1 that includes a TE signal and a PAK signal that becomes active when the arbitration circuit 4 permits access from the peripheral circuit 2; and an MREQ that becomes active when the microprocessor 1 makes an access request. The MRITE signal, which becomes active when microprocessor 1 requests read access, and the MREAD signal, which becomes active when microprocessor 1 requests write access, and the arbitration circuit 4 permit access to microprocessor 1. If MA becomes active
The access control signal S2 containing the K signal and the bus separation connection control signal s3 containing the CLO8E signal, which becomes active when either the microprocessor 1 or the peripheral circuit 2 executes a write access, are input/output. .

まず、PREQ信号およびPREAD信号のレベルがH
IGHの時、すなわち周辺回路2がリード・アクセスを
要求している場合、ANDゲートA Iは出力をEII
GHにする。また、NANDケートN1は、PREQ信
号オヨびPWRITE信号のレベルがHIGHで且つM
AR信号のレベルがLOWの時、つまり周辺回路2がラ
イト・アクセスを要求し且つマイクロプロセッサ−1が
アクセス中で無い場合、出方をLOWにする。また、A
NDゲー)A2はMREQ信号オヨびMWRITE信号
のレベルがHIGHの時、つまりマイクロフロセッサー
1がライト・アクセスを要求している場合、出力をHI
GHにする。NANDゲー)N3はMAK信号およびA
NDゲー)A2の出力のレベルが1:(IGFHの時、
つまりマイクo 7’ 。
First, the levels of the PREQ signal and PREAD signal are high.
When IGH, that is, when peripheral circuit 2 requests read access, AND gate AI outputs EII.
Make it GH. In addition, in the NAND gate N1, the levels of the PREQ signal and the PWRITE signal are HIGH and the M
When the level of the AR signal is LOW, that is, when the peripheral circuit 2 requests write access and the microprocessor 1 is not accessing, the output signal is set to LOW. Also, A
(ND game) A2 sets the output to HIGH when the MREQ signal and MWRITE signal levels are HIGH, that is, when microprocessor 1 requests write access.
Make it GH. NAND game) N3 is the MAK signal and A
ND game) When the output level of A2 is 1: (IGFH,
In other words, microphone o 7'.

セッサーlがライト・アクセスを実行中の場合、出力の
レベルなLOWにする。ANDゲー)A4はANDゲー
トA1およびNANDゲートN3の出力がHIGHの時
、つまり周辺回路2がリード・アクセスを要求し且つマ
イクロプロセッサ−1がライト・アクセスを実行中でな
い場合、出力のレベルをHIGHにする。また、ORゲ
ー)・01はANDゲートA4またはインバータエ2の
出力のレベルがHIGHの時、つまり周辺回路2がリー
ド・アクセスを要求し且つマイクロフロセッサー1がラ
イト・アクセスを実行中でない時、または周辺回路2が
ライト・アクセスを要求し且つマイクロプロセッサ−1
がアクセス実行中で無い時、出力のレベルをHIGHに
する。このORゲー1−01の出力がD型フリップフロ
ップFFIに入力され、CLOCK (クロック)信号
で切ったものがPAK信号となる。
When processor l is executing write access, the output level is set to LOW. AND game) A4 sets the output level to HIGH when the outputs of AND gate A1 and NAND gate N3 are HIGH, that is, when the peripheral circuit 2 requests a read access and the microprocessor 1 is not executing a write access. Make it. Also, OR gate A4 or inverter E2 output level is HIGH, that is, when peripheral circuit 2 requests read access and microprocessor 1 is not executing write access, or Peripheral circuit 2 requests write access and microprocessor-1
When access is not in progress, the output level is set to HIGH. The output of this OR game 1-01 is input to the D-type flip-flop FFI, and the signal cut by the CLOCK signal becomes the PAK signal.

次に、ANDゲートA3はMREQ信号およびMREA
D信号のレベルがHIGHの時、つまりマイクロプロセ
ッサ−1がリード・アクセスを要求し、ている場合、出
力のレベルをHIGHにする5、また、NANDゲー)
N2はPREQ信号およびインバータエ1のレベルがH
IGHの時、つまり周辺回路2がアクセスを要求し且つ
マイクロフロセッサー1がアクセスを実行中でない場合
、圧力のレベルをLOWにする。ANDゲー)A5はN
ANDゲートN1とANDゲートA3の出力のレベルが
HIGHの時、つまり周辺回路2がライト・アクセスを
要求していないかまたはマイクロプロセッサ−1がアク
セス実行中であるかのどちらかで、且つマイクロフロセ
ッサー1がリード・アクセスを要求している場合、出力
のレベルをHIGHにする。また、ANDy−トA6は
ANDゲートA2とNANDゲートN2の出力のレベル
がHIGHの時、つまり周辺回路2がアクセスの要求を
出していないかまたはマイクロフロセッサ−1がアクセ
スを実行中であるかのどちらかで、且つマイクロプロセ
ッサ−1がライト・アクセス要求中である場合、出力の
レヘ゛ルをHIGHにする。更に、ORゲート03はA
NDゲー)A5またはA6の出力のレベルがHIGHの
時、つまりマイクロプロセッサ−1がアクセス実行中で
且つマイクロプロセッサ−1がアクセスを要求している
かまたは周辺回路2がアクセスの要求を出さず且つマイ
クロフロセッサー1がライト・アクセスを要求中である
場合、または周辺回路2がラ−r ト・アクセスの要求
を出さず且つマイクロフロセッサ−1がリード・アクセ
スを要求中である場合、出力のレベルをHIGHにする
。このORゲート03の1[JはD−フリップフロップ
FF3に入力され、クロック信号で切ったものがMAK
信号になる。
Then, AND gate A3 connects the MREQ signal and MREA
When the level of the D signal is HIGH, that is, the microprocessor-1 requests read access, the output level is set to HIGH.
N2 is set when the PREQ signal and inverter 1 level is H.
At IGH, that is, when the peripheral circuit 2 requests access and the microprocessor 1 is not executing the access, the pressure level is set to LOW. AND game) A5 is N
When the output level of AND gate N1 and AND gate A3 is HIGH, that is, either the peripheral circuit 2 does not request a write access or the microprocessor 1 is executing an access, and the microprocessor 1 requests read access, sets the output level to HIGH. Furthermore, when the output level of the AND gate A2 and the NAND gate N2 is HIGH, the ANDy gate A6 indicates whether the peripheral circuit 2 is not issuing an access request or the microprocessor 1 is executing an access. In either case, and if the microprocessor-1 is requesting a write access, the output level is set to HIGH. Furthermore, OR gate 03 is A
(ND game) When the output level of A5 or A6 is HIGH, that is, microprocessor-1 is executing an access and requests access, or peripheral circuit 2 does not issue an access request and the microprocessor-1 When the processor 1 is requesting a write access, or when the peripheral circuit 2 does not request a right access and the microprocessor 1 is requesting a read access, the output level is set to HIGH. Make it. 1[J of this OR gate 03 is input to the D-flip-flop FF3, and the one cut by the clock signal is MAK
It becomes a signal.

更に、ORゲート02は、PWRITE信号またはMW
RITE信号のレベルがHIGHの時、つt’)マイク
ロフロセッサー1または周辺回路2のどちらかがライト
・アクセスをした場合、出力のレベルをHIGHにする
。このORゲート02の出力はFF2に入力され、クロ
ック信号で切ったものがCLO8E信号となる。
Furthermore, the OR gate 02 outputs the PWRITE signal or the MW
When the level of the RITE signal is HIGH, and t') If either the microprocessor 1 or the peripheral circuit 2 performs a write access, the output level is set to HIGH. The output of this OR gate 02 is input to FF2, and the output cut by the clock signal becomes the CLO8E signal.

要するに、調停回路4は、PREQ、PREAD。In short, the arbitration circuit 4 performs PREQ, PREAD.

PAK信号により構成されているアクセス制御信号S1
を周辺回路2との間でやりとりし、またMREQ、MR
EAD、MAK信号により構成されているアクセス制御
信号S2をマイクロプロセッサ−1との間で送受信する
ことにより、周辺回路2がリード・アクセスを要求し且
つマイクロフロセッサ−1がう・イト・アクセスを実行
中でない場合、または周辺回路2がライト・アクセスを
要求し且つマイクロフロセッサー1がアクセス実行中で
無い場合に、周辺回路2のアクセスを許可する。更に、
マイクロプロセッサ−1がアクセス実行中で且つマイク
ロフロセッサーlがアクセスを要求している場合、また
は周辺回路2からのアクセス要求がなく且つマイクロフ
ロセッサ−1がライト・アクセスを要求中である場合、
または周辺回路2からのライト・アクセフ要求がなく且
つマイクロプロセッサ−1がリード・アクセスを要求中
である場合に、マイクロプロセッサ−1のアクセス実行
中する。また、マイクロフロセッサー1または周辺回路
2のどちらかがライト・アクセスをした場合に切換え回
路6を閉じることが出来る。
Access control signal S1 composed of PAK signal
is exchanged with peripheral circuit 2, and MREQ, MR
By transmitting and receiving an access control signal S2 composed of EAD and MAK signals to and from the microprocessor 1, the peripheral circuit 2 requests a read access, and the microprocessor 1 executes the write access. If the peripheral circuit 2 is not in use, or if the peripheral circuit 2 requests a write access and the microprocessor 1 is not executing the access, the peripheral circuit 2 is permitted to access. Furthermore,
When the microprocessor 1 is executing an access and the microprocessor l is requesting an access, or when there is no access request from the peripheral circuit 2 and the microprocessor 1 is requesting a write access,
Alternatively, when there is no write access request from the peripheral circuit 2 and the microprocessor-1 is requesting a read access, the microprocessor-1 is executing the access. Furthermore, when either the microprocessor 1 or the peripheral circuit 2 performs write access, the switching circuit 6 can be closed.

〔発明の効果〕〔Effect of the invention〕

以上に説明したように、本発明のマイクロプロセッサ−
システムは、周辺回路およびマイクロプロセッサ−の動
作を調停する調停回路と、バスの分離接続を行なう切替
回路と、前記切替回路を挟んでバスに接続される複数の
メモリとを設けることにより、バスを分離してマイクロ
プロセッサ−と周辺回路からのリード・アクセスを同時
に実行できるので、全体のリード・アクセス時間を短く
し且つ全体の性能を向上させることができるという効果
がある。
As explained above, the microprocessor of the present invention
The system has an arbitration circuit that arbitrates the operations of peripheral circuits and a microprocessor, a switching circuit that separates and connects the bus, and a plurality of memories that are connected to the bus across the switching circuit. Since read accesses from the microprocessor and peripheral circuits can be performed separately and simultaneously, the overall read access time can be shortened and the overall performance can be improved.

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

第1図は本発明の一実施例を示すマイクロフロセッサー
システムのブロック図、第2図乃至第5図はそれぞれ第
1図に示すシステムの動作例を説明する動作状態図、第
6図は第1図に示す調停回路の具体的構成図、第7図は
従来の一例を示すマイクロプロセッサ−システムのブロ
ック図、第8図乃至第11図はそれぞれ第7図に示すシ
ステムの動作例を説明するための動作状態図である。 1・・・・・・マイクロプロセッサー 2・・・・・・
周辺回路、3・・・・・・主メモリ、4・・・・・調停
回路、5・・・・・・副メモリ、6・・・・・切替回路
、7・・・・・・バス、Sl、S2・・・・・アクセス
制御信号、s3・・・・・・バス分離接続制御信号、A
l〜A6・・・・・論理積回路(AND)、N1〜N3
・・・・・・論理積圧力反転回路(NAND)、II、
I2・・・・・論理反転回路(インバータ)、01〜0
3・・・・・・論理利口路(OR)、FFl−FF3・
・・・・・D−フリップフロップ回路。 代理人 弁理士  内 原   晋 見 図 声 ? 図 図 声 図 ム 夷 図 力 図 見 図 見 図
FIG. 1 is a block diagram of a microprocessor system showing an embodiment of the present invention, FIGS. 2 to 5 are operation state diagrams each explaining an example of the operation of the system shown in FIG. 1, and FIG. 7 is a block diagram of a microprocessor system showing a conventional example, and FIGS. 8 to 11 are for explaining an example of the operation of the system shown in FIG. 7. FIG. 1...Microprocessor 2...
Peripheral circuit, 3... Main memory, 4... Arbitration circuit, 5... Sub memory, 6... Switching circuit, 7... Bus, SL, S2...access control signal, s3...bus separation connection control signal, A
l~A6......Logic product circuit (AND), N1~N3
......Logic product pressure inversion circuit (NAND), II,
I2...Logic inversion circuit (inverter), 01~0
3...Logical clever path (OR), FFl-FF3・
...D-flip-flop circuit. Agent Patent Attorney Shinmi Uchihara? zuzuseizumuizuzuryokuzumizumizu

Claims (1)

【特許請求の範囲】[Claims] それぞれ第一および第二のバスに接続されるマイクロプ
ロセッサーおよび周辺回路と、前記第一および第二のバ
スにそれぞれ接続され且つ同じアドレス空間に配置され
る主メモリおよび副メモリと、前記第一および第二のバ
スの分離接続を行う切替回路と、前記マイクロプロセッ
サーおよび前記周辺回路からのアクセス要求を受けとり
アクセスの制御を行なう調停回路とを備え、前記アクセ
ス要求が前記主メモリあるいは副メモリへの書き込みの
ときは前記切替回路により前記第一および第二のバスを
接続状態にし、前記主メモリあるいは副メモリからの読
み出しのときは前記第一および第二のバスを分離状態に
することを特徴とするマイクロプロセッサーシステム。
a microprocessor and peripheral circuits connected to the first and second buses, respectively; a main memory and a secondary memory connected to the first and second buses, respectively, and located in the same address space; a switching circuit that separates and connects a second bus; and an arbitration circuit that receives access requests from the microprocessor and the peripheral circuits and controls access; In this case, the first and second buses are brought into a connected state by the switching circuit, and when reading from the main memory or the sub memory, the first and second buses are brought into a separated state. microprocessor system.
JP26440690A 1990-10-01 1990-10-01 Microprocessor system Pending JPH04140873A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26440690A JPH04140873A (en) 1990-10-01 1990-10-01 Microprocessor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26440690A JPH04140873A (en) 1990-10-01 1990-10-01 Microprocessor system

Publications (1)

Publication Number Publication Date
JPH04140873A true JPH04140873A (en) 1992-05-14

Family

ID=17402720

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26440690A Pending JPH04140873A (en) 1990-10-01 1990-10-01 Microprocessor system

Country Status (1)

Country Link
JP (1) JPH04140873A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6434646B1 (en) 1998-04-07 2002-08-13 Nec Corporation Signal distribution system and method based on bus arrangement
US8018108B2 (en) 2008-02-07 2011-09-13 Magnetic Applications, Inc. Compact high power alternator
US8093772B2 (en) 2006-02-02 2012-01-10 Magnetic Applications, Inc. Controller for AC generator
US8207642B2 (en) 2003-07-10 2012-06-26 Magnetic Applications Inc. Compact high power alternator

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6434646B1 (en) 1998-04-07 2002-08-13 Nec Corporation Signal distribution system and method based on bus arrangement
US8207642B2 (en) 2003-07-10 2012-06-26 Magnetic Applications Inc. Compact high power alternator
US8093772B2 (en) 2006-02-02 2012-01-10 Magnetic Applications, Inc. Controller for AC generator
US8018108B2 (en) 2008-02-07 2011-09-13 Magnetic Applications, Inc. Compact high power alternator

Similar Documents

Publication Publication Date Title
US4470113A (en) Information processing unit
US5420985A (en) Bus arbiter system and method utilizing hardware and software which is capable of operation in distributed mode or central mode
JPH05325552A (en) Multiport memory
JPH0542028B2 (en)
EP0522582A2 (en) Memory sharing for communication between processors
JPH04140873A (en) Microprocessor system
JPS63142455A (en) Semiconductor storage device
JPS6238901A (en) Programmable controller
JP3266610B2 (en) DMA transfer method
JPH04250553A (en) Programmable controller
JPS60134956A (en) Information processing system
JPH0351943A (en) Sharing system for high/low speed bus lines
JPS63128464A (en) Processor circuit
JPH07160655A (en) Memory access system
JPS6162158A (en) Data delivering and receiving system
JP3304503B2 (en) Dual system multiprocessor system
JPS635460A (en) Parallel computer
JPH0764849A (en) Shared memory controller for processor
JPH04205452A (en) Dma controller
JPH02144653A (en) Data processor
JPS62212759A (en) Memory access device
JPS61161560A (en) Memory device
JPH06214957A (en) Interruption generating method for multiprocessor system
JPH05158859A (en) Information processor
JPS60114927A (en) Film memory access control system