[go: up one dir, main page]

JPS60262259A - Shared memory access control method using multiple microprocessors - Google Patents

Shared memory access control method using multiple microprocessors

Info

Publication number
JPS60262259A
JPS60262259A JP11668784A JP11668784A JPS60262259A JP S60262259 A JPS60262259 A JP S60262259A JP 11668784 A JP11668784 A JP 11668784A JP 11668784 A JP11668784 A JP 11668784A JP S60262259 A JPS60262259 A JP S60262259A
Authority
JP
Japan
Prior art keywords
shared memory
memory
data
output
address
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
JP11668784A
Other languages
Japanese (ja)
Inventor
Yoshihiko Nakamura
善彦 中村
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.)
Tokyo Sanyo Electric Co Ltd
Toshiba Tec Corp
Original Assignee
Tokyo Sanyo Electric Co Ltd
Tokyo Electric 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 Tokyo Sanyo Electric Co Ltd, Tokyo Electric Co Ltd filed Critical Tokyo Sanyo Electric Co Ltd
Priority to JP11668784A priority Critical patent/JPS60262259A/en
Publication of JPS60262259A publication Critical patent/JPS60262259A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • 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

Landscapes

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

Abstract

PURPOSE:To attain an asynchronous access to a shared memory using plural microprocessors with a simple circuit by performing successively the selective connection controls while switching an address bus to the shared memory from plural microprocessors with the prescribed timing and forming a memory cycle of each processor to the shared memory. CONSTITUTION:For the 1st and 2nd CPU11 and 12, the address outputs A0-A12 out of those outputs A0-A15 are connected selectively to the address input part of a shared memory 13 via a data selector 14. The data buses led from both CPU11 and 12 are connected to the data input/output part of the memory 13 via data latch buffers 15 and 16 respectively. These buffers 15 and 16 supply the data fed from both CPUs to the memory 13 as they are when they write data to the memory 13 via both CPU11 and 12. Then both buffers latch the output data of the memory 13 as soon as the CS signal changes when the data is read out of the memory 13. The rest three pieces of address information out of the address outputs of the CPUs and the RW signal are supplied to the 1st and 2nd decoders 17 and 18 respectively. The outputs of both decoders start a timing circuit 19.

Description

【発明の詳細な説明】 [発明の技術分野] この発明は複数のマイクロプロセッサによる共有メモリ
めアクセス制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a method for controlling access to a shared memory by a plurality of microprocessors.

[発明の技術的背景とその問題点] 近年マイクロプロセッサを使用して各部の制御を行なう
電子機器の開発が盛んに行われているが、例えば複数の
マイクロプロセッサで1つの共有メモリを制御する場合
、各マイクロプロセッサから共有メモリへのアクセス制
御の方式が重要となり、アクセス制御の方式によっては
回路が複雑化する問題が生じる。
[Technical background of the invention and its problems] In recent years, electronic devices that use microprocessors to control various parts have been actively developed. For example, when multiple microprocessors control one shared memory, The method of controlling access from each microprocessor to the shared memory is important, and depending on the access control method, the problem arises that the circuit becomes complicated.

[発明の目的] この発明はこのような点に鑑みて為されたもので、複数
のマイクロプロセッサによる共有メモリへの非同期アク
セスを簡単な回路によって実現できる複数のマイクロプ
ロセッサによる共有メモリのアクセス制御方式を提供す
ることを目的とする。
[Objective of the Invention] The present invention has been made in view of the above points, and provides a shared memory access control method by multiple microprocessors that can realize asynchronous access to shared memory by multiple microprocessors using a simple circuit. The purpose is to provide

