JPS59125465A - Multi-processor system - Google Patents

Multi-processor system

Info

Publication number
JPS59125465A
JPS59125465A JP23414882A JP23414882A JPS59125465A JP S59125465 A JPS59125465 A JP S59125465A JP 23414882 A JP23414882 A JP 23414882A JP 23414882 A JP23414882 A JP 23414882A JP S59125465 A JPS59125465 A JP S59125465A
Authority
JP
Japan
Prior art keywords
memory
shared memory
address
bus
buses
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
JP23414882A
Other languages
Japanese (ja)
Inventor
Shinichi Kuroki
伸一 黒木
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP23414882A priority Critical patent/JPS59125465A/en
Publication of JPS59125465A publication Critical patent/JPS59125465A/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/173Interprocessor communication using an interconnection network, e.g. matrix, shuffle, pyramid, star, snowflake

Abstract

PURPOSE:To shorten the waiting time due to the bus conflict by giving an access to a shared memory after switching and selecting successively the buses in accordance with the address value. CONSTITUTION:Buses B1-Bn are connected to a shared memory M. The region of the memory M is divided into regions M0-Mn-1, and the buses B1-Bn are connected to these regions respectively. Then CPU blocks CB0-CBn-1 are connected to the buses B1-Bn. These CPU blocks switch and select successively the buses B1-Bn in accordance with the value of the address which gives an access to the memory M.

Description

