JPH03214250A - Memory control circuit - Google Patents

Memory control circuit

Info

Publication number
JPH03214250A
JPH03214250A JP965690A JP965690A JPH03214250A JP H03214250 A JPH03214250 A JP H03214250A JP 965690 A JP965690 A JP 965690A JP 965690 A JP965690 A JP 965690A JP H03214250 A JPH03214250 A JP H03214250A
Authority
JP
Japan
Prior art keywords
memory
microprocessor
data
address
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
JP965690A
Other languages
Japanese (ja)
Inventor
Hiromi Yanagida
柳田 浩美
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 Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP965690A priority Critical patent/JPH03214250A/en
Publication of JPH03214250A publication Critical patent/JPH03214250A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To set an optimum division rate based on a control program by dividing a memory into smaller blocks when the same memory are divided and used by plural microprocessors. CONSTITUTION:In regard of the memory data switch circuits 41, 42...4n, a data bus (b) of a main microprocessor 1 is connected to the memory data hi (i=1=n) as long as the memory switch signals gi (i-1-n) are turned on. Meanwhile a data bus (e) of a secondary microprocessor 2 is connected to the data hi when the signals gi are turned off. In regard of the address switch circuits 51, 52...5n, the address state of the microprocessor 1 is transmitted as the memory addresses hi when the signals gi are turned on. Meanwhile the address state of the microprocessor 2 is transmitted as the addresses hi when the signals gi are turned off respectively. In such a constitution, an optimum division rate is set.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はメモリ制御回路に関し、特に、複数のマイクロ
プロセッサによって制御を行うメモリ制御回路に関する
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a memory control circuit, and particularly to a memory control circuit controlled by a plurality of microprocessors.

〔従来の技術〕[Conventional technology]

従来この種のメモリ制御回路は、複数のマイクロプロセ
ッサによって同一アドレス空間に定義されているメモリ
を分割して使用する場合、ハードウェア設計時に分割領
域が決定され、それぞれのプロセッサが使用するメモリ
の定義領域や最大容量は不可変であった。
Conventionally, in this type of memory control circuit, when memory defined in the same address space is divided and used by multiple microprocessors, the divided area is determined at the time of hardware design, and the memory used by each processor is defined. The area and maximum capacity were unchanged.

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

上述した従来の複数マイクロプロセッサを有するメモリ
制御回路は、それぞれのプロセッサが使用するメモリの
最大容量が不可変であったので、メモリ制御方式の異な
る複数のプログラムに関して、それぞれのプロセッサの
使用するメモリの最小容量を確保しなければならず、不
経済であるという欠点がある。
In the above-mentioned conventional memory control circuit having multiple microprocessors, the maximum capacity of memory used by each processor was not variable. It has the disadvantage of being uneconomical because it requires a minimum capacity.

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

本発明のメモリ制御回路は、アドレスバスとコントロー
ル信号と、データバスとを有する主マイクロプロセッサ
および1個以上の副マイクロプロセッサと、コントロー
ル信号とメモリアドレスバスとを入力とし、メモリデー
タバスを入出力とするメモリを含むマイクロプロセッサ
システムにおいて、複数のマイクロプロセッサのそれぞ
れのデータバスとメモリデータバスとを入出力とし、入
力であるメモリ切りかえ信号によってメモリがどのマイ
クロプロセッサに属するかを決定し、メモリデータバス
をメモリの属するところのプロセッサに対してのみ開く
ことを可能にするメモリデータ切りかえ回路と、メモリ
データ切りかえ回路の入力であるメモリ切りかえ信号を
出力とし、主マイクロプロセッサのデータバスを入力と
するメモリ切りかえ信号設定レジスタと、それぞれのマ
イクロプロセッサのアドレスバスと、メモリ切りかえ信
号とを入力として、そのメモリが属するところのプロセ
ッサのアドレスバスの内容をメモリに対してメモリアド
レスとして送出するメモリアドレス切りかえ回路とを有
している。
The memory control circuit of the present invention has a main microprocessor and one or more sub-microprocessors each having an address bus, a control signal, and a data bus, receives the control signals and the memory address bus, and inputs and outputs the memory data bus. In a microprocessor system including memory, the data buses of multiple microprocessors and the memory data bus are used as input/output, and the input memory switching signal determines which microprocessor the memory belongs to, and the memory data A memory data switching circuit that enables the bus to be opened only to the processor to which the memory belongs, and a memory whose output is the memory switching signal that is the input of the memory data switching circuit, and whose input is the data bus of the main microprocessor. A memory address switching circuit that receives a switching signal setting register, the address bus of each microprocessor, and a memory switching signal as input, and sends the contents of the address bus of the processor to which the memory belongs to the memory as a memory address. have.