[発明の概要] この発明は複数のマイクロプロセッサから共有メモリに
対するアドレスバスを所定のタイミングで切換えながら
順次選択的に接続制御して各プロセッサの共有メモリに
対するメモリサイクルを形成し、各プロセッサから共有
メモリに対してアクセス要求があったとき各プロセッサ
毎にアクセス要求を検出してそのアクセス要求の開始か
ら対応するプロセッサの共有メモリに対するメモリサイ
クルが終了するまでの間対応するプロセッサにREΔD
Y信号を供給し、そのREADY信号が供給されている
状態でそのプロセッサが共有メモリに対してメモリサイ
クルとなるとそのプロセッサによる共有メモリへのアク
セスを許可するアクセス制御方式にある。
[Summary of the Invention] This invention forms a memory cycle for the shared memory of each processor by sequentially and selectively controlling the connection of address buses from a plurality of microprocessors to the shared memory while switching them at predetermined timing. When an access request is made to the processor, each processor detects the access request and sends REΔD to the corresponding processor from the start of the access request until the end of the memory cycle for the shared memory of the corresponding processor.
The access control method is such that the Y signal is supplied, and when the processor enters a memory cycle for the shared memory while the READY signal is being supplied, the processor is permitted to access the shared memory.

[発明の実施例] 以下、この発明の実施例を図面を参照して説明する。[Embodiments of the invention] Embodiments of the present invention will be described below with reference to the drawings.

第1図において11は第1のマイクロプロセッサ(以下
、CPUIと称する。)、12は第2の1、、□ フイ
ク0プ0セッサ(以下・CPU2と称する・)13はこ
のCPU111及びCPU212によって制御される共
有メモリである。前記 CPU111及びCPU212
は例えばインテル社8085Aなどの汎用の8ビツト系
CPtJで、16本のアドレス出力AO〜A15.8本
のデータ入出力DO〜D7、クロック出力CLKI 、
READY端子などを備えている。前記共有メモリ13
の客員としては例えば8にバイトとしている。前記CP
Uzll及びCPU212はそのアドレス出力AO〜A
15の内13本AO−A12をデータセレクタ14を介
して前記共有メモリ13のアドレス入力部に選択的に接
続している。前記CPUI 11及びCPU212から
のデータバスはそれぞれデータラッチバッファ15.1
6を介して前記共有メモリ13のデータ入出力部に接続
している。
In FIG. 1, 11 is a first microprocessor (hereinafter referred to as CPUI), 12 is a second microprocessor (hereinafter referred to as CPU 2), and 13 is controlled by this CPU 111 and CPU 212. shared memory. Said CPU111 and CPU212
For example, is a general-purpose 8-bit CPtJ such as Intel's 8085A, with 16 address outputs AO to A15, 8 data inputs and outputs DO to D7, and clock outputs CLKI,
It is equipped with a READY terminal, etc. The shared memory 13
For example, as a guest employee, I have a part-time job every 8 days. Said CP
Uzll and CPU 212 have their address outputs AO~A
Thirteen of the fifteen AO-A 12 are selectively connected to the address input section of the shared memory 13 via the data selector 14. The data buses from the CPU 11 and the CPU 212 are each connected to a data latch buffer 15.1.
6 to the data input/output section of the shared memory 13.

前記データラッチバッファ15.16は前記0PU11
1及びCPU212により前記共有メモリ13に対して
データの書込みを行なうときにはCPUからのデータを
そのまま共有メモリに供給し、前記共有メモリ13から
のデータの読出し時にはその共有メモリの出力データを
1信号が変化すると同時にラッチするようにしている。
The data latch buffer 15.16 is the 0PU11.
When data is written to the shared memory 13 by the CPU 1 and the CPU 212, the data from the CPU is supplied as is to the shared memory, and when data is read from the shared memory 13, the output data of the shared memory is changed by one signal. I'm trying to latch it at the same time.

前記CPLl工11のアドレス出力の内の残りの3本の
アドレス情報及びリード、ライト信号などを第1のデコ
ーダ17に供給するとともに前記CPLJ212のアド
レス出力の内の残りの3本のアドレス情報及びリード、
ライト信号などを第2のデコーダ18に供給している。
Address information and read/write signals of the remaining three address outputs of the CPLJ 11 are supplied to the first decoder 17, and address information and read signals of the remaining three address outputs of the CPLJ 212 are supplied to the first decoder 17. ,
A write signal and the like are supplied to the second decoder 18.