【発明の詳細な説明】 (a1発明の技術分野 本発明は、1つの計算機システムの中に複数のCPU 
 (プロセッサ)をもっているマルチプロセッサシステ
ムに関し、更に詳細には主記憶用メモリを共有している
マルチプロセッサシステムにおけるハス方式に関する。
Detailed Description of the Invention (a1 Technical field of the invention)
The present invention relates to a multiprocessor system having (processors), and more particularly relates to a hash system in a multiprocessor system that shares main memory memory.

fbl従来技術とその問題点 第1図は複数のCPUでメモリを共有しているマルチプ
ロセッサシステムを示すもので、複数のCPU1・・・
CPU nと共有メモリ1が、1つのハスBに接続され
ている。
fblPrior art and its problems Figure 1 shows a multiprocessor system in which memory is shared by multiple CPUs.
CPU n and shared memory 1 are connected to one lotus B.

このようなシステムにおいて、いま第2図に示すように
、CPU iがむ1の時点において共有メモリMのアク
セスが開始し、L3の時点でアクセスが終了したとする
。するとt2の時点で別のCPUjが共有メモリMをア
クセスしようとしても、パスBがCPU iによって使
用されているため、CPU1によるアクセス動作が終了
するt3の時点まで、cpu jは共有メモリMのアク
セスを待たなければならない。そしてL3〜t1の時点
までの間は、CPUjによってハスBが専用される。こ
のようにあるCPUがハスBを使用している間は、他の
CPIJは共有メモリをアクセスできず、tz=txの
間、バスBが空くのを待つことにより、それだけ処理能
力が低下し、マルチプロセッサシステムの長所が損なわ
れる。
In such a system, as shown in FIG. 2, it is assumed that access to the shared memory M starts at time 1 when CPU i is running, and ends at time L3. Then, even if another CPU j tries to access shared memory M at time t2, since path B is used by CPU i, CPU j cannot access shared memory M until time t3, when the access operation by CPU 1 ends. have to wait. From L3 to t1, CPUj dedicates lotus B. In this way, while a certain CPU is using bus B, other CPIJs cannot access the shared memory, and by waiting for bus B to become free during tz=tx, the processing power decreases accordingly. The advantages of multiprocessor systems are lost.

(C)発明の目的 本発明は、従来のメモリを共有するマルチプロセッサシ
ステムにおけるこのような問題を解消し、共有メモリの
アクセスが競合した場合の待ち時間を極限まで短かくで
きるようにすることを目的とする。
(C) Purpose of the Invention The present invention aims to eliminate such problems in conventional multiprocessor systems that share memory, and to minimize the waiting time when shared memory access conflicts. purpose.

(d1発明の構成 この目的を達成する。ために本発明は、複数のCPUで
メモリヲ共有するマルチプロセッサシステムにおいて、 複数組のハスを用い、それぞれのハスに共有メモリの領
域を割り当てると共に、各CI”Uブロックには、それ
ぞれのハスとの間に、メモリをアクセスするアドレスの
値に基づいてハスを選択する手段を備えている構成を採
っている。
(d1 Structure of the Invention To achieve this object, the present invention uses a plurality of lotuses in a multiprocessor system in which memory is shared by a plurality of CPUs, allocates a shared memory area to each lotus, and assigns a shared memory area to each lotus. ``The U block is provided with means for selecting a lotus based on the value of the address for accessing the memory, between each lotus.

(e+発明の実施例 次に本発明によるマルチプロセッサシステムが実際上ど
のように具体化されるかを実施例で説明する。第3図は
マルチプロセッサシステムの全容を示すブロック図であ
る。CPUはハス選択部などを備えたCPUブ)ツクに
含まれた構成になってお1〜Bnのn、4:備えており
、それぞれ共有メモリMに接続ざbている。そして共有
メモリMのメモリ領域は、0=n−+ に分割され、そ
れぞれのメモリ領@ M o −M n−+ に、ハス
B1〜Bnが接続されている。そしてcpuブロックC
Bo −CBm−+ は、総テノハスB1〜Bnに接続
されている。
(Example of the e+ invention) Next, how the multiprocessor system according to the invention is actually implemented will be explained using an example. FIG. 3 is a block diagram showing the entire structure of the multiprocessor system. It is configured to be included in a CPU block equipped with a lot selection section and the like, and has n and 4 of 1 to Bn, each of which is connected to a shared memory M. The memory area of the shared memory M is divided into 0=n-+, and the lotuses B1 to Bn are connected to each memory area @Mo-Mn-+. and cpu block C
Bo -CBm-+ is connected to total tenohas B1-Bn.

第4図は1つのcPUブロックの構成を示すブロック図
である。CPUは、ハスB1〜Bnからなるシステムハ
スを介して共有メモリMに接続されるが、専用のローカ
ルメモリ1も備えている。CPIIは、データバス/コ
ントロールハス2でローカルメモIJ 1および各ハス
アービタA1〜Anに接続されている。アドレスバス3
はローカルメモ1月およびデコーダ引に接続されており
、また除算器4を介して各ハスアービタA1〜Anに接
続されている。更に除算器4は、デコーダD2に接続さ
れ、前記のデコーダD+ もデコーダD2に接続されて
いる。
FIG. 4 is a block diagram showing the configuration of one cPU block. The CPU is connected to the shared memory M via a system lot consisting of lotuses B1 to Bn, but also includes a dedicated local memory 1. CPII is connected by a data bus/control bus 2 to local memory IJ1 and each bus arbiter A1-An. address bus 3
is connected to the local memo 1 and decoder input, and is also connected to each of the hash arbiters A1 to An through the divider 4. Further, the divider 4 is connected to a decoder D2, and the decoder D+ is also connected to the decoder D2.

CP[Iからメモリがアクセスされると、まずそのアI
−レスをデコーダDIでデコードして、ローカルメモリ
1か共をメモリMかを判別し、共有メモリMがアクセス
されている場合は、次のようにし一ζハスの選択が行な
われる。即しデコーダD1からデコーダD2に共有メモ
リ選択信号が入力すると共に、除算器4によってアドレ
スの値が除算される。そして剰余の値がデコーダD2に
入力し、商がアドレスバス3゛でハスアービタA1〜Δ
nに入力する。デコーダD2では、入力した剰余の値に
従って、システムハスB1〜Bnの選択が行なわれる。
When memory is accessed from CP[I, the
-Res is decoded by the decoder DI to determine whether the local memory 1 or both are the memory M, and if the shared memory M is being accessed, the selection of 1ζ has is performed as follows. That is, a shared memory selection signal is input from decoder D1 to decoder D2, and the address value is divided by divider 4. Then, the remainder value is input to the decoder D2, and the quotient is transferred to the address bus 3' from the hash arbiter A1 to Δ
Enter n. The decoder D2 selects one of the system lots B1 to Bn according to the input remainder value.

即ぢ剰余が0であれば、ハスB1が選択されてメモリ領
域Moに接続され、アドレスバス3”から共有メモリM
Oのアルレスが指定され、  る。また剰余が1であれ
ば、ハスB2が選択されてメモリ領域M1に接続され、
71゛レスハス3”からアドレスが指定される。このよ
うに、アドレスの値を除算し、その剰余によってアドレ
スバスを選択し、商の値でアドレスを指定する。
If the remainder is 0, the lotus B1 is selected and connected to the memory area Mo, and the address bus 3'' is connected to the shared memory M.
Arres of O is specified and If the remainder is 1, lotus B2 is selected and connected to memory area M1,
An address is designated from 71 "res has 3". In this way, the value of the address is divided, the address bus is selected by the remainder, and the address is designated by the value of the quotient.

第5図はこのようにして共有メモリMを共用する場合の
各ハスB1〜Bnの使用状況を、バスが4つの場合につ
いて示すタイムチャートである。
FIG. 5 is a time chart showing the usage status of each bus B1 to Bn when the shared memory M is shared in this way, in the case where there are four buses.

いまCPU iが共有メモリMをアクセスすると、前記
の除算の結果に従って、ハスT3 I= B 2 = 
B 3−=B+=B1・・・の順に選択される。即ちメ
モリに対するアクセスは、一般に連続したアドレスにわ
たっていることが多いので、複数組のハスの割り当て方
として、前記のようなアドレスの値の剰余によるデコー
ドを行なえば、ハスB1・・・B4が順次周期的に選択
される。従ってハスBIについて見ると、該ハスB1が
選択されている間は、他のCPUと競合するが、他のハ
スB2〜B4が選択されているし2〜L5の間は、他の
CPUが使用できる。他のCPII jが同一ハスB1
を選択し゛た場合は、t2〜t5の間にハスB+ を介
して共有メモリMがアクセスされる。同様にしてCPU
 iおよびCPUj以外のcpuからも、CPLI i
およびCPII jが選択していない空き時間において
、同一ハスB+ を共用し、共有メモリMをアクセスで
きる。他のハスB2〜B4においても全(同様にして、
時分割の格好でバスを選択し、共有メモリMをアクセス
する。
Now, when CPU i accesses shared memory M, according to the result of the above division, hash T3 I= B 2 =
B3-=B+=B1... are selected in this order. In other words, since access to memory generally spans consecutive addresses, in order to allocate multiple sets of lotuses, if decoding is performed using the remainder of the address value as described above, lotuses B1...B4 can be sequentially arranged in cycles. selected. Therefore, looking at lotus BI, while lotus B1 is selected, it competes with other CPUs, but other lotuses B2 to B4 are selected, and between 2 and L5, other CPUs are in use. can. Other CPII j is same lotus B1
If , the shared memory M is accessed via the hash B+ between t2 and t5. Similarly, CPU
CPLI i and CPUs other than CPUj
During free time not selected by CPII j, the same lotus B+ can be shared and the shared memory M can be accessed. All of the other lotuses B2 to B4 (similarly,
The bus is selected in a time-sharing manner and the shared memory M is accessed.

そしていま同一アトレス領域が2つのCI)11からア
クセスされたために、例えばハスB1において、CPL
I iとC,PU jが競合し、CPU iが優先的に
バスB1を選択したとしても、CI’U iば間もなく
次のハスBlを選択し、ハスB1を開放するので、CP
Ujは、t1〜L2の間だけ待てばよく、従来の1パス
方式に比べると、待ち時間が大幅に短縮される。
Now, since the same address area is accessed from two CIs) 11, for example, in lotus B1, CPL
Even if I i and C, PU j conflict and CPU i preferentially selects bus B1, CI'U i will soon select the next bus Bl and release bus B1, so that CPU
Uj only needs to wait between t1 and L2, and the waiting time is significantly reduced compared to the conventional one-pass method.

if)発明の効果 以上のように本発明によれば、複数のct’uてメモリ
を共有する場合、ハスも複数組設け、アlレスの値に従
って順時バスを切り替えて選択し、共有メモリをアクセ
スする方式を採っている。そのため、複数のCPUから
同一のアドレスがアクセスされても、間もなく同ハスは
開放されて、別のCl1o 、6<選択可能となり、従
来のようなハス競合による待ち時間が短縮され、高速化
および処理能力の向上が図られる−
if) Effects of the Invention According to the present invention, when a memory is shared by a plurality of ct'u, multiple sets of busses are provided, the bus is sequentially switched and selected according to the value of the bus, and the shared memory is A method of accessing the information is adopted. Therefore, even if the same address is accessed by multiple CPUs, the same lot will soon be released and another Cl1o, 6<< can be selected, reducing the waiting time caused by lotus contention and speeding up processing. Capabilities will be improved.

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

第1図は従来の1ハス方式のマルチプロセッサシステム
を示すブロック図、第2図は同方式における共有メモリ
のアクセス状態を示すタイムチャー 1−1第3図は本
発明によるマルチプロセッサシステムの全容を示すフロ
ック図、第4図は1つのCI〕tlブo7りの実施例を
示すプロ、り図、第5図は本発明方式による共有メモリ
のアクセス状態を示ずタイムチャー1−である。 図におい−(、Mは共有メモリ、Mθ〜Mn−1はメモ
リ領域、B+=Bnばハス、CB〔噸〜CBm−1はc
puブロック、D+ 、D+ はデコーク、4は除算器
、A1〜Anはハスアービタをそれぞれ示す。
Figure 1 is a block diagram showing a conventional 1-hass method multiprocessor system, and Figure 2 is a time chart showing the shared memory access status in the same system. FIG. 4 is a block diagram showing an embodiment of one CI]tl block, and FIG. 5 is a time chart 1 which does not show the access state of the shared memory according to the method of the present invention. In the figure -(, M is shared memory, Mθ~Mn-1 is memory area, B+=Bn hash, CB[噸~CBm-1 is c
In the pu block, D+ and D+ are decokes, 4 is a divider, and A1 to An are hash arbiters, respectively.

Claims (1)

【特許請求の範囲】 複数のCP[+でメモリを共有するマルチプロセッサシ
ステムにおいて、 複数組のハスを用い、それぞれのバスに共有メモリの領
域を割り当てると共に、各CPIJブロックには、それ
ぞれのパスとの間に、メモリをアクセスするアドレスの
値に基づいてハスを選択する手段を備えていることを特
徴とするマルチプロセッサシステム。
[Claims] In a multiprocessor system in which memory is shared by a plurality of CP[+], a plurality of sets of busses are used to allocate a shared memory area to each bus, and each CPIJ block has its own path and 1. A multiprocessor system, comprising: means for selecting an address based on the value of an address at which memory is to be accessed during the processing.
JP23414882A 1982-12-31 1982-12-31 Multi-processor system Pending JPS59125465A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23414882A JPS59125465A (en) 1982-12-31 1982-12-31 Multi-processor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23414882A JPS59125465A (en) 1982-12-31 1982-12-31 Multi-processor system

Publications (1)

Publication Number Publication Date
JPS59125465A true JPS59125465A (en) 1984-07-19

Family

ID=16966391

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23414882A Pending JPS59125465A (en) 1982-12-31 1982-12-31 Multi-processor system

Country Status (1)

Country Link
JP (1) JPS59125465A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0147702A2 (en) * 1983-12-30 1985-07-10 International Business Machines Corporation System and method for connecting a plurality of intelligent terminals to each other
KR100592105B1 (en) * 2005-03-25 2006-06-21 엠텍비젼 주식회사 Method for controlling access to partitioned blocks of shared memory and portable terminal having shared memory

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0147702A2 (en) * 1983-12-30 1985-07-10 International Business Machines Corporation System and method for connecting a plurality of intelligent terminals to each other
KR100592105B1 (en) * 2005-03-25 2006-06-21 엠텍비젼 주식회사 Method for controlling access to partitioned blocks of shared memory and portable terminal having shared memory

Similar Documents

Publication Publication Date Title
EP0382469B1 (en) Arbitration of bus access in digital computers
US4449183A (en) Arbitration scheme for a multiported shared functional device for use in multiprocessing systems
US4481572A (en) Multiconfigural computers utilizing a time-shared bus
JPH0250753A (en) Interrupt processing apparatus and method for computer
US20030126381A1 (en) Low latency lock for multiprocessor computer system
JPH0467224B2 (en)
US8843681B2 (en) Techniques for accessing memory, system and bus arbitration
US5931931A (en) Method for bus arbitration in a multiprocessor system
JPS59125465A (en) Multi-processor system
US5826045A (en) Arbitration parking apparatus and method for a split transaction bus in a multiprocessor computer system
JPH0330175B2 (en)
JP2587586B2 (en) Data transfer method
JPH0727488B2 (en) Memory access control method
US6499087B1 (en) Synchronous memory sharing based on cycle stealing
JPS6145348A (en) Bus priority control system
JPS63175964A (en) Shared memory
JPH02304615A (en) Allocating system for parallel disk control buffer
JPH08339353A (en) Multiprocessor device
JPH04250553A (en) Programmable controller
JPH03176754A (en) Multiprocessor system
JPS616753A (en) Common memory device
JPS58151661A (en) Memory device
JPS6126104B2 (en)
JPS62546B2 (en)
JPH06314231A (en) Shared memory access control method