〔実施例〕〔Example〕

次に本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例の回路である。第1図におい
て、主マイクロプロセッサlはアドレスバスaとコント
ロール信号Cとを出力信号として持ち、データバスbを
入出力信号として持つ。副マイクロプロセッサ2もマイ
クロプロセッサ1とIil[Kアドレスバスdとコント
ロール信号fとを出力信号として持ち、データバスeを
入出力信号として持っている。
FIG. 1 shows a circuit of one embodiment of the present invention. In FIG. 1, a main microprocessor l has an address bus a and a control signal C as output signals, and a data bus b as an input/output signal. The sub microprocessor 2 also has the microprocessor 1, an address bus d and a control signal f as output signals, and a data bus e as an input/output signal.

第1図ではメモリをn分割して使用する例を示しており
、それぞれメモリ31.メモリ32゜−〜−、メモリ3
nである。
FIG. 1 shows an example in which the memory is divided into n parts, each with 31 . Memory 32° - ~ -, Memory 3
It is n.

メモリデータ切りかえ回路41 、42 、−−−4n
は主マイクロプロセッサlのデータバスbと副マイクロ
プロセッサ2のデータバスeと、メモリデータh 1+
 h 2 r −−−+ h nとを入出力とし、メモ
リ切りかえ信号設定レジスタ6の出力であるメモリ31
 、32 、−−− 、3 nのそれぞれに対応するメ
モリ切りかえ信号g ’ r g 2+ −−−t g
 ’を入力として、メモリ空力かえ信号gi(i=1〜
n)がON状態であれば主マイクロプロセッサlのデー
タバスbがメモリデータh i (i=l〜n)と接続
され、OFF状態であれば、副マイクロプロセッサ2の
データバスeとメモリデータh1(i=1〜n)とが接
続される回路である。
Memory data switching circuits 41, 42, ---4n
is the data bus b of the main microprocessor l, the data bus e of the sub microprocessor 2, and the memory data h 1+
The memory 31 which is the input and output of h 2 r −−−+ h n and which is the output of the memory switching signal setting register 6
, 32, ---, 3n, respectively, memory switching signals g' r g 2+ ---t g
' as input, memory aerodynamic change signal gi (i = 1 ~
n) is in the ON state, the data bus b of the main microprocessor l is connected to the memory data h i (i=l to n), and if it is in the OFF state, the data bus e of the sub microprocessor 2 and the memory data h1 are connected. (i=1 to n) are connected to each other.

アドレス切りかえ回路51 、52 、−−− 、5 
nは、主マイクロプロセラ?1のアドレスバスaと副マ
イクロプロセッサ2のアドレスバスdと、メモリ切りか
え信号gi(i=1−n)とを入力として、メモリ切り
かえ信号gi(i=1−n)がON状態であれば主マイ
クロプロセッサlのアドレス状態をメモリアドレスhi
(i=l−n)として送出し、メモリ切りかえ信号gi
(i=1〜n)がOFF状態であれば、副マイクロプロ
セッサ2のアドレス状態をメモリアドレスh i (i
=1〜n)として送出する。
Address switching circuits 51, 52, ---, 5
Is n the main microprocessor? The address bus a of microprocessor 1, the address bus d of sub-microprocessor 2, and the memory switching signal gi (i=1-n) are input, and if the memory switching signal gi (i=1-n) is in the ON state, the main The address state of microprocessor l is set to memory address hi
(i=l-n), memory switching signal gi
(i=1 to n) is in the OFF state, the address state of the sub microprocessor 2 is changed to the memory address h i (i
=1 to n).