そして前記両デコーダ17.18の出力によってタイミ
ング回路19が起動されるようになっている。
The timing circuit 19 is activated by the outputs of both decoders 17 and 18.

前記第1、第2のデコーダ17..18及びタイミング
回路19は第2図に示すように構成されている。すなわ
ち、前記第1のデコーダ17には前記CPU111から
のアドレス出力A13〜A15が入力されるとともに、
信号出力RD、WR,10′N11によって作られる信
号MEMRO及びMEM W Oが入力されている。ま
た、前記第2のデコーダ18には前記CPU212から
のアドレス出力A13〜A15が入力されるとともに、
信号出力RD 、 WR、I O,、−”〜11によっ
て作られる信号CMEMRO及びCMEMWOが入力さ
れている。前記タイミング回路19は分周回路20、前
記第1のデコーダ17に対応した4段のD形フリップフ
ロップ2L 22.23.24及び前記第2のデコーダ
1j3に対応した4段のD形フリップフロップ25.2
6.27.28を設け、前記CPUI11からのクロッ
ク信号CLK1を前記分周回路20によって1/2及び
1/4に分周し、それぞれ出力端子QA、QBから出力
するとともに前記4段目のフリップ70ツブ24.28
のT入力端子に直接入力している。前記分周回路20の
QA入出力2人力形のナントゲート29.30の一方の
入力端子にそれぞれ供給している。前記分周回路20の
QB比出力インバータ31を介してCPU111に対応
した2段目のフリップ70ツブ22の王入力端子に入力
するとともに、3段目のフリップフロップ23の王入力
端子及びCPU212に対応した2段目のフリップフロ
ップ26のT入力端子に直接入力している。また前記分
周回路20のQB比出力前記データセレクタ14に5E
LECT信号として供給している。
The first and second decoders 17. .. 18 and timing circuit 19 are constructed as shown in FIG. That is, address outputs A13 to A15 from the CPU 111 are input to the first decoder 17, and
Signals MEMRO and MEM WO produced by signal outputs RD, WR, 10'N11 are input. Further, address outputs A13 to A15 from the CPU 212 are input to the second decoder 18, and
Signals CMEMRO and CMEMWO generated by the signal outputs RD, WR, IO, . type flip-flop 2L 22.23.24 and a four-stage D type flip-flop 25.2 corresponding to the second decoder 1j3.
6.27.28 are provided, and the clock signal CLK1 from the CPU 11 is divided into 1/2 and 1/4 by the frequency dividing circuit 20, and outputted from the output terminals QA and QB, respectively, and the fourth stage flip 70 Tsubu 24.28
It is input directly to the T input terminal of. The signals are supplied to one input terminal of the QA input/output dual-type Nantes gates 29 and 30 of the frequency dividing circuit 20, respectively. The QB ratio output inverter 31 of the frequency dividing circuit 20 is input to the king input terminal of the flip-flop 22 in the second stage corresponding to the CPU 111, and the king input terminal of the flip-flop 23 in the third stage corresponds to the CPU 212. It is directly input to the T input terminal of the second stage flip-flop 26. Further, the QB ratio output of the frequency dividing circuit 20 is sent to the data selector 14.
It is supplied as an LECT signal.

前記第1のデコーダ17の出力をインバータ32を介し
て前記CPU1に対応した1段目の7リツプ70ツブ2
1のT入力端子に入力するとともに前記第2のデコーダ
18の出力をインバータ33を介して前記CPU2に対
応した1段目の7リツプ70ツブ25のT入力端子に入
力している。
The output of the first decoder 17 is passed through an inverter 32 to a first stage 7-lip 70-tub 2 corresponding to the CPU 1.
At the same time, the output of the second decoder 18 is inputted via the inverter 33 to the T input terminal of the first stage 7-lip 70-tube 25 corresponding to the CPU 2.

