JPS63186363A - Memory area setting circuit for multi-cpu system - Google Patents

Memory area setting circuit for multi-cpu system

Info

Publication number
JPS63186363A
JPS63186363A JP1942387A JP1942387A JPS63186363A JP S63186363 A JPS63186363 A JP S63186363A JP 1942387 A JP1942387 A JP 1942387A JP 1942387 A JP1942387 A JP 1942387A JP S63186363 A JPS63186363 A JP S63186363A
Authority
JP
Japan
Prior art keywords
memory
cpu
offset
address
area
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
JP1942387A
Other languages
Japanese (ja)
Inventor
Akiko Mikami
三上 明子
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 JP1942387A priority Critical patent/JPS63186363A/en
Publication of JPS63186363A publication Critical patent/JPS63186363A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication
    • G06F15/167Interprocessor communication using a common memory, e.g. mailbox
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Multi Processors (AREA)

Abstract

PURPOSE:To share and protect a memory by adding the offset values of different numbers to the memory addresses outputted from a CPU and producing the access address of a shared memory from the memory address and the offset value. CONSTITUTION:An offset setting part 4 sets the offset values at every CPU in response to the different numbers. An offset adding circuit 5 adds the 2-bit offset value 8 of the part 4 to an output memory address 9 of a CPU 6 and sends it to a common bus 3 in the form of an access address 7. Therefore the area of a common memory 1 is divided into four pieces in response to four processors 2a-2d. Thus the processors 2a-2d have the equivalent effects as those of an exclusive local memory starting at an address 0. Then these processors can share the memory 1 and the access area of the CPU is specified. Thus the memory 1 is easily protected.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、1台のメモリを複数のCPUで共有するマル
チCPUシステムに関し、特にメモリの領域を各CPU
毎に分割して設定するメモリ領域設定回路に関する。
Detailed Description of the Invention (Industrial Application Field) The present invention relates to a multi-CPU system in which one memory is shared by multiple CPUs, and in particular, the present invention relates to a multi-CPU system in which one memory is shared by multiple CPUs.
The present invention relates to a memory area setting circuit that divides and sets each memory area.

(従来の技術) 従来、この種のマルチCPUシステムは、1台のメモリ
を複数のCPUで共有する場合、共有するメモリの領域
が、全てのCPUから見て同一の領域として設定されて
いた。
(Prior Art) Conventionally, in this type of multi-CPU system, when one memory is shared by a plurality of CPUs, the area of the shared memory is set as the same area when viewed from all the CPUs.

即ち、メモリの領域の設定は、ソフト的になされていた
から、全てのCPUがメモリの全領域を共有するシステ
ム構成になっていた。
That is, since the memory area was set using software, the system configuration was such that all CPUs shared the entire memory area.

(発明が屏決しようとする問題点) 上述した従来の方式は、共通のメモリの用途がマルチC
PUシステムにおける各CPU間の通信及び共有データ
の格納を目的としていた事による。
(Problems to be resolved by the invention) The above-mentioned conventional method is applicable to multiple
This is because the purpose was to communicate between each CPU in the PU system and to store shared data.