次に第2図は本実施例の具体例として主、副マイクロプ
ロセッサ1ケずつと4Mバイトを8分割した0、 5 
Mバイトのメモリが8ケのシステムのメモリ制御をする
場合を示し、第3図はメモリデータ切りかえ回路を示す
Next, FIG. 2 shows a specific example of this embodiment, with one main microprocessor and one sub microprocessor, and 4 Mbytes divided into eight parts, 0 and 5.
A case is shown in which a memory of 8 M bytes is used to control the memory of a system, and FIG. 3 shows a memory data switching circuit.

第2図および第3図において、データバッファ71.7
2は双方向にデータ人出のできるバッファであり、デー
タバッファ71の主マイクロプロセッサlのデータバス
bと、メモリデータhi(i=1〜8)を入出力とし、
メモリ切りかえ信号gi(i=1〜8)がゝゝ1“のと
きに開く。データバッファ72は副マイクロプロセッサ
2のデータバスeとメモリデータh i (j=1〜8
)を入出力とし、メモリ切りかえ信号g i (i=l
〜8)が10“の時に開く。したがって、メモリデータ
hiはメモリ切りかえ信号giがゝゝl“の時は主マイ
クロプロセッサ1のデータバスbと、メモリ切りかえ信
号giがV″O”の時は副マイクロプロセッサ2のデー
タバスeと接続することになる。
In FIGS. 2 and 3, data buffer 71.7
Reference numeral 2 denotes a buffer that allows data to flow in both directions, and inputs and outputs the data bus b of the main microprocessor l of the data buffer 71 and memory data hi (i=1 to 8).
The data buffer 72 opens when the memory switching signal gi (i=1 to 8) is "1". The data buffer 72 is connected to the data bus e of the sub microprocessor 2 and the memory data h
) as input and output, and memory switching signal g i (i=l
~8) is 10". Therefore, the memory data hi is connected to the data bus b of the main microprocessor 1 when the memory switching signal gi is "l", and when the memory switching signal gi is V"O". It will be connected to the data bus e of the sub microprocessor 2.

同様に第4図においてアドレスバッファ81゜82もメ
モリ切りかえ信号giがゝゝl“の時には主マイクロプ
ロセッサ1のアドレスバスaが、メモリ切りかえ信号g
iがゝゝ0“の時には副マイクロプロセッサ2のアドレ
スバスdがメモリアドレスjiと接続する。
Similarly, in FIG. 4, when the memory switching signal gi of the address buffers 81 and 82 is "l", the address bus a of the main microprocessor 1 is connected to the memory switching signal g.
When i is "0", the address bus d of the sub microprocessor 2 is connected to the memory address ji.

上記システムにおいて、メモリ切りかえ信号gi(i=
1〜8)をi=xから順に111100000”と設定
すると、メモリ31,32.33は主マイクロプロセッ
サのメモリとして、メモリ34からメモリ38までは副
マイクロプロセッサのメモリとして使用され、主マイク
ロプロセッサが1.5Mバイト、副マイクロプロセッサ
が2.5Mバイトのメモリ容量を持つことになる。更に
、メモリ切りかえ信号gi(i=1〜8)をi=lから
順にゝゝ11111110“と設定すると、4Mバイト
中メモリ38の0,5Mバイトのみ副マイクロプロセッ
サが使用し、残りの3.5Mバイトは主マイクロプロセ
、?の領域となる。
In the above system, the memory switching signal gi (i=
1 to 8) are set to 111100000" in order from i=x, memories 31, 32, and 33 are used as memories for the main microprocessor, memories 34 to 38 are used as memories for the sub microprocessor, and 1.5M bytes, and the secondary microprocessor has a memory capacity of 2.5M bytes.Furthermore, if the memory switching signal gi (i=1 to 8) is set to "11111110" in order from i=l, the memory capacity is 4M bytes. Only 0.5 MB of memory 38 is used by the secondary microprocessor, and the remaining 3.5 MB is used by the main microprocessor. This is the area of

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