前記CPUIに対応した1段目のフリップ70ツブ21
のQ出力を次段の7リツプ70ツブ22のD入力端子に
入力し、貞出力を前記CPU111のREADY端子に
供給している。前記フリップ70ツブ22のQ出力を次
段のフリップフロップ23のD入力端子に入力するとと
もに前記ナントゲート29の他方の入力端子に供給して
いる。前記ノリツブ70ツブ23のQ出力を最終段のフ
リップ70ツブ24のD入力端子に入力するとともに0
出力を前前段及び前段のフリップフロップ21.22の
クリア(OL>端子に入力している。
First stage flip 70 knob 21 compatible with the CPUI
The Q output is input to the D input terminal of the 7-lip 70 tube 22 at the next stage, and the output is supplied to the READY terminal of the CPU 111. The Q output of the flip-flop 22 is input to the D input terminal of the next-stage flip-flop 23 and is also supplied to the other input terminal of the Nant gate 29. The Q output of the knob 70 knob 23 is input to the D input terminal of the final stage flip 70 knob 24, and the
The output is input to the clear (OL> terminal) of the flip-flops 21 and 22 in the previous stage and the previous stage.

・1.′ 前記最終段の7リツプフロツプ24のQ出力
を電源の投入時などに発生する5RESETO信号とと
もに前段の7リツプフロツブ23のクリア(CL)端子
に入力している。前記CPU2に対応した1段目のフリ
ップフロップ25のQ出力を次段の7リツプ70ツブ2
6のD入力端子に入力し、ご出力を前記CPU212の
READY端子に供給している。前記フリップフロップ
26のQ出力を次段のフリップ70ツブ27のD入力端
子に入力するとともに前記ナントゲート30の他方の入
力端子に供給している。前記フリップフロップ27のQ
出力を最終段の7リツプフロツプ28のD入力端子に入
力するとともに0出力を前前段及び前段の7リツプ70
ツブ25.26のクリア(CL)端子に入力している。
・1. ' The Q output of the final stage 7 lip-flop 24 is input to the clear (CL) terminal of the previous stage 7 lip-flop 23 together with the 5RESETO signal generated when the power is turned on. The Q output of the first stage flip-flop 25 corresponding to the CPU 2 is converted to the next stage's 7-lip 70-tub 2.
6, and its output is supplied to the READY terminal of the CPU 212. The Q output of the flip-flop 26 is input to the D input terminal of the flip 70 block 27 at the next stage, and is also supplied to the other input terminal of the Nant gate 30. Q of the flip-flop 27
The output is input to the D input terminal of the 7-lip flop 28 in the final stage, and the 0 output is input to the 7-lip flop 70 in the previous stage and the previous stage.
It is input to the clear (CL) terminal of knobs 25 and 26.

前記最終段の7リツプ70ツブ28のQ出力を電源の投
入時などに発生する5RESETO信号とともに前段の
フリップフロップ27のクリア(Cし)端子に入力して
いる。
The Q output of the 7-lip 70-tube 28 at the final stage is input to the clear (C) terminal of the flip-flop 27 at the previous stage along with the 5RESETO signal generated when the power is turned on.

前記ナントゲート29の出力を前記データラッチバッフ
715のチップセレクト端子]に供給するとともに、ゲ
ート34を介して前記共有メモリ13のチップセレクト
端子71に供給し、かつ2人カゲート35.36の一方
の入力端子に供給している。前記ゲート35.36の他
方の入力端子にはそれぞれ前記MEMWO信号、MEM
RO信号が入力されている。そして前記ゲート35の出
力をゲート37を介して前記共有メモリ13の端子W下
に供給し、前記ゲート36の出力をゲー1−38を介し
て前記共有メモリ13の端子σ下に供給している。また
、前記ナントゲート30の出力を前記データラッチバッ
フ116のチップセレクト端子σKに供給するとともに
、前記ゲート34を介して前記共有メモリ13のチップ
セレクト端子で石に供給し、かつ2人カゲート39.4
0の一方の入力端子に供給している。前記ゲート3つ、
40の他方の入力端子にはそれぞれ前記CMEMWO信
号、CMEMRO信号が入力されている。そして前記ゲ
ート39の出力を前記ゲート37を介して前記共有メモ
リ13の端子1r=に供給し、前記ゲート40の出力を
前記ゲート38を介して前記共有メモリ13の端子−σ
T“に供給している。
The output of the Nant gate 29 is supplied to the chip select terminal of the data latch buffer 715, and is also supplied to the chip select terminal 71 of the shared memory 13 via the gate 34, and one of the two gates 35 and 36. Supplied to the input terminal. The other input terminals of the gates 35 and 36 receive the MEMWO signal and the MEM
RO signal is input. The output of the gate 35 is supplied to the terminal W of the shared memory 13 via the gate 37, and the output of the gate 36 is supplied to the terminal σ of the shared memory 13 via the gate 1-38. . Further, the output of the Nant gate 30 is supplied to the chip select terminal σK of the data latch buffer 116, and is also supplied to the chip select terminal of the shared memory 13 via the gate 34, and the two-person gate 39. 4
0 to one input terminal. the three gates;
The CMEMWO signal and the CMEMRO signal are input to the other input terminals of 40, respectively. The output of the gate 39 is supplied to the terminal 1r= of the shared memory 13 through the gate 37, and the output of the gate 40 is supplied to the terminal -σ of the shared memory 13 through the gate 38.
T" is supplied.