ところで近年キャシメモリの採用等により、バスの負荷
が軽減きれたから、従来各CPUが専用のローカルメモ
リとして有していたメモリを[1のメモリ上で実現する
ことが可能となった。
By the way, in recent years, the load on the bus has been reduced due to the adoption of cache memory, etc., so that it has become possible to implement the memory that each CPU conventionally had as a dedicated local memory on a single memory.

この場合、従来の方式では共有のメモリ上の領域の分割
を全てソフトウェアの責任において処理する事が必要に
なった。これにより、プログラム特にオペレーティング
システムの改造が必要であった。また、従来の方式では
、特定のCPUがアクセスしているメモリの領域のみな
らず、他のCPU用の領域も常にアクセス可能な状態で
あるので、メモリの保護の点からも問題があるという欠
点があった。
In this case, in the conventional method, it became necessary for software to handle all divisions of areas on the shared memory. This required modifications to the program, especially the operating system. In addition, in the conventional method, not only the memory area accessed by a specific CPU but also the area for other CPUs is always accessible, which poses a problem in terms of memory protection. was there.

本発明は上記問題点に濫みてなされたもので、簡単な構
成により1台のメモリの領域を複数のCPU毎に分割し
て設定することのできるマルチCPUシステムのメモリ
領域設定回路を提供することを目的とする。
The present invention has been made in view of the above problems, and an object of the present invention is to provide a memory area setting circuit for a multi-CPU system that can divide and set the area of one memory for each of a plurality of CPUs with a simple configuration. With the goal.

(問題点を解決するための手段) 前述の問題点を序決し、上記目的を達成するために本発
明が提供する手段は、CPUを内蔵した複数の処理装置
と1台のメモリとを共通のバスで相互に接続し、前記1
台のメモリを前記複数の処理装置で共有するマルチCP
Uシステムであって、前記処理装置の総数に相応して相
互に異なるオフセット値を設定するオフセット設定手段
と、前記CPUの出力するメモリアドレスに前記オフセ
ット値を付加して前記メモリをアクセスするだめのアク
セスアドレスとして出力するアクセスアドレス設定手段
とを設けたことを特徴とする。
(Means for Solving the Problems) Means provided by the present invention in order to solve the above-mentioned problems and achieve the above object is to connect a plurality of processing devices each including a CPU and one memory to a common unit. interconnected by a bus,
A multi-CP that shares one memory among the plurality of processing devices.
The U system includes an offset setting means for setting mutually different offset values according to the total number of processing units, and a means for adding the offset value to a memory address output by the CPU to access the memory. The present invention is characterized in that it includes an access address setting means for outputting as an access address.

(実施例) 次に、本発明について図面を参照して説明する。第1図
は本発明の一実施例を示したブロック図、第2図はアド
レス変換の概念図である。
(Example) Next, the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a conceptual diagram of address translation.

第1図において、共通バス3には、共通メモリ1と、複
数の処理装置2a 、 2b 、 2c 、 2dが接
読されている。各処理装置2a 、 2b 、 2c 
、 2dには、CPU6と、オフセット設定部4と、オ
フセット付加回路5が内蔵されている。処理装置2aを
代表して説明すると、CPU6はオフセット付加回路5
に接続され、オフセット付加回路5は共通バス3に接続
される。予め割り当てられたCPU6の番号を設定する
だめのスイッグーを内蔵したオフセット設定部4は、各
CPU毎に異なるCPU番号に応じてオフセラトイ直を
設定し、このオフセット値をオフセット付加回路5に出
力する。処理装置2b〜2d゛ の内部構成も処理装置
2aと同一である。
In FIG. 1, a common bus 3 is connected to a common memory 1 and a plurality of processing devices 2a, 2b, 2c, and 2d. Each processing device 2a, 2b, 2c
, 2d includes a CPU 6, an offset setting section 4, and an offset adding circuit 5. To explain the processing device 2a as a representative, the CPU 6 is an offset adding circuit 5.
The offset adding circuit 5 is connected to the common bus 3. The offset setting section 4, which has a built-in switch for setting the number of the CPU 6 assigned in advance, sets the offset value according to the CPU number, which differs for each CPU, and outputs this offset value to the offset adding circuit 5. The internal configurations of the processing devices 2b to 2d' are also the same as the processing device 2a.

第2図に示すようにオフセット付加回路5は、CPU6
から出力きれたメモリアドレス9にオフセット設定部4
で設定きれた2ピツトで成るオフセット値8を付加し、
アクセスアドレス7として、共通バス3に送出する。こ
れにより、共通メモリ1の領域は、第1図に示すように
4台の処理装置2a 、 2b 、 2c 、 2dに
対応して4つの領域に分割され、各処理装置2a 、 
2b 、 2c 、 2dは、それぞれO各地から始ま
る専用のメモリを保持しているのとrl11停の効果を
有する。
As shown in FIG. 2, the offset adding circuit 5 is connected to the CPU 6
Offset setting section 4 to memory address 9 that has been output from
Add an offset value 8 consisting of 2 pits set in ,
It is sent to the common bus 3 as the access address 7. As a result, the area of the common memory 1 is divided into four areas corresponding to the four processing devices 2a, 2b, 2c, and 2d as shown in FIG.
2b, 2c, and 2d each have the effect of holding dedicated memory starting from each location in O and rl11.

尚、オフセット値8のビット数は2ビツトに限定される
ことなく、処理装置の台数に応じて適宜のビット数で形
成され、各CPU毎に異なるオフセットの値を設定する
Note that the number of bits of the offset value 8 is not limited to 2 bits, but is formed with an appropriate number of bits depending on the number of processing devices, and a different offset value is set for each CPU.

(発明の効果) 以上説明したように本発明によれば、各CPUから出力
きれたメモリアドレスに、各CPUに対応した異なった
番号をオフセット値として付加し、このメモリアドレス
とオフセット値とで共通メモリのアクセスアドレスを発
生する事により、各CPU毎に専用のローカルメモリを
有しているのと同等の効果が得られる。
(Effects of the Invention) As explained above, according to the present invention, a different number corresponding to each CPU is added as an offset value to the memory address that has been output from each CPU, and this memory address and offset value are common. By generating a memory access address, an effect equivalent to having a dedicated local memory for each CPU can be obtained.

また、各CPUのプログラムとしては、共通のメモリを
共有している事を意識する必要がない。
Further, the programs of each CPU do not need to be aware of the fact that they share a common memory.

即ち、各CPUはO番地から始まる専用のメモリを保持
しているのと同等であるから、各処理装置は特にオペレ
ーティングシステムを変更する事なく、メモリの共有を
行う事が出来る。
That is, since each CPU is equivalent to holding a dedicated memory starting from address O, each processing device can share memory without changing the operating system.

更に各CPUによってアクセス出来る領域が特定されて
いるから、各CPU毎のメモリの保護が容易、且つ確実
である。
Furthermore, since the area that can be accessed by each CPU is specified, memory protection for each CPU is easy and reliable.

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

第1図は本発明の一実施例を示したブロック図、第2図
はこの実施例におけるアドレス変換の概念図である。 1・・・共通メモリ、2a 、 2b 、 2c 、 
2d・・・処理装置、3・・・共通バス、4・・・オフ
セット設定部、5・・・オフセット付加回路、6・・・
CPU、7・・・アクセスアドレス、8・・・オフセラ
トイ直、9・・・メモリアドレス。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a conceptual diagram of address translation in this embodiment. 1... Common memory, 2a, 2b, 2c,
2d... Processing device, 3... Common bus, 4... Offset setting section, 5... Offset addition circuit, 6...
CPU, 7...Access address, 8...Office toy direct, 9...Memory address.

Claims (1)

【特許請求の範囲】 CPUを内蔵した複数の処理装置と1台のメモリとを共
通のバスで相互に接続し、前記1台のメモリを前記複数
の処理装置で共有するマルチCPUシステムにおいて、 前記処理装置の総数に相応して相互に異なるオフセット
値を設定するオフセット設定手段と、前記CPUの出力
するメモリアドレスに前記オフセット値を付加して前記
メモリをアクセスするためのアクセスアドレスとして出
力するアクセスアドレス設定手段とを設けたことを特徴
とするマルチCPUシステムのメモリ領域設定回路。
[Scope of Claims] A multi-CPU system in which a plurality of processing devices each having a built-in CPU and one memory are interconnected through a common bus, and the one memory is shared by the plurality of processing devices, comprising: an offset setting means for setting mutually different offset values in accordance with the total number of processing units; and an access address for adding the offset value to a memory address output by the CPU and outputting the result as an access address for accessing the memory. A memory area setting circuit for a multi-CPU system, comprising a setting means.
JP1942387A 1987-01-28 1987-01-28 Memory area setting circuit for multi-cpu system Pending JPS63186363A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1942387A JPS63186363A (en) 1987-01-28 1987-01-28 Memory area setting circuit for multi-cpu system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1942387A JPS63186363A (en) 1987-01-28 1987-01-28 Memory area setting circuit for multi-cpu system

Publications (1)

Publication Number Publication Date
JPS63186363A true JPS63186363A (en) 1988-08-01

Family

ID=11998854

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1942387A Pending JPS63186363A (en) 1987-01-28 1987-01-28 Memory area setting circuit for multi-cpu system

Country Status (1)

Country Link
JP (1) JPS63186363A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02267795A (en) * 1989-04-08 1990-11-01 Nippondenso Co Ltd Digital controller
US6219777B1 (en) 1997-07-11 2001-04-17 Nec Corporation Register file having shared and local data word parts

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5334442A (en) * 1976-09-10 1978-03-31 Oki Electric Ind Co Ltd Multi-processor system
JPS59121455A (en) * 1982-12-28 1984-07-13 Toshiba Corp Prefixing system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5334442A (en) * 1976-09-10 1978-03-31 Oki Electric Ind Co Ltd Multi-processor system
JPS59121455A (en) * 1982-12-28 1984-07-13 Toshiba Corp Prefixing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02267795A (en) * 1989-04-08 1990-11-01 Nippondenso Co Ltd Digital controller
US6219777B1 (en) 1997-07-11 2001-04-17 Nec Corporation Register file having shared and local data word parts

Similar Documents

Publication Publication Date Title
MY103859A (en) Communication processor for a packet-switched network.
GB1498145A (en) Multi-microprocessor unit on a single semi-conductor chip
JPS63231550A (en) Multiple virtual space control system
KR870010445A (en) Information processing device
JPH0254383A (en) Array processor
GB2366043A (en) Bus access arbitration using summed priority levels
JPS63186363A (en) Memory area setting circuit for multi-cpu system
JPH04288643A (en) Memory mapping system for multi-processor system
JPS60129853A (en) Address generating device
JP2533162B2 (en) Multiprocessor system
JPS602708B2 (en) Single-chip computer addressing scheme
JPS59214977A (en) Data processing device
JP2552287B2 (en) System bus method
JPS59231625A (en) Address setting system
JP3665349B2 (en) Integrated circuit
JP3149436B2 (en) Microprocessor
JPS63223859A (en) Address converter
JPH0267654A (en) Memory system
JPH01128143A (en) Microcomputer system
JPS6341966A (en) Direct memory access transfer device
JPS61195442A (en) Memory protection device
JPS6367658A (en) Parallel access mechanism for on-chip memory
JPS6198467A (en) Register arrangement
JPH07105004A (en) Local variable access device
JPS62279441A (en) Memory system for microcomputer