以上説明したように本発明は同一メモリを複数のマイク
ロプロセッサによって分割使用する場合更に小さなブロ
ックに分けておくことによって分割率をソフトウェアで
変更することができ、制御プログラムによって最適な分
割率を設定することができるという効果がある。
As explained above, in the present invention, when the same memory is divided and used by multiple microprocessors, the division ratio can be changed by software by dividing it into smaller blocks, and the optimum division ratio can be set by the control program. It has the effect of being able to

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

第1図は本発明の一実施例を示すブロック図、第2図は
本実施例においてメモリを8分割した場合を示すプロ、
り図、第3図は本実施例におけるメモリデータ切りかえ
回路を示す図、第4図は本実施例におけるメモリアドレ
ス切りかえ回路を示す図である。 1−゛−−−−主マイクロプロセッサ、2・・・・・・
副マイクロプロセッサ、31〜3n・・・・・・メモリ
、41〜4n・・・・・・メモリデータ切りかえ回路、
51〜5n・・・・・・メモリアドレス切りかえ回路、
6・・・・・・メモリ切りかえ信号設定レジスタ、71
.72・・・・−・データバッファ、81.82・・・
・・・アドレスバッファ、a・・・・°°主マイクロプ
ロセッサのアドレスバス、b・・・・・・主マイクロプ
ロセッサのデータバス、C・・・・・・主マイクロプロ
セッサのコントロール信号、d・・・・・・副マイクロ
プロセッサのアドレスバス、e・旧・・副マイクロプロ
セッサのデータバス、f・・・・・・副マイクロプロセ
ッサのコントロール信号、g1〜gn・・・・・・メモ
リ切りかえ信号、hl〜hn・・・・・・メモリデータ
、j1〜jn・・・・・・メモリアドレス。
FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG. 2 is a block diagram showing a case where the memory is divided into eight parts in this embodiment.
3 is a diagram showing a memory data switching circuit in this embodiment, and FIG. 4 is a diagram showing a memory address switching circuit in this embodiment. 1-゛----main microprocessor, 2...
Sub-microprocessor, 31-3n...memory, 41-4n...memory data switching circuit,
51~5n...Memory address switching circuit,
6...Memory switching signal setting register, 71
.. 72... Data buffer, 81.82...
...address buffer, a...°°address bus of the main microprocessor, b...data bus of the main microprocessor, C...control signal of the main microprocessor, d. ...Address bus of the sub microprocessor, e...old data bus of the sub microprocessor, f...control signal of the sub microprocessor, g1 to gn...memory switching signal , hl~hn...memory data, j1~jn...memory address.

Claims (1)

【特許請求の範囲】[Claims]  一般にアドレスバスとデータバスとコントロール信号
とを有する主マイクロプロセッサおよび1個以上の副マ
イクロプロセッサと、該コントロール信号と、メモリア
ドレスバスとを入力とし、メモリデータバスを入出力と
するメモリを含むマイクロプロセッサシステムにおいて
、該複数のマイクロプロセッサのそれぞれの該データバ
スと該メモリデータバスとを入出力とし、入力であるメ
モリ切りかえ信号によって該メモリがどの該マイクロプ
ロセッサに属するかを決定し、該メモリデータバスを該
メモリの属するところの該マイクロプロセッサに対して
のみ開くことを可能にするメモリデータ切りかえ回路と
、該メモリデータ切りかえ回路の入力である該メモリ切
りかえ信号を出力とし、該主マイクロプロセッサのデー
タバスを入力とするメモリ切りかえ信号設定レジスタと
、それぞれのマイクロプロセッサの該アドレスバスと、
該メモリ切りかえ信号とを入力とし該メモリが所属する
ところのマイクロプロセッサのアドレスバスを該メモリ
に対して該メモリアドレスとして送出するメモリアドレ
ス切りかえ回路とを備えることを特徴とするメモリ制御
回路。
Generally, a main microprocessor and one or more sub-microprocessors having an address bus, a data bus, and control signals, and a memory including the control signals and the memory address bus as inputs and the memory data bus as input/output. In a processor system, the data bus of each of the plurality of microprocessors and the memory data bus are used as input/output, a memory switching signal as an input determines which microprocessor the memory belongs to, and the memory data is A memory data switching circuit that enables a bus to be opened only to the microprocessor to which the memory belongs, and an output of the memory switching signal that is an input of the memory data switching circuit, a memory switching signal setting register that receives the bus as input, and the address bus of each microprocessor;
1. A memory control circuit comprising: a memory address switching circuit which receives the memory switching signal as an input and sends an address bus of a microprocessor to which the memory belongs to the memory as the memory address.
JP965690A 1990-01-19 1990-01-19 Memory control circuit Pending JPH03214250A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP965690A JPH03214250A (en) 1990-01-19 1990-01-19 Memory control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP965690A JPH03214250A (en) 1990-01-19 1990-01-19 Memory control circuit