次にこのように構成された本発明実施例装置の動作につ
いて第3図のタイミング図を参照して述べる。
Next, the operation of the apparatus according to the embodiment of the present invention constructed as described above will be described with reference to the timing chart shown in FIG.

CPLJ’t11からタイミング回路19に第3図の(
a)に示すようなりロック信号CLKIが入力され、タ
イミング回路19ではそのクロック信号CLKIを分周
回路20によって第3図の(b)に示すように1/2、
第3図の(C)に示すように1/4に分周している。1
/4に分周された分周回路20のQB比出力インバータ
31によって第3図の(d)に示すように反転信@σ■
となる。
From the CPLJ't11 to the timing circuit 19, the (
The lock signal CLKI is inputted as shown in (a), and the timing circuit 19 divides the clock signal CLKI into 1/2 and
As shown in FIG. 3(C), the frequency is divided into 1/4. 1
The QB ratio output inverter 31 of the frequency dividing circuit 20 whose frequency is divided by /4 generates an inverted signal @σ■ as shown in FIG. 3(d).
becomes.

分周回路20のQB信号はデータセレクタ14に5EL
ECT信号として供給されるので、共有メモリ13のア
ドレス入力部AO〜A12には第3図の(e)に示すよ
うにQB信号が切替わるタイミングでCPU111のア
ドレス出力AO〜AI2とCPU2のアドレス出力AO
〜A12とが交互に入力される。しかして、先ずCPU
111から共有メモリ13に対するアクセス開始が行わ
れ、第1のデコーダ17からの出力が第3図の(f)に
示すタイミングでローレベルに反転すると、フリップフ
ロップ21のd出力もローレベルに反転し、このタイミ
ングで第3図の(h)に示すようにCPU511のRE
ADY端子にローレベルなREADY信号が供給される
。続いて少し遅れてCPU212から共有メモリ13に
対するアクセス開始が行われ、第2のデコーダ18がら
の出力が第3図の(0)に示すタイミングでローレベル
に反転すると、フリップ70ツブ25のQ出力もローレ
ベルに反転し、このタイミングで第3図の(i)に示す
ようにCPU212のREADY端子にローレベルなR
EADY信号が供給される。今CPU111及びCPU
212がREADY状態となったのがいずれもCPU1
11によって共有メモリ13のアドレス指定できる期間
の途中であるため直ちに共有メモリ13に対するアクセ
ス動作は開始されない。その後分周回路2oのQB倍信
号、0−1/<)u“゛6パロルロ1″<8″(−,7
7で先に7リツプ70ツブ26がセットされ、このフリ
ップ70ツブ26のQ出力は第3図の(k)に示すよう
にハイレベルに反転する。しかもこのときはCPU21
2によって共有メモリ13のアドレス指定できる期間と
なるためこの期間においてタイミング回路19から共有
メモリ13のテ丁端子、“1一端子及び’7f”U端子
に第3図の(1)、(m)、(n)に示すように信号が
供給されると、先ずCPU212によって共有メモリ1
3に対するアクセス動作が開始され、データの書込みや
読出しが行われる。続いて分周回路20のQB倍信号ロ
ーレベルに反転するとインバータ31を介して得られる
W信号がローレベルからハイレベルに立上がるので、今
度はフリップフロップ26がリセットされ、フリップノ
ロツブ22がセットされる。しかしてこの7リツプフロ
ツプ22のQ出力は第3図の(j)に示すようにハイレ
ベルに反転する。しかもこのときはCPU111によっ
て共有メモリ13のアドレス指定できる期間に変わって
いる。しかして、この期間においてタイミング回路19
から共有メモリ13のW端子、WT端子及び“σT端子
に第3図の(+)、(m)、(n) に示すように信号
が供給されると、CPU111によって共有メモリ13
に対するアクセス動作が開始され、データの書込みや読
出しが行われる。また、フリップ70ツブ26がリセッ
トされることによりCPU212のREADY端子への
信号がハイレベルとなりそのREADY状態が解除され
る。さらに所定のタイミングで第2のデコーダ18の出
力がハイレベル状態に復帰する。
The QB signal of the frequency dividing circuit 20 is sent to the data selector 14 at 5EL.
Since the ECT signal is supplied as an ECT signal, the address input sections AO to A12 of the shared memory 13 receive the address outputs AO to AI2 of the CPU 111 and the address outputs of the CPU 2 at the timing when the QB signal switches, as shown in FIG. 3(e). A.O.
-A12 are input alternately. However, first of all, the CPU
When the access to the shared memory 13 is started from 111 and the output from the first decoder 17 is inverted to low level at the timing shown in (f) of FIG. 3, the d output of the flip-flop 21 is also inverted to low level. , At this timing, as shown in FIG. 3(h), the RE of the CPU 511 is
A low level READY signal is supplied to the ADY terminal. Subsequently, after a short delay, the CPU 212 starts accessing the shared memory 13, and when the output of the second decoder 18 changes to low level at the timing shown in (0) in FIG. 3, the Q output of the flip 70 knob 25 is inverted to low level, and at this timing, as shown in (i) of FIG.
An EADY signal is provided. Now CPU111 and CPU
212 is in READY state in both cases CPU1
11, the access operation to the shared memory 13 is not started immediately because it is in the middle of the period in which the address of the shared memory 13 can be specified. After that, the QB multiplied signal of the frequency dividing circuit 2o, 0-1/<)u"゛6 paroruro1"<8"(-,7
At step 7, the 7-rip 70 knob 26 is first set, and the Q output of this flip 70 knob 26 is inverted to a high level as shown in FIG. 3(k). Moreover, at this time, CPU21
2 becomes a period in which the address of the shared memory 13 can be specified. During this period, the timing circuit 19 sends signals to the T-terminal, "1-terminal" and "7f" U terminal of the shared memory 13 as shown in (1) and (m) in FIG. , (n), when a signal is supplied, the CPU 212 first stores the shared memory 1.
An access operation for 3 is started, and data is written and read. Subsequently, when the QB multiplied signal of the frequency dividing circuit 20 is inverted to low level, the W signal obtained through the inverter 31 rises from the low level to the high level, so the flip-flop 26 is reset and the flip knob 22 is set. be done. Therefore, the Q output of the 7-lip flop 22 is inverted to a high level as shown in FIG. 3(j). Moreover, at this time, the period has changed to a period in which the address of the shared memory 13 can be specified by the CPU 111. Therefore, during this period, the timing circuit 19
When signals as shown in (+), (m), and (n) in FIG. 3 are supplied to the W, WT, and σT terminals of the shared memory 13 from
An access operation is started, and data is written or read. Further, by resetting the flip 70 knob 26, the signal to the READY terminal of the CPU 212 becomes high level and the READY state is released. Furthermore, the output of the second decoder 18 returns to the high level state at a predetermined timing.

その後分周回路20のQB倍信号ローレベルからハイレ
ベルに立ち上がるとフリップフロップ23がセットされ
、そのQ出力が第3図の(0)に示すようにローレベル
に反転し、それによって7リツプフロツプ21.22が
クリアされる。これによりCPU111のREADY端
子への入力がハイレベルとなりそのREADY状態が解
除され、さらに所定のタイミングで第1のデコーダ17
の出力がハイレベル状態に復帰する。
Thereafter, when the QB multiplier signal of the frequency divider circuit 20 rises from low level to high level, the flip-flop 23 is set, and its Q output is inverted to low level as shown in (0) in FIG. .22 is cleared. As a result, the input to the READY terminal of the CPU 111 becomes high level and the READY state is released, and furthermore, at a predetermined timing, the first decoder 17
The output returns to high level.

このように、CPU111.CPU212のREADY
端子を利用することによって、分周回路20やフリップ
フロップ21.22.23.24.25.26.27.
28を使用する簡単な回路構成によってCPU2及びC
PU2から共有メモリ13に略同時にアクセスがあって
も両者のサイクルが衝突iることなく、CPLIの非同
期アクセス制御が確実にできる。
In this way, the CPU 111. READY of CPU212
By using the terminals, the frequency divider circuit 20 and the flip-flops 21, 22, 23, 24, 25, 26, 27, .
CPU2 and C with a simple circuit configuration using 28
Even if the shared memory 13 is accessed almost simultaneously from the PU 2, there is no collision between the two cycles, and asynchronous access control of the CPLI can be reliably performed.

なお、前記実施例では1つの共有メモリに対して2つの
CPUがアクセス制御するものについて述べたが必ずし
もこれに限定されるものではなく、3つ以上のCPUで
共有メモリをアクセス制御するものであってもよい。
In the above embodiment, two CPUs control access to one shared memory, but the present invention is not limited to this, and three or more CPUs control access to a shared memory. It's okay.

[発明の効果] 以上詳述したようにこの発明によれば、複数のマイクロ
プロセッサによる共有メモリへの非同期アクセスを簡単
な回路によって実現できる複数のマイクロプロセッサに
よる共有メモリのアクセス制御方式を提供できるもので
ある。
[Effects of the Invention] As detailed above, according to the present invention, it is possible to provide a method for controlling access to a shared memory by a plurality of microprocessors, which can realize asynchronous access to a shared memory by a plurality of microprocessors using a simple circuit. It is.

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

図はこの発明の実施例を示すもので、第1図は全体の回
路構成を示すブロック図、第2図はデコーダ及びタイミ
ング回路の詳細回路図、第3図は各部の動作タイミング
を示すタイミングチャートである。 11・・・CPUL (第1のマイクロプロセッサ)、
12・・・CPU2 (第2のマイクロプロセッサ)、
13・・・共有メモリ、14・・・データセレクタ、1
7.18・・・デコーダ、19・・・タイミング回路、
20・・・分周回路、21〜28・・・フリップフロッ
プ。 出願人代理人 弁理士 鈴江武彦
The figures show an embodiment of the present invention, in which Fig. 1 is a block diagram showing the overall circuit configuration, Fig. 2 is a detailed circuit diagram of the decoder and timing circuit, and Fig. 3 is a timing chart showing the operation timing of each part. It is. 11... CPUL (first microprocessor),
12...CPU2 (second microprocessor),
13... Shared memory, 14... Data selector, 1
7.18...decoder, 19...timing circuit,
20... Frequency divider circuit, 21-28... Flip-flop. Applicant's agent Patent attorney Takehiko Suzue

Claims (1)

【特許請求の範囲】[Claims] 複数のマイクロプロセッサから共有メモリに対するアド
レスバスを所定のタイミングで切換えながら順次選択的
に接続制御して前記各プロセッサの前記共有メモリに対
するメモリサイクルを形成し、前記各プロセッサから前
記共有メモリに対してアクセス要求があったとき各プロ
セッサ毎にア、クセス要求を検出してそのアクセス要求
の開始から対応するプロセッサの共有メモリに対するメ
モリサイクルが終了するまでの間対応するプロセッサに
READY信号を供給し、そのREADY信号が供給さ
れている状態でそのプロセッサが共有メモリに対してメ
モリサイクルとなるとそのプロセッサによる共有メモリ
へのアクセスを許可することを特徴とする複数のマイク
ロプロセッサによる共有メモリのアクセス制御方式。
Address buses from a plurality of microprocessors to the shared memory are sequentially and selectively controlled while switching at predetermined timing to form a memory cycle for the shared memory of each of the processors, and each processor accesses the shared memory. When a request is made, each processor detects the access request and supplies a READY signal to the corresponding processor from the start of the access request until the end of the memory cycle for the shared memory of the corresponding processor. A method for controlling access to a shared memory by a plurality of microprocessors, characterized in that when the processor enters a memory cycle for the shared memory while a signal is being supplied, the processor is allowed to access the shared memory.
JP11668784A 1984-06-08 1984-06-08 Shared memory access control method using multiple microprocessors Pending JPS60262259A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11668784A JPS60262259A (en) 1984-06-08 1984-06-08 Shared memory access control method using multiple microprocessors

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11668784A JPS60262259A (en) 1984-06-08 1984-06-08 Shared memory access control method using multiple microprocessors

Publications (1)

Publication Number Publication Date
JPS60262259A true JPS60262259A (en) 1985-12-25

Family

ID=14693379

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11668784A Pending JPS60262259A (en) 1984-06-08 1984-06-08 Shared memory access control method using multiple microprocessors

Country Status (1)

Country Link
JP (1) JPS60262259A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5047921A (en) * 1989-01-31 1991-09-10 International Business Machines Corporation Asynchronous microprocessor random access memory arbitration controller

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5572229A (en) * 1978-11-24 1980-05-30 Toshiba Corp Information processing system
JPS58222367A (en) * 1982-06-18 1983-12-24 Usac Electronics Ind Co Ltd Multi-microprocessor control system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5572229A (en) * 1978-11-24 1980-05-30 Toshiba Corp Information processing system
JPS58222367A (en) * 1982-06-18 1983-12-24 Usac Electronics Ind Co Ltd Multi-microprocessor control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5047921A (en) * 1989-01-31 1991-09-10 International Business Machines Corporation Asynchronous microprocessor random access memory arbitration controller

Similar Documents

Publication Publication Date Title
US4698753A (en) Multiprocessor interface device
US4788640A (en) Priority logic system
US3470542A (en) Modular system design
US6026451A (en) System for controlling a dispatch of requested data packets by generating size signals for buffer space availability and preventing a dispatch prior to a data request granted signal asserted
US5179705A (en) Asynchronous arbiter state machine for arbitrating between operating devices requesting access to a shared resource
US6795901B1 (en) Shared memory interface with conventional access and synchronization support
US4310880A (en) High-speed synchronous computer using pipelined registers and a two-level fixed priority circuit
US4443848A (en) Two-level priority circuit
JPS58219644A (en) Instruction execution system
US4772888A (en) Bus state control circuit
JPS5943786B2 (en) Storage device access method
US4332008A (en) Microprocessor apparatus and method
US4631667A (en) Asynchronous bus multiprocessor system
US5357622A (en) Apparatus for queing and storing data writes into valid word patterns
JPS6134182B2 (en)
US4636945A (en) Microprocessor
JPS60262259A (en) Shared memory access control method using multiple microprocessors
JPH02210685A (en) Dram controller
US4620277A (en) Multimaster CPU system with early memory addressing
JP3001892B2 (en) Memory access circuit
JPS6239792B2 (en)
SU1561073A1 (en) Apparatus for preliminary sampling of commands
KR940006299Y1 (en) Access controller of dual memory
Kartashev A microcomputer with a shift-register memory
KR920004418B1 (en) Data access system between microprocessors