JPH07129501A - Semiconductor integrated circuit - Google Patents

Semiconductor integrated circuit

Info

Publication number
JPH07129501A
JPH07129501A JP5279259A JP27925993A JPH07129501A JP H07129501 A JPH07129501 A JP H07129501A JP 5279259 A JP5279259 A JP 5279259A JP 27925993 A JP27925993 A JP 27925993A JP H07129501 A JPH07129501 A JP H07129501A
Authority
JP
Japan
Prior art keywords
bus
ram
signal
internal
access
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
JP5279259A
Other languages
Japanese (ja)
Inventor
Masaru Kaneko
優 金子
Michihiro Horiuchi
通博 堀内
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Renesas Semiconductor Package and Test Solutions Co Ltd
Original Assignee
Hitachi Hokkai Semiconductor Ltd
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Hokkai Semiconductor Ltd, Hitachi Ltd filed Critical Hitachi Hokkai Semiconductor Ltd
Priority to JP5279259A priority Critical patent/JPH07129501A/en
Publication of JPH07129501A publication Critical patent/JPH07129501A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To realize the suppression of the degradation of the throughput accompaing a bus right competition which becomes a problem when the memory incorporated in a microcomputer is used as a shared memory and to make the shared memory into large capacity without increasing chip area. CONSTITUTION:A microcomputer 1 provided with an internal processor 3, a RAM 4, a peripheral function module 5 and an internal bus 6 electrically connecting the internal processor 3 and the peripheral function module 5 is provided with a bus 7 for external processor for accessing to an external processor 2 and a bus switching means composed of a bus switch circuit 14 switching and connecting the RAM 4 with either one of the internal bus 6 or the bus 7 for external processor according to the access state of the RAM 4 and the access request signals from the internal processor 3 and the external processor 2, a RAM access right mediation circuit 12 and a standby signal generation circuit 17.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は半導体集積回路に関する
ものであり、特に外部処理装置とアクセス可能な記憶装
置を内蔵したマイクロコンピュータに利用して有効なも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a semiconductor integrated circuit, and is particularly effective when applied to a microcomputer having a storage device accessible to an external processing device.

【0002】[0002]

【従来の技術】従来、複数のプロセッサ間のデータ転送
を共有メモリを使用して実現するシステムにおいては、
共有メモリとして、例えば、独立した2つのポートから
非同期でランダムアクセスが可能なデュアルポートRA
Mが用いられている(図5)。このデュアルポートRA
Mは、マルチプロセッサシステムの複数のバス間のバッ
ファメモリなどに用いられる。図5に示すように、デュ
アルポートRAM23は、プロセッサ21及び25とは
独立の機能回路あるいは素子として構築されるが、マイ
クロコンピュータを利用するシステムにおいては、デュ
アルポートRAMのマイクロコンピュータへの内蔵が実
現されている。図6にデュアルポートRAMが内蔵され
たマイクロコンピュータと外部プロセッサとの接続関係
を示す。マイクロコンピュータ26は、内部プロセッサ
27、RAM28、デュアルポートRAM29、周辺機
能モジュール30、入出力ポート33から構成されてお
り、それぞれ内部バス31を介して接続されている。デ
ュアルポートRAM29は、一方のポートで内部バス3
1に、他方のポートで外部プロセッサ用バス32にそれ
ぞれ接続されている。内部プロセッサ27からデュアル
ポートRAM29へのアクセスは、内部バスを用いて行
われ、また、外部プロセッサ35からデュアルポートR
AM29へのアクセスは、外部バス34から入出力ポー
ト33を介してマイクロコンピュータ26内に設けられ
た外部プロセッサ用バス32を用いて行われる。デュア
ルポートRAM29には、外部プロセッサ35とアクセ
スしている間、内部プロセッサ27がRAM28、また
は周辺機能モジュール30とのアクセスが可能となるよ
うに、内部バスのバス権を確保する調停回路が設けられ
ている。
2. Description of the Related Art Conventionally, in a system for realizing data transfer between a plurality of processors using a shared memory,
As a shared memory, for example, a dual port RA capable of asynchronous random access from two independent ports
M is used (FIG. 5). This dual port RA
M is used as a buffer memory between a plurality of buses of a multiprocessor system. As shown in FIG. 5, the dual port RAM 23 is constructed as a functional circuit or element independent of the processors 21 and 25. However, in a system using a microcomputer, the dual port RAM 23 can be built in the microcomputer. Has been done. FIG. 6 shows the connection relationship between a microcomputer having a built-in dual port RAM and an external processor. The microcomputer 26 includes an internal processor 27, a RAM 28, a dual port RAM 29, a peripheral function module 30, and an input / output port 33, which are connected via an internal bus 31. The dual port RAM 29 has an internal bus 3 at one port.
1 is connected to the external processor bus 32 at the other port. Access to the dual port RAM 29 from the internal processor 27 is performed using the internal bus, and the dual port R is accessed from the external processor 35.
The access to the AM 29 is performed from the external bus 34 via the input / output port 33 by using the external processor bus 32 provided in the microcomputer 26. The dual port RAM 29 is provided with an arbitration circuit that secures the bus right of the internal bus so that the internal processor 27 can access the RAM 28 or the peripheral function module 30 while accessing the external processor 35. ing.

【0003】なお、共有メモリに関しては、例えば特開
昭62−249266号公報、特開昭63−3350号
公報等に記載されている。
The shared memory is described, for example, in Japanese Patent Laid-Open Nos. 62-249266 and 63-3350.

【0004】[0004]

【発明が解決しようとする課題】上記のような共有メモ
リを内蔵したマイクロコンピュータには、デュアルポー
トRAM29のように、独立した2つのポートからアク
セスが可能なデュアルポート機能を設けているが、その
機能を実現する回路の面積が共有メモリ部全体で大きな
割合を占めているため、メモリ自体の大容量化を図る
と、チップ自体の面積が増大してしまうという欠点があ
る。そこで、RAM28のような1つのポートしか有し
ない内蔵RAMを共有メモリとして利用し、共有メモリ
の大容量化を図る方法が考えられる。しかしながら、内
蔵RAMは1つのポートしか有していないため、そのポ
ートが接続されている内部バスのバス権競合が発生して
しまい、外部プロセッサが内蔵RAMのアクセス権を確
保している間は、内部プロセッサは内部バスを使用でき
ないため、内蔵RAM以外の周辺機能モジュールとのア
クセスが不可能となる。従って、待機時間が大幅に増加
し、マイクロコンピュータ全体のスループットが悪化し
てしまうという問題点がある。
A microcomputer having a built-in shared memory as described above is provided with a dual port function which can be accessed from two independent ports like the dual port RAM 29. Since the area of the circuit that realizes the function occupies a large proportion in the entire shared memory section, there is a drawback that the area of the chip itself increases if the capacity of the memory itself is increased. Therefore, a method of increasing the capacity of the shared memory by using a built-in RAM having only one port such as the RAM 28 as the shared memory can be considered. However, since the internal RAM has only one port, a bus right contention for the internal bus to which the port is connected occurs, and while the external processor secures the access right to the internal RAM, Since the internal processor cannot use the internal bus, it cannot access the peripheral function modules other than the built-in RAM. Therefore, there is a problem that the waiting time is significantly increased and the throughput of the entire microcomputer is deteriorated.

【0005】そこで本発明は、マイクロコンピュータに
内蔵されるメモリを共有メモリとして使用する場合問題
となる、バス権競合に伴うスループット悪化の抑止を実
現し、チップ面積を増大させずに共有メモリの大容量化
を図ることを目的とする。
Therefore, the present invention realizes the suppression of the deterioration of the throughput due to the competition for the bus right, which is a problem when the memory built in the microcomputer is used as the shared memory, and the large size of the shared memory is achieved without increasing the chip area. The purpose is to increase the capacity.

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

【0007】[0007]

【課題を解決するための手段】本願において開示される
発明のうち代表的なものの概要を簡単に説明すれば、次
のとおりである。すなわち、中央処理装置と、記憶装置
と、周辺機能モジュールと、前記中央処理装置及び前記
周辺機能モジュールとを電気的に接続する内部バスとと
を備えた半導体集積回路に、外部処理装置とアクセスす
るための外部処理装置用バスと、前記記憶装置のアクセ
ス状態と前記中央処理装置及び前記外部処理装置からの
記憶装置アクセス要求信号に応じて、前記記憶装置を前
記内部バスまたは前記外部処理装置用バスのどちらか一
方と切り換え接続させるバス切り換え手段とを備えるも
のである。
The outline of the representative one of the inventions disclosed in the present application will be briefly described as follows. That is, a semiconductor integrated circuit including a central processing unit, a storage device, a peripheral function module, and an internal bus that electrically connects the central processing unit and the peripheral function module is accessed with an external processing device. A bus for an external processing device, a bus for the external processing device according to an access state of the storage device and a storage device access request signal from the central processing device and the external processing device. And bus switching means for switching connection with either one of them.

【0008】[0008]

【作用】記憶装置のアクセス状態と中央処理装置及び外
部処理装置からの記憶装置アクセス要求信号によって、
バス切り換え手段が記憶装置を内部バスまたは外部処理
装置用バスのどちらか一方と切り換え接続させるように
制御するので、外部処理装置が記憶装置を使用している
間、中央処理装置は内部バスのバス権を確保し、周辺機
能モジュールとアクセスすることができる。これによ
り、ポートが1つしかない内蔵記憶装置を共有メモリと
して使用する場合問題となる、内部バスのバス権競合に
伴うスループット悪化の抑止を実現し、尚且つ、チップ
面積を増大させずに共有メモリの大容量化を図ることが
できる。
According to the access state of the storage device and the storage device access request signal from the central processing unit and the external processing unit
Since the bus switching means controls the storage device to be switched and connected to either the internal bus or the bus for the external processing device, while the external processing device is using the storage device, the central processing device is the bus of the internal bus. You can secure the right to access the peripheral function module. As a result, it is possible to prevent the deterioration of the throughput due to the competition for the bus right of the internal bus, which is a problem when the built-in storage device having only one port is used as the shared memory, and the sharing is performed without increasing the chip area. It is possible to increase the capacity of the memory.

【0009】[0009]

【実施例】以下、本発明の一実施例を、マイクロコンピ
ュータに用いた例について、図1乃至図4を用いて説明
する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention, which is applied to a microcomputer, will be described below with reference to FIGS.