Publications (1)

Publication Number Publication Date
JPH03214250A true JPH03214250A (en) 1991-09-19

Family

ID=11726259

Family Applications (1)

Application Number Title Priority Date Filing Date
JP965690A Pending JPH03214250A (en) 1990-01-19 1990-01-19 Memory control circuit

Country Status (1)

Country Link
JP (1) JPH03214250A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7139849B2 (en) 2002-08-07 2006-11-21 Matsushita Electric Industrial Co., Ltd. Semiconductor integrated circuit device
JP2007513390A (en) * 2003-09-02 2007-05-24 サーフ テクノロジー インコーポレイテッド Memory reallocation and sharing in electronic systems
US7715269B2 (en) 2006-08-22 2010-05-11 Elpida Memory, Inc. Semiconductor memory device and semiconductor device comprising the same
US9869770B2 (en) 2003-09-02 2018-01-16 Qualcomm Incorporated Control and features for satellite positioning system receivers

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7139849B2 (en) 2002-08-07 2006-11-21 Matsushita Electric Industrial Co., Ltd. Semiconductor integrated circuit device
US7533196B2 (en) 2002-08-07 2009-05-12 Panasonic Corporation Semiconductor integrated circuit device
JP2007513390A (en) * 2003-09-02 2007-05-24 サーフ テクノロジー インコーポレイテッド Memory reallocation and sharing in electronic systems
US8321636B2 (en) 2003-09-02 2012-11-27 Csr Technology Inc. Memory reallocation and sharing in electronic systems
US9869770B2 (en) 2003-09-02 2018-01-16 Qualcomm Incorporated Control and features for satellite positioning system receivers
US7715269B2 (en) 2006-08-22 2010-05-11 Elpida Memory, Inc. Semiconductor memory device and semiconductor device comprising the same

Similar Documents

Publication Publication Date Title
US5359717A (en) Microprocessor arranged to access a non-multiplexed interface or a multiplexed peripheral interface
US4514808A (en) Data transfer system for a data processing system provided with direct memory access units
US5313587A (en) Device for simultaneous data input/output and execution support in digital processors
US5481678A (en) Data processor including selection mechanism for coupling internal and external request signals to interrupt and DMA controllers
JPH0650863B2 (en) Interface for direct data transfer
JPH03214250A (en) Memory control circuit
JPS6049951B2 (en) Simultaneous instruction signal sending circuit
JPH024021B2 (en)
JPS63100554A (en) Memory controller
JP2679593B2 (en) Non-operational memory update method
JPS6324348A (en) Memory sharing system
JPS62174845A (en) Memory selection control circuit
JPH0322073A (en) Data transfer controller
JPH04241047A (en) Address extension system
JPS58168166A (en) Memory extension system
JPH06348378A (en) Register unused bit processing circuit
JPH11338818A (en) Method and device for transferring data
JPH05204830A (en) Input/output controller
JPH05334099A (en) Write circuit for state setting register
JPH03220683A (en) Microcomputer
JPH01298442A (en) Control system for redundant constitution cpu
JPS62186344A (en) Address mapped register
JPH04170653A (en) Cache memory system
JPH02121043A (en) Data processor
JPH02139651A (en) Address decoding circuit