【0010】図1は、マイクロコンピュータの全体構
成、及び外部プロセッサ(外部処理装置)との接続関係
を示す図ある。マイクロコンピュータ1は、内部プロセ
ッサ3(中央処理装置)、RAM4、周辺機能モジュー
ル5、入出力ポート9、RAMアクセス権調停回路1
2、バス切り換え回路14、待機信号発生回路17から
構成される。内部プロセッサ3は、制御部及び演算部か
ら構成されている。周辺機能モジュール5は、ROM
(リードオンリーメモリ)や、クロック信号を発生させ
るタイマー、アナログ信号とデジタル信号との変換を行
うA/D変換機あるいはD/A変換機等の機能モジュー
ルから構成される。内部プロセッサ3及び周辺機能モジ
ュール5は、内部バス6によって電気的に接続されてい
る。外部プロセッサ2とマイクロコンピュータ1とは、
外部プロセッサ用バス7が接続された入出力ポート9を
介して接続される。RAM4は、RAMアクセス権調停
回路12、バス切り換え回路14、及び待機信号発生回
路17で構成されるバス切り換え手段によって、内部バ
ス6と外部プロセッサ用バス7のどちらか一方に切り換
え接続するように構成している。バス切り換え回路14
は、内部プロセッサ3及び外部プロセッサ2からのRA
Mアクセス要求信号10、11を調停するRAMアクセ
ス権調停回路12によって制御される。待機信号発生回
路17は、一方のプロセッサにRAMアクセス権がある
場合に、他方のプロセッサへ待機信号を発生するもので
ある。
FIG. 1 is a diagram showing an overall configuration of a microcomputer and a connection relationship with an external processor (external processing device). The microcomputer 1 includes an internal processor 3 (central processing unit), a RAM 4, a peripheral function module 5, an input / output port 9, a RAM access right arbitration circuit 1
2, a bus switching circuit 14 and a standby signal generating circuit 17. The internal processor 3 is composed of a control unit and a calculation unit. The peripheral function module 5 is a ROM
(Read-only memory), a timer for generating a clock signal, an A / D converter for converting an analog signal to a digital signal, or a functional module such as a D / A converter. The internal processor 3 and the peripheral function module 5 are electrically connected by the internal bus 6. The external processor 2 and the microcomputer 1 are
It is connected through the input / output port 9 to which the external processor bus 7 is connected. The RAM 4 is configured to be switched and connected to either the internal bus 6 or the external processor bus 7 by a bus switching means composed of a RAM access right arbitration circuit 12, a bus switching circuit 14, and a standby signal generating circuit 17. is doing. Bus switching circuit 14
Is the RA from the internal processor 3 and the external processor 2.
It is controlled by the RAM access right arbitration circuit 12 which arbitrates the M access request signals 10 and 11. The standby signal generation circuit 17 generates a standby signal to the other processor when one processor has a RAM access right.

【0011】次に、マイクロコンピュータ1の動作の概
略を説明する。
Next, the outline of the operation of the microcomputer 1 will be described.

【0012】外部プロセッサ2からRAMアクセス要求
がない場合、バス切り換え回路14は、アクセス権調停
信号13により、RAM4のバス信号8を内部バス6に
接続している。この際、アクセス権調停信号13は、内
部プロセッサ3のアクセス要求信号10と、外部プロセ
ッサ2のアクセス要求信号11の状態に応じて、RAM
アクセス権調停回路12によって生成される。この状態
で内部プロセッサ3は通常の動作を行う。
When there is no RAM access request from the external processor 2, the bus switching circuit 14 connects the bus signal 8 of the RAM 4 to the internal bus 6 by the access right arbitration signal 13. At this time, the access right arbitration signal 13 is stored in the RAM according to the states of the access request signal 10 of the internal processor 3 and the access request signal 11 of the external processor 2.
It is generated by the access right arbitration circuit 12. In this state, the internal processor 3 operates normally.

【0013】外部プロセッサ2がRAM4のアクセスを
要求すると、RAMアクセス権調停回路12が動作し、
内部プロセッサ3がRAM4をアクセスしていない場合
(アクセス要求信号10が取消し状態)は、アクセス調
停信号13が変化して、バス切り換え回路14がRAM
のバス信号8を外部プロセッサ用バス7に接続する。こ
れにより外部プロセッサ2によるRAM4へのアクセス
が可能となる。
When the external processor 2 requests access to the RAM 4, the RAM access right arbitration circuit 12 operates,
When the internal processor 3 is not accessing the RAM 4 (the access request signal 10 is in the cancel state), the access arbitration signal 13 changes and the bus switching circuit 14 causes the RAM to change.
The bus signal 8 is connected to the external processor bus 7. This enables the external processor 2 to access the RAM 4.

【0014】内部プロセッサ3がRAM4をアクセス中
に、外部プロセッサ2がRAM4のアクセス要求を出す
と、RAMアクセス権調停回路12は、アクセス権調停
信号13を、その時点のアクセス状態に保持するため、
RAMのバス信号8は、内部バス6に接続されたまま
で、外部プロセッサ用バス7には接続されない。この
時、待機信号発生回路17は、アクセス権調停信号13
と、2つのアクセス要求信号10、11の状態に応じ
て、外部プロセッサ2に対して待機信号16を発生す
る。これにより、外部プロセッサ2は待機状態に入る。
内部プロセッサ3がRAMアクセスを終了すると、アク
セス要求信号10が取り消されることにより、待機信号
発生回路17が動作し、待機信号16は取り消される。
その状態で外部プロセッサ2が再びRAMアクセスを要
求すると、RAMアクセス権調停回路12、バス切り換
え回路14が動作し、RAMのバス信号8は外部プロセ
ッサ用バス7に接続される。これにより、外部プロセッ
サ2はRAM4をアクセスすることが可能となる。この
時、内部バス6は外部プロセッサ2のアクセスからは切
り離されているため、内部プロセッサ3は動作を停止す
ることなく、RAM4以外の周辺モジュール5に対して
アクセスを行うことが可能である。外部プロセッサ2か
らのRAM4へのアクセスが終了すると、再びRAMア
クセス権調停回路14が動作し、RAMのバス信号8は
内部バス6に接続され、通常の状態へ復帰する。
When the external processor 2 issues an access request for the RAM 4 while the internal processor 3 is accessing the RAM 4, the RAM access right arbitration circuit 12 holds the access right arbitration signal 13 in the access state at that time.
The bus signal 8 of the RAM remains connected to the internal bus 6 and is not connected to the external processor bus 7. At this time, the standby signal generation circuit 17 determines that the access right arbitration signal 13
Then, a standby signal 16 is generated for the external processor 2 in accordance with the states of the two access request signals 10 and 11. As a result, the external processor 2 enters the standby state.
When the internal processor 3 finishes the RAM access, the access request signal 10 is canceled, so that the standby signal generation circuit 17 operates and the standby signal 16 is canceled.
When the external processor 2 requests RAM access again in this state, the RAM access right arbitration circuit 12 and the bus switching circuit 14 operate, and the bus signal 8 of the RAM is connected to the external processor bus 7. This allows the external processor 2 to access the RAM 4. At this time, since the internal bus 6 is separated from the access of the external processor 2, the internal processor 3 can access the peripheral modules 5 other than the RAM 4 without stopping the operation. When the access to the RAM 4 from the external processor 2 is completed, the RAM access right arbitration circuit 14 operates again, the bus signal 8 of the RAM is connected to the internal bus 6, and the normal state is restored.

【0015】外部プロセッサ2がRAM4をアクセス中
に、内部プロセッサ3がRAMアクセス要求を出すと、
RAMアクセス権調停回路12は、アクセス権調停信号
13を、その時点のアクセス状態に保持するため、RA
Mのバス信号8は、外部プロセッサ用バス7に接続され
たままで、内部バス6には接続されない。この時、待機
信号発生回路17からは、アクセス権調停信号13と、
2つのアクセス要求信号10、11の状態に応じて、内
部プロセッサ3に対して待機信号15を発生する。これ
により、内部プロセッサ3は待機状態に入る。外部プロ
セッサ2がRAMアクセスを終了すると、アクセス要求
信号11が取消し状態となることにより、待機信号発生
回路17が動作し、待機信号15は取り消される。その
状態で内部プロセッサ3がRAMアクセスを要求する
と、RAMアクセス権調停回路12、バス切り換え回路
14が動作し、RAMのバス信号8は内部バス6に接続
される。これにより、内部プロセッサ3はRAM4をア
クセスすることが可能となる。
When the internal processor 3 issues a RAM access request while the external processor 2 is accessing the RAM 4,
Since the RAM access right arbitration circuit 12 holds the access right arbitration signal 13 in the access state at that time, RA
The M bus signal 8 remains connected to the external processor bus 7 and is not connected to the internal bus 6. At this time, from the standby signal generation circuit 17, the access right arbitration signal 13
A standby signal 15 is generated for the internal processor 3 in accordance with the states of the two access request signals 10 and 11. As a result, the internal processor 3 enters the standby state. When the external processor 2 finishes the RAM access, the access request signal 11 is canceled so that the standby signal generation circuit 17 operates and the standby signal 15 is canceled. When the internal processor 3 requests RAM access in this state, the RAM access right arbitration circuit 12 and the bus switching circuit 14 operate, and the RAM bus signal 8 is connected to the internal bus 6. This enables the internal processor 3 to access the RAM 4.

【0016】図2は、RAMアクセス権調停回路12の
回路図を示す。内部プロセッサ3からのアクセス要求信
号10及び外部プロセッサ2からのアクセス要求信号1
1はクロック信号18によって同期化され、出力信号と
なるアクセス権調停信号13は、クロック信号18に対
してノンオーバーラップとなる位相を持つクロック信号
19により同期化されて出力される。調停動作は、上記
同期のためのフリップフロップ3個とNANDゲート2
個、ORゲート2個、インバータ2個により以下のよう
に実現される。外部プロセッサ2がRAM4をアクセス
中に、内部プロセッサ3がRAMアクセス要求を出す
と、アクセス要求信号10及び11が共に“1”とな
り、その場合、アクセス権調停信号13は“1”、即
ち、RAMのバス信号8が外部プロセッサ用バス7に接
続された状態に保持される。アクセス要求信号11が
“1”のときにアクセス要求信号10が“0”になって
も、アクセス権調停信号13は“1”に保持される。さ
らに、その状態からアクセス要求信号11が“0”(外
部プロセッサ2アクセス終了)になっても、アクセス権
調停信号13は“1”に保持される。その後、内部プロ
セッサ3からのアクセス要求信号10が“1”に戻る
と、アクセス権調停信号13は“0”となり、RAMの
バス信号8が内部バス6に接続される。その状態からア
クセス要求信号11が“1”になっても、アクセス権調
停信号13は“0”に保持される。その後、アクセス要
求信号11が“0”になり、更にアクセス要求信号10
が“0”(内部プロセッサ3アクセス終了)となって
も、アクセス権調停信号13は“0”に保持される。や
がてアクセス要求信号11が“1”になると、アクセス
権調停信号13は“1”に変わる。このような動作を行
うことにより、どちらか一方のプロセッサがRAM4と
アクセスしている間は、他方のプロセッサのアクセス要
求信号によって割込みされずにアクセス状態を保持させ
ることができ、一方のプロセッサがアクセスを終了する
と、他方のプロセッサのアクセス要求信号によってバス
切り換えが可能となる。
FIG. 2 is a circuit diagram of the RAM access right arbitration circuit 12. Access request signal 10 from internal processor 3 and access request signal 1 from external processor 2
1 is synchronized by the clock signal 18, and the access right arbitration signal 13 serving as an output signal is synchronized with the clock signal 19 having a non-overlapping phase with respect to the clock signal 18 and output. The arbitration operation is performed by three flip-flops and NAND gate 2 for the above synchronization.
It is realized as follows by using two units, two OR gates, and two inverters. When the internal processor 3 issues a RAM access request while the external processor 2 is accessing the RAM 4, both access request signals 10 and 11 become "1". In that case, the access right arbitration signal 13 is "1", that is, the RAM. The bus signal 8 is held in a state of being connected to the external processor bus 7. Even if the access request signal 10 becomes "0" when the access request signal 11 is "1", the access right arbitration signal 13 is held at "1". Further, even if the access request signal 11 becomes "0" (the access to the external processor 2 is completed) from that state, the access right arbitration signal 13 is held at "1". After that, when the access request signal 10 from the internal processor 3 returns to "1", the access right arbitration signal 13 becomes "0", and the RAM bus signal 8 is connected to the internal bus 6. Even if the access request signal 11 becomes "1" from that state, the access right arbitration signal 13 is held at "0". After that, the access request signal 11 becomes “0”, and the access request signal 10
The access right arbitration signal 13 is held at "0" even if "0" (the access to the internal processor 3 is completed). When the access request signal 11 eventually becomes "1", the access right arbitration signal 13 changes to "1". By performing such an operation, while one of the processors is accessing the RAM 4, the access state can be maintained without being interrupted by the access request signal of the other processor, and one processor can access the RAM 4. When the process is completed, the bus can be switched by the access request signal of the other processor.

【0017】図3は、待機信号発生回路17の回路図を
示す。回路は、NAND、OR、インバータの各1ゲー
トにより構成され、以下のように動作する。アクセス権
調停信号13が“1”(RAMのバス信号8が外部プロ
セッサ用バス7に接続)のとき、外部プロセッサ2から
のRAMアクセス要求信号11が“0”(RAM4との
アクセス終了)になると、待機信号15が“0”とな
り、内部プロセッサ3の待機状態が解除される。アクセ
ス権調停信号13が“0”(RAMのバス信号8が内部
バス6に接続)のとき、内部プロセッサ3からのRAM
アクセス要求信号10が“0”(RAM4とのアクセス
終了)になると、待機信号16が“0”となり、外部プ
ロセッサ2の待機状態が解除される。
FIG. 3 is a circuit diagram of the standby signal generating circuit 17. The circuit is composed of 1 gate each of NAND, OR, and inverter, and operates as follows. When the access right arbitration signal 13 is "1" (the RAM bus signal 8 is connected to the external processor bus 7), the RAM access request signal 11 from the external processor 2 becomes "0" (access to the RAM 4 is completed). The standby signal 15 becomes "0", and the standby state of the internal processor 3 is released. RAM from the internal processor 3 when the access right arbitration signal 13 is "0" (the bus signal 8 of the RAM is connected to the internal bus 6)
When the access request signal 10 becomes "0" (end of access to the RAM 4), the standby signal 16 becomes "0", and the standby state of the external processor 2 is released.

【0018】図4は、バス切り換え回路14の回路図を
示す。この回路は、インバータ7個、ANDゲート4
個、クロックトインバータ4個から構成され、アクセス
権調停信号13とリードライト信号20の状態により、
4個のクロックトインバータ14a乃至14dのうち1
個のみがON状態となり、他の3個がOFF状態となる
ことで、RAMのバス信号8が内部バス6または外部プ
ロセッサ用バス7の何れか一方に接続される構成となっ
ている。リードライト信号20は、読み出し時の信号が
“1”、書き込み時が“0”と設定すると、この回路の
動作は、以下の4つのパターンとなる。
FIG. 4 shows a circuit diagram of the bus switching circuit 14. This circuit consists of 7 inverters and 4 AND gates.
, And four clocked inverters, depending on the states of the access right arbitration signal 13 and the read / write signal 20,
1 out of 4 clocked inverters 14a to 14d
Only one of them is in the ON state and the other three are in the OFF state, so that the bus signal 8 of the RAM is connected to either the internal bus 6 or the external processor bus 7. When the read / write signal 20 is set to "1" for reading and "0" for writing, the operation of this circuit has the following four patterns.

【0019】まず、内部プロセッサ3がRAM4からデ
ータを読み出す場合は、アクセス権調停信号13が
“0”、リードライト信号20が“1”となり、クロッ
クトインバータ14aのみがON状態となって、RAM
のバス信号8が内部バス6に接続される。内部プロセッ
サ3からRAM4へデータを書き込む場合は、アクセス
権調停信号13が“0”、リードライト信号20が
“0”となり、クロックトインバータ14bのみがON
状態となって、内部バス6がRAMのバス信号8に接続
される。
First, when the internal processor 3 reads data from the RAM 4, the access right arbitration signal 13 becomes "0", the read / write signal 20 becomes "1", and only the clocked inverter 14a is turned on, and the RAM is turned on.
Bus signal 8 is connected to the internal bus 6. When writing data from the internal processor 3 to the RAM 4, the access right arbitration signal 13 becomes "0", the read / write signal 20 becomes "0", and only the clocked inverter 14b is turned on.
Then, the internal bus 6 is connected to the bus signal 8 of the RAM.

【0020】次に、外部プロセッサ3がRAM4からデ
ータを読み出す場合は、アクセス権調停信号13が
“1”、リードライト信号20が“1”となり、クロッ
クトインバータ14cのみがON状態となって、RAM
のバス信号8が外部プロセッサ用バス7に接続される。
外部プロセッサ3からRAM4へデータを書き込む場合
は、アクセス権調停信号13が“1”、リードライト信
号20が“0”となり、クロックトインバータ14dの
みがON状態となって、外部プロセッサ用バス7がRA
Mのバス信号8に接続される。
Next, when the external processor 3 reads data from the RAM 4, the access right arbitration signal 13 becomes "1", the read / write signal 20 becomes "1", and only the clocked inverter 14c is turned on. RAM
Bus signal 8 is connected to the external processor bus 7.
When data is written from the external processor 3 to the RAM 4, the access right arbitration signal 13 becomes "1", the read / write signal 20 becomes "0", only the clocked inverter 14d becomes ON, and the external processor bus 7 becomes RA
M bus signal 8.

【0021】このバス切り換え回路14を設けたことに
より、外部プロセッサ2がRAM4とアクセスする場合
に、外部プロセッサ2が内部バス6と切り離されている
ため、内部プロセッサ3は、常に内部バス6のバス権を
確保することができる。
Since the external processor 2 is separated from the internal bus 6 when the external processor 2 accesses the RAM 4 by providing the bus switching circuit 14, the internal processor 3 always maintains the bus of the internal bus 6. The right can be secured.

【0022】以下、本実施例の作用効果について説明す
る。
The operation and effect of this embodiment will be described below.

【0023】(1)RAMを内蔵したマイクロコンピュ
ータに、内部バスとは独立の外部プロセッサ用バスと、
内蔵RAMを内部バスまたは外部プロセッサ用バスに切
り換え接続させるバス切り換え手段を設けたことによ
り、内蔵RAMを共有メモリとして使用することができ
る。
(1) A microcomputer having a built-in RAM, an external processor bus independent of the internal bus,
By providing the bus switching means for switching the internal RAM to the internal bus or the bus for the external processor, the internal RAM can be used as a shared memory.

【0024】(2)専用の共有メモリよりも記憶容量の
大きい内蔵RAMを共有メモリとして使用することがで
きるので、チップ面積を増大させることなく共有メモリ
として記憶容量の増大を図ることができる。
(2) Since the built-in RAM having a storage capacity larger than that of the dedicated shared memory can be used as the shared memory, the storage capacity can be increased as the shared memory without increasing the chip area.

【0025】(3)内蔵RAMのアクセス状態と、内部
プロセッサ及び外部プロセッサからのRAMアクセス要
求信号に応じて、バス切り換え手段が内蔵RAMを内部
バスまたは外部プロセッサ用バスのどちらか一方と切り
換え接続させるように制御するので、外部プロセッサが
内蔵RAMを使用している間、内部プロセッサは内部バ
スのバス権を確保し、内部バスのバス権競合を発生させ
ることなく、周辺機能モジュールとアクセスすることが
できる。従って、バス権競合に伴うスループットの悪化
を抑止できる。
(3) Depending on the access state of the internal RAM and the RAM access request signals from the internal processor and the external processor, the bus switching means switches the internal RAM to either the internal bus or the external processor bus for connection. Since the internal processor secures the bus right of the internal bus while the external processor uses the internal RAM, the internal processor can access the peripheral function module without causing the bus right conflict of the internal bus. it can. Therefore, it is possible to prevent the throughput from being deteriorated due to the bus right competition.

【0026】(4)内蔵RAMのアクセス状態に応じ
て、内部プロセッサからのRAMアクセス要求信号と、
外部プロセッサからのRAMアクセス要求信号とを調停
し、内蔵RAMと、内部バスまたは外部プロセッサ用バ
スのどちらか一方とを接続させるためのアクセス権調停
信号を発生させる調停回路を設けたことにより、どちら
か一方のプロセッサが内蔵RAMとアクセス中に、他方
からRAMアクセス要求信号が発生された場合でも、割
込みされずに一方のプロセッサは内蔵RAMとアクセス
を続けることができる。
(4) A RAM access request signal from the internal processor according to the access state of the built-in RAM,
By providing an arbitration circuit that arbitrates a RAM access request signal from an external processor and generates an access right arbitration signal for connecting the internal RAM to either the internal bus or the external processor bus, Even if one of the processors is accessing the built-in RAM and the RAM access request signal is generated from the other, the one processor can continue to access the built-in RAM without interruption.

【0027】(5)RAMアクセス権調停回路から発生
したアクセス権調停信号によって動作するバス切り換え
回路を設けたことにより、内蔵RAMと、内部バスまた
は外部プロセッサ用バスとの切り換えを、割込みによる
アクセスの中断を発生させることなく行うことができ
る。
(5) By providing the bus switching circuit which operates in accordance with the access right arbitration signal generated from the RAM access right arbitration circuit, switching between the internal RAM and the internal bus or the external processor bus can be performed by an interrupt access. It can be done without interruption.

【0028】(6)待機信号発生回路を設けたことによ
り、外部プロセッサがRAMとアクセス中に、内部プロ
セッサは待機信号によってその旨を認知することができ
るので、その間、RAM以外の機能モジュールとアクセ
スすることができる。
(6) Since the standby signal generating circuit is provided, the internal processor can recognize the fact by the standby signal while the external processor is accessing the RAM. can do.

【0029】以上、本発明者によって、なされた発明を
実施例に基づき具体的に説明したが、本発明は上記実施
例に限定されるものではなく、その要旨を逸脱しない範
囲で種々変更可能であることは言うまでもない。例え
ば、上記実施例では、マイクロコンピュータに内蔵され
たRAMを、内部プロセッサと外部プロセッサとの共有
メモリとして用いたが、電気的に書換えが可能な記憶装
置であれば良く、例えば、フラッシュメモリ(電気的に
書換えが可能な不揮発性メモリ)も同様に共有メモリと
して利用することもできる。
The invention made by the present inventor has been specifically described based on the embodiments, but the present invention is not limited to the above embodiments, and various modifications can be made without departing from the scope of the invention. Needless to say. For example, in the above embodiment, the RAM built in the microcomputer is used as a shared memory between the internal processor and the external processor, but any electrically rewritable storage device may be used, such as a flash memory (electrical memory). A rewritable non-volatile memory) can be used as a shared memory as well.

【0030】本発明を用いたマイクロコンピュータを、
マルチプロセッサシステムに利用した場合は、外部に専
用の共有メモリ(デュアルポートRAM)を設ける必要
がなくなるため、システム全体の面積を減少させること
ができ、尚且つ、複数のプロセッサ間の高速データ転送
を、効率良く行うことができるものである。
A microcomputer using the present invention is
When used in a multiprocessor system, it is not necessary to provide a dedicated shared memory (dual port RAM) externally, so the area of the entire system can be reduced, and high-speed data transfer between multiple processors is possible. , Can be done efficiently.

【0031】[0031]

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

【0032】すなわち、記憶装置のアクセス状態と中央
処理装置及び外部処理装置からの記憶装置アクセス要求
信号によって、バス切り換え手段が記憶装置を内部バス
または外部処理装置用バスのどちらか一方と切り換え接
続させるように制御するので、外部処理装置が記憶装置
を使用している間、中央処理装置は内部バスのバス権を
確保し、周辺機能モジュールとアクセスすることができ
る。これにより、ポートが1つしかない内蔵記憶装置を
共有メモリとして使用する場合問題となる、内部バスの
バス権競合に伴うスループット悪化の抑止を実現し、尚
且つ、チップ面積を増大させずに共有メモリの大容量化
を図ることができる。
That is, the bus switching means switches and connects the storage device to either the internal bus or the external processing device bus depending on the access state of the storage device and the storage device access request signal from the central processing unit and the external processing unit. Thus, the central processing unit can secure the bus right of the internal bus and can access the peripheral function module while the external processing unit is using the storage device. As a result, it is possible to prevent the deterioration of the throughput due to the competition for the bus right of the internal bus, which is a problem when the built-in storage device having only one port is used as the shared memory, and the sharing is performed without increasing the chip area. It is possible to increase the capacity of the memory.

【0033】[0033]

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

【図1】本発明の一実施例であるマイクロコンピュータ
の全体構成図である。
FIG. 1 is an overall configuration diagram of a microcomputer that is an embodiment of the present invention.

【図2】本発明の一実施例であるマイクロコンピュータ
に設けられたRAMアクセス権調停回路の回路図であ
る。
FIG. 2 is a circuit diagram of a RAM access right arbitration circuit provided in a microcomputer that is an embodiment of the present invention.

【図3】本発明の一実施例であるマイクロコンピュータ
に設けられた待機信号発生回路の回路図である。
FIG. 3 is a circuit diagram of a standby signal generation circuit provided in a microcomputer that is an embodiment of the present invention.

【図4】本発明の一実施例であるマイクロコンピュータ
に設けられたバス切り換え回路の回路図である。
FIG. 4 is a circuit diagram of a bus switching circuit provided in a microcomputer that is an embodiment of the present invention.

【図5】2つのプロセッサ間のデータ転送をデュアルポ
ートRAMを使用して実現するシステムを示す図である
FIG. 5 is a diagram showing a system for realizing data transfer between two processors using a dual port RAM.

【図6】デュアルポートRAMが内蔵されたマイクロコ
ンピュータと外部プロセッサとの接続関係を示す図であ
る。
FIG. 6 is a diagram showing a connection relationship between a microcomputer including a dual port RAM and an external processor.

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

1……マイクロコンピュータ,2……外部プロセッサ,
3……内部プロセッサ,4……RAM,5……周辺機能
モジュール,6……内部バス,7……外部プロセッサ用
バス,8……RAMのバス信号,9……入出力ポート,
10……アクセス要求信号,11……アクセス要求信
号,12……RAMアクセス権調停回路,13……アク
セス権調停信号,14……バス切り換え回路,14a〜
14d……クロックトインバータ,15〜16……待機
信号,17……待機信号発生回路,18〜19……クロ
ック信号,20……リードライト信号,21……プロセ
ッサ,22……外部バス,23……デュアルポートRA
M,24……外部バス,25……プロセッサ,26……
マイクロコンピュータ,27……内部プロセッサ,28
……RAM,29……デュアルポートRAM,30……
周辺機能モジュール,31……内部バス,32……外部
プロセッサ用バス,33……入出力ポート,34……外
部バス,35……外部プロセッサ,
1 ... Microcomputer, 2 ... External processor,
3 ... Internal processor, 4 ... RAM, 5 ... Peripheral function module, 6 ... Internal bus, 7 ... External processor bus, 8 ... RAM bus signal, 9 ... Input / output port,
10 ... Access request signal, 11 ... Access request signal, 12 ... RAM access right arbitration circuit, 13 ... Access right arbitration signal, 14 ... Bus switching circuit, 14a ...
14d ... Clocked inverter, 15-16 ... Standby signal, 17 ... Standby signal generating circuit, 18-19 ... Clock signal, 20 ... Read / write signal, 21 ... Processor, 22 ... External bus, 23 ...... Dual port RA
M, 24 ... External bus, 25 ... Processor, 26 ...
Microcomputer, 27 ... Internal processor, 28
...... RAM, 29 ...... Dual port RAM, 30 ......
Peripheral function module, 31 ... Internal bus, 32 ... External processor bus, 33 ... Input / output port, 34 ... External bus, 35 ... External processor,

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】中央処理装置と、記憶装置と、周辺機能モ
ジュールと、前記中央処理装置及び前記周辺機能モジュ
ールとを電気的に接続する内部バスとを備えた半導体集
積回路であって、外部処理装置とアクセスするための外
部処理装置用バスと、前記記憶装置のアクセス状態と前
記中央処理装置及び前記外部処理装置からの記憶装置ア
クセス要求信号に応じて、前記記憶装置を前記内部バス
または前記外部処理装置用バスのどちらか一方と切り換
え接続させるバス切り換え手段とを備えたことを特徴と
する半導体集積回路。
1. A semiconductor integrated circuit comprising a central processing unit, a storage device, a peripheral function module, and an internal bus electrically connecting the central processing unit and the peripheral function module, the external processing comprising: A bus for an external processing device for accessing the device, a storage device access port for the storage device, and a storage device access request signal from the central processing unit and the external processing device. A semiconductor integrated circuit comprising: bus switching means for switching connection with either one of the processing device buses.
【請求項2】前記バス切り換え手段には、前記記憶装置
のアクセス状態に応じて前記中央処理装置からの記憶装
置アクセス要求信号と、前記外部処理装置からの記憶装
置アクセス要求信号との状態に応じて、前記記憶装置と
前記内部バスまたは前記外部処理装置用バスのどちらか
一方とを接続させるためのアクセス権調停信号を発生さ
せる調停回路が備えられたことを特徴とする請求項1記
載の半導体集積回路。
2. The bus switching means is responsive to a storage device access request signal from the central processing unit and a storage device access request signal from the external processing unit according to an access state of the storage device. 2. The semiconductor device according to claim 1, further comprising an arbitration circuit for generating an access right arbitration signal for connecting the storage device to either the internal bus or the external processing device bus. Integrated circuit.
【請求項3】前記バス切り換え手段には、前記アクセス
権調停信号と、読み出し書き込み信号に応じて、前記記
憶装置と、前記内部バスまたは前記外部処理装置用バス
のどちらか一方と切り換え接続させるバス切り換え回路
が備えられたことを特徴とする請求項2記載の半導体集
積回路。
3. A bus for switching connection between the storage device and either the internal bus or the external processing device bus according to the access right arbitration signal and the read / write signal. 3. The semiconductor integrated circuit according to claim 2, further comprising a switching circuit.
【請求項4】前記バス切り換え手段には、前記調停回路
から発生された信号と、前記中央処理装置からの記憶装
置アクセス要求信号及び前記外部処理装置からの記憶装
置アクセス要求信号とに応じて、前記中央処理装置及び
前記外部処理装置へ、待機信号を発生させる待機信号発
生回路が備えられたことを特徴とする請求項2または3
記載の半導体集積回路。
4. The bus switching means is responsive to a signal generated from the arbitration circuit, a storage device access request signal from the central processing unit and a storage device access request signal from the external processing unit. 4. A standby signal generation circuit for generating a standby signal is provided to the central processing unit and the external processing unit.
The semiconductor integrated circuit described.
【請求項5】前記記憶装置は電気的に書換え可能である
ことを特徴とする請求項1乃至4の何れか1項記載の半
導体集積回路。
5. The semiconductor integrated circuit according to claim 1, wherein the memory device is electrically rewritable.
【請求項6】前記記憶装置はランダムアクセスメモリで
あることを特徴とする請求項1乃至5の何れか1項記載
の半導体集積回路。
6. The semiconductor integrated circuit according to claim 1, wherein the storage device is a random access memory.
JP5279259A 1993-11-09 1993-11-09 Semiconductor integrated circuit Pending JPH07129501A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5279259A JPH07129501A (en) 1993-11-09 1993-11-09 Semiconductor integrated circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5279259A JPH07129501A (en) 1993-11-09 1993-11-09 Semiconductor integrated circuit

Publications (1)

Publication Number Publication Date
JPH07129501A true JPH07129501A (en) 1995-05-19

Family

ID=17608673

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5279259A Pending JPH07129501A (en) 1993-11-09 1993-11-09 Semiconductor integrated circuit

Country Status (1)

Country Link
JP (1) JPH07129501A (en)

Similar Documents

Publication Publication Date Title
EP1239374B1 (en) Shared program memory for use in multicore DSP devices
JP3039557B2 (en) Storage device
KR950010529B1 (en) Memory sharing for communicaiton between processors
JP2000242612A (en) System sharing memory and bus
JPH07129501A (en) Semiconductor integrated circuit
JPH0343804A (en) Sequence controller
JPS645341B2 (en)
JPH0330175B2 (en)
JP2775744B2 (en) Digital audible sound generator
JP2004078396A (en) Memory device
JP2537526B2 (en) Multiprocessor system
JPH09311812A (en) Microcomputer
JPS60134956A (en) Information processing system
JP2718661B2 (en) Dual port memory controller
JP3903872B2 (en) Multiple access control circuit
JP2754885B2 (en) CPU output data control circuit
JPH02207363A (en) Data transfer system, device controller, and memory controller
JP2000207273A (en) Memory control system
JPS6083164A (en) Bus control system
JPS6371760A (en) Memory system
JPH03214275A (en) Semiconductor integrated circuit
JPH0822449A (en) Microcomputer
JPS6385842A (en) Information processor
JP2002340978A (en) Circuit and method for controlling output
JPH0242558A (en) Information